@pixerate/editor-react 0.62.0 → 0.64.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/{chunk-OSOGA2OJ.js → chunk-M4WLX3IR.js} +628 -365
- package/dist/chunk-M4WLX3IR.js.map +1 -0
- package/dist/image-editor/index.cjs +661 -398
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +23 -5
- package/dist/image-editor/index.d.ts +23 -5
- package/dist/image-editor/index.js +3 -1
- package/dist/index.cjs +1079 -816
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-OSOGA2OJ.js.map +0 -1
|
@@ -166,25 +166,43 @@ interface LayersPanelProps {
|
|
|
166
166
|
psd?: boolean;
|
|
167
167
|
/** Base name of exported PSD files (default `image`). */
|
|
168
168
|
psdFileName?: string;
|
|
169
|
+
/** Show the active layer's effects section (default true). */
|
|
170
|
+
effects?: boolean;
|
|
169
171
|
className?: string;
|
|
170
172
|
}
|
|
171
173
|
/**
|
|
172
174
|
* The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
|
|
173
175
|
* mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
|
|
174
176
|
* into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
|
|
175
|
-
* (right-click a row, or the ⋯ button)
|
|
177
|
+
* (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
|
|
178
|
+
* on or off) and the active layer's effects. Every action is one undo step on the controller.
|
|
176
179
|
*/
|
|
177
180
|
declare const LayersPanel: React__default.FC<LayersPanelProps>;
|
|
178
181
|
|
|
182
|
+
interface LayerEffectsPanelProps {
|
|
183
|
+
controller: ImageEditorController;
|
|
184
|
+
/** The layer whose effects to show (default: the active layer). */
|
|
185
|
+
layerId?: string | null;
|
|
186
|
+
className?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
|
|
190
|
+
* menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
|
|
191
|
+
* Every change is one undo step (a slider drag is one step too).
|
|
192
|
+
*/
|
|
193
|
+
declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
|
|
194
|
+
|
|
179
195
|
interface BrushOptionsBarProps {
|
|
180
196
|
controller: ImageEditorController;
|
|
181
197
|
className?: string;
|
|
182
198
|
}
|
|
183
199
|
/**
|
|
184
|
-
* The paint tools: Move / Brush / Eraser, the brush's size, hardness, opacity, flow and
|
|
185
|
-
* pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
186
|
-
* Clear on the active layer.
|
|
200
|
+
* The paint tools: Move / Brush / Mixer / Eraser, the brush's size, hardness, opacity, flow and
|
|
201
|
+
* smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
202
|
+
* Edit › Fill / Clear on the active layer. With the Mixer Brush: its load (Load brush / Clean
|
|
203
|
+
* brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
|
|
204
|
+
* Shortcuts are handled by `handlePaintShortcut` in the editor.
|
|
187
205
|
*/
|
|
188
206
|
declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
|
|
189
207
|
|
|
190
|
-
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
208
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
@@ -166,25 +166,43 @@ interface LayersPanelProps {
|
|
|
166
166
|
psd?: boolean;
|
|
167
167
|
/** Base name of exported PSD files (default `image`). */
|
|
168
168
|
psdFileName?: string;
|
|
169
|
+
/** Show the active layer's effects section (default true). */
|
|
170
|
+
effects?: boolean;
|
|
169
171
|
className?: string;
|
|
170
172
|
}
|
|
171
173
|
/**
|
|
172
174
|
* The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
|
|
173
175
|
* mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
|
|
174
176
|
* into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
|
|
175
|
-
* (right-click a row, or the ⋯ button)
|
|
177
|
+
* (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
|
|
178
|
+
* on or off) and the active layer's effects. Every action is one undo step on the controller.
|
|
176
179
|
*/
|
|
177
180
|
declare const LayersPanel: React__default.FC<LayersPanelProps>;
|
|
178
181
|
|
|
182
|
+
interface LayerEffectsPanelProps {
|
|
183
|
+
controller: ImageEditorController;
|
|
184
|
+
/** The layer whose effects to show (default: the active layer). */
|
|
185
|
+
layerId?: string | null;
|
|
186
|
+
className?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
|
|
190
|
+
* menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
|
|
191
|
+
* Every change is one undo step (a slider drag is one step too).
|
|
192
|
+
*/
|
|
193
|
+
declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
|
|
194
|
+
|
|
179
195
|
interface BrushOptionsBarProps {
|
|
180
196
|
controller: ImageEditorController;
|
|
181
197
|
className?: string;
|
|
182
198
|
}
|
|
183
199
|
/**
|
|
184
|
-
* The paint tools: Move / Brush / Eraser, the brush's size, hardness, opacity, flow and
|
|
185
|
-
* pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
186
|
-
* Clear on the active layer.
|
|
200
|
+
* The paint tools: Move / Brush / Mixer / Eraser, the brush's size, hardness, opacity, flow and
|
|
201
|
+
* smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
202
|
+
* Edit › Fill / Clear on the active layer. With the Mixer Brush: its load (Load brush / Clean
|
|
203
|
+
* brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
|
|
204
|
+
* Shortcuts are handled by `handlePaintShortcut` in the editor.
|
|
187
205
|
*/
|
|
188
206
|
declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
|
|
189
207
|
|
|
190
|
-
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
208
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
CurvesEditor,
|
|
6
6
|
Histogram,
|
|
7
7
|
ImageEditor,
|
|
8
|
+
LayerEffectsPanel,
|
|
8
9
|
LayersPanel,
|
|
9
10
|
RefineEdgePanel,
|
|
10
11
|
SelectionOptionsBar,
|
|
11
12
|
useImageEditor,
|
|
12
13
|
useImageHistogram
|
|
13
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-M4WLX3IR.js";
|
|
14
15
|
export {
|
|
15
16
|
AdjustmentLayersPanel,
|
|
16
17
|
BrushOptionsBar,
|
|
@@ -18,6 +19,7 @@ export {
|
|
|
18
19
|
CurvesEditor,
|
|
19
20
|
Histogram,
|
|
20
21
|
ImageEditor,
|
|
22
|
+
LayerEffectsPanel,
|
|
21
23
|
LayersPanel,
|
|
22
24
|
RefineEdgePanel,
|
|
23
25
|
SelectionOptionsBar,
|