Диаграммы

This commit is contained in:
2026-04-10 02:21:47 +03:00
parent 8580dbc199
commit 72db2c0a47
12 changed files with 252 additions and 12 deletions

View File

@@ -8,24 +8,12 @@ public sealed class MinintDocument
{
public string Name { get; set; }
/// <summary>
/// Delay before showing the next frame during animation playback (ms).
/// </summary>
public uint FrameDelayMs { get; set; }
/// <summary>
/// Document palette. Index 0 is always <see cref="RgbaColor.Transparent"/>.
/// All layers reference colors by index into this list.
/// </summary>
public List<RgbaColor> Palette { get; }
public List<MinintLayer> Layers { get; }
/// <summary>
/// Reverse lookup cache: RgbaColor → palette index. Built lazily, invalidated
/// on structural palette changes (compact, clear). Call <see cref="InvalidatePaletteCache"/>
/// after bulk palette modifications.
/// </summary>
private Dictionary<RgbaColor, int>? _paletteCache;
public MinintDocument(string name)