@pixerate/editor-react 0.143.0 → 0.144.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-35MOGNMT.js → chunk-3CB4WG24.js} +452 -401
- package/dist/image-editor/MaskEdgeCheck.d.cts +16 -0
- package/dist/image-editor/MaskEdgeCheck.d.ts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +2 -1
- package/dist/image-editor/RefineEdgePanel.d.ts +2 -1
- package/dist/image-editor/index.cjs +490 -438
- 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 +1015 -963
- package/dist/index.js +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController, MaskEdgeTarget, SelectionMask } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface MaskEdgeCheckProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** The current selection (`state.selection`): a report on an older selection is cleared. */
|
|
6
|
+
selection?: SelectionMask | null;
|
|
7
|
+
/** What to check (default the selection); masks need `layerId`. */
|
|
8
|
+
target?: MaskEdgeTarget;
|
|
9
|
+
layerId?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Check Edge: measures the selection's (or a mask's) edge, as the `inspect_mask_edge` tool does,
|
|
14
|
+
* and lists the scores (flagged past the thresholds), holes, islands and findings with fixes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MaskEdgeCheck: React.FC<MaskEdgeCheckProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageEditorController, MaskEdgeTarget, SelectionMask } from '@pixerate/editor/image-editor';
|
|
3
|
+
export interface MaskEdgeCheckProps {
|
|
4
|
+
controller: ImageEditorController;
|
|
5
|
+
/** The current selection (`state.selection`): a report on an older selection is cleared. */
|
|
6
|
+
selection?: SelectionMask | null;
|
|
7
|
+
/** What to check (default the selection); masks need `layerId`. */
|
|
8
|
+
target?: MaskEdgeTarget;
|
|
9
|
+
layerId?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Check Edge: measures the selection's (or a mask's) edge, as the `inspect_mask_edge` tool does,
|
|
14
|
+
* and lists the scores (flagged past the thresholds), holes, islands and findings with fixes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MaskEdgeCheck: React.FC<MaskEdgeCheckProps>;
|
|
@@ -9,7 +9,8 @@ export interface RefineEdgePanelProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges)
|
|
12
|
+
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges), Check Edge (its
|
|
13
|
+
* measured quality, see `MaskEdgeCheck`) and layer masks:
|
|
13
14
|
* use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
|
|
14
15
|
* back as a selection.
|
|
15
16
|
*/
|
|
@@ -9,7 +9,8 @@ export interface RefineEdgePanelProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges)
|
|
12
|
+
* Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges), Check Edge (its
|
|
13
|
+
* measured quality, see `MaskEdgeCheck`) and layer masks:
|
|
13
14
|
* use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
|
|
14
15
|
* back as a selection.
|
|
15
16
|
*/
|