@pixerate/editor-react 0.139.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.
- package/dist/{chunk-7M3PJKFN.js → chunk-75P7WMCR.js} +761 -550
- package/dist/image-editor/ContentAwareFillWorkspace.d.cts +20 -0
- package/dist/image-editor/ContentAwareFillWorkspace.d.ts +20 -0
- package/dist/image-editor/index.cjs +783 -571
- 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 +1308 -1096
- package/dist/index.js +3 -1
- package/package.json +3 -3
|
@@ -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>;
|