using RobotNet.WebApp.Charts.Enums; using System.Text.Json.Serialization; namespace RobotNet.WebApp.Charts.Models.Common.Elements; public class Arc { /// /// Arc angle to cover. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public double? Angle { get; set; } /// /// Arc fill color. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? BackgroundColor { get; set; } /// /// Arc stroke alignment. /// public BorderAlign BorderAlign { get; set; } = BorderAlign.Center; /// /// Arc stroke color. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? BorderColor { get; set; } /// /// Arc line dash /// public int[]? BorderDash { get; set; } /// /// Arc line dash offset /// public double BorderDashOffset { get; set; } /// /// Line join style. /// public BorderJoinStyle? BorderJoinStyle { get; set; } /// /// Arc stroke width. /// public int BorderWidth { get; set; } = 2; /// /// By default the Arc is curved. If circular: false the Arc will be flat /// public bool Circular { get; set; } = true; }