pixel-data-js 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.dev.cjs +431 -382
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.dev.js +429 -382
- package/dist/index.dev.js.map +1 -1
- package/dist/index.prod.cjs +431 -382
- package/dist/index.prod.cjs.map +1 -1
- package/dist/index.prod.d.ts +75 -49
- package/dist/index.prod.js +429 -382
- package/dist/index.prod.js.map +1 -1
- package/package.json +1 -1
- package/src/History/PixelMutator/mutatorBlendPixelData.ts +1 -1
- package/src/History/PixelMutator/mutatorBlendPixelDataAlphaMask.ts +33 -0
- package/src/History/PixelMutator/mutatorBlendPixelDataBinaryMask.ts +33 -0
- package/src/History/PixelMutator/mutatorClear.ts +2 -2
- package/src/History/PixelMutator.ts +14 -11
- package/src/PixelData/blendPixelData.ts +1 -1
- package/src/PixelData/blendPixelDataBinaryMask.ts +1 -1
- package/src/index.ts +2 -0
package/dist/index.prod.d.ts
CHANGED
|
@@ -704,19 +704,23 @@ declare class PixelWriter<M> {
|
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
declare function makeFullPixelMutator(writer: PixelWriter<any>): {
|
|
707
|
-
|
|
707
|
+
invert(opts?: PixelMutateOptions): void;
|
|
708
|
+
fillBinaryMask(color: Color32, mask: BinaryMask, alpha?: number, x?: number, y?: number): void;
|
|
709
|
+
fill(color: Color32, rect?: Partial<Rect>): void;
|
|
710
|
+
clear(rect?: Partial<Rect>): void;
|
|
711
|
+
blendPixelDataBinaryMask(src: IPixelData, mask: BinaryMask, opts?: PixelBlendMaskOptions): void;
|
|
712
|
+
blendPixelDataAlphaMask(src: IPixelData, mask: AlphaMask, opts?: PixelBlendMaskOptions): void;
|
|
713
|
+
blendPixelData(src: IPixelData, opts?: PixelBlendOptions): void;
|
|
714
|
+
blendPixel(x: number, y: number, color: Color32, alpha?: number, blendFn?: BlendColor32): void;
|
|
715
|
+
blendColor(color: Color32, opts?: ColorBlendOptions): void;
|
|
708
716
|
applyRectPencilStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brushWidth: number, brushHeight: number, alpha?: number, blendFn?: BlendColor32): void;
|
|
709
717
|
applyRectPencil(color: Color32, centerX: number, centerY: number, brushWidth: number, brushHeight: number, alpha?: number, blendFn?: BlendColor32): void;
|
|
710
718
|
applyRectBrushStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brushWidth: number, brushHeight: number, alpha: number | undefined, fallOff: (dist: number) => number, blendFn?: BlendColor32): void;
|
|
711
719
|
applyRectBrush(color: Color32, centerX: number, centerY: number, brushWidth: number, brushHeight: number, alpha: number | undefined, fallOff: (dist: number) => number, blendFn?: BlendColor32): void;
|
|
712
720
|
applyCirclePencilStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brush: CircleBrushBinaryMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
721
|
+
applyCirclePencil(color: Color32, centerX: number, centerY: number, brush: CircleBrushMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
713
722
|
applyCircleBrushStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brush: CircleBrushAlphaMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
714
723
|
applyCircleBrush(color: Color32, centerX: number, centerY: number, brush: CircleBrushAlphaMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
715
|
-
invert(opts?: PixelMutateOptions): void;
|
|
716
|
-
fill(color: Color32, rect?: Partial<Rect>): void;
|
|
717
|
-
blendPixel(x: number, y: number, color: Color32, alpha?: number, blendFn?: BlendColor32): void;
|
|
718
|
-
blendColor(color: Color32, opts?: ColorBlendOptions): void;
|
|
719
|
-
blendPixelData(src: IPixelData, opts: PixelBlendOptions): void;
|
|
720
724
|
applyBinaryMask: (mask: BinaryMask, opts?: ApplyMaskToPixelDataOptions) => void;
|
|
721
725
|
applyAlphaMask: (mask: AlphaMask, opts?: ApplyMaskToPixelDataOptions) => void;
|
|
722
726
|
};
|
|
@@ -727,14 +731,14 @@ declare function makeFullPixelMutator(writer: PixelWriter<any>): {
|
|
|
727
731
|
*/
|
|
728
732
|
declare function applyAlphaMaskToPixelData(dst: IPixelData, mask: AlphaMask, opts?: ApplyMaskToPixelDataOptions): void;
|
|
729
733
|
|
|
730
|
-
declare const defaults$
|
|
734
|
+
declare const defaults$h: {
|
|
731
735
|
applyAlphaMaskToPixelData: typeof applyAlphaMaskToPixelData;
|
|
732
736
|
};
|
|
733
|
-
type Deps$
|
|
737
|
+
type Deps$h = Partial<typeof defaults$h>;
|
|
734
738
|
/**
|
|
735
739
|
* @param deps - @hidden
|
|
736
740
|
*/
|
|
737
|
-
declare const mutatorApplyAlphaMask: (writer: PixelWriter<any>, deps?: Deps$
|
|
741
|
+
declare const mutatorApplyAlphaMask: (writer: PixelWriter<any>, deps?: Deps$h) => {
|
|
738
742
|
applyAlphaMask: (mask: AlphaMask, opts?: ApplyMaskToPixelDataOptions) => void;
|
|
739
743
|
};
|
|
740
744
|
|
|
@@ -744,14 +748,14 @@ declare const mutatorApplyAlphaMask: (writer: PixelWriter<any>, deps?: Deps$f) =
|
|
|
744
748
|
*/
|
|
745
749
|
declare function applyBinaryMaskToPixelData(dst: IPixelData, mask: BinaryMask, opts?: ApplyMaskToPixelDataOptions): void;
|
|
746
750
|
|
|
747
|
-
declare const defaults$
|
|
751
|
+
declare const defaults$g: {
|
|
748
752
|
applyBinaryMaskToPixelData: typeof applyBinaryMaskToPixelData;
|
|
749
753
|
};
|
|
750
|
-
type Deps$
|
|
754
|
+
type Deps$g = Partial<typeof defaults$g>;
|
|
751
755
|
/**
|
|
752
756
|
* @param deps - @hidden
|
|
753
757
|
*/
|
|
754
|
-
declare const mutatorApplyBinaryMask: (writer: PixelWriter<any>, deps?: Deps$
|
|
758
|
+
declare const mutatorApplyBinaryMask: (writer: PixelWriter<any>, deps?: Deps$g) => {
|
|
755
759
|
applyBinaryMask: (mask: BinaryMask, opts?: ApplyMaskToPixelDataOptions) => void;
|
|
756
760
|
};
|
|
757
761
|
|
|
@@ -772,15 +776,15 @@ declare function applyCircleBrushToPixelData(target: IPixelData, color: Color32,
|
|
|
772
776
|
|
|
773
777
|
declare function getCircleBrushOrPencilBounds(centerX: number, centerY: number, brushSize: number, targetWidth: number, targetHeight: number, out?: Rect): Rect;
|
|
774
778
|
|
|
775
|
-
declare const defaults$
|
|
779
|
+
declare const defaults$f: {
|
|
776
780
|
applyCircleBrushToPixelData: typeof applyCircleBrushToPixelData;
|
|
777
781
|
getCircleBrushOrPencilBounds: typeof getCircleBrushOrPencilBounds;
|
|
778
782
|
};
|
|
779
|
-
type Deps$
|
|
783
|
+
type Deps$f = Partial<typeof defaults$f>;
|
|
780
784
|
/**
|
|
781
785
|
* @param deps - @hidden
|
|
782
786
|
*/
|
|
783
|
-
declare const mutatorApplyCircleBrush: (writer: PixelWriter<any>, deps?: Deps$
|
|
787
|
+
declare const mutatorApplyCircleBrush: (writer: PixelWriter<any>, deps?: Deps$f) => {
|
|
784
788
|
applyCircleBrush(color: Color32, centerX: number, centerY: number, brush: CircleBrushAlphaMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
785
789
|
};
|
|
786
790
|
|
|
@@ -806,29 +810,29 @@ declare function blendColorPixelDataAlphaMask(dst: IPixelData, color: Color32, m
|
|
|
806
810
|
|
|
807
811
|
declare function getCircleBrushOrPencilStrokeBounds(x0: number, y0: number, x1: number, y1: number, brushSize: number, result: Rect): Rect;
|
|
808
812
|
|
|
809
|
-
declare const defaults$
|
|
813
|
+
declare const defaults$e: {
|
|
810
814
|
forEachLinePoint: typeof forEachLinePoint;
|
|
811
815
|
blendColorPixelDataAlphaMask: typeof blendColorPixelDataAlphaMask;
|
|
812
816
|
getCircleBrushOrPencilBounds: typeof getCircleBrushOrPencilBounds;
|
|
813
817
|
getCircleBrushOrPencilStrokeBounds: typeof getCircleBrushOrPencilStrokeBounds;
|
|
814
818
|
};
|
|
815
|
-
type Deps$
|
|
819
|
+
type Deps$e = Partial<typeof defaults$e>;
|
|
816
820
|
/**
|
|
817
821
|
* @param deps - @hidden
|
|
818
822
|
*/
|
|
819
|
-
declare const mutatorApplyCircleBrushStroke: (writer: PixelWriter<any>, deps?: Deps$
|
|
823
|
+
declare const mutatorApplyCircleBrushStroke: (writer: PixelWriter<any>, deps?: Deps$e) => {
|
|
820
824
|
applyCircleBrushStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brush: CircleBrushAlphaMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
821
825
|
};
|
|
822
826
|
|
|
823
|
-
declare const defaults$
|
|
827
|
+
declare const defaults$d: {
|
|
824
828
|
applyCircleBrushToPixelData: typeof applyCircleBrushToPixelData;
|
|
825
829
|
getCircleBrushOrPencilBounds: typeof getCircleBrushOrPencilBounds;
|
|
826
830
|
};
|
|
827
|
-
type Deps$
|
|
831
|
+
type Deps$d = Partial<typeof defaults$d>;
|
|
828
832
|
/**
|
|
829
833
|
* @param deps - @hidden
|
|
830
834
|
**/
|
|
831
|
-
declare const mutatorApplyCirclePencil: (writer: PixelWriter<any>, deps?: Deps$
|
|
835
|
+
declare const mutatorApplyCirclePencil: (writer: PixelWriter<any>, deps?: Deps$d) => {
|
|
832
836
|
applyCirclePencil(color: Color32, centerX: number, centerY: number, brush: CircleBrushMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
833
837
|
};
|
|
834
838
|
|
|
@@ -846,17 +850,17 @@ declare const mutatorApplyCirclePencil: (writer: PixelWriter<any>, deps?: Deps$b
|
|
|
846
850
|
*/
|
|
847
851
|
declare function blendColorPixelDataBinaryMask(dst: IPixelData, color: Color32, mask: BinaryMask, opts?: ColorBlendMaskOptions): void;
|
|
848
852
|
|
|
849
|
-
declare const defaults$
|
|
853
|
+
declare const defaults$c: {
|
|
850
854
|
forEachLinePoint: typeof forEachLinePoint;
|
|
851
855
|
blendColorPixelDataBinaryMask: typeof blendColorPixelDataBinaryMask;
|
|
852
856
|
getCircleBrushOrPencilBounds: typeof getCircleBrushOrPencilBounds;
|
|
853
857
|
getCircleBrushOrPencilStrokeBounds: typeof getCircleBrushOrPencilStrokeBounds;
|
|
854
858
|
};
|
|
855
|
-
type Deps$
|
|
859
|
+
type Deps$c = Partial<typeof defaults$c>;
|
|
856
860
|
/**
|
|
857
861
|
* @param deps - @hidden
|
|
858
862
|
*/
|
|
859
|
-
declare const mutatorApplyCirclePencilStroke: (writer: PixelWriter<any>, deps?: Deps$
|
|
863
|
+
declare const mutatorApplyCirclePencilStroke: (writer: PixelWriter<any>, deps?: Deps$c) => {
|
|
860
864
|
applyCirclePencilStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brush: CircleBrushBinaryMask, alpha?: number, blendFn?: BlendColor32): void;
|
|
861
865
|
};
|
|
862
866
|
|
|
@@ -864,71 +868,71 @@ declare function applyRectBrushToPixelData(target: IPixelData, color: Color32, c
|
|
|
864
868
|
|
|
865
869
|
declare function getRectBrushOrPencilBounds(centerX: number, centerY: number, brushWidth: number, brushHeight: number, targetWidth: number, targetHeight: number, out?: Rect): Rect;
|
|
866
870
|
|
|
867
|
-
declare const defaults$
|
|
871
|
+
declare const defaults$b: {
|
|
868
872
|
applyRectBrushToPixelData: typeof applyRectBrushToPixelData;
|
|
869
873
|
getRectBrushOrPencilBounds: typeof getRectBrushOrPencilBounds;
|
|
870
874
|
fallOff: () => number;
|
|
871
875
|
};
|
|
872
|
-
type Deps$
|
|
876
|
+
type Deps$b = Partial<typeof defaults$b>;
|
|
873
877
|
/**
|
|
874
878
|
* @param deps - @hidden
|
|
875
879
|
*/
|
|
876
|
-
declare const mutatorApplyRectPencil: (writer: PixelWriter<any>, deps?: Deps$
|
|
880
|
+
declare const mutatorApplyRectPencil: (writer: PixelWriter<any>, deps?: Deps$b) => {
|
|
877
881
|
applyRectPencil(color: Color32, centerX: number, centerY: number, brushWidth: number, brushHeight: number, alpha?: number, blendFn?: BlendColor32): void;
|
|
878
882
|
};
|
|
879
883
|
|
|
880
884
|
declare function getRectBrushOrPencilStrokeBounds(x0: number, y0: number, x1: number, y1: number, brushWidth: number, brushHeight: number, result: Rect): Rect;
|
|
881
885
|
|
|
882
|
-
declare const defaults$
|
|
886
|
+
declare const defaults$a: {
|
|
883
887
|
forEachLinePoint: typeof forEachLinePoint;
|
|
884
888
|
getRectBrushOrPencilBounds: typeof getRectBrushOrPencilBounds;
|
|
885
889
|
getRectBrushOrPencilStrokeBounds: typeof getRectBrushOrPencilStrokeBounds;
|
|
886
890
|
blendColorPixelDataBinaryMask: typeof blendColorPixelDataBinaryMask;
|
|
887
891
|
};
|
|
888
|
-
type Deps$
|
|
892
|
+
type Deps$a = Partial<typeof defaults$a>;
|
|
889
893
|
/**
|
|
890
894
|
* @param deps - @hidden
|
|
891
895
|
*/
|
|
892
|
-
declare const mutatorApplyRectPencilStroke: (writer: PixelWriter<any>, deps?: Deps$
|
|
896
|
+
declare const mutatorApplyRectPencilStroke: (writer: PixelWriter<any>, deps?: Deps$a) => {
|
|
893
897
|
applyRectPencilStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brushWidth: number, brushHeight: number, alpha?: number, blendFn?: BlendColor32): void;
|
|
894
898
|
};
|
|
895
899
|
|
|
896
|
-
declare const defaults$
|
|
900
|
+
declare const defaults$9: {
|
|
897
901
|
applyRectBrushToPixelData: typeof applyRectBrushToPixelData;
|
|
898
902
|
getRectBrushOrPencilBounds: typeof getRectBrushOrPencilBounds;
|
|
899
903
|
};
|
|
900
|
-
type Deps$
|
|
904
|
+
type Deps$9 = Partial<typeof defaults$9>;
|
|
901
905
|
/**
|
|
902
906
|
* @param deps - @hidden
|
|
903
907
|
*/
|
|
904
|
-
declare const mutatorApplyRectBrush: (writer: PixelWriter<any>, deps?: Deps$
|
|
908
|
+
declare const mutatorApplyRectBrush: (writer: PixelWriter<any>, deps?: Deps$9) => {
|
|
905
909
|
applyRectBrush(color: Color32, centerX: number, centerY: number, brushWidth: number, brushHeight: number, alpha: number | undefined, fallOff: (dist: number) => number, blendFn?: BlendColor32): void;
|
|
906
910
|
};
|
|
907
911
|
|
|
908
|
-
declare const defaults$
|
|
912
|
+
declare const defaults$8: {
|
|
909
913
|
forEachLinePoint: typeof forEachLinePoint;
|
|
910
914
|
blendColorPixelDataAlphaMask: typeof blendColorPixelDataAlphaMask;
|
|
911
915
|
getRectBrushOrPencilBounds: typeof getRectBrushOrPencilBounds;
|
|
912
916
|
getRectBrushOrPencilStrokeBounds: typeof getRectBrushOrPencilStrokeBounds;
|
|
913
917
|
};
|
|
914
|
-
type Deps$
|
|
918
|
+
type Deps$8 = Partial<typeof defaults$8>;
|
|
915
919
|
/**
|
|
916
920
|
* @param deps - @hidden
|
|
917
921
|
*/
|
|
918
|
-
declare const mutatorApplyRectBrushStroke: (writer: PixelWriter<any>, deps?: Deps$
|
|
922
|
+
declare const mutatorApplyRectBrushStroke: (writer: PixelWriter<any>, deps?: Deps$8) => {
|
|
919
923
|
applyRectBrushStroke(color: Color32, x0: number, y0: number, x1: number, y1: number, brushWidth: number, brushHeight: number, alpha: number | undefined, fallOff: (dist: number) => number, blendFn?: BlendColor32): void;
|
|
920
924
|
};
|
|
921
925
|
|
|
922
926
|
declare function blendColorPixelData(dst: IPixelData, color: Color32, opts?: ColorBlendOptions): void;
|
|
923
927
|
|
|
924
|
-
declare const defaults$
|
|
928
|
+
declare const defaults$7: {
|
|
925
929
|
blendColorPixelData: typeof blendColorPixelData;
|
|
926
930
|
};
|
|
927
|
-
type Deps$
|
|
931
|
+
type Deps$7 = Partial<typeof defaults$7>;
|
|
928
932
|
/**
|
|
929
933
|
* @param deps - @hidden
|
|
930
934
|
*/
|
|
931
|
-
declare const mutatorBlendColor: (writer: PixelWriter<any>, deps?: Deps$
|
|
935
|
+
declare const mutatorBlendColor: (writer: PixelWriter<any>, deps?: Deps$7) => {
|
|
932
936
|
blendColor(color: Color32, opts?: ColorBlendOptions): void;
|
|
933
937
|
};
|
|
934
938
|
|
|
@@ -950,17 +954,43 @@ declare function mutatorBlendPixel(writer: PixelWriter<any>): {
|
|
|
950
954
|
* maskType: MaskType.ALPHA
|
|
951
955
|
* });
|
|
952
956
|
*/
|
|
953
|
-
declare function blendPixelData(dst: IPixelData, src: IPixelData, opts
|
|
957
|
+
declare function blendPixelData(dst: IPixelData, src: IPixelData, opts?: PixelBlendOptions): void;
|
|
954
958
|
|
|
955
|
-
declare const defaults$
|
|
959
|
+
declare const defaults$6: {
|
|
956
960
|
blendPixelData: typeof blendPixelData;
|
|
957
961
|
};
|
|
962
|
+
type Deps$6 = Partial<typeof defaults$6>;
|
|
963
|
+
/**
|
|
964
|
+
* @param deps - @hidden
|
|
965
|
+
*/
|
|
966
|
+
declare const mutatorBlendPixelData: (writer: PixelWriter<any>, deps?: Partial<Deps$6>) => {
|
|
967
|
+
blendPixelData(src: IPixelData, opts?: PixelBlendOptions): void;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
declare function blendPixelDataAlphaMask(dst: IPixelData, src: IPixelData, alphaMask: AlphaMask, opts?: PixelBlendMaskOptions): void;
|
|
971
|
+
|
|
972
|
+
declare const defaults$5: {
|
|
973
|
+
blendPixelDataAlphaMask: typeof blendPixelDataAlphaMask;
|
|
974
|
+
};
|
|
975
|
+
type Deps$5 = Partial<typeof defaults$5>;
|
|
976
|
+
/**
|
|
977
|
+
* @param deps - @hidden
|
|
978
|
+
*/
|
|
979
|
+
declare const mutatorBlendPixelDataAlphaMask: (writer: PixelWriter<any>, deps?: Partial<Deps$5>) => {
|
|
980
|
+
blendPixelDataAlphaMask(src: IPixelData, mask: AlphaMask, opts?: PixelBlendMaskOptions): void;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
declare function blendPixelDataBinaryMask(dst: IPixelData, src: IPixelData, binaryMask: BinaryMask, opts?: PixelBlendMaskOptions): void;
|
|
984
|
+
|
|
985
|
+
declare const defaults$4: {
|
|
986
|
+
blendPixelDataBinaryMask: typeof blendPixelDataBinaryMask;
|
|
987
|
+
};
|
|
958
988
|
type Deps$4 = Partial<typeof defaults$4>;
|
|
959
989
|
/**
|
|
960
990
|
* @param deps - @hidden
|
|
961
991
|
*/
|
|
962
|
-
declare const
|
|
963
|
-
|
|
992
|
+
declare const mutatorBlendPixelDataBinaryMask: (writer: PixelWriter<any>, deps?: Partial<Deps$4>) => {
|
|
993
|
+
blendPixelDataBinaryMask(src: IPixelData, mask: BinaryMask, opts?: PixelBlendMaskOptions): void;
|
|
964
994
|
};
|
|
965
995
|
|
|
966
996
|
/**
|
|
@@ -990,7 +1020,7 @@ type Deps$3 = Partial<typeof defaults$3>;
|
|
|
990
1020
|
* @param deps - @hidden
|
|
991
1021
|
*/
|
|
992
1022
|
declare const mutatorClear: (writer: PixelWriter<any>, deps?: Deps$3) => {
|
|
993
|
-
clear(rect?: Partial<
|
|
1023
|
+
clear(rect?: Partial<Rect>): void;
|
|
994
1024
|
};
|
|
995
1025
|
|
|
996
1026
|
declare const defaults$2: {
|
|
@@ -1506,10 +1536,6 @@ declare function merge2BinaryMaskRects(a: NullableBinaryMaskRect, b: NullableBin
|
|
|
1506
1536
|
|
|
1507
1537
|
declare function mergeBinaryMaskRects(current: NullableBinaryMaskRect[], adding: NullableBinaryMaskRect[]): NullableBinaryMaskRect[];
|
|
1508
1538
|
|
|
1509
|
-
declare function blendPixelDataAlphaMask(dst: IPixelData, src: IPixelData, alphaMask: AlphaMask, opts?: PixelBlendMaskOptions): void;
|
|
1510
|
-
|
|
1511
|
-
declare function blendPixelDataBinaryMask(dst: IPixelData, src: IPixelData, binaryMask: BinaryMask, opts: PixelBlendMaskOptions): void;
|
|
1512
|
-
|
|
1513
1539
|
/**
|
|
1514
1540
|
* Clears a region of the PixelData to transparent (0x00000000).
|
|
1515
1541
|
* Internally uses the optimized fillPixelData.
|
|
@@ -1588,4 +1614,4 @@ declare function getRectsBounds<T extends Rect>(rects: T[]): T;
|
|
|
1588
1614
|
*/
|
|
1589
1615
|
declare function trimRectBounds<T extends NullableMaskRect>(target: T, bounds: Rect): void;
|
|
1590
1616
|
|
|
1591
|
-
export { type AlphaMask, type AlphaMaskRect, type ApplyMaskToPixelDataOptions, BASE_FAST_BLEND_MODE_FUNCTIONS, BASE_PERFECT_BLEND_MODE_FUNCTIONS, type Base64EncodedUInt8Array, BaseBlendMode, type BaseBlendModes, type BasePixelBlendOptions, type BinaryMask, type BinaryMaskRect, type BlendColor32, type BlendModeRegistry, CANVAS_CTX_FAILED, type CircleBrushAlphaMask, type CircleBrushBinaryMask, type CircleBrushMask, type Color32, type ColorBlendMaskOptions, type ColorBlendOptions, type FloodFillImageDataOptions, type FloodFillResult, type HistoryAction, HistoryManager, type HistoryMutator, type IPixelData, type ImageDataLike, type ImageDataLikeConstructor, IndexedImage, type InvertMask, type Mask, type MaskOffset, MaskType, type MergeAlphaMasksOptions, type NullableBinaryMaskRect, type NullableMaskRect, OFFSCREEN_CANVAS_CTX_FAILED, PixelAccumulator, type PixelBlendMaskOptions, type PixelBlendOptions, PixelBuffer32, type PixelCanvas, PixelData, PixelEngineConfig, type PixelMutateOptions, type PixelPatchTiles, type PixelRect, PixelTile, PixelWriter, type PixelWriterOptions, type RGBA, type Rect, type RequiredBlendModes, type ReusableCanvas, type ReusableImageData, type SerializedImageData, UnsupportedFormatError, applyAlphaMaskToPixelData, applyBinaryMaskToAlphaMask, applyBinaryMaskToPixelData, applyCircleBrushToPixelData, applyPatchTiles, applyRectBrushToPixelData, base64DecodeArrayBuffer, base64EncodeArrayBuffer, blendColorPixelData, blendColorPixelDataAlphaMask, blendColorPixelDataBinaryMask, blendPixelData, blendPixelDataAlphaMask, blendPixelDataBinaryMask, clearPixelData, color32ToCssRGBA, color32ToHex, colorBurnFast, colorBurnPerfect, colorDistance, colorDodgeFast, colorDodgePerfect, copyImageData, copyImageDataLike, copyMask, darkenFast, darkenPerfect, darkerFast, darkerPerfect, deserializeImageData, deserializeNullableImageData, deserializeRawImageData, differenceFast, differencePerfect, divideFast, dividePerfect, exclusionFast, exclusionPerfect, extractImageDataBuffer, extractMask, extractMaskBuffer, extractPixelData, extractPixelDataBuffer, fileInputChangeToImageData, fileToImageData, fillPixelData, fillPixelDataBinaryMask, floodFillSelection, forEachLinePoint, getCircleBrushOrPencilBounds, getCircleBrushOrPencilStrokeBounds, getImageDataFromClipboard, getIndexedImageColorCounts, getRectBrushOrPencilBounds, getRectBrushOrPencilStrokeBounds, getRectsBounds, getSupportedPixelFormats, hardLightFast, hardLightPerfect, hardMixFast, hardMixPerfect, imageDataToAlphaMaskBuffer, imageDataToDataUrl, imageDataToImgBlob, imageDataToUInt32Array, imgBlobToImageData, indexedImageToAverageColor, indexedImageToImageData, invertAlphaMask, invertBinaryMask, invertImageData, invertPixelData, lerpColor32, lerpColor32Fast, lightenFast, lightenPerfect, lighterFast, lighterPerfect, linearBurnFast, linearBurnPerfect, linearDodgeFast, linearDodgePerfect, linearLightFast, linearLightPerfect, makeAlphaMask, makeBinaryMask, makeBlendModeRegistry, makeCircleBrushAlphaMask, makeCircleBrushBinaryMask, makeFastBlendModeRegistry, makeFullPixelMutator, makeImageDataLike, makePerfectBlendModeRegistry, makePixelCanvas, makeReusableCanvas, makeReusableImageData, merge2BinaryMaskRects, mergeAlphaMasks, mergeBinaryMaskRects, mergeBinaryMasks, multiplyFast, multiplyPerfect, mutatorApplyAlphaMask, mutatorApplyBinaryMask, mutatorApplyCircleBrush, mutatorApplyCircleBrushStroke, mutatorApplyCirclePencil, mutatorApplyCirclePencilStroke, mutatorApplyRectBrush, mutatorApplyRectBrushStroke, mutatorApplyRectPencil, mutatorApplyRectPencilStroke, mutatorBlendColor, mutatorBlendPixel, mutatorBlendPixelData, mutatorClear, mutatorFill, mutatorFillBinaryMask, mutatorInvert, overlayFast, overlayPerfect, overwriteBase, overwriteFast, overwritePerfect, packColor, packRGBA, pinLightFast, pinLightPerfect, pixelDataToAlphaMask, reflectPixelDataHorizontal, reflectPixelDataVertical, resampleImageData, resampleIndexedImage, resamplePixelData, resizeImageData, rotatePixelData, screenFast, screenPerfect, serializeImageData, serializeNullableImageData, setMaskData, softLightFast, softLightPerfect, sourceOverFast, sourceOverPerfect, subtractBinaryMaskRects, subtractFast, subtractPerfect, toBlendModeIndexAndName, trimRectBounds, uInt32ArrayToImageData, uInt32ArrayToImageDataLike, unpackAlpha, unpackBlue, unpackColor, unpackColorTo, unpackGreen, unpackRed, vividLightFast, vividLightPerfect, writeImageData, writeImageDataBuffer, writeImageDataToClipboard, writeImgBlobToClipboard, writePixelDataBuffer };
|
|
1617
|
+
export { type AlphaMask, type AlphaMaskRect, type ApplyMaskToPixelDataOptions, BASE_FAST_BLEND_MODE_FUNCTIONS, BASE_PERFECT_BLEND_MODE_FUNCTIONS, type Base64EncodedUInt8Array, BaseBlendMode, type BaseBlendModes, type BasePixelBlendOptions, type BinaryMask, type BinaryMaskRect, type BlendColor32, type BlendModeRegistry, CANVAS_CTX_FAILED, type CircleBrushAlphaMask, type CircleBrushBinaryMask, type CircleBrushMask, type Color32, type ColorBlendMaskOptions, type ColorBlendOptions, type FloodFillImageDataOptions, type FloodFillResult, type HistoryAction, HistoryManager, type HistoryMutator, type IPixelData, type ImageDataLike, type ImageDataLikeConstructor, IndexedImage, type InvertMask, type Mask, type MaskOffset, MaskType, type MergeAlphaMasksOptions, type NullableBinaryMaskRect, type NullableMaskRect, OFFSCREEN_CANVAS_CTX_FAILED, PixelAccumulator, type PixelBlendMaskOptions, type PixelBlendOptions, PixelBuffer32, type PixelCanvas, PixelData, PixelEngineConfig, type PixelMutateOptions, type PixelPatchTiles, type PixelRect, PixelTile, PixelWriter, type PixelWriterOptions, type RGBA, type Rect, type RequiredBlendModes, type ReusableCanvas, type ReusableImageData, type SerializedImageData, UnsupportedFormatError, applyAlphaMaskToPixelData, applyBinaryMaskToAlphaMask, applyBinaryMaskToPixelData, applyCircleBrushToPixelData, applyPatchTiles, applyRectBrushToPixelData, base64DecodeArrayBuffer, base64EncodeArrayBuffer, blendColorPixelData, blendColorPixelDataAlphaMask, blendColorPixelDataBinaryMask, blendPixelData, blendPixelDataAlphaMask, blendPixelDataBinaryMask, clearPixelData, color32ToCssRGBA, color32ToHex, colorBurnFast, colorBurnPerfect, colorDistance, colorDodgeFast, colorDodgePerfect, copyImageData, copyImageDataLike, copyMask, darkenFast, darkenPerfect, darkerFast, darkerPerfect, deserializeImageData, deserializeNullableImageData, deserializeRawImageData, differenceFast, differencePerfect, divideFast, dividePerfect, exclusionFast, exclusionPerfect, extractImageDataBuffer, extractMask, extractMaskBuffer, extractPixelData, extractPixelDataBuffer, fileInputChangeToImageData, fileToImageData, fillPixelData, fillPixelDataBinaryMask, floodFillSelection, forEachLinePoint, getCircleBrushOrPencilBounds, getCircleBrushOrPencilStrokeBounds, getImageDataFromClipboard, getIndexedImageColorCounts, getRectBrushOrPencilBounds, getRectBrushOrPencilStrokeBounds, getRectsBounds, getSupportedPixelFormats, hardLightFast, hardLightPerfect, hardMixFast, hardMixPerfect, imageDataToAlphaMaskBuffer, imageDataToDataUrl, imageDataToImgBlob, imageDataToUInt32Array, imgBlobToImageData, indexedImageToAverageColor, indexedImageToImageData, invertAlphaMask, invertBinaryMask, invertImageData, invertPixelData, lerpColor32, lerpColor32Fast, lightenFast, lightenPerfect, lighterFast, lighterPerfect, linearBurnFast, linearBurnPerfect, linearDodgeFast, linearDodgePerfect, linearLightFast, linearLightPerfect, makeAlphaMask, makeBinaryMask, makeBlendModeRegistry, makeCircleBrushAlphaMask, makeCircleBrushBinaryMask, makeFastBlendModeRegistry, makeFullPixelMutator, makeImageDataLike, makePerfectBlendModeRegistry, makePixelCanvas, makeReusableCanvas, makeReusableImageData, merge2BinaryMaskRects, mergeAlphaMasks, mergeBinaryMaskRects, mergeBinaryMasks, multiplyFast, multiplyPerfect, mutatorApplyAlphaMask, mutatorApplyBinaryMask, mutatorApplyCircleBrush, mutatorApplyCircleBrushStroke, mutatorApplyCirclePencil, mutatorApplyCirclePencilStroke, mutatorApplyRectBrush, mutatorApplyRectBrushStroke, mutatorApplyRectPencil, mutatorApplyRectPencilStroke, mutatorBlendColor, mutatorBlendPixel, mutatorBlendPixelData, mutatorBlendPixelDataAlphaMask, mutatorBlendPixelDataBinaryMask, mutatorClear, mutatorFill, mutatorFillBinaryMask, mutatorInvert, overlayFast, overlayPerfect, overwriteBase, overwriteFast, overwritePerfect, packColor, packRGBA, pinLightFast, pinLightPerfect, pixelDataToAlphaMask, reflectPixelDataHorizontal, reflectPixelDataVertical, resampleImageData, resampleIndexedImage, resamplePixelData, resizeImageData, rotatePixelData, screenFast, screenPerfect, serializeImageData, serializeNullableImageData, setMaskData, softLightFast, softLightPerfect, sourceOverFast, sourceOverPerfect, subtractBinaryMaskRects, subtractFast, subtractPerfect, toBlendModeIndexAndName, trimRectBounds, uInt32ArrayToImageData, uInt32ArrayToImageDataLike, unpackAlpha, unpackBlue, unpackColor, unpackColorTo, unpackGreen, unpackRed, vividLightFast, vividLightPerfect, writeImageData, writeImageDataBuffer, writeImageDataToClipboard, writeImgBlobToClipboard, writePixelDataBuffer };
|