Removed separate shape size

This commit is contained in:
SpoinkyNL committed 2020-02-04 22:01:02 +01:00
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;
}
}
}