@statelyai/layout 0.2.0 → 0.3.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 (67) hide show
  1. package/README.md +71 -2
  2. package/dist/elkjs/index.cjs +3 -2
  3. package/dist/elkjs/index.d.cts +11 -2
  4. package/dist/elkjs/index.d.mts +11 -2
  5. package/dist/elkjs/index.mjs +3 -3
  6. package/dist/elkjs/main.cjs +2 -2
  7. package/dist/elkjs/main.d.cts +2 -2
  8. package/dist/elkjs/main.d.mts +2 -2
  9. package/dist/elkjs/main.mjs +2 -2
  10. package/dist/elkjs/worker-api.cjs +1 -1
  11. package/dist/elkjs/worker-api.d.cts +2 -2
  12. package/dist/elkjs/worker-api.d.mts +2 -2
  13. package/dist/elkjs/worker-api.mjs +1 -1
  14. package/dist/elkjs/worker.cjs +2 -2
  15. package/dist/elkjs/worker.mjs +2 -2
  16. package/dist/{elkjs-CFlfkEBz.mjs → elkjs-DaHMISnQ.mjs} +152 -3
  17. package/dist/{elkjs-BVnDwnBQ.cjs → elkjs-dMghiiWW.cjs} +157 -2
  18. package/dist/index-BEA_pzeT.d.cts +72 -0
  19. package/dist/{index-BSH2bloA.d.mts → index-D9dhxrRl.d.cts} +35 -3
  20. package/dist/index-DNTLRsDl.d.mts +72 -0
  21. package/dist/{index-CG712jzV.d.cts → index-DNixtE3h.d.mts} +35 -3
  22. package/dist/index.cjs +36 -9
  23. package/dist/index.d.cts +4 -3
  24. package/dist/index.d.mts +4 -3
  25. package/dist/index.mjs +4 -3
  26. package/dist/layered/index.cjs +1 -1
  27. package/dist/layered/index.d.cts +3 -2
  28. package/dist/layered/index.d.mts +3 -2
  29. package/dist/layered/index.mjs +1 -1
  30. package/dist/{layered-Cf9Rn8l7.cjs → layered-B2buJqMf.cjs} +417 -469
  31. package/dist/{layered-Bz2nWmVp.mjs → layered-DGFTeQSl.mjs} +391 -431
  32. package/dist/{layout-engine-WbC0YjjT.mjs → layout-engine-Cs5tatA6.mjs} +1 -1
  33. package/dist/{layout-engine-BNex9jxg.cjs → layout-engine-Dn1PiFwP.cjs} +1 -1
  34. package/dist/routing/index.cjs +28 -0
  35. package/dist/routing/index.d.cts +3 -0
  36. package/dist/routing/index.d.mts +3 -0
  37. package/dist/routing/index.mjs +3 -0
  38. package/dist/routing-A2hrK9MP.mjs +2396 -0
  39. package/dist/routing-ujEP7Qh6.cjs +2606 -0
  40. package/dist/types-CT2akdK0.d.mts +133 -0
  41. package/dist/types-uxPlGRof.d.cts +133 -0
  42. package/dist/{worker-client-DAT_z2OR.d.mts → worker-client-BwGGRD5y.d.mts} +1 -1
  43. package/dist/{worker-client-DVhklF6A.d.cts → worker-client-D4zNyPEI.d.cts} +1 -1
  44. package/package.json +7 -2
  45. package/src/authoring/coordinates.ts +10 -2
  46. package/src/elkjs/index.ts +5 -3
  47. package/src/elkjs/routes.ts +147 -0
  48. package/src/index.ts +6 -0
  49. package/src/layered/compound.ts +417 -0
  50. package/src/layered/index.ts +27 -102
  51. package/src/layered/types.ts +21 -0
  52. package/src/routing/adapters.ts +111 -0
  53. package/src/routing/algorithms.ts +676 -0
  54. package/src/routing/coordination.ts +86 -0
  55. package/src/routing/engine.ts +473 -0
  56. package/src/routing/index.ts +68 -0
  57. package/src/routing/layout-cache.ts +65 -0
  58. package/src/routing/model.ts +218 -0
  59. package/src/routing/path.ts +324 -0
  60. package/src/routing/persistent.ts +117 -0
  61. package/src/routing/search.ts +276 -0
  62. package/src/routing/spatial.ts +78 -0
  63. package/src/routing/types.ts +146 -0
  64. /package/dist/{public-types-B8rAALJq.d.mts → public-types-9NCPoqbp.d.mts} +0 -0
  65. /package/dist/{public-types-CVB0hXGk.d.cts → public-types-BcRZoJE3.d.cts} +0 -0
  66. /package/dist/{worker-client-DkwS4sHx.mjs → worker-client-BNjwT1AJ.mjs} +0 -0
  67. /package/dist/{worker-client-D3HMK33r.cjs → worker-client-D4oEvhAl.cjs} +0 -0
@@ -0,0 +1,72 @@
1
+ import { a as RouteBounds, c as RoutePath, l as RoutePoint, n as NativeRoutingStrategy, r as Route, s as RoutePatch } from "./types-uxPlGRof.cjs";
2
+ import { GraphPatch, VisualGraph } from "@statelyai/graph";
3
+
4
+ //#region src/routing/engine.d.ts
5
+ declare function applyRoutePatches(routes: ReadonlyMap<string, Route>, patches: readonly RoutePatch[]): ReadonlyMap<string, Route>;
6
+ //#endregion
7
+ //#region src/routing/path.d.ts
8
+ declare function pathFromPoints(points: readonly RoutePoint[]): RoutePath;
9
+ interface FlattenPathOptions {
10
+ readonly tolerance?: number;
11
+ readonly maxSegments?: number;
12
+ }
13
+ /** Adaptive, bounded-error polyline approximation. Throws rather than silently exceeding tolerance. */
14
+ declare function flattenPath(path: RoutePath, options?: FlattenPathOptions): RoutePoint[];
15
+ /** Conservative bounds: control hulls and full ellipse envelopes contain every curve. */
16
+ declare function getPathBounds(path: RoutePath): RouteBounds;
17
+ declare function getPathLength(path: RoutePath, options?: FlattenPathOptions): number;
18
+ declare function getPointAtLength(path: RoutePath, length: number, options?: FlattenPathOptions): RoutePoint;
19
+ declare function getTangentAtLength(path: RoutePath, length: number, options?: FlattenPathOptions): RoutePoint;
20
+ /** Round line-to-line corners only; existing curves and path endpoints are retained. */
21
+ declare function roundCorners(path: RoutePath, options: {
22
+ readonly radius: number;
23
+ }): RoutePath;
24
+ declare function toSvgPath(path: RoutePath, options?: {
25
+ readonly radius?: number;
26
+ readonly precision?: number;
27
+ }): string;
28
+ //#endregion
29
+ //#region src/routing/adapters.d.ts
30
+ /** ELK/native spline output: start, then repeating control1/control2/end triples. */
31
+ declare function pathFromSplinePoints(points: readonly RoutePoint[]): RoutePath;
32
+ /** Normalize routes from any native layout algorithm, without running layout again. */
33
+ declare function getLayoutRoutes(graph: VisualGraph): ReadonlyMap<string, Route>;
34
+ /** One polyline per section preserves label gaps and branching for simple renderers. */
35
+ declare function routeToPolylines(route: Route, options?: {
36
+ readonly tolerance?: number;
37
+ }): readonly (readonly RoutePoint[])[];
38
+ /** Compatibility for single-section native consumers. Refuses to erase gaps or topology. */
39
+ declare function routeToGraphPatch(route: Route, options?: {
40
+ readonly tolerance?: number;
41
+ readonly offset?: RoutePoint;
42
+ }): GraphPatch;
43
+ //#endregion
44
+ //#region src/routing/index.d.ts
45
+ declare const straightRouting: NativeRoutingStrategy;
46
+ declare const bezierRouting: NativeRoutingStrategy;
47
+ declare const orthogonalRouting: NativeRoutingStrategy;
48
+ declare const polylineRouting: NativeRoutingStrategy;
49
+ declare const octilinearRouting: NativeRoutingStrategy;
50
+ declare const curvedRouting: NativeRoutingStrategy;
51
+ declare const organicRouting: NativeRoutingStrategy;
52
+ declare const parallelRouting: NativeRoutingStrategy;
53
+ declare const selfLoopRouting: NativeRoutingStrategy;
54
+ declare const fanRouting: NativeRoutingStrategy;
55
+ declare const busRouting: NativeRoutingStrategy;
56
+ declare const bundleRouting: NativeRoutingStrategy;
57
+ declare const routingStrategies: Readonly<{
58
+ straight: NativeRoutingStrategy;
59
+ bezier: NativeRoutingStrategy;
60
+ orthogonal: NativeRoutingStrategy;
61
+ polyline: NativeRoutingStrategy;
62
+ octilinear: NativeRoutingStrategy;
63
+ curved: NativeRoutingStrategy;
64
+ organic: NativeRoutingStrategy;
65
+ parallel: NativeRoutingStrategy;
66
+ "self-loop": NativeRoutingStrategy;
67
+ fan: NativeRoutingStrategy;
68
+ bus: NativeRoutingStrategy;
69
+ bundle: NativeRoutingStrategy;
70
+ }>;
71
+ //#endregion
72
+ export { getTangentAtLength as C, applyRoutePatches as D, toSvgPath as E, getPointAtLength as S, roundCorners as T, routeToPolylines as _, fanRouting as a, getPathBounds as b, orthogonalRouting as c, routingStrategies as d, selfLoopRouting as f, routeToGraphPatch as g, pathFromSplinePoints as h, curvedRouting as i, parallelRouting as l, getLayoutRoutes as m, bundleRouting as n, octilinearRouting as o, straightRouting as p, busRouting as r, organicRouting as s, bezierRouting as t, polylineRouting as u, FlattenPathOptions as v, pathFromPoints as w, getPathLength as x, flattenPath as y };
@@ -1,5 +1,6 @@
1
- import { LayoutConstraints } from "@statelyai/graph/layout";
1
+ import { r as Route } from "./types-uxPlGRof.cjs";
2
2
  import { EntityRect, Graph, GraphEdge, GraphNode, GraphPatch, GraphPort, Point, VisualGraph } from "@statelyai/graph";
3
+ import { LayoutConstraints } from "@statelyai/graph/layout";
3
4
 
4
5
  //#region src/constraints.d.ts
5
6
  type GeometryReference = {
@@ -1199,8 +1200,30 @@ interface LayeredStrategies {
1199
1200
  placeNodes?: NodePlacer;
1200
1201
  routeEdges?: EdgeRouter;
1201
1202
  }
1203
+ /** Geometry reserved while laying out a compound, before its ancestors. */
1204
+ interface CompoundLayoutOptions {
1205
+ padding?: number | Partial<LayoutPadding>;
1206
+ direction?: LayoutDirection;
1207
+ header?: NodeSize & {
1208
+ side?: "top" | "right" | "bottom" | "left";
1209
+ };
1210
+ minContentSize?: Partial<NodeSize>;
1211
+ }
1212
+ interface CompoundLayoutGeometry {
1213
+ /** Parent-relative outer rectangle; header/content are relative to this rectangle. */
1214
+ bounds: EntityRect;
1215
+ header?: EntityRect;
1216
+ content: EntityRect;
1217
+ }
1218
+ interface CompoundEdgeAttachment {
1219
+ /** Content attachments leave toward the interior; outer attachments leave outward. */
1220
+ source?: "content" | "outer";
1221
+ target?: "content" | "outer";
1222
+ }
1202
1223
  interface LayeredLayoutOptions {
1203
1224
  direction?: LayoutDirection;
1225
+ compound?: (node: GraphNode) => CompoundLayoutOptions | undefined;
1226
+ edgeAttachment?: (edge: GraphEdge) => CompoundEdgeAttachment | undefined;
1204
1227
  spacing?: Partial<LayeredSpacing>;
1205
1228
  padding?: number | Partial<LayoutPadding>;
1206
1229
  constraints?: LayoutConstraints;
@@ -1217,6 +1240,15 @@ interface LayeredLayoutOptions {
1217
1240
  portSettings?: (port: GraphPort, node: GraphNode) => ElkLayeredOptionValueByName | undefined;
1218
1241
  }
1219
1242
  //#endregion
1243
+ //#region src/layered/compound.d.ts
1244
+ type CompoundVisualGraph<N = unknown, E = unknown, G = unknown, P = unknown> = VisualGraph<N, E, G, P> & {
1245
+ /** Nodes remain parent-relative; edge rectangles and points are world-space. */
1246
+ readonly edgeCoordinateSpace?: "world";
1247
+ readonly compoundGeometry: ReadonlyMap<string, CompoundLayoutGeometry>;
1248
+ /** World-space route sections preserve label gaps and fallback diagnostics. */
1249
+ readonly compoundRoutes: ReadonlyMap<string, Route>;
1250
+ };
1251
+ //#endregion
1220
1252
  //#region src/layered/strategies.d.ts
1221
1253
  declare const breakCyclesWithDepthFirstSearch: CycleBreaker;
1222
1254
  declare const breakCyclesGreedily: CycleBreaker;
@@ -1280,7 +1312,7 @@ declare function placeNodesWithNetworkSimplex(input: LayeredPhaseInput, order: L
1280
1312
  * Supports flat and nested graphs, cycles, ports, self-loops, four directions,
1281
1313
  * custom phase strategies, and all layered edge-routing styles.
1282
1314
  */
1283
- declare function getLayeredLayout<N, E, G, P>(graph: Graph<N, E, G, P> | VisualGraph<N, E, G, P>, options?: LayeredLayoutOptions): VisualGraph<N, E, G, P>;
1315
+ declare function getLayeredLayout<N, E, G, P>(graph: Graph<N, E, G, P> | VisualGraph<N, E, G, P>, options?: LayeredLayoutOptions): CompoundVisualGraph<N, E, G, P>;
1284
1316
  declare const layeredAlgorithm: LayoutAlgorithm<LayeredLayoutOptions>;
1285
1317
  //#endregion
1286
- export { LayeringStrategy as $, routeEdgesOrthogonally as A, LayerOrder as B, breakCyclesWithModelOrderDepthFirstSearch as C, GeometryReference as Ct, minimizeCrossingsWithModelOrder as D, WaypointConstraint as Dt, minimizeCrossingsWithMedian as E, PinConstraint as Et, CycleBreaker as F, LayoutPadding as G, LayeredPhaseInput as H, EdgeRouter as I, NodeSize as J, NodePlacement as K, EdgeRoutes as L, routeEdgesWithSplines as M, AcyclicOrientation as N, placeNodesInLayers as O, c as Ot, CrossingMinimizer as P, LayeredAdvancedOptions as Q, LayerAssigner as R, breakCyclesWithModelOrderBreadthFirstSearch as S, GeometryAttribute as St, minimizeCrossingsWithBarycenter as T, LinearConstraint as Tt, LayeredSpacing as U, LayeredLayoutOptions as V, LayeredStrategies as W, CycleBreakingStrategy as X, CrossingMinimizationStrategy as Y, EdgeRoutingStyle as Z, breakCyclesByStronglyConnectedNodeType as _, LayoutResult as _t, placeNodesWithBrandesKoepf as a, ElkLayeredOptionName as at, breakCyclesInteractively as b, ConstraintStrength as bt, assignLayersWithNetworkSimplex as c, AnyGraph as ct, assignLayersByLongestPath as d, LayoutDiagnostic as dt, NodePlacementStrategy as et, assignLayersByLongestPathToSink as f, LayoutDirection as ft, breakCyclesByStronglyConnectedConnectivity as g, LayoutRequest as gt, breakCyclesByModelOrder as h, LayoutPhaseMetrics as ht, placeNodesWithLinearSegments as i, ElkLayeredOptionId as it, routeEdgesWithPolylines as j, placeNodesInteractively as k, assignLayersByBreadthFirstModelOrder as l, LayoutAlgorithm as lt, assignLayersWithCoffmanGraham as m, LayoutMetrics as mt, layeredAlgorithm as n, toElkLayeredOptions as nt, assignLayersWithStretchWidth as o, ElkLayeredOptionValueByName as ot, assignLayersInteractively as p, LayoutExecutionContext as pt, NodePlacer as q, placeNodesWithNetworkSimplex as r, elkLayeredEnumValues as rt, assignLayersWithMinWidth as s, elkLayeredOptionDefinitions as st, getLayeredLayout as t, fromElkLayeredOptionId as tt, assignLayersByDepthFirstModelOrder as u, LayoutCapabilities as ut, breakCyclesGreedily as v, LayoutScope as vt, minimizeCrossingsInteractively as w, LayoutConstraint as wt, breakCyclesWithDepthFirstSearch as x, DistributeConstraint as xt, breakCyclesGreedilyByModelOrder as y, AlignConstraint as yt, LayerAssignment as z };
1318
+ export { CrossingMinimizationStrategy as $, routeEdgesOrthogonally as A, PinConstraint as At, EdgeRouter as B, breakCyclesWithModelOrderDepthFirstSearch as C, AlignConstraint as Ct, minimizeCrossingsWithModelOrder as D, GeometryReference as Dt, minimizeCrossingsWithMedian as E, GeometryAttribute as Et, CompoundEdgeAttachment as F, LayeredLayoutOptions as G, LayerAssigner as H, CompoundLayoutGeometry as I, LayeredStrategies as J, LayeredPhaseInput as K, CompoundLayoutOptions as L, routeEdgesWithSplines as M, c as Mt, CompoundVisualGraph as N, placeNodesInLayers as O, LayoutConstraint as Ot, AcyclicOrientation as P, NodeSize as Q, CrossingMinimizer as R, breakCyclesWithModelOrderBreadthFirstSearch as S, LayoutScope as St, minimizeCrossingsWithBarycenter as T, DistributeConstraint as Tt, LayerAssignment as U, EdgeRoutes as V, LayerOrder as W, NodePlacement as X, LayoutPadding as Y, NodePlacer as Z, breakCyclesByStronglyConnectedNodeType as _, LayoutExecutionContext as _t, placeNodesWithBrandesKoepf as a, fromElkLayeredOptionId as at, breakCyclesInteractively as b, LayoutRequest as bt, assignLayersWithNetworkSimplex as c, ElkLayeredOptionId as ct, assignLayersByLongestPath as d, elkLayeredOptionDefinitions as dt, CycleBreakingStrategy as et, assignLayersByLongestPathToSink as f, AnyGraph as ft, breakCyclesByStronglyConnectedConnectivity as g, LayoutDirection as gt, breakCyclesByModelOrder as h, LayoutDiagnostic as ht, placeNodesWithLinearSegments as i, NodePlacementStrategy as it, routeEdgesWithPolylines as j, WaypointConstraint as jt, placeNodesInteractively as k, LinearConstraint as kt, assignLayersByBreadthFirstModelOrder as l, ElkLayeredOptionName as lt, assignLayersWithCoffmanGraham as m, LayoutCapabilities as mt, layeredAlgorithm as n, LayeredAdvancedOptions as nt, assignLayersWithStretchWidth as o, toElkLayeredOptions as ot, assignLayersInteractively as p, LayoutAlgorithm as pt, LayeredSpacing as q, placeNodesWithNetworkSimplex as r, LayeringStrategy as rt, assignLayersWithMinWidth as s, elkLayeredEnumValues as st, getLayeredLayout as t, EdgeRoutingStyle as tt, assignLayersByDepthFirstModelOrder as u, ElkLayeredOptionValueByName as ut, breakCyclesGreedily as v, LayoutMetrics as vt, minimizeCrossingsInteractively as w, ConstraintStrength as wt, breakCyclesWithDepthFirstSearch as x, LayoutResult as xt, breakCyclesGreedilyByModelOrder as y, LayoutPhaseMetrics as yt, CycleBreaker as z };
@@ -0,0 +1,72 @@
1
+ import { a as RouteBounds, c as RoutePath, l as RoutePoint, n as NativeRoutingStrategy, r as Route, s as RoutePatch } from "./types-CT2akdK0.mjs";
2
+ import { GraphPatch, VisualGraph } from "@statelyai/graph";
3
+
4
+ //#region src/routing/engine.d.ts
5
+ declare function applyRoutePatches(routes: ReadonlyMap<string, Route>, patches: readonly RoutePatch[]): ReadonlyMap<string, Route>;
6
+ //#endregion
7
+ //#region src/routing/path.d.ts
8
+ declare function pathFromPoints(points: readonly RoutePoint[]): RoutePath;
9
+ interface FlattenPathOptions {
10
+ readonly tolerance?: number;
11
+ readonly maxSegments?: number;
12
+ }
13
+ /** Adaptive, bounded-error polyline approximation. Throws rather than silently exceeding tolerance. */
14
+ declare function flattenPath(path: RoutePath, options?: FlattenPathOptions): RoutePoint[];
15
+ /** Conservative bounds: control hulls and full ellipse envelopes contain every curve. */
16
+ declare function getPathBounds(path: RoutePath): RouteBounds;
17
+ declare function getPathLength(path: RoutePath, options?: FlattenPathOptions): number;
18
+ declare function getPointAtLength(path: RoutePath, length: number, options?: FlattenPathOptions): RoutePoint;
19
+ declare function getTangentAtLength(path: RoutePath, length: number, options?: FlattenPathOptions): RoutePoint;
20
+ /** Round line-to-line corners only; existing curves and path endpoints are retained. */
21
+ declare function roundCorners(path: RoutePath, options: {
22
+ readonly radius: number;
23
+ }): RoutePath;
24
+ declare function toSvgPath(path: RoutePath, options?: {
25
+ readonly radius?: number;
26
+ readonly precision?: number;
27
+ }): string;
28
+ //#endregion
29
+ //#region src/routing/adapters.d.ts
30
+ /** ELK/native spline output: start, then repeating control1/control2/end triples. */
31
+ declare function pathFromSplinePoints(points: readonly RoutePoint[]): RoutePath;
32
+ /** Normalize routes from any native layout algorithm, without running layout again. */
33
+ declare function getLayoutRoutes(graph: VisualGraph): ReadonlyMap<string, Route>;
34
+ /** One polyline per section preserves label gaps and branching for simple renderers. */
35
+ declare function routeToPolylines(route: Route, options?: {
36
+ readonly tolerance?: number;
37
+ }): readonly (readonly RoutePoint[])[];
38
+ /** Compatibility for single-section native consumers. Refuses to erase gaps or topology. */
39
+ declare function routeToGraphPatch(route: Route, options?: {
40
+ readonly tolerance?: number;
41
+ readonly offset?: RoutePoint;
42
+ }): GraphPatch;
43
+ //#endregion
44
+ //#region src/routing/index.d.ts
45
+ declare const straightRouting: NativeRoutingStrategy;
46
+ declare const bezierRouting: NativeRoutingStrategy;
47
+ declare const orthogonalRouting: NativeRoutingStrategy;
48
+ declare const polylineRouting: NativeRoutingStrategy;
49
+ declare const octilinearRouting: NativeRoutingStrategy;
50
+ declare const curvedRouting: NativeRoutingStrategy;
51
+ declare const organicRouting: NativeRoutingStrategy;
52
+ declare const parallelRouting: NativeRoutingStrategy;
53
+ declare const selfLoopRouting: NativeRoutingStrategy;
54
+ declare const fanRouting: NativeRoutingStrategy;
55
+ declare const busRouting: NativeRoutingStrategy;
56
+ declare const bundleRouting: NativeRoutingStrategy;
57
+ declare const routingStrategies: Readonly<{
58
+ straight: NativeRoutingStrategy;
59
+ bezier: NativeRoutingStrategy;
60
+ orthogonal: NativeRoutingStrategy;
61
+ polyline: NativeRoutingStrategy;
62
+ octilinear: NativeRoutingStrategy;
63
+ curved: NativeRoutingStrategy;
64
+ organic: NativeRoutingStrategy;
65
+ parallel: NativeRoutingStrategy;
66
+ "self-loop": NativeRoutingStrategy;
67
+ fan: NativeRoutingStrategy;
68
+ bus: NativeRoutingStrategy;
69
+ bundle: NativeRoutingStrategy;
70
+ }>;
71
+ //#endregion
72
+ export { getTangentAtLength as C, applyRoutePatches as D, toSvgPath as E, getPointAtLength as S, roundCorners as T, routeToPolylines as _, fanRouting as a, getPathBounds as b, orthogonalRouting as c, routingStrategies as d, selfLoopRouting as f, routeToGraphPatch as g, pathFromSplinePoints as h, curvedRouting as i, parallelRouting as l, getLayoutRoutes as m, bundleRouting as n, octilinearRouting as o, straightRouting as p, busRouting as r, organicRouting as s, bezierRouting as t, polylineRouting as u, FlattenPathOptions as v, pathFromPoints as w, getPathLength as x, flattenPath as y };
@@ -1,5 +1,6 @@
1
- import { EntityRect, Graph, GraphEdge, GraphNode, GraphPatch, GraphPort, Point, VisualGraph } from "@statelyai/graph";
1
+ import { r as Route } from "./types-CT2akdK0.mjs";
2
2
  import { LayoutConstraints } from "@statelyai/graph/layout";
3
+ import { EntityRect, Graph, GraphEdge, GraphNode, GraphPatch, GraphPort, Point, VisualGraph } from "@statelyai/graph";
3
4
 
4
5
  //#region src/constraints.d.ts
5
6
  type GeometryReference = {
@@ -1199,8 +1200,30 @@ interface LayeredStrategies {
1199
1200
  placeNodes?: NodePlacer;
1200
1201
  routeEdges?: EdgeRouter;
1201
1202
  }
1203
+ /** Geometry reserved while laying out a compound, before its ancestors. */
1204
+ interface CompoundLayoutOptions {
1205
+ padding?: number | Partial<LayoutPadding>;
1206
+ direction?: LayoutDirection;
1207
+ header?: NodeSize & {
1208
+ side?: "top" | "right" | "bottom" | "left";
1209
+ };
1210
+ minContentSize?: Partial<NodeSize>;
1211
+ }
1212
+ interface CompoundLayoutGeometry {
1213
+ /** Parent-relative outer rectangle; header/content are relative to this rectangle. */
1214
+ bounds: EntityRect;
1215
+ header?: EntityRect;
1216
+ content: EntityRect;
1217
+ }
1218
+ interface CompoundEdgeAttachment {
1219
+ /** Content attachments leave toward the interior; outer attachments leave outward. */
1220
+ source?: "content" | "outer";
1221
+ target?: "content" | "outer";
1222
+ }
1202
1223
  interface LayeredLayoutOptions {
1203
1224
  direction?: LayoutDirection;
1225
+ compound?: (node: GraphNode) => CompoundLayoutOptions | undefined;
1226
+ edgeAttachment?: (edge: GraphEdge) => CompoundEdgeAttachment | undefined;
1204
1227
  spacing?: Partial<LayeredSpacing>;
1205
1228
  padding?: number | Partial<LayoutPadding>;
1206
1229
  constraints?: LayoutConstraints;
@@ -1217,6 +1240,15 @@ interface LayeredLayoutOptions {
1217
1240
  portSettings?: (port: GraphPort, node: GraphNode) => ElkLayeredOptionValueByName | undefined;
1218
1241
  }
1219
1242
  //#endregion
1243
+ //#region src/layered/compound.d.ts
1244
+ type CompoundVisualGraph<N = unknown, E = unknown, G = unknown, P = unknown> = VisualGraph<N, E, G, P> & {
1245
+ /** Nodes remain parent-relative; edge rectangles and points are world-space. */
1246
+ readonly edgeCoordinateSpace?: "world";
1247
+ readonly compoundGeometry: ReadonlyMap<string, CompoundLayoutGeometry>;
1248
+ /** World-space route sections preserve label gaps and fallback diagnostics. */
1249
+ readonly compoundRoutes: ReadonlyMap<string, Route>;
1250
+ };
1251
+ //#endregion
1220
1252
  //#region src/layered/strategies.d.ts
1221
1253
  declare const breakCyclesWithDepthFirstSearch: CycleBreaker;
1222
1254
  declare const breakCyclesGreedily: CycleBreaker;
@@ -1280,7 +1312,7 @@ declare function placeNodesWithNetworkSimplex(input: LayeredPhaseInput, order: L
1280
1312
  * Supports flat and nested graphs, cycles, ports, self-loops, four directions,
1281
1313
  * custom phase strategies, and all layered edge-routing styles.
1282
1314
  */
1283
- declare function getLayeredLayout<N, E, G, P>(graph: Graph<N, E, G, P> | VisualGraph<N, E, G, P>, options?: LayeredLayoutOptions): VisualGraph<N, E, G, P>;
1315
+ declare function getLayeredLayout<N, E, G, P>(graph: Graph<N, E, G, P> | VisualGraph<N, E, G, P>, options?: LayeredLayoutOptions): CompoundVisualGraph<N, E, G, P>;
1284
1316
  declare const layeredAlgorithm: LayoutAlgorithm<LayeredLayoutOptions>;
1285
1317
  //#endregion
1286
- export { LayeringStrategy as $, routeEdgesOrthogonally as A, LayerOrder as B, breakCyclesWithModelOrderDepthFirstSearch as C, GeometryReference as Ct, minimizeCrossingsWithModelOrder as D, WaypointConstraint as Dt, minimizeCrossingsWithMedian as E, PinConstraint as Et, CycleBreaker as F, LayoutPadding as G, LayeredPhaseInput as H, EdgeRouter as I, NodeSize as J, NodePlacement as K, EdgeRoutes as L, routeEdgesWithSplines as M, AcyclicOrientation as N, placeNodesInLayers as O, c as Ot, CrossingMinimizer as P, LayeredAdvancedOptions as Q, LayerAssigner as R, breakCyclesWithModelOrderBreadthFirstSearch as S, GeometryAttribute as St, minimizeCrossingsWithBarycenter as T, LinearConstraint as Tt, LayeredSpacing as U, LayeredLayoutOptions as V, LayeredStrategies as W, CycleBreakingStrategy as X, CrossingMinimizationStrategy as Y, EdgeRoutingStyle as Z, breakCyclesByStronglyConnectedNodeType as _, LayoutResult as _t, placeNodesWithBrandesKoepf as a, ElkLayeredOptionName as at, breakCyclesInteractively as b, ConstraintStrength as bt, assignLayersWithNetworkSimplex as c, AnyGraph as ct, assignLayersByLongestPath as d, LayoutDiagnostic as dt, NodePlacementStrategy as et, assignLayersByLongestPathToSink as f, LayoutDirection as ft, breakCyclesByStronglyConnectedConnectivity as g, LayoutRequest as gt, breakCyclesByModelOrder as h, LayoutPhaseMetrics as ht, placeNodesWithLinearSegments as i, ElkLayeredOptionId as it, routeEdgesWithPolylines as j, placeNodesInteractively as k, assignLayersByBreadthFirstModelOrder as l, LayoutAlgorithm as lt, assignLayersWithCoffmanGraham as m, LayoutMetrics as mt, layeredAlgorithm as n, toElkLayeredOptions as nt, assignLayersWithStretchWidth as o, ElkLayeredOptionValueByName as ot, assignLayersInteractively as p, LayoutExecutionContext as pt, NodePlacer as q, placeNodesWithNetworkSimplex as r, elkLayeredEnumValues as rt, assignLayersWithMinWidth as s, elkLayeredOptionDefinitions as st, getLayeredLayout as t, fromElkLayeredOptionId as tt, assignLayersByDepthFirstModelOrder as u, LayoutCapabilities as ut, breakCyclesGreedily as v, LayoutScope as vt, minimizeCrossingsInteractively as w, LayoutConstraint as wt, breakCyclesWithDepthFirstSearch as x, DistributeConstraint as xt, breakCyclesGreedilyByModelOrder as y, AlignConstraint as yt, LayerAssignment as z };
1318
+ export { CrossingMinimizationStrategy as $, routeEdgesOrthogonally as A, PinConstraint as At, EdgeRouter as B, breakCyclesWithModelOrderDepthFirstSearch as C, AlignConstraint as Ct, minimizeCrossingsWithModelOrder as D, GeometryReference as Dt, minimizeCrossingsWithMedian as E, GeometryAttribute as Et, CompoundEdgeAttachment as F, LayeredLayoutOptions as G, LayerAssigner as H, CompoundLayoutGeometry as I, LayeredStrategies as J, LayeredPhaseInput as K, CompoundLayoutOptions as L, routeEdgesWithSplines as M, c as Mt, CompoundVisualGraph as N, placeNodesInLayers as O, LayoutConstraint as Ot, AcyclicOrientation as P, NodeSize as Q, CrossingMinimizer as R, breakCyclesWithModelOrderBreadthFirstSearch as S, LayoutScope as St, minimizeCrossingsWithBarycenter as T, DistributeConstraint as Tt, LayerAssignment as U, EdgeRoutes as V, LayerOrder as W, NodePlacement as X, LayoutPadding as Y, NodePlacer as Z, breakCyclesByStronglyConnectedNodeType as _, LayoutExecutionContext as _t, placeNodesWithBrandesKoepf as a, fromElkLayeredOptionId as at, breakCyclesInteractively as b, LayoutRequest as bt, assignLayersWithNetworkSimplex as c, ElkLayeredOptionId as ct, assignLayersByLongestPath as d, elkLayeredOptionDefinitions as dt, CycleBreakingStrategy as et, assignLayersByLongestPathToSink as f, AnyGraph as ft, breakCyclesByStronglyConnectedConnectivity as g, LayoutDirection as gt, breakCyclesByModelOrder as h, LayoutDiagnostic as ht, placeNodesWithLinearSegments as i, NodePlacementStrategy as it, routeEdgesWithPolylines as j, WaypointConstraint as jt, placeNodesInteractively as k, LinearConstraint as kt, assignLayersByBreadthFirstModelOrder as l, ElkLayeredOptionName as lt, assignLayersWithCoffmanGraham as m, LayoutCapabilities as mt, layeredAlgorithm as n, LayeredAdvancedOptions as nt, assignLayersWithStretchWidth as o, toElkLayeredOptions as ot, assignLayersInteractively as p, LayoutAlgorithm as pt, LayeredSpacing as q, placeNodesWithNetworkSimplex as r, LayeringStrategy as rt, assignLayersWithMinWidth as s, elkLayeredEnumValues as st, getLayeredLayout as t, EdgeRoutingStyle as tt, assignLayersByDepthFirstModelOrder as u, ElkLayeredOptionValueByName as ut, breakCyclesGreedily as v, LayoutMetrics as vt, minimizeCrossingsInteractively as w, ConstraintStrength as wt, breakCyclesWithDepthFirstSearch as x, LayoutResult as xt, breakCyclesGreedilyByModelOrder as y, LayoutPhaseMetrics as yt, CycleBreaker as z };
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
- const require_layered = require('./layered-Cf9Rn8l7.cjs');
2
- const require_layout_engine = require('./layout-engine-BNex9jxg.cjs');
1
+ const require_routing = require('./routing-ujEP7Qh6.cjs');
2
+ const require_layered = require('./layered-B2buJqMf.cjs');
3
+ const require_layout_engine = require('./layout-engine-Dn1PiFwP.cjs');
3
4
  let _statelyai_graph = require("@statelyai/graph");
4
5
 
5
6
  //#region src/layout.ts
@@ -81,11 +82,11 @@ async function getLayout(request) {
81
82
  const diagnostics = [];
82
83
  const phases = [];
83
84
  const algorithm = typeof request.algorithm === "object" ? request.algorithm : getLayoutAlgorithm(request.algorithm ?? "layered");
84
- if (!algorithm) throw new require_layered.LayoutError(`Unknown layout algorithm: ${request.algorithm ?? "layered"}`, "UNKNOWN_ALGORITHM");
85
- if (!supportsScope(algorithm, scope)) throw new require_layered.UnsupportedLayoutError(`${algorithm.id} does not support ${scope.mode} layout yet`);
86
- if (request.constraints?.length && !algorithm.capabilities.constraints) throw new require_layered.UnsupportedLayoutError(`${algorithm.id} does not support geometry constraints`);
85
+ if (!algorithm) throw new require_routing.LayoutError(`Unknown layout algorithm: ${request.algorithm ?? "layered"}`, "UNKNOWN_ALGORITHM");
86
+ if (!supportsScope(algorithm, scope)) throw new require_routing.UnsupportedLayoutError(`${algorithm.id} does not support ${scope.mode} layout yet`);
87
+ if (request.constraints?.length && !algorithm.capabilities.constraints) throw new require_routing.UnsupportedLayoutError(`${algorithm.id} does not support geometry constraints`);
87
88
  const issues = (0, _statelyai_graph.getGraphIssues)(request.graph);
88
- if (issues.length > 0) throw new require_layered.LayoutError(issues.map((issue) => issue.message).join("; "), "INVALID_GRAPH");
89
+ if (issues.length > 0) throw new require_routing.LayoutError(issues.map((issue) => issue.message).join("; "), "INVALID_GRAPH");
89
90
  const context = {
90
91
  scope,
91
92
  constraints: request.constraints,
@@ -135,8 +136,9 @@ async function getLayout(request) {
135
136
  }
136
137
 
137
138
  //#endregion
138
- exports.LayoutError = require_layered.LayoutError;
139
- exports.UnsupportedLayoutError = require_layered.UnsupportedLayoutError;
139
+ exports.LayoutError = require_routing.LayoutError;
140
+ exports.UnsupportedLayoutError = require_routing.UnsupportedLayoutError;
141
+ exports.applyRoutePatches = require_routing.applyRoutePatches;
140
142
  exports.assignLayersByBreadthFirstModelOrder = require_layered.assignLayersByBreadthFirstModelOrder;
141
143
  exports.assignLayersByDepthFirstModelOrder = require_layered.assignLayersByDepthFirstModelOrder;
142
144
  exports.assignLayersByLongestPath = require_layered.assignLayersByLongestPath;
@@ -146,6 +148,7 @@ exports.assignLayersWithCoffmanGraham = require_layered.assignLayersWithCoffmanG
146
148
  exports.assignLayersWithMinWidth = require_layered.assignLayersWithMinWidth;
147
149
  exports.assignLayersWithNetworkSimplex = require_layered.assignLayersWithNetworkSimplex;
148
150
  exports.assignLayersWithStretchWidth = require_layered.assignLayersWithStretchWidth;
151
+ exports.bezierRouting = require_routing.bezierRouting;
149
152
  exports.boxAlgorithm = require_layout_engine.boxAlgorithm;
150
153
  exports.breakCyclesByModelOrder = require_layered.breakCyclesByModelOrder;
151
154
  exports.breakCyclesByStronglyConnectedConnectivity = require_layered.breakCyclesByStronglyConnectedConnectivity;
@@ -156,33 +159,57 @@ exports.breakCyclesInteractively = require_layered.breakCyclesInteractively;
156
159
  exports.breakCyclesWithDepthFirstSearch = require_layered.breakCyclesWithDepthFirstSearch;
157
160
  exports.breakCyclesWithModelOrderBreadthFirstSearch = require_layered.breakCyclesWithModelOrderBreadthFirstSearch;
158
161
  exports.breakCyclesWithModelOrderDepthFirstSearch = require_layered.breakCyclesWithModelOrderDepthFirstSearch;
162
+ exports.bundleRouting = require_routing.bundleRouting;
163
+ exports.busRouting = require_routing.busRouting;
159
164
  exports.c = require_layered.c;
165
+ exports.curvedRouting = require_routing.curvedRouting;
160
166
  exports.elkLayeredEnumValues = require_layered.elkLayeredEnumValues;
161
167
  exports.elkLayeredOptionDefinitions = require_layered.elkLayeredOptionDefinitions;
168
+ exports.fanRouting = require_routing.fanRouting;
162
169
  exports.fixedAlgorithm = require_layout_engine.fixedAlgorithm;
170
+ exports.flattenPath = require_routing.flattenPath;
163
171
  exports.fromElkLayeredOptionId = require_layered.fromElkLayeredOptionId;
164
172
  exports.getBoxLayout = require_layout_engine.getBoxLayout;
165
173
  exports.getFixedLayout = require_layout_engine.getFixedLayout;
166
174
  exports.getLayeredLayout = require_layered.getLayeredLayout;
167
175
  exports.getLayout = getLayout;
168
176
  exports.getLayoutAlgorithm = getLayoutAlgorithm;
177
+ exports.getLayoutRoutes = require_routing.getLayoutRoutes;
178
+ exports.getPathBounds = require_routing.getPathBounds;
179
+ exports.getPathLength = require_routing.getPathLength;
180
+ exports.getPointAtLength = require_routing.getPointAtLength;
169
181
  exports.getRandomLayout = require_layout_engine.getRandomLayout;
170
182
  exports.getRectanglePackingLayout = require_layout_engine.getRectanglePackingLayout;
171
183
  exports.getSporeCompactionLayout = require_layout_engine.getSporeCompactionLayout;
172
184
  exports.getSporeOverlapRemovalLayout = require_layout_engine.getSporeOverlapRemovalLayout;
185
+ exports.getTangentAtLength = require_routing.getTangentAtLength;
173
186
  exports.layeredAlgorithm = require_layered.layeredAlgorithm;
174
187
  exports.minimizeCrossingsInteractively = require_layered.minimizeCrossingsInteractively;
175
188
  exports.minimizeCrossingsWithBarycenter = require_layered.minimizeCrossingsWithBarycenter;
176
189
  exports.minimizeCrossingsWithMedian = require_layered.minimizeCrossingsWithMedian;
177
190
  exports.minimizeCrossingsWithModelOrder = require_layered.minimizeCrossingsWithModelOrder;
191
+ exports.octilinearRouting = require_routing.octilinearRouting;
192
+ exports.organicRouting = require_routing.organicRouting;
193
+ exports.orthogonalRouting = require_routing.orthogonalRouting;
194
+ exports.parallelRouting = require_routing.parallelRouting;
195
+ exports.pathFromPoints = require_routing.pathFromPoints;
196
+ exports.pathFromSplinePoints = require_routing.pathFromSplinePoints;
178
197
  exports.placeNodesInLayers = require_layered.placeNodesInLayers;
179
198
  exports.placeNodesInteractively = require_layered.placeNodesInteractively;
199
+ exports.polylineRouting = require_routing.polylineRouting;
180
200
  exports.randomAlgorithm = require_layout_engine.randomAlgorithm;
181
201
  exports.rectanglePackingAlgorithm = require_layout_engine.rectanglePackingAlgorithm;
182
202
  exports.registerLayoutAlgorithm = registerLayoutAlgorithm;
203
+ exports.roundCorners = require_routing.roundCorners;
183
204
  exports.routeEdgesOrthogonally = require_layered.routeEdgesOrthogonally;
184
205
  exports.routeEdgesWithPolylines = require_layered.routeEdgesWithPolylines;
185
206
  exports.routeEdgesWithSplines = require_layered.routeEdgesWithSplines;
207
+ exports.routeToGraphPatch = require_routing.routeToGraphPatch;
208
+ exports.routeToPolylines = require_routing.routeToPolylines;
209
+ exports.routingStrategies = require_routing.routingStrategies;
210
+ exports.selfLoopRouting = require_routing.selfLoopRouting;
186
211
  exports.sporeCompactionAlgorithm = require_layout_engine.sporeCompactionAlgorithm;
187
212
  exports.sporeOverlapRemovalAlgorithm = require_layout_engine.sporeOverlapRemovalAlgorithm;
188
- exports.toElkLayeredOptions = require_layered.toElkLayeredOptions;
213
+ exports.straightRouting = require_routing.straightRouting;
214
+ exports.toElkLayeredOptions = require_layered.toElkLayeredOptions;
215
+ exports.toSvgPath = require_routing.toSvgPath;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,6 @@
1
- import { $ as LayeringStrategy, A as routeEdgesOrthogonally, B as LayerOrder, C as breakCyclesWithModelOrderDepthFirstSearch, Ct as GeometryReference, D as minimizeCrossingsWithModelOrder, Dt as WaypointConstraint, E as minimizeCrossingsWithMedian, Et as PinConstraint, F as CycleBreaker, G as LayoutPadding, H as LayeredPhaseInput, I as EdgeRouter, J as NodeSize, K as NodePlacement, L as EdgeRoutes, M as routeEdgesWithSplines, N as AcyclicOrientation, O as placeNodesInLayers, Ot as c, P as CrossingMinimizer, Q as LayeredAdvancedOptions, R as LayerAssigner, S as breakCyclesWithModelOrderBreadthFirstSearch, St as GeometryAttribute, T as minimizeCrossingsWithBarycenter, Tt as LinearConstraint, U as LayeredSpacing, V as LayeredLayoutOptions, W as LayeredStrategies, X as CycleBreakingStrategy, Y as CrossingMinimizationStrategy, Z as EdgeRoutingStyle, _ as breakCyclesByStronglyConnectedNodeType, _t as LayoutResult, at as ElkLayeredOptionName, b as breakCyclesInteractively, bt as ConstraintStrength, c as assignLayersWithNetworkSimplex, ct as AnyGraph, d as assignLayersByLongestPath, dt as LayoutDiagnostic, et as NodePlacementStrategy, f as assignLayersByLongestPathToSink, ft as LayoutDirection, g as breakCyclesByStronglyConnectedConnectivity, gt as LayoutRequest, h as breakCyclesByModelOrder, ht as LayoutPhaseMetrics, it as ElkLayeredOptionId, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, lt as LayoutAlgorithm, m as assignLayersWithCoffmanGraham, mt as LayoutMetrics, n as layeredAlgorithm, nt as toElkLayeredOptions, o as assignLayersWithStretchWidth, ot as ElkLayeredOptionValueByName, p as assignLayersInteractively, pt as LayoutExecutionContext, q as NodePlacer, rt as elkLayeredEnumValues, s as assignLayersWithMinWidth, st as elkLayeredOptionDefinitions, t as getLayeredLayout, tt as fromElkLayeredOptionId, u as assignLayersByDepthFirstModelOrder, ut as LayoutCapabilities, v as breakCyclesGreedily, vt as LayoutScope, w as minimizeCrossingsInteractively, wt as LayoutConstraint, x as breakCyclesWithDepthFirstSearch, xt as DistributeConstraint, y as breakCyclesGreedilyByModelOrder, yt as AlignConstraint, z as LayerAssignment } from "./index-CG712jzV.cjs";
1
+ import { _ as RoutingMetrics, a as RouteBounds, b as RoutingStrategy, c as RoutePath, d as RouteSegment, f as RouteSide, g as RoutingGraph, h as RoutingDiagnosticCode, i as RouteAttachment, l as RoutePoint, m as RoutingDiagnostic, n as NativeRoutingStrategy, o as RouteEndpoint, p as RouteStyle, r as Route, s as RoutePatch, t as EdgeRoutingSettings, u as RouteSection, v as RoutingSettings, x as RoutingUpdate, y as RoutingSnapshot } from "./types-uxPlGRof.cjs";
2
+ import { $ as CrossingMinimizationStrategy, A as routeEdgesOrthogonally, At as PinConstraint, B as EdgeRouter, C as breakCyclesWithModelOrderDepthFirstSearch, Ct as AlignConstraint, D as minimizeCrossingsWithModelOrder, Dt as GeometryReference, E as minimizeCrossingsWithMedian, Et as GeometryAttribute, F as CompoundEdgeAttachment, G as LayeredLayoutOptions, H as LayerAssigner, I as CompoundLayoutGeometry, J as LayeredStrategies, K as LayeredPhaseInput, L as CompoundLayoutOptions, M as routeEdgesWithSplines, Mt as c, N as CompoundVisualGraph, O as placeNodesInLayers, Ot as LayoutConstraint, P as AcyclicOrientation, Q as NodeSize, R as CrossingMinimizer, S as breakCyclesWithModelOrderBreadthFirstSearch, St as LayoutScope, T as minimizeCrossingsWithBarycenter, Tt as DistributeConstraint, U as LayerAssignment, V as EdgeRoutes, W as LayerOrder, X as NodePlacement, Y as LayoutPadding, Z as NodePlacer, _ as breakCyclesByStronglyConnectedNodeType, _t as LayoutExecutionContext, at as fromElkLayeredOptionId, b as breakCyclesInteractively, bt as LayoutRequest, c as assignLayersWithNetworkSimplex, ct as ElkLayeredOptionId, d as assignLayersByLongestPath, dt as elkLayeredOptionDefinitions, et as CycleBreakingStrategy, f as assignLayersByLongestPathToSink, ft as AnyGraph, g as breakCyclesByStronglyConnectedConnectivity, gt as LayoutDirection, h as breakCyclesByModelOrder, ht as LayoutDiagnostic, it as NodePlacementStrategy, j as routeEdgesWithPolylines, jt as WaypointConstraint, k as placeNodesInteractively, kt as LinearConstraint, l as assignLayersByBreadthFirstModelOrder, lt as ElkLayeredOptionName, m as assignLayersWithCoffmanGraham, mt as LayoutCapabilities, n as layeredAlgorithm, nt as LayeredAdvancedOptions, o as assignLayersWithStretchWidth, ot as toElkLayeredOptions, p as assignLayersInteractively, pt as LayoutAlgorithm, q as LayeredSpacing, rt as LayeringStrategy, s as assignLayersWithMinWidth, st as elkLayeredEnumValues, t as getLayeredLayout, tt as EdgeRoutingStyle, u as assignLayersByDepthFirstModelOrder, ut as ElkLayeredOptionValueByName, v as breakCyclesGreedily, vt as LayoutMetrics, w as minimizeCrossingsInteractively, wt as ConstraintStrength, x as breakCyclesWithDepthFirstSearch, xt as LayoutResult, y as breakCyclesGreedilyByModelOrder, yt as LayoutPhaseMetrics, z as CycleBreaker } from "./index-D9dhxrRl.cjs";
3
+ import { C as getTangentAtLength, D as applyRoutePatches, E as toSvgPath, S as getPointAtLength, T as roundCorners, _ as routeToPolylines, a as fanRouting, b as getPathBounds, c as orthogonalRouting, d as routingStrategies, f as selfLoopRouting, g as routeToGraphPatch, h as pathFromSplinePoints, i as curvedRouting, l as parallelRouting, m as getLayoutRoutes, n as bundleRouting, o as octilinearRouting, p as straightRouting, r as busRouting, s as organicRouting, t as bezierRouting, u as polylineRouting, v as FlattenPathOptions, w as pathFromPoints, x as getPathLength, y as flattenPath } from "./index-BEA_pzeT.cjs";
2
4
  import { Graph, GraphNode, VisualGraph } from "@statelyai/graph";
3
5
  import { LayoutOptions } from "@statelyai/graph/layout";
4
6
 
@@ -12,7 +14,6 @@ declare class UnsupportedLayoutError extends LayoutError {
12
14
  }
13
15
  //#endregion
14
16
  //#region src/box.d.ts
15
-
16
17
  interface BoxLayoutOptions extends Pick<LayoutOptions, "direction" | "measure"> {
17
18
  spacing?: number;
18
19
  padding?: number | Partial<LayoutPadding>;
@@ -74,4 +75,4 @@ declare function getLayoutAlgorithm(id: string): LayoutAlgorithm<unknown> | unde
74
75
  */
75
76
  declare function getLayout<N, E, G, P, O = unknown>(request: LayoutRequest<N, E, G, P, O>): Promise<LayoutResult<N, E, G, P>>;
76
77
  //#endregion
77
- export { type AcyclicOrientation, type AlignConstraint, type AnyGraph, type BoxLayoutOptions, type ConstraintStrength, type CrossingMinimizationStrategy, type CrossingMinimizer, type CycleBreaker, type CycleBreakingStrategy, type DistributeConstraint, type EdgeRouter, type EdgeRoutes, type EdgeRoutingStyle, type ElkLayeredOptionId, type ElkLayeredOptionName, type ElkLayeredOptionValueByName, type FixedLayoutOptions, type GeometryAttribute, type GeometryReference, type LayerAssigner, type LayerAssignment, type LayerOrder, type LayeredAdvancedOptions, type LayeredLayoutOptions, type LayeredPhaseInput, type LayeredSpacing, type LayeredStrategies, type LayeringStrategy, type LayoutAlgorithm, type LayoutCapabilities, type LayoutConstraint, type LayoutDiagnostic, type LayoutDirection, LayoutError, type LayoutExecutionContext, type LayoutMetrics, type LayoutPadding, type LayoutPhaseMetrics, type LayoutRequest, type LayoutResult, type LayoutScope, type LinearConstraint, type NodePlacement, type NodePlacementStrategy, type NodePlacer, type NodeSize, type PinConstraint, type RandomLayoutOptions, type RectanglePackingLayoutOptions, type SporeLayoutOptions, UnsupportedLayoutError, type WaypointConstraint, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, c, elkLayeredEnumValues, elkLayeredOptionDefinitions, fixedAlgorithm, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, toElkLayeredOptions };
78
+ export { type AcyclicOrientation, type AlignConstraint, type AnyGraph, type BoxLayoutOptions, type CompoundEdgeAttachment, type CompoundLayoutGeometry, type CompoundLayoutOptions, type CompoundVisualGraph, type ConstraintStrength, type CrossingMinimizationStrategy, type CrossingMinimizer, type CycleBreaker, type CycleBreakingStrategy, type DistributeConstraint, type EdgeRouter, type EdgeRoutes, EdgeRoutingSettings, type EdgeRoutingStyle, type ElkLayeredOptionId, type ElkLayeredOptionName, type ElkLayeredOptionValueByName, type FixedLayoutOptions, FlattenPathOptions, type GeometryAttribute, type GeometryReference, type LayerAssigner, type LayerAssignment, type LayerOrder, type LayeredAdvancedOptions, type LayeredLayoutOptions, type LayeredPhaseInput, type LayeredSpacing, type LayeredStrategies, type LayeringStrategy, type LayoutAlgorithm, type LayoutCapabilities, type LayoutConstraint, type LayoutDiagnostic, type LayoutDirection, LayoutError, type LayoutExecutionContext, type LayoutMetrics, type LayoutPadding, type LayoutPhaseMetrics, type LayoutRequest, type LayoutResult, type LayoutScope, type LinearConstraint, NativeRoutingStrategy, type NodePlacement, type NodePlacementStrategy, type NodePlacer, type NodeSize, type PinConstraint, type RandomLayoutOptions, type RectanglePackingLayoutOptions, Route, RouteAttachment, RouteBounds, RouteEndpoint, RoutePatch, RoutePath, RoutePoint, RouteSection, RouteSegment, RouteSide, RouteStyle, RoutingDiagnostic, RoutingDiagnosticCode, RoutingGraph, RoutingMetrics, RoutingSettings, RoutingSnapshot, RoutingStrategy, RoutingUpdate, type SporeLayoutOptions, UnsupportedLayoutError, type WaypointConstraint, applyRoutePatches, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, bezierRouting, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, bundleRouting, busRouting, c, curvedRouting, elkLayeredEnumValues, elkLayeredOptionDefinitions, fanRouting, fixedAlgorithm, flattenPath, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getLayoutRoutes, getPathBounds, getPathLength, getPointAtLength, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, getTangentAtLength, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, octilinearRouting, organicRouting, orthogonalRouting, parallelRouting, pathFromPoints, pathFromSplinePoints, placeNodesInLayers, placeNodesInteractively, polylineRouting, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, roundCorners, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, routeToGraphPatch, routeToPolylines, routingStrategies, selfLoopRouting, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, straightRouting, toElkLayeredOptions, toSvgPath };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
- import { $ as LayeringStrategy, A as routeEdgesOrthogonally, B as LayerOrder, C as breakCyclesWithModelOrderDepthFirstSearch, Ct as GeometryReference, D as minimizeCrossingsWithModelOrder, Dt as WaypointConstraint, E as minimizeCrossingsWithMedian, Et as PinConstraint, F as CycleBreaker, G as LayoutPadding, H as LayeredPhaseInput, I as EdgeRouter, J as NodeSize, K as NodePlacement, L as EdgeRoutes, M as routeEdgesWithSplines, N as AcyclicOrientation, O as placeNodesInLayers, Ot as c, P as CrossingMinimizer, Q as LayeredAdvancedOptions, R as LayerAssigner, S as breakCyclesWithModelOrderBreadthFirstSearch, St as GeometryAttribute, T as minimizeCrossingsWithBarycenter, Tt as LinearConstraint, U as LayeredSpacing, V as LayeredLayoutOptions, W as LayeredStrategies, X as CycleBreakingStrategy, Y as CrossingMinimizationStrategy, Z as EdgeRoutingStyle, _ as breakCyclesByStronglyConnectedNodeType, _t as LayoutResult, at as ElkLayeredOptionName, b as breakCyclesInteractively, bt as ConstraintStrength, c as assignLayersWithNetworkSimplex, ct as AnyGraph, d as assignLayersByLongestPath, dt as LayoutDiagnostic, et as NodePlacementStrategy, f as assignLayersByLongestPathToSink, ft as LayoutDirection, g as breakCyclesByStronglyConnectedConnectivity, gt as LayoutRequest, h as breakCyclesByModelOrder, ht as LayoutPhaseMetrics, it as ElkLayeredOptionId, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, lt as LayoutAlgorithm, m as assignLayersWithCoffmanGraham, mt as LayoutMetrics, n as layeredAlgorithm, nt as toElkLayeredOptions, o as assignLayersWithStretchWidth, ot as ElkLayeredOptionValueByName, p as assignLayersInteractively, pt as LayoutExecutionContext, q as NodePlacer, rt as elkLayeredEnumValues, s as assignLayersWithMinWidth, st as elkLayeredOptionDefinitions, t as getLayeredLayout, tt as fromElkLayeredOptionId, u as assignLayersByDepthFirstModelOrder, ut as LayoutCapabilities, v as breakCyclesGreedily, vt as LayoutScope, w as minimizeCrossingsInteractively, wt as LayoutConstraint, x as breakCyclesWithDepthFirstSearch, xt as DistributeConstraint, y as breakCyclesGreedilyByModelOrder, yt as AlignConstraint, z as LayerAssignment } from "./index-BSH2bloA.mjs";
1
+ import { _ as RoutingMetrics, a as RouteBounds, b as RoutingStrategy, c as RoutePath, d as RouteSegment, f as RouteSide, g as RoutingGraph, h as RoutingDiagnosticCode, i as RouteAttachment, l as RoutePoint, m as RoutingDiagnostic, n as NativeRoutingStrategy, o as RouteEndpoint, p as RouteStyle, r as Route, s as RoutePatch, t as EdgeRoutingSettings, u as RouteSection, v as RoutingSettings, x as RoutingUpdate, y as RoutingSnapshot } from "./types-CT2akdK0.mjs";
2
+ import { $ as CrossingMinimizationStrategy, A as routeEdgesOrthogonally, At as PinConstraint, B as EdgeRouter, C as breakCyclesWithModelOrderDepthFirstSearch, Ct as AlignConstraint, D as minimizeCrossingsWithModelOrder, Dt as GeometryReference, E as minimizeCrossingsWithMedian, Et as GeometryAttribute, F as CompoundEdgeAttachment, G as LayeredLayoutOptions, H as LayerAssigner, I as CompoundLayoutGeometry, J as LayeredStrategies, K as LayeredPhaseInput, L as CompoundLayoutOptions, M as routeEdgesWithSplines, Mt as c, N as CompoundVisualGraph, O as placeNodesInLayers, Ot as LayoutConstraint, P as AcyclicOrientation, Q as NodeSize, R as CrossingMinimizer, S as breakCyclesWithModelOrderBreadthFirstSearch, St as LayoutScope, T as minimizeCrossingsWithBarycenter, Tt as DistributeConstraint, U as LayerAssignment, V as EdgeRoutes, W as LayerOrder, X as NodePlacement, Y as LayoutPadding, Z as NodePlacer, _ as breakCyclesByStronglyConnectedNodeType, _t as LayoutExecutionContext, at as fromElkLayeredOptionId, b as breakCyclesInteractively, bt as LayoutRequest, c as assignLayersWithNetworkSimplex, ct as ElkLayeredOptionId, d as assignLayersByLongestPath, dt as elkLayeredOptionDefinitions, et as CycleBreakingStrategy, f as assignLayersByLongestPathToSink, ft as AnyGraph, g as breakCyclesByStronglyConnectedConnectivity, gt as LayoutDirection, h as breakCyclesByModelOrder, ht as LayoutDiagnostic, it as NodePlacementStrategy, j as routeEdgesWithPolylines, jt as WaypointConstraint, k as placeNodesInteractively, kt as LinearConstraint, l as assignLayersByBreadthFirstModelOrder, lt as ElkLayeredOptionName, m as assignLayersWithCoffmanGraham, mt as LayoutCapabilities, n as layeredAlgorithm, nt as LayeredAdvancedOptions, o as assignLayersWithStretchWidth, ot as toElkLayeredOptions, p as assignLayersInteractively, pt as LayoutAlgorithm, q as LayeredSpacing, rt as LayeringStrategy, s as assignLayersWithMinWidth, st as elkLayeredEnumValues, t as getLayeredLayout, tt as EdgeRoutingStyle, u as assignLayersByDepthFirstModelOrder, ut as ElkLayeredOptionValueByName, v as breakCyclesGreedily, vt as LayoutMetrics, w as minimizeCrossingsInteractively, wt as ConstraintStrength, x as breakCyclesWithDepthFirstSearch, xt as LayoutResult, y as breakCyclesGreedilyByModelOrder, yt as LayoutPhaseMetrics, z as CycleBreaker } from "./index-DNixtE3h.mjs";
3
+ import { C as getTangentAtLength, D as applyRoutePatches, E as toSvgPath, S as getPointAtLength, T as roundCorners, _ as routeToPolylines, a as fanRouting, b as getPathBounds, c as orthogonalRouting, d as routingStrategies, f as selfLoopRouting, g as routeToGraphPatch, h as pathFromSplinePoints, i as curvedRouting, l as parallelRouting, m as getLayoutRoutes, n as bundleRouting, o as octilinearRouting, p as straightRouting, r as busRouting, s as organicRouting, t as bezierRouting, u as polylineRouting, v as FlattenPathOptions, w as pathFromPoints, x as getPathLength, y as flattenPath } from "./index-DNTLRsDl.mjs";
2
4
  import { LayoutOptions } from "@statelyai/graph/layout";
3
5
  import { Graph, GraphNode, VisualGraph } from "@statelyai/graph";
4
6
 
@@ -12,7 +14,6 @@ declare class UnsupportedLayoutError extends LayoutError {
12
14
  }
13
15
  //#endregion
14
16
  //#region src/box.d.ts
15
-
16
17
  interface BoxLayoutOptions extends Pick<LayoutOptions, "direction" | "measure"> {
17
18
  spacing?: number;
18
19
  padding?: number | Partial<LayoutPadding>;
@@ -74,4 +75,4 @@ declare function getLayoutAlgorithm(id: string): LayoutAlgorithm<unknown> | unde
74
75
  */
75
76
  declare function getLayout<N, E, G, P, O = unknown>(request: LayoutRequest<N, E, G, P, O>): Promise<LayoutResult<N, E, G, P>>;
76
77
  //#endregion
77
- export { type AcyclicOrientation, type AlignConstraint, type AnyGraph, type BoxLayoutOptions, type ConstraintStrength, type CrossingMinimizationStrategy, type CrossingMinimizer, type CycleBreaker, type CycleBreakingStrategy, type DistributeConstraint, type EdgeRouter, type EdgeRoutes, type EdgeRoutingStyle, type ElkLayeredOptionId, type ElkLayeredOptionName, type ElkLayeredOptionValueByName, type FixedLayoutOptions, type GeometryAttribute, type GeometryReference, type LayerAssigner, type LayerAssignment, type LayerOrder, type LayeredAdvancedOptions, type LayeredLayoutOptions, type LayeredPhaseInput, type LayeredSpacing, type LayeredStrategies, type LayeringStrategy, type LayoutAlgorithm, type LayoutCapabilities, type LayoutConstraint, type LayoutDiagnostic, type LayoutDirection, LayoutError, type LayoutExecutionContext, type LayoutMetrics, type LayoutPadding, type LayoutPhaseMetrics, type LayoutRequest, type LayoutResult, type LayoutScope, type LinearConstraint, type NodePlacement, type NodePlacementStrategy, type NodePlacer, type NodeSize, type PinConstraint, type RandomLayoutOptions, type RectanglePackingLayoutOptions, type SporeLayoutOptions, UnsupportedLayoutError, type WaypointConstraint, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, c, elkLayeredEnumValues, elkLayeredOptionDefinitions, fixedAlgorithm, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, toElkLayeredOptions };
78
+ export { type AcyclicOrientation, type AlignConstraint, type AnyGraph, type BoxLayoutOptions, type CompoundEdgeAttachment, type CompoundLayoutGeometry, type CompoundLayoutOptions, type CompoundVisualGraph, type ConstraintStrength, type CrossingMinimizationStrategy, type CrossingMinimizer, type CycleBreaker, type CycleBreakingStrategy, type DistributeConstraint, type EdgeRouter, type EdgeRoutes, EdgeRoutingSettings, type EdgeRoutingStyle, type ElkLayeredOptionId, type ElkLayeredOptionName, type ElkLayeredOptionValueByName, type FixedLayoutOptions, FlattenPathOptions, type GeometryAttribute, type GeometryReference, type LayerAssigner, type LayerAssignment, type LayerOrder, type LayeredAdvancedOptions, type LayeredLayoutOptions, type LayeredPhaseInput, type LayeredSpacing, type LayeredStrategies, type LayeringStrategy, type LayoutAlgorithm, type LayoutCapabilities, type LayoutConstraint, type LayoutDiagnostic, type LayoutDirection, LayoutError, type LayoutExecutionContext, type LayoutMetrics, type LayoutPadding, type LayoutPhaseMetrics, type LayoutRequest, type LayoutResult, type LayoutScope, type LinearConstraint, NativeRoutingStrategy, type NodePlacement, type NodePlacementStrategy, type NodePlacer, type NodeSize, type PinConstraint, type RandomLayoutOptions, type RectanglePackingLayoutOptions, Route, RouteAttachment, RouteBounds, RouteEndpoint, RoutePatch, RoutePath, RoutePoint, RouteSection, RouteSegment, RouteSide, RouteStyle, RoutingDiagnostic, RoutingDiagnosticCode, RoutingGraph, RoutingMetrics, RoutingSettings, RoutingSnapshot, RoutingStrategy, RoutingUpdate, type SporeLayoutOptions, UnsupportedLayoutError, type WaypointConstraint, applyRoutePatches, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, bezierRouting, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, bundleRouting, busRouting, c, curvedRouting, elkLayeredEnumValues, elkLayeredOptionDefinitions, fanRouting, fixedAlgorithm, flattenPath, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getLayoutRoutes, getPathBounds, getPathLength, getPointAtLength, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, getTangentAtLength, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, octilinearRouting, organicRouting, orthogonalRouting, parallelRouting, pathFromPoints, pathFromSplinePoints, placeNodesInLayers, placeNodesInteractively, polylineRouting, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, roundCorners, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, routeToGraphPatch, routeToPolylines, routingStrategies, selfLoopRouting, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, straightRouting, toElkLayeredOptions, toSvgPath };
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { A as minimizeCrossingsInteractively, C as breakCyclesGreedily, D as breakCyclesWithModelOrderBreadthFirstSearch, E as breakCyclesWithDepthFirstSearch, F as placeNodesInteractively, H as UnsupportedLayoutError, L as routeEdgesOrthogonally, M as minimizeCrossingsWithMedian, N as minimizeCrossingsWithModelOrder, O as breakCyclesWithModelOrderDepthFirstSearch, P as placeNodesInLayers, R as routeEdgesWithPolylines, S as breakCyclesByStronglyConnectedNodeType, T as breakCyclesInteractively, V as LayoutError, _ as assignLayersByLongestPathToSink, a as elkLayeredEnumValues, b as breakCyclesByModelOrder, d as assignLayersWithMinWidth, f as assignLayersWithNetworkSimplex, g as assignLayersByLongestPath, h as assignLayersByDepthFirstModelOrder, i as toElkLayeredOptions, j as minimizeCrossingsWithBarycenter, m as assignLayersByBreadthFirstModelOrder, n as layeredAlgorithm, o as elkLayeredOptionDefinitions, p as c, r as fromElkLayeredOptionId, t as getLayeredLayout, u as assignLayersWithStretchWidth, v as assignLayersInteractively, w as breakCyclesGreedilyByModelOrder, x as breakCyclesByStronglyConnectedConnectivity, y as assignLayersWithCoffmanGraham, z as routeEdgesWithSplines } from "./layered-Bz2nWmVp.mjs";
2
- import { _ as getFixedLayout, a as getSporeCompactionLayout, c as sporeOverlapRemovalAlgorithm, d as getRectanglePackingLayout, f as rectanglePackingAlgorithm, g as fixedAlgorithm, i as getBuiltInLayoutAlgorithm, l as getRandomLayout, m as getBoxLayout, o as getSporeOverlapRemovalLayout, p as boxAlgorithm, r as executeLayoutAlgorithm, s as sporeCompactionAlgorithm, t as builtInLayoutAlgorithms, u as randomAlgorithm } from "./layout-engine-WbC0YjjT.mjs";
1
+ import { A as toSvgPath, C as flattenPath, D as getTangentAtLength, E as getPointAtLength, F as UnsupportedLayoutError, O as pathFromPoints, P as LayoutError, T as getPathLength, _ as routeToPolylines, a as fanRouting, c as orthogonalRouting, d as routingStrategies, f as selfLoopRouting, g as routeToGraphPatch, h as pathFromSplinePoints, i as curvedRouting, k as roundCorners, l as parallelRouting, m as getLayoutRoutes, n as bundleRouting, o as octilinearRouting, p as straightRouting, r as busRouting, s as organicRouting, t as bezierRouting, u as polylineRouting, w as getPathBounds, x as applyRoutePatches } from "./routing-A2hrK9MP.mjs";
2
+ import { A as minimizeCrossingsInteractively, C as breakCyclesGreedily, D as breakCyclesWithModelOrderBreadthFirstSearch, E as breakCyclesWithDepthFirstSearch, F as placeNodesInteractively, L as routeEdgesOrthogonally, M as minimizeCrossingsWithMedian, N as minimizeCrossingsWithModelOrder, O as breakCyclesWithModelOrderDepthFirstSearch, P as placeNodesInLayers, R as routeEdgesWithPolylines, S as breakCyclesByStronglyConnectedNodeType, T as breakCyclesInteractively, _ as assignLayersByLongestPathToSink, a as elkLayeredEnumValues, b as breakCyclesByModelOrder, d as assignLayersWithMinWidth, f as assignLayersWithNetworkSimplex, g as assignLayersByLongestPath, h as assignLayersByDepthFirstModelOrder, i as toElkLayeredOptions, j as minimizeCrossingsWithBarycenter, m as assignLayersByBreadthFirstModelOrder, n as layeredAlgorithm, o as elkLayeredOptionDefinitions, p as c, r as fromElkLayeredOptionId, t as getLayeredLayout, u as assignLayersWithStretchWidth, v as assignLayersInteractively, w as breakCyclesGreedilyByModelOrder, x as breakCyclesByStronglyConnectedConnectivity, y as assignLayersWithCoffmanGraham, z as routeEdgesWithSplines } from "./layered-DGFTeQSl.mjs";
3
+ import { _ as getFixedLayout, a as getSporeCompactionLayout, c as sporeOverlapRemovalAlgorithm, d as getRectanglePackingLayout, f as rectanglePackingAlgorithm, g as fixedAlgorithm, i as getBuiltInLayoutAlgorithm, l as getRandomLayout, m as getBoxLayout, o as getSporeOverlapRemovalLayout, p as boxAlgorithm, r as executeLayoutAlgorithm, s as sporeCompactionAlgorithm, t as builtInLayoutAlgorithms, u as randomAlgorithm } from "./layout-engine-Cs5tatA6.mjs";
3
4
  import { getGraphIssues } from "@statelyai/graph";
4
5
 
5
6
  //#region src/layout.ts
@@ -135,4 +136,4 @@ async function getLayout(request) {
135
136
  }
136
137
 
137
138
  //#endregion
138
- export { LayoutError, UnsupportedLayoutError, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, c, elkLayeredEnumValues, elkLayeredOptionDefinitions, fixedAlgorithm, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, toElkLayeredOptions };
139
+ export { LayoutError, UnsupportedLayoutError, applyRoutePatches, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, bezierRouting, boxAlgorithm, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, bundleRouting, busRouting, c, curvedRouting, elkLayeredEnumValues, elkLayeredOptionDefinitions, fanRouting, fixedAlgorithm, flattenPath, fromElkLayeredOptionId, getBoxLayout, getFixedLayout, getLayeredLayout, getLayout, getLayoutAlgorithm, getLayoutRoutes, getPathBounds, getPathLength, getPointAtLength, getRandomLayout, getRectanglePackingLayout, getSporeCompactionLayout, getSporeOverlapRemovalLayout, getTangentAtLength, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, octilinearRouting, organicRouting, orthogonalRouting, parallelRouting, pathFromPoints, pathFromSplinePoints, placeNodesInLayers, placeNodesInteractively, polylineRouting, randomAlgorithm, rectanglePackingAlgorithm, registerLayoutAlgorithm, roundCorners, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, routeToGraphPatch, routeToPolylines, routingStrategies, selfLoopRouting, sporeCompactionAlgorithm, sporeOverlapRemovalAlgorithm, straightRouting, toElkLayeredOptions, toSvgPath };
@@ -1,4 +1,4 @@
1
- const require_layered = require('../layered-Cf9Rn8l7.cjs');
1
+ const require_layered = require('../layered-B2buJqMf.cjs');
2
2
 
3
3
  exports.assignLayersByBreadthFirstModelOrder = require_layered.assignLayersByBreadthFirstModelOrder;
4
4
  exports.assignLayersByDepthFirstModelOrder = require_layered.assignLayersByDepthFirstModelOrder;
@@ -1,2 +1,3 @@
1
- import { $ as LayeringStrategy, A as routeEdgesOrthogonally, B as LayerOrder, C as breakCyclesWithModelOrderDepthFirstSearch, D as minimizeCrossingsWithModelOrder, E as minimizeCrossingsWithMedian, F as CycleBreaker, G as LayoutPadding, H as LayeredPhaseInput, I as EdgeRouter, J as NodeSize, K as NodePlacement, L as EdgeRoutes, M as routeEdgesWithSplines, N as AcyclicOrientation, O as placeNodesInLayers, P as CrossingMinimizer, Q as LayeredAdvancedOptions, R as LayerAssigner, S as breakCyclesWithModelOrderBreadthFirstSearch, T as minimizeCrossingsWithBarycenter, U as LayeredSpacing, V as LayeredLayoutOptions, W as LayeredStrategies, X as CycleBreakingStrategy, Y as CrossingMinimizationStrategy, Z as EdgeRoutingStyle, _ as breakCyclesByStronglyConnectedNodeType, a as placeNodesWithBrandesKoepf, at as ElkLayeredOptionName, b as breakCyclesInteractively, c as assignLayersWithNetworkSimplex, d as assignLayersByLongestPath, et as NodePlacementStrategy, f as assignLayersByLongestPathToSink, g as breakCyclesByStronglyConnectedConnectivity, h as breakCyclesByModelOrder, i as placeNodesWithLinearSegments, it as ElkLayeredOptionId, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, m as assignLayersWithCoffmanGraham, n as layeredAlgorithm, nt as toElkLayeredOptions, o as assignLayersWithStretchWidth, ot as ElkLayeredOptionValueByName, p as assignLayersInteractively, q as NodePlacer, r as placeNodesWithNetworkSimplex, rt as elkLayeredEnumValues, s as assignLayersWithMinWidth, st as elkLayeredOptionDefinitions, t as getLayeredLayout, tt as fromElkLayeredOptionId, u as assignLayersByDepthFirstModelOrder, v as breakCyclesGreedily, w as minimizeCrossingsInteractively, x as breakCyclesWithDepthFirstSearch, y as breakCyclesGreedilyByModelOrder, z as LayerAssignment } from "../index-CG712jzV.cjs";
2
- export { AcyclicOrientation, CrossingMinimizationStrategy, CrossingMinimizer, CycleBreaker, CycleBreakingStrategy, EdgeRouter, EdgeRoutes, EdgeRoutingStyle, ElkLayeredOptionId, ElkLayeredOptionName, ElkLayeredOptionValueByName, LayerAssigner, LayerAssignment, LayerOrder, LayeredAdvancedOptions, LayeredLayoutOptions, LayeredPhaseInput, LayeredSpacing, LayeredStrategies, LayeringStrategy, LayoutPadding, NodePlacement, NodePlacementStrategy, NodePlacer, NodeSize, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, elkLayeredEnumValues, elkLayeredOptionDefinitions, fromElkLayeredOptionId, getLayeredLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, placeNodesWithBrandesKoepf, placeNodesWithLinearSegments, placeNodesWithNetworkSimplex, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, toElkLayeredOptions };
1
+ import "../types-uxPlGRof.cjs";
2
+ import { $ as CrossingMinimizationStrategy, A as routeEdgesOrthogonally, B as EdgeRouter, C as breakCyclesWithModelOrderDepthFirstSearch, D as minimizeCrossingsWithModelOrder, E as minimizeCrossingsWithMedian, F as CompoundEdgeAttachment, G as LayeredLayoutOptions, H as LayerAssigner, I as CompoundLayoutGeometry, J as LayeredStrategies, K as LayeredPhaseInput, L as CompoundLayoutOptions, M as routeEdgesWithSplines, N as CompoundVisualGraph, O as placeNodesInLayers, P as AcyclicOrientation, Q as NodeSize, R as CrossingMinimizer, S as breakCyclesWithModelOrderBreadthFirstSearch, T as minimizeCrossingsWithBarycenter, U as LayerAssignment, V as EdgeRoutes, W as LayerOrder, X as NodePlacement, Y as LayoutPadding, Z as NodePlacer, _ as breakCyclesByStronglyConnectedNodeType, a as placeNodesWithBrandesKoepf, at as fromElkLayeredOptionId, b as breakCyclesInteractively, c as assignLayersWithNetworkSimplex, ct as ElkLayeredOptionId, d as assignLayersByLongestPath, dt as elkLayeredOptionDefinitions, et as CycleBreakingStrategy, f as assignLayersByLongestPathToSink, g as breakCyclesByStronglyConnectedConnectivity, h as breakCyclesByModelOrder, i as placeNodesWithLinearSegments, it as NodePlacementStrategy, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, lt as ElkLayeredOptionName, m as assignLayersWithCoffmanGraham, n as layeredAlgorithm, nt as LayeredAdvancedOptions, o as assignLayersWithStretchWidth, ot as toElkLayeredOptions, p as assignLayersInteractively, q as LayeredSpacing, r as placeNodesWithNetworkSimplex, rt as LayeringStrategy, s as assignLayersWithMinWidth, st as elkLayeredEnumValues, t as getLayeredLayout, tt as EdgeRoutingStyle, u as assignLayersByDepthFirstModelOrder, ut as ElkLayeredOptionValueByName, v as breakCyclesGreedily, w as minimizeCrossingsInteractively, x as breakCyclesWithDepthFirstSearch, y as breakCyclesGreedilyByModelOrder, z as CycleBreaker } from "../index-D9dhxrRl.cjs";
3
+ export { AcyclicOrientation, CompoundEdgeAttachment, CompoundLayoutGeometry, CompoundLayoutOptions, CompoundVisualGraph, CrossingMinimizationStrategy, CrossingMinimizer, CycleBreaker, CycleBreakingStrategy, EdgeRouter, EdgeRoutes, EdgeRoutingStyle, ElkLayeredOptionId, ElkLayeredOptionName, ElkLayeredOptionValueByName, LayerAssigner, LayerAssignment, LayerOrder, LayeredAdvancedOptions, LayeredLayoutOptions, LayeredPhaseInput, LayeredSpacing, LayeredStrategies, LayeringStrategy, LayoutPadding, NodePlacement, NodePlacementStrategy, NodePlacer, NodeSize, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, elkLayeredEnumValues, elkLayeredOptionDefinitions, fromElkLayeredOptionId, getLayeredLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, placeNodesWithBrandesKoepf, placeNodesWithLinearSegments, placeNodesWithNetworkSimplex, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, toElkLayeredOptions };
@@ -1,2 +1,3 @@
1
- import { $ as LayeringStrategy, A as routeEdgesOrthogonally, B as LayerOrder, C as breakCyclesWithModelOrderDepthFirstSearch, D as minimizeCrossingsWithModelOrder, E as minimizeCrossingsWithMedian, F as CycleBreaker, G as LayoutPadding, H as LayeredPhaseInput, I as EdgeRouter, J as NodeSize, K as NodePlacement, L as EdgeRoutes, M as routeEdgesWithSplines, N as AcyclicOrientation, O as placeNodesInLayers, P as CrossingMinimizer, Q as LayeredAdvancedOptions, R as LayerAssigner, S as breakCyclesWithModelOrderBreadthFirstSearch, T as minimizeCrossingsWithBarycenter, U as LayeredSpacing, V as LayeredLayoutOptions, W as LayeredStrategies, X as CycleBreakingStrategy, Y as CrossingMinimizationStrategy, Z as EdgeRoutingStyle, _ as breakCyclesByStronglyConnectedNodeType, a as placeNodesWithBrandesKoepf, at as ElkLayeredOptionName, b as breakCyclesInteractively, c as assignLayersWithNetworkSimplex, d as assignLayersByLongestPath, et as NodePlacementStrategy, f as assignLayersByLongestPathToSink, g as breakCyclesByStronglyConnectedConnectivity, h as breakCyclesByModelOrder, i as placeNodesWithLinearSegments, it as ElkLayeredOptionId, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, m as assignLayersWithCoffmanGraham, n as layeredAlgorithm, nt as toElkLayeredOptions, o as assignLayersWithStretchWidth, ot as ElkLayeredOptionValueByName, p as assignLayersInteractively, q as NodePlacer, r as placeNodesWithNetworkSimplex, rt as elkLayeredEnumValues, s as assignLayersWithMinWidth, st as elkLayeredOptionDefinitions, t as getLayeredLayout, tt as fromElkLayeredOptionId, u as assignLayersByDepthFirstModelOrder, v as breakCyclesGreedily, w as minimizeCrossingsInteractively, x as breakCyclesWithDepthFirstSearch, y as breakCyclesGreedilyByModelOrder, z as LayerAssignment } from "../index-BSH2bloA.mjs";
2
- export { AcyclicOrientation, CrossingMinimizationStrategy, CrossingMinimizer, CycleBreaker, CycleBreakingStrategy, EdgeRouter, EdgeRoutes, EdgeRoutingStyle, ElkLayeredOptionId, ElkLayeredOptionName, ElkLayeredOptionValueByName, LayerAssigner, LayerAssignment, LayerOrder, LayeredAdvancedOptions, LayeredLayoutOptions, LayeredPhaseInput, LayeredSpacing, LayeredStrategies, LayeringStrategy, LayoutPadding, NodePlacement, NodePlacementStrategy, NodePlacer, NodeSize, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, elkLayeredEnumValues, elkLayeredOptionDefinitions, fromElkLayeredOptionId, getLayeredLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, placeNodesWithBrandesKoepf, placeNodesWithLinearSegments, placeNodesWithNetworkSimplex, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, toElkLayeredOptions };
1
+ import "../types-CT2akdK0.mjs";
2
+ import { $ as CrossingMinimizationStrategy, A as routeEdgesOrthogonally, B as EdgeRouter, C as breakCyclesWithModelOrderDepthFirstSearch, D as minimizeCrossingsWithModelOrder, E as minimizeCrossingsWithMedian, F as CompoundEdgeAttachment, G as LayeredLayoutOptions, H as LayerAssigner, I as CompoundLayoutGeometry, J as LayeredStrategies, K as LayeredPhaseInput, L as CompoundLayoutOptions, M as routeEdgesWithSplines, N as CompoundVisualGraph, O as placeNodesInLayers, P as AcyclicOrientation, Q as NodeSize, R as CrossingMinimizer, S as breakCyclesWithModelOrderBreadthFirstSearch, T as minimizeCrossingsWithBarycenter, U as LayerAssignment, V as EdgeRoutes, W as LayerOrder, X as NodePlacement, Y as LayoutPadding, Z as NodePlacer, _ as breakCyclesByStronglyConnectedNodeType, a as placeNodesWithBrandesKoepf, at as fromElkLayeredOptionId, b as breakCyclesInteractively, c as assignLayersWithNetworkSimplex, ct as ElkLayeredOptionId, d as assignLayersByLongestPath, dt as elkLayeredOptionDefinitions, et as CycleBreakingStrategy, f as assignLayersByLongestPathToSink, g as breakCyclesByStronglyConnectedConnectivity, h as breakCyclesByModelOrder, i as placeNodesWithLinearSegments, it as NodePlacementStrategy, j as routeEdgesWithPolylines, k as placeNodesInteractively, l as assignLayersByBreadthFirstModelOrder, lt as ElkLayeredOptionName, m as assignLayersWithCoffmanGraham, n as layeredAlgorithm, nt as LayeredAdvancedOptions, o as assignLayersWithStretchWidth, ot as toElkLayeredOptions, p as assignLayersInteractively, q as LayeredSpacing, r as placeNodesWithNetworkSimplex, rt as LayeringStrategy, s as assignLayersWithMinWidth, st as elkLayeredEnumValues, t as getLayeredLayout, tt as EdgeRoutingStyle, u as assignLayersByDepthFirstModelOrder, ut as ElkLayeredOptionValueByName, v as breakCyclesGreedily, w as minimizeCrossingsInteractively, x as breakCyclesWithDepthFirstSearch, y as breakCyclesGreedilyByModelOrder, z as CycleBreaker } from "../index-DNixtE3h.mjs";
3
+ export { AcyclicOrientation, CompoundEdgeAttachment, CompoundLayoutGeometry, CompoundLayoutOptions, CompoundVisualGraph, CrossingMinimizationStrategy, CrossingMinimizer, CycleBreaker, CycleBreakingStrategy, EdgeRouter, EdgeRoutes, EdgeRoutingStyle, ElkLayeredOptionId, ElkLayeredOptionName, ElkLayeredOptionValueByName, LayerAssigner, LayerAssignment, LayerOrder, LayeredAdvancedOptions, LayeredLayoutOptions, LayeredPhaseInput, LayeredSpacing, LayeredStrategies, LayeringStrategy, LayoutPadding, NodePlacement, NodePlacementStrategy, NodePlacer, NodeSize, assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, elkLayeredEnumValues, elkLayeredOptionDefinitions, fromElkLayeredOptionId, getLayeredLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, placeNodesWithBrandesKoepf, placeNodesWithLinearSegments, placeNodesWithNetworkSimplex, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, toElkLayeredOptions };
@@ -1,3 +1,3 @@
1
- import { A as minimizeCrossingsInteractively, C as breakCyclesGreedily, D as breakCyclesWithModelOrderBreadthFirstSearch, E as breakCyclesWithDepthFirstSearch, F as placeNodesInteractively, L as routeEdgesOrthogonally, M as minimizeCrossingsWithMedian, N as minimizeCrossingsWithModelOrder, O as breakCyclesWithModelOrderDepthFirstSearch, P as placeNodesInLayers, R as routeEdgesWithPolylines, S as breakCyclesByStronglyConnectedNodeType, T as breakCyclesInteractively, _ as assignLayersByLongestPathToSink, a as elkLayeredEnumValues, b as breakCyclesByModelOrder, c as placeNodesWithLinearSegments, d as assignLayersWithMinWidth, f as assignLayersWithNetworkSimplex, g as assignLayersByLongestPath, h as assignLayersByDepthFirstModelOrder, i as toElkLayeredOptions, j as minimizeCrossingsWithBarycenter, l as placeNodesWithBrandesKoepf, m as assignLayersByBreadthFirstModelOrder, n as layeredAlgorithm, o as elkLayeredOptionDefinitions, r as fromElkLayeredOptionId, s as placeNodesWithNetworkSimplex, t as getLayeredLayout, u as assignLayersWithStretchWidth, v as assignLayersInteractively, w as breakCyclesGreedilyByModelOrder, x as breakCyclesByStronglyConnectedConnectivity, y as assignLayersWithCoffmanGraham, z as routeEdgesWithSplines } from "../layered-Bz2nWmVp.mjs";
1
+ import { A as minimizeCrossingsInteractively, C as breakCyclesGreedily, D as breakCyclesWithModelOrderBreadthFirstSearch, E as breakCyclesWithDepthFirstSearch, F as placeNodesInteractively, L as routeEdgesOrthogonally, M as minimizeCrossingsWithMedian, N as minimizeCrossingsWithModelOrder, O as breakCyclesWithModelOrderDepthFirstSearch, P as placeNodesInLayers, R as routeEdgesWithPolylines, S as breakCyclesByStronglyConnectedNodeType, T as breakCyclesInteractively, _ as assignLayersByLongestPathToSink, a as elkLayeredEnumValues, b as breakCyclesByModelOrder, c as placeNodesWithLinearSegments, d as assignLayersWithMinWidth, f as assignLayersWithNetworkSimplex, g as assignLayersByLongestPath, h as assignLayersByDepthFirstModelOrder, i as toElkLayeredOptions, j as minimizeCrossingsWithBarycenter, l as placeNodesWithBrandesKoepf, m as assignLayersByBreadthFirstModelOrder, n as layeredAlgorithm, o as elkLayeredOptionDefinitions, r as fromElkLayeredOptionId, s as placeNodesWithNetworkSimplex, t as getLayeredLayout, u as assignLayersWithStretchWidth, v as assignLayersInteractively, w as breakCyclesGreedilyByModelOrder, x as breakCyclesByStronglyConnectedConnectivity, y as assignLayersWithCoffmanGraham, z as routeEdgesWithSplines } from "../layered-DGFTeQSl.mjs";
2
2
 
3
3
  export { assignLayersByBreadthFirstModelOrder, assignLayersByDepthFirstModelOrder, assignLayersByLongestPath, assignLayersByLongestPathToSink, assignLayersInteractively, assignLayersWithCoffmanGraham, assignLayersWithMinWidth, assignLayersWithNetworkSimplex, assignLayersWithStretchWidth, breakCyclesByModelOrder, breakCyclesByStronglyConnectedConnectivity, breakCyclesByStronglyConnectedNodeType, breakCyclesGreedily, breakCyclesGreedilyByModelOrder, breakCyclesInteractively, breakCyclesWithDepthFirstSearch, breakCyclesWithModelOrderBreadthFirstSearch, breakCyclesWithModelOrderDepthFirstSearch, elkLayeredEnumValues, elkLayeredOptionDefinitions, fromElkLayeredOptionId, getLayeredLayout, layeredAlgorithm, minimizeCrossingsInteractively, minimizeCrossingsWithBarycenter, minimizeCrossingsWithMedian, minimizeCrossingsWithModelOrder, placeNodesInLayers, placeNodesInteractively, placeNodesWithBrandesKoepf, placeNodesWithLinearSegments, placeNodesWithNetworkSimplex, routeEdgesOrthogonally, routeEdgesWithPolylines, routeEdgesWithSplines, toElkLayeredOptions };