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