using SkiaSharp; #pragma warning disable 8618 namespace Artemis.Core { /// /// Represents the transform properties of a layer /// public class LayerTransformProperties : LayerPropertyGroup { /// /// The point at which the shape is attached to its position /// [PropertyDescription(Description = "The point at which the shape is attached to its position", InputStepSize = 0.001f)] public SKPointLayerProperty AnchorPoint { get; set; } /// /// The position of the shape /// [PropertyDescription(Description = "The position of the shape", InputStepSize = 0.001f)] public SKPointLayerProperty Position { get; set; } /// /// The scale of the shape /// [PropertyDescription(Description = "The scale of the shape", InputAffix = "%", MinInputValue = 0f)] public SKSizeLayerProperty Scale { get; set; } /// /// The rotation of the shape in degree /// [PropertyDescription(Description = "The rotation of the shape in degrees", InputAffix = "°")] public FloatLayerProperty Rotation { get; set; } /// /// The opacity of the shape /// [PropertyDescription(Description = "The opacity of the shape", InputAffix = "%", MinInputValue = 0f, MaxInputValue = 100f)] public FloatLayerProperty Opacity { get; set; } /// protected override void PopulateDefaults() { Scale.DefaultValue = new SKSize(100, 100); Opacity.DefaultValue = 100; } /// protected override void EnableProperties() { } /// protected override void DisableProperties() { } } }