first commit -push

This commit is contained in:
dungtt
2025-10-15 15:15:53 +07:00
parent 674ae395be
commit a9577c5756
885 changed files with 74595 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using System.Text.Json.Serialization;
namespace RobotNet.WebApp.Charts.Models.Common;
public class ChartFont
{
/// <summary>
/// Default font family for all text, follows CSS font-family options.
/// 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Family { get; set; }
/// <summary>
/// Height of an individual line of text
/// </summary>
public double LineHeight { get; set; } = 1.2;
/// <summary>
/// Default font size (in px) for text. Does not apply to radialLinear scale point labels.
/// </summary>
public int Size { get; set; } = 12;
/// <summary>
/// Default font style. Does not apply to tooltip title or footer. Does not apply to chart title.
/// Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Style { get; set; }
/// <summary>
/// Default font weight (boldness).
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Weight { get; set; } = "bold";
}