@pixerate/editor-react 0.72.0 → 0.74.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/{chunk-YAFNCBDA.js → chunk-LWMUV5TC.js} +477 -377
- package/dist/chunk-LWMUV5TC.js.map +1 -0
- package/dist/image-editor/index.cjs +540 -440
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +12 -1
- package/dist/image-editor/index.d.ts +12 -1
- package/dist/image-editor/index.js +3 -1
- package/dist/index.cjs +969 -869
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/vector/index.cjs +910 -175
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +67 -3
- package/dist/vector/index.d.ts +67 -3
- package/dist/vector/index.js +915 -164
- package/dist/vector/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-YAFNCBDA.js.map +0 -1
package/dist/vector/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
1
|
+
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, VectorRenderNode, VectorRenderText, 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). */
|
|
@@ -60,7 +60,14 @@ declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
|
60
60
|
declare function VectorFilterDefs({ filters }: {
|
|
61
61
|
filters: readonly VectorRenderFilter[];
|
|
62
62
|
}): React__default.JSX.Element | null;
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Text drawn as SVG text: one `<text>` per paint layer, every span a `<tspan>` placed character by
|
|
65
|
+
* character (the layout is the editor's, not the browser's).
|
|
66
|
+
*/
|
|
67
|
+
declare function VectorTextElement({ node }: {
|
|
68
|
+
node: VectorRenderText;
|
|
69
|
+
}): React__default.JSX.Element;
|
|
70
|
+
/** Renders scene nodes (paths, text and groups) from `getVectorSceneRenderData`. */
|
|
64
71
|
declare function VectorSceneNodes({ nodes }: {
|
|
65
72
|
nodes: readonly VectorRenderNode[];
|
|
66
73
|
}): React__default.JSX.Element;
|
|
@@ -208,4 +215,61 @@ interface VectorAppearancePanelProps {
|
|
|
208
215
|
*/
|
|
209
216
|
declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
|
|
210
217
|
|
|
211
|
-
|
|
218
|
+
interface VectorTextPanelProps {
|
|
219
|
+
controller: VectorEditorController;
|
|
220
|
+
className?: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Character and paragraph style of text: family, weight, size, italic, underline, strike-through,
|
|
224
|
+
* tracking, leading, alignment and point / area text. It edits the selected characters while text
|
|
225
|
+
* is being edited, else the selected text, else the defaults for new text. Type on a Path turns a
|
|
226
|
+
* selected path into path text, and Create Outlines turns text into paths (with an outline
|
|
227
|
+
* shaper). Each change is one undo step.
|
|
228
|
+
*/
|
|
229
|
+
declare function VectorTextPanel({ controller, className }: VectorTextPanelProps): React__default.JSX.Element | null;
|
|
230
|
+
|
|
231
|
+
interface VectorSymbolsPanelProps {
|
|
232
|
+
controller: VectorEditorController;
|
|
233
|
+
className?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Symbols of the document with previews: New Symbol from the selection, Place, Edit (isolation
|
|
237
|
+
* mode) and Delete per symbol; for a selected instance, Replace, Scale strokes, a fill tint and
|
|
238
|
+
* Detach. Each change is one undo step.
|
|
239
|
+
*/
|
|
240
|
+
declare function VectorSymbolsPanel({ controller, className }: VectorSymbolsPanelProps): React__default.JSX.Element;
|
|
241
|
+
|
|
242
|
+
interface VectorConstraintsPanelProps {
|
|
243
|
+
controller: VectorEditorController;
|
|
244
|
+
className?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Constraints: the degrees of freedom left, the constraints the selection allows (pick anchors with
|
|
248
|
+
* the direct tool, or round paths), Auto Constrain, the constraints of the selection with their
|
|
249
|
+
* values, and the named parameters. Each change is one undo step.
|
|
250
|
+
*/
|
|
251
|
+
declare function VectorConstraintsPanel({ controller, className }: VectorConstraintsPanelProps): React__default.JSX.Element | null;
|
|
252
|
+
|
|
253
|
+
interface VectorFramePanelProps {
|
|
254
|
+
controller: VectorEditorController;
|
|
255
|
+
className?: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Frames (artboards): Frame Selection; for a selected frame its position, size (its children
|
|
259
|
+
* follow their constraints), background and clipping; for objects inside a frame their resizing
|
|
260
|
+
* constraints. Each change is one undo step (sizes apply on Enter or blur).
|
|
261
|
+
*/
|
|
262
|
+
declare function VectorFramePanel({ controller, className }: VectorFramePanelProps): React__default.JSX.Element;
|
|
263
|
+
|
|
264
|
+
interface VectorConnectorPanelProps {
|
|
265
|
+
controller: VectorEditorController;
|
|
266
|
+
className?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* The selected connector: its route (straight, elbow, curved), the elbow corner radius, and for
|
|
270
|
+
* each glued end the side it meets (Auto: the side facing the other end) and Unglue. Each change is
|
|
271
|
+
* one undo step.
|
|
272
|
+
*/
|
|
273
|
+
declare function VectorConnectorPanel({ controller, className }: VectorConnectorPanelProps): React__default.JSX.Element | null;
|
|
274
|
+
|
|
275
|
+
export { type UseVectorEditorResult, VectorAppearancePanel, type VectorAppearancePanelProps, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorConnectorPanel, type VectorConnectorPanelProps, VectorConstraintsPanel, type VectorConstraintsPanelProps, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorFilterDefs, VectorFramePanel, type VectorFramePanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorMaskPanel, type VectorMaskPanelProps, VectorMaskedNodes, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorSymbolsPanel, type VectorSymbolsPanelProps, VectorTextElement, VectorTextPanel, type VectorTextPanelProps, 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, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, VectorRenderNode, VectorWidthPointEdit } from '@pixerate/editor/vector';
|
|
1
|
+
import { VectorEditorController, VectorEditorState, VectorTool, VectorCommandOptions, VectorEditorOptions, VectorRenderFilter, VectorRenderGradientAnnotator, VectorPaintDef, VectorRenderMask, VectorRenderNode, VectorRenderText, 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). */
|
|
@@ -60,7 +60,14 @@ declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
|
60
60
|
declare function VectorFilterDefs({ filters }: {
|
|
61
61
|
filters: readonly VectorRenderFilter[];
|
|
62
62
|
}): React__default.JSX.Element | null;
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Text drawn as SVG text: one `<text>` per paint layer, every span a `<tspan>` placed character by
|
|
65
|
+
* character (the layout is the editor's, not the browser's).
|
|
66
|
+
*/
|
|
67
|
+
declare function VectorTextElement({ node }: {
|
|
68
|
+
node: VectorRenderText;
|
|
69
|
+
}): React__default.JSX.Element;
|
|
70
|
+
/** Renders scene nodes (paths, text and groups) from `getVectorSceneRenderData`. */
|
|
64
71
|
declare function VectorSceneNodes({ nodes }: {
|
|
65
72
|
nodes: readonly VectorRenderNode[];
|
|
66
73
|
}): React__default.JSX.Element;
|
|
@@ -208,4 +215,61 @@ interface VectorAppearancePanelProps {
|
|
|
208
215
|
*/
|
|
209
216
|
declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
|
|
210
217
|
|
|
211
|
-
|
|
218
|
+
interface VectorTextPanelProps {
|
|
219
|
+
controller: VectorEditorController;
|
|
220
|
+
className?: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Character and paragraph style of text: family, weight, size, italic, underline, strike-through,
|
|
224
|
+
* tracking, leading, alignment and point / area text. It edits the selected characters while text
|
|
225
|
+
* is being edited, else the selected text, else the defaults for new text. Type on a Path turns a
|
|
226
|
+
* selected path into path text, and Create Outlines turns text into paths (with an outline
|
|
227
|
+
* shaper). Each change is one undo step.
|
|
228
|
+
*/
|
|
229
|
+
declare function VectorTextPanel({ controller, className }: VectorTextPanelProps): React__default.JSX.Element | null;
|
|
230
|
+
|
|
231
|
+
interface VectorSymbolsPanelProps {
|
|
232
|
+
controller: VectorEditorController;
|
|
233
|
+
className?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Symbols of the document with previews: New Symbol from the selection, Place, Edit (isolation
|
|
237
|
+
* mode) and Delete per symbol; for a selected instance, Replace, Scale strokes, a fill tint and
|
|
238
|
+
* Detach. Each change is one undo step.
|
|
239
|
+
*/
|
|
240
|
+
declare function VectorSymbolsPanel({ controller, className }: VectorSymbolsPanelProps): React__default.JSX.Element;
|
|
241
|
+
|
|
242
|
+
interface VectorConstraintsPanelProps {
|
|
243
|
+
controller: VectorEditorController;
|
|
244
|
+
className?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Constraints: the degrees of freedom left, the constraints the selection allows (pick anchors with
|
|
248
|
+
* the direct tool, or round paths), Auto Constrain, the constraints of the selection with their
|
|
249
|
+
* values, and the named parameters. Each change is one undo step.
|
|
250
|
+
*/
|
|
251
|
+
declare function VectorConstraintsPanel({ controller, className }: VectorConstraintsPanelProps): React__default.JSX.Element | null;
|
|
252
|
+
|
|
253
|
+
interface VectorFramePanelProps {
|
|
254
|
+
controller: VectorEditorController;
|
|
255
|
+
className?: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Frames (artboards): Frame Selection; for a selected frame its position, size (its children
|
|
259
|
+
* follow their constraints), background and clipping; for objects inside a frame their resizing
|
|
260
|
+
* constraints. Each change is one undo step (sizes apply on Enter or blur).
|
|
261
|
+
*/
|
|
262
|
+
declare function VectorFramePanel({ controller, className }: VectorFramePanelProps): React__default.JSX.Element;
|
|
263
|
+
|
|
264
|
+
interface VectorConnectorPanelProps {
|
|
265
|
+
controller: VectorEditorController;
|
|
266
|
+
className?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* The selected connector: its route (straight, elbow, curved), the elbow corner radius, and for
|
|
270
|
+
* each glued end the side it meets (Auto: the side facing the other end) and Unglue. Each change is
|
|
271
|
+
* one undo step.
|
|
272
|
+
*/
|
|
273
|
+
declare function VectorConnectorPanel({ controller, className }: VectorConnectorPanelProps): React__default.JSX.Element | null;
|
|
274
|
+
|
|
275
|
+
export { type UseVectorEditorResult, VectorAppearancePanel, type VectorAppearancePanelProps, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorConnectorPanel, type VectorConnectorPanelProps, VectorConstraintsPanel, type VectorConstraintsPanelProps, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorFilterDefs, VectorFramePanel, type VectorFramePanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorMaskPanel, type VectorMaskPanelProps, VectorMaskedNodes, VectorSceneNodes, VectorStylePanel, type VectorStylePanelProps, VectorSymbolsPanel, type VectorSymbolsPanelProps, VectorTextElement, VectorTextPanel, type VectorTextPanelProps, VectorToolbar, type VectorToolbarProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState };
|