@kineviz/gl 0.7.0 → 0.7.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/dist/index.d.mts CHANGED
@@ -3,8 +3,8 @@ export { CaptionDef, CategoryConfig, CategorySchema, ColorMappingType, EdgeCapti
3
3
  import * as THREE from 'three';
4
4
  import { Group, Camera, Object3D, WebGLRenderer } from 'three';
5
5
  import { OntologyRegistry, ResolvedOntology } from '@kineviz/ontology';
6
- import { LayoutRegistry, CircleLayoutOptions, GridLayoutOptions, LineLayoutOptions, SpiralLayoutOptions, CubeLayoutOptions, SphereLayoutOptions, ScatterLayoutOptions, EgoLayoutOptions, LayoutContext, Vec3 as Vec3$1, PlotAxisInfo } from '@kineviz/gpu-compute/cpu';
7
- export { AlignByLayoutOptions, CategoryAxisMapping, CircleLayoutOptions, CubeLayoutOptions, EasingType, EgoLayoutOptions, GeometricLayoutConfig, GridLayoutOptions, LayoutContext, LayoutFunction, LayoutRegistration, LayoutRegistry, LayoutResult, LayoutTween, LineLayoutOptions, PlotAxisInfo, PlotLayoutResult, PlotMultiCategoryOptions, PlotMultiCategoryResult, PlotScatterLayoutOptions, RegisterLayoutOptions, RotateLayoutOptions, ScaleLayoutOptions, ScatterLayoutOptions, ShiftLayoutOptions, SphereLayoutOptions, SpiralLayoutOptions, StatelessComputeFn, StatelessLayoutEngine, TweenOptions, Vec3, alignByLayout, circleLayout, computeCenter, computeDomain, createLayoutRegistry, cubeLayout, defaultLayoutRegistry, egoLayout, executeLayout, generateTicks, gridLayout, lineLayout, linearScale, logScale, parseNumericValue, plotMultiCategoryScatterLayout, plotScatterLayout, rotateLayout, scaleLayout, scatterLayout, shiftLayout, sphereLayout, spiralLayout } from '@kineviz/gpu-compute/cpu';
6
+ import { LayoutRegistry, CircleLayoutOptions, GridLayoutOptions, LineLayoutOptions, SpiralLayoutOptions, CubeLayoutOptions, SphereLayoutOptions, ScatterLayoutOptions, EgoLayoutOptions, TreeLayoutOptions, RadialTreeLayoutOptions, LayeredLayoutOptions, ColumnsLayoutOptions, LayoutContext, Vec3 as Vec3$2, PlotAxisInfo } from '@kineviz/gpu-compute/cpu';
7
+ export { AlignByLayoutOptions, CategoryAxisMapping, CircleLayoutOptions, ColumnsLayoutOptions, CubeLayoutOptions, EasingType, EgoLayoutOptions, GeometricLayoutConfig, GridLayoutOptions, HierarchyDirection, LayeredLayoutOptions, LayoutContext, LayoutFunction, LayoutRegistration, LayoutRegistry, LayoutResult, LayoutTween, LineLayoutOptions, PlotAxisInfo, PlotLayoutResult, PlotMultiCategoryOptions, PlotMultiCategoryResult, PlotScatterLayoutOptions, RadialTreeLayoutOptions, RegisterLayoutOptions, RotateLayoutOptions, ScaleLayoutOptions, ScatterLayoutOptions, ShiftLayoutOptions, SphereLayoutOptions, SpiralLayoutOptions, StatelessComputeFn, StatelessLayoutEngine, TreeLayoutOptions, TweenOptions, Vec3, alignByLayout, circleLayout, columnsLayout, computeCenter, computeDomain, createLayoutRegistry, cubeLayout, defaultLayoutRegistry, egoLayout, executeLayout, generateTicks, gridLayout, layeredLayout, lineLayout, linearScale, logScale, parseNumericValue, plotMultiCategoryScatterLayout, plotScatterLayout, radialTreeLayout, rotateLayout, scaleLayout, scatterLayout, shiftLayout, sphereLayout, spiralLayout, treeLayout } from '@kineviz/gpu-compute/cpu';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import * as React from 'react';
10
10
  import React__default from 'react';
@@ -14,15 +14,49 @@ import { GraphXRParseOptions } from '@kineviz/parsers';
14
14
  import { LLMAdapter } from '@kineviz/llm-types';
15
15
  export { ChatMessage, LLMAdapter } from '@kineviz/llm-types';
16
16
 
17
+ type DecorationAnchor = "top-left" | "top" | "top-right" | "left" | "right" | "bottom-left" | "bottom" | "bottom-right";
18
+ declare const ANCHOR_RADIUS_PX = 14;
19
+ declare const ANCHOR_OFFSETS: Readonly<Record<DecorationAnchor, [number, number]>>;
17
20
  /**
18
- * RenderEngine Core Types
21
+ * On-screen radius of a node, in CSS px at the reference depth that badge and
22
+ * tag offsets are designed in (node.vert.glsl: diameter = size × 50 / depth,
23
+ * reference depth 10 → radius = size × 2.5). The decoration shaders scale the
24
+ * offset by the same depth factor the node uses, so the result tracks zoom.
25
+ */
26
+ declare const NODE_RADIUS_PX_PER_SIZE = 2.5;
27
+ /**
28
+ * Where a decoration's centre sits relative to its node's centre, in CSS px at
29
+ * the reference depth (screen convention, +y down).
30
+ *
31
+ * The decoration is placed on the node's rim in the anchor's direction (a
32
+ * corner anchor at 45°), then pushed outwards by `overlap` × its own half
33
+ * size, so `overlap = 1` sets it just outside the node and smaller values let
34
+ * it overlap the rim (a notification badge). `gapPx` adds clear space.
19
35
  *
20
- * 4-layer data model designed for GPU-first rendering:
21
- * - Layer 1: Source Data (immutable, from database/API)
22
- * - Layer 2: Index System (ID ↔ GPU index mapping)
23
- * - Layer 3: Render State (mutable, Float32Arrays for GPU)
24
- * - Layer 4: Position Provider (abstraction for CPU/GPU positions)
36
+ * The fixed {@link ANCHOR_OFFSETS} (14 px) were tuned for one node size and
37
+ * left decorations floating several radii away from the default-size node
38
+ * (radius ≈ 4 px) — they read as a separate node. They remain the fallback
39
+ * when the node's size is unknown.
25
40
  */
41
+ declare function anchorOffsetAround(anchor: DecorationAnchor, nodeRadiusPx: number, halfSizePx: readonly [number, number], overlap: number, gapPx?: number): [number, number];
42
+ interface BadgeSpec {
43
+ text?: string;
44
+ iconName?: string;
45
+ anchor: DecorationAnchor;
46
+ bg?: string;
47
+ fg?: string;
48
+ }
49
+ interface TagSpec {
50
+ text: string;
51
+ anchor: DecorationAnchor;
52
+ maxWidthPx?: number;
53
+ /** Text cap height in CSS px at reference depth; default 9, clamped to 6–32. Padding scales with it. */
54
+ fontSizePx?: number;
55
+ bg?: string;
56
+ fg?: string;
57
+ }
58
+ type TagId = string;
59
+ declare const MAX_BADGE_TEXT_CHARS = 4;
26
60
 
27
61
  interface NodeRenderState {
28
62
  /** Colors [r,g,b, r,g,b, ...] × nodeCount */
@@ -71,7 +105,7 @@ interface NodeRenderState {
71
105
  overrides: Float32Array;
72
106
  }
73
107
  /** Edge shape type */
74
- type EdgeShape = "straight" | "curve" | "radial";
108
+ type EdgeShape = "straight" | "curve" | "radial" | "orthogonal";
75
109
  interface EdgeRenderState {
76
110
  /** Colors [r,g,b, ...] × edgeCount */
77
111
  colors: Float32Array;
@@ -85,8 +119,15 @@ interface EdgeRenderState {
85
119
  highlighted: Float32Array;
86
120
  /** Dashed state [0/1, ...] */
87
121
  dashed: Float32Array;
88
- /** Shape override [-1=use default, 0=straight, 1=curve, 2=radial] */
122
+ /** Shape override [-1=use default, 0=straight, 1=curve, 2=radial, 3=orthogonal] */
89
123
  shapes: Float32Array;
124
+ /**
125
+ * Orthogonal bend position, per edge. NaN = automatic (midway, spread by
126
+ * multi-edge curvature). 0..1 = fraction of the source→target span along the
127
+ * routing axis; < 0 = absolute world distance from the source. Only read for
128
+ * edges drawn `orthogonal`.
129
+ */
130
+ bends: Float32Array;
90
131
  /** Flow particle enabled [0/1], per-edge */
91
132
  flow: Float32Array;
92
133
  /**
@@ -349,6 +390,14 @@ interface GroupState {
349
390
  savedAnchorColor: [number, number, number] | null;
350
391
  /** Snapshot of anchor.labels[0] before collapse; null if anchor had no label. */
351
392
  savedAnchorLabel: string | null;
393
+ /**
394
+ * The anchor's own badge before collapse put the member count on it
395
+ * (`null`: it had none). Restored on expand unless the badge was replaced
396
+ * meanwhile. Absent on groups that were never collapsed.
397
+ */
398
+ savedAnchorBadge?: BadgeSpec | null;
399
+ /** Text of the count badge collapse put on the anchor ("+12"), so expand only removes its own. */
400
+ countBadgeText?: string | null;
352
401
  center: {
353
402
  x: number;
354
403
  y: number;
@@ -840,15 +889,15 @@ interface Vec2 {
840
889
  y: number;
841
890
  }
842
891
  /** A 3D world-space coordinate. */
843
- interface Vec3 {
892
+ interface Vec3$1 {
844
893
  x: number;
845
894
  y: number;
846
895
  z: number;
847
896
  }
848
897
  /** Snapshot of camera state emitted with `"camera:change"` events. */
849
898
  interface CameraState$1 {
850
- position: Vec3;
851
- rotation: Vec3;
899
+ position: Vec3$1;
900
+ rotation: Vec3$1;
852
901
  zoom: number;
853
902
  mode: "2D" | "3D";
854
903
  }
@@ -1124,7 +1173,7 @@ interface EventMap {
1124
1173
  */
1125
1174
  "drag:start": {
1126
1175
  nodeIds: string[];
1127
- startPosition: Vec3;
1176
+ startPosition: Vec3$1;
1128
1177
  };
1129
1178
  /**
1130
1179
  * **Not yet wired.** The interaction layer (`DragHandler` / `HoverHandler`) does not currently
@@ -1137,8 +1186,8 @@ interface EventMap {
1137
1186
  */
1138
1187
  "drag:move": {
1139
1188
  nodeIds: string[];
1140
- currentPosition: Vec3;
1141
- delta: Vec3;
1189
+ currentPosition: Vec3$1;
1190
+ delta: Vec3$1;
1142
1191
  };
1143
1192
  /**
1144
1193
  * **Not yet wired.** The interaction layer (`DragHandler` / `HoverHandler`) does not currently
@@ -1151,7 +1200,7 @@ interface EventMap {
1151
1200
  */
1152
1201
  "drag:end": {
1153
1202
  nodeIds: string[];
1154
- finalPosition: Vec3;
1203
+ finalPosition: Vec3$1;
1155
1204
  };
1156
1205
  /**
1157
1206
  * **Not yet wired.** The interaction layer (`DragHandler` / `HoverHandler`) does not currently
@@ -1590,26 +1639,6 @@ declare class EventBus {
1590
1639
  removeAllListeners(): void;
1591
1640
  }
1592
1641
 
1593
- type DecorationAnchor = "top-left" | "top" | "top-right" | "left" | "right" | "bottom-left" | "bottom" | "bottom-right";
1594
- declare const ANCHOR_RADIUS_PX = 14;
1595
- declare const ANCHOR_OFFSETS: Readonly<Record<DecorationAnchor, [number, number]>>;
1596
- interface BadgeSpec {
1597
- text?: string;
1598
- iconName?: string;
1599
- anchor: DecorationAnchor;
1600
- bg?: string;
1601
- fg?: string;
1602
- }
1603
- interface TagSpec {
1604
- text: string;
1605
- anchor: DecorationAnchor;
1606
- maxWidthPx?: number;
1607
- bg?: string;
1608
- fg?: string;
1609
- }
1610
- type TagId = string;
1611
- declare const MAX_BADGE_TEXT_CHARS = 4;
1612
-
1613
1642
  /**
1614
1643
  * GroupManager — Core engine for all group operations.
1615
1644
  *
@@ -1727,6 +1756,16 @@ declare class GroupManager {
1727
1756
  * belongs to a collapsed group, and aggregates them by (sourceGroup, targetGroup|node) pair.
1728
1757
  */
1729
1758
  private computeAggregatedEdges;
1759
+ /**
1760
+ * An edge of the anchor itself to a node outside the group needs no
1761
+ * stand-in: both ends stay on screen. When it is the only edge behind an
1762
+ * aggregate, drop that aggregate and show the real edge again, so it keeps
1763
+ * its own relationship colour instead of turning into a grey aggregate.
1764
+ * Only for collections (`kind: "collect"`), where the anchor is a real node
1765
+ * in its own right; a plain group's anchor stands for the whole group, so
1766
+ * all of its boundary edges stay aggregated.
1767
+ */
1768
+ private keepAnchorOwnEdges;
1730
1769
  private parseHexColor;
1731
1770
  private readonly aggregatedEdgeColor;
1732
1771
  private readonly aggregatedEdgeWidthCap;
@@ -1760,6 +1799,8 @@ declare class GroupManager {
1760
1799
  * would be a no-op.
1761
1800
  */
1762
1801
  private applyAnchorVisuals;
1802
+ /** Put (or refresh) the "+N hidden members" badge on a collapsed group's anchor. */
1803
+ private syncCountBadge;
1763
1804
  private restoreAnchorVisuals;
1764
1805
  /** Test-only wrappers */
1765
1806
  applyAnchorVisualsForTest(group: GroupState, anchorId: string): void;
@@ -1853,7 +1894,7 @@ declare class CollectionManager {
1853
1894
  * "there is always a fallback" is a contract rule, not a convention.
1854
1895
  */
1855
1896
 
1856
- type BuiltinEdgeShape = "straight" | "curve" | "radial";
1897
+ type BuiltinEdgeShape = "straight" | "curve" | "radial" | "orthogonal";
1857
1898
  /** Edge shape name → value of the `controlOffset.z` shader attribute. */
1858
1899
  declare const BUILTIN_EDGE_SHAPE_IDS: Readonly<Record<BuiltinEdgeShape, number>>;
1859
1900
  interface ElementTypeDescriptor {
@@ -1900,6 +1941,24 @@ declare class EngineRegistry {
1900
1941
  resolveEdgeShapeId(name: string): number;
1901
1942
  }
1902
1943
 
1944
+ /**
1945
+ * Half-width and half-height of what a layer draws around a node, measured
1946
+ * from the node centre. `unit: "node"` (default) counts built-in node radii,
1947
+ * so `{ x: 1, y: 1 }` is exactly the built-in dot and a screen-sized panel
1948
+ * keeps one value at every zoom; `unit: "world"` is for world-sized drawings.
1949
+ */
1950
+ interface NodeLabelExtent {
1951
+ x: number;
1952
+ y: number;
1953
+ unit?: "node" | "world";
1954
+ }
1955
+ /** Merged footprint of one node: node-radius half-extents and world half-extents. */
1956
+ interface ResolvedLabelExtent {
1957
+ nx: number;
1958
+ ny: number;
1959
+ wx: number;
1960
+ wy: number;
1961
+ }
1903
1962
  declare class GraphStore {
1904
1963
  /**
1905
1964
  * Per-engine extension registries (layouts, element types). Lives on the
@@ -1910,6 +1969,8 @@ declare class GraphStore {
1910
1969
  private _version;
1911
1970
  private _iconVersion;
1912
1971
  private _labelVersion;
1972
+ private _labelExtentOwners;
1973
+ private _labelExtentMerged;
1913
1974
  private _versionChangedSubs;
1914
1975
  private _iconVersionChangedSubs;
1915
1976
  private _versionNotifyPending;
@@ -1976,6 +2037,8 @@ declare class GraphStore {
1976
2037
  private _edgeArrowVisible;
1977
2038
  private _edgeScale;
1978
2039
  private _defaultEdgeShape;
2040
+ private _edgeCornerRadius;
2041
+ private _edgeRoutingAxis;
1979
2042
  rippleColor: [number, number, number];
1980
2043
  rippleSpeed: number;
1981
2044
  rippleRings: number;
@@ -2101,7 +2164,16 @@ declare class GraphStore {
2101
2164
  /** Global edge width scale multiplier (read by GPUEdgeRenderer during update) */
2102
2165
  get edgeScale(): number;
2103
2166
  set edgeScale(scale: number);
2104
- /** Default edge shape override: -1=no override, 0=straight, 1=curve, 2=radial */
2167
+ /** Corner rounding of `orthogonal` edges, 0..1 (read by GPUEdgeRenderer during update). */
2168
+ get edgeCornerRadius(): number;
2169
+ set edgeCornerRadius(radius: number);
2170
+ /**
2171
+ * Routing axis of `orthogonal` and `radial` edges: -1 = leave the renderer's
2172
+ * `radialAxis` config alone, 0 = auto, 1 = vertical, 2 = horizontal.
2173
+ */
2174
+ get edgeRoutingAxis(): number;
2175
+ set edgeRoutingAxis(axis: number);
2176
+ /** Default edge shape override: -1=no override, 0=straight, 1=curve, 2=radial, 3=orthogonal */
2105
2177
  get defaultEdgeShape(): number;
2106
2178
  set defaultEdgeShape(shape: number);
2107
2179
  get visualMapper(): VisualMapper;
@@ -2385,6 +2457,24 @@ declare class GraphStore {
2385
2457
  * Backs createNodeShaderLayer({ hideBuiltinNode: true }).
2386
2458
  */
2387
2459
  setNodeFillSuppressed(ids: string[], on: boolean): void;
2460
+ /**
2461
+ * Claim (or release, with `null`) the area a layer draws around its nodes,
2462
+ * so node labels sit outside it instead of on top of it. Called by layers,
2463
+ * not by applications: `createNodeShaderLayer`, `MediaLayer` and
2464
+ * `AudioSpectrumLayer` all report their own footprint.
2465
+ *
2466
+ * `owner` is any stable object (the layer instance). Each call replaces that
2467
+ * owner's whole map. Several owners on one node merge by taking the largest
2468
+ * extent per axis and per unit. Bumps {@link labelVersion} only when the
2469
+ * claim actually changed, so a layer may call this every frame.
2470
+ */
2471
+ setNodeLabelExtents(owner: object, extents: Map<string, NodeLabelExtent> | null): void;
2472
+ /**
2473
+ * The merged label footprint of a node, or `undefined` when no layer claimed
2474
+ * one (the label then clears the built-in node, as always). `nx`/`ny` are
2475
+ * half-extents in built-in node radii, `wx`/`wy` in world units.
2476
+ */
2477
+ getNodeLabelExtent(nodeId: string): ResolvedLabelExtent | undefined;
2388
2478
  /** >0 while VisualMapper is writing: setters then skip attributes the caller owns. */
2389
2479
  private _mapperDepth;
2390
2480
  /**
@@ -2505,6 +2595,10 @@ declare class GraphStore {
2505
2595
  * Set edge shape
2506
2596
  */
2507
2597
  setEdgeShape(edgeId: string, shape: EdgeShape): void;
2598
+ /**
2599
+ * Set the orthogonal bend of an edge. NaN = automatic. See `EdgeRenderState.bends`.
2600
+ */
2601
+ setEdgeBend(edgeId: string, bend: number): void;
2508
2602
  /**
2509
2603
  * Set edge dashed state
2510
2604
  */
@@ -3817,7 +3911,7 @@ interface GPUEdgeRendererConfig {
3817
3911
  /** Node size scale for edge boundary offset (converts node size to world units) */
3818
3912
  nodeSizeScale?: number;
3819
3913
  /** Default edge shape */
3820
- edgeShape?: "straight" | "curve" | "radial";
3914
+ edgeShape?: "straight" | "curve" | "radial" | "orthogonal";
3821
3915
  /** Radial routing axis */
3822
3916
  radialAxis?: "auto" | "vertical" | "horizontal";
3823
3917
  }
@@ -3873,6 +3967,21 @@ declare class GPUEdgeRenderer {
3873
3967
  private packLineSlot;
3874
3968
  /** Write every arrow-geometry attribute of edge slot `e`. */
3875
3969
  private packArrowSlot;
3970
+ /**
3971
+ * Write `controlOffset` of edge slot `e` (shared by the line and the arrow
3972
+ * geometry, which must agree or the arrowhead detaches from its line).
3973
+ * .x curvature (curve), bend (orthogonal)
3974
+ * .y plane rotation (3D curve), KV_ORTHO_EXPLICIT marker (orthogonal + bend)
3975
+ * .z shape id; -1 = the `defaultEdgeShape` uniform
3976
+ * Multi-edges with no shape of their own are forced to curve — except when
3977
+ * the default is orthogonal, where the curvature instead spreads the bends
3978
+ * so parallel edges get parallel tracks rather than one overdrawn line.
3979
+ */
3980
+ private packCtrl;
3981
+ /** Repack every slot's `controlOffset` (shape, bend or default shape changed). */
3982
+ private repackCtrl;
3983
+ /** Set the `defaultEdgeShape` uniform on both materials; repack when it changes. */
3984
+ private applyDefaultShape;
3876
3985
  /**
3877
3986
  * Create shader material for edges
3878
3987
  */
@@ -4020,7 +4129,9 @@ declare class GPUEdgeRenderer {
4020
4129
  /** Full dash pattern control - matches external callers that use setDashPattern() */
4021
4130
  setDashPattern(enabled: boolean, dashArray?: number, dashOffset?: number, dashRatio?: number): void;
4022
4131
  /** Set default edge shape */
4023
- setEdgeShape(shape: "straight" | "curve" | "radial"): void;
4132
+ setEdgeShape(shape: "straight" | "curve" | "radial" | "orthogonal"): void;
4133
+ /** Corner rounding of `orthogonal` edges: 0 = sharp, 1 = largest arc that fits. */
4134
+ setOrthoCornerRadius(radius: number): void;
4024
4135
  /** Set radial routing axis */
4025
4136
  setRadialAxis(axis: "auto" | "vertical" | "horizontal"): void;
4026
4137
  /** Set resolution explicitly — use container size, not window size */
@@ -6043,6 +6154,9 @@ declare class InteractionManager {
6043
6154
  private _autoRotateRafId;
6044
6155
  private _requestRender;
6045
6156
  private _suppressNextClick;
6157
+ /** Where the left button went down (client px), to tell a click from a pan. */
6158
+ private _pressAt;
6159
+ private _lastClickWasDrag;
6046
6160
  private _txCtx;
6047
6161
  private _modKeyHeld;
6048
6162
  private boundKeyDown;
@@ -6061,6 +6175,7 @@ declare class InteractionManager {
6061
6175
  private _rightDownPosition;
6062
6176
  private _rightDragDistance;
6063
6177
  private static RIGHT_CLICK_THRESHOLD;
6178
+ private static CLICK_MOVE_TOLERANCE;
6064
6179
  private _edgeCreatePending;
6065
6180
  private _edgeCreateSourceNodeId;
6066
6181
  private onClickCallbacks;
@@ -6131,6 +6246,12 @@ declare class InteractionManager {
6131
6246
  * Enable/disable globe mode for InteractionCoordinator
6132
6247
  */
6133
6248
  setGlobeMode(enabled: boolean): void;
6249
+ /**
6250
+ * True while the `onClick` callbacks of a click that ended a drag (the
6251
+ * pointer moved more than a few pixels between press and release, e.g. a
6252
+ * camera pan) are running. Read it inside an `onClick` callback.
6253
+ */
6254
+ get lastClickWasDrag(): boolean;
6134
6255
  onClick(callback: (result: AnyPickResult, event: MouseEvent) => void): () => void;
6135
6256
  onDblClick(callback: (result: AnyPickResult, event: MouseEvent) => void): () => void;
6136
6257
  onContextMenu(callback: (result: AnyPickResult, event: MouseEvent) => void): () => void;
@@ -6248,7 +6369,16 @@ interface GlyphEntry {
6248
6369
  /** LRU timestamp */
6249
6370
  lastUsed: number;
6250
6371
  }
6251
- type LabelPosition$1 = "left" | "right" | "top" | "bottom" | "topCenter" | "bottomCenter" | "vertical";
6372
+ /**
6373
+ * Where a label sits relative to its node. `"radial"` turns each label along
6374
+ * the ray from a centre (TextLayer `radialCenter`, default the middle of the
6375
+ * labelled nodes) so it reads outward, flipped on the left half so no label is
6376
+ * upside down: the placement radial trees and ego rings use.
6377
+ *
6378
+ * The one definition: TextCloud re-exports it. A second copy there had drifted
6379
+ * (the public type lacked "center").
6380
+ */
6381
+ type LabelPosition = "left" | "right" | "top" | "bottom" | "center" | "topCenter" | "bottomCenter" | "vertical" | "radial";
6252
6382
  type TextAlign = "left" | "center" | "right";
6253
6383
 
6254
6384
  /**
@@ -6262,10 +6392,6 @@ type TextAlign = "left" | "center" | "right";
6262
6392
  * Based on: web/react_views/graph_viz/clouds/TextCloud.js
6263
6393
  */
6264
6394
 
6265
- /**
6266
- * Label position options for node labels
6267
- */
6268
- type LabelPosition = "left" | "right" | "top" | "bottom" | "center" | "topCenter" | "bottomCenter" | "vertical";
6269
6395
  /**
6270
6396
  * MSDF Font data structure (kept for backward compatibility)
6271
6397
  */
@@ -6322,6 +6448,11 @@ interface BufferTextSource {
6322
6448
  hiddenResolver?: (index: number) => boolean;
6323
6449
  /** Return dim opacity for a node index (focusContext / click dim). Default: 1 */
6324
6450
  opacityResolver?: (index: number) => number;
6451
+ /**
6452
+ * Return the label footprint of a node index as `[nx, ny, wx, wy]` (see
6453
+ * {@link TextItem.extentX}), or null for the built-in node. Default: null.
6454
+ */
6455
+ extentResolver?: (index: number) => readonly [number, number, number, number] | null;
6325
6456
  }
6326
6457
  /**
6327
6458
  * Text item to render
@@ -6350,7 +6481,30 @@ interface TextItem {
6350
6481
  lineCount?: number;
6351
6482
  /** Per-item scale multiplier for multi-caption line sizing. Default: 1.0 */
6352
6483
  sizeScale?: number;
6484
+ /**
6485
+ * Half-width / half-height the label must clear, in built-in node radii.
6486
+ * Default 1: the built-in node. A layer drawing a 16:9 panel at 6x the node
6487
+ * size reports about (6, 3.4), and the label lands under the panel instead
6488
+ * of in its middle. Filled by TextLayer from `GraphStore.getNodeLabelExtent`.
6489
+ */
6490
+ extentX?: number;
6491
+ extentY?: number;
6492
+ /** Same, in world units, for world-sized drawings. Default 0. The larger of the two wins. */
6493
+ worldExtentX?: number;
6494
+ worldExtentY?: number;
6353
6495
  }
6496
+ /**
6497
+ * Radial placement for a label at (dx, dy) from the centre, given the per-axis
6498
+ * gaps from `labelGaps`. The text runs outward along the ray; on the left half
6499
+ * it is turned half a turn and right-aligned, so it still reads left to right
6500
+ * and still starts at the node and runs away from the centre. A label at the
6501
+ * centre itself falls back to plain `right` placement.
6502
+ */
6503
+ declare function radialLabelPlacement(dx: number, dy: number, gapX: number, gapY: number): {
6504
+ rotation: number;
6505
+ offsetX: number;
6506
+ textAlign: "left" | "right";
6507
+ };
6354
6508
  /**
6355
6509
  * TextCloud configuration options
6356
6510
  */
@@ -6405,12 +6559,23 @@ declare class TextCloud {
6405
6559
  private verticalAlign;
6406
6560
  /** When true, marginTop is applied to anchorY in world space (not as a rotated local offset) */
6407
6561
  private anchorYOffset;
6562
+ /** `position: "radial"` — each label is turned along the ray from the centre. */
6563
+ private radial;
6564
+ /** Fixed radial centre in scene space; null = the middle of the labelled nodes. */
6565
+ private radialCenter;
6408
6566
  constructor(store: GraphStore, scene: THREE.Object3D, camera: THREE.Camera, config?: TextCloudConfig, renderer?: THREE.WebGLRenderer);
6409
6567
  private getTextColor;
6410
6568
  /**
6411
6569
  * Set the label position relative to nodes
6412
6570
  */
6413
6571
  setLabelPosition(position: LabelPosition): void;
6572
+ /**
6573
+ * Centre that `"radial"` labels turn around, in scene space. Null (the
6574
+ * default) uses the middle of the bounding box of the labelled nodes.
6575
+ */
6576
+ setRadialCenter(center: readonly [number, number] | null): void;
6577
+ /** Middle of the bounding box of a set of points, or [0, 0] for none. */
6578
+ private boxCentre;
6414
6579
  /** Set font (no-op in TinySDF mode — kept for backward compat) */
6415
6580
  setFont(_font: MSDFFont, _texture: THREE.Texture): void;
6416
6581
  setScale(scale: number): void;
@@ -6424,6 +6589,8 @@ declare class TextCloud {
6424
6589
  setMaxLength(length: number): void;
6425
6590
  switchTheme(isDark?: boolean): void;
6426
6591
  setVisible(visible: boolean): void;
6592
+ /** Labels follow `map.maxNodeGrowth` (0.75 × it); see BatchTextRenderer.setMapMaxGrowth. */
6593
+ setMapMaxGrowth(nodeMaxGrowth: number): void;
6427
6594
  setMapMode(enabled: boolean, sphereRadius?: number, damping?: number): void;
6428
6595
  get visible(): boolean;
6429
6596
  /**
@@ -7295,6 +7462,44 @@ interface NodeInput {
7295
7462
  };
7296
7463
  }
7297
7464
 
7465
+ /**
7466
+ * The motion that makes a collect or an explode readable: the children fly
7467
+ * into their hub before they disappear, and fly back out of it when it is
7468
+ * exploded. Without it a collect looks like nodes being deleted and an
7469
+ * explode like nodes appearing from nowhere.
7470
+ *
7471
+ * Runs on the engine's {@link AnimationManager}, which the render loop ticks,
7472
+ * so it needs no timer of its own (see docs/no-timers-policy.md). Positions
7473
+ * are written with `store.setPositions`, which leaves pin state alone, so a
7474
+ * running force layout picks the children up where the motion leaves them.
7475
+ */
7476
+
7477
+ type Vec3 = [number, number, number];
7478
+ declare class CollectMotion {
7479
+ private readonly store;
7480
+ private readonly animations;
7481
+ readonly durationMs: number;
7482
+ private seq;
7483
+ private readonly running;
7484
+ constructor(store: GraphStore, animations: AnimationManager, durationMs?: number);
7485
+ /** Current positions of `ids` (those the store knows). */
7486
+ positionsOf(ids: readonly string[]): Map<string, Vec3>;
7487
+ /**
7488
+ * Fly `ids` into `hubId`. Resolves when they arrive, with the positions they
7489
+ * started from so the caller can put them back once they are hidden.
7490
+ */
7491
+ gather(hubId: string, ids: readonly string[]): Promise<Map<string, Vec3>>;
7492
+ /**
7493
+ * Fly `ids` out of `hubId` to `targets`. A child whose target sits on the
7494
+ * hub (never laid out, or gathered and not put back) gets a place on a ring
7495
+ * around it instead, so an explode always visibly opens up.
7496
+ */
7497
+ spread(hubId: string, ids: readonly string[], targets: Map<string, Vec3>): Promise<void>;
7498
+ private run;
7499
+ /** Finish every motion in flight (dispose). */
7500
+ finishAll(): void;
7501
+ }
7502
+
7298
7503
  type NodeFilter = string | string[] | {
7299
7504
  category: string;
7300
7505
  } | {
@@ -7712,43 +7917,82 @@ declare class NodesApi {
7712
7917
  * ```
7713
7918
  */
7714
7919
  unpinAll(): Promise<void>;
7920
+ private _motion;
7921
+ private _expandOnDoubleClick;
7715
7922
  /**
7716
- * Group child nodes under a parent (collection) node.
7923
+ * @internal Wired by `RenderEngineApi.wireInteraction` once a canvas drives
7924
+ * the frame loop; until then (and in tests) collect and explode are instant.
7925
+ */
7926
+ _wireCollectMotion(motion: CollectMotion | null): void;
7927
+ /**
7928
+ * Collect child nodes into a parent node.
7717
7929
  *
7718
- * The parent node must already exist. Recorded in history as `"CollectNodes"`.
7719
- * Emits `"collection:changed"` with `{ type: "collect", parentId }`.
7930
+ * The children fly into the parent and disappear with their edges. Their
7931
+ * links to the rest of the graph are drawn as one aggregated edge per
7932
+ * neighbour from the parent, and the parent shows that it holds them: a
7933
+ * "+N" badge with the number of collected nodes (and, on plain circular
7934
+ * nodes, the four-dot collection fill). Double-click the parent, or call
7935
+ * {@link explode}, to open it again.
7720
7936
  *
7721
- * Note: the parent is marked with a binary "collected" flag; the child count
7722
- * is no longer recorded on the parent (count rendering is retired in Phase 5).
7723
- * Use a Badge if you need to display the count.
7724
- * The children themselves are not reparented. Use `explode()` to revert the
7725
- * visual state.
7937
+ * Collecting into a node that is already a collection adds to it.
7938
+ * Recorded in history as `"CollectNodes"` (undo explodes it again).
7939
+ * Emits `"collection:changed"` with `{ type: "collect", parentId }`.
7726
7940
  *
7727
- * @param parentId - Id of the existing node that will act as the collection parent.
7728
- * @param childIds - Identifies the nodes to collect; accepts any {@link NodeSelector}.
7729
- * @returns Resolves once the collection has been applied and the event emitted.
7941
+ * @param parentId - Id of the existing node that will hold the children.
7942
+ * @param childIds - The nodes to collect; accepts any {@link NodeSelector}.
7943
+ * Unknown ids and the parent itself are ignored.
7944
+ * @param options - `animate: false` skips the gather motion.
7945
+ * @returns Resolves once the children are collected and the event emitted.
7946
+ * @throws When `parentId` is unknown or is itself inside a collection, or
7947
+ * when a child is already in, or holds, another collection.
7730
7948
  *
7731
7949
  * @example
7732
7950
  * ```ts
7733
- * await api.nodes.collect("parent1", ["child1", "child2"]);
7951
+ * await api.nodes.collect("hub", ["leaf1", "leaf2", "leaf3"]);
7952
+ * api.nodes.getCollected("hub"); // ["leaf1", "leaf2", "leaf3"]
7734
7953
  * ```
7735
7954
  */
7736
- collect(parentId: string, childIds: NodeSelector): Promise<void>;
7955
+ collect(parentId: string, childIds: NodeSelector, options?: {
7956
+ animate?: boolean;
7957
+ }): Promise<void>;
7737
7958
  /**
7738
- * Expand (explode) a collection node, releasing its children back to the graph.
7959
+ * Explode a collection: its children fly out of the parent and are shown
7960
+ * again with their edges, and the parent's badge and fill are removed.
7961
+ * No-op when `parentId` is not a collection.
7739
7962
  *
7740
- * Recorded in history as `"CollectNodes"` (with count = 0).
7963
+ * Recorded in history as `"ExplodeCollection"` (undo collects them again).
7741
7964
  * Emits `"collection:changed"` with `{ type: "explode", parentId }`.
7742
7965
  *
7743
7966
  * @param parentId - Id of the collection node to explode.
7744
- * @returns Resolves once the expansion has been applied and the event emitted.
7967
+ * @param options - `animate: false` skips the spread motion.
7968
+ * @returns Resolves once the children are back (after the motion).
7745
7969
  *
7746
7970
  * @example
7747
7971
  * ```ts
7748
- * await api.nodes.explode("parent1");
7972
+ * await api.nodes.explode("hub");
7749
7973
  * ```
7750
7974
  */
7751
- explode(parentId: string): Promise<void>;
7975
+ explode(parentId: string, options?: {
7976
+ animate?: boolean;
7977
+ }): Promise<void>;
7978
+ /**
7979
+ * Whether `nodeId` is a collection, i.e. currently holds collected nodes.
7980
+ * Not undoable (read-only).
7981
+ */
7982
+ isCollection(nodeId: string): boolean;
7983
+ /**
7984
+ * The nodes collected into `nodeId`, or `[]` when it is not a collection.
7985
+ * Not undoable (read-only).
7986
+ */
7987
+ getCollected(nodeId: string): string[];
7988
+ /**
7989
+ * Whether double-clicking a collection (or a collapsed group's node) opens
7990
+ * it. On by default.
7991
+ * Not undoable. Does not emit any event.
7992
+ */
7993
+ setExpandOnDoubleClick(enabled: boolean): void;
7994
+ /** See {@link setExpandOnDoubleClick}. */
7995
+ getExpandOnDoubleClick(): boolean;
7752
7996
  }
7753
7997
 
7754
7998
  interface EdgeInput {
@@ -8302,6 +8546,10 @@ type CubeOptions = CubeLayoutOptions;
8302
8546
  type SphereOptions = SphereLayoutOptions;
8303
8547
  type ScatterOptions = ScatterLayoutOptions;
8304
8548
  type EgoOptions = EgoLayoutOptions;
8549
+ type TreeOptions = TreeLayoutOptions;
8550
+ type RadialTreeOptions = RadialTreeLayoutOptions;
8551
+ type LayeredOptions = LayeredLayoutOptions;
8552
+ type ColumnsOptions = ColumnsLayoutOptions;
8305
8553
  /**
8306
8554
  * Arrange nodes in geometric patterns, apply spatial transforms, and read or
8307
8555
  * set individual node positions.
@@ -8375,7 +8623,7 @@ declare class LayoutApi {
8375
8623
  *
8376
8624
  * @example
8377
8625
  * ```ts
8378
- * await api.layout.circle(undefined, { radius: 200 });
8626
+ * await api.layout.circle(undefined, { radius: 5 }); // world units; default spaces nodes ~1 apart
8379
8627
  * ```
8380
8628
  */
8381
8629
  circle(nodeIds?: string[], options?: CircleOptions): Promise<void>;
@@ -8499,24 +8747,103 @@ declare class LayoutApi {
8499
8747
  * ```
8500
8748
  */
8501
8749
  ego(rootNodeIds?: string[], options?: EgoOptions): Promise<void>;
8750
+ /**
8751
+ * Tidy tree: parents centred over their children, one line per level,
8752
+ * subtrees never overlap. Roots default to the nodes nothing points at;
8753
+ * nodes the roots cannot reach start trees of their own (a forest).
8754
+ * Pairs with `api.style.setEdgeShape("orthogonal")` for org charts.
8755
+ *
8756
+ * Recorded in history as `"SetPositions"` or `"DragPositions"`.
8757
+ * Emits `"layout:start"` and `"layout:end"`.
8758
+ *
8759
+ * @param nodeIds - Subset of nodes to lay out; defaults to all nodes.
8760
+ * @param options - Roots, direction (`"TB"` default), gaps, relationship filter.
8761
+ * @returns Resolves when the layout (and any tween animation) completes.
8762
+ *
8763
+ * @example
8764
+ * ```ts
8765
+ * await api.layout.tree(undefined, { roots: ["ceo"], nodeGap: 26, levelGap: 70 });
8766
+ * await api.style.setEdgeShape("orthogonal");
8767
+ * ```
8768
+ */
8769
+ tree(nodeIds?: string[], options?: TreeOptions): Promise<void>;
8770
+ /**
8771
+ * The tidy tree in polar form: one root in the centre, each level a ring.
8772
+ *
8773
+ * Recorded in history as `"SetPositions"` or `"DragPositions"`.
8774
+ * Emits `"layout:start"` and `"layout:end"`.
8775
+ *
8776
+ * @param nodeIds - Subset of nodes to lay out; defaults to all nodes.
8777
+ * @param options - Roots, ring step, leaf gap, start angle and sweep (degrees).
8778
+ * @returns Resolves when the layout (and any tween animation) completes.
8779
+ *
8780
+ * @example
8781
+ * ```ts
8782
+ * await api.layout.radialTree(undefined, { roots: ["root"], sweep: 270 });
8783
+ * ```
8784
+ */
8785
+ radialTree(nodeIds?: string[], options?: RadialTreeOptions): Promise<void>;
8786
+ /**
8787
+ * Layered (Sugiyama) layout for directed graphs — data lineage, call
8788
+ * chains, workflows. Every edge runs from a lower level to a higher one;
8789
+ * crossings are reduced and long edges kept straight. Levels come from the
8790
+ * edges, or from a property with `rankBy`.
8791
+ *
8792
+ * Recorded in history as `"SetPositions"` or `"DragPositions"`.
8793
+ * Emits `"layout:start"` and `"layout:end"`.
8794
+ *
8795
+ * @param nodeIds - Subset of nodes to lay out; defaults to all nodes.
8796
+ * @param options - Direction, gaps, `rankBy` / `rankOrder`, relationship filter.
8797
+ * @returns Resolves when the layout (and any tween animation) completes.
8798
+ *
8799
+ * @example
8800
+ * ```ts
8801
+ * await api.layout.layered(undefined, { direction: "LR", rankBy: "stage" });
8802
+ * ```
8803
+ */
8804
+ layered(nodeIds?: string[], options?: LayeredOptions): Promise<void>;
8805
+ /**
8806
+ * One column per value of a property (`"category"` for the node category),
8807
+ * nodes stacked in each column and ordered to cross as little as possible.
8808
+ *
8809
+ * Recorded in history as `"SetPositions"` or `"DragPositions"`.
8810
+ * Emits `"layout:start"` and `"layout:end"`.
8811
+ *
8812
+ * @param nodeIds - Subset of nodes to lay out; defaults to all nodes.
8813
+ * @param options - `by` (required), column `order`, `sortBy`, direction (`"LR"` default), gaps.
8814
+ * @returns Resolves when the layout (and any tween animation) completes.
8815
+ * @throws if `options.by` is missing.
8816
+ *
8817
+ * @example
8818
+ * ```ts
8819
+ * await api.layout.columns(undefined, { by: "tier", order: ["edge", "service", "db"] });
8820
+ * ```
8821
+ */
8822
+ columns(nodeIds: string[] | undefined, options: ColumnsOptions): Promise<void>;
8502
8823
  /**
8503
8824
  * Apply a layout by registered name.
8504
8825
  *
8505
- * Built-in names (`"circle"`, `"grid"`, `"line"`, `"spiral"`, `"sphere"`,
8506
- * `"cube"`, `"scatter"`, `"ego"`) route to the typed methods; the shortcuts
8507
- * `"scale-spacing-up"` / `"scale-spacing-down"` scale current positions.
8508
- * Any other name is looked up in the engine's layout registry, so layouts
8509
- * added with {@link register} are applied the same way — recorded in undo
8510
- * history, animated by the tween, and bracketed by `"layout:start"` /
8826
+ * Eight names (`"circle"`, `"grid"`, `"line"`, `"spiral"`, `"sphere"`,
8827
+ * `"cube"`, `"scatter"`, `"ego"`) route to the typed methods with their
8828
+ * default options; the shortcuts `"scale-spacing-up"` / `"scale-spacing-down"`
8829
+ * scale current positions by 1.25 / 0.8. Any other name is looked up in the
8830
+ * engine's layout registry: the other built-ins (`"tree"`, `"radialTree"`,
8831
+ * `"layered"`, `"columns"`, the transforms `"rotate"`, `"scale"`, `"shift"`,
8832
+ * `"alignBy"`, and `"plotScatter"`, `"plotMultiCategoryScatter"`) and any
8833
+ * layout added with {@link register}. Either way the result is recorded in
8834
+ * undo history, animated by the tween, and bracketed by `"layout:start"` /
8511
8835
  * `"layout:end"`.
8512
8836
  *
8513
8837
  * @param name - A built-in name, a shortcut, or a registered `pack:name`.
8514
8838
  * @param nodeIds - Optional subset of node IDs to lay out.
8515
- * @param options - Passed to registered layouts as-is. Ignored by the
8516
- * built-in names and shortcuts, which use their defaults (call the typed
8517
- * method to pass options to those).
8839
+ * @param options - Passed as-is to every layout resolved through the
8840
+ * registry (including built-ins such as `"tree"` or `"columns"`). Ignored
8841
+ * only by the eight switch-routed names and the two shortcuts listed
8842
+ * above, which use their defaults (call the typed method to pass options
8843
+ * to those).
8518
8844
  * @throws if `name` is not registered. (Before M0 an unknown name was a
8519
- * silent no-op, which hid typos.)
8845
+ * silent no-op, which hid typos.) Also throws whatever the layout throws,
8846
+ * e.g. `"columns"` throws when `options.by` is missing.
8520
8847
  *
8521
8848
  * @example
8522
8849
  * ```ts
@@ -8542,7 +8869,7 @@ declare class LayoutApi {
8542
8869
  * ```
8543
8870
  */
8544
8871
  register<O = unknown>(name: string, fn: (ctx: LayoutContext, options?: O) => {
8545
- positions: Map<string, Vec3$1>;
8872
+ positions: Map<string, Vec3$2>;
8546
8873
  }, options?: {
8547
8874
  description?: string;
8548
8875
  replace?: boolean;
@@ -8608,7 +8935,7 @@ declare class LayoutApi {
8608
8935
  *
8609
8936
  * @example
8610
8937
  * ```ts
8611
- * await api.layout.shift({ x: 100, y: 0 });
8938
+ * await api.layout.shift({ x: 2, y: 0 }); // world units
8612
8939
  * ```
8613
8940
  */
8614
8941
  shift(offset: {
@@ -8668,8 +8995,8 @@ declare class LayoutApi {
8668
8995
  * @example
8669
8996
  * ```ts
8670
8997
  * api.layout.setPositions([
8671
- * { id: "s1", x: 0, y: 0 },
8672
- * { id: "s2", x: 100, y: 50, z: 10 },
8998
+ * { id: "s1", x: 0, y: 0 },
8999
+ * { id: "s2", x: 2, y: 1, z: 0.5 }, // world units
8673
9000
  * ]);
8674
9001
  * ```
8675
9002
  */
@@ -8801,6 +9128,13 @@ interface ApiStyleRule {
8801
9128
  * event individually; callers should listen for store-level change
8802
9129
  * notifications if needed.
8803
9130
  */
9131
+ /** Options of {@link StyleApi.setEdgeRouting}. */
9132
+ interface EdgeRoutingOptions {
9133
+ /** Routing axis of orthogonal (and radial) edges. */
9134
+ axis?: "auto" | "vertical" | "horizontal";
9135
+ /** Corner rounding 0..1 (0 = sharp). Default 0.35. */
9136
+ cornerRadius?: number;
9137
+ }
8804
9138
  declare class StyleApi {
8805
9139
  private store;
8806
9140
  private executor;
@@ -9458,12 +9792,13 @@ declare class StyleApi {
9458
9792
  * one undo step (commit `f150a9fea`). Does not emit `"style:changed"`.
9459
9793
  *
9460
9794
  * @param edgeIds - Ids of the edges to modify.
9461
- * @param shape - The edge shape to apply.
9795
+ * @param shape - The edge shape to apply: `"straight"`, `"curve"`,
9796
+ * `"radial"` or `"orthogonal"`. (Dashing is separate: see {@link setEdgeDashed}.)
9462
9797
  * @returns Resolves once all shape commands have been executed.
9463
9798
  *
9464
9799
  * @example
9465
9800
  * ```ts
9466
- * await api.style.setEdgeShapes(["e1", "e2"], "dashed");
9801
+ * await api.style.setEdgeShapes(["e1", "e2"], "curve");
9467
9802
  * ```
9468
9803
  */
9469
9804
  setEdgeShapes(edgeIds: string[], shape: EdgeShape): Promise<void>;
@@ -9483,6 +9818,49 @@ declare class StyleApi {
9483
9818
  * ```
9484
9819
  */
9485
9820
  setRelationshipShape(relationship: string, shape: EdgeShape): Promise<void>;
9821
+ /**
9822
+ * Place the middle leg of `orthogonal` edges.
9823
+ *
9824
+ * By default an orthogonal edge turns halfway between its ends (parallel
9825
+ * multi-edges are spread around halfway). A bend pins it instead:
9826
+ * - `0..1` — fraction of the source→target span along the routing axis;
9827
+ * - `< 0` — absolute world distance from the source, so every child edge
9828
+ * of one parent can share one bar height (`-30` = 30 units below/right of
9829
+ * the parent, clamped to the span);
9830
+ * - `null` — back to automatic.
9831
+ *
9832
+ * Edges that are not drawn orthogonal keep the value and ignore it. One
9833
+ * labeled transaction, one undo step. Does not emit `"style:changed"`.
9834
+ *
9835
+ * @param edgeIds - Ids of the edges to modify.
9836
+ * @param bend - Bend position, or `null` for automatic.
9837
+ * @returns Resolves once all bend commands have been executed.
9838
+ *
9839
+ * @example
9840
+ * ```ts
9841
+ * await api.style.setEdgeShape("orthogonal");
9842
+ * await api.style.setEdgeBends(childEdgeIds, -30); // one shared bar per parent
9843
+ * ```
9844
+ */
9845
+ setEdgeBends(edgeIds: string[], bend: number | null): Promise<void>;
9846
+ /**
9847
+ * Routing options of `orthogonal` edges (the axis is shared with `radial`).
9848
+ *
9849
+ * - `axis` — `"vertical"` for top-down trees, `"horizontal"` for left-to-right
9850
+ * flows, `"auto"` to pick per edge by the larger span.
9851
+ * - `cornerRadius` — 0 = sharp corners, 1 = the largest arc that fits;
9852
+ * default 0.35.
9853
+ *
9854
+ * Global render setting, not recorded in history. Does not emit `"style:changed"`.
9855
+ *
9856
+ * @param options - Fields to change; omitted fields keep their value.
9857
+ *
9858
+ * @example
9859
+ * ```ts
9860
+ * api.style.setEdgeRouting({ axis: "vertical", cornerRadius: 0.5 });
9861
+ * ```
9862
+ */
9863
+ setEdgeRouting(options: EdgeRoutingOptions): void;
9486
9864
  /**
9487
9865
  * Show or hide all nodes belonging to the given category.
9488
9866
  *
@@ -10950,8 +11328,9 @@ declare class FilterApi {
10950
11328
  onChange(cb: (result: FilterResult) => void): () => void;
10951
11329
  /**
10952
11330
  * Configure the fade animation that plays whenever filter visibility
10953
- * changes. Default is 300 ms (easeOutCubic). Pass `{ durationMs: 0 }`
10954
- * to disable the animation and snap instantly (legacy behaviour).
11331
+ * changes (easeOutCubic). Default is 0 ms: visibility snaps instantly
11332
+ * until you opt in with a positive `durationMs`. Pass `{ durationMs: 0 }`
11333
+ * to go back to the instant snap. Negative values are clamped to 0.
10955
11334
  *
10956
11335
  * @example
10957
11336
  * api.filter.setTransition({ durationMs: 500 });
@@ -11083,6 +11462,7 @@ declare class TimelineApi {
11083
11462
  private nextAnnId;
11084
11463
  private readonly rangeSubs;
11085
11464
  private readonly cursorSubs;
11465
+ private readonly playingSubs;
11086
11466
  constructor(store: GraphStore, filter: FilterApi);
11087
11467
  /** Set the binning source. Drops any active range filter (it may now target a different kind/property). */
11088
11468
  setSource(source: BinningSource): void;
@@ -11113,10 +11493,30 @@ declare class TimelineApi {
11113
11493
  * which would discard the user's adjusted range.
11114
11494
  */
11115
11495
  play(opts?: TimelinePlayOptions): void;
11496
+ /** `slide`: a fixed-width window moves across the domain. Sets the first window; the returned step advances it and returns false once done. */
11497
+ private slideStepper;
11498
+ /**
11499
+ * `expand`: the window's start stays put and its end sweeps forward to the
11500
+ * domain end, so the graph accumulates ("what was known by t"). It resumes
11501
+ * from the brushed end when there is one; when looping it restarts from an
11502
+ * empty window.
11503
+ * `shrink`: the window's end stays put and its start sweeps forward to it.
11504
+ * Before these were honoured, both silently fell back to `slide`.
11505
+ */
11506
+ private growStepper;
11116
11507
  /** Pause playback, keeping the current window position (call `play` again to resume). */
11117
11508
  pause(): void;
11118
11509
  /** Stop playback, keeping the current window (use `setRange(null)` to clear it). */
11119
11510
  stop(): void;
11511
+ /** Whether `play` is running. */
11512
+ isPlaying(): boolean;
11513
+ /**
11514
+ * Called with true when playback starts and false when it stops: on
11515
+ * `pause`/`stop`, or by itself at the end of a pass that does not loop.
11516
+ * Returns an unsubscribe function.
11517
+ */
11518
+ onPlayingChange(cb: (playing: boolean) => void): () => void;
11519
+ private clearTimer;
11120
11520
  private stopTimer;
11121
11521
  addAnnotation(a: {
11122
11522
  t: number;
@@ -11164,6 +11564,8 @@ declare class EffectManager {
11164
11564
  addEffect(effect: Effect): void;
11165
11565
  /** Remove and dispose an effect by id. */
11166
11566
  removeEffect(id: string): void;
11567
+ /** The running effect with this id, or null. */
11568
+ get(id: string): Effect | null;
11167
11569
  /** Whether any effects are currently active. */
11168
11570
  get hasActiveEffects(): boolean;
11169
11571
  /** Current cumulative time in seconds. */
@@ -11812,6 +12214,8 @@ declare class FocusContextEffect implements Effect {
11812
12214
  private pristineNodeOpacities;
11813
12215
  private pristineNodeSizes;
11814
12216
  private pristineEdgeOpacities;
12217
+ private baseline;
12218
+ private disposed;
11815
12219
  private targetNodeOpacities;
11816
12220
  private targetNodeSizes;
11817
12221
  private targetEdgeOpacities;
@@ -11888,6 +12292,11 @@ declare class EmphasisApi {
11888
12292
  private _clickDimEnabled;
11889
12293
  private _clickDimUnsub;
11890
12294
  private _clickDimAnchor;
12295
+ /** The focusContext effect click-dim owns; never one a layer or host started. */
12296
+ private _clickDimEffectId;
12297
+ private _restoreOnBackground;
12298
+ private _restoreUnsub;
12299
+ private _restoreListeners;
11891
12300
  constructor(store: GraphStore, effectManager: EffectManager, hoverEmphasis?: HoverEmphasisSource, interaction?: InteractionManager | null);
11892
12301
  /**
11893
12302
  * Wire (or rewire) the {@link InteractionManager}. Called by
@@ -11899,17 +12308,55 @@ declare class EmphasisApi {
11899
12308
  * @internal
11900
12309
  */
11901
12310
  wireInteraction(interaction: InteractionManager | null): void;
12311
+ /**
12312
+ * Put the graph back to its un-emphasised state: stop every emphasis effect
12313
+ * (focus+context dims, path and cascade highlights), clear the click-dim
12314
+ * anchor and any programmatic dim ({@link dimExcept}, {@link dimNeighborhood},
12315
+ * {@link setTraceDim}), and notify {@link onRestore} listeners. The built-in
12316
+ * effect layers (`PathHighlightLayer`, `FocusCalloutLayer`) listen and hide
12317
+ * their highlight and `dimOthers` dim until their input changes or a node or
12318
+ * edge is clicked.
12319
+ *
12320
+ * Clicking empty canvas calls this (see {@link setRestoreOnBackgroundClick}).
12321
+ * Selection is not touched; a background click already clears it.
12322
+ *
12323
+ * Not undoable. Not recorded in history. Idempotent.
12324
+ */
12325
+ restore(): void;
12326
+ /**
12327
+ * Run `callback` whenever {@link restore} runs (including the restore a
12328
+ * background click triggers). Use it to drop host-side focus state.
12329
+ *
12330
+ * @returns An unsubscribe function.
12331
+ */
12332
+ onRestore(callback: () => void): () => void;
12333
+ /**
12334
+ * Whether clicking empty canvas calls {@link restore}. Default `true`.
12335
+ * A click that ends a camera pan does not count.
12336
+ *
12337
+ * @param enabled - `false` to keep emphasis when the background is clicked.
12338
+ */
12339
+ setRestoreOnBackgroundClick(enabled: boolean): void;
12340
+ /** Returns whether a background click restores the un-emphasised graph. */
12341
+ isRestoreOnBackgroundClickEnabled(): boolean;
12342
+ private _installRestoreOnBackground;
11902
12343
  /**
11903
12344
  * Start a path highlight effect that sequentially illuminates nodes and edges along a path.
11904
12345
  *
11905
- * `path` should alternate node IDs and edge IDs in traversal order
11906
- * (e.g. `["n1", "e1", "n2", "e2", "n3"]`). The effect fades in each
11907
- * element one-by-one and self-terminates when the path is complete.
12346
+ * `path` is an ordered list of consecutive node IDs (e.g. `["n1", "n2", "n3"]`).
12347
+ * For each consecutive pair the edge is looked up with `getEdgesBetween`
12348
+ * (the first match is used); pairs with no connecting edge are skipped.
12349
+ * Each segment glows in turn, the wavefront node is recoloured and enlarged,
12350
+ * and after the last segment the final state is held for `holdDuration`
12351
+ * before the effect self-terminates and restores the original look.
11908
12352
  *
11909
12353
  * Not undoable. Not recorded in history.
11910
12354
  *
11911
- * @param path - Ordered array of alternating node and edge IDs.
11912
- * @param config - Optional {@link PathHighlightConfig} (stepDelay, color, fadeOut).
12355
+ * @param path - Ordered array of consecutive node IDs.
12356
+ * @param config - Optional {@link PathHighlightConfig}: `segmentDuration`
12357
+ * (ms per edge, default 300), `color` (default gold `[1, 0.8, 0]`),
12358
+ * `leaveTrail` (keep passed edges lit, default true), `holdDuration`
12359
+ * (ms, default 2000).
11913
12360
  * @returns An opaque effect ID; pass to {@link stop} to cancel mid-play.
11914
12361
  */
11915
12362
  pathHighlight(path: string[], config?: PathHighlightConfig): string;
@@ -11923,22 +12370,29 @@ declare class EmphasisApi {
11923
12370
  * Not undoable. Not recorded in history.
11924
12371
  *
11925
12372
  * @param sourceIds - One or more source node IDs from which the wave originates.
11926
- * @param config - Optional {@link CascadeHighlightConfig} (delay, maxHops, color, glowScale).
12373
+ * @param config - Optional {@link CascadeHighlightConfig}: `delayPerHop`
12374
+ * (ms, default 400), `maxHops` (default Infinity), `color` (default blue
12375
+ * `[0.2, 0.6, 1]`), `direction` (`"out" | "in" | "both"`, default "both"),
12376
+ * `wavefrontScale` (size boost for wavefront nodes, default 1.5).
11927
12377
  * @returns An opaque effect ID; pass to {@link stop} to cancel early.
11928
12378
  */
11929
12379
  cascadeHighlight(sourceIds: string | string[], config?: CascadeHighlightConfig): string;
11930
12380
  /**
11931
12381
  * Start a focus+context effect that highlights a subset of nodes and dims all others.
11932
12382
  *
11933
- * The focused nodes are rendered at full opacity; non-focused nodes and edges
11934
- * are dimmed to a configurable alpha. The effect persists until stopped.
12383
+ * Focused nodes keep their opacity and are enlarged by `focusScale`;
12384
+ * non-focused nodes are dimmed to `contextOpacity`, and every edge that does
12385
+ * not connect two focused nodes is dimmed to `contextEdgeOpacity`. Neighbours
12386
+ * are not added automatically. The effect persists until stopped.
11935
12387
  * To retarget an existing focus+context without a visual flicker, prefer
11936
12388
  * {@link retargetFocusContext}.
11937
12389
  *
11938
12390
  * Not undoable. Not recorded in history.
11939
12391
  *
11940
12392
  * @param nodeIds - One or more node IDs that form the focused subset.
11941
- * @param config - Optional {@link FocusContextConfig} (dimAlpha, includedNeighbors).
12393
+ * @param config - Optional {@link FocusContextConfig}: `contextOpacity`
12394
+ * (default 0.15), `contextEdgeOpacity` (default 0.08), `focusScale`
12395
+ * (default 1.3), `duration` (transition ms, default 500).
11942
12396
  * @returns An opaque effect ID; pass to {@link stop} to restore full opacity.
11943
12397
  */
11944
12398
  focusContext(nodeIds: string | string[], config?: FocusContextConfig): string;
@@ -11948,10 +12402,19 @@ declare class EmphasisApi {
11948
12402
  * causes (dispose restores pristine opacities before the new effect dims
11949
12403
  * them again, producing one render frame at full opacity).
11950
12404
  *
12405
+ * It retargets the first (oldest) running focusContext effect of ANY
12406
+ * owner: one started by {@link focusContext} from host code, by click-dim,
12407
+ * or by a layer such as PathHighlightLayer / FocusCalloutLayer through
12408
+ * `dimOthers`. It cannot tell them apart, so a host that mixes this method
12409
+ * with layer-driven dimming may move the layer's dim. Keep a single dim
12410
+ * source when using it.
12411
+ *
11951
12412
  * If no focusContext effect is currently active, this starts a new one
11952
12413
  * with the given config. If an effect is active, the nodeIds update is
11953
12414
  * in-place and the config argument is ignored (the running effect keeps
11954
12415
  * its original config).
12416
+ *
12417
+ * @returns The ID of the retargeted (or newly started) effect.
11955
12418
  */
11956
12419
  retargetFocusContext(nodeIds: string | string[], config?: FocusContextConfig): string;
11957
12420
  /**
@@ -12002,6 +12465,13 @@ declare class EmphasisApi {
12002
12465
  private _installClickDim;
12003
12466
  private _uninstallClickDim;
12004
12467
  private _onClickDim;
12468
+ /**
12469
+ * Point click-dim's own focusContext at `ids`, retargeting it in place (no
12470
+ * flicker) when it is still running. It must not grab a focusContext that a
12471
+ * layer or the host started: retargetFocusContext() takes the first one of
12472
+ * any owner, and clearing used to stopAll("focusContext"), wiping theirs.
12473
+ */
12474
+ private _focusClickDim;
12005
12475
  private _clearClickDim;
12006
12476
  /**
12007
12477
  * Set the opacity of dimmed nodes and edges during a PROGRAMMATIC dim
@@ -12118,8 +12588,10 @@ declare class EmphasisApi {
12118
12588
  edgeIds: string[];
12119
12589
  };
12120
12590
  /** Cancel any programmatic dim previously set via {@link dimExcept},
12121
- * {@link dimNeighborhood}, or {@link traceNeighbor}. Per-instance
12122
- * un-dim ramps fire smoothly. */
12591
+ * {@link dimNeighborhood} or {@link setTraceDim}. All three write the same
12592
+ * keep set, so this is equivalent to {@link clearTrace}.
12593
+ * ({@link traceNeighbor} is pure computation and sets no dim.)
12594
+ * Per-instance un-dim ramps fire smoothly. */
12123
12595
  clearDim(): void;
12124
12596
  /**
12125
12597
  * Apply trace-style dim: every node/edge outside the keep set fades
@@ -14737,6 +15209,9 @@ declare class MapApi {
14737
15209
  private _globeRadius;
14738
15210
  private _cameraZ;
14739
15211
  private _flyToCancel;
15212
+ private _pendingView;
15213
+ /** Options of the last applyGeoLayout call (mode aside), for reassertGeoLayout. Cleared by releaseGeoLayout. */
15214
+ private _lastGeoLayout;
14740
15215
  private _autoFitOff;
14741
15216
  private _autoFitDebounceId;
14742
15217
  private _autoFitDuration;
@@ -14825,6 +15300,22 @@ declare class MapApi {
14825
15300
  * @internal
14826
15301
  */
14827
15302
  wireScene(cloudScene: THREE.Group | null, camera: THREE.PerspectiveCamera | null): void;
15303
+ /**
15304
+ * Re-run the last {@link applyGeoLayout} call, with the same options, in
15305
+ * `mode`. The render loop calls this once the live layout's position buffer
15306
+ * is ready: the first projection often lands in a provider that a
15307
+ * force-layout controller replaces moments later, leaving the geo nodes
15308
+ * pinned at the new controller's seed positions. Re-running with a bare
15309
+ * `{ mode }` dropped the host's `geoMapping` (and pin options), so data
15310
+ * with non-standard lat/lng keys was never re-projected. With no earlier
15311
+ * call, applies `{ mode }`.
15312
+ *
15313
+ * @internal
15314
+ */
15315
+ reassertGeoLayout(mode: MapMode): ApplyGeoLayoutResult;
15316
+ /** Keep a view request until the map can apply it; a newer request replaces an older one. */
15317
+ private _deferView;
15318
+ private _flushPendingView;
14828
15319
  /**
14829
15320
  * Late-bind the active GlobeControl (spherical mode only).
14830
15321
  * Called from GlobeLayer when it activates/deactivates.
@@ -15037,6 +15528,10 @@ declare class MapApi {
15037
15528
  * For spherical mode: rotates the globe so the given position faces the camera.
15038
15529
  *
15039
15530
  * Uses a requestAnimationFrame smoothstep animation (duration=0 → instant).
15531
+ *
15532
+ * Called before the map is shown, the move waits for it: it runs when the
15533
+ * map is enabled (the returned promise resolves at once). A later
15534
+ * `flyTo` / `flyToBounds` replaces a waiting one.
15040
15535
  */
15041
15536
  flyTo(position: GeoPosition, options?: FlyToGeoOptions): Promise<void>;
15042
15537
  /**
@@ -15556,6 +16051,9 @@ declare class MapApi {
15556
16051
  * - Zero-area bbox → high zoom, clamped to a sensible maximum.
15557
16052
  * - Antimeridian-crossing bbox (east < west) → not supported in Phase 1.
15558
16053
  * Behavior may produce a wrong center but will not throw.
16054
+ *
16055
+ * Like {@link flyTo}, a call made before the map is shown waits for it (the
16056
+ * fit is computed now, from `options.mode` or planar, and applied then).
15559
16057
  */
15560
16058
  flyToBounds(bbox: GeoBounds, options?: FlyToBoundsOptions): Promise<void>;
15561
16059
  }
@@ -15975,6 +16473,20 @@ interface LayerContext {
15975
16473
  isMapMode: boolean;
15976
16474
  /** Current globe radius in scene units. `0` = flat/planar (no sphere). */
15977
16475
  sphereRadius: number;
16476
+ /**
16477
+ * The map-mode node sizing the built-in node shader uses, read live: the
16478
+ * `damping` exponent on inverse-zoom growth (0 = constant screen size,
16479
+ * 1 = full perspective) and the `maxGrowth` soft cap (`map.maxNodeGrowth`,
16480
+ * `Infinity` = no cap). A screen-sized layer that sits on nodes applies the
16481
+ * same curve while {@link isMapMode} is on, so it keeps its size relative to
16482
+ * the node at every zoom instead of growing with plain perspective.
16483
+ * Optional: hand-built contexts may omit it; layers then assume 0.3 and 4,
16484
+ * the engine defaults.
16485
+ */
16486
+ getMapNodeSizing?: () => {
16487
+ damping: number;
16488
+ maxGrowth: number;
16489
+ };
15978
16490
  /**
15979
16491
  * Compute a non-colliding `renderOrder` for one of the reserved bands.
15980
16492
  * See {@link renderOrderForSlot}.
@@ -16259,6 +16771,11 @@ interface EngineLayerHost {
16259
16771
  iconAtlasManager: IconAtlasManager | null;
16260
16772
  isMapMode: () => boolean;
16261
16773
  mapSphereRadius: () => number;
16774
+ /** Live map-mode node sizing; forwarded as `LayerContext.getMapNodeSizing`. */
16775
+ mapNodeSizing?: () => {
16776
+ damping: number;
16777
+ maxGrowth: number;
16778
+ };
16262
16779
  /**
16263
16780
  * Live accessor for the engine's node picking hook, or `null` when there is
16264
16781
  * no picker. Optional so an embedder can host layers without interaction.
@@ -16822,6 +17339,15 @@ declare class RenderEngineApi$1 {
16822
17339
  * that depend on interaction silently no-op.
16823
17340
  */
16824
17341
  wireInteraction(interaction: InteractionManager | null): void;
17342
+ /** Unsubscribe for the double-click-to-expand handler (see wireCollections). */
17343
+ private _collectDblClickUnsub;
17344
+ /**
17345
+ * Collections in a live canvas: collect / explode get their motion (the
17346
+ * render loop ticks it), and double-clicking a collection — or the node a
17347
+ * collapsed group stands on — opens it. Both go through the public API so
17348
+ * history and events are the same as for a call.
17349
+ */
17350
+ private wireCollections;
16825
17351
  /**
16826
17352
  * Late-bind the position source for camera `flyToAll` / `flyToNodes`.
16827
17353
  *
@@ -17364,6 +17890,20 @@ interface GraphContextValue {
17364
17890
  registerTextCloud: (kind: "node" | "edge", t: RuntimeTextCloud | null) => void;
17365
17891
  /** Register a per-frame update callback (for text layers that need view-dependent updates) */
17366
17892
  registerFrameCallback: (id: string, callback: (() => void) | null) => void;
17893
+ /**
17894
+ * The texture node positions are read from this frame, for layers whose
17895
+ * shaders look a node's position up by index (badges, tags). A GPU layout
17896
+ * provider hands out its own texture; a CPU one (both built-in force
17897
+ * layouts, d3 and WebGPU, and every static provider) has none, so this
17898
+ * returns the node renderer's CPU mirror of the positions instead. Null
17899
+ * before the node renderer has uploaded positions once. Read it every frame
17900
+ * (from a frame callback): the CPU mirror is reallocated when the node
17901
+ * count outgrows it.
17902
+ */
17903
+ getNodePositionTexture: () => {
17904
+ texture: THREE.Texture;
17905
+ textureSize: number;
17906
+ } | null;
17367
17907
  /** Register a callback invoked synchronously when map mode changes */
17368
17908
  registerMapModeCallback: (id: string, callback: ((enabled: boolean, sphereRadius?: number, damping?: number) => void) | null) => void;
17369
17909
  /** Whether map mode is active (inverse-zoom damping enabled) */
@@ -17537,7 +18077,13 @@ declare const DEFAULT_FORCE_LAYOUT_CONFIG: Omit<Required<ForceLayoutConfig>, "en
17537
18077
  * See SPEC `docs/superpowers/specs/2026-05-24-graphcanvas-map-prop-design.md`.
17538
18078
  */
17539
18079
  interface MapConfig {
17540
- /** Predefined tile provider key. Default: derived from theme (dark→cartoDark, light→cartoLight). */
18080
+ /**
18081
+ * Predefined tile provider key. Not derived from the theme. When unset, the
18082
+ * deprecated `mapProvider` prop is used if given, then a provider set via
18083
+ * `api.map`, then `tileUrl`; with none of those the map layers fall back to
18084
+ * `cartoDark` (planar, FlatLayer) or `cartoDarkNoLabels` (globe, GlobeLayer),
18085
+ * in light theme too.
18086
+ */
17541
18087
  tileProvider?: FreeProviderName | (string & {});
17542
18088
  /** Custom tile URL function `(x, y, level) => url`. Overridden by `tileProvider` if both set. */
17543
18089
  tileUrl?: TileUrlFn;
@@ -17549,9 +18095,20 @@ interface MapConfig {
17549
18095
  mapSize?: number;
17550
18096
  /** Globe radius in scene units. Default: 5. Used when `is3D=true`. */
17551
18097
  globeRadius?: number;
18098
+ /**
18099
+ * Globe only: how close the wheel can bring the camera to the ground, in
18100
+ * metres. Default 2 (street level, among the buildings). Past the tile
18101
+ * provider's `maxLevel` the deepest tiles are stretched, so the basemap
18102
+ * blurs while 3-D content stays sharp.
18103
+ */
18104
+ minAltitude?: number;
17552
18105
  /** Spherical-only: use Mercator projection. Default: true. */
17553
18106
  mercatorProjection?: boolean;
17554
- /** Auto-fit initial camera to nodes. Default: true. */
18107
+ /**
18108
+ * Auto-fit initial camera to nodes. Default: true. `false` also skips the
18109
+ * geoLayout's initial fit to the geo bounding box, so the host's own
18110
+ * opening `map.flyTo` is not replaced.
18111
+ */
17555
18112
  autoFit?: boolean;
17556
18113
  /** Show/hide the map without unmounting. Default: true. */
17557
18114
  visible?: boolean;
@@ -17563,8 +18120,9 @@ interface MapConfig {
17563
18120
  * clamp zoom-in node growth more tightly. Set `Infinity` to disable
17564
18121
  * the soft-cap entirely. Default: 4 (matches historical behavior).
17565
18122
  *
17566
- * Applied to nodes, badges, tags, and node picking — NOT to edges
17567
- * or arrows.
18123
+ * Applied to nodes, badges, tags, node picking and node-shader layers.
18124
+ * Node and edge labels cap at 0.75 × this value (3 at the default).
18125
+ * NOT applied to edges or arrows.
17568
18126
  *
17569
18127
  * Per-node `size` field is unchanged; size-by-property relative
17570
18128
  * ratios are preserved at every zoom level.
@@ -17578,9 +18136,10 @@ interface MapConfig {
17578
18136
  * - `false`: disable auto geoLayout; map is only background.
17579
18137
  * - object: override individual fields.
17580
18138
  *
17581
- * NOTE: requires `forceLayout` to be enabled on <GraphCanvas>, otherwise
17582
- * `positionProvider` is null and applyGeoLayout silently no-ops. A
17583
- * `console.error` will be logged if forceLayout is missing.
18139
+ * NOTE: needs a layout controller on <GraphCanvas> (the `forceLayout` prop
18140
+ * or a host-supplied `layoutController`), because that is what installs the
18141
+ * store's `positionProvider`. Without one, applyGeoLayout finds no provider
18142
+ * and returns without placing or pinning anything. Nothing is logged.
17584
18143
  */
17585
18144
  geoLayout?: boolean | {
17586
18145
  geoMapping?: GeoMappingSpec;
@@ -17899,10 +18458,13 @@ interface GraphRendererProps {
17899
18458
  */
17900
18459
  enableWebGPURenderPath?: boolean;
17901
18460
  /**
17902
- * Minimap configuration.
17903
- * - true: enable with default config
17904
- * - false/undefined: disable
17905
- * - object: enable with custom config (width, height, position, margin)
18461
+ * Minimap configuration. **On by default.**
18462
+ * - undefined / true: mount with the default config
18463
+ * - false: do not mount
18464
+ * - object: mount with custom config (width, height, position, margin)
18465
+ *
18466
+ * When mounted, it can still be hidden at runtime with
18467
+ * `api.renderer.setMinimapVisible(false)` (the toolbar uses this).
17906
18468
  *
17907
18469
  * @category Subsystem mount toggles
17908
18470
  */
@@ -17990,6 +18552,18 @@ interface GraphRendererProps {
17990
18552
  * @category Global visual scalars
17991
18553
  */
17992
18554
  clickDim?: boolean;
18555
+ /**
18556
+ * Clicking empty canvas puts the graph back to its un-emphasised state:
18557
+ * click-dim, `focusContext` dims, `dimOthers` of `PathHighlightLayer` /
18558
+ * `FocusCalloutLayer`, and `dimExcept` / trace dims are all cleared. A click
18559
+ * that ends a camera pan does not count. Default `true`. Equivalent to
18560
+ * `api.emphasis.setRestoreOnBackgroundClick(value)`; call
18561
+ * `api.emphasis.restore()` to do it from code, and
18562
+ * `api.emphasis.onRestore(cb)` to drop host-side focus state with it.
18563
+ *
18564
+ * @category Global visual scalars
18565
+ */
18566
+ restoreOnBackgroundClick?: boolean;
17993
18567
  /**
17994
18568
  * Fired when the user clicks a node.
17995
18569
  * Payload includes nodeId, canvas pixel position, world-space [x,y,z],
@@ -18097,8 +18671,12 @@ interface GraphRendererProps {
18097
18671
  */
18098
18672
  onError?: (err: Error, ctx: ErrorContext) => void;
18099
18673
  /**
18100
- * Fired once per batched graph mutation (`api.nodes.add`, `api.edges.add`,
18101
- * `api.data.setData`, etc.). Carries the input delta (what the host
18674
+ * Fired once per incremental graph mutation applied through the store's
18675
+ * delta path (`api.nodes.add` / `remove` / `update`, `api.edges.add` /
18676
+ * `remove` / `update`, transforms, algorithm write-backs, and their
18677
+ * undo/redo). A full data replacement (the `data` prop or
18678
+ * `GraphStore.setData`) does NOT fire it; listen for `graph:dataReset` on
18679
+ * `api.events` for that. Carries the input delta (what the host
18102
18680
  * requested) and the result (what the engine actually applied — may
18103
18681
  * differ when IDs collide or nodes were rejected).
18104
18682
  *
@@ -18123,13 +18701,13 @@ interface GraphRendererProps {
18123
18701
  */
18124
18702
  onLayoutEnd?: (info: LayoutEndInfo) => void;
18125
18703
  /**
18126
- * Fired on every layout tick during force simulation. `progress` is the
18127
- * engine's internal completion estimate (typically `1 - alpha` for
18128
- * force layouts, 0..1).
18704
+ * **Currently never fires.** The prop is subscribed to the `layout:tick`
18705
+ * event, but the engine does not emit `layout:tick` yet (LayoutEventBridge
18706
+ * only emits `layout:start` / `layout:end`), so this callback is inert.
18707
+ * Use {@link onLayoutStart} / {@link onLayoutEnd} for layout lifecycle.
18129
18708
  *
18130
- * Throttle in userland if you don't want per-frame updates. NOTE:
18131
- * `layout:tick` is not yet wired in the engine's LayoutEventBridge — the
18132
- * callback is bridged but inert until that emission lands.
18709
+ * Intended behaviour once wired: called on each force-simulation tick with
18710
+ * `progress` as a 0..1 completion estimate (e.g. `1 - alpha`).
18133
18711
  * @category Lifecycle / data callbacks
18134
18712
  */
18135
18713
  onLayoutProgress?: (info: {
@@ -18337,7 +18915,7 @@ interface EdgeProps {
18337
18915
  /** Maximum edge buffer size (pre-allocate for dynamic graphs) */
18338
18916
  maxEdges?: number;
18339
18917
  /** Default edge shape. Default: "straight" */
18340
- edgeShape?: "straight" | "curve" | "radial";
18918
+ edgeShape?: "straight" | "curve" | "radial" | "orthogonal";
18341
18919
  /** Radial routing axis. Default: "auto" */
18342
18920
  radialAxis?: "auto" | "vertical" | "horizontal";
18343
18921
  /** Edge visibility. Default: true */
@@ -18349,6 +18927,8 @@ interface CaptionProps {
18349
18927
  visible?: boolean;
18350
18928
  /** Label position relative to node. Default: "right" */
18351
18929
  position?: LabelPosition;
18930
+ /** Centre for `position: "radial"`: a node id or `[x, y]`. Default: middle of the labelled nodes. */
18931
+ radialCenter?: string | readonly [number, number];
18352
18932
  /** Text size multiplier. Default: 1.0 */
18353
18933
  scale?: number;
18354
18934
  /** Maximum text length before truncation. Default: 50 */
@@ -18549,7 +19129,7 @@ declare function useOptionalRenderEngineApi(): RenderEngineApi$1 | null;
18549
19129
  * Sets up Three.js scene, renderer, and camera.
18550
19130
  * Provides context for child components.
18551
19131
  */
18552
- declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, enableWebGPURenderPath, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, locale, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
19132
+ declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, enableWebGPURenderPath, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, locale, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, restoreOnBackgroundClick, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
18553
19133
 
18554
19134
  /** GraphCanvas — alias for GraphRenderer (used in new layer system API) */
18555
19135
  declare const GraphCanvas: typeof GraphRenderer;
@@ -18636,7 +19216,7 @@ interface EdgeCloudProps extends Partial<GPUEdgeRendererConfig> {
18636
19216
  /** Callback when renderer is ready */
18637
19217
  onReady?: (renderer: EdgeRendererBackend) => void;
18638
19218
  /** Default edge shape. Default: "straight" */
18639
- edgeShape?: "straight" | "curve" | "radial";
19219
+ edgeShape?: "straight" | "curve" | "radial" | "orthogonal";
18640
19220
  /** Radial routing axis. Default: "auto" */
18641
19221
  radialAxis?: "auto" | "vertical" | "horizontal";
18642
19222
  /** Line width scale factor. Default: 1.0 */
@@ -18692,7 +19272,12 @@ interface TextLayerProps {
18692
19272
  darkColor?: string | number;
18693
19273
  /** Auto-caption from node properties. Default: true */
18694
19274
  autoCaption?: boolean;
18695
- /** LOD distance threshold. Default: 4.0 */
19275
+ /**
19276
+ * LOD distance threshold. All labels are hidden once the camera is farther
19277
+ * than `5 × lodDistance` world units from the scene origin (not applied in
19278
+ * map mode). When unset, nothing is passed and TextCloud's default of 1.0
19279
+ * applies, i.e. labels disappear beyond 5 units.
19280
+ */
18696
19281
  lodDistance?: number;
18697
19282
  /** @deprecated Use `theme` prop or GraphCanvas `theme` instead */
18698
19283
  isDark?: boolean;
@@ -18708,6 +19293,13 @@ interface TextLayerProps {
18708
19293
  maxVisibleLabels?: number;
18709
19294
  /** Custom text item provider — overrides auto-generated labels */
18710
19295
  getTextItems?: (store: any, positionProvider: PositionProvider | null) => TextItem[];
19296
+ /**
19297
+ * Centre that `position="radial"` labels turn around: a node id (the
19298
+ * centre follows that node, e.g. the root of a radial tree, while it is
19299
+ * dragged) or a fixed `[x, y]` in graph space. Default: the middle of the
19300
+ * labelled nodes. Ignored for other positions.
19301
+ */
19302
+ radialCenter?: string | readonly [number, number];
18711
19303
  }
18712
19304
  /**
18713
19305
  * TextLayer component
@@ -18715,7 +19307,7 @@ interface TextLayerProps {
18715
19307
  * Renders node labels using TinySDF-based SDF text rendering.
18716
19308
  * All labels are drawn in a single draw call via BatchTextRenderer.
18717
19309
  */
18718
- declare function TextLayer({ position, scale, maxLength, color, lightColor, darkColor, autoCaption, lodDistance, isDark, theme: themeProp, visible, property, properties, maxVisibleLabels, getTextItems, textScale: textScaleProp, }: TextLayerProps): any;
19310
+ declare function TextLayer({ position, scale, maxLength, color, lightColor, darkColor, autoCaption, lodDistance, isDark, theme: themeProp, visible, property, properties, maxVisibleLabels, getTextItems, textScale: textScaleProp, radialCenter, }: TextLayerProps): any;
18719
19311
 
18720
19312
  /**
18721
19313
  * EdgeTextCloud - Edge label rendering using @mapbox/tiny-sdf
@@ -18737,6 +19329,12 @@ interface EdgeTextItem extends TextItem {
18737
19329
  curvature?: number;
18738
19330
  /** Node size hint — used to scale self-loop label offset */
18739
19331
  nodeSize?: number;
19332
+ /**
19333
+ * The route the edge renderer draws, when it is neither a straight line nor
19334
+ * the quadratic curve `curvature` describes (an `orthogonal` edge). The label
19335
+ * then sits at half the route's length, turned along the leg it lands on.
19336
+ */
19337
+ path?: THREE.Vector3[];
18740
19338
  }
18741
19339
  /**
18742
19340
  * EdgeTextCloud configuration options
@@ -18811,6 +19409,8 @@ declare class EdgeTextCloud {
18811
19409
  setNodeSizeScale(scale: number): void;
18812
19410
  switchTheme(isDark?: boolean): void;
18813
19411
  setVisible(visible: boolean): void;
19412
+ /** Labels follow `map.maxNodeGrowth` (0.75 × it); see BatchTextRenderer.setMapMaxGrowth. */
19413
+ setMapMaxGrowth(nodeMaxGrowth: number): void;
18814
19414
  setMapMode(enabled: boolean, sphereRadius?: number, damping?: number): void;
18815
19415
  /**
18816
19416
  * Hover-neighbor-highlight: dim or restore the label glyphs for an edge.
@@ -19014,6 +19614,14 @@ interface GlobeLayerProps {
19014
19614
  visible?: boolean;
19015
19615
  /** GlobeControl config overrides (rotation speed, zoom speed, zoom range) */
19016
19616
  controlConfig?: GlobeControlConfig;
19617
+ /**
19618
+ * How close the wheel can bring the camera to the ground, in metres.
19619
+ * Default 2: street level, down among the buildings. While the camera is
19620
+ * low (below about 6 km on the default globe) its near and far planes
19621
+ * follow the altitude, so nearby buildings are not cut away and depth
19622
+ * stays precise. `controlConfig.zoomMax` overrides this.
19623
+ */
19624
+ minAltitude?: number;
19017
19625
  /**
19018
19626
  * Render a soft fresnel atmosphere glow around the globe's silhouette.
19019
19627
  * Default: true.
@@ -19035,7 +19643,7 @@ interface GlobeLayerProps {
19035
19643
  current: number | null;
19036
19644
  };
19037
19645
  }
19038
- declare function GlobeLayer({ radius, tileUrl, tileProvider, minLevel, maxLevel, mercatorProjection, autoFit, visible, controlConfig, atmosphere, atmosphereColor, onReady, swapTokenRef, }: GlobeLayerProps): react_jsx_runtime.JSX.Element;
19646
+ declare function GlobeLayer({ radius, tileUrl, tileProvider, minLevel, maxLevel, mercatorProjection, autoFit, visible, controlConfig, atmosphere, atmosphereColor, onReady, swapTokenRef, minAltitude, }: GlobeLayerProps): react_jsx_runtime.JSX.Element;
19039
19647
 
19040
19648
  /**
19041
19649
  * SlippyMapFlat — Tiled raster map on a flat 2D plane (Web Mercator).
@@ -19375,6 +19983,14 @@ interface TimelineProps {
19375
19983
  height?: number;
19376
19984
  theme?: "dark" | "light";
19377
19985
  className?: string;
19986
+ /**
19987
+ * Show the source / time-field / bucket selectors. Default true. Pass false
19988
+ * when the host sets the source with `api.timeline.setSource` and readers
19989
+ * should not change it; Clear and Play stay.
19990
+ */
19991
+ controls?: boolean;
19992
+ /** Options for the Play button. Default `{ windowSize: 1, durationMs: 6000, loop: true }` (a sliding window). */
19993
+ playOptions?: TimelinePlayOptions;
19378
19994
  }
19379
19995
  /**
19380
19996
  * Graph-friendly timeline ("Time Bar").
@@ -19385,7 +20001,7 @@ interface TimelineProps {
19385
20001
  * Modeless — no range/point toggle. All visible strings are localized via the
19386
20002
  * single `locale` prop (en fallback).
19387
20003
  */
19388
- declare function Timeline({ api, locale, messages, height, theme, className, }: TimelineProps): React__default.ReactElement;
20004
+ declare function Timeline({ api, locale, messages, height, theme, className, controls, playOptions, }: TimelineProps): React__default.ReactElement;
19389
20005
 
19390
20006
  /**
19391
20007
  * Pure time ↔ pixel mapping for the timeline.
@@ -19503,6 +20119,18 @@ interface NodeShaderLayerSpec {
19503
20119
  prelude?: string;
19504
20120
  sdf: string;
19505
20121
  };
20122
+ /**
20123
+ * What node labels must keep clear of, so a `<TextLayer>` puts the caption
20124
+ * under the panel you see rather than across it, and keeps it there while
20125
+ * the node is dragged. Half-width and half-height as fractions of the quad
20126
+ * (`[1, 1]` = the whole billboard; a 16:9 picture in it is `[1, 0.5625]`).
20127
+ *
20128
+ * - `"auto"` (default) — the whole quad when the layer replaces or
20129
+ * enlarges the node (`hideBuiltinNode` or a `hitArea`), else nothing.
20130
+ * - `"none"` — labels ignore this layer.
20131
+ * - `[x, y]` — an explicit footprint, for a drawing smaller than its quad.
20132
+ */
20133
+ labelExtent?: "auto" | "none" | readonly [number, number];
19506
20134
  }
19507
20135
  /** Map a runtime uniform value to its GLSL declaration type. Throws on unsupported shapes. */
19508
20136
  declare function uniformGlslType(v: UniformValue): string;
@@ -19674,6 +20302,11 @@ interface ResolvedMediaStyle {
19674
20302
  border: number;
19675
20303
  effects: MediaEffects;
19676
20304
  animate: boolean;
20305
+ /**
20306
+ * Draw a play glyph over the panel while `uPaused` is `1`. Off by default:
20307
+ * the code is not emitted, and the uniform is not referenced.
20308
+ */
20309
+ playBadge?: boolean;
19677
20310
  }
19678
20311
  /** True when any effect in `style` needs `uTime`. */
19679
20312
  declare function mediaNeedsTime(e: MediaEffects): boolean;
@@ -19694,6 +20327,15 @@ declare function buildMediaHitMask(style: ResolvedMediaStyle): {
19694
20327
  prelude: string;
19695
20328
  sdf: string;
19696
20329
  };
20330
+ /**
20331
+ * Where a node-sized opaque panel (a photo, a video, a card) sits in the
20332
+ * overlay band by default. A panel IS the node's body, so the effects drawn
20333
+ * around nodes and along edges — NodeEffectLayer halos (offset 4), EdgeFlowLayer
20334
+ * (6), markers (5–6), PathHighlightLayer (11) — belong under it, the way the
20335
+ * built-in edges run under the built-in node dots. At offset 0 a highlighted
20336
+ * path or a ripple was drawn straight across the photo it ends at.
20337
+ */
20338
+ declare const PANEL_BAND_OFFSET = 20;
19697
20339
 
19698
20340
  /**
19699
20341
  * MediaAtlas — a fixed-cell CPU atlas for per-node still images.
@@ -19866,8 +20508,41 @@ interface MediaCrop {
19866
20508
  /** Fraction of the frame height shown. `1` = whole frame. Default `1`. */
19867
20509
  zoom?: number;
19868
20510
  }
19869
- interface MediaVideoSpec {
20511
+ /** Playback change of one video, reported by {@link MediaVideoSpec.onPlayingChange}. */
20512
+ interface MediaPlaybackEvent {
19870
20513
  url: string;
20514
+ playing: boolean;
20515
+ /** The shared decode, for seek / mute / volume. */
20516
+ source: MediaVideoSource;
20517
+ }
20518
+ interface MediaVideoSpec {
20519
+ /**
20520
+ * The video to show. A STRING is one feed for every targeted node. A FUNCTION
20521
+ * picks a URL per node, so a graph of monitors can each play a different
20522
+ * clip: nodes returning the same URL share one decode, and each distinct URL
20523
+ * costs one `<video>` and one draw call. Return `null` to leave a node
20524
+ * without video. Resolved when the layer mounts and again on every
20525
+ * `revision` bump.
20526
+ */
20527
+ url: string | ((node: NodeData, index: number) => string | null | undefined);
20528
+ /**
20529
+ * Click a video panel to play it, click again to pause it. Default `false`.
20530
+ * Starts the videos paused (see `autoplay`) and shows a play glyph on paused
20531
+ * panels (see `playBadge`). The click is picked on the canvas, so the panel
20532
+ * needs `clickable` (on by default).
20533
+ */
20534
+ playOnClick?: boolean;
20535
+ /**
20536
+ * Second (in the clip) of the frame a video shows before it is played, so a
20537
+ * paused panel is a thumbnail rather than a black first frame. A number for
20538
+ * every video or a function per node. Only applies to videos that do not
20539
+ * start playing by themselves.
20540
+ */
20541
+ posterTime?: number | ((node: NodeData, index: number) => number | null | undefined);
20542
+ /** Draw a play glyph over paused panels. Default: the value of `playOnClick`. */
20543
+ playBadge?: boolean;
20544
+ /** Called when a video starts or stops playing, however that happened. */
20545
+ onPlayingChange?: (event: MediaPlaybackEvent) => void;
19871
20546
  /**
19872
20547
  * Which nodes show the feed, and what each one shows. Return `null` to leave
19873
20548
  * a node without video. Omit it and every node the layer targets shows the
@@ -19876,6 +20551,7 @@ interface MediaVideoSpec {
19876
20551
  crop?: (node: NodeData, index: number) => MediaCrop | null | undefined;
19877
20552
  muted?: boolean;
19878
20553
  loop?: boolean;
20554
+ /** Default `true`, or `false` when `playOnClick` is on. */
19879
20555
  autoplay?: boolean;
19880
20556
  playbackRate?: number;
19881
20557
  crossOrigin?: string | null;
@@ -19936,6 +20612,8 @@ interface MediaLayerSpec {
19936
20612
  /** Hide the built-in node dot under the panel. Default `true`. */
19937
20613
  hideBuiltinNode?: boolean;
19938
20614
  band?: "underlay" | "overlay" | "top";
20615
+ /** Offset inside the band. Default {@link PANEL_BAND_OFFSET}: above the
20616
+ * edge and halo effects, which then run under the panel, not across it. */
19939
20617
  bandOffset?: number;
19940
20618
  /** Max nodes the layer draws. Default 256. */
19941
20619
  maxNodes?: number;
@@ -19950,7 +20628,25 @@ interface MediaLayerSpec {
19950
20628
  * mute or seek control — or to feed the same audio to an
19951
20629
  * `AudioSpectrumLayer` instead of decoding the stream a second time.
19952
20630
  */
19953
- onVideoSource?: (source: MediaVideoSource) => void;
20631
+ onVideoSource?: (source: MediaVideoSource, info: {
20632
+ url: string;
20633
+ }) => void;
20634
+ }
20635
+ /**
20636
+ * Playback control of a mounted {@link MediaLayer}. Every method takes a node
20637
+ * id and acts on the video that node shows; nodes without video are ignored.
20638
+ */
20639
+ interface MediaLayerHandle {
20640
+ /** Play when paused, pause when playing. Returns `false` for a non-video node. */
20641
+ togglePlayback(nodeId: string): boolean;
20642
+ play(nodeId: string): boolean;
20643
+ pause(nodeId: string): boolean;
20644
+ /** Pause every video of this layer. */
20645
+ pauseAll(): void;
20646
+ /** Whether the node's video is playing right now. */
20647
+ isPlaying(nodeId: string): boolean;
20648
+ /** The shared decode of the node's video, or `null`. */
20649
+ sourceOf(nodeId: string): MediaVideoSource | null;
19954
20650
  }
19955
20651
  /** Runtime-tunable parameters. Everything else is fixed at mount. */
19956
20652
  interface MediaLayerConfig {
@@ -19980,14 +20676,161 @@ declare function videoTileFor(crop: MediaCrop | null | undefined, videoAspect: n
19980
20676
  * `api.layers.mount(name, () => createMediaLayer(spec), config, { frame: true })`
19981
20677
  * — `{ frame: true }` is REQUIRED, or the layer never leaves `drawRange(0, 0)`.
19982
20678
  */
19983
- declare function createMediaLayer(spec: MediaLayerSpec): LayerRenderer<MediaLayerConfig>;
20679
+ declare function createMediaLayer(spec: MediaLayerSpec): LayerRenderer<MediaLayerConfig> & MediaLayerHandle;
19984
20680
  interface MediaLayerProps extends MediaLayerSpec, MediaLayerConfig {
19985
20681
  /** Distinct name per mounted MediaLayer. Default `"media-layer"`. */
19986
20682
  name?: string;
20683
+ /** Receives the playback controller once mounted (`null` after unmount). */
20684
+ controlRef?: React__default.MutableRefObject<MediaLayerHandle | null>;
19987
20685
  }
19988
20686
  /** React wrapper. Structural props are read once per mount; see {@link MediaLayerConfig}. */
19989
20687
  declare function MediaLayer(props: MediaLayerProps): null;
19990
20688
 
20689
+ /**
20690
+ * Loading and slicing 3D models for {@link ModelLayer}.
20691
+ *
20692
+ * A model is loaded once per URL (per loader) and shared by every node that
20693
+ * shows it or a part of it. What a node gets is a {@link PartTemplate}: the
20694
+ * part's meshes with their transforms baked relative to the model root,
20695
+ * rotated into graph space and, by default, re-centred so the part's bounding
20696
+ * box centre sits on the node. Geometry and textures stay shared; only the
20697
+ * materials are cloned per node (dimming and tinting are per node).
20698
+ *
20699
+ * Parts. A glTF node is a part. `part` names one, and the node then shows that
20700
+ * part's own meshes and NOT its child nodes: a wheel assembly node does not
20701
+ * redraw the rim, tyre and brake that are nodes of their own. Pass
20702
+ * `children: true` to take the whole subtree instead. The boundary is the
20703
+ * `kvModelNode` flag the default loader sets on every object that came from a
20704
+ * glTF node; a custom loader that sets no flags gets the whole subtree.
20705
+ *
20706
+ * Unnamed glTF nodes are named `<parent>#<index in parent>` so every part can
20707
+ * be addressed (a tyre with no name in the file becomes `WheelFrontL#3`).
20708
+ */
20709
+
20710
+ /** Loads a model file. The default handles glTF / GLB, Meshopt-compressed or not. */
20711
+ type ModelLoader = (url: string) => Promise<THREE.Object3D>;
20712
+ /** A model, or one part of it, by URL. */
20713
+ interface ModelPartRef {
20714
+ url: string;
20715
+ /** Name of the glTF node to show. Omit for the whole model. */
20716
+ part?: string;
20717
+ /** Include the part's child nodes too. Default false (whole model: true). */
20718
+ children?: boolean;
20719
+ }
20720
+ /** What a node shows: a URL (whole model), a part of a model, or a ready object. */
20721
+ type ModelSource = string | ModelPartRef | THREE.Object3D;
20722
+ /** userData flag: this object is a glTF node, so a part boundary. */
20723
+ declare const MODEL_NODE_FLAG = "kvModelNode";
20724
+ /** One glTF node of a model, as {@link loadModelParts} lists it. */
20725
+ interface ModelPart {
20726
+ name: string;
20727
+ /** Nearest ancestor that is a part, or null at the top. */
20728
+ parent: string | null;
20729
+ /** Child parts, in file order. */
20730
+ children: string[];
20731
+ /** Whether the part has meshes of its own (an assembly node may have none). */
20732
+ hasGeometry: boolean;
20733
+ /** Bounding-box centre of its own meshes, rotated, in model units. For a
20734
+ * part without geometry: the centre of its subtree. */
20735
+ center: [number, number, number];
20736
+ /** Half the bounding-box diagonal of its own meshes (subtree if none). */
20737
+ radius: number;
20738
+ /** Triangles in its own meshes. */
20739
+ triangles: number;
20740
+ /** Names of the materials its own meshes use. */
20741
+ materials: string[];
20742
+ }
20743
+ type Rotation = readonly [number, number, number];
20744
+ /**
20745
+ * The model at `url`, loaded once and shared. A failed load is dropped from the
20746
+ * cache so a later request tries again.
20747
+ */
20748
+ declare function loadModel(url: string, loader?: ModelLoader): Promise<THREE.Object3D>;
20749
+ /**
20750
+ * List every part (glTF node) of the model at `url`, with where it sits in the
20751
+ * assembled model. Build a graph from it, and place each part node at
20752
+ * `center × scale` to show the model assembled.
20753
+ */
20754
+ declare function loadModelParts(url: string, opts?: {
20755
+ rotation?: Rotation;
20756
+ loader?: ModelLoader;
20757
+ }): Promise<ModelPart[]>;
20758
+
20759
+ type PerNode<T> = T | ((node: NodeData, index: number) => T);
20760
+ interface ModelLayerSpec {
20761
+ /** What each node shows; null or undefined leaves the node as it is. */
20762
+ model: (node: NodeData, index: number) => ModelSource | null | undefined;
20763
+ /**
20764
+ * Model units to graph units. Default 1. Keep one scale for every part of a
20765
+ * model and the parts fit together when their nodes sit at the assembled
20766
+ * positions.
20767
+ */
20768
+ scale?: PerNode<number>;
20769
+ /**
20770
+ * Fit the model to a size instead: its bounding radius becomes this many
20771
+ * graph units. Return null to fall back to `scale` for that node.
20772
+ */
20773
+ size?: (node: NodeData, index: number) => number | null | undefined;
20774
+ /** Euler rotation [x, y, z] in radians applied to every model, e.g. to turn a Y-up file Z-up. */
20775
+ rotation?: Rotation;
20776
+ /** What sits on the node: the model's bounding-box centre (default) or its own origin. */
20777
+ anchor?: "center" | "origin";
20778
+ /**
20779
+ * Turn about the graph's vertical axis, radians per second. Default 0. Set
20780
+ * back to 0, a model eases back to face front over `transition`.
20781
+ */
20782
+ spin?: PerNode<number>;
20783
+ /** Glow colour for a node, or null for none. Fades in and out over `transition`. */
20784
+ tint?: (node: NodeData, index: number) => THREE.ColorRepresentation | null | undefined;
20785
+ /** Pulses per second for tinted nodes; 0 (default) holds the glow steady. */
20786
+ tintPulse?: number;
20787
+ /** Seconds to ease a change of scale, size or tint. Default 0.5; 0 snaps. */
20788
+ transition?: number;
20789
+ /** Stop drawing the built-in dot under a model. Default true. */
20790
+ hideBuiltinNode?: boolean;
20791
+ /** Make the model's surface the node's hitbox. Default true. */
20792
+ hitArea?: boolean;
20793
+ /** Fade with focus dimming and the node's opacity. Default true. */
20794
+ followDim?: boolean;
20795
+ /** Add the layer's lights. Default true. */
20796
+ lights?: boolean;
20797
+ /** Give materials a room environment map (WebGL). Default true. */
20798
+ environment?: boolean;
20799
+ /**
20800
+ * `"fit"` (default): depth spans just the models, see the file header.
20801
+ * `"camera"`: the camera's own near / far, for models that must depth-test
20802
+ * against other depth-writing layers.
20803
+ */
20804
+ depthRange?: "fit" | "camera";
20805
+ /** Load model files with this instead of the built-in glTF loader. */
20806
+ loader?: ModelLoader;
20807
+ /** A model file finished loading. */
20808
+ onLoad?: (url: string) => void;
20809
+ /** A model file failed to load or the part was not in it. */
20810
+ onError?: (url: string, error: unknown) => void;
20811
+ }
20812
+ /** The handle `createModelLayer` returns, for state outside the layer. */
20813
+ interface ModelLayerHandle {
20814
+ /** Ids of nodes whose model is loaded and drawn. */
20815
+ readyIds(): string[];
20816
+ }
20817
+ /**
20818
+ * Build a model layer. Mount it with
20819
+ * `api.layers.mount(name, () => createModelLayer(spec), {}, { frame: true })`.
20820
+ * `update(patch)` swaps any spec field; per-node functions are re-read then.
20821
+ */
20822
+ declare function createModelLayer(spec: ModelLayerSpec): LayerRenderer<Partial<ModelLayerSpec>> & ModelLayerHandle;
20823
+ interface ModelLayerProps extends ModelLayerSpec {
20824
+ /** Distinct name per mounted ModelLayer. Default `"model-layer"`. */
20825
+ name?: string;
20826
+ }
20827
+ /**
20828
+ * React wrapper. Every prop is live: a new `size`, `tint` or `model` function
20829
+ * re-evaluates the nodes on the next frame; models whose source did not change
20830
+ * are kept, so changing `size` eases the models to their new size.
20831
+ */
20832
+ declare function ModelLayer(props: ModelLayerProps): null;
20833
+
19991
20834
  /**
19992
20835
  * AudioSpectrumLayer — audio on nodes, by parameter.
19993
20836
  *
@@ -20333,6 +21176,7 @@ interface NodeCardLayerSpec {
20333
21176
  /** Hide the built-in node dot under the card. Default `true`. */
20334
21177
  hideBuiltinNode?: boolean;
20335
21178
  band?: "underlay" | "overlay" | "top";
21179
+ /** Offset inside the band. Default {@link PANEL_BAND_OFFSET}, as for MediaLayer. */
20336
21180
  bandOffset?: number;
20337
21181
  /** Max nodes the layer draws. Default 64. */
20338
21182
  maxNodes?: number;
@@ -20379,6 +21223,180 @@ interface NodeCardLayerProps extends NodeCardLayerSpec, NodeCardLayerConfig {
20379
21223
  /** React wrapper. Structural props are read once per mount; see {@link NodeCardLayerConfig}. */
20380
21224
  declare function NodeCardLayer(props: NodeCardLayerProps): null;
20381
21225
 
21226
+ /**
21227
+ * BuildingsLayer — extruded building footprints on the map.
21228
+ *
21229
+ * Street-scale questions ("could that camera see the corner?", "which side of
21230
+ * the street?") need the city's volume, not only its plan. This layer takes
21231
+ * building footprints as GeoJSON (Polygon / MultiPolygon, `[lng, lat]`, as
21232
+ * OpenStreetMap exports give them) and draws each as a prism from its base to
21233
+ * its height, shaded by wall direction so blocks read as solids, with a thin
21234
+ * roof outline.
21235
+ *
21236
+ * It works on both maps: footprints are placed with `api.map.latLngToWorld`
21237
+ * and heights scaled with `api.map.groundKmToWorld`, around a local origin at
21238
+ * the data's centre (so a few-hundred-metre district keeps float32 precision
21239
+ * on a globe of radius 5). "Up" is the map's own surface normal there. The
21240
+ * layer re-projects when the map is enabled or changes projection, and draws
21241
+ * nothing while no map is shown.
21242
+ *
21243
+ * Seen straight down, buildings are only roofs: tilt the view
21244
+ * (`api.map.setPitch`) to see them stand.
21245
+ *
21246
+ * ```tsx
21247
+ * <GraphCanvas map={{}} is3D nodeCloud>
21248
+ * <BuildingsLayer data={featureCollection} />
21249
+ * </GraphCanvas>
21250
+ * ```
21251
+ */
21252
+
21253
+ type Ring = ReadonlyArray<readonly number[]>;
21254
+ /** One footprint. Coordinates are GeoJSON order, `[lng, lat]`. Holes (inner rings) are kept. */
21255
+ interface BuildingFeature {
21256
+ geometry: {
21257
+ type: "Polygon";
21258
+ coordinates: ReadonlyArray<Ring>;
21259
+ } | {
21260
+ type: "MultiPolygon";
21261
+ coordinates: ReadonlyArray<ReadonlyArray<Ring>>;
21262
+ } | {
21263
+ type: string;
21264
+ coordinates?: unknown;
21265
+ } | null;
21266
+ properties?: Record<string, unknown> | null;
21267
+ }
21268
+ /** A GeoJSON FeatureCollection of footprints. Other geometry types are skipped. */
21269
+ interface BuildingsData {
21270
+ features: ReadonlyArray<BuildingFeature>;
21271
+ }
21272
+ /** How the builder places points: the map's projection, as `api.map` gives it. */
21273
+ interface GeoProjector {
21274
+ toWorld(lat: number, lng: number): {
21275
+ x: number;
21276
+ y: number;
21277
+ z: number;
21278
+ };
21279
+ /** World units for `meters` of ground distance at `lat`. */
21280
+ metersToWorld(meters: number, lat: number): number;
21281
+ }
21282
+ interface BuildingStyle {
21283
+ /** Feature property with the height in metres. Default `"height"`. */
21284
+ heightProperty?: string;
21285
+ /** Feature property with the base height in metres (OSM `min_height`). Default `"minHeight"`. */
21286
+ baseProperty?: string;
21287
+ /** Height for a feature without one, in metres. Default 10. */
21288
+ defaultHeight?: number;
21289
+ /** Vertical exaggeration. Default 1. */
21290
+ heightScale?: number;
21291
+ /** Wall colour. Default `"#5b6b80"`. */
21292
+ color?: THREE.ColorRepresentation;
21293
+ /** Roof colour. Default: the wall colour, lighter. */
21294
+ roofColor?: THREE.ColorRepresentation;
21295
+ /**
21296
+ * Feature property with the number of storeys above ground (OSM
21297
+ * `building:levels`). Default `"levels"`. Only buildings that have it get
21298
+ * floor lines; none are made up for the rest.
21299
+ */
21300
+ levelsProperty?: string;
21301
+ }
21302
+ /** Built geometry, relative to `origin` (world units). */
21303
+ interface BuildingGeometry {
21304
+ origin: [number, number, number];
21305
+ /** Triangles, 3 floats per vertex. */
21306
+ positions: Float32Array;
21307
+ /** RGB per vertex. */
21308
+ colors: Float32Array;
21309
+ /** Roof outline as line segments, 3 floats per vertex. */
21310
+ outline: Float32Array;
21311
+ /** Floor lines: the outer ring at every storey between base and roof, as line segments. */
21312
+ floors: Float32Array;
21313
+ /** Footprints drawn. */
21314
+ count: number;
21315
+ /** One entry per feature drawn, in drawing order: what a cutaway needs. */
21316
+ features: BuildingFootprint[];
21317
+ /** The local metres frame the footprints are in: see {@link BuildingGeometry.features}. */
21318
+ frame: {
21319
+ lat0: number;
21320
+ lng0: number;
21321
+ kx: number;
21322
+ ky: number;
21323
+ };
21324
+ }
21325
+ /** A drawn feature: its vertices in `positions` and its plan in local metres. */
21326
+ interface BuildingFootprint {
21327
+ /** Index of the feature in the data. */
21328
+ feature: number;
21329
+ /** First vertex of its triangles in `positions`, and how many there are. */
21330
+ start: number;
21331
+ count: number;
21332
+ /** Outer rings of its polygons, east/north metres from the frame's centre. */
21333
+ rings: Array<Array<[number, number]>>;
21334
+ }
21335
+ /**
21336
+ * Pure: extrude footprints into triangles, per-vertex colours and a roof
21337
+ * outline, relative to a local origin at the data's centre. Returns null when
21338
+ * there is nothing to draw. Exported for tests.
21339
+ */
21340
+ declare function buildBuildingGeometry(data: BuildingsData, projector: GeoProjector, style?: BuildingStyle): BuildingGeometry | null;
21341
+ /**
21342
+ * Pure: which of `geometry.features` come within `radius` metres of the line
21343
+ * through `path` (`[lat, lng]` points; one point is a point). Returns indices
21344
+ * into `geometry.features`, ascending. What a cutaway ghosts: give it the
21345
+ * camera's ground point and the point it looks at, and every block in the way
21346
+ * of the view is found, whichever way the view runs through it.
21347
+ */
21348
+ declare function buildingsAlong(geometry: BuildingGeometry, path: ReadonlyArray<readonly number[]>, radius: number): number[];
21349
+ interface BuildingsLayerSpec {
21350
+ band?: "underlay" | "overlay" | "top";
21351
+ bandOffset?: number;
21352
+ }
21353
+ interface BuildingsLayerConfig {
21354
+ /** Built geometry; null hides the layer. */
21355
+ geometry?: BuildingGeometry | null;
21356
+ opacity?: number;
21357
+ outlineColor?: THREE.ColorRepresentation;
21358
+ outlineOpacity?: number;
21359
+ /** Indices into `geometry.features` drawn see-through, as {@link buildingsAlong} gives them. */
21360
+ cut?: ReadonlyArray<number> | null;
21361
+ /** Opacity of the cut buildings. Default 0.12. */
21362
+ cutOpacity?: number;
21363
+ /** Floor line opacity; 0 (the default) hides them. */
21364
+ floorOpacity?: number;
21365
+ floorColor?: THREE.ColorRepresentation;
21366
+ visible?: boolean;
21367
+ }
21368
+ declare function createBuildingsLayer(spec?: BuildingsLayerSpec): LayerRenderer<BuildingsLayerConfig>;
21369
+ interface BuildingsLayerProps extends BuildingsLayerSpec, BuildingStyle {
21370
+ name?: string;
21371
+ /** Footprints as a GeoJSON FeatureCollection. */
21372
+ data: BuildingsData | null | undefined;
21373
+ /** Default 1. Below 1 the blocks turn see-through, so nodes behind them show. */
21374
+ opacity?: number;
21375
+ /** Roof outline colour. Default `"#9fb4c8"`. */
21376
+ outlineColor?: THREE.ColorRepresentation;
21377
+ /** Roof outline opacity; 0 hides it. Default 0.55. */
21378
+ outlineOpacity?: number;
21379
+ /**
21380
+ * See into the blocks along a line: every building within `radius` metres
21381
+ * (default 12) of the line through `path` (`[lat, lng]` points) is drawn at
21382
+ * `opacity` (default 0.12) and writes no depth, so a route or a node inside
21383
+ * or behind it shows. Give it the camera's ground point and the point it
21384
+ * follows and the view is never walled off. Null or an empty path cuts nothing.
21385
+ */
21386
+ cutaway?: {
21387
+ path: ReadonlyArray<readonly number[]>;
21388
+ radius?: number;
21389
+ opacity?: number;
21390
+ } | null;
21391
+ /** Floor lines at every storey, for buildings with a storey count (`levelsProperty`). 0 (the default) hides them. */
21392
+ floorOpacity?: number;
21393
+ /** Floor line colour. Default: the outline colour. */
21394
+ floorColor?: THREE.ColorRepresentation;
21395
+ visible?: boolean;
21396
+ }
21397
+ /** React form: projects `data` with the live map and re-projects when the map changes. */
21398
+ declare function BuildingsLayer(props: BuildingsLayerProps): null;
21399
+
20382
21400
  /**
20383
21401
  * ScanPlaneLayer — a lit plane sweeps the graph and whatever it touches glows.
20384
21402
  *
@@ -20552,6 +21570,374 @@ interface RadarSweepLayerProps extends RadarSweepLayerSpec {
20552
21570
  /** React form. Changing `origin` or `plane` rebuilds the layer; the rest is live. */
20553
21571
  declare function RadarSweepLayer(props: RadarSweepLayerProps): null;
20554
21572
 
21573
+ /**
21574
+ * EdgeFlowLayer — comet-style particles travelling along edges.
21575
+ *
21576
+ * Replaces the thin "dots on the edge" look of `animations.edgeFlow` with the
21577
+ * look of the marker comets: a white-hot head with a soft halo and a tapered,
21578
+ * fading tail. Every particle is one instanced screen-space quad, so the width
21579
+ * stays a constant pixel size at any zoom and thousands of edges are one draw
21580
+ * call. On a globe the particles follow the same lifted great-circle arc the
21581
+ * map edges use, and the far hemisphere is culled.
21582
+ *
21583
+ * Everything visual is a prop; presets (`style`) only choose defaults.
21584
+ */
21585
+
21586
+ type EdgeFlowStyle = "comet" | "dots" | "streak";
21587
+ type EdgeFlowDirection = "forward" | "reverse" | "both";
21588
+ type ColorInput$2 = string | number | THREE.Color;
21589
+ type PerEdge<T> = T | ((edge: EdgeData$1, index: number) => T);
21590
+ /** Live (cheap) settings: change them freely, they only touch uniforms. */
21591
+ interface EdgeFlowLayerConfig {
21592
+ /** Global speed multiplier. Default 1. */
21593
+ speedScale?: number;
21594
+ /** Head radius in CSS px. Default per style: comet 3, dots 3.2, streak 1.6. */
21595
+ size?: number;
21596
+ /** Tail length in px. Default per style: comet 120, dots 0, streak 150. */
21597
+ tail?: number;
21598
+ /** Halo around the head, 0..1.5. Default per style: comet 0.9, dots 1.0, streak 0.35. */
21599
+ glow?: number;
21600
+ /** Overall brightness multiplier. Default 1. */
21601
+ intensity?: number;
21602
+ /** Head colour (the tail fades into the edge colour). Default white. */
21603
+ headColor?: ColorInput$2;
21604
+ }
21605
+ /** Structural settings: re-evaluated on mount, `revision` bump, or graph change. */
21606
+ interface EdgeFlowLayerSpec extends EdgeFlowLayerConfig {
21607
+ /** Which edges carry particles. Default: all. */
21608
+ filter?: (edge: EdgeData$1, index: number) => boolean;
21609
+ /** Preset look. Default "comet". */
21610
+ style?: EdgeFlowStyle;
21611
+ /** Particles per edge (integer ≥1). Default 2. */
21612
+ count?: PerEdge<number>;
21613
+ /** Fraction of the edge covered per second. Default 0.3. */
21614
+ speed?: PerEdge<number>;
21615
+ /** Particle (tail) colour. Default "#7fd4ff". */
21616
+ color?: PerEdge<ColorInput$2>;
21617
+ /** Per-edge size multiplier (e.g. by weight). Default 1. */
21618
+ width?: PerEdge<number>;
21619
+ /** Per-edge brightness multiplier. Default 1. */
21620
+ weight?: PerEdge<number>;
21621
+ /** Default "forward" (source → target). */
21622
+ direction?: EdgeFlowDirection;
21623
+ /** Fade particles in/out at the two ends. Default true. */
21624
+ fadeEnds?: boolean;
21625
+ /** Globe only: arc height as a fraction of the chord. Default 0.25. */
21626
+ lift?: number;
21627
+ /** Safety cap on the total instance count. Default 20000. */
21628
+ maxParticles?: number;
21629
+ band?: "underlay" | "overlay" | "top";
21630
+ bandOffset?: number;
21631
+ }
21632
+ declare function createEdgeFlowLayer(spec?: EdgeFlowLayerSpec): LayerRenderer<EdgeFlowLayerConfig> & {
21633
+ respec(s: EdgeFlowLayerSpec): void;
21634
+ };
21635
+ interface EdgeFlowLayerProps extends EdgeFlowLayerSpec {
21636
+ name?: string;
21637
+ /** Bump to re-evaluate `filter`/`count`/`color`/… (they are read on mount and on graph change). */
21638
+ revision?: number;
21639
+ }
21640
+ /**
21641
+ * Comet particles along edges.
21642
+ *
21643
+ * ```tsx
21644
+ * <EdgeFlowLayer style="comet" color={e => e.properties?.risk ? '#ff5a5f' : '#7fd4ff'}
21645
+ * count={2} speed={0.25} tail={90} />
21646
+ * ```
21647
+ */
21648
+ declare function EdgeFlowLayer(props: EdgeFlowLayerProps): null;
21649
+
21650
+ /**
21651
+ * PathHighlightLayer — light up a route through the graph.
21652
+ *
21653
+ * Given an ordered list of node ids it draws a glowing ribbon through their
21654
+ * positions, optionally *drawing itself* from the first node to the last, with
21655
+ * water-like flow (the whole route stays lit, bright bands stream along it) and
21656
+ * an optional comet particle that rides the route, first node to last. Path nodes can get a halo, and
21657
+ * everything else can be dimmed — so "this is the route" reads at a glance.
21658
+ *
21659
+ * The ribbon follows the nodes live (dragging, layout settling) and, on a
21660
+ * globe, bends along the great circle instead of cutting through the planet.
21661
+ * Hops whose edge is drawn `orthogonal` follow the same routed polyline as the
21662
+ * edge (CPU mirror of the shader, `edge/orthoPath.ts`); other shapes are drawn
21663
+ * as straight hops.
21664
+ */
21665
+
21666
+ type ColorInput$1 = string | number | THREE.Color;
21667
+ interface PathHighlightLayerConfig {
21668
+ color?: ColorInput$1;
21669
+ /** Core line width in px. Default 3. */
21670
+ width?: number;
21671
+ /** Soft glow around the line, 0..2 (0 = none). Default 1. */
21672
+ glow?: number;
21673
+ /**
21674
+ * Water-like flow: the whole route stays lit and bright bands stream along it,
21675
+ * each with a hot leading edge and a long soft wake. Default true.
21676
+ */
21677
+ flow?: boolean;
21678
+ /** Band cycles per second (how fast the water runs). Default 0.45. */
21679
+ flowSpeed?: number;
21680
+ /** Bands along the whole path. Default 7. */
21681
+ flowBands?: number;
21682
+ /** Brightness of the bands, 0..1.5. Default 1. */
21683
+ flowStrength?: number;
21684
+ /** Brightness of the route between bands, 0..1. Default 0.5. */
21685
+ baseLevel?: number;
21686
+ /**
21687
+ * A comet particle that travels the WHOLE path, first node to last, then
21688
+ * starts over — one particle per path, not one per edge. Default true.
21689
+ */
21690
+ particle?: boolean;
21691
+ /** Particles on the path, spaced evenly. Default 1. */
21692
+ particleCount?: number;
21693
+ /** Path-lengths per second. Default 0.3. */
21694
+ particleSpeed?: number;
21695
+ /** Head radius in CSS px. Default: 2.2 × `width`. */
21696
+ particleSize?: number;
21697
+ /** Tail length in CSS px. Default 110. */
21698
+ particleTail?: number;
21699
+ /** Overall opacity. Default 1. */
21700
+ opacity?: number;
21701
+ /** Halo radius multiplier for path nodes; 0 = no node halos. Default 3.2. */
21702
+ nodeHalo?: number;
21703
+ /**
21704
+ * Where the path has got to, in hops: 0 is the first node, `path.length - 1`
21705
+ * the last, 2.5 halfway along the third hop. When set, the route is drawn up
21706
+ * to this point instead of animating in, the particle sits on it instead of
21707
+ * cycling (one particle), and node halos light up as it reaches them. Drive
21708
+ * it from a clock or a timeline to move something along the route.
21709
+ * Within a hop, the position is proportional to distance along the hop.
21710
+ */
21711
+ head?: number;
21712
+ /** Opacity of the route beyond `head` (0..1): 0 hides it, 0.25 shows the road ahead faintly. Default 0. */
21713
+ aheadOpacity?: number;
21714
+ /**
21715
+ * Per hop, the route in world coordinates: `hopPoints[i]` runs from
21716
+ * `path[i]` to `path[i + 1]`. The ribbon goes from the first node through
21717
+ * these points to the next node. `null` or missing draws the hop as usual.
21718
+ * `<PathHighlightLayer hopPaths>` fills this from lat/lng; set it directly
21719
+ * only when you already have world coordinates.
21720
+ */
21721
+ hopPoints?: ReadonlyArray<ReadonlyArray<readonly [number, number, number]> | null | undefined>;
21722
+ }
21723
+ interface PathHighlightSpec extends PathHighlightLayerConfig {
21724
+ /** Ordered node ids. Unknown ids are skipped. */
21725
+ path: string[];
21726
+ /** Time to draw the path from start to end, ms. 0 = instantly. Default 900. */
21727
+ drawDuration?: number;
21728
+ /** Globe only: arc height as a fraction of each hop's chord. Default 0.25. */
21729
+ lift?: number;
21730
+ band?: "underlay" | "overlay" | "top";
21731
+ bandOffset?: number;
21732
+ }
21733
+ /** A route point: `[lat, lng]` on the ground, or `[lat, lng, altitude]` with the altitude in metres above it. */
21734
+ type HopPathPoint = readonly [number, number] | readonly [number, number, number];
21735
+ declare function createPathHighlightLayer(spec: PathHighlightSpec): LayerRenderer<PathHighlightLayerConfig> & {
21736
+ replay(): void;
21737
+ };
21738
+ interface PathHighlightLayerProps extends PathHighlightSpec {
21739
+ name?: string;
21740
+ /**
21741
+ * Fade everything that is not on the path to this opacity (0..1), using the
21742
+ * engine's focus+context emphasis. Omit to leave the rest of the graph alone.
21743
+ */
21744
+ dimOthers?: number;
21745
+ /**
21746
+ * Per hop, the route as `[lat, lng]` points: `hopPaths[i]` runs from
21747
+ * `path[i]` to `path[i + 1]`, e.g. a road route between two places. The
21748
+ * ribbon goes from the first node through these points to the next node.
21749
+ * A third value lifts a point that many metres above the map, for a route
21750
+ * that climbs onto a footbridge or into a building: `[lat, lng, 7]`.
21751
+ * Used while a map is shown; `null` or missing draws the hop as usual.
21752
+ * Converted with `api.map.latLngToWorld` (heights with
21753
+ * `api.map.groundKmToWorld`) and again whenever the map is enabled,
21754
+ * disabled or changes projection.
21755
+ */
21756
+ hopPaths?: ReadonlyArray<ReadonlyArray<HopPathPoint> | null | undefined>;
21757
+ }
21758
+ /**
21759
+ * ```tsx
21760
+ * <PathHighlightLayer path={['a', 'b', 'c', 'd']} color="#ffcf4a" dimOthers={0.15} />
21761
+ * ```
21762
+ * Changing `path` re-runs the draw-in animation. Clicking empty canvas
21763
+ * (`api.emphasis.restore()`) hides the path and its dim until `path` changes
21764
+ * or a node or edge is clicked.
21765
+ */
21766
+ declare function PathHighlightLayer(props: PathHighlightLayerProps): null;
21767
+
21768
+ /**
21769
+ * FocusCalloutLayer — a leader polyline with a text label for the focused
21770
+ * node(s) or edge(s).
21771
+ *
21772
+ * Each callout is: a small ring on the target, a diagonal "elbow" leg, then a
21773
+ * horizontal run with the text sitting just above it — the classic annotation
21774
+ * callout. The polyline and the text are laid out in *screen pixels* around the
21775
+ * target's projected position, so they keep their size at any zoom, follow the
21776
+ * target while the layout moves, and animate in (the line draws itself, then
21777
+ * the text fades up).
21778
+ *
21779
+ * The layer is driven by two arrays — `nodes` and `edges` — so it works with
21780
+ * any notion of "focus": hover, selection, search results, a tour step.
21781
+ * `<FocusCalloutLayer focusOnClick />` wires click-to-focus for the common case.
21782
+ */
21783
+
21784
+ type CalloutPlacement = "auto" | "right-up" | "right-down" | "left-up" | "left-down";
21785
+ interface CalloutTarget {
21786
+ kind: "node" | "edge";
21787
+ id: string;
21788
+ node?: NodeData;
21789
+ edge?: EdgeData$1;
21790
+ }
21791
+ type CalloutContent = string | string[] | {
21792
+ title: string;
21793
+ lines?: string[];
21794
+ };
21795
+ /** Everything here is read at creation; a change re-creates the (few) callouts. */
21796
+ interface CalloutStyle {
21797
+ /** Line + ring colour. Default "#7fd4ff". */
21798
+ color?: string;
21799
+ /** Line width in CSS px. Default 1.5. */
21800
+ lineWidth?: number;
21801
+ /** Where the label goes relative to the target. Default "auto" (towards the emptier side of the screen). */
21802
+ placement?: CalloutPlacement;
21803
+ /** Length of the diagonal leg in px. Default 48. */
21804
+ elbow?: number;
21805
+ /** Elbow angle in degrees from horizontal. Default 50. */
21806
+ angle?: number;
21807
+ /** Horizontal run in px, or "auto" to fit the text. Default "auto". */
21808
+ run?: number | "auto";
21809
+ /** Ring radius around the target in px. 0 = none. Default 10. */
21810
+ ring?: number;
21811
+ /** Label text colour. Default "#eaf6ff". */
21812
+ textColor?: string;
21813
+ /** Secondary-line colour. Default "rgba(200,225,245,0.72)". */
21814
+ subColor?: string;
21815
+ /** Label background; "transparent" for none. Default "rgba(8,14,24,0.72)". */
21816
+ background?: string;
21817
+ /** Title font size px. Default 13. */
21818
+ fontSize?: number;
21819
+ fontFamily?: string;
21820
+ /** Draw-in time in ms. Default 450. */
21821
+ duration?: number;
21822
+ }
21823
+ interface FocusCalloutConfig extends CalloutStyle {
21824
+ /** Focused node ids. */
21825
+ nodes?: string[];
21826
+ /** Focused edge ids (anchored at the edge midpoint). */
21827
+ edges?: string[];
21828
+ /** Label text. Default: node name / edge type. */
21829
+ text?: (target: CalloutTarget) => CalloutContent | null | undefined;
21830
+ /** Bump to rebuild with the new `text` output (e.g. after data changed). */
21831
+ revision?: number;
21832
+ /** Cap on simultaneous callouts. Default 6. */
21833
+ max?: number;
21834
+ opacity?: number;
21835
+ }
21836
+ interface FocusCalloutSpec {
21837
+ band?: "underlay" | "overlay" | "top";
21838
+ bandOffset?: number;
21839
+ }
21840
+ declare function createFocusCalloutLayer(spec?: FocusCalloutSpec): LayerRenderer<FocusCalloutConfig>;
21841
+ interface FocusCalloutLayerProps extends CalloutStyle, FocusCalloutSpec {
21842
+ name?: string;
21843
+ /** Focused node ids (controlled). Omit and use `focusOnClick` for uncontrolled. */
21844
+ nodes?: string | string[];
21845
+ /** Focused edge ids (controlled). */
21846
+ edges?: string | string[];
21847
+ /** Click a node (or edge, with `focusEdges`) to focus it; click empty space to clear. */
21848
+ focusOnClick?: boolean;
21849
+ /** Also focus edges on click. Default false. */
21850
+ focusEdges?: boolean;
21851
+ /** Called when click-driven focus changes. */
21852
+ onFocusChange?: (focus: {
21853
+ nodes: string[];
21854
+ edges: string[];
21855
+ }) => void;
21856
+ /** Label text; return a string, a list of lines, or `{ title, lines }`. */
21857
+ text?: FocusCalloutConfig["text"];
21858
+ revision?: number;
21859
+ max?: number;
21860
+ opacity?: number;
21861
+ /** Dim everything except the focused nodes to this opacity while a focus is active. */
21862
+ dimOthers?: number;
21863
+ }
21864
+ /**
21865
+ * ```tsx
21866
+ * <FocusCalloutLayer focusOnClick dimOthers={0.2}
21867
+ * text={n => ({ title: n.node.properties.name, lines: [`degree ${n.node.properties.degree}`] })} />
21868
+ * ```
21869
+ */
21870
+ declare function FocusCalloutLayer(props: FocusCalloutLayerProps): null;
21871
+
21872
+ /**
21873
+ * NodeEffectLayer — ready-made animated halos around nodes.
21874
+ *
21875
+ * One draw call for any number of nodes (a `createNodeShaderLayer` underneath),
21876
+ * following the engine's dim state. Pick a preset and tune it with props:
21877
+ *
21878
+ * - `glow` — a soft breathing aura
21879
+ * - `pulse` — a ring that breathes in and out
21880
+ * - `ripple` — rings that radiate outward and fade (sonar / alert)
21881
+ * - `orbit` — a dashed ring that slowly rotates (selection / scanning)
21882
+ */
21883
+
21884
+ type NodeEffectKind = "glow" | "pulse" | "ripple" | "orbit";
21885
+ type ColorInput = string | number | THREE.Color;
21886
+ interface NodeEffectConfig {
21887
+ /** Cycles per second. Default 0.6. */
21888
+ speed?: number;
21889
+ /** Brightness multiplier. Default 1. */
21890
+ intensity?: number;
21891
+ /** Ring count for `ripple` / dash count for `orbit`. Default 3 / 14. */
21892
+ count?: number;
21893
+ /** Ring thickness 0..1 of the radius. Default 0.08. */
21894
+ thickness?: number;
21895
+ }
21896
+ /** How a finite effect ends. Read once, when the layer is built. */
21897
+ interface NodeEffectLifetime {
21898
+ /**
21899
+ * Play this many cycles per node, counted from the moment that node joins
21900
+ * the layer, then go quiet. `ripple` emits `count` rings per cycle and lets
21901
+ * the last one reach the rim; the other presets fade out over the last fifth
21902
+ * of a cycle. Omit (or 0) for an effect that loops for as long as it is
21903
+ * mounted. A node added later — a new filter match, a new node — gets its
21904
+ * own full run, so a once-only ripple marks exactly what arrived.
21905
+ */
21906
+ cycles?: number;
21907
+ /** Called once each time every current node has finished its cycles. */
21908
+ onComplete?: () => void;
21909
+ }
21910
+ interface NodeEffectSpec extends NodeEffectConfig, NodeEffectLifetime {
21911
+ effect?: NodeEffectKind;
21912
+ /** Which nodes get the effect. Default: all. */
21913
+ filter?: (node: NodeData, index: number) => boolean;
21914
+ /** Halo colour, fixed or per node. Default "#5ec8ff". */
21915
+ color?: ColorInput | ((node: NodeData, index: number) => ColorInput);
21916
+ /** Per-node brightness (0 = off), e.g. an anomaly score. Default 1. */
21917
+ weight?: (node: NodeData, index: number) => number;
21918
+ /** Quad size relative to the node: the halo can grow up to this multiple. Default 3.4. */
21919
+ radius?: number;
21920
+ band?: "underlay" | "overlay" | "top";
21921
+ bandOffset?: number;
21922
+ maxNodes?: number;
21923
+ }
21924
+ declare function buildNodeEffectFragment(kind: NodeEffectKind): string;
21925
+ /** How long, in cycles, a finite run takes to go dark. A ripple's last ring is
21926
+ * emitted just before `cycles` and needs one more cycle to reach the rim. */
21927
+ declare function nodeEffectRunLength(kind: NodeEffectKind, cycles: number): number;
21928
+ declare function createNodeEffectLayer(spec?: NodeEffectSpec): LayerRenderer<NodeEffectConfig>;
21929
+ interface NodeEffectLayerProps extends NodeEffectSpec {
21930
+ name?: string;
21931
+ /** Bump to re-read `filter` / `color` / `weight` (they are evaluated per node on membership change). */
21932
+ revision?: number;
21933
+ }
21934
+ /**
21935
+ * ```tsx
21936
+ * <NodeEffectLayer effect="ripple" filter={n => n.properties.alert} color="#ff5a5f" />
21937
+ * ```
21938
+ */
21939
+ declare function NodeEffectLayer(props: NodeEffectLayerProps): null;
21940
+
20555
21941
  /**
20556
21942
  * WarpTunnelLayer — the star-streak overlay that makes a jump read as travel.
20557
21943
  *
@@ -20986,6 +22372,45 @@ declare function frameShot(centre: THREE.Vector3, start: ShotStart, opts?: {
20986
22372
  duration?: number;
20987
22373
  level?: boolean;
20988
22374
  }): Shot;
22375
+ interface FollowShotOptions {
22376
+ /** Ms from the first point to the last, at constant speed along the route. Default 20000. */
22377
+ duration?: number;
22378
+ /** World units from the camera to the point it follows. Default 4% of the route's length. */
22379
+ distance?: number;
22380
+ /** Degrees the view looks down on the point it follows; 0 looks level. Default 20. */
22381
+ pitch?: number;
22382
+ /**
22383
+ * World units of route either side of the followed point that set the
22384
+ * heading. The camera turns with the chord across that window, so a sharp
22385
+ * corner in the route becomes a turn spread over twice this length instead
22386
+ * of a snap. Default: `distance`.
22387
+ */
22388
+ smoothing?: number;
22389
+ /**
22390
+ * Which way is up, in `cloudScene` local space. `"radial"` (the default) is
22391
+ * away from the local origin, which is the surface normal of the globe map.
22392
+ * Pass a vector for a flat map or a graph.
22393
+ */
22394
+ up?: "radial" | THREE.Vector3;
22395
+ /** Point indices to publish as {@link ShotMark}s, so `onMark` fires as each is passed. Default none. */
22396
+ marks?: ReadonlyArray<number>;
22397
+ }
22398
+ /**
22399
+ * Ride along a route: the camera sits `distance` behind the moving point,
22400
+ * looks down on it by `pitch`, turns as the route turns and keeps the horizon
22401
+ * level about `up`. The street-level chase view of a route on the map.
22402
+ *
22403
+ * Unlike {@link pathShot} the route is not splined. A route on a map is the
22404
+ * way somebody actually went, and a spline through its corners cuts through
22405
+ * the buildings it went round; here the followed point stays on the polyline
22406
+ * and only the heading is smoothed. The pace is constant along the route's
22407
+ * length, so `ms / duration` is the share of the route covered, which is what
22408
+ * a host binds a scrubber or a path layer's head to.
22409
+ *
22410
+ * A climb (stairs, a ramp) moves the camera up with the point but does not
22411
+ * tip the view: the heading is taken level, about `up`.
22412
+ */
22413
+ declare function followShot(points: ReadonlyArray<THREE.Vector3>, opts?: FollowShotOptions): Shot;
20989
22414
 
20990
22415
  /**
20991
22416
  * CameraDirector — plays a queue of {@link Shot}s by moving the graph.
@@ -22249,7 +23674,7 @@ declare const defaultStylesheet: StyleRule[];
22249
23674
  */
22250
23675
 
22251
23676
  interface LayoutOutput {
22252
- positions: Map<string, Vec3$1>;
23677
+ positions: Map<string, Vec3$2>;
22253
23678
  }
22254
23679
  interface HelixLayoutOptions {
22255
23680
  /**
@@ -22270,7 +23695,7 @@ interface HelixLayoutOptions {
22270
23695
  /** Radius at the far end as a multiple of `radius` — a cone instead of a tube. Default 1. */
22271
23696
  taper?: number;
22272
23697
  /** Centre of the whole figure. Default the origin. */
22273
- centre?: Vec3$1;
23698
+ centre?: Vec3$2;
22274
23699
  }
22275
23700
  /**
22276
23701
  * Lay the nodes out along a helix.
@@ -22293,7 +23718,7 @@ interface ShellLayoutOptions {
22293
23718
  /** Where unreachable nodes go, as a hop number. Default: one past the furthest. */
22294
23719
  orphanHop?: number;
22295
23720
  /** Centre of the shells. Default the origin. */
22296
- centre?: Vec3$1;
23721
+ centre?: Vec3$2;
22297
23722
  /** Rotate each shell so neighbouring shells do not line up. Default true. */
22298
23723
  stagger?: boolean;
22299
23724
  }
@@ -22937,4 +24362,4 @@ declare function createDefaultRegistry(): ToolRegistry$1;
22937
24362
 
22938
24363
  declare function useToolbarState(initialState?: Partial<ToolbarState>): Required<ToolbarControlledProps>;
22939
24364
 
22940
- export { ANCHOR_OFFSETS, ANCHOR_RADIUS_PX, type ActiveTween, type AggregateConfig, type AggregateOptions, type AggregatedEdge, type AggregatedEdgeTarget, AlgorithmApi, type AlgorithmInfo, type AnimateOptions, type AnimationEasingType, AnimationManager, AnimationsApi, type AnyPickResult, type GraphSnapshot as ApiGraphSnapshot, type ApiOptions, type ApiStyleRule, type ApplyGeoLayoutOptions, type ApplyGeoLayoutResult, AudioSpectrum, AudioSpectrumLayer, type AudioSpectrumLayerConfig, type AudioSpectrumLayerProps, type AudioSpectrumLayerSpec, type AudioSpectrumOptions, type AudioSpectrumStyle, AxisLayer, type AxisLayerProps, BUILTIN_EDGE_SHAPE_IDS, type BackgroundPickResult, type BackgroundPointerEvent, type BadgeSpec, type BinningSource, type BufferTextSource, type BuildGeoPositionProviderOptions, type BuildGeoPositionProviderResult, type BuiltinEdgeShape, CPULayoutProviderAdapter, CPUPositionProvider, CameraApi, CameraDirector, type CameraDirectorConfig, type CameraPositionSource, CameraTween, type CameraTweenTarget, type CanvasEvent, type CapabilityState, type CaptionOptions, type CaptionProps, CardLayer, CardLayerHost, type CardLayerProps, type CardPlacement, type CardSpec, CardsApi, type CascadeHighlightConfig, CascadeHighlightEffect, type CategoricalFilter, type Category, type CineTarget, type Cinematics, type CinematicsHost, type CinematicsOptions, type ClusterRevealConfig, ClusterRevealEffect, CollectionManager, type CollectionState, type ColorMappingOptions, type ColorValue, type ColumnMapping, type Command, type ConfigSource, type ConflictReport, ContextMenuManager, ContextMenuOverlay, type ContextMenuOverlayProps, type ContextMenuState, CoverageApi, type CoverageConfig, type CoverageItem, CoverageLayer, type CoverageLayerProps, type CoverageSpec, type CuedFlight, type CursorStyle, type CurveParams, DEFAULT_DOCK_POSITIONS, DEFAULT_FORCE_LAYOUT_CONFIG, DEFAULT_INTERACTION_CONFIG, DEFAULT_SHORTCUTS, DEFAULT_THEME_TO_PROVIDER, DEFAULT_TIMELINE_MESSAGES, type DateGranularity, type DateRangeSpec, type DecorationAnchor, type DefaultMenuActions, type DegreeSpec, type DirtyFlag, type DisableMapOptions, type DockRegistry, type DollyZoomShotOptions, type DragEndEvent, DragHandler, type DragHandlerConfig, type DragMoveEvent, DragPositionsCommand, type DragStartEvent, type DragState, EASINGS, type EasingFn, type EdgeCaptionProps, EdgeClassifier, EdgeCloud, type EdgeCloudConfig, type EdgeCloudProps, type EdgeCreateCallback, EdgeCreateHandler, type EdgeCreateHandlerConfig, type EdgeCreateResult, type EdgeDefinition, type EdgeDrawConfig, EdgeDrawEffect, type EdgeEvent, type EdgeFilter, type EdgeFilterCommonSpec, type EdgeFlowConfig, EdgeFlowEffect, type EdgeGlowConfig, EdgeGlowEffect, type EdgeInput, type EdgeLike, type EdgePickResult, type EdgePointerEvent, type EdgePredicateFn, type EdgeProps, EdgeQuery, type EdgeRenderInfo, type EdgeRenderState, type EdgeRendererBackend, type EdgeSelector, type EdgeShape, EdgeTextCloud, type EdgeTextCloudConfig, type EdgeTextItem, EdgeTextLayer, type EdgeTextLayerProps, type EdgeType, EdgesApi, type Effect, EffectManager, type EgoRingNode, type ElementDefinition, type ElementState, type ElementTypeDescriptor, ElementTypeRegistry, EmphasisApi, type EnableMapOptions, type EngineCapabilities, EngineRegistry, type ErrorContext, type EstablishShotOptions, type EventMap, type ExtractConfig, type ExtractOptions, FREE_PROVIDER_META, FilterApi, type FilterConfig, type FilterEntry, type FilterGroup, type FilterHandle, type FilterMatchCount, type FilterPreset, type FilterPublicType, type FilterResult, type FilterResultCallback, type FilterTarget, FlatLayer, type FlatLayerProps, type FlightSpec, FlowsApi, type FlyPathOptions, type FlyToBoundsOptions, type FlyToGeoOptions, type FlyToOptions, type FocusContextConfig, FocusContextEffect, type ForceLayoutConfig, type FreeProviderName, type GPUEdgeRendererConfig, GPULayoutProviderAdapter, type GPUNodeRendererConfig, GPUPositionProvider, type GeoBounds, type GeoEgoRingConfig, GeoEgoRingLayer, type GeoEgoRingLayerProps, type GeoJsonPolygonish, type GeoLocalConfig, GeoLocalLayer, type GeoLocalLayerProps, type GeoPosition, type GeoSearchResult, type GeocoderDescriptor, GlobeControl, type GlobeControlConfig, GlobeLayer, type GlobeLayerProps, GraphCanvas, type GraphCanvasProps, GraphContext, type GraphContextValue, GraphControl, type GraphControlConfig, type GraphEvent, type GraphEventHandler, type GraphEventType, type GraphFilterAPI, GraphFilterManager, GraphRenderer, type GraphRendererConfig, type GraphRendererProps, GraphStore, type GraphThemeConfig, type GraphThemeKey, GraphThemes, type GraphViewState, GroupCloud, GroupHitTest, GroupManager, type GroupOptions, type GroupRingRendererBackend, type GroupSnapshot, type GroupSpec, type GroupSphereRendererBackend, type GroupState, GroupsApi, type Heading, type HeatDiffusionConfig, HeatDiffusionEffect, type HelixLayoutOptions, type HiddenState, HistoryApi, type HistoryChangeInfo, type HostFaultReport, HoverApi, type HoverChangeEvent, HoverHandler, type HoverHandlerConfig, type HoverState, type HoverTarget, type IconAtlasConfig, IconAtlasManager, type IconEntry, type IconFontConfigExt, type IconSpec, type ImageArrayConfig, ImageAtlasManager, type ImageEntry, type ImageMappingOptions, type InteractionConfig, InteractionManager, type InteractionManagerConfig, IoApi, type KeyBinding, KeyboardShortcutManager, type KeyboardShortcutManagerConfig, type LabelPosition$1 as LabelPosition, type LayerContext, type LayerHitTest, type LayerOptions, type LayerRenderer, LayersApi, LayoutApi, type LayoutControllerInterface, type LayoutEndInfo, type LayoutEngine, type LayoutOutput, type LayoutReadback, type LayoutRegistrar, type LayoutRuntime, type LayoutRuntimeEventMap, LayoutRuntimeImpl, type LayoutRuntimeSnapshot, LegendPanel, type LegendPanelProps, type LinkConfig, type LinkOptions, MAX_BADGE_TEXT_CHARS, type MSDFFont, type MSDFGlyph, MapApi, type MapConfig, MapCoordinateProvider, type MapMode, type MapTileProvider, type MapTileProviderDescriptor, MapTileProviders, MapTransition, type MapTransitionConfig, type MapTransitionMode, MarkerLayer, type MarkerLayerProps, MarkerRenderer, type MarkerRendererConfig, type MarkerSpec, MarkersApi, type MatchSpec, MediaAtlas, type MediaAtlasOptions, type MediaCrop, type MediaEffects, type MediaFit, MediaLayer, type MediaLayerConfig, type MediaLayerProps, type MediaLayerSpec, type MediaShape, type MediaTile, type MediaVideoOptions, MediaVideoSource, type MediaVideoSpec, type MenuContext, type MenuGroup, type MenuItem, type MergeConfig, type MergeOptions, type MetricPulseConfig, MetricPulseEffect, type MinimapConfig, MinimapLayer, type MinimapLayerProps, NOMINATIM_BASE_URL, type NodeBreatheConfig, NodeBreatheEffect, NodeCardCache, type NodeCardCacheOptions, type NodeCardField, NodeCardLayer, type NodeCardLayerConfig, type NodeCardLayerProps, type NodeCardLayerRenderer, type NodeCardLayerSpec, type NodeCardPhoto, type NodeCardSize, type NodeCardSpec, type NodeCardTheme, NodeCloud, type NodeCloudConfig, type NodeCloudProps, type NodeDefinition, type NodeDragEvent, type NodeEntranceConfig, NodeEntranceEffect, type NodeEvent, type NodeFilter, type NodeFilterCommonSpec, NodeInfoManager, NodeInfoPanel, type NodeInfoPanelProps, type NodeInfoState, type NodeInput, type NodeLike, type NodePickResult, type NodePointerEvent, type NodePredicateFn, type NodeProps, NodeQuery, type NodeRenderState, type NodeRendererBackend, type NodeRippleConfig, NodeRippleEffect, type NodeSelector, type NodeShaderAttribute, type NodeShaderLayerSpec, type NodeSizeConfig, NodeSizeService, NodesApi, type OrbitShotOptions, OverlaysApi, type ParsedDate, type ParsedSelector, type PathHighlightConfig, PathHighlightEffect, type PathShotOptions, type PickResult, type PickType, Picker, PickerUtils, type PinnedState, PitchToggleButton, type PitchToggleButtonProps, type Platform, PlatformAdapter, PlaybackApi, type PlaybackConfig, type PlaybackOptions, type PluginInstallContext, type PointerEventBase, type PointerModifiers, PolygonApi, type PolygonConfig, type PolygonItem, PolygonLayer, type PolygonLayerProps, type PolygonSpec, type PositionMode, type PositionProvider, type PredicateFilter, type PropertyColorConfig, PropertyColorEffect, PropertyTween, type PropertyTweenConfig, QueryApi, QuickCreatePanel, type QuickCreatePanelProps, type RGB, type RadarPlane, RadarSweepLayer, type RadarSweepLayerConfig, type RadarSweepLayerProps, type RadarSweepLayerSpec, type RangeFilter, type RangeSpec, type RegisterElementTypeOptions, type RelationshipType, type RenderBackend, type RenderBackendType, RenderEngineApi$1 as RenderEngineApi, EventBus as RenderEventBus, type FaultKind as RenderFaultKind, type RenderPathId, RendererApi, type ResolvedMediaStyle, type ResolvedMenuItem, type ResolvedMenuSection, type ResolvedNodeCardTheme, ScaledLODRadial, type ScanAxis, type ScanMode, ScanPlaneLayer, type ScanPlaneLayerConfig, type ScanPlaneLayerProps, type ScanPlaneLayerSpec, SchemaApi, type SchemaCallbacks, type Scope, type ScreenshotOptions, type SearchOptions, SelectionApi, type SelectionChangeEvent, SelectionManager, type SelectionMode$1 as SelectionMode, type SelectionState, SelfLoopCloud, type SelfLoopCloudConfig, SetPositionsCommand, type ShellLayoutOptions, type ShortcutCategory, type ShortcutCommand, type ShortcutCommandDefinition, type ShortcutConfig, type ShortcutOptions, type Shot, type ShotFrame, type ShotMark, type ShotStart, type SizeMappingOptions, type SkillContext, type SkillDef, type SkillInput, type SkillResult, SkillsApi, SlippyMapFlat, type SlippyMapFlatConfig, SlippyMapGlobe, type SlippyMapGlobeConfig, type SnapshotDiff, StaticPositionProvider, StyleApi, StyleMapper, type StyleRule, type Stylesheet$1 as Stylesheet, Stylesheet as StylesheetEngine, type TagId, type TagSpec, type TextAlign, TextCloud, type TextCloudConfig, type TextItem, TextLayer, type TextLayerProps, type TileUrlFn, Timeline, type TimelineAnnotation, TimelineApi, type Bin as TimelineBin, TimelineCanvas, type TimelineCanvasProps, type TimelineData, type TimelineEvent, type TimelineMeasure, type TimelinePlayOptions, type TimelineProps, type TimelineReplayConfig, TimelineReplayEffect, type TimelineTarget, type ToolItem, type ToolItemAction, type ToolItemParent, type ToolItemToggle, type ToolPriority, ToolRegistry$1 as ToolRegistry, type ToolSeparator, Toolbar, type ToolbarAction, type ToolbarContext, type ToolbarControlledProps, type ToolbarPlugin, type ToolbarProps, type ToolbarState, type TopologyFilter, TransformApi, type TransformResult, type TransitionOptions, type TransitionPhase, TypesApi, UiApi, type UniformValue, type Unsubscribe$1 as Unsubscribe, type UpdateStrategy$1 as UpdateStrategy, UpdateStrategy as UpdateStrategyImpl, type UserShortcutConfig, type VectorTileStyle, type ViewEvent, type ViewEventHandler, type ViewEventType, type ViewInfo, type ViewRegistrationOptions, ViewRegistry, type ViewState, VisualMapper, type WarpShotOptions, WarpTunnelLayer, type WarpTunnelLayerConfig, type WarpTunnelLayerProps, type WarpTunnelLayerSpec, type WaypointHit, WebGPUBackendNotReadyError, advanceByGranularity, arrowFragmentShader, arrowVertexShader, boundingSphere, buildMediaFragment, buildMediaHitMask, buildRadarDiscFragment, buildRadarPingFragment, buildScanGlowFragment, buildScanSheetFragment, buildShaderSources, buildSpectrumFragment, buildWarpFragment, cartesian2Polar, computeAirborne, computeEgoRing, copyShotFrame, createAudioSpectrum, createAudioSpectrumLayer, createCameraDirector, createCinematics, createDefaultItems, createDefaultRegistry, createEdgeTextCloud, createMediaLayer, createNodeCardLayer, createNodeShaderLayer, createRadarSweepLayer, createRenderBackend, createScanPlaneLayer, createTextCloud, createVectorTileProvider, createWarpTunnelLayer, defaultEdgeStyles, defaultNodeStyles, defaultStylesheet, deg2Rad, detectDateProperty, dirtyFlagToAttributes, divergingColorScale, dollyZoomShot, easeIn, easeInOut, easeOut, easeOutBack, edgeFragmentShader, edgeVertexShader, establishShot, findFirstImage, fitBounds, fitDistance, fitText, formatDate, frameShot, getAttributesToUpdate, getBaseWorldRadius, getColorScheme, getEdgeClassifier, getGlobalViewRegistry, getNodeShaderSize, getNodeShaderSizeByValue, getNodeWorldRadius, getNodeWorldRadiusBySize, getProviderTileUrl, getScaleFn, headingQuaternion, helixLayout, hexToRgb, isImageUrl, loadPhoto, makeShotFrame, markAt, mediaNeedsTime, nextGranularity, nodeFragmentShader, nodeVertexShader, nominatimGeocoder, normalizeEdgeIds, normalizeNodeIds, orbitShot, ordinalColorScale, paintNodeCard, parseDate, parseNominatim, pathShot, pickingFragmentShader, pickingVertexShader, polar2Cartesian, prevGranularity, rad2Deg, registerCinematicLayouts, renderOrderForSlot, requiresStructureRebuild, resetGlobalViewRegistry, resolveCaptionText, resolveNodeCardTheme, resolveNodeTitle, resolveTimelineMessages, scanPosition, selfLoopFragmentShader, selfLoopVertexShader, sequentialColorScale, shellLayout, sqrtScale, thresholdColorScale, truncateToGranularity, uniformGlslType, useAtlasManagers, useCamera, useCloudScene, useEffectiveMapProjection, useEngineLayer, useGraph, useGraphFilter, useGraphHandle, useGraphStore, useGraphVersion, useInteraction, useInvalidate, useIs3D, useIsMapMode, useLayer, useLayoutController, useLayoutPositionProvider, useMapDamping, useMapSphereRadius, useOptionalRenderEngineApi, useRenderEngineApi, useScene, useTextScales, useTheme, useTimelineData, useToolbarState, useViewStateField, vectorDark, videoTileFor, warpShot };
24365
+ export { ANCHOR_OFFSETS, ANCHOR_RADIUS_PX, type ActiveTween, type AggregateConfig, type AggregateOptions, type AggregatedEdge, type AggregatedEdgeTarget, AlgorithmApi, type AlgorithmInfo, type AnimateOptions, type AnimationEasingType, AnimationManager, AnimationsApi, type AnyPickResult, type GraphSnapshot as ApiGraphSnapshot, type ApiOptions, type ApiStyleRule, type ApplyGeoLayoutOptions, type ApplyGeoLayoutResult, AudioSpectrum, AudioSpectrumLayer, type AudioSpectrumLayerConfig, type AudioSpectrumLayerProps, type AudioSpectrumLayerSpec, type AudioSpectrumOptions, type AudioSpectrumStyle, AxisLayer, type AxisLayerProps, BUILTIN_EDGE_SHAPE_IDS, type BackgroundPickResult, type BackgroundPointerEvent, type BadgeSpec, type BinningSource, type BufferTextSource, type BuildGeoPositionProviderOptions, type BuildGeoPositionProviderResult, type BuildingFeature, type BuildingFootprint, type BuildingGeometry, type BuildingStyle, type BuildingsData, BuildingsLayer, type BuildingsLayerConfig, type BuildingsLayerProps, type BuildingsLayerSpec, type BuiltinEdgeShape, CPULayoutProviderAdapter, CPUPositionProvider, type CalloutContent, type CalloutPlacement, type CalloutStyle, type CalloutTarget, CameraApi, CameraDirector, type CameraDirectorConfig, type CameraPositionSource, CameraTween, type CameraTweenTarget, type CanvasEvent, type CapabilityState, type CaptionOptions, type CaptionProps, CardLayer, CardLayerHost, type CardLayerProps, type CardPlacement, type CardSpec, CardsApi, type CascadeHighlightConfig, CascadeHighlightEffect, type CategoricalFilter, type Category, type CineTarget, type Cinematics, type CinematicsHost, type CinematicsOptions, type ClusterRevealConfig, ClusterRevealEffect, CollectionManager, type CollectionState, type ColorMappingOptions, type ColorValue, type ColumnMapping, type Command, type ConfigSource, type ConflictReport, ContextMenuManager, ContextMenuOverlay, type ContextMenuOverlayProps, type ContextMenuState, CoverageApi, type CoverageConfig, type CoverageItem, CoverageLayer, type CoverageLayerProps, type CoverageSpec, type CuedFlight, type CursorStyle, type CurveParams, DEFAULT_DOCK_POSITIONS, DEFAULT_FORCE_LAYOUT_CONFIG, DEFAULT_INTERACTION_CONFIG, DEFAULT_SHORTCUTS, DEFAULT_THEME_TO_PROVIDER, DEFAULT_TIMELINE_MESSAGES, type DateGranularity, type DateRangeSpec, type DecorationAnchor, type DefaultMenuActions, type DegreeSpec, type DirtyFlag, type DisableMapOptions, type DockRegistry, type DollyZoomShotOptions, type DragEndEvent, DragHandler, type DragHandlerConfig, type DragMoveEvent, DragPositionsCommand, type DragStartEvent, type DragState, EASINGS, type EasingFn, type EdgeCaptionProps, EdgeClassifier, EdgeCloud, type EdgeCloudConfig, type EdgeCloudProps, type EdgeCreateCallback, EdgeCreateHandler, type EdgeCreateHandlerConfig, type EdgeCreateResult, type EdgeDefinition, type EdgeDrawConfig, EdgeDrawEffect, type EdgeEvent, type EdgeFilter, type EdgeFilterCommonSpec, type EdgeFlowConfig, type EdgeFlowDirection, EdgeFlowEffect, EdgeFlowLayer, type EdgeFlowLayerConfig, type EdgeFlowLayerProps, type EdgeFlowLayerSpec, type EdgeFlowStyle, type EdgeGlowConfig, EdgeGlowEffect, type EdgeInput, type EdgeLike, type EdgePickResult, type EdgePointerEvent, type EdgePredicateFn, type EdgeProps, EdgeQuery, type EdgeRenderInfo, type EdgeRenderState, type EdgeRendererBackend, type EdgeRoutingOptions, type EdgeSelector, type EdgeShape, EdgeTextCloud, type EdgeTextCloudConfig, type EdgeTextItem, EdgeTextLayer, type EdgeTextLayerProps, type EdgeType, EdgesApi, type Effect, EffectManager, type EgoRingNode, type ElementDefinition, type ElementState, type ElementTypeDescriptor, ElementTypeRegistry, EmphasisApi, type EnableMapOptions, type EngineCapabilities, EngineRegistry, type ErrorContext, type EstablishShotOptions, type EventMap, type ExtractConfig, type ExtractOptions, FREE_PROVIDER_META, FilterApi, type FilterConfig, type FilterEntry, type FilterGroup, type FilterHandle, type FilterMatchCount, type FilterPreset, type FilterPublicType, type FilterResult, type FilterResultCallback, type FilterTarget, FlatLayer, type FlatLayerProps, type FlightSpec, FlowsApi, type FlyPathOptions, type FlyToBoundsOptions, type FlyToGeoOptions, type FlyToOptions, type FocusCalloutConfig, FocusCalloutLayer, type FocusCalloutLayerProps, type FocusContextConfig, FocusContextEffect, type FollowShotOptions, type ForceLayoutConfig, type FreeProviderName, type GPUEdgeRendererConfig, GPULayoutProviderAdapter, type GPUNodeRendererConfig, GPUPositionProvider, type GeoBounds, type GeoEgoRingConfig, GeoEgoRingLayer, type GeoEgoRingLayerProps, type GeoJsonPolygonish, type GeoLocalConfig, GeoLocalLayer, type GeoLocalLayerProps, type GeoPosition, type GeoProjector, type GeoSearchResult, type GeocoderDescriptor, GlobeControl, type GlobeControlConfig, GlobeLayer, type GlobeLayerProps, GraphCanvas, type GraphCanvasProps, GraphContext, type GraphContextValue, GraphControl, type GraphControlConfig, type GraphEvent, type GraphEventHandler, type GraphEventType, type GraphFilterAPI, GraphFilterManager, GraphRenderer, type GraphRendererConfig, type GraphRendererProps, GraphStore, type GraphThemeConfig, type GraphThemeKey, GraphThemes, type GraphViewState, GroupCloud, GroupHitTest, GroupManager, type GroupOptions, type GroupRingRendererBackend, type GroupSnapshot, type GroupSpec, type GroupSphereRendererBackend, type GroupState, GroupsApi, type Heading, type HeatDiffusionConfig, HeatDiffusionEffect, type HelixLayoutOptions, type HiddenState, HistoryApi, type HistoryChangeInfo, type HopPathPoint, type HostFaultReport, HoverApi, type HoverChangeEvent, HoverHandler, type HoverHandlerConfig, type HoverState, type HoverTarget, type IconAtlasConfig, IconAtlasManager, type IconEntry, type IconFontConfigExt, type IconSpec, type ImageArrayConfig, ImageAtlasManager, type ImageEntry, type ImageMappingOptions, type InteractionConfig, InteractionManager, type InteractionManagerConfig, IoApi, type KeyBinding, KeyboardShortcutManager, type KeyboardShortcutManagerConfig, type LabelPosition, type LayerContext, type LayerHitTest, type LayerOptions, type LayerRenderer, LayersApi, LayoutApi, type LayoutControllerInterface, type LayoutEndInfo, type LayoutEngine, type LayoutOutput, type LayoutReadback, type LayoutRegistrar, type LayoutRuntime, type LayoutRuntimeEventMap, LayoutRuntimeImpl, type LayoutRuntimeSnapshot, LegendPanel, type LegendPanelProps, type LinkConfig, type LinkOptions, MAX_BADGE_TEXT_CHARS, MODEL_NODE_FLAG, type MSDFFont, type MSDFGlyph, MapApi, type MapConfig, MapCoordinateProvider, type MapMode, type MapTileProvider, type MapTileProviderDescriptor, MapTileProviders, MapTransition, type MapTransitionConfig, type MapTransitionMode, MarkerLayer, type MarkerLayerProps, MarkerRenderer, type MarkerRendererConfig, type MarkerSpec, MarkersApi, type MatchSpec, MediaAtlas, type MediaAtlasOptions, type MediaCrop, type MediaEffects, type MediaFit, MediaLayer, type MediaLayerConfig, type MediaLayerHandle, type MediaLayerProps, type MediaLayerSpec, type MediaPlaybackEvent, type MediaShape, type MediaTile, type MediaVideoOptions, MediaVideoSource, type MediaVideoSpec, type MenuContext, type MenuGroup, type MenuItem, type MergeConfig, type MergeOptions, type MetricPulseConfig, MetricPulseEffect, type MinimapConfig, MinimapLayer, type MinimapLayerProps, ModelLayer, type ModelLayerHandle, type ModelLayerProps, type ModelLayerSpec, type ModelLoader, type ModelPart, type ModelPartRef, type ModelSource, NODE_RADIUS_PX_PER_SIZE, NOMINATIM_BASE_URL, type NodeBreatheConfig, NodeBreatheEffect, NodeCardCache, type NodeCardCacheOptions, type NodeCardField, NodeCardLayer, type NodeCardLayerConfig, type NodeCardLayerProps, type NodeCardLayerRenderer, type NodeCardLayerSpec, type NodeCardPhoto, type NodeCardSize, type NodeCardSpec, type NodeCardTheme, NodeCloud, type NodeCloudConfig, type NodeCloudProps, type NodeDefinition, type NodeDragEvent, type NodeEffectConfig, type NodeEffectKind, NodeEffectLayer, type NodeEffectLayerProps, type NodeEffectLifetime, type NodeEffectSpec, type NodeEntranceConfig, NodeEntranceEffect, type NodeEvent, type NodeFilter, type NodeFilterCommonSpec, NodeInfoManager, NodeInfoPanel, type NodeInfoPanelProps, type NodeInfoState, type NodeInput, type NodeLabelExtent, type NodeLike, type NodePickResult, type NodePointerEvent, type NodePredicateFn, type NodeProps, NodeQuery, type NodeRenderState, type NodeRendererBackend, type NodeRippleConfig, NodeRippleEffect, type NodeSelector, type NodeShaderAttribute, type NodeShaderLayerSpec, type NodeSizeConfig, NodeSizeService, NodesApi, type OrbitShotOptions, OverlaysApi, PANEL_BAND_OFFSET, type ParsedDate, type ParsedSelector, type PathHighlightConfig, PathHighlightEffect, PathHighlightLayer, type PathHighlightLayerConfig, type PathHighlightLayerProps, type PathHighlightSpec, type PathShotOptions, type PickResult, type PickType, Picker, PickerUtils, type PinnedState, PitchToggleButton, type PitchToggleButtonProps, type Platform, PlatformAdapter, PlaybackApi, type PlaybackConfig, type PlaybackOptions, type PluginInstallContext, type PointerEventBase, type PointerModifiers, PolygonApi, type PolygonConfig, type PolygonItem, PolygonLayer, type PolygonLayerProps, type PolygonSpec, type PositionMode, type PositionProvider, type PredicateFilter, type PropertyColorConfig, PropertyColorEffect, PropertyTween, type PropertyTweenConfig, QueryApi, QuickCreatePanel, type QuickCreatePanelProps, type RGB, type RadarPlane, RadarSweepLayer, type RadarSweepLayerConfig, type RadarSweepLayerProps, type RadarSweepLayerSpec, type RangeFilter, type RangeSpec, type RegisterElementTypeOptions, type RelationshipType, type RenderBackend, type RenderBackendType, RenderEngineApi$1 as RenderEngineApi, EventBus as RenderEventBus, type FaultKind as RenderFaultKind, type RenderPathId, RendererApi, type ResolvedLabelExtent, type ResolvedMediaStyle, type ResolvedMenuItem, type ResolvedMenuSection, type ResolvedNodeCardTheme, ScaledLODRadial, type ScanAxis, type ScanMode, ScanPlaneLayer, type ScanPlaneLayerConfig, type ScanPlaneLayerProps, type ScanPlaneLayerSpec, SchemaApi, type SchemaCallbacks, type Scope, type ScreenshotOptions, type SearchOptions, SelectionApi, type SelectionChangeEvent, SelectionManager, type SelectionMode$1 as SelectionMode, type SelectionState, SelfLoopCloud, type SelfLoopCloudConfig, SetPositionsCommand, type ShellLayoutOptions, type ShortcutCategory, type ShortcutCommand, type ShortcutCommandDefinition, type ShortcutConfig, type ShortcutOptions, type Shot, type ShotFrame, type ShotMark, type ShotStart, type SizeMappingOptions, type SkillContext, type SkillDef, type SkillInput, type SkillResult, SkillsApi, SlippyMapFlat, type SlippyMapFlatConfig, SlippyMapGlobe, type SlippyMapGlobeConfig, type SnapshotDiff, StaticPositionProvider, StyleApi, StyleMapper, type StyleRule, type Stylesheet$1 as Stylesheet, Stylesheet as StylesheetEngine, type TagId, type TagSpec, type TextAlign, TextCloud, type TextCloudConfig, type TextItem, TextLayer, type TextLayerProps, type TileUrlFn, Timeline, type TimelineAnnotation, TimelineApi, type Bin as TimelineBin, TimelineCanvas, type TimelineCanvasProps, type TimelineData, type TimelineEvent, type TimelineMeasure, type TimelinePlayOptions, type TimelineProps, type TimelineReplayConfig, TimelineReplayEffect, type TimelineTarget, type ToolItem, type ToolItemAction, type ToolItemParent, type ToolItemToggle, type ToolPriority, ToolRegistry$1 as ToolRegistry, type ToolSeparator, Toolbar, type ToolbarAction, type ToolbarContext, type ToolbarControlledProps, type ToolbarPlugin, type ToolbarProps, type ToolbarState, type TopologyFilter, TransformApi, type TransformResult, type TransitionOptions, type TransitionPhase, TypesApi, UiApi, type UniformValue, type Unsubscribe$1 as Unsubscribe, type UpdateStrategy$1 as UpdateStrategy, UpdateStrategy as UpdateStrategyImpl, type UserShortcutConfig, type VectorTileStyle, type ViewEvent, type ViewEventHandler, type ViewEventType, type ViewInfo, type ViewRegistrationOptions, ViewRegistry, type ViewState, VisualMapper, type WarpShotOptions, WarpTunnelLayer, type WarpTunnelLayerConfig, type WarpTunnelLayerProps, type WarpTunnelLayerSpec, type WaypointHit, WebGPUBackendNotReadyError, advanceByGranularity, anchorOffsetAround, arrowFragmentShader, arrowVertexShader, boundingSphere, buildBuildingGeometry, buildMediaFragment, buildMediaHitMask, buildNodeEffectFragment, buildRadarDiscFragment, buildRadarPingFragment, buildScanGlowFragment, buildScanSheetFragment, buildShaderSources, buildSpectrumFragment, buildWarpFragment, buildingsAlong, cartesian2Polar, computeAirborne, computeEgoRing, copyShotFrame, createAudioSpectrum, createAudioSpectrumLayer, createBuildingsLayer, createCameraDirector, createCinematics, createDefaultItems, createDefaultRegistry, createEdgeFlowLayer, createEdgeTextCloud, createFocusCalloutLayer, createMediaLayer, createModelLayer, createNodeCardLayer, createNodeEffectLayer, createNodeShaderLayer, createPathHighlightLayer, createRadarSweepLayer, createRenderBackend, createScanPlaneLayer, createTextCloud, createVectorTileProvider, createWarpTunnelLayer, defaultEdgeStyles, defaultNodeStyles, defaultStylesheet, deg2Rad, detectDateProperty, dirtyFlagToAttributes, divergingColorScale, dollyZoomShot, easeIn, easeInOut, easeOut, easeOutBack, edgeFragmentShader, edgeVertexShader, establishShot, findFirstImage, fitBounds, fitDistance, fitText, followShot, formatDate, frameShot, getAttributesToUpdate, getBaseWorldRadius, getColorScheme, getEdgeClassifier, getGlobalViewRegistry, getNodeShaderSize, getNodeShaderSizeByValue, getNodeWorldRadius, getNodeWorldRadiusBySize, getProviderTileUrl, getScaleFn, headingQuaternion, helixLayout, hexToRgb, isImageUrl, loadModel, loadModelParts, loadPhoto, makeShotFrame, markAt, mediaNeedsTime, nextGranularity, nodeEffectRunLength, nodeFragmentShader, nodeVertexShader, nominatimGeocoder, normalizeEdgeIds, normalizeNodeIds, orbitShot, ordinalColorScale, paintNodeCard, parseDate, parseNominatim, pathShot, pickingFragmentShader, pickingVertexShader, polar2Cartesian, prevGranularity, rad2Deg, radialLabelPlacement, registerCinematicLayouts, renderOrderForSlot, requiresStructureRebuild, resetGlobalViewRegistry, resolveCaptionText, resolveNodeCardTheme, resolveNodeTitle, resolveTimelineMessages, scanPosition, selfLoopFragmentShader, selfLoopVertexShader, sequentialColorScale, shellLayout, sqrtScale, thresholdColorScale, truncateToGranularity, uniformGlslType, useAtlasManagers, useCamera, useCloudScene, useEffectiveMapProjection, useEngineLayer, useGraph, useGraphFilter, useGraphHandle, useGraphStore, useGraphVersion, useInteraction, useInvalidate, useIs3D, useIsMapMode, useLayer, useLayoutController, useLayoutPositionProvider, useMapDamping, useMapSphereRadius, useOptionalRenderEngineApi, useRenderEngineApi, useScene, useTextScales, useTheme, useTimelineData, useToolbarState, useViewStateField, vectorDark, videoTileFor, warpShot };