@pixerate/editor-react 0.135.0 → 0.137.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.
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController, RefineOutputResult } from '@pixerate/editor/image-editor';
3
+ export interface SelectAndMaskWorkspaceProps {
4
+ controller: ImageEditorController;
5
+ /** Called with the result after OK, or `null` after Cancel. */
6
+ onClose: (result: RefineOutputResult | null) => void;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * Select and Mask: a full-window workspace over the editor with its own tools (Quick Selection,
11
+ * Refine Edge Brush, Brush, Object Selection, Lasso, Hand, Zoom), view modes, edge and output
12
+ * settings, and a live preview. OK applies everything as one undo step, the same
13
+ * `refineSelectionTo` call an agent makes; Cancel leaves the document as it was. Keys as in
14
+ * Photoshop (see `SelectAndMaskSession.handleKey`), plus Enter (OK), Escape (Cancel) and Ctrl/⌘+Z
15
+ * (undo the last stroke).
16
+ */
17
+ export declare const SelectAndMaskWorkspace: React.FC<SelectAndMaskWorkspaceProps>;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController, RefineOutputResult } from '@pixerate/editor/image-editor';
3
+ export interface SelectAndMaskWorkspaceProps {
4
+ controller: ImageEditorController;
5
+ /** Called with the result after OK, or `null` after Cancel. */
6
+ onClose: (result: RefineOutputResult | null) => void;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * Select and Mask: a full-window workspace over the editor with its own tools (Quick Selection,
11
+ * Refine Edge Brush, Brush, Object Selection, Lasso, Hand, Zoom), view modes, edge and output
12
+ * settings, and a live preview. OK applies everything as one undo step, the same
13
+ * `refineSelectionTo` call an agent makes; Cancel leaves the document as it was. Keys as in
14
+ * Photoshop (see `SelectAndMaskSession.handleKey`), plus Enter (OK), Escape (Cancel) and Ctrl/⌘+Z
15
+ * (undo the last stroke).
16
+ */
17
+ export declare const SelectAndMaskWorkspace: React.FC<SelectAndMaskWorkspaceProps>;