Files
Artemis/src/Artemis.Core/Models/Profile/LayerShapes/Fill.cs
T
2020-01-31 00:02:01 +01:00

28 lines
710 B
C#

using Artemis.Storage.Entities.Profile;
using SkiaSharp;
namespace Artemis.Core.Models.Profile.LayerShapes
{
public class Fill : LayerShape
{
public Fill(Layer layer) : base(layer)
{
}
internal Fill(Layer layer, ShapeEntity shapeEntity) : base(layer, shapeEntity)
{
}
public override void CalculateRenderProperties()
{
// Shape originates from the center so compensate the path for that
Path = new SKPath(Layer.Path);
}
internal override void ApplyToEntity()
{
base.ApplyToEntity();
Layer.LayerEntity.ShapeEntity.Type = ShapeEntityType.Fill;
}
}
}