@pixerate/editor-react 0.139.0 → 0.141.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-DD2SZVT2.js} +870 -550
- package/dist/image-editor/ContentAwareFillWorkspace.d.cts +20 -0
- package/dist/image-editor/ContentAwareFillWorkspace.d.ts +20 -0
- package/dist/image-editor/PathsPanel.d.cts +16 -0
- package/dist/image-editor/PathsPanel.d.ts +16 -0
- package/dist/image-editor/index.cjs +893 -571
- package/dist/image-editor/index.d.cts +2 -0
- package/dist/image-editor/index.d.ts +2 -0
- package/dist/image-editor/index.js +5 -1
- package/dist/index.cjs +1418 -1096
- package/dist/index.js +5 -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>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface PathsPanelProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** Thumbnail size in CSS pixels (default 32). */
|
|
6
|
+
thumbnailSize?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The Paths panel: the document's saved paths and its Work Path (in italics) with outline
|
|
11
|
+
* thumbnails. Click selects a path, double-click renames it (renaming the Work Path saves it).
|
|
12
|
+
* Load as Selection (Shift adds, Alt subtracts), Make Work Path from the selection, Fill and
|
|
13
|
+
* Stroke on the active layer with a colour and width, Add Vector Mask to the active layer,
|
|
14
|
+
* Duplicate and Delete. Every change is one undo step on the controller.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PathsPanel: React.FC<PathsPanelProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface PathsPanelProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** Thumbnail size in CSS pixels (default 32). */
|
|
6
|
+
thumbnailSize?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The Paths panel: the document's saved paths and its Work Path (in italics) with outline
|
|
11
|
+
* thumbnails. Click selects a path, double-click renames it (renaming the Work Path saves it).
|
|
12
|
+
* Load as Selection (Shift adds, Alt subtracts), Make Work Path from the selection, Fill and
|
|
13
|
+
* Stroke on the active layer with a colour and width, Add Vector Mask to the active layer,
|
|
14
|
+
* Duplicate and Delete. Every change is one undo step on the controller.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PathsPanel: React.FC<PathsPanelProps>;
|