|
@@ -1,5 +1,6 @@
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using ChunkyImageLib;
|
|
using ChunkyImageLib;
|
|
|
|
+using PixiEditor.DrawingApi.Core.ColorsImpl;
|
|
using PixiEditor.DrawingApi.Core.Numerics;
|
|
using PixiEditor.DrawingApi.Core.Numerics;
|
|
using PixiEditor.DrawingApi.Core.Surface;
|
|
using PixiEditor.DrawingApi.Core.Surface;
|
|
using BlendMode = PixiEditor.ChangeableDocument.Enums.BlendMode;
|
|
using BlendMode = PixiEditor.ChangeableDocument.Enums.BlendMode;
|
|
@@ -9,8 +10,11 @@ namespace PixiEditor.Helpers;
|
|
internal class DocumentViewModelBuilder : ChildrenBuilder
|
|
internal class DocumentViewModelBuilder : ChildrenBuilder
|
|
{
|
|
{
|
|
public int Width { get; set; }
|
|
public int Width { get; set; }
|
|
-
|
|
|
|
public int Height { get; set; }
|
|
public int Height { get; set; }
|
|
|
|
+
|
|
|
|
+ public List<Color> Swatches { get; set; } = new List<Color>();
|
|
|
|
+ public List<Color> Palette { get; set; } = new List<Color>();
|
|
|
|
+
|
|
|
|
|
|
public DocumentViewModelBuilder WithSize(int width, int height)
|
|
public DocumentViewModelBuilder WithSize(int width, int height)
|
|
{
|
|
{
|
|
@@ -19,6 +23,18 @@ internal class DocumentViewModelBuilder : ChildrenBuilder
|
|
|
|
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public DocumentViewModelBuilder WithSwatches(List<Color> swatches)
|
|
|
|
+ {
|
|
|
|
+ Swatches = swatches;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public DocumentViewModelBuilder WithPalette(List<Color> palette)
|
|
|
|
+ {
|
|
|
|
+ Palette = palette;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
|
|
public abstract class StructureMemberBuilder
|
|
public abstract class StructureMemberBuilder
|
|
{
|
|
{
|