@pixerate/editor-react 0.16.0 → 0.17.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/README.md +2 -2
- package/dist/canvas/index.cjs +406 -142
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +66 -3
- package/dist/canvas/index.d.ts +66 -3
- package/dist/canvas/index.js +277 -0
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-I3E4KSA2.js +515 -0
- package/dist/chunk-I3E4KSA2.js.map +1 -0
- package/dist/chunk-JR5ZBDR7.js +2012 -0
- package/dist/chunk-JR5ZBDR7.js.map +1 -0
- package/dist/{chunk-XTFR3IMK.js → chunk-ZU54BMDC.js} +473 -160
- package/dist/chunk-ZU54BMDC.js.map +1 -0
- package/dist/generation/index.cjs +290 -0
- package/dist/generation/index.cjs.map +1 -1
- package/dist/generation/index.d.cts +66 -2
- package/dist/generation/index.d.ts +66 -2
- package/dist/generation/index.js +7 -1
- package/dist/image-editor/index.cjs +490 -187
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +34 -2
- package/dist/image-editor/index.d.ts +34 -2
- package/dist/image-editor/index.js +5 -1
- package/dist/index.cjs +2372 -731
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -6
- package/dist/index.d.ts +88 -6
- package/dist/index.js +334 -96
- package/dist/index.js.map +1 -1
- package/dist/spreadsheet/index.cjs +943 -112
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +119 -7
- package/dist/spreadsheet/index.d.ts +119 -7
- package/dist/spreadsheet/index.js +11 -1
- package/dist/tokens/index.cjs +395 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +54 -0
- package/dist/tokens/index.d.ts +54 -0
- package/dist/tokens/index.js +375 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +10 -2
- package/dist/chunk-7SPRQZ6H.js +0 -216
- package/dist/chunk-7SPRQZ6H.js.map +0 -1
- package/dist/chunk-FYIPXHAE.js +0 -1169
- package/dist/chunk-FYIPXHAE.js.map +0 -1
- package/dist/chunk-XTFR3IMK.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, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer } from '@pixerate/editor/image-editor';
|
|
1
|
+
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask } from '@pixerate/editor/image-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface UseImageEditorReturn {
|
|
@@ -124,4 +124,36 @@ interface AdjustmentLayersPanelProps {
|
|
|
124
124
|
*/
|
|
125
125
|
declare const AdjustmentLayersPanel: React__default.FC<AdjustmentLayersPanelProps>;
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
interface SelectionOptionsBarProps {
|
|
128
|
+
controller: ImageEditorController;
|
|
129
|
+
options: SelectionToolOptions;
|
|
130
|
+
onOptionsChange: (next: SelectionToolOptions) => void;
|
|
131
|
+
/** The current selection (pass `state.selection` so the bar re-renders with it). */
|
|
132
|
+
selection?: SelectionMask | null;
|
|
133
|
+
/** The current Quick Mask view flag (`state.quickMask`). */
|
|
134
|
+
quickMask?: boolean;
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
|
|
139
|
+
* tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
|
|
140
|
+
* Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle.
|
|
141
|
+
*/
|
|
142
|
+
declare const SelectionOptionsBar: React__default.FC<SelectionOptionsBarProps>;
|
|
143
|
+
|
|
144
|
+
interface RefineEdgePanelProps {
|
|
145
|
+
controller: ImageEditorController;
|
|
146
|
+
/** The current selection (`state.selection`), so the panel re-renders with it. */
|
|
147
|
+
selection?: SelectionMask | null;
|
|
148
|
+
/** The adjustment layers (`state.adjustments.layers`), for the mask actions. */
|
|
149
|
+
layers?: AdjustmentLayer[];
|
|
150
|
+
className?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges) and layer masks:
|
|
154
|
+
* use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
|
|
155
|
+
* back as a selection.
|
|
156
|
+
*/
|
|
157
|
+
declare const RefineEdgePanel: React__default.FC<RefineEdgePanelProps>;
|
|
158
|
+
|
|
159
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, 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, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer } from '@pixerate/editor/image-editor';
|
|
1
|
+
import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask } from '@pixerate/editor/image-editor';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface UseImageEditorReturn {
|
|
@@ -124,4 +124,36 @@ interface AdjustmentLayersPanelProps {
|
|
|
124
124
|
*/
|
|
125
125
|
declare const AdjustmentLayersPanel: React__default.FC<AdjustmentLayersPanelProps>;
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
interface SelectionOptionsBarProps {
|
|
128
|
+
controller: ImageEditorController;
|
|
129
|
+
options: SelectionToolOptions;
|
|
130
|
+
onOptionsChange: (next: SelectionToolOptions) => void;
|
|
131
|
+
/** The current selection (pass `state.selection` so the bar re-renders with it). */
|
|
132
|
+
selection?: SelectionMask | null;
|
|
133
|
+
/** The current Quick Mask view flag (`state.quickMask`). */
|
|
134
|
+
quickMask?: boolean;
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
|
|
139
|
+
* tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
|
|
140
|
+
* Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle.
|
|
141
|
+
*/
|
|
142
|
+
declare const SelectionOptionsBar: React__default.FC<SelectionOptionsBarProps>;
|
|
143
|
+
|
|
144
|
+
interface RefineEdgePanelProps {
|
|
145
|
+
controller: ImageEditorController;
|
|
146
|
+
/** The current selection (`state.selection`), so the panel re-renders with it. */
|
|
147
|
+
selection?: SelectionMask | null;
|
|
148
|
+
/** The adjustment layers (`state.adjustments.layers`), for the mask actions. */
|
|
149
|
+
layers?: AdjustmentLayer[];
|
|
150
|
+
className?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges) and layer masks:
|
|
154
|
+
* use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
|
|
155
|
+
* back as a selection.
|
|
156
|
+
*/
|
|
157
|
+
declare const RefineEdgePanel: React__default.FC<RefineEdgePanelProps>;
|
|
158
|
+
|
|
159
|
+
export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageHistogram };
|
|
@@ -4,15 +4,19 @@ import {
|
|
|
4
4
|
CurvesEditor,
|
|
5
5
|
Histogram,
|
|
6
6
|
ImageEditor,
|
|
7
|
+
RefineEdgePanel,
|
|
8
|
+
SelectionOptionsBar,
|
|
7
9
|
useImageEditor,
|
|
8
10
|
useImageHistogram
|
|
9
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-ZU54BMDC.js";
|
|
10
12
|
export {
|
|
11
13
|
AdjustmentLayersPanel,
|
|
12
14
|
ControlSlider,
|
|
13
15
|
CurvesEditor,
|
|
14
16
|
Histogram,
|
|
15
17
|
ImageEditor,
|
|
18
|
+
RefineEdgePanel,
|
|
19
|
+
SelectionOptionsBar,
|
|
16
20
|
useImageEditor,
|
|
17
21
|
useImageHistogram
|
|
18
22
|
};
|