using RobotNet.WebApp.Charts.Enums;
using System.Text.Json.Serialization;
namespace RobotNet.WebApp.Charts.Models.Common.Elements;
public class Point
{
///
/// Point radius.
///
public double Radius { get; set; } = 3;
///
/// Point style.
///
public PointStyle PointStyle { get; set; } = PointStyle.Circle;
///
/// Point rotation (in degrees).
///
public double Rotation { get; set; }
///
/// Point fill color.
///
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BackgroundColor { get; set; }
///
/// Point stroke width.
///
public int BorderWidth { get; set; } = 1;
///
/// Point stroke color.
///
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BorderColor { get; set; }
///
/// Extra radius added to point radius for hit detection.
///
public double HitRadius { get; set; } = 1;
///
/// Point radius when hovered.
///
public int HhoverRadius { get; set; } = 4;
///
/// Stroke width when hovered.
///
public int HoverBorderWidth { get; set; } = 1;
}