@pixerate/editor-react 0.33.0 → 0.35.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.
@@ -104,16 +104,18 @@ interface VectorToolbarProps {
104
104
  * spine, Replace Spine, Expand and Release (default `true`).
105
105
  */
106
106
  showBlend?: boolean;
107
+ /** The Free Distort toggle of the selection box (default `true`). */
108
+ showDistort?: boolean;
107
109
  className?: string;
108
110
  }
109
111
  /** Tool picker plus undo, snapping, boolean operations, grouping, stacking and alignment. */
110
- declare function VectorToolbar({ controller, tools, showHistory, showArrange, showSnap, showPathEdit, showBlend, className, }: VectorToolbarProps): React__default.JSX.Element;
112
+ declare function VectorToolbar({ controller, tools, showHistory, showArrange, showSnap, showPathEdit, showBlend, showDistort, className, }: VectorToolbarProps): React__default.JSX.Element;
111
113
  interface VectorStylePanelProps {
112
114
  controller: VectorEditorController;
113
115
  className?: string;
114
116
  }
115
117
  /**
116
- * Fill, stroke and their gradients (`VectorGradientEditor`), stroke width, alignment and width profile, arrowheads, live corner radius, opacity and path effects (`VectorEffectsPanel`) of the
118
+ * Fill, stroke and their gradients (`VectorGradientEditor`), stroke width, alignment and width profile, arrowheads, live corner radius, opacity, path effects (`VectorEffectsPanel`) and envelope (`VectorEnvelopePanel`) of the
117
119
  * selection (corners of the selected points with the direct tool); with nothing selected it
118
120
  * edits the defaults for new shapes.
119
121
  */
@@ -131,6 +133,18 @@ interface VectorEffectsPanelProps {
131
133
  */
132
134
  declare function VectorEffectsPanel({ controller, className }: VectorEffectsPanelProps): React__default.JSX.Element | null;
133
135
 
136
+ interface VectorEnvelopePanelProps {
137
+ controller: VectorEditorController;
138
+ className?: string;
139
+ }
140
+ /**
141
+ * Envelope distortion of the selection: Make with Warp, Mesh or Top Object, and for one selected
142
+ * object with an envelope its warp preset, bend, horizontal and vertical distortion, orientation and
143
+ * mesh rows and columns, plus Release and Expand. Edit the mesh on the canvas with the Envelope
144
+ * tool. Slider drags are one undo step each.
145
+ */
146
+ declare function VectorEnvelopePanel({ controller, className }: VectorEnvelopePanelProps): React__default.JSX.Element | null;
147
+
134
148
  interface VectorEditorProps {
135
149
  controller: VectorEditorController;
136
150
  /** Tools in the toolbar (default: all). */
@@ -156,4 +170,4 @@ interface VectorGradientEditorProps {
156
170
  */
157
171
  declare function VectorGradientEditor({ controller, className }: VectorGradientEditorProps): React__default.JSX.Element | null;
158
172
 
159
- export { type UseVectorEditorResult, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
173
+ export { type UseVectorEditorResult, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
@@ -104,16 +104,18 @@ interface VectorToolbarProps {
104
104
  * spine, Replace Spine, Expand and Release (default `true`).
105
105
  */
106
106
  showBlend?: boolean;
107
+ /** The Free Distort toggle of the selection box (default `true`). */
108
+ showDistort?: boolean;
107
109
  className?: string;
108
110
  }
109
111
  /** Tool picker plus undo, snapping, boolean operations, grouping, stacking and alignment. */
110
- declare function VectorToolbar({ controller, tools, showHistory, showArrange, showSnap, showPathEdit, showBlend, className, }: VectorToolbarProps): React__default.JSX.Element;
112
+ declare function VectorToolbar({ controller, tools, showHistory, showArrange, showSnap, showPathEdit, showBlend, showDistort, className, }: VectorToolbarProps): React__default.JSX.Element;
111
113
  interface VectorStylePanelProps {
112
114
  controller: VectorEditorController;
113
115
  className?: string;
114
116
  }
115
117
  /**
116
- * Fill, stroke and their gradients (`VectorGradientEditor`), stroke width, alignment and width profile, arrowheads, live corner radius, opacity and path effects (`VectorEffectsPanel`) of the
118
+ * Fill, stroke and their gradients (`VectorGradientEditor`), stroke width, alignment and width profile, arrowheads, live corner radius, opacity, path effects (`VectorEffectsPanel`) and envelope (`VectorEnvelopePanel`) of the
117
119
  * selection (corners of the selected points with the direct tool); with nothing selected it
118
120
  * edits the defaults for new shapes.
119
121
  */
@@ -131,6 +133,18 @@ interface VectorEffectsPanelProps {
131
133
  */
132
134
  declare function VectorEffectsPanel({ controller, className }: VectorEffectsPanelProps): React__default.JSX.Element | null;
133
135
 
136
+ interface VectorEnvelopePanelProps {
137
+ controller: VectorEditorController;
138
+ className?: string;
139
+ }
140
+ /**
141
+ * Envelope distortion of the selection: Make with Warp, Mesh or Top Object, and for one selected
142
+ * object with an envelope its warp preset, bend, horizontal and vertical distortion, orientation and
143
+ * mesh rows and columns, plus Release and Expand. Edit the mesh on the canvas with the Envelope
144
+ * tool. Slider drags are one undo step each.
145
+ */
146
+ declare function VectorEnvelopePanel({ controller, className }: VectorEnvelopePanelProps): React__default.JSX.Element | null;
147
+
134
148
  interface VectorEditorProps {
135
149
  controller: VectorEditorController;
136
150
  /** Tools in the toolbar (default: all). */
@@ -156,4 +170,4 @@ interface VectorGradientEditorProps {
156
170
  */
157
171
  declare function VectorGradientEditor({ controller, className }: VectorGradientEditorProps): React__default.JSX.Element | null;
158
172
 
159
- export { type UseVectorEditorResult, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
173
+ export { type UseVectorEditorResult, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };