@statelyai/flow 0.14.0 → 0.15.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.
Files changed (115) hide show
  1. package/README.md +2 -1
  2. package/dist/esm/index.d.ts +5 -2
  3. package/dist/esm/index.d.ts.map +1 -0
  4. package/dist/esm/index.js +19 -14
  5. package/dist/esm/index.js.map +1 -0
  6. package/dist/esm/layout/dagre.d.ts +2 -1
  7. package/dist/esm/layout/dagre.d.ts.map +1 -0
  8. package/dist/esm/layout/dagre.js +2 -0
  9. package/dist/esm/layout/dagre.js.map +1 -0
  10. package/dist/esm/layout/elk.d.ts +2 -1
  11. package/dist/esm/layout/elk.d.ts.map +1 -0
  12. package/dist/esm/layout/elk.js +2 -0
  13. package/dist/esm/layout/elk.js.map +1 -0
  14. package/dist/esm/layout/stately.d.ts +2 -1
  15. package/dist/esm/layout/stately.d.ts.map +1 -0
  16. package/dist/esm/layout/stately.js +2 -0
  17. package/dist/esm/layout/stately.js.map +1 -0
  18. package/dist/esm/shared.d.ts +2 -1
  19. package/dist/esm/shared.d.ts.map +1 -0
  20. package/dist/esm/shared.js +2 -0
  21. package/dist/esm/shared.js.map +1 -0
  22. package/package.json +4 -3
  23. package/src/__fixtures__/nested.ts +106 -0
  24. package/src/appearances.test.ts +428 -0
  25. package/src/appearances.ts +144 -0
  26. package/src/authoritative-route.ts +14 -0
  27. package/src/changeSet.test.ts +132 -0
  28. package/src/changeSet.ts +337 -0
  29. package/src/config.ts +41 -0
  30. package/src/configure.test.ts +212 -0
  31. package/src/connection-lifetime.ts +1 -0
  32. package/src/connectionPreview.test.ts +102 -0
  33. package/src/connectionPreview.ts +82 -0
  34. package/src/content.ts +203 -0
  35. package/src/createFlow.fit-frame.test.ts +256 -0
  36. package/src/createFlow.modern.test.ts +743 -0
  37. package/src/createFlow.test.ts +632 -0
  38. package/src/createFlow.ts +3463 -0
  39. package/src/createFlow.view.test.ts +212 -0
  40. package/src/createFlow.viewport-controls.test.ts +221 -0
  41. package/src/edge-geometry.ts +318 -0
  42. package/src/engine.cache.test.ts +728 -0
  43. package/src/engine.hierarchy.test.ts +1023 -0
  44. package/src/engine.test.ts +1965 -0
  45. package/src/engine.ts +3385 -0
  46. package/src/entity-changes.test.ts +309 -0
  47. package/src/entity-changes.ts +395 -0
  48. package/src/examples/flow-based-math.test.ts +25 -0
  49. package/src/examples/flow-based-math.ts +210 -0
  50. package/src/external-edit.test.ts +337 -0
  51. package/src/external-edit.ts +358 -0
  52. package/src/factories.test.ts +104 -0
  53. package/src/factories.ts +70 -0
  54. package/src/geometry.ts +13 -0
  55. package/src/graph-index.test.ts +56 -0
  56. package/src/graph-index.ts +194 -0
  57. package/src/hierarchy.test.ts +175 -0
  58. package/src/hierarchy.ts +330 -0
  59. package/src/highlights.test.ts +130 -0
  60. package/src/index.ts +469 -0
  61. package/src/input/index.ts +615 -0
  62. package/src/input/input.test.ts +2577 -0
  63. package/src/input/keymap.ts +111 -0
  64. package/src/input/modes.ts +1715 -0
  65. package/src/input/reparent.test.ts +214 -0
  66. package/src/layout/dagre.ts +138 -0
  67. package/src/layout/elk.ts +1382 -0
  68. package/src/layout/index.ts +12 -0
  69. package/src/layout/layout.test.ts +1248 -0
  70. package/src/layout/shared.ts +260 -0
  71. package/src/layout/stately-globals.d.ts +9 -0
  72. package/src/layout/stately.test.ts +246 -0
  73. package/src/layout/stately.ts +528 -0
  74. package/src/layout-animation.test.ts +223 -0
  75. package/src/layout-contract.test.ts +414 -0
  76. package/src/marker.test.ts +23 -0
  77. package/src/marker.ts +23 -0
  78. package/src/measurement-anchor.test.ts +232 -0
  79. package/src/minimap.test.ts +96 -0
  80. package/src/minimap.ts +137 -0
  81. package/src/nested-fixture.test.ts +178 -0
  82. package/src/port-measurement.test.ts +27 -0
  83. package/src/port-measurements.test.ts +187 -0
  84. package/src/profile.ts +124 -0
  85. package/src/projections.test.ts +103 -0
  86. package/src/projections.ts +295 -0
  87. package/src/render-invalidation.test.ts +62 -0
  88. package/src/render-invalidation.ts +55 -0
  89. package/src/renderer-geometry.test.ts +356 -0
  90. package/src/renderer-transactions.test.ts +234 -0
  91. package/src/routing/avoid.ts +417 -0
  92. package/src/routing/index.test.ts +361 -0
  93. package/src/routing/index.ts +366 -0
  94. package/src/routing/readTracking.test.ts +103 -0
  95. package/src/routing/readTracking.ts +233 -0
  96. package/src/selection-commands.test.ts +355 -0
  97. package/src/serialize.test.ts +167 -0
  98. package/src/serialize.ts +254 -0
  99. package/src/shapes/index.test.ts +45 -0
  100. package/src/shapes/index.ts +142 -0
  101. package/src/snap.test.ts +123 -0
  102. package/src/snap.ts +395 -0
  103. package/src/spatial.test.ts +676 -0
  104. package/src/spatial.ts +457 -0
  105. package/src/store/index.ts +4121 -0
  106. package/src/store.test.ts +2903 -0
  107. package/src/toolbar.test.ts +31 -0
  108. package/src/toolbar.ts +62 -0
  109. package/src/types.test.ts +15 -0
  110. package/src/types.ts +487 -0
  111. package/src/validation.ts +558 -0
  112. package/src/view.ts +172 -0
  113. package/src/viewport/animate.ts +285 -0
  114. package/src/viewport/index.ts +296 -0
  115. package/src/viewport.test.ts +569 -0
