@statelyai/flow 0.8.2 → 0.9.1
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/README.md +13 -3
- package/dist/esm/index.d.ts +55 -4
- package/dist/esm/index.js +699 -204
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ The canonical data model is `VisualGraph` from `@statelyai/graph`. Flow extends
|
|
|
147
147
|
|
|
148
148
|
<!-- flow entity types from src/types.ts -->
|
|
149
149
|
|
|
150
|
-
- **`FlowNode`** — `VisualNode` + `{ kind, dx, dy, style, ports, autoSize, autoSizeAnchor, resize, hidden, selectable, draggable, connectable, deletable, resizable }` for application-defined rendering kinds, drag offsets, DOM-owned sizing, anchor policy, style overrides, resize constraints, and per-entity behavior. Keep the structural `type` equal to `"node"`; use `kind` for variants such as `state` or `annotation`.
|
|
150
|
+
- **`FlowNode`** — `VisualNode` + `{ kind, dx, dy, style, ports, autoSize, autoSizeAnchor, selectionBounds, resize, hidden, selectable, draggable, connectable, deletable, resizable }` for application-defined rendering kinds, drag offsets, DOM-owned sizing, anchor policy, optional marquee hit geometry, style overrides, resize constraints, and per-entity behavior. Keep the structural `type` equal to `"node"`; use `kind` for variants such as `state` or `annotation`.
|
|
151
151
|
- **`FlowEdge`** — `VisualEdge` + `{ label, waypoints, svgPath, sourcePort, targetPort, kind, style, labelAnchor }` for edge labels, editable router via-points, exact SVG geometry, port binding, and edge styling. Canonical `VisualEdge.points` plus `routing` are an authoritative precomputed route and bypass Flow routers; an optional `svgPath` controls exact SVG paint while points remain authoritative for interaction geometry. Reconnects, node geometry updates, committed drags, and layout application clear stale precomputed routes; layout-provided edge routes replace them with router waypoints. `label.autoSize` makes rendered DOM own transient label dimensions without overwriting authored fallback `width`/`height`; inherited edge `x/y/width/height` are reserved, while positioned edge content belongs on `label`.
|
|
152
152
|
- **`FlowGraph`** — `VisualGraph` with `FlowNode[]` and `FlowEdge[]`
|
|
153
153
|
- **`FlowEntityRef`** — descriptor for a node, edge, port, or block resolved by id. `FlowAddressable` is a deprecated alias.
|
|
@@ -219,6 +219,8 @@ projections remain controller-owned and independent of the structural view.
|
|
|
219
219
|
Register the unobscured screen-space rectangle when persistent UI overlays
|
|
220
220
|
cover part of the canvas. Fit, center, and zoom commands with no explicit pivot
|
|
221
221
|
then target that frame. The default remains the full, current viewport.
|
|
222
|
+
Derived groups fit by their current family bounds, including visible descendants,
|
|
223
|
+
rather than by the stored content-block anchor.
|
|
222
224
|
|
|
223
225
|
```ts
|
|
224
226
|
flow.viewport.setFitFrame({ x: 320, y: 0, width: 880, height: 800 });
|
|
@@ -283,7 +285,7 @@ At runtime, flow expects port rectangles to be available for routing and hit geo
|
|
|
283
285
|
|
|
284
286
|
Connection gestures snap to the nearest valid port inside `engine.connection.radius` (default `24` canvas pixels). In the default `loose` mode, node body targets remain valid fallback targets; `strict` mode requires port targets.
|
|
285
287
|
|
|
286
|
-
For controlled graphs, `reconnectMode({ commit: false, dragThreshold: true, preview: false })` keeps pointer capture, thresholding, auto-pan, target resolution, and lifecycle events in Flow while leaving domain mutation and temporary geometry to the controller. `connectionEnded.reconnectedEdgeId` identifies connected, invalid, and cancelled observer-owned reconnects.
|
|
288
|
+
For controlled graphs, `reconnectMode({ commit: false, dragThreshold: true, preview: false })` keeps pointer capture, thresholding, auto-pan, target resolution, and lifecycle events in Flow while leaving domain mutation and temporary geometry to the controller. Exact DOM node/port targets take priority, then reconnection falls back to Flow's spatial candidate. Groups are fully targetable by default; `group.connectionBoundaryWidth` limits spatial body targeting to the content block and an inset child-surface boundary, leaving its interior as canvas. `connectionEnded.reconnectedEdgeId` identifies connected, invalid, and cancelled observer-owned reconnects.
|
|
287
289
|
|
|
288
290
|
```ts
|
|
289
291
|
const graph = {
|
|
@@ -613,7 +615,10 @@ await animation.done;
|
|
|
613
615
|
|
|
614
616
|
<!-- edge routers from src/routing/index.ts -->
|
|
615
617
|
|
|
616
|
-
Four built-in routers. All return `PathData` (points + source/target direction). A custom router may also return `svgPath` to preserve rounded or otherwise custom SVG geometry; `points` remain required for bounds and endpoint handles, and exported `pathToSVG` safely prefers a finite override containing only SVG path commands and numeric parameters. Canonical graph `edge.points` are different from `waypoints`: they are a complete authoritative endpoint-to-endpoint route, interpreted by `edge.routing` (`polyline`, `orthogonal`, or chained `splines`) and never sent through a Flow router or split around a label. An optional edge `svgPath` preserves exact SVG paint while the authoritative points drive endpoints, bounds, hit testing, culling, transient DOM updates, and export. Core endpoint-geometry mutations invalidate precomputed route fields; layout-provided edge routes replace them with router waypoints, while consumers can apply a fresh authoritative graph to restore exact geometry. Edge `waypoints` remain ordered interior router inputs passed through `EdgeRouterContext`; built-in routers honor them. Custom `EdgeRouter`s receive the full typed edge plus the exact canonical or projection `graph` currently being routed and a detached, read-only `getEntityBounds(id)` lookup for live node/edge-label geometry. The lookup never routes another edge. Use `configureBezierRouter(options)`, `configureStepRouter(options)`, and `configureAvoidRouter(options)` for customized built-in router variants. `avoidRouter` is opt-in and routes orthogonal polylines around sibling node obstacles.
|
|
618
|
+
Four built-in routers. All return `PathData` (points + source/target direction). A custom router may also return `svgPath` to preserve rounded or otherwise custom SVG geometry; `points` remain required for bounds and endpoint handles, and exported `pathToSVG` safely prefers a finite override containing only SVG path commands and numeric parameters. Canonical graph `edge.points` are different from `waypoints`: they are a complete authoritative endpoint-to-endpoint route, interpreted by `edge.routing` (`polyline`, `orthogonal`, or chained `splines`) and never sent through a Flow router or split around a label. An optional edge `svgPath` preserves exact SVG paint while the authoritative points drive endpoints, bounds, hit testing, culling, transient DOM updates, and export. Core endpoint-geometry mutations invalidate precomputed route fields; layout-provided edge routes replace them with router waypoints, while consumers can apply a fresh authoritative graph to restore exact geometry. Edge `waypoints` remain ordered interior router inputs passed through `EdgeRouterContext`; built-in routers honor them. Custom `EdgeRouter`s receive the full typed edge plus the exact canonical or projection `graph` currently being routed and a detached, read-only `getEntityBounds(id)` lookup for live node/edge-label geometry. The lookup never routes another edge. Use `configureBezierRouter(options)`, `configureStepRouter(options)`, and `configureAvoidRouter(options)` for customized built-in router variants. `avoidRouter` is opt-in and routes orthogonal polylines around sibling node obstacles. Set `engine.edgeRouterDependencies: 'endpoints'` only when a custom router does not inspect unrelated graph entities, bounds, or obstacles; Flow can then retain unaffected routes after local geometry changes. The safe default is `'graph'`.
|
|
619
|
+
|
|
620
|
+
Router obstacles exclude the source, target, and their ancestor groups, so an
|
|
621
|
+
edge crossing a hierarchy boundary can pass through its endpoint container.
|
|
617
622
|
|
|
618
623
|
Routers must be deterministic from their supplied inputs. Flow reuses paths while routing geometry and router identity are unchanged.
|
|
619
624
|
|
|
@@ -753,6 +758,11 @@ const store = createFlowStore(graph, {
|
|
|
753
758
|
|
|
754
759
|
Box selection tests node bounds and rendered edge-label bounds only. Crossing
|
|
755
760
|
an edge path does not select it, and edges without labels are not box-selected.
|
|
761
|
+
Set a node's `selectionBounds` when its selectable surface differs from its
|
|
762
|
+
visual bounds, such as a compound node whose header selects the parent while
|
|
763
|
+
its child area remains available for box selection.
|
|
764
|
+
Groups use their configured content block as the default marquee hit rectangle,
|
|
765
|
+
leaving their child area available for selecting descendants.
|
|
756
766
|
As a growing box captures entities, selection order records when each entity
|
|
757
767
|
first enters the box.
|
|
758
768
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ type GroupLayout = {
|
|
|
16
16
|
padding?: number | Partial<GroupInsets>;
|
|
17
17
|
/** Minimum child-area size when the group is empty or tiny. */
|
|
18
18
|
minChildArea?: Size;
|
|
19
|
+
/**
|
|
20
|
+
* Width of the connectable boundary inside the child surface. When set,
|
|
21
|
+
* the content block and this boundary are connectable, while the child
|
|
22
|
+
* surface interior remains canvas. Omit to keep the full group body
|
|
23
|
+
* connectable.
|
|
24
|
+
*/
|
|
25
|
+
connectionBoundaryWidth?: number;
|
|
19
26
|
/** Rank direction for this group's children during hierarchical layout. */
|
|
20
27
|
direction?: EdgeDirection;
|
|
21
28
|
} | {
|
|
@@ -31,6 +38,13 @@ type GroupLayout = {
|
|
|
31
38
|
contentSize?: Size;
|
|
32
39
|
/** Clamp child drags to the child area (default 'none'). */
|
|
33
40
|
clampChildren?: 'x' | 'y' | 'both' | 'none';
|
|
41
|
+
/**
|
|
42
|
+
* Width of the connectable boundary inside the child surface. When set,
|
|
43
|
+
* the content block and this boundary are connectable, while the child
|
|
44
|
+
* surface interior remains canvas. Omit to keep the full group body
|
|
45
|
+
* connectable.
|
|
46
|
+
*/
|
|
47
|
+
connectionBoundaryWidth?: number;
|
|
34
48
|
/** Rank direction for this group's children during hierarchical layout. */
|
|
35
49
|
direction?: EdgeDirection;
|
|
36
50
|
};
|
|
@@ -148,6 +162,12 @@ type FlowNodeAttributes = {
|
|
|
148
162
|
* authoritative and children can be clamped inside. See `GroupLayout`.
|
|
149
163
|
*/
|
|
150
164
|
group?: GroupLayout;
|
|
165
|
+
/**
|
|
166
|
+
* Optional authored hit rectangle for marquee selection. Useful when a
|
|
167
|
+
* node's visual family is larger than the surface that selects the node
|
|
168
|
+
* (for example, a compound state's header).
|
|
169
|
+
*/
|
|
170
|
+
selectionBounds?: Rect;
|
|
151
171
|
/** Entity flag wins over global `FlowConfig.visible`; default true. */
|
|
152
172
|
hidden?: boolean;
|
|
153
173
|
/** Entity flag wins over global `FlowConfig.selectable`; default true. */
|
|
@@ -625,6 +645,7 @@ type ProposedConnection = {
|
|
|
625
645
|
targetPort?: string | null;
|
|
626
646
|
};
|
|
627
647
|
type FlowConnectionMode = 'strict' | 'loose';
|
|
648
|
+
type EdgeRouterDependencies = 'graph' | 'endpoints';
|
|
628
649
|
type FlowConnectionOptions = {
|
|
629
650
|
/** Magnet radius in canvas pixels. Default 24. */
|
|
630
651
|
radius?: number;
|
|
@@ -663,6 +684,14 @@ type ConnectionValidationResult = boolean | {
|
|
|
663
684
|
type FlowEngineOptions = {
|
|
664
685
|
/** Default edge router (default: bezierRouter) */
|
|
665
686
|
edgeRouter?: EdgeRouter;
|
|
687
|
+
/**
|
|
688
|
+
* Geometry read by a custom edge router. Defaults to `graph`, which safely
|
|
689
|
+
* reroutes every edge after any graph geometry change. Use `endpoints` only
|
|
690
|
+
* when the router depends on the edge and its endpoint/label inputs—not
|
|
691
|
+
* arbitrary `graph`, `getEntityBounds`, or `obstacles` reads. That contract
|
|
692
|
+
* lets Flow retain unaffected custom routes by identity.
|
|
693
|
+
*/
|
|
694
|
+
edgeRouterDependencies?: EdgeRouterDependencies;
|
|
666
695
|
/** Default label anchor (default: 'fixed' — labels use their own x/y) */
|
|
667
696
|
labelAnchor?: LabelAnchor;
|
|
668
697
|
/**
|
|
@@ -706,9 +735,17 @@ type RenderableEntitiesOptions = {
|
|
|
706
735
|
cull?: 'none' | 'viewport';
|
|
707
736
|
overscan?: number;
|
|
708
737
|
};
|
|
738
|
+
type EntityOrderOptions = {
|
|
739
|
+
/** Include configured selection elevation. Defaults to true. */
|
|
740
|
+
elevateSelected?: boolean;
|
|
741
|
+
};
|
|
709
742
|
type EdgePathOptions = {
|
|
710
743
|
graph?: FlowStoreContext['graph'];
|
|
711
744
|
};
|
|
745
|
+
type PaintZIndices = {
|
|
746
|
+
nodes: Map<string, number>;
|
|
747
|
+
edges: Map<string, number>;
|
|
748
|
+
};
|
|
712
749
|
/**
|
|
713
750
|
* Create the framework-agnostic derived-geometry and query layer for a store.
|
|
714
751
|
*
|
|
@@ -1471,15 +1508,25 @@ declare function createFlowEngine(store: FlowStore, initialOptions?: FlowEngineO
|
|
|
1471
1508
|
deletable: boolean;
|
|
1472
1509
|
resizable: boolean;
|
|
1473
1510
|
};
|
|
1474
|
-
getVisibleEntities: () => {
|
|
1511
|
+
getVisibleEntities: (options?: EntityOrderOptions) => {
|
|
1475
1512
|
nodes: FlowNode[];
|
|
1476
1513
|
edges: FlowEdge[];
|
|
1477
1514
|
};
|
|
1478
1515
|
/** Deterministic paint order. Later items should paint above earlier ones. */
|
|
1479
|
-
getEntityOrder: () => {
|
|
1516
|
+
getEntityOrder: (options?: EntityOrderOptions) => {
|
|
1480
1517
|
nodes: FlowNode[];
|
|
1481
1518
|
edges: FlowEdge[];
|
|
1482
1519
|
};
|
|
1520
|
+
/**
|
|
1521
|
+
* CSS z-indices for the visible entity set. Base values are spaced by 2.
|
|
1522
|
+
* When `elevateOnSelect` allows an entity kind, a selected entity is
|
|
1523
|
+
* raised just above its own depth/zIndex band while remaining below the
|
|
1524
|
+
* next band, so a selected parent never paints over its descendants.
|
|
1525
|
+
* Multiple selected entities in one band tie; the renderer's DOM order
|
|
1526
|
+
* resolves the tie and matches core's elevated order. The result is
|
|
1527
|
+
* memoized per store snapshot so callers can compare it by identity.
|
|
1528
|
+
*/
|
|
1529
|
+
getPaintZIndices: (options?: EntityOrderOptions) => PaintZIndices;
|
|
1483
1530
|
/**
|
|
1484
1531
|
* Renderable (visible, optionally viewport-culled) entities. Memoized per
|
|
1485
1532
|
* (store snapshot, cull/overscan) so several render layers can share one
|
|
@@ -2005,6 +2052,8 @@ type FlowStoreContext = {
|
|
|
2005
2052
|
measurements: Map<string, Rect>;
|
|
2006
2053
|
canvasState: CanvasState;
|
|
2007
2054
|
draggedEntityId: string | null;
|
|
2055
|
+
/** Monotonic signal for exact per-entity drag-frame notification. */
|
|
2056
|
+
dragRevision: number;
|
|
2008
2057
|
dragThreshold: number;
|
|
2009
2058
|
/**
|
|
2010
2059
|
* Constrains where a node may move during drags/keyboard nudges. Receives
|
|
@@ -3128,7 +3177,7 @@ interface FlowController<TNodeData = any, TEdgeData = any, TLabelData = any> {
|
|
|
3128
3177
|
nodes: FlowNode[];
|
|
3129
3178
|
edges: FlowEdge[];
|
|
3130
3179
|
};
|
|
3131
|
-
getEntityOrder: () => {
|
|
3180
|
+
getEntityOrder: (options?: EntityOrderOptions) => {
|
|
3132
3181
|
nodes: FlowNode[];
|
|
3133
3182
|
edges: FlowEdge[];
|
|
3134
3183
|
};
|
|
@@ -3195,6 +3244,8 @@ declare const resolvedPosition: typeof visualPosition;
|
|
|
3195
3244
|
declare function visualBounds(node: FlowNode): Rect;
|
|
3196
3245
|
/** @deprecated Use `visualBounds`. */
|
|
3197
3246
|
declare const resolvedBounds: typeof visualBounds;
|
|
3247
|
+
/** Bounds used by marquee selection, including transient node movement. */
|
|
3248
|
+
declare function resolvedSelectionBounds(node: FlowNode): Rect;
|
|
3198
3249
|
/**
|
|
3199
3250
|
* Size used for edge-label geometry. `autoSize` labels retain authored
|
|
3200
3251
|
* dimensions as a fallback while a transient DOM measurement owns the live
|
|
@@ -3429,4 +3480,4 @@ declare const readonlyConfig: Partial<FlowConfig>;
|
|
|
3429
3480
|
*/
|
|
3430
3481
|
declare function resolveBehavior<TEntity, TState>(predicate: ((entity: TEntity, state: TState) => boolean) | false | undefined, entity: TEntity, state: TState, defaultValue?: boolean): boolean;
|
|
3431
3482
|
//#endregion
|
|
3432
|
-
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, 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 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 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 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 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 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, 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, 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, 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, resolveBehavior, resolveGroupPadding, resolveKeymap, resolvedBounds, resolvedEdgeLabelBounds, resolvedEdgeLabelSize, resolvedPosition, screenToCanvas, selectMode, serializeFlowGraph, snapPointToGrid, snapToGrid, snappedBounds, sortActiveGraphProjections, stepRouter, straightRouter, toSVGTransform, toViewBox, trigger, unionRect, validateAndCloneGraph, validateFitFrame, validateViewport, viewportCenteredOn, viewportForBounds, visualBounds, visualPosition, wheelInteraction, wheelMode, wheelZoomDelta, zoomTo };
|
|
3483
|
+
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, 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 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 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 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 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 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, 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, 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, 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, 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 };
|