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,42 @@
using RobotNet.WebApp.Charts.Enums;
using System.Text.Json.Serialization;
namespace RobotNet.WebApp.Charts.Models.Common.Plugins;
public class ChartPluginsSubtitle
{
/// <summary>
/// Alignment of the title.
/// Options are: 'start', 'center', and 'end'
/// </summary>
public TitleAlignment Align { get; set; } = TitleAlignment.Center;
/// <summary>
/// Color of text.
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Color { get; set; }
/// <summary>
/// Is the title shown?
/// </summary>
public bool Display { get; set; } = true;
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ChartFont? Font { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; set; }
public bool FullSize { get; set; } = true;
/// <summary>
/// Gets or sets the position of the title.
/// </summary>
public TitlePosition Position { get; set; } = TitlePosition.Top;
/// <summary>
/// Gets or sets the number of pixels to add above and below the title text.
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ChartPadding? Padding { get; set; }
}