package/README.md CHANGED
@@ -446,7 +446,8 @@ flow.viewport.fit({
446
446
 
447
447
  Every viewport mutation (`set`, `panBy`, `zoomTo`, `zoomBy`, `fit`,
448
448
  `fitBounds`, and `centerOn`) returns `ViewportAnimationControls` with `cancel()`
449
- and a `done` promise. `done` resolves on completion or cancellation. Immediate
449
+ and a `done: Promise<boolean>`. It resolves to `true` when the target is reached
450
+ and `false` on cancellation or when no target is available. Immediate
450
451
  and targetless commands return already-resolved controls; a targetless command
451
452
  also cancels any older animation, so no viewport writes continue after its
452
453
  `done`. A newer viewport command or direct low-level viewport write cancels and
@@ -2883,7 +2883,8 @@ type ViewportAnimationFrame = (callback: (time: number) => void) => number;
2883
2883
  type ViewportAnimationCancelFrame = (id: number) => void;
2884
2884
  type ViewportAnimationControls = {
2885
2885
  cancel: () => void;
2886
- done: Promise<void>;
2886
+ /** Resolves true on arrival, false on cancellation. */
2887
+ done: Promise<boolean>;
2887
2888
  };
2888
2889
  type AnimateViewportOptions = ViewportAnimationOptions & {
2889
2890
  raf?: ViewportAnimationFrame;
@@ -3354,6 +3355,7 @@ interface FlowController<TNodeData = any, TEdgeData = any, TLabelData = any> {
3354
3355
  <TSelected>(selector: (context: FlowStoreContext) => TSelected, listener: (selected: TSelected, previous: TSelected) => void, options?: {
3355
3356
  equals?: (a: TSelected, b: TSelected) => boolean;
3356
3357
  emitInitial?: boolean;
3358
+ keys?: readonly (keyof FlowStoreContext)[];
3357
3359
  }): () => void;
3358
3360
  };
3359
3361
  configure: (options: FlowConfigureOptions | ((current: Readonly<FlowConfiguration>) => FlowConfiguration)) => void;
@@ -3712,4 +3714,5 @@ declare const readonlyConfig: Partial<FlowConfig>;
3712
3714
  */
3713
3715
  declare function resolveBehavior<TEntity, TState>(predicate: ((entity: TEntity, state: TState) => boolean) | false | undefined, entity: TEntity, state: TState, defaultValue?: boolean): boolean;
3714
3716
  //#endregion
3715
- export { type ActiveGraphProjection, type AnchorSpec, type AnchorTransform, type AnimateViewportOptions, type AutoLayoutState, type AvoidRouterOptions, type BehaviorPredicate, type BezierRouterOptions, type BoxSelectModeOptions, type BoxSelectionTest, CONNECTION_PREVIEW_EDGE_ID, CONNECTION_PREVIEW_NODE_ID, type CanvasState, type ComposedGraphProjectionAttrs, type ConnectEndTarget, type ConnectModeOptions, type ConnectionCandidate, type ConnectionCandidateOptions, type ConnectionCandidateSource, type ConnectionEndedEvent, type ConnectionPreviewData, type ConnectionPreviewGraphOptions, type ConnectionState, type ConnectionValidationContext, type ConnectionValidationResult, type CreateEdgeInput, type CreateFlowOptions, type CreateNodeInput, type Direction, type EdgeAdjacencyIndex, type EdgeDirection, type EdgePathData, type EdgePathOptions, type EdgeRouter, type EdgeRouterContext, type EdgeRouterGraph, type EdgeRouting, type EdgeSourceBoundsContext, type EntityRect, type EntityVisualState, type FitViewExclusion, type FitViewExclusionSide, type FitViewOptions, type FlowAbortSignal, type FlowAddressable, FlowAppearance, FlowAppearanceConnection, FlowAppearanceDefinition, FlowAppearancePolicy, FlowAppearances, type FlowAutoSizeAnchor, type FlowCapabilityCommand, type FlowCapabilityResult, type FlowChangeSet, type FlowColorMode, type FlowCommand, type FlowCommitEvent, type FlowConfig, type FlowConfiguration, type FlowConfigureOptions, type FlowConnectMovedEvent, type FlowConnectStartedEvent, type FlowConnection, type FlowConnectionMode, type FlowConnectionOptions, type FlowConnectionsApi, type FlowContent, type FlowContentApi, type FlowContentInsertResult, type FlowContentSizeOptions, type FlowController, type FlowCreateIdContext, type FlowDataSchema, type FlowDataSchemas, type FlowDataVersions, type FlowDragEndedEvent, type FlowDragMovedEvent, type FlowDragStartedEvent, type FlowEdge, type FlowEdgeAttributes, type FlowEdgeLabel, type FlowEdgePatch, type FlowEdgeStyle, type FlowEdgeUpdater, type FlowEdgesApi, type FlowEngine, type FlowEngineOptions, type FlowEntitiesDeletedEvent, type FlowEntityChangeNotifier, type FlowEntityChangeNotifierOptions, type FlowEntityGestureEvent, type FlowEntityRef, type FlowEntityUpdate, type FlowErrorEvent, type FlowEventObject, type FlowExternalEdit, type FlowExternalEditOperation, type FlowGeometryOptions, type FlowGestureModifiers, type FlowGraph, type FlowGraphChangedEvent, type FlowGraphHistoryPolicy, type FlowGraphRetentionPolicy, FlowGraphValidationError, type FlowHighlightEntry, type FlowHighlights, type FlowHighlightsApi, type FlowHistoryApi, type FlowInputEffects, type FlowInputEvent, type FlowInputMode, type FlowInputModeContext, type FlowInputModifiers, type FlowInputProfile, type FlowInputReaction, type FlowInputRuntime, type FlowInputRuntimeOptions, type FlowInputSessionHandlers, type FlowInputTarget, type FlowKeyBinding, type FlowKeyInputEvent, type FlowKeymap, type FlowLayoutApi, type FlowMeasurement, type FlowMeasurementsApi, type FlowModeDefinition, type FlowNode, type FlowNodeAttributes, type FlowNodePatch, type FlowNodeUpdater, type FlowNodesApi, type FlowOrigin, type FlowPaneGestureEvent, type FlowPatch, type FlowPinchInputEvent, type FlowPointerInputEvent, type FlowPolicies, type FlowPort, type FlowProfile, type FlowProjectionListener, type FlowProjectionsApi, type FlowRenderApi, type FlowRenderInvalidation, type FlowReplaceGraphOptions, type FlowResizeEndedEvent, type FlowResizeStartedEvent, type FlowResolvers, type FlowResult, type FlowRules, type FlowRuntimeSettings, type FlowSelectionAlignment, type FlowSelectionApi, type FlowSelectionChangedEvent, type FlowSelectionDistribution, type FlowSelectionDuplicateResult, type FlowSerialized, type FlowSessionResult, type FlowSettings, type FlowStore, type FlowStoreContext, type FlowStoreOptions, type FlowTransactionDraft, type FlowTransactionOptions, type FlowTransition, type FlowTransitions, type FlowTriggerCommand, type FlowTriggerName, type FlowUpdateEdgeEvent, type FlowUpdateNodeEvent, type FlowValidationIssue, type FlowViewApi, type FlowViewBoundaryEndpoints, type FlowViewChangedEvent, type FlowViewEndpoint, type FlowViewEntities, type FlowViewScope, type FlowViewSelectionPolicy, type FlowViewportApi, type FlowViewportChangedEvent, type FlowWheelInputEvent, type Graph, type GraphDecoration, type GraphEdge, type GraphEdgeAttrs, type GraphNode, type GraphNodeAttrs, type GraphPort, type GraphProjection, type GraphProjectionMapper, type GroupContentSide, type GroupGeometry, type GroupInsets, type GroupLayout, type InteractionMode, type LabelAnchor, type LayoutAlgorithm, type LayoutAnimationControls, type LayoutAnimationOptions, type LayoutApplyOptions, type LayoutDiagnostic, type LayoutEdgeRoute, type LayoutPositions, type LayoutRequestedEvent, type LayoutResult, type LayoutRunOptions, type LayoutRunResult, type MarkerType, type MinimapProjection, type MinimapProjectionOptions, type MinimapViewportCenterOptions, type PathData, type Point, type PortDirection, type ProposedConnection, type ReconnectModeOptions, type Rect, type RenderableEntitiesOptions, type ReparentDecision, type ReparentDropContext, type ReparentOptions, type ResizeConstraints, type ResizeHandle, type ResolvedFitViewExclusion, ResolvedFlowAppearance, type SelectionMode, type ShapeHandler, type Side, type Size, type SnapLine, type SnapOptions, type SnapResult, type SpacingGuide, type StandardSchemaV1Like, type StepRouterOptions, type StyleOverrides, type ToolbarPlacement, type ToolbarPlacementInput, type Viewport, type ViewportAnimationCancelFrame, type ViewportAnimationControls, type ViewportAnimationFrame, type ViewportAnimationOptions, type VisualEdge, type VisualGraph, type VisualNode, type VisualPort, type WheelInteraction, type WheelInteractionOptions, animateViewport, appearanceAllowsPort, appearanceDirection, appearanceMeasurementId, appearanceSides, applyFlowPatches, areNodesMeasured, avoidRouter, bestDirection, bezierRouter, boxSelectMode, boxToRect, calcAutoPan, canvasToScreen, clampZoom, cloneJsonSafe, composeGraphProjectionAttrs, configureAvoidRouter, configureBezierRouter, configureStepRouter, connectMode, constrainViewport, createConnectionPreviewGraph, createEdge, createEntityChangeNotifier, createFlow, createFlowChangeSet, createFlowEngine, createFlowInputRuntime, createFlowStore, createGraph, createNode, createPort, createViewport, defaultConfig, defaultFlowProfile, defaultInputModes, defaultInputModesForKeymap, defaultKeymap, defaultModesForContext, defineFlowProfile, deriveFlowView, deriveGroupGeometry, entityPressMode, extractFlowContent, fitFrameAroundExclusions, fixedGroupGeometry, fromJSON, getAnchorTransform, getAutoPanDelta, getConnectedEdges, getEdgeOwner, getGraphBounds, getIncomers, getMinimapProjection, getMinimapViewportCenter, getNeighbors, getOutgoers, getProjectedEdgeAttrs, getProjectedNodeAttrs, getSelectionBounds, getShape, getShapeOrDefault, getSnapLines, getToolbarPlacement, getVisibleBounds, hoverMode, indexChildren, indexEdgeAdjacency, indexEdges, indexNodes, insertFlowContent, isDerivedGroup, isGroup, isTrackpadPinch, keyboardMode, keyboardNavMode, markerToSVG, matchesKeyBinding, mergeGraphEdgeAttrs, mergeGraphNodeAttrs, nodeDepths, normalizeWheelPan, panBy, panMode, panePressMode, parseFlowSerialized, pathToSVG, pinchMode, portPressMode, preventDefault, profileModesForContext, profilePoliciesForContext, readonlyConfig, readonlyInputModes, readonlyInputModesForKeymap, reconnectMode, rectContains, rectsIntersect, registerShape, resolveAppearance, resolveBehavior, resolveGroupPadding, resolveKeymap, resolvedBounds, resolvedEdgeLabelBounds, resolvedEdgeLabelSize, resolvedPosition, resolvedSelectionBounds, screenToCanvas, selectMode, serializeFlowGraph, snapPointToGrid, snapToGrid, snappedBounds, sortActiveGraphProjections, stepRouter, straightRouter, toSVGTransform, toViewBox, trigger, unionRect, validateAndCloneGraph, validateFitFrame, validateViewport, viewportCenteredOn, viewportForBounds, visualBounds, visualPosition, wheelInteraction, wheelMode, wheelZoomDelta, zoomTo };
3717
+ export { type ActiveGraphProjection, type AnchorSpec, type AnchorTransform, type AnimateViewportOptions, type AutoLayoutState, type AvoidRouterOptions, type BehaviorPredicate, type BezierRouterOptions, type BoxSelectModeOptions, type BoxSelectionTest, CONNECTION_PREVIEW_EDGE_ID, CONNECTION_PREVIEW_NODE_ID, type CanvasState, type ComposedGraphProjectionAttrs, type ConnectEndTarget, type ConnectModeOptions, type ConnectionCandidate, type ConnectionCandidateOptions, type ConnectionCandidateSource, type ConnectionEndedEvent, type ConnectionPreviewData, type ConnectionPreviewGraphOptions, type ConnectionState, type ConnectionValidationContext, type ConnectionValidationResult, type CreateEdgeInput, type CreateFlowOptions, type CreateNodeInput, type Direction, type EdgeAdjacencyIndex, type EdgeDirection, type EdgePathData, type EdgePathOptions, type EdgeRouter, type EdgeRouterContext, type EdgeRouterGraph, type EdgeRouting, type EdgeSourceBoundsContext, type EntityRect, type EntityVisualState, type FitViewExclusion, type FitViewExclusionSide, type FitViewOptions, type FlowAbortSignal, type FlowAddressable, FlowAppearance, FlowAppearanceConnection, FlowAppearanceDefinition, FlowAppearancePolicy, FlowAppearances, type FlowAutoSizeAnchor, type FlowCapabilityCommand, type FlowCapabilityResult, type FlowChangeSet, type FlowColorMode, type FlowCommand, type FlowCommitEvent, type FlowConfig, type FlowConfiguration, type FlowConfigureOptions, type FlowConnectMovedEvent, type FlowConnectStartedEvent, type FlowConnection, type FlowConnectionMode, type FlowConnectionOptions, type FlowConnectionsApi, type FlowContent, type FlowContentApi, type FlowContentInsertResult, type FlowContentSizeOptions, type FlowController, type FlowCreateIdContext, type FlowDataSchema, type FlowDataSchemas, type FlowDataVersions, type FlowDragEndedEvent, type FlowDragMovedEvent, type FlowDragStartedEvent, type FlowEdge, type FlowEdgeAttributes, type FlowEdgeLabel, type FlowEdgePatch, type FlowEdgeStyle, type FlowEdgeUpdater, type FlowEdgesApi, type FlowEngine, type FlowEngineOptions, type FlowEntitiesDeletedEvent, type FlowEntityChangeNotifier, type FlowEntityChangeNotifierOptions, type FlowEntityGestureEvent, type FlowEntityRef, type FlowEntityUpdate, type FlowErrorEvent, type FlowEventObject, type FlowExternalEdit, type FlowExternalEditOperation, type FlowGeometryOptions, type FlowGestureModifiers, type FlowGraph, type FlowGraphChangedEvent, type FlowGraphHistoryPolicy, type FlowGraphRetentionPolicy, FlowGraphValidationError, type FlowHighlightEntry, type FlowHighlights, type FlowHighlightsApi, type FlowHistoryApi, type FlowInputEffects, type FlowInputEvent, type FlowInputMode, type FlowInputModeContext, type FlowInputModifiers, type FlowInputProfile, type FlowInputReaction, type FlowInputRuntime, type FlowInputRuntimeOptions, type FlowInputSessionHandlers, type FlowInputTarget, type FlowKeyBinding, type FlowKeyInputEvent, type FlowKeymap, type FlowLayoutApi, type FlowMeasurement, type FlowMeasurementsApi, type FlowModeDefinition, type FlowNode, type FlowNodeAttributes, type FlowNodePatch, type FlowNodeUpdater, type FlowNodesApi, type FlowOrigin, type FlowPaneGestureEvent, type FlowPatch, type FlowPinchInputEvent, type FlowPointerInputEvent, type FlowPolicies, type FlowPort, type FlowProfile, type FlowProjectionListener, type FlowProjectionsApi, type FlowRenderApi, type FlowRenderInvalidation, type FlowReplaceGraphOptions, type FlowResizeEndedEvent, type FlowResizeStartedEvent, type FlowResolvers, type FlowResult, type FlowRules, type FlowRuntimeSettings, type FlowSelectionAlignment, type FlowSelectionApi, type FlowSelectionChangedEvent, type FlowSelectionDistribution, type FlowSelectionDuplicateResult, type FlowSerialized, type FlowSessionResult, type FlowSettings, type FlowStore, type FlowStoreContext, type FlowStoreOptions, type FlowTransactionDraft, type FlowTransactionOptions, type FlowTransition, type FlowTransitions, type FlowTriggerCommand, type FlowTriggerName, type FlowUpdateEdgeEvent, type FlowUpdateNodeEvent, type FlowValidationIssue, type FlowViewApi, type FlowViewBoundaryEndpoints, type FlowViewChangedEvent, type FlowViewEndpoint, type FlowViewEntities, type FlowViewScope, type FlowViewSelectionPolicy, type FlowViewportApi, type FlowViewportChangedEvent, type FlowWheelInputEvent, type Graph, type GraphDecoration, type GraphEdge, type GraphEdgeAttrs, type GraphNode, type GraphNodeAttrs, type GraphPort, type GraphProjection, type GraphProjectionMapper, type GroupContentSide, type GroupGeometry, type GroupInsets, type GroupLayout, type InteractionMode, type LabelAnchor, type LayoutAlgorithm, type LayoutAnimationControls, type LayoutAnimationOptions, type LayoutApplyOptions, type LayoutDiagnostic, type LayoutEdgeRoute, type LayoutPositions, type LayoutRequestedEvent, type LayoutResult, type LayoutRunOptions, type LayoutRunResult, type MarkerType, type MinimapProjection, type MinimapProjectionOptions, type MinimapViewportCenterOptions, type PathData, type Point, type PortDirection, type ProposedConnection, type ReconnectModeOptions, type Rect, type RenderableEntitiesOptions, type ReparentDecision, type ReparentDropContext, type ReparentOptions, type ResizeConstraints, type ResizeHandle, type ResolvedFitViewExclusion, ResolvedFlowAppearance, type SelectionMode, type ShapeHandler, type Side, type Size, type SnapLine, type SnapOptions, type SnapResult, type SpacingGuide, type StandardSchemaV1Like, type StepRouterOptions, type StyleOverrides, type ToolbarPlacement, type ToolbarPlacementInput, type Viewport, type ViewportAnimationCancelFrame, type ViewportAnimationControls, type ViewportAnimationFrame, type ViewportAnimationOptions, type VisualEdge, type VisualGraph, type VisualNode, type VisualPort, type WheelInteraction, type WheelInteractionOptions, animateViewport, appearanceAllowsPort, appearanceDirection, appearanceMeasurementId, appearanceSides, applyFlowPatches, areNodesMeasured, avoidRouter, bestDirection, bezierRouter, boxSelectMode, boxToRect, calcAutoPan, canvasToScreen, clampZoom, cloneJsonSafe, composeGraphProjectionAttrs, configureAvoidRouter, configureBezierRouter, configureStepRouter, connectMode, constrainViewport, createConnectionPreviewGraph, createEdge, createEntityChangeNotifier, createFlow, createFlowChangeSet, createFlowEngine, createFlowInputRuntime, createFlowStore, createGraph, createNode, createPort, createViewport, defaultConfig, defaultFlowProfile, defaultInputModes, defaultInputModesForKeymap, defaultKeymap, defaultModesForContext, defineFlowProfile, deriveFlowView, deriveGroupGeometry, entityPressMode, extractFlowContent, fitFrameAroundExclusions, fixedGroupGeometry, fromJSON, getAnchorTransform, getAutoPanDelta, getConnectedEdges, getEdgeOwner, getGraphBounds, getIncomers, getMinimapProjection, getMinimapViewportCenter, getNeighbors, getOutgoers, getProjectedEdgeAttrs, getProjectedNodeAttrs, getSelectionBounds, getShape, getShapeOrDefault, getSnapLines, getToolbarPlacement, getVisibleBounds, hoverMode, indexChildren, indexEdgeAdjacency, indexEdges, indexNodes, insertFlowContent, isDerivedGroup, isGroup, isTrackpadPinch, keyboardMode, keyboardNavMode, markerToSVG, matchesKeyBinding, mergeGraphEdgeAttrs, mergeGraphNodeAttrs, nodeDepths, normalizeWheelPan, panBy, panMode, panePressMode, parseFlowSerialized, pathToSVG, pinchMode, portPressMode, preventDefault, profileModesForContext, profilePoliciesForContext, readonlyConfig, readonlyInputModes, readonlyInputModesForKeymap, reconnectMode, rectContains, rectsIntersect, registerShape, resolveAppearance, resolveBehavior, resolveGroupPadding, resolveKeymap, resolvedBounds, resolvedEdgeLabelBounds, resolvedEdgeLabelSize, resolvedPosition, resolvedSelectionBounds, screenToCanvas, selectMode, serializeFlowGraph, snapPointToGrid, snapToGrid, snappedBounds, sortActiveGraphProjections, stepRouter, straightRouter, toSVGTransform, toViewBox, trigger, unionRect, validateAndCloneGraph, validateFitFrame, validateViewport, viewportCenteredOn, viewportForBounds, visualBounds, visualPosition, wheelInteraction, wheelMode, wheelZoomDelta, zoomTo };
3718
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/appearances.ts","../../src/connection-lifetime.ts","../../src/hierarchy.ts","../../src/types.ts","../../src/marker.ts","../../src/projections.ts","../../src/view.ts","../../src/routing/avoid.ts","../../src/routing/index.ts","../../src/snap.ts","../../src/engine.ts","../../src/input/keymap.ts","../../src/input/modes.ts","../../src/input/index.ts","../../src/profile.ts","../../src/store/index.ts","../../src/validation.ts","../../src/changeSet.ts","../../src/external-edit.ts","../../src/render-invalidation.ts","../../src/factories.ts","../../src/viewport/animate.ts","../../src/viewport/index.ts","../../src/serialize.ts","../../src/content.ts","../../src/createFlow.ts","../../src/connectionPreview.ts","../../src/spatial.ts","../../src/toolbar.ts","../../src/minimap.ts","../../src/graph-index.ts","../../src/shapes/index.ts","../../src/entity-changes.ts","../../src/config.ts"],"mappings":";;;;KAGY;EACV;EACA,UAAU;;KAEA;;EAEV,SAAS;IAAS;;EAClB,iBAAiB;EACjB;;KAEU;EACV,aAAa;;EAEb;EACA;;EAEA,mBAAmB;;EAEnB,iBAAiB;;EAEjB;;KAEU,2BACR,yBACE;EACA,QAAQ,WAAW;EACnB,SAAS,SAAS;MACd;KACE;EACV,cAAc,SAAS,eAAe;EACtC;IAAa,OAAO;IAAgB,YAAY;;;KAEtC,yBAAyB;EACnC,WAAW;EACX;EACA;EACA;EACA,gBAAgB;;cAEL,0BAA0B;iBAOvB,kBACd,QAAQ,WAAW,eACnB,cAAa,kBACZ;;iBAoCa,wBACd,YACA,YAAY;iBAUE,qBACd,MAAM,UACN,kBACA,YAAY;;iBAYE,oBACd,QAAQ,MACR,OAAO,MACP,WAAW,WACX,gBAAgB,cACf;;;cCxHU;;;KCwBD;KAEA;EACV;EACA;EACA;EACA;;KAGU;EAEN;;EAEA,UAAU;;EAEV,mBAAmB,QAAQ;;EAE3B,eAAe;;;;;;;EAOf;;EAEA,YAAY;;EAGZ;EACA,UAAU;EACV,mBAAmB,QAAQ;;;;;;;EAO3B,cAAc;;EAEd;;;;;;;EAOA;;E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ACA;EACA;;KAGU;EACV;EACA;EACA;;;;;;;;;;;iBAYc,mBACd,QAAQ,MACR,UAAU,UACV,QAAQ,aACP;;;KC3aS;;EAEV,QAAQ;;EAER;EACA;;EAEA;EACA;;EAEA;;EAEA;;KAGU;;EAEV;EACA;EACA;;iBAGc,oBACd,OAAO,wBACN;;;KCrBS;;EAEV,eAAe;;EAEf,UAAU;;EAEV,cAAc;;EAEd;EACA;;EAEA;;KAGU;;EAEV;;EAEA,QAAQ;;EAER,cAAc;EACd,UAAU,OAAO,QAAQ;EACzB,SAAS,OAAO,QAAQ;EACxB,cAAc,MAAM,OAAO;;KAGjB;;EAEV,OAAO;;EAEP,aAAa;;EAEb,eAAe;;EAEf,gBAAgB;;;;;;;;iBASF,yBACd,SAAS,+BACR;iBAsBa,qBACd,SAAS,2BACR;;;KC/DS;EACV,UAAU,YAAY;EACtB,UAAU,YAAY;EACtB,QAAQ,YAAY;;iBAGN,WAAW,OAAO,aAAa,YAAY;iBA4B3C,WAAW,OAAO,aAAa,YAAY;iBAiC3C,mBAAmB,OAAO,aAAa;iBAmBvC,YACd,OAAO,WACP,iBACC;iBASa,YACd,OAAO,WACP,iBACC;iBASa,kBACd,OAAO,WACP,SAAS,mBACR;iBAWa,aACd,OAAO,WACP,iBACC;;iBAQa,cAAc,OAAO,aAAa,YAAY;;;;;;iBAgB9C,WAAW,OAAO,aAAa;;;iBC9J/B,cAAc,cAAc,SAAS;iBAIrC,SAAS,eAAe;iBAIxB,kBAAkB,eAAe;;;KCQrC;;EAEV,UAAU,YAAY;;EAEtB;;KAGU;EACV,qBAAqB,mBAAmB;;iBAiS1B,2BACd,OAAO,WACP,UAAS,kCACR;;;;cChUU,eAAe;;cAYf,gBAAgB,QAAQ;;;;;iBAYrB,gBAAgB,SAAS,QACvC,aAAa,QAAQ,SAAS,OAAO,yCACrC,QAAQ,SACR,OAAO,QACP"}
package/dist/esm/index.js CHANGED
@@ -301,7 +301,7 @@ function animateViewport(store, target, options = {}) {
301
301
  store.trigger.setViewport(target);
302
302
  return {
303
303
  cancel: () => {},
304
- done: Promise.resolve()
304
+ done: Promise.resolve(true)
305
305
  };
306
306
  }
307
307
  const raf = options.raf ?? defaultRaf;
@@ -324,12 +324,12 @@ function animateViewport(store, target, options = {}) {
324
324
  cancelRaf(frame);
325
325
  frame = null;
326
326
  }
327
- resolveDone();
327
+ resolveDone(false);
328
328
  };
329
329
  const finish = () => {
330
330
  store.trigger.setViewport(target);
331
331
  frame = null;
332
- resolveDone();
332
+ resolveDone(true);
333
333
  };
334
334
  const springConfig = options.spring ?? {};
335
335
  const stiffness = springConfig.stiffness ?? DEFAULT_SPRING_STIFFNESS;
@@ -4915,7 +4915,7 @@ function createFlowStore(initialGraph = {
4915
4915
  candidateNodes.add(candidate.id);
4916
4916
  const port = candidate.ports?.[portTarget.portIndex];
4917
4917
  if (!port) continue;
4918
- const origin = snappedBounds(candidate, draft.snapToGrid ? draft.snapGrid : null);
4918
+ const origin = measurement.origin ?? snappedBounds(candidate, draft.snapToGrid ? draft.snapGrid : null);
4919
4919
  port.x = measurement.rect.x - origin.x;
4920
4920
  port.y = measurement.rect.y - origin.y;
4921
4921
  port.width = measurement.rect.width;
@@ -6702,9 +6702,7 @@ function createFlowEngine(store, initialOptions = {}) {
6702
6702
  const c = ctx();
6703
6703
  const id = port.id && c.measurements.has(port.id) ? port.id : `${node.id}:${port.name}`;
6704
6704
  const local = c.derivedPortMeasurements.get(id);
6705
- const measured = c.measurements.get(id);
6706
- if (measured && !local) return { ...measured };
6707
- const position = local ? visualPosition(node, snap ?? getVisualSnapOffset()) : snap ? visualPosition(node, snap) : layoutPosition(node);
6705
+ const position = visualPosition(node, snap ?? getVisualSnapOffset());
6708
6706
  const rect = local ?? port;
6709
6707
  return {
6710
6708
  x: position.x + rect.x,
@@ -9065,16 +9063,16 @@ function createFlow(options = {}) {
9065
9063
  activeViewportAnimation = null;
9066
9064
  pendingInternalViewportWrites.length = 0;
9067
9065
  }
9068
- function resolvedViewportControls() {
9066
+ function resolvedViewportControls(reached = true) {
9069
9067
  return {
9070
9068
  cancel: () => {},
9071
- done: Promise.resolve()
9069
+ done: Promise.resolve(reached)
9072
9070
  };
9073
9071
  }
9074
9072
  function setViewportTarget(target, animationOptions) {
9075
9073
  if (!target) {
9076
9074
  cancelViewportAnimation();
9077
- return resolvedViewportControls();
9075
+ return resolvedViewportControls(false);
9078
9076
  }
9079
9077
  cancelViewportAnimation();
9080
9078
  const resolvedAnimationOptions = {
@@ -9898,11 +9896,11 @@ function createFlow(options = {}) {
9898
9896
  const context = store.getSnapshot().context;
9899
9897
  if (context.viewportSize.width === 0 || context.viewportSize.height === 0) {
9900
9898
  cancelViewportAnimation();
9901
- return resolvedViewportControls();
9899
+ return resolvedViewportControls(false);
9902
9900
  }
9903
9901
  if (bounds.width === 0 && bounds.height === 0) {
9904
9902
  cancelViewportAnimation();
9905
- return resolvedViewportControls();
9903
+ return resolvedViewportControls(false);
9906
9904
  }
9907
9905
  return setViewportTarget(viewportForBounds(bounds, context.viewportSize, {
9908
9906
  ...fitOptions,
@@ -10279,10 +10277,15 @@ function createFlow(options = {}) {
10279
10277
  const selector = selectorOrListener;
10280
10278
  const listener = maybeListener;
10281
10279
  const equals = subscribeOptions?.equals ?? Object.is;
10282
- let previous = selector(store.getSnapshot().context);
10280
+ let previousContext = store.getSnapshot().context;
10281
+ let previous = selector(previousContext);
10283
10282
  if (subscribeOptions?.emitInitial) listener(previous, previous);
10284
10283
  const subscription = store.subscribe((snapshot) => {
10285
- const selected = selector(snapshot.context);
10284
+ const context = snapshot.context;
10285
+ const unchanged = subscribeOptions?.keys?.every((key) => Object.is(context[key], previousContext[key]));
10286
+ previousContext = context;
10287
+ if (unchanged) return;
10288
+ const selected = selector(context);
10286
10289
  if (equals(selected, previous)) return;
10287
10290
  const old = previous;
10288
10291
  previous = selected;
@@ -12174,3 +12177,5 @@ function createEntityChangeNotifier(store, options = {}) {
12174
12177
  }
12175
12178
  //#endregion
12176
12179
  export { CONNECTION_PREVIEW_EDGE_ID, CONNECTION_PREVIEW_NODE_ID, FlowGraphValidationError, animateViewport, appearanceAllowsPort, appearanceDirection, appearanceMeasurementId, appearanceSides, applyFlowPatches, areNodesMeasured, avoidRouter, bestDirection, bezierRouter, boxSelectMode, boxToRect, calcAutoPan, canvasToScreen, clampZoom, cloneJsonSafe, composeGraphProjectionAttrs, configureAvoidRouter, configureBezierRouter, configureStepRouter, connectMode, constrainViewport, createConnectionPreviewGraph, createEdge, createEntityChangeNotifier, createFlow, createFlowChangeSet, createFlowEngine, createFlowInputRuntime, createFlowStore, createGraph, createNode, createPort, createViewport, defaultConfig, defaultFlowProfile, defaultInputModes, defaultInputModesForKeymap, defaultKeymap, defaultModesForContext, defineFlowProfile, deriveFlowView, deriveGroupGeometry, entityPressMode, extractFlowContent, fitFrameAroundExclusions, fixedGroupGeometry, fromJSON, getAnchorTransform, getAutoPanDelta, getConnectedEdges, getEdgeOwner, getGraphBounds, getIncomers, getMinimapProjection, getMinimapViewportCenter, getNeighbors, getOutgoers, getProjectedEdgeAttrs, getProjectedNodeAttrs, getSelectionBounds, getShape, getShapeOrDefault, getSnapLines, getToolbarPlacement, getVisibleBounds, hoverMode, indexChildren, indexEdgeAdjacency, indexEdges, indexNodes, insertFlowContent, isDerivedGroup, isGroup, isTrackpadPinch, keyboardMode, keyboardNavMode, markerToSVG, matchesKeyBinding, mergeGraphEdgeAttrs, mergeGraphNodeAttrs, nodeDepths, normalizeWheelPan, panBy, panMode, panePressMode, parseFlowSerialized, pathToSVG, pinchMode, portPressMode, preventDefault, profileModesForContext, profilePoliciesForContext, readonlyConfig, readonlyInputModes, readonlyInputModesForKeymap, reconnectMode, rectContains, rectsIntersect, registerShape, resolveAppearance, resolveBehavior, resolveGroupPadding, resolveKeymap, resolvedBounds, resolvedEdgeLabelBounds, resolvedEdgeLabelSize, resolvedPosition, resolvedSelectionBounds, screenToCanvas, selectMode, serializeFlowGraph, snapPointToGrid, snapToGrid, snappedBounds, sortActiveGraphProjections, stepRouter, straightRouter, toSVGTransform, toViewBox, trigger, unionRect, validateAndCloneGraph, validateFitFrame, validateViewport, viewportCenteredOn, viewportForBounds, visualBounds, visualPosition, wheelInteraction, wheelMode, wheelZoomDelta, zoomTo };
12180
+
12181
+ //# sourceMappingURL=index.js.map