@pixerate/editor-react 0.76.0 → 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.
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +14 -0
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +14 -0
- package/dist/canvas/index.cjs +662 -561
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +36 -5
- package/dist/canvas/index.d.ts +36 -5
- package/dist/canvas/index.js +232 -129
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-MO354USR.js +126 -0
- package/dist/chunk-MO354USR.js.map +1 -0
- package/dist/{chunk-LWMUV5TC.js → chunk-QARGR5E5.js} +278 -253
- package/dist/chunk-QARGR5E5.js.map +1 -0
- package/dist/image-editor/index.cjs +677 -531
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +8 -2
- package/dist/image-editor/index.d.ts +8 -2
- package/dist/image-editor/index.js +4 -1
- package/dist/index.cjs +1095 -949
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +438 -289
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +8 -3
- package/dist/paint-editor/index.d.ts +8 -3
- package/dist/paint-editor/index.js +215 -187
- package/dist/paint-editor/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-LWMUV5TC.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaintEditorController, PaintEditorState, PaintDirectorOptions, PaintPresence, PaintDirector, PaintEditorOptions, PaintTool, PaintView, SliderControl } from '@pixerate/editor/paint-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
+
import { P as PaintGradientEditorProps } from '../PaintGradientEditorView-CCPCY5Ib.cjs';
|
|
3
4
|
|
|
4
5
|
interface UsePaintEditorReturn {
|
|
5
6
|
controller: PaintEditorController;
|
|
@@ -91,7 +92,7 @@ interface BrushPanelProps {
|
|
|
91
92
|
* angle, paper grain, position and pressure smoothing, dynamics, rotation mode and blend mode;
|
|
92
93
|
* then the engine's own controls (`brushEngineControls`): blender strength and blend distance,
|
|
93
94
|
* smudge strength and length, pick-up and mix ratios, RGB / pigment mixing, dirty brush,
|
|
94
|
-
* multi-colour and the brush load. Save the edited brush, import and export libraries as JSON.
|
|
95
|
+
* the brush's own gradient paint (the multi-colour brush) and the brush load. Save the edited brush, import and export libraries as JSON.
|
|
95
96
|
*/
|
|
96
97
|
declare const BrushPanel: React__default.FC<BrushPanelProps>;
|
|
97
98
|
|
|
@@ -142,7 +143,8 @@ interface WetPanelProps {
|
|
|
142
143
|
* Wet media: whether paint is wet, Dry now, Pause / Resume, the water overlay and speed; Wet paper
|
|
143
144
|
* on the active layer; canvas tilt; the active layer's wet settings (viscosity, evaporation, edge
|
|
144
145
|
* darkening, granulation, blooms, bleed, pigment weight, lifting, staining) and flow map; and the
|
|
145
|
-
* kernel in use, with a note when it runs slower than it could (no cross-origin isolation)
|
|
146
|
+
* kernel in use, with a note when it runs slower than it could (no cross-origin isolation); and
|
|
147
|
+
* Engine B, the WebGPU accelerator for large washes, with a switch to force the CPU.
|
|
146
148
|
*/
|
|
147
149
|
declare const WetPanel: React__default.FC<WetPanelProps>;
|
|
148
150
|
|
|
@@ -184,4 +186,7 @@ declare const PaintSlider: React__default.FC<{
|
|
|
184
186
|
onCommit?: (v: number) => void;
|
|
185
187
|
}>;
|
|
186
188
|
|
|
187
|
-
|
|
189
|
+
/** The gradient paint editor (see `PaintGradientEditorView`). */
|
|
190
|
+
declare const PaintGradientEditor: React__default.FC<PaintGradientEditorProps>;
|
|
191
|
+
|
|
192
|
+
export { BrushPanel, type BrushPanelProps, ColorPanel, type ColorPanelProps, PaintCanvas, type PaintCanvasProps, PaintEditor, type PaintEditorProps, PaintGradientEditor, PaintGradientEditorProps, PaintLayersPanel, type PaintLayersPanelProps, PaintPresenceLayer, PaintSlider, PaintToolbar, type PaintToolbarProps, PaperPanel, type PaperPanelProps, StickerPanel, type StickerPanelProps, type UsePaintEditorReturn, WetPanel, type WetPanelProps, usePaintDirector, usePaintEditor, usePaintEditorState };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaintEditorController, PaintEditorState, PaintDirectorOptions, PaintPresence, PaintDirector, PaintEditorOptions, PaintTool, PaintView, SliderControl } from '@pixerate/editor/paint-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
+
import { P as PaintGradientEditorProps } from '../PaintGradientEditorView-CCPCY5Ib.js';
|
|
3
4
|
|
|
4
5
|
interface UsePaintEditorReturn {
|
|
5
6
|
controller: PaintEditorController;
|
|
@@ -91,7 +92,7 @@ interface BrushPanelProps {
|
|
|
91
92
|
* angle, paper grain, position and pressure smoothing, dynamics, rotation mode and blend mode;
|
|
92
93
|
* then the engine's own controls (`brushEngineControls`): blender strength and blend distance,
|
|
93
94
|
* smudge strength and length, pick-up and mix ratios, RGB / pigment mixing, dirty brush,
|
|
94
|
-
* multi-colour and the brush load. Save the edited brush, import and export libraries as JSON.
|
|
95
|
+
* the brush's own gradient paint (the multi-colour brush) and the brush load. Save the edited brush, import and export libraries as JSON.
|
|
95
96
|
*/
|
|
96
97
|
declare const BrushPanel: React__default.FC<BrushPanelProps>;
|
|
97
98
|
|
|
@@ -142,7 +143,8 @@ interface WetPanelProps {
|
|
|
142
143
|
* Wet media: whether paint is wet, Dry now, Pause / Resume, the water overlay and speed; Wet paper
|
|
143
144
|
* on the active layer; canvas tilt; the active layer's wet settings (viscosity, evaporation, edge
|
|
144
145
|
* darkening, granulation, blooms, bleed, pigment weight, lifting, staining) and flow map; and the
|
|
145
|
-
* kernel in use, with a note when it runs slower than it could (no cross-origin isolation)
|
|
146
|
+
* kernel in use, with a note when it runs slower than it could (no cross-origin isolation); and
|
|
147
|
+
* Engine B, the WebGPU accelerator for large washes, with a switch to force the CPU.
|
|
146
148
|
*/
|
|
147
149
|
declare const WetPanel: React__default.FC<WetPanelProps>;
|
|
148
150
|
|
|
@@ -184,4 +186,7 @@ declare const PaintSlider: React__default.FC<{
|
|
|
184
186
|
onCommit?: (v: number) => void;
|
|
185
187
|
}>;
|
|
186
188
|
|
|
187
|
-
|
|
189
|
+
/** The gradient paint editor (see `PaintGradientEditorView`). */
|
|
190
|
+
declare const PaintGradientEditor: React__default.FC<PaintGradientEditorProps>;
|
|
191
|
+
|
|
192
|
+
export { BrushPanel, type BrushPanelProps, ColorPanel, type ColorPanelProps, PaintCanvas, type PaintCanvasProps, PaintEditor, type PaintEditorProps, PaintGradientEditor, PaintGradientEditorProps, PaintLayersPanel, type PaintLayersPanelProps, PaintPresenceLayer, PaintSlider, PaintToolbar, type PaintToolbarProps, PaperPanel, type PaperPanelProps, StickerPanel, type StickerPanelProps, type UsePaintEditorReturn, WetPanel, type WetPanelProps, usePaintDirector, usePaintEditor, usePaintEditorState };
|