@pixerate/editor-react 0.69.0 → 0.71.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-63FQB5BT.js} +577 -226
- package/dist/chunk-63FQB5BT.js.map +1 -0
- package/dist/image-editor/index.cjs +616 -269
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +30 -2
- package/dist/image-editor/index.d.ts +30 -2
- package/dist/image-editor/index.js +5 -1
- package/dist/index.cjs +1045 -698
- 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/dist/paint-editor/index.cjs +108 -2
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +6 -3
- package/dist/paint-editor/index.d.ts +6 -3
- package/dist/paint-editor/index.js +125 -6
- package/dist/paint-editor/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 {
|
|
@@ -218,4 +218,32 @@ interface FreeTransformOptionsBarProps {
|
|
|
218
218
|
*/
|
|
219
219
|
declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
interface ShapeOptionsBarProps {
|
|
222
|
+
controller: ImageEditorController;
|
|
223
|
+
options: ShapeToolOptions;
|
|
224
|
+
onChange: (options: ShapeToolOptions) => void;
|
|
225
|
+
className?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
|
|
229
|
+
* the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
|
|
230
|
+
* apply to the active shape layer, as one undo step each.
|
|
231
|
+
*/
|
|
232
|
+
declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
|
|
233
|
+
|
|
234
|
+
interface TypeOptionsBarProps {
|
|
235
|
+
controller: ImageEditorController;
|
|
236
|
+
options: TypeToolOptions;
|
|
237
|
+
onChange: (options: TypeToolOptions) => void;
|
|
238
|
+
/** The text being edited on the canvas: changes style its selection (or all of it). */
|
|
239
|
+
session?: TextEditSession | null;
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
|
|
244
|
+
* alignment. While text is being edited they style the selection (or the whole text); with a
|
|
245
|
+
* type layer active they style all of it; otherwise they set what the next text uses.
|
|
246
|
+
*/
|
|
247
|
+
declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
|
|
248
|
+
|
|
249
|
+
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 {
|
|
@@ -218,4 +218,32 @@ interface FreeTransformOptionsBarProps {
|
|
|
218
218
|
*/
|
|
219
219
|
declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
interface ShapeOptionsBarProps {
|
|
222
|
+
controller: ImageEditorController;
|
|
223
|
+
options: ShapeToolOptions;
|
|
224
|
+
onChange: (options: ShapeToolOptions) => void;
|
|
225
|
+
className?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
|
|
229
|
+
* the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
|
|
230
|
+
* apply to the active shape layer, as one undo step each.
|
|
231
|
+
*/
|
|
232
|
+
declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
|
|
233
|
+
|
|
234
|
+
interface TypeOptionsBarProps {
|
|
235
|
+
controller: ImageEditorController;
|
|
236
|
+
options: TypeToolOptions;
|
|
237
|
+
onChange: (options: TypeToolOptions) => void;
|
|
238
|
+
/** The text being edited on the canvas: changes style its selection (or all of it). */
|
|
239
|
+
session?: TextEditSession | null;
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
|
|
244
|
+
* alignment. While text is being edited they style the selection (or the whole text); with a
|
|
245
|
+
* type layer active they style all of it; otherwise they set what the next text uses.
|
|
246
|
+
*/
|
|
247
|
+
declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
|
|
248
|
+
|
|
249
|
+
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-63FQB5BT.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
|
};
|