@pixerate/editor-react 0.108.0 → 0.109.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/canvas/index.cjs +767 -692
- package/dist/canvas/index.d.cts +4 -2
- package/dist/canvas/index.d.ts +4 -2
- package/dist/canvas/index.js +285 -208
- package/dist/canvas/useCanvasExplosion.d.cts +23 -5
- package/dist/canvas/useCanvasExplosion.d.ts +23 -5
- package/dist/canvas/useCanvasExplosionState.d.cts +17 -0
- package/dist/canvas/useCanvasExplosionState.d.ts +17 -0
- package/package.json +3 -3
package/dist/canvas/index.d.cts
CHANGED
|
@@ -7,7 +7,9 @@ export { useCanvasLayout, type UseCanvasLayoutOptions } from './useCanvasLayout.
|
|
|
7
7
|
export { useCanvasClipboard, type UseCanvasClipboardOptions } from './useCanvasClipboard.cjs';
|
|
8
8
|
export { useCanvasShortcuts, type UseCanvasShortcutsOptions } from './useCanvasShortcuts.cjs';
|
|
9
9
|
export { useCanvasDocking, type UseCanvasDockingOptions } from './useCanvasDocking.cjs';
|
|
10
|
-
export { useCanvasExplosion, type CanvasGraphTarget } from './useCanvasExplosion.cjs';
|
|
10
|
+
export { useCanvasExplosion, type CanvasGraphTarget, type UseCanvasExplosionOptions } from './useCanvasExplosion.cjs';
|
|
11
|
+
export { useCanvasExplosionState, type CanvasExplosionState, type CanvasExplosionStateHandle, type CanvasExplosionStateOptions } from './useCanvasExplosionState.cjs';
|
|
12
|
+
export { computeCanvasExplosionLayout, explosionEdgeId, createCanvasExplosionStateController, createCanvasExplosionToolProvider, canvasExplosionToolTarget, type ComputeCanvasExplosionLayoutParams, type CanvasExplosionLayoutResult, type CanvasExplosionStateController, type CanvasExplosionStateSnapshot, type CanvasExplosionToolTarget, type CanvasExplosionToolProviderOptions } from '@pixerate/editor/canvas';
|
|
11
13
|
export { useCanvasArrange, useCanvasArrangeShortcuts, type CanvasArrange, type UseCanvasArrangeOptions, type UseCanvasArrangeShortcutsOptions } from './useCanvasArrange.cjs';
|
|
12
14
|
export { useCanvasScenes, type CanvasScenes, type UseCanvasScenesOptions } from './useCanvasScenes.cjs';
|
|
13
15
|
export { useCanvasCapture, type UseCanvasCaptureOptions } from './useCanvasCapture.cjs';
|
|
@@ -22,7 +24,7 @@ export { ShapeNode, type ShapeNodeProps } from './ShapeNode.cjs';
|
|
|
22
24
|
export { ShapeNodeZoomContext, ShapeNodeZoomProvider, useShapeBrushstroke, useCanvasBrushes } from './useShapeBrushstroke.cjs';
|
|
23
25
|
export { combineShapeNodes, canCombineShapeNodes, applyShapeCombination, revertShapeCombination, shapeNodeToPolygon, isShapeNode, getNodeShape, SHAPE_DATA_KEY, SHAPE_NODE_TYPE, SHAPE_OPERATIONS, SHAPE_KINDS, isShapeDescription, shapeToPolygon, getShapeSvg, getShapeRenderData, parseSvgPath, flattenSvgPath, polygonToSvgPath, simplifyRing, polygonBoolean, unionPolygons, intersectPolygons, subtractPolygons, xorPolygons, dividePolygons, polygonArea, multiPolygonArea, multiPolygonBounds, ringSignedArea, pointInRings, pointInMultiPolygon, type ShapeOperation, type ShapeDescription, type ShapeKind, type ShapePaint, type ShapeSize, type ShapeRenderData, type RectShape, type EllipseShape, type RegularPolygonShape, type StarShape, type PathShape, type PathCommand, type FlattenOptions, type PolygonToPathOptions, type CombineShapeNodesOptions, type CombineShapeNodesResult, type CombineShapeNodesRefusal, type ShapeNodePolygonOptions, type MultiPolygon, type PolygonWithHoles, type PolygonRing, type PolygonFillRule, type PolygonOperand, type PolygonInput, type PolygonPiece, type PolygonBooleanOperation, type PolygonBooleanOptions } from '@pixerate/editor/canvas';
|
|
24
26
|
export { offsetShapeNodes, outlineShapeNodeStrokes, canOffsetShapeNodes, canOutlineShapeNodeStrokes, applyShapeReplacement, hasVisibleStroke, shapeToBezierPath, shapeNodeToBezierPath, pathBoolean, unitePaths, intersectPaths, subtractPaths, excludePaths, dividePaths, normalizeBezierPath, bezierPathArea, offsetPath, outlineStroke, strokeOutlineRings, dashContours, toBezierPath, bezierPathToSvg, transformBezierPath, bezierPathBounds, bezierPathSignedArea, bezierPathLength, bezierPathPointAtLength, pointInBezierPath, distanceToBezierPath, countPathSegments, type BezierCommand, type BezierPath, type BezierPathInput, type PathOperand, type PathOperandInput, type PathOpsOptions, type PathBooleanResult, type DividePathsResult, type StrokeJoin, type StrokeCap, type OutlineStrokeOptions, type OffsetPathOptions, type OffsetShapeNodesOptions, type OutlineShapeStrokesOptions, type ShapePathEditResult, type ShapePathEditRefusal, type ShapePathEditOperation } from '@pixerate/editor/canvas';
|
|
25
|
-
export { getLayoutedNodes, ensureLayout, centerNodes, getCenteredNodePosition, placeBeside, estimateNodeSize, flowSide, boundsOf, centre, overlaps, linearTrajectory, linearPositionTrajectory, createFanOutTrajectory, createBezierTrajectory, runMultiNodeTransition, defaultEasing, computeNodesBoundingBox, calculateDirectionalDisplacement, calculateDagreReflowDisplacement, isEventFromTextInput, isValidCanvasNode, isValidUrl, serializeCanvasNodes, parseCanvasClipboardData, remapPastedNodes, repositionNodesTo, realClock, ManualClock, layoutBounds, canvasHeight, estimateCanvasHeight, blendLayout, connectedOnly, type Clock, type CanvasHeightOptions, type CanvasNode, type CanvasEdge, type GraphDifferences, type CanvasClipboardPayload, type CanvasLayoutOptions, type IncrementalLayoutOptions, type PlaceBesideOptions, type TrajectoryPoint, type TrajectoryFunction, type FanOutTrajectoryOptions, type NodeTransition, type DisplacementDirection, type DirectionalDisplacementOptions, type ReflowDisplacementOptions, type ExplosionSnapshot, type ExplodeNodeOptions, type CollapseNodeOptions, type DockStrategy, type CanvasDockingCallbacks, type XYPosition, type Rect, type Side, type Point, type Position } from '@pixerate/editor/canvas';
|
|
27
|
+
export { getLayoutedNodes, ensureLayout, centerNodes, getCenteredNodePosition, placeBeside, estimateNodeSize, flowSide, boundsOf, centre, overlaps, linearTrajectory, linearPositionTrajectory, createFanOutTrajectory, createBezierTrajectory, runMultiNodeTransition, defaultEasing, computeNodesBoundingBox, nodeSizeOf, calculateDirectionalDisplacement, calculateReflowDisplacement, calculateDagreReflowDisplacement, isEventFromTextInput, isValidCanvasNode, isValidUrl, serializeCanvasNodes, parseCanvasClipboardData, remapPastedNodes, repositionNodesTo, realClock, ManualClock, layoutBounds, canvasHeight, estimateCanvasHeight, blendLayout, connectedOnly, type Clock, type CanvasHeightOptions, type CanvasNode, type CanvasEdge, type GraphDifferences, type CanvasClipboardPayload, type CanvasLayoutOptions, type IncrementalLayoutOptions, type PlaceBesideOptions, type TrajectoryPoint, type TrajectoryFunction, type FanOutTrajectoryOptions, type NodeTransition, type DisplacementDirection, type DirectionalDisplacementOptions, type ReflowDisplacementOptions, type ExplosionDisplacementStrategy, type ExplosionSnapshot, type ExplodeNodeOptions, type CollapseNodeOptions, type DockStrategy, type CanvasDockingCallbacks, type XYPosition, type Rect, type Side, type Point, type Position } from '@pixerate/editor/canvas';
|
|
26
28
|
export { layoutFrame, layoutAll, layoutUp, layoutUpMany, applyConstraints, getAutoLayout, getChildLayout, getLayoutSizing, getAutoLayoutGrid, getAutoLayoutInsertTarget, getFlowChildren, getLayoutParent, isAutoLayoutFrame, makeSizingCoherent, moveLayoutChild, mergeNodeUpdates, relayoutUpdates, resolvePadding, clampLayoutSize, createCanvasAutoLayoutController, AUTO_LAYOUT_DATA_KEY, CHILD_LAYOUT_DATA_KEY, type AutoLayout, type AutoLayoutChild, type AutoLayoutMode, type AutoLayoutSizing, type AutoLayoutSizingPair, type AutoLayoutSize, type AutoLayoutAlignMain, type AutoLayoutAlignCross, type AutoLayoutAlignContent, type AutoLayoutPadding, type AutoLayoutGrid, type AutoLayoutGridTrack, type AutoLayoutGridArea, type AutoLayoutGridCell, type AutoLayoutGridGeometry, type AutoLayoutCellAlign, type AutoLayoutConstraints, type AutoLayoutHorizontalConstraint, type AutoLayoutVerticalConstraint, type AutoLayoutMeasure, type AutoLayoutOptions, type AutoLayoutInsertTarget, type CanvasAutoLayoutController, type CanvasAutoLayoutControllerOptions } from '@pixerate/editor/canvas';
|
|
27
29
|
export { useCanvasAutoLayout, type CanvasAutoLayout, type UseCanvasAutoLayoutOptions } from './useCanvasAutoLayout.cjs';
|
|
28
30
|
export { useCanvasTokens, type CanvasTokens, type UseCanvasTokensOptions } from './useCanvasTokens.cjs';
|
package/dist/canvas/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export { useCanvasLayout, type UseCanvasLayoutOptions } from './useCanvasLayout.
|
|
|
7
7
|
export { useCanvasClipboard, type UseCanvasClipboardOptions } from './useCanvasClipboard.js';
|
|
8
8
|
export { useCanvasShortcuts, type UseCanvasShortcutsOptions } from './useCanvasShortcuts.js';
|
|
9
9
|
export { useCanvasDocking, type UseCanvasDockingOptions } from './useCanvasDocking.js';
|
|
10
|
-
export { useCanvasExplosion, type CanvasGraphTarget } from './useCanvasExplosion.js';
|
|
10
|
+
export { useCanvasExplosion, type CanvasGraphTarget, type UseCanvasExplosionOptions } from './useCanvasExplosion.js';
|
|
11
|
+
export { useCanvasExplosionState, type CanvasExplosionState, type CanvasExplosionStateHandle, type CanvasExplosionStateOptions } from './useCanvasExplosionState.js';
|
|
12
|
+
export { computeCanvasExplosionLayout, explosionEdgeId, createCanvasExplosionStateController, createCanvasExplosionToolProvider, canvasExplosionToolTarget, type ComputeCanvasExplosionLayoutParams, type CanvasExplosionLayoutResult, type CanvasExplosionStateController, type CanvasExplosionStateSnapshot, type CanvasExplosionToolTarget, type CanvasExplosionToolProviderOptions } from '@pixerate/editor/canvas';
|
|
11
13
|
export { useCanvasArrange, useCanvasArrangeShortcuts, type CanvasArrange, type UseCanvasArrangeOptions, type UseCanvasArrangeShortcutsOptions } from './useCanvasArrange.js';
|
|
12
14
|
export { useCanvasScenes, type CanvasScenes, type UseCanvasScenesOptions } from './useCanvasScenes.js';
|
|
13
15
|
export { useCanvasCapture, type UseCanvasCaptureOptions } from './useCanvasCapture.js';
|
|
@@ -22,7 +24,7 @@ export { ShapeNode, type ShapeNodeProps } from './ShapeNode.js';
|
|
|
22
24
|
export { ShapeNodeZoomContext, ShapeNodeZoomProvider, useShapeBrushstroke, useCanvasBrushes } from './useShapeBrushstroke.js';
|
|
23
25
|
export { combineShapeNodes, canCombineShapeNodes, applyShapeCombination, revertShapeCombination, shapeNodeToPolygon, isShapeNode, getNodeShape, SHAPE_DATA_KEY, SHAPE_NODE_TYPE, SHAPE_OPERATIONS, SHAPE_KINDS, isShapeDescription, shapeToPolygon, getShapeSvg, getShapeRenderData, parseSvgPath, flattenSvgPath, polygonToSvgPath, simplifyRing, polygonBoolean, unionPolygons, intersectPolygons, subtractPolygons, xorPolygons, dividePolygons, polygonArea, multiPolygonArea, multiPolygonBounds, ringSignedArea, pointInRings, pointInMultiPolygon, type ShapeOperation, type ShapeDescription, type ShapeKind, type ShapePaint, type ShapeSize, type ShapeRenderData, type RectShape, type EllipseShape, type RegularPolygonShape, type StarShape, type PathShape, type PathCommand, type FlattenOptions, type PolygonToPathOptions, type CombineShapeNodesOptions, type CombineShapeNodesResult, type CombineShapeNodesRefusal, type ShapeNodePolygonOptions, type MultiPolygon, type PolygonWithHoles, type PolygonRing, type PolygonFillRule, type PolygonOperand, type PolygonInput, type PolygonPiece, type PolygonBooleanOperation, type PolygonBooleanOptions } from '@pixerate/editor/canvas';
|
|
24
26
|
export { offsetShapeNodes, outlineShapeNodeStrokes, canOffsetShapeNodes, canOutlineShapeNodeStrokes, applyShapeReplacement, hasVisibleStroke, shapeToBezierPath, shapeNodeToBezierPath, pathBoolean, unitePaths, intersectPaths, subtractPaths, excludePaths, dividePaths, normalizeBezierPath, bezierPathArea, offsetPath, outlineStroke, strokeOutlineRings, dashContours, toBezierPath, bezierPathToSvg, transformBezierPath, bezierPathBounds, bezierPathSignedArea, bezierPathLength, bezierPathPointAtLength, pointInBezierPath, distanceToBezierPath, countPathSegments, type BezierCommand, type BezierPath, type BezierPathInput, type PathOperand, type PathOperandInput, type PathOpsOptions, type PathBooleanResult, type DividePathsResult, type StrokeJoin, type StrokeCap, type OutlineStrokeOptions, type OffsetPathOptions, type OffsetShapeNodesOptions, type OutlineShapeStrokesOptions, type ShapePathEditResult, type ShapePathEditRefusal, type ShapePathEditOperation } from '@pixerate/editor/canvas';
|
|
25
|
-
export { getLayoutedNodes, ensureLayout, centerNodes, getCenteredNodePosition, placeBeside, estimateNodeSize, flowSide, boundsOf, centre, overlaps, linearTrajectory, linearPositionTrajectory, createFanOutTrajectory, createBezierTrajectory, runMultiNodeTransition, defaultEasing, computeNodesBoundingBox, calculateDirectionalDisplacement, calculateDagreReflowDisplacement, isEventFromTextInput, isValidCanvasNode, isValidUrl, serializeCanvasNodes, parseCanvasClipboardData, remapPastedNodes, repositionNodesTo, realClock, ManualClock, layoutBounds, canvasHeight, estimateCanvasHeight, blendLayout, connectedOnly, type Clock, type CanvasHeightOptions, type CanvasNode, type CanvasEdge, type GraphDifferences, type CanvasClipboardPayload, type CanvasLayoutOptions, type IncrementalLayoutOptions, type PlaceBesideOptions, type TrajectoryPoint, type TrajectoryFunction, type FanOutTrajectoryOptions, type NodeTransition, type DisplacementDirection, type DirectionalDisplacementOptions, type ReflowDisplacementOptions, type ExplosionSnapshot, type ExplodeNodeOptions, type CollapseNodeOptions, type DockStrategy, type CanvasDockingCallbacks, type XYPosition, type Rect, type Side, type Point, type Position } from '@pixerate/editor/canvas';
|
|
27
|
+
export { getLayoutedNodes, ensureLayout, centerNodes, getCenteredNodePosition, placeBeside, estimateNodeSize, flowSide, boundsOf, centre, overlaps, linearTrajectory, linearPositionTrajectory, createFanOutTrajectory, createBezierTrajectory, runMultiNodeTransition, defaultEasing, computeNodesBoundingBox, nodeSizeOf, calculateDirectionalDisplacement, calculateReflowDisplacement, calculateDagreReflowDisplacement, isEventFromTextInput, isValidCanvasNode, isValidUrl, serializeCanvasNodes, parseCanvasClipboardData, remapPastedNodes, repositionNodesTo, realClock, ManualClock, layoutBounds, canvasHeight, estimateCanvasHeight, blendLayout, connectedOnly, type Clock, type CanvasHeightOptions, type CanvasNode, type CanvasEdge, type GraphDifferences, type CanvasClipboardPayload, type CanvasLayoutOptions, type IncrementalLayoutOptions, type PlaceBesideOptions, type TrajectoryPoint, type TrajectoryFunction, type FanOutTrajectoryOptions, type NodeTransition, type DisplacementDirection, type DirectionalDisplacementOptions, type ReflowDisplacementOptions, type ExplosionDisplacementStrategy, type ExplosionSnapshot, type ExplodeNodeOptions, type CollapseNodeOptions, type DockStrategy, type CanvasDockingCallbacks, type XYPosition, type Rect, type Side, type Point, type Position } from '@pixerate/editor/canvas';
|
|
26
28
|
export { layoutFrame, layoutAll, layoutUp, layoutUpMany, applyConstraints, getAutoLayout, getChildLayout, getLayoutSizing, getAutoLayoutGrid, getAutoLayoutInsertTarget, getFlowChildren, getLayoutParent, isAutoLayoutFrame, makeSizingCoherent, moveLayoutChild, mergeNodeUpdates, relayoutUpdates, resolvePadding, clampLayoutSize, createCanvasAutoLayoutController, AUTO_LAYOUT_DATA_KEY, CHILD_LAYOUT_DATA_KEY, type AutoLayout, type AutoLayoutChild, type AutoLayoutMode, type AutoLayoutSizing, type AutoLayoutSizingPair, type AutoLayoutSize, type AutoLayoutAlignMain, type AutoLayoutAlignCross, type AutoLayoutAlignContent, type AutoLayoutPadding, type AutoLayoutGrid, type AutoLayoutGridTrack, type AutoLayoutGridArea, type AutoLayoutGridCell, type AutoLayoutGridGeometry, type AutoLayoutCellAlign, type AutoLayoutConstraints, type AutoLayoutHorizontalConstraint, type AutoLayoutVerticalConstraint, type AutoLayoutMeasure, type AutoLayoutOptions, type AutoLayoutInsertTarget, type CanvasAutoLayoutController, type CanvasAutoLayoutControllerOptions } from '@pixerate/editor/canvas';
|
|
27
29
|
export { useCanvasAutoLayout, type CanvasAutoLayout, type UseCanvasAutoLayoutOptions } from './useCanvasAutoLayout.js';
|
|
28
30
|
export { useCanvasTokens, type CanvasTokens, type UseCanvasTokensOptions } from './useCanvasTokens.js';
|