mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Removed separate shape size
This commit is contained in:
1 parent
f528e882c4
commit
c0957a3075
34 files changed
+81
-862
No files matched your search
@@ -9,21 +9,16 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
{
|
||||
}
|
||||
|
||||
internal Ellipse(Layer layer, ShapeEntity shapeEntity) : base(layer, shapeEntity)
|
||||
{
|
||||
}
|
||||
|
||||
public override void CalculateRenderProperties()
|
||||
{
|
||||
var path = new SKPath();
|
||||
path.AddOval(GetUnscaledRectangle());
|
||||
path.AddOval(Layer.Bounds);
|
||||
Path = path;
|
||||
}
|
||||
|
||||
internal override void ApplyToEntity()
|
||||
public override void ApplyToEntity()
|
||||
{
|
||||
base.ApplyToEntity();
|
||||
Layer.LayerEntity.ShapeEntity.Type = ShapeEntityType.Ellipse;
|
||||
Layer.LayerEntity.ShapeType = ShapeEntityType.Ellipse;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user