@pixerate/editor-react 0.149.0 → 0.150.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-3UIHKJ75.js → chunk-4GVCM2UX.js} +801 -740
- package/dist/image-editor/SelectionRecipePanel.d.cts +14 -0
- package/dist/image-editor/SelectionRecipePanel.d.ts +14 -0
- package/dist/image-editor/index.cjs +861 -799
- package/dist/image-editor/index.d.cts +1 -0
- package/dist/image-editor/index.d.ts +1 -0
- package/dist/image-editor/index.js +3 -1
- package/dist/index.cjs +1386 -1324
- package/dist/index.js +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController, SelectionMask } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface SelectionRecipePanelProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** The current selection (`state.selection`), so the panel re-renders with it. */
|
|
6
|
+
selection?: SelectionMask | null;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Live selection: the steps that made the selection, editable afterwards (each change replays
|
|
11
|
+
* them as one undo step), as the `*_selection_step` tools do. Freeze keeps the selection and drops
|
|
12
|
+
* the steps. Hidden while the selection is frozen or empty.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SelectionRecipePanel: React.FC<SelectionRecipePanelProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController, SelectionMask } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface SelectionRecipePanelProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** The current selection (`state.selection`), so the panel re-renders with it. */
|
|
6
|
+
selection?: SelectionMask | null;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Live selection: the steps that made the selection, editable afterwards (each change replays
|
|
11
|
+
* them as one undo step), as the `*_selection_step` tools do. Freeze keeps the selection and drops
|
|
12
|
+
* the steps. Hidden while the selection is frozen or empty.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SelectionRecipePanel: React.FC<SelectionRecipePanelProps>;
|