@pixerate/editor-react 0.119.0 → 0.122.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,15 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface ChannelsPanelProps {
4
+ controller: ImageEditorController;
5
+ /** Thumbnail size in CSS pixels (default 32). */
6
+ thumbnailSize?: number;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * The Channels panel: the alpha channels (saved selections) with thumbnails, an eye to show
11
+ * each as a tint, click to load it as the selection (Shift adds, Alt subtracts, both
12
+ * intersect), double-click to rename; Save Selection, Duplicate and Delete; and the Quick Mask
13
+ * mode switch (Q on the canvas). Every change is one undo step on the controller.
14
+ */
15
+ export declare const ChannelsPanel: React.FC<ChannelsPanelProps>;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface ChannelsPanelProps {
4
+ controller: ImageEditorController;
5
+ /** Thumbnail size in CSS pixels (default 32). */
6
+ thumbnailSize?: number;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * The Channels panel: the alpha channels (saved selections) with thumbnails, an eye to show
11
+ * each as a tint, click to load it as the selection (Shift adds, Alt subtracts, both
12
+ * intersect), double-click to rename; Save Selection, Duplicate and Delete; and the Quick Mask
13
+ * mode switch (Q on the canvas). Every change is one undo step on the controller.
14
+ */
15
+ export declare const ChannelsPanel: React.FC<ChannelsPanelProps>;
@@ -14,7 +14,8 @@ export interface LayersPanelProps {
14
14
  }
15
15
  /**
16
16
  * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
17
- * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
17
+ * mask thumbnails (click to paint the mask, Shift-click to disable it, Ctrl/⌘-click to load it
18
+ * as the selection; Ctrl/⌘-click a layer thumbnail to select its pixels), drag to reorder or drop
18
19
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
19
20
  * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
20
21
  * on or off) and the active layer's effects. Every action is one undo step on the controller.
@@ -14,7 +14,8 @@ export interface LayersPanelProps {
14
14
  }
15
15
  /**
16
16
  * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
17
- * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
17
+ * mask thumbnails (click to paint the mask, Shift-click to disable it, Ctrl/⌘-click to load it
18
+ * as the selection; Ctrl/⌘-click a layer thumbnail to select its pixels), drag to reorder or drop
18
19
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
19
20
  * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
20
21
  * on or off) and the active layer's effects. Every action is one undo step on the controller.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ImageEditorController, SelectionMask, SelectionToolOptions } from '@pixerate/editor/image-editor';
2
+ import type { ImageEditorController, SelectionDisplay, SelectionMask, SelectionToolOptions } from '@pixerate/editor/image-editor';
3
3
  export interface SelectionOptionsBarProps {
4
4
  controller: ImageEditorController;
5
5
  options: SelectionToolOptions;
@@ -8,12 +8,16 @@ export interface SelectionOptionsBarProps {
8
8
  selection?: SelectionMask | null;
9
9
  /** The current Quick Mask view flag (`state.quickMask`). */
10
10
  quickMask?: boolean;
11
+ /** How the canvas shows the selection (`state.selectionDisplay`); wins over `quickMask`. */
12
+ selectionDisplay?: SelectionDisplay;
11
13
  className?: string;
12
14
  }
13
15
  /**
14
- * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
15
- * tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
16
- * Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle. With a segmentation
16
+ * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), feather,
17
+ * magic wand tolerance, contiguous and colour distance, Color Range (click to sample, Shift-click
18
+ * to add, Alt-click to remove; fuzziness, localized, invert, presets), anti-alias, sample merged,
19
+ * Select › All / Deselect / Inverse, Modify (grow, shrink, feather, border, smooth) and how the
20
+ * selection shows (marching ants, Quick Mask or hidden). With a segmentation
17
21
  * provider on the controller it adds Select › Subject (a description and a button).
18
22
  */
19
23
  export declare const SelectionOptionsBar: React.FC<SelectionOptionsBarProps>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ImageEditorController, SelectionMask, SelectionToolOptions } from '@pixerate/editor/image-editor';
2
+ import type { ImageEditorController, SelectionDisplay, SelectionMask, SelectionToolOptions } from '@pixerate/editor/image-editor';
3
3
  export interface SelectionOptionsBarProps {
4
4
  controller: ImageEditorController;
5
5
  options: SelectionToolOptions;
@@ -8,12 +8,16 @@ export interface SelectionOptionsBarProps {
8
8
  selection?: SelectionMask | null;
9
9
  /** The current Quick Mask view flag (`state.quickMask`). */
10
10
  quickMask?: boolean;
11
+ /** How the canvas shows the selection (`state.selectionDisplay`); wins over `quickMask`. */
12
+ selectionDisplay?: SelectionDisplay;
11
13
  className?: string;
12
14
  }
13
15
  /**
14
- * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
15
- * tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
16
- * Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle. With a segmentation
16
+ * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), feather,
17
+ * magic wand tolerance, contiguous and colour distance, Color Range (click to sample, Shift-click
18
+ * to add, Alt-click to remove; fuzziness, localized, invert, presets), anti-alias, sample merged,
19
+ * Select › All / Deselect / Inverse, Modify (grow, shrink, feather, border, smooth) and how the
20
+ * selection shows (marching ants, Quick Mask or hidden). With a segmentation
17
21
  * provider on the controller it adds Select › Subject (a description and a button).
18
22
  */
19
23
  export declare const SelectionOptionsBar: React.FC<SelectionOptionsBarProps>;