@pixerate/editor-react 0.146.0 → 0.147.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,14 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController, SelectionMask } from '@pixerate/editor/image-editor';
3
+ export interface SelectionChangeCheckProps {
4
+ controller: ImageEditorController;
5
+ /** The current selection (`state.selection`): the summary clears when it changes. */
6
+ selection?: SelectionMask | null;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * Show Last Change: what the last step did to the selection, as the `compare_selections` tool
11
+ * reports it, with the added area tinted green and the removed red on the canvas until the
12
+ * selection changes again.
13
+ */
14
+ export declare const SelectionChangeCheck: React.FC<SelectionChangeCheckProps>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController, SelectionMask } from '@pixerate/editor/image-editor';
3
+ export interface SelectionChangeCheckProps {
4
+ controller: ImageEditorController;
5
+ /** The current selection (`state.selection`): the summary clears when it changes. */
6
+ selection?: SelectionMask | null;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * Show Last Change: what the last step did to the selection, as the `compare_selections` tool
11
+ * reports it, with the added area tinted green and the removed red on the canvas until the
12
+ * selection changes again.
13
+ */
14
+ export declare const SelectionChangeCheck: React.FC<SelectionChangeCheckProps>;