@pixerate/editor-react 0.66.0 → 0.68.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/README.md +1 -0
- package/dist/paint-editor/index.cjs +893 -0
- package/dist/paint-editor/index.cjs.map +1 -0
- package/dist/paint-editor/index.d.cts +130 -0
- package/dist/paint-editor/index.d.ts +130 -0
- package/dist/paint-editor/index.js +876 -0
- package/dist/paint-editor/index.js.map +1 -0
- package/dist/vector/index.cjs +482 -210
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +19 -2
- package/dist/vector/index.d.ts +19 -2
- package/dist/vector/index.js +468 -193
- package/dist/vector/index.js.map +1 -1
- package/package.json +11 -3
package/dist/vector/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
1
|
+
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
/** A `VectorEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
@@ -56,6 +56,10 @@ declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
|
56
56
|
annotator: VectorRenderGradientAnnotator;
|
|
57
57
|
accentColor?: string;
|
|
58
58
|
}): React__default.JSX.Element;
|
|
59
|
+
/** SVG `<filter>` elements for `getVectorSceneRenderData(...).filters` (shadows, glows, blurs, feather). */
|
|
60
|
+
declare function VectorFilterDefs({ filters }: {
|
|
61
|
+
filters: readonly VectorRenderFilter[];
|
|
62
|
+
}): React__default.JSX.Element | null;
|
|
59
63
|
/** Renders scene nodes (paths and groups) from `getVectorSceneRenderData`. */
|
|
60
64
|
declare function VectorSceneNodes({ nodes }: {
|
|
61
65
|
nodes: readonly VectorRenderNode[];
|
|
@@ -170,4 +174,17 @@ interface VectorGradientEditorProps {
|
|
|
170
174
|
*/
|
|
171
175
|
declare function VectorGradientEditor({ controller, className }: VectorGradientEditorProps): React__default.JSX.Element | null;
|
|
172
176
|
|
|
173
|
-
|
|
177
|
+
interface VectorAppearancePanelProps {
|
|
178
|
+
controller: VectorEditorController;
|
|
179
|
+
className?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
|
|
183
|
+
* reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
|
|
184
|
+
* stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
|
|
185
|
+
* glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
|
|
186
|
+
* Slider drags and typing are one undo step each.
|
|
187
|
+
*/
|
|
188
|
+
declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
|
|
189
|
+
|
|
190
|
+
export { type UseVectorEditorResult, VectorAppearancePanel, type VectorAppearancePanelProps, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorFilterDefs, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
1
|
+
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
/** A `VectorEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
@@ -56,6 +56,10 @@ declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
|
56
56
|
annotator: VectorRenderGradientAnnotator;
|
|
57
57
|
accentColor?: string;
|
|
58
58
|
}): React__default.JSX.Element;
|
|
59
|
+
/** SVG `<filter>` elements for `getVectorSceneRenderData(...).filters` (shadows, glows, blurs, feather). */
|
|
60
|
+
declare function VectorFilterDefs({ filters }: {
|
|
61
|
+
filters: readonly VectorRenderFilter[];
|
|
62
|
+
}): React__default.JSX.Element | null;
|
|
59
63
|
/** Renders scene nodes (paths and groups) from `getVectorSceneRenderData`. */
|
|
60
64
|
declare function VectorSceneNodes({ nodes }: {
|
|
61
65
|
nodes: readonly VectorRenderNode[];
|
|
@@ -170,4 +174,17 @@ interface VectorGradientEditorProps {
|
|
|
170
174
|
*/
|
|
171
175
|
declare function VectorGradientEditor({ controller, className }: VectorGradientEditorProps): React__default.JSX.Element | null;
|
|
172
176
|
|
|
173
|
-
|
|
177
|
+
interface VectorAppearancePanelProps {
|
|
178
|
+
controller: VectorEditorController;
|
|
179
|
+
className?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
|
|
183
|
+
* reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
|
|
184
|
+
* stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
|
|
185
|
+
* glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
|
|
186
|
+
* Slider drags and typing are one undo step each.
|
|
187
|
+
*/
|
|
188
|
+
declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
|
|
189
|
+
|
|
190
|
+
export { type UseVectorEditorResult, VectorAppearancePanel, type VectorAppearancePanelProps, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorFilterDefs, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
|