@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.
- package/dist/{paint-editor → brushes}/BrushEditor.d.cts +14 -5
- package/dist/{paint-editor → brushes}/BrushEditor.d.ts +14 -5
- package/dist/brushes/BrushLibraryEditor.d.cts +26 -0
- package/dist/brushes/BrushLibraryEditor.d.ts +26 -0
- package/dist/brushes/index.cjs +289 -20
- package/dist/brushes/index.d.cts +2 -0
- package/dist/brushes/index.d.ts +2 -0
- package/dist/brushes/index.js +6 -2
- package/dist/chunk-76JBZXLM.js +263 -0
- package/dist/chunk-QIJJCDYW.js +119 -0
- package/dist/{chunk-UR4KL7WE.js → chunk-XAPJMT3W.js} +26 -6
- package/dist/image-editor/BrushOptionsBar.d.cts +6 -1
- package/dist/image-editor/BrushOptionsBar.d.ts +6 -1
- package/dist/image-editor/index.cjs +1178 -894
- package/dist/image-editor/index.js +3 -3
- package/dist/index.cjs +1719 -1435
- package/dist/index.js +3 -3
- package/dist/paint-editor/index.cjs +20 -23
- package/dist/paint-editor/index.d.cts +1 -1
- package/dist/paint-editor/index.d.ts +1 -1
- package/dist/paint-editor/index.js +413 -609
- package/dist/vector/VectorAppearancePanel.d.cts +8 -2
- package/dist/vector/VectorAppearancePanel.d.ts +8 -2
- package/dist/vector/index.cjs +1110 -748
- package/dist/vector/index.js +90 -59
- package/package.json +3 -3
- package/dist/chunk-62FMEDGG.js +0 -54
- package/dist/chunk-PQK2UMAY.js +0 -23
|
@@ -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;
|