@pixerate/editor-react 0.70.0 → 0.72.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-LCTQWNTL.js → chunk-YAFNCBDA.js} +630 -231
- package/dist/chunk-YAFNCBDA.js.map +1 -0
- package/dist/image-editor/index.cjs +656 -273
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +33 -2
- package/dist/image-editor/index.d.ts +33 -2
- package/dist/image-editor/index.js +5 -1
- package/dist/index.cjs +1085 -702
- 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 +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-LCTQWNTL.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool } from '@pixerate/editor/image-editor';
|
|
1
|
+
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool, ShapeToolOptions, TypeToolOptions, TextEditSession } from '@pixerate/editor/image-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface UseImageEditorReturn {
|
|
@@ -201,6 +201,9 @@ interface BrushOptionsBarProps {
|
|
|
201
201
|
* smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
202
202
|
* Edit › Fill / Clear on the active layer. With the Mixer Brush: its load (Load brush / Clean
|
|
203
203
|
* brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
|
|
204
|
+
* With a retouching tool: the clone source (Alt-click the canvas to set it), Sample, the Spot
|
|
205
|
+
* Healing type, the tone Range, Exposure / Strength and the Aligned / Protect tones / Vibrance
|
|
206
|
+
* toggles that tool uses.
|
|
204
207
|
* Shortcuts are handled by `handlePaintShortcut` in the editor.
|
|
205
208
|
*/
|
|
206
209
|
declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
|
|
@@ -218,4 +221,32 @@ interface FreeTransformOptionsBarProps {
|
|
|
218
221
|
*/
|
|
219
222
|
declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
|
|
220
223
|
|
|
221
|
-
|
|
224
|
+
interface ShapeOptionsBarProps {
|
|
225
|
+
controller: ImageEditorController;
|
|
226
|
+
options: ShapeToolOptions;
|
|
227
|
+
onChange: (options: ShapeToolOptions) => void;
|
|
228
|
+
className?: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
|
|
232
|
+
* the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
|
|
233
|
+
* apply to the active shape layer, as one undo step each.
|
|
234
|
+
*/
|
|
235
|
+
declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
|
|
236
|
+
|
|
237
|
+
interface TypeOptionsBarProps {
|
|
238
|
+
controller: ImageEditorController;
|
|
239
|
+
options: TypeToolOptions;
|
|
240
|
+
onChange: (options: TypeToolOptions) => void;
|
|
241
|
+
/** The text being edited on the canvas: changes style its selection (or all of it). */
|
|
242
|
+
session?: TextEditSession | null;
|
|
243
|
+
className?: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
|
|
247
|
+
* alignment. While text is being edited they style the selection (or the whole text); with a
|
|
248
|
+
* type layer active they style all of it; otherwise they set what the next text uses.
|
|
249
|
+
*/
|
|
250
|
+
declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
|
|
251
|
+
|
|
252
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, FreeTransformOptionsBar, type FreeTransformOptionsBarProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, ShapeOptionsBar, type ShapeOptionsBarProps, TypeOptionsBar, type TypeOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool } from '@pixerate/editor/image-editor';
|
|
1
|
+
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool, ShapeToolOptions, TypeToolOptions, TextEditSession } from '@pixerate/editor/image-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface UseImageEditorReturn {
|
|
@@ -201,6 +201,9 @@ interface BrushOptionsBarProps {
|
|
|
201
201
|
* smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
|
|
202
202
|
* Edit › Fill / Clear on the active layer. With the Mixer Brush: its load (Load brush / Clean
|
|
203
203
|
* brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
|
|
204
|
+
* With a retouching tool: the clone source (Alt-click the canvas to set it), Sample, the Spot
|
|
205
|
+
* Healing type, the tone Range, Exposure / Strength and the Aligned / Protect tones / Vibrance
|
|
206
|
+
* toggles that tool uses.
|
|
204
207
|
* Shortcuts are handled by `handlePaintShortcut` in the editor.
|
|
205
208
|
*/
|
|
206
209
|
declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
|
|
@@ -218,4 +221,32 @@ interface FreeTransformOptionsBarProps {
|
|
|
218
221
|
*/
|
|
219
222
|
declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
|
|
220
223
|
|
|
221
|
-
|
|
224
|
+
interface ShapeOptionsBarProps {
|
|
225
|
+
controller: ImageEditorController;
|
|
226
|
+
options: ShapeToolOptions;
|
|
227
|
+
onChange: (options: ShapeToolOptions) => void;
|
|
228
|
+
className?: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
|
|
232
|
+
* the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
|
|
233
|
+
* apply to the active shape layer, as one undo step each.
|
|
234
|
+
*/
|
|
235
|
+
declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
|
|
236
|
+
|
|
237
|
+
interface TypeOptionsBarProps {
|
|
238
|
+
controller: ImageEditorController;
|
|
239
|
+
options: TypeToolOptions;
|
|
240
|
+
onChange: (options: TypeToolOptions) => void;
|
|
241
|
+
/** The text being edited on the canvas: changes style its selection (or all of it). */
|
|
242
|
+
session?: TextEditSession | null;
|
|
243
|
+
className?: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
|
|
247
|
+
* alignment. While text is being edited they style the selection (or the whole text); with a
|
|
248
|
+
* type layer active they style all of it; otherwise they set what the next text uses.
|
|
249
|
+
*/
|
|
250
|
+
declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
|
|
251
|
+
|
|
252
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, FreeTransformOptionsBar, type FreeTransformOptionsBarProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, ShapeOptionsBar, type ShapeOptionsBarProps, TypeOptionsBar, type TypeOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
@@ -10,9 +10,11 @@ import {
|
|
|
10
10
|
LayersPanel,
|
|
11
11
|
RefineEdgePanel,
|
|
12
12
|
SelectionOptionsBar,
|
|
13
|
+
ShapeOptionsBar,
|
|
14
|
+
TypeOptionsBar,
|
|
13
15
|
useImageEditor,
|
|
14
16
|
useImageHistogram
|
|
15
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-YAFNCBDA.js";
|
|
16
18
|
export {
|
|
17
19
|
AdjustmentLayersPanel,
|
|
18
20
|
BrushOptionsBar,
|
|
@@ -25,6 +27,8 @@ export {
|
|
|
25
27
|
LayersPanel,
|
|
26
28
|
RefineEdgePanel,
|
|
27
29
|
SelectionOptionsBar,
|
|
30
|
+
ShapeOptionsBar,
|
|
31
|
+
TypeOptionsBar,
|
|
28
32
|
useImageEditor,
|
|
29
33
|
useImageHistogram
|
|
30
34
|
};
|