first commit -push
This commit is contained in:
55
RobotNet.WebApp/Charts/Models/Common/Elements/Arc.cs
Normal file
55
RobotNet.WebApp/Charts/Models/Common/Elements/Arc.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using RobotNet.WebApp.Charts.Enums;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.WebApp.Charts.Models.Common.Elements;
|
||||
|
||||
public class Arc
|
||||
{
|
||||
/// <summary>
|
||||
/// Arc angle to cover.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public double? Angle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arc fill color.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? BackgroundColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arc stroke alignment.
|
||||
/// </summary>
|
||||
public BorderAlign BorderAlign { get; set; } = BorderAlign.Center;
|
||||
|
||||
/// <summary>
|
||||
/// Arc stroke color.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? BorderColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arc line dash
|
||||
/// </summary>
|
||||
public int[]? BorderDash { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arc line dash offset
|
||||
/// </summary>
|
||||
public double BorderDashOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Line join style.
|
||||
/// </summary>
|
||||
public BorderJoinStyle? BorderJoinStyle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arc stroke width.
|
||||
/// </summary>
|
||||
public int BorderWidth { get; set; } = 2;
|
||||
|
||||
/// <summary>
|
||||
/// By default the Arc is curved. If circular: false the Arc will be flat
|
||||
/// </summary>
|
||||
public bool Circular { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user