@pixerate/editor-react 0.68.1 → 0.69.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,4 +1,4 @@
1
- import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
1
+ import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, 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). */
@@ -64,6 +64,15 @@ declare function VectorFilterDefs({ filters }: {
64
64
  declare function VectorSceneNodes({ nodes }: {
65
65
  nodes: readonly VectorRenderNode[];
66
66
  }): React__default.JSX.Element;
67
+ /**
68
+ * A mask group's contents under its mask: the `<clipPath>` (clip) or `<mask>` (alpha, luminance;
69
+ * the mask drawn inside, through the inverting filter when inverted), and an inner `<g>` that
70
+ * references it. The group's own transform, opacity, blend mode and filter are on the outer `<g>`.
71
+ */
72
+ declare function VectorMaskedNodes({ mask, nodes }: {
73
+ mask: VectorRenderMask;
74
+ nodes: readonly VectorRenderNode[];
75
+ }): React__default.JSX.Element;
67
76
  /**
68
77
  * An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
69
78
  * and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
@@ -149,6 +158,18 @@ interface VectorEnvelopePanelProps {
149
158
  */
150
159
  declare function VectorEnvelopePanel({ controller, className }: VectorEnvelopePanelProps): React__default.JSX.Element | null;
151
160
 
161
+ interface VectorMaskPanelProps {
162
+ controller: VectorEditorController;
163
+ className?: string;
164
+ }
165
+ /**
166
+ * Masks of the selection: Make Clipping Mask, Make Opacity Mask (the topmost selected object
167
+ * masks the others) and Release; for a mask group (or something inside one) its type, Invert, a
168
+ * switch that turns the mask off by hiding it, and Edit Mask / Edit Contents, which select the mask
169
+ * (a path opens for anchor editing) or what it masks. Each change is one undo step.
170
+ */
171
+ declare function VectorMaskPanel({ controller, className }: VectorMaskPanelProps): React__default.JSX.Element | null;
172
+
152
173
  interface VectorEditorProps {
153
174
  controller: VectorEditorController;
154
175
  /** Tools in the toolbar (default: all). */
@@ -187,4 +208,4 @@ interface VectorAppearancePanelProps {
187
208
  */
188
209
  declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
189
210
 
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 };
211
+ 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, VectorMaskPanel, type VectorMaskPanelProps, VectorMaskedNodes, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
@@ -1,4 +1,4 @@
1
- import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
1
+ import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, 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). */
@@ -64,6 +64,15 @@ declare function VectorFilterDefs({ filters }: {
64
64
  declare function VectorSceneNodes({ nodes }: {
65
65
  nodes: readonly VectorRenderNode[];
66
66
  }): React__default.JSX.Element;
67
+ /**
68
+ * A mask group's contents under its mask: the `<clipPath>` (clip) or `<mask>` (alpha, luminance;
69
+ * the mask drawn inside, through the inverting filter when inverted), and an inner `<g>` that
70
+ * references it. The group's own transform, opacity, blend mode and filter are on the outer `<g>`.
71
+ */
72
+ declare function VectorMaskedNodes({ mask, nodes }: {
73
+ mask: VectorRenderMask;
74
+ nodes: readonly VectorRenderNode[];
75
+ }): React__default.JSX.Element;
67
76
  /**
68
77
  * An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
69
78
  * and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
@@ -149,6 +158,18 @@ interface VectorEnvelopePanelProps {
149
158
  */
150
159
  declare function VectorEnvelopePanel({ controller, className }: VectorEnvelopePanelProps): React__default.JSX.Element | null;
151
160
 
161
+ interface VectorMaskPanelProps {
162
+ controller: VectorEditorController;
163
+ className?: string;
164
+ }
165
+ /**
166
+ * Masks of the selection: Make Clipping Mask, Make Opacity Mask (the topmost selected object
167
+ * masks the others) and Release; for a mask group (or something inside one) its type, Invert, a
168
+ * switch that turns the mask off by hiding it, and Edit Mask / Edit Contents, which select the mask
169
+ * (a path opens for anchor editing) or what it masks. Each change is one undo step.
170
+ */
171
+ declare function VectorMaskPanel({ controller, className }: VectorMaskPanelProps): React__default.JSX.Element | null;
172
+
152
173
  interface VectorEditorProps {
153
174
  controller: VectorEditorController;
154
175
  /** Tools in the toolbar (default: all). */
@@ -187,4 +208,4 @@ interface VectorAppearancePanelProps {
187
208
  */
188
209
  declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
189
210
 
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 };
211
+ 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, VectorMaskPanel, type VectorMaskPanelProps, VectorMaskedNodes, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };