@pixerate/editor-react 0.179.0 → 0.180.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.
@@ -1,14 +1,20 @@
1
1
  import React from 'react';
2
+ import { type BrushPreviewRenderer } from '@pixerate/editor/brushes';
2
3
  import { type VectorEditorController } from '@pixerate/editor/vector';
3
4
  export interface VectorAppearancePanelProps {
4
5
  controller: VectorEditorController;
6
+ /** The brush editor's preview stroke (default: the controller's `brushPreview` option). */
7
+ renderBrushPreview?: BrushPreviewRenderer;
5
8
  className?: string;
6
9
  }
7
10
  /**
8
11
  * The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
9
12
  * reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
10
13
  * stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
11
- * glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
14
+ * glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it. With
15
+ * the controller's `brushLibrary`, a brushstroke's "Brush…" picks from the library
16
+ * (`BrushLibraryBrowser`, `VECTOR_PROFILE`) and "Edit brush…" edits it (`BrushLibraryEditor`):
17
+ * saves go to the library and the stroke takes the saved brush.
12
18
  * Slider drags and typing are one undo step each.
13
19
  */
14
- export declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React.JSX.Element | null;
20
+ export declare function VectorAppearancePanel({ controller, renderBrushPreview, className }: VectorAppearancePanelProps): React.JSX.Element | null;
@@ -1,14 +1,20 @@
1
1
  import React from 'react';
2
+ import { type BrushPreviewRenderer } from '@pixerate/editor/brushes';
2
3
  import { type VectorEditorController } from '@pixerate/editor/vector';
3
4
  export interface VectorAppearancePanelProps {
4
5
  controller: VectorEditorController;
6
+ /** The brush editor's preview stroke (default: the controller's `brushPreview` option). */
7
+ renderBrushPreview?: BrushPreviewRenderer;
5
8
  className?: string;
6
9
  }
7
10
  /**
8
11
  * The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
9
12
  * reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
10
13
  * stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
11
- * glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
14
+ * glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it. With
15
+ * the controller's `brushLibrary`, a brushstroke's "Brush…" picks from the library
16
+ * (`BrushLibraryBrowser`, `VECTOR_PROFILE`) and "Edit brush…" edits it (`BrushLibraryEditor`):
17
+ * saves go to the library and the stroke takes the saved brush.
12
18
  * Slider drags and typing are one undo step each.
13
19
  */
14
- export declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React.JSX.Element | null;
20
+ export declare function VectorAppearancePanel({ controller, renderBrushPreview, className }: VectorAppearancePanelProps): React.JSX.Element | null;