@pixerate/editor-react 0.138.0 → 0.140.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,20 @@
1
+ import React from 'react';
2
+ import type { CropBox, ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface ContentAwareFillWorkspaceProps {
4
+ controller: ImageEditorController;
5
+ /** Called with the result after OK, or `null` after Cancel. */
6
+ onClose: (result: {
7
+ layerId: string;
8
+ bounds: CropBox;
9
+ output: 'current' | 'new-layer';
10
+ } | null) => void;
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Content-Aware Fill: a full-window workspace with the selection's surroundings on the left, the
15
+ * sampling area (where the fill may copy from) shown in green and painted with the Sampling Brush
16
+ * (Alt subtracts), and a live preview of the fill on the right. Seed, output and the sampling
17
+ * presets (Auto, Rectangular, Custom) are in the panel. OK fills as one undo step, the same fill
18
+ * the `content_aware_fill` tool makes; Cancel and Escape change nothing.
19
+ */
20
+ export declare const ContentAwareFillWorkspace: React.FC<ContentAwareFillWorkspaceProps>;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { CropBox, ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface ContentAwareFillWorkspaceProps {
4
+ controller: ImageEditorController;
5
+ /** Called with the result after OK, or `null` after Cancel. */
6
+ onClose: (result: {
7
+ layerId: string;
8
+ bounds: CropBox;
9
+ output: 'current' | 'new-layer';
10
+ } | null) => void;
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Content-Aware Fill: a full-window workspace with the selection's surroundings on the left, the
15
+ * sampling area (where the fill may copy from) shown in green and painted with the Sampling Brush
16
+ * (Alt subtracts), and a live preview of the fill on the right. Seed, output and the sampling
17
+ * presets (Auto, Rectangular, Custom) are in the panel. OK fills as one undo step, the same fill
18
+ * the `content_aware_fill` tool makes; Cancel and Escape change nothing.
19
+ */
20
+ export declare const ContentAwareFillWorkspace: React.FC<ContentAwareFillWorkspaceProps>;