31 lines
757 B
C#
31 lines
757 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
using Volo.Abp.Domain.Values;
|
|
|
|
namespace Sozsoft.Platform.Queries;
|
|
|
|
public class ChartFont : ValueObject
|
|
{
|
|
[JsonInclude]
|
|
public string Color { get; private set; } = "#FFFFFF";
|
|
|
|
[JsonInclude]
|
|
public string Family { get; private set; } = "\"Segoe UI\", \"Helvetica Neue\", \"Trebuchet MS\", Verdana, sans-serif";
|
|
|
|
[JsonInclude]
|
|
public int Size { get; private set; } = 12;
|
|
|
|
[JsonInclude]
|
|
public int Weight { get; private set; } = 400;
|
|
|
|
public ChartFont() { }
|
|
|
|
protected override IEnumerable<object> GetAtomicValues()
|
|
{
|
|
yield return Color;
|
|
yield return Family;
|
|
yield return Size;
|
|
yield return Weight;
|
|
}
|
|
}
|
|
|