@pixerate/editor-react 0.207.0 → 0.208.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.
@@ -10,6 +10,8 @@ export interface LayersPanelProps {
10
10
  psdFileName?: string;
11
11
  /** Show the active layer's effects section (default true). */
12
12
  effects?: boolean;
13
+ /** Show the active smart object's contents and smart filters section (default true). */
14
+ smartObjects?: boolean;
13
15
  className?: string;
14
16
  }
15
17
  /**
@@ -18,6 +20,9 @@ export interface LayersPanelProps {
18
20
  * as the selection, Alt-click to show it alone in grey, Alt+Shift-click as a red overlay; Ctrl/⌘-click a layer thumbnail to select its pixels), drag to reorder or drop
19
21
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
20
22
  * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
21
- * on or off) and the active layer's effects. Every action is one undo step on the controller.
23
+ * on or off) and the active layer's effects. Smart objects show a badge on their thumbnail
24
+ * (double-click it to edit the contents), their smart filters under the row (each with its eye)
25
+ * and the smart object section; while contents are open a bar says so, with Save and Discard.
26
+ * Every action is one undo step on the controller.
22
27
  */
23
28
  export declare const LayersPanel: React.FC<LayersPanelProps>;
@@ -10,6 +10,8 @@ export interface LayersPanelProps {
10
10
  psdFileName?: string;
11
11
  /** Show the active layer's effects section (default true). */
12
12
  effects?: boolean;
13
+ /** Show the active smart object's contents and smart filters section (default true). */
14
+ smartObjects?: boolean;
13
15
  className?: string;
14
16
  }
15
17
  /**
@@ -18,6 +20,9 @@ export interface LayersPanelProps {
18
20
  * as the selection, Alt-click to show it alone in grey, Alt+Shift-click as a red overlay; Ctrl/⌘-click a layer thumbnail to select its pixels), drag to reorder or drop
19
21
  * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
20
22
  * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
21
- * on or off) and the active layer's effects. Every action is one undo step on the controller.
23
+ * on or off) and the active layer's effects. Smart objects show a badge on their thumbnail
24
+ * (double-click it to edit the contents), their smart filters under the row (each with its eye)
25
+ * and the smart object section; while contents are open a bar says so, with Save and Discard.
26
+ * Every action is one undo step on the controller.
22
27
  */
23
28
  export declare const LayersPanel: React.FC<LayersPanelProps>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface SmartObjectPanelProps {
4
+ controller: ImageEditorController;
5
+ /** The smart object to show (default: the active layer). */
6
+ layerId?: string | null;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * A smart object's contents and smart filters: Edit Contents, Replace Contents…, Export Contents,
11
+ * New Smart Object via Copy and Rasterize; the smart filter stack (add Develop or Blur, the
12
+ * stack's switch, each filter's eye, order, remove and, when expanded, blend mode, opacity and
13
+ * settings); and the filter mask (add, enable, link, paint it, remove). Every change is one undo
14
+ * step (a slider drag is one step too).
15
+ */
16
+ export declare const SmartObjectPanel: React.FC<SmartObjectPanelProps>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { ImageEditorController } from '@pixerate/editor/image-editor';
3
+ export interface SmartObjectPanelProps {
4
+ controller: ImageEditorController;
5
+ /** The smart object to show (default: the active layer). */
6
+ layerId?: string | null;
7
+ className?: string;
8
+ }
9
+ /**
10
+ * A smart object's contents and smart filters: Edit Contents, Replace Contents…, Export Contents,
11
+ * New Smart Object via Copy and Rasterize; the smart filter stack (add Develop or Blur, the
12
+ * stack's switch, each filter's eye, order, remove and, when expanded, blend mode, opacity and
13
+ * settings); and the filter mask (add, enable, link, paint it, remove). Every change is one undo
14
+ * step (a slider drag is one step too).
15
+ */
16
+ export declare const SmartObjectPanel: React.FC<SmartObjectPanelProps>;