@pixerate/editor-react 0.75.1 → 0.77.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.
Files changed (37) hide show
  1. package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +14 -0
  2. package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +14 -0
  3. package/dist/canvas/index.cjs +662 -561
  4. package/dist/canvas/index.cjs.map +1 -1
  5. package/dist/canvas/index.d.cts +36 -5
  6. package/dist/canvas/index.d.ts +36 -5
  7. package/dist/canvas/index.js +232 -129
  8. package/dist/canvas/index.js.map +1 -1
  9. package/dist/chunk-MO354USR.js +126 -0
  10. package/dist/chunk-MO354USR.js.map +1 -0
  11. package/dist/{chunk-LWMUV5TC.js → chunk-QARGR5E5.js} +278 -253
  12. package/dist/chunk-QARGR5E5.js.map +1 -0
  13. package/dist/image-editor/index.cjs +677 -531
  14. package/dist/image-editor/index.cjs.map +1 -1
  15. package/dist/image-editor/index.d.cts +8 -2
  16. package/dist/image-editor/index.d.ts +8 -2
  17. package/dist/image-editor/index.js +4 -1
  18. package/dist/index.cjs +1095 -949
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +3 -1
  21. package/dist/index.d.ts +3 -1
  22. package/dist/index.js +4 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/paint-editor/index.cjs +438 -289
  25. package/dist/paint-editor/index.cjs.map +1 -1
  26. package/dist/paint-editor/index.d.cts +8 -3
  27. package/dist/paint-editor/index.d.ts +8 -3
  28. package/dist/paint-editor/index.js +215 -187
  29. package/dist/paint-editor/index.js.map +1 -1
  30. package/dist/vector/index.cjs +224 -174
  31. package/dist/vector/index.cjs.map +1 -1
  32. package/dist/vector/index.d.cts +12 -1
  33. package/dist/vector/index.d.ts +12 -1
  34. package/dist/vector/index.js +217 -167
  35. package/dist/vector/index.js.map +1 -1
  36. package/package.json +3 -3
  37. package/dist/chunk-LWMUV5TC.js.map +0 -1
@@ -0,0 +1,14 @@
1
+ import { PaintGradientSource } from '@pixerate/editor/paint-editor';
2
+
3
+ interface PaintGradientEditorProps {
4
+ value: PaintGradientSource;
5
+ onChange: (paint: PaintGradientSource) => void;
6
+ /** What `paint` / `secondary` stops show as (the editor's two colours). */
7
+ colors: {
8
+ paint: string;
9
+ secondary: string;
10
+ };
11
+ className?: string;
12
+ }
13
+
14
+ export type { PaintGradientEditorProps as P };
@@ -0,0 +1,14 @@
1
+ import { PaintGradientSource } from '@pixerate/editor/paint-editor';
2
+
3
+ interface PaintGradientEditorProps {
4
+ value: PaintGradientSource;
5
+ onChange: (paint: PaintGradientSource) => void;
6
+ /** What `paint` / `secondary` stops show as (the editor's two colours). */
7
+ colors: {
8
+ paint: string;
9
+ secondary: string;
10
+ };
11
+ className?: string;
12
+ }
13
+
14
+ export type { PaintGradientEditorProps as P };