types

Types: H–L

Heading

How much a shot turns the graph to face the direction of travel.

  • "keep" — never rotate. The camera slides over the graph. The only safe choice for a flat 2D layout, where turning to face along the path would put the whole sheet edge-on and the nodes would vanish.
  • "lead" — turn PART of the way (see leadStrength). Motion reads as motion, the layout still reads as a layout. The default.
  • "chase" — turn all the way, so the next hop is dead ahead and comes at the viewer. The cockpit shot; it wants a layout with real depth (a 3D force layout, a helix, a shell).
type Heading = "keep" | "lead" | "chase"

HeatDiffusionConfig

interface HeatDiffusionConfig {
  color?: [number, number, number];
  decay?: number;
  delayPerHop?: number;
  holdDuration?: number;
  maxHops?: number;
}

Fields

color [number, number, number]
[1.0, 0.3, 0.1] (warm orange)
Color to spread as [r,g,b] in 0-1 range.
decay number
0.7 (each hop is 70% of previous)
Intensity decay per hop.
delayPerHop number
500
Delay between hops in ms.
holdDuration number
3000
Duration to hold final state before fading in ms. 0 = stay forever.
maxHops number
5
Maximum number of hops.

HelixLayoutOptions

interface HelixLayoutOptions {
  axis?: "x" | "y" | "z";
  centre?: Vec3;
  length?: number;
  order?: (node: NodeData, index: number) => string | number;
  radius?: number;
  strands?: number;
  taper?: number;
  turns?: number;
}

Fields

axis "x" | "y" | "z"The axis the helix runs along. Default "z" — straight into the screen, so it can be flown.
centre Vec3Centre of the whole figure. Default the origin.
length number
16 per node
Length along the axis.
order (node: NodeData, index: number) => string | numberSort key per node. Numbers and strings both work (strings compare lexicographically). Omit to keep the graph's own order.
radius numberHelix radius. Default 60.
strands numberInterleaved strands. 2 is the DNA look and splits a bipartite graph nicely. Default 1.
taper numberRadius at the far end as a multiple of radius — a cone instead of a tube. Default 1.
turns number
one turn per 12 nodes, at least 1.5
Turns over the whole run.

HiddenState

Hidden state: which nodes / edges are currently hidden (blacklist).

interface HiddenState {
  edges: string[];
  nodes: string[];
}

Fields

edgesstring[]
nodesstring[]

HistoryChangeInfo

Payload for onHistoryChange. Fired after every undo-able mutation, after undo(), and after redo().

interface HistoryChangeInfo {
  canRedo: boolean;
  canUndo: boolean;
  lastAction: string;
}

Fields

canRedoboolean
canUndoboolean
lastActionstringHuman-readable label of the most recent action (e.g. "Move node").

HostFaultReport

interface HostFaultReport {
  causedFallback: boolean;
  faultKind: "device-lost" | "shader-compile-failed";
  occurredAt: number;
  reportId: string;
  resultingPathId: RenderFaultPathId;
  sanitizedReason: "device-lost" | "shader-compile-failed";
}

Fields

causedFallbackboolean
faultKind"device-lost" | "shader-compile-failed"
occurredAtnumberThe engine's monotonic clock: performance.now()-based, milliseconds since navigation start (falls back to Date.now() when performance is unavailable). Not epoch time — same clock as the rest of __kinevizPerf.read(), so renderFaults.lastOccurredAt and this value are directly comparable.
reportIdstring
resultingPathIdRenderFaultPathId
sanitizedReason"device-lost" | "shader-compile-failed"

HoverChangeEvent

interface HoverChangeEvent {
  current: object;
  previous: object;
  screenPosition: object;
}

Fields

currentobjectCurrent hovered element
previousobjectPrevious hovered element
screenPositionobjectScreen position

HoverHandlerConfig

interface HoverHandlerConfig {
  debounceMs?: number;
  delayMs?: number;
  enabled?: boolean;
  leaveDelayMs?: number;
  throttleMs?: number;
}

Fields

debounceMs number
delayMs numberDelay before showing hover (after throttle admits a pick)
enabled booleanEnable hover detection
leaveDelayMs numberAsymmetric hover-leave delay (ms). When the picker reports "background" after a node/edge was hovered, wait this long before committing the leave; if the picker returns to a target before then, the pending leave is cancelled. Absorbs boundary jitter without slowing hover-enter.
throttleMs numberMinimum interval in ms between hover-driven picks (leading+trailing throttle). Defaults to HOVER_PICK_INTERVAL_MS (40 ms ≈ 25 Hz).

HoverState

interface HoverState {
  edgeId: string;
  nodeId: string;
  screenPosition: object;
}

Fields

edgeIdstringCurrently hovered edge ID (null if none)
nodeIdstringCurrently hovered node ID (null if none)
screenPositionobjectScreen position of hover

HoverTarget

Identifies the currently-hovered target. kind: "node" covers pointer-driven and programmatic hovers; kind: "edge" is reserved for forward-compat but ignored by the engine (no edge hover support in the store today).

interface HoverTarget {
  id: string;
  kind: "node" | "edge";
}

Fields

idstring
kind"node" | "edge"

IconAtlasConfig

interface IconAtlasConfig {
  columns: number;
  iconCount: number;
  rows: number;
  texture: Texture;
}

Fields

columnsnumberNumber of columns in the atlas
iconCountnumberTotal icon count
rowsnumberNumber of rows in the atlas
textureTextureAtlas texture

IconEntry

Resolved icon entry with atlas UV coordinates.

interface IconEntry {
  fontFamily: string;
  u0: number;
  u1: number;
  unicode: string;
  v0: number;
  v1: number;
}

Fields

fontFamilystringSource font family
u0numberUV coordinates in the SDF atlas [u0, v0, u1, v1]
u1number
unicodestringResolved unicode character
v0number
v1number

IconFontConfig

Icon font configuration for runtime loading. Pure data type — no dependency on any rendering runtime.

Consumers: @kineviz/ontology (for preset icon fonts), @kineviz/gl (for IconAtlasManager.loadFont).

interface IconFontConfig {
  fontFamily: string;
  fontWeight?: string;
  glyphMap: Record<string, string | number>;
  name: string;
  url: string;
}

Fields

fontFamilystringCSS font-family name
fontWeight string
"normal"
Font weight
glyphMapRecord<string, string | number>Map of icon name → unicode character or codepoint number, e.g. { star: "\uf005" } or { star: 0xf005 }
namestringShort name used as prefix, e.g. "fa" → "fa:star"
urlstringURL to woff2 font file (CDN or local)

IconFontConfigExt

Extended font config that optionally carries category groupings. Extends the base IconFontConfig with categories for the icon picker UI.

interface IconFontConfigExt {
  categories?: Record<string, object> | object[];
  fontFamily: string;
  fontWeight?: string;
  glyphMap: Record<string, string | number>;
  name: string;
  url: string;
}

Fields

categories Record<string, object> | object[]Optional category groupings for the icon picker UI.
fontFamilystring
fontWeight string
glyphMapRecord<string, string | number>
namestring
urlstring

IconMapping

Icon mapping: property value → icon

interface IconMapping {
  defaultIcon?: string;
  iconMap?: Record<string, string>;
  iconNameProperty?: string;
  property?: string;
}

Fields

defaultIcon stringDefault icon when property value is empty/not found
iconMap Record<string, string>Property value → icon name mapping
iconNameProperty stringRead which property as icon name
property stringOR: read which property as mapped value

IconSpec

type IconSpec = object | object | object

ImageArrayConfig

interface ImageArrayConfig {
  height: number;
  layerCount: number;
  maxLayers: number;
  texture: Texture;
  width: number;
}

Fields

heightnumberImage height
layerCountnumberCurrent layer count
maxLayersnumberMaximum layers
textureTexture2D array texture for avatars
widthnumberImage width

ImageEntry

interface ImageEntry {
  u0: number;
  u1: number;
  url: string;
  v0: number;
  v1: number;
}

Fields

u0numberUV coordinates in the image atlas [u0, v0, u1, v1]
u1number
urlstringSource URL
v0number
v1number

ImageMappingOptions

interface ImageMappingOptions {
  category?: string;
}

Fields

category stringRestrict to a specific category

ImageUrlMapping

Image URL mapping: property value → image URL

interface ImageUrlMapping {
  fallbackUrl?: string;
  property: string;
  urlTemplate?: string;
}

Fields

fallbackUrl stringFallback image URL when property value is empty
propertystringProperty key to read as image URL
urlTemplate stringURL template with {value} placeholder. E.g., 'https://cdn.example.com/{value}.jpg'

IndexSystem

Index system interface — ID ↔ GPU index mapping.

interface IndexSystem {
  edgeIdToIndex: Map<string, number>;
  edgeIndexToId: string[];
  edgeSourceIndices: Uint32Array;
  edgeTargetIndices: Uint32Array;
  nodeIdToIndex: Map<string, number>;
  nodeIndexToId: string[];
  textureSize: number;
}

Fields

edgeIdToIndexMap<string, number>
edgeIndexToIdstring[]
edgeSourceIndicesUint32Array
edgeTargetIndicesUint32Array
nodeIdToIndexMap<string, number>
nodeIndexToIdstring[]
textureSizenumber

InteractionConfig

interface InteractionConfig {
  backgroundColorIndices?: number[];
  dragEnabled?: boolean;
  edgePickingAreaSize?: number;
  edgePickingEnabled?: boolean;
  hoverDebounceMs?: number;
  hoverEnabled?: boolean;
  nodePickingEnabled?: boolean;
}

Fields

backgroundColorIndices number[]Background color indices to ignore (e.g., [0, 0xffffff, 0xF5F5F5])
dragEnabled booleanEnable node dragging
edgePickingAreaSize numberEdge picking area size (pixels)
edgePickingEnabled booleanEnable edge picking
hoverDebounceMs numberHover debounce time in ms
hoverEnabled booleanEnable hover detection
nodePickingEnabled booleanEnable node picking

InteractionManagerConfig

interface InteractionManagerConfig {
  backgroundColorIndices?: number[];
  cloudScene?: Object3D;
  coordinator?: InteractionCoordinatorConfig;
  drag?: DragHandlerConfig;
  dragEnabled?: boolean;
  edgeCreate?: EdgeCreateHandlerConfig;
  edgePickingAreaSize?: number;
  edgePickingEnabled?: boolean;
  graphControl?: GraphControlConfig;
  hover?: HoverHandlerConfig;
  hoverDebounceMs?: number;
  hoverEnabled?: boolean;
  nodePickingEnabled?: boolean;
  pathSelect?: PathSelectConfig;
  shortcuts?: false | KeyboardShortcutManagerConfig;
}

Fields

backgroundColorIndices number[]Background color indices to ignore (e.g., [0, 0xffffff, 0xF5F5F5])
cloudScene Object3DThe cloudScene object for GraphControl
coordinator InteractionCoordinatorConfigInteraction coordinator configuration
drag DragHandlerConfigDrag handler configuration
dragEnabled booleanEnable node dragging
edgeCreate EdgeCreateHandlerConfigEdge create handler configuration
edgePickingAreaSize numberEdge picking area size (pixels)
edgePickingEnabled booleanEnable edge picking
graphControl GraphControlConfigGraph control configuration (pan/zoom/rotate)
hover HoverHandlerConfigHover handler configuration
hoverDebounceMs numberHover debounce time in ms
hoverEnabled booleanEnable hover detection
nodePickingEnabled booleanEnable node picking
pathSelect PathSelectConfigPath select configuration
shortcuts false | KeyboardShortcutManagerConfigKeyboard shortcut configuration. Set to false to disable shortcuts entirely.

KeyBinding

interface KeyBinding {
  alt?: boolean;
  ctrl?: boolean;
  key: string;
  mod?: boolean;
  shift?: boolean;
}

Fields

alt booleanAlt (Win/Linux) or Option (Mac)
ctrl booleanForce Ctrl even on Mac (not remapped to Cmd)
keystringPrimary key: "a", "s", "delete", "escape", "ArrowUp"
mod booleanMod key: Ctrl (Win/Linux) or Cmd (Mac)
shift booleanShift modifier

KeyboardShortcutManagerConfig

interface KeyboardShortcutManagerConfig {
  debug?: boolean;
  platformAdapter?: PlatformAdapter;
  target?: EventTarget;
}

Fields

debug booleanEnable debug logging
platformAdapter PlatformAdapterPlatformAdapter instance (shared or custom)
target EventTargetTarget element to listen on. Defaults to document.

LLMAdapter

Non-streaming LLM adapter — used by the Skills system. Returns the complete response as a string.

interface LLMAdapter {
  complete: unknown;
}

LabelPosition

type LabelPosition = "left" | "right" | "top" | "bottom" | "topCenter" | "bottomCenter" | "vertical"

LayerContext

The narrow context surface handed to a layer. This is intentionally a strict subset of the full GraphContext value: layers receive only what they need to render, never the engine's mutable internals.

interface LayerContext {
  camera: PerspectiveCamera;
  cloudScene: Group;
  getDrawingBufferSize: () => object;
  getEdgeOpacity: (edgeId: string) => number;
  getHitTest?: () => LayerHitTest;
  getNodeOpacity: (nodeId: string) => number;
  iconAtlasManager: IconAtlasManager;
  invalidate: () => void;
  isMapMode: boolean;
  renderOrder: (slot: "top" | "underlay" | "overlay", offset?: number) => number;
  sphereRadius: number;
  store: GraphStore;
}

Fields

cameraPerspectiveCameraThe (stationary) engine camera. Read-only for layers.
cloudSceneGroupThe group ALL layer objects must be added to (never scene).
getDrawingBufferSize() => objectCurrent drawing-buffer size in device pixels. Needed by billboard layers to size screen-space quads (mirrors the engine's resolution uniform). Returns {1,1} before the renderer exists; read it each frame.
getEdgeOpacity(edgeId: string) => numberCurrent render opacity of an edge (1 = full, <1 = dimmed). Reflects focus/context dimming (emphasis.focusContext), collapsed groups, etc. A plug-in layer reads this each frame to follow the same dim state as the core node/edge clouds — e.g. a marker travelling a dimmed edge fades with it. Returns 1 for unknown edges.
getHitTest () => LayerHitTest
the
Node picking hook. Returns null when the engine has no picker yet (very early mount) or when the active render path owns picking itself. A layer that draws its own geometry is NOT clickable by engine's picking pass only rasterises the BUILT-IN node quad, whose size comes from nodeSize * nodeSizeScale (see picking.vert.glsl). A layer drawing at sizeFactor: 10 therefore paints a panel ten times larger than its own hitbox, and clicks land on the background everywhere except a small patch at the node centre. Register a hit mesh here and the hitbox becomes exactly the geometry you drew. Read it lazily (inside mount/frame), never cache the result across a renderer re-init.
getNodeOpacity(nodeId: string) => numberCurrent render opacity of a node (1 = full, <1 = dimmed). Same dim sources as getEdgeOpacity. Returns 1 for unknown nodes.
iconAtlasManagerIconAtlasManagerIcon atlas manager. May be null early in mount — always guard.
invalidate() => voidRequest a render. Call after any visual mutation.
isMapModebooleanWhether map (inverse-zoom) mode is active.
renderOrder(slot: "top" | "underlay" | "overlay", offset?: number) => numberCompute a non-colliding renderOrder for one of the reserved bands. See renderOrderForSlot.
sphereRadiusnumberCurrent globe radius in scene units. 0 = flat/planar (no sphere).
storeGraphStoreGraph data + selection/visibility/position state.

LayerHitTest

The picking surface a layer needs to make its own geometry clickable.

Register a mesh whose fragment shader writes encodeNodeId's colour and the engine's existing node-pick read path resolves it to the same NodePickResult a built-in node click produces — selection, hover, context menu and drag all follow for free.

Contract for the mesh:

  • its material writes gl_FragColor = vec4(idColour, 1.0) and discards wherever the layer draws nothing (otherwise the quad corners steal clicks);
  • frustumCulled must be false (the engine's picking scenes have no frustum to cull against);
  • the engine applies cloudScene's transform to it before every pick, so it must NOT be parented to cloudScene.
interface LayerHitTest {
  addNodeHitMesh: unknown;
  encodeNodeId: unknown;
  removeNodeHitMesh: unknown;
}

LayerOptions

interface LayerOptions {
  dispose: (handle: T, cloudScene: Group) => void;
  init: (cloudScene: Group, store: GraphStore) => T;
  update?: (handle: T, store: GraphStore) => void;
}

Fields

dispose(handle: T, cloudScene: Group) => voidDispose the layer. Remove Three.js objects and free resources.
init(cloudScene: Group, store: GraphStore) => TInitialize the layer. Add Three.js objects to cloudScene. Return a handle that will be passed to update() and dispose().
update (handle: T, store: GraphStore) => voidUpdate the layer when store data changes. Called on every store version change.

LayerRenderer

The imperative contract a layer's renderer must implement. Config is the layer's domain-agnostic configuration object (no business params).

interface LayerRenderer {
  dispose: unknown;
  frame?: unknown;
  mount: unknown;
  onMapMode?: unknown;
  update?: unknown;
}

LayoutContext

interface LayoutContext {
  edges: typeOperator;
  nodes: typeOperator;
  positions: ReadonlyMap<string, Vec3>;
}

Fields

edgestypeOperatorAll edges (for ego/tree layouts that need graph structure)
nodestypeOperatorNodes participating in layout
positionsReadonlyMap<string, Vec3>Current positions: nodeId → [x, y, z]

LayoutControllerInterface

GPU Layout Controller interface for position texture integration

interface LayoutControllerInterface {
  graph: object;
  isFinish?: boolean;
  mode?: "cpu" | "gpu";
  needsUpdate?: boolean;
  sharedArray?: Float32Array;
  clearNeedsUpdate?: unknown;
  getDimensions: unknown;
  getPositions?: unknown;
  getPositionTexture: unknown;
  getSpaceSize: unknown;
  getTextureSize: unknown;
  pinNodes?: unknown;
  readBackPositions?: unknown;
  start?: unknown;
  stop?: unknown;
  tick: unknown;
  transitionDimensions: unknown;
  unpinNodes?: unknown;
}

Fields

graphobject
isFinish boolean
mode "cpu" | "gpu"
needsUpdate boolean
sharedArray Float32Array

LayoutEdgeDeltaPatch

interface LayoutEdgeDeltaPatch {
  changes: Partial<Omit<LayoutEdgeRecord, "id" | "index">>;
  id: string;
}

Fields

changesPartial<Omit<LayoutEdgeRecord, "id" | "index">>
idstring

LayoutEdgeRecord

interface LayoutEdgeRecord {
  hidden?: boolean;
  id: string;
  index: number;
  source: string;
  target: string;
  weight?: number;
}

Fields

hidden boolean
idstring
indexnumber
sourcestring
targetstring
weight number

LayoutEndInfo

Payload for onLayoutEnd. The reason is best-effort: the engine emits "converged" when the simulation reached resting state and "stopped" when the host explicitly stopped layout. "cancelled" is emitted when the layout was preempted by another layout call.

interface LayoutEndInfo {
  durationMs: number;
  reason: "stopped" | "converged" | "cancelled";
  type: string;
}

Fields

durationMsnumberWall-clock milliseconds since onLayoutStart.
reason"stopped" | "converged" | "cancelled"Why the layout ended.
typestringLayout type (e.g. "force", "circle", "grid").

LayoutEngine

interface LayoutEngine {
  id: string;
  mode: LayoutEngineMode;
  status: LayoutEngineStatus;
  applyDelta: unknown;
  dispose: unknown;
  getCapabilities: unknown;
  getNodePosition: unknown;
  getReadback: unknown;
  getSettings: unknown;
  init: unknown;
  on: unknown;
  pinNodes: unknown;
  setDimensions: unknown;
  setNodePosition: unknown;
  start: unknown;
  stop: unknown;
  tick: unknown;
  unpinNodes: unknown;
  updateSettings: unknown;
}

Fields

idstring
modeLayoutEngineMode
statusLayoutEngineStatus

LayoutEngineCapabilities

interface LayoutEngineCapabilities {
  mode: LayoutEngineMode;
  supportsCpuReadback: boolean;
  supportsDimensions: boolean;
  supportsGpuTexture: boolean;
  supportsIncrementalDelta: boolean;
  supportsPinning: boolean;
}

Fields

modeLayoutEngineMode
supportsCpuReadbackboolean
supportsDimensionsboolean
supportsGpuTextureboolean
supportsIncrementalDeltaboolean
supportsPinningboolean

LayoutEngineEventMap

interface LayoutEngineEventMap {
  error: object;
  positionsChanged: object;
  settled: object;
  started: object;
  stopped: object;
  tick: LayoutTickResult;
}

Fields

errorobject
positionsChangedobject
settledobject
startedobject
stoppedobject
tickLayoutTickResult

LayoutEngineMode

type LayoutEngineMode = "cpu" | "gpu"

LayoutEngineStatus

type LayoutEngineStatus = "idle" | "running" | "stopped" | "disposed"

LayoutFunction

type LayoutFunction = (context: LayoutContext) => LayoutResult

LayoutGraphDelta

interface LayoutGraphDelta {
  addEdges?: LayoutEdgeRecord[];
  addNodes?: LayoutNodeRecord[];
  graphVersion: number;
  pinPatches?: NodePinPatch[];
  positionPatches?: NodePositionPatch[];
  removeEdgeIds?: string[];
  removeNodeIds?: string[];
  updateEdges?: LayoutEdgeDeltaPatch[];
  updateNodes?: LayoutNodeDeltaPatch[];
}

Fields

addEdges LayoutEdgeRecord[]
addNodes LayoutNodeRecord[]
graphVersionnumber
pinPatches NodePinPatch[]
positionPatches NodePositionPatch[]
removeEdgeIds string[]
removeNodeIds string[]
updateEdges LayoutEdgeDeltaPatch[]
updateNodes LayoutNodeDeltaPatch[]

LayoutGraphSnapshot

interface LayoutGraphSnapshot {
  dimensions: 2 | 3;
  edges: LayoutEdgeRecord[];
  nodes: LayoutNodeRecord[];
  version: number;
}

Fields

dimensions2 | 3
edgesLayoutEdgeRecord[]
nodesLayoutNodeRecord[]
versionnumber

LayoutNodeDeltaPatch

interface LayoutNodeDeltaPatch {
  changes: Partial<Omit<LayoutNodeRecord, "id" | "index">>;
  id: string;
}

Fields

changesPartial<Omit<LayoutNodeRecord, "id" | "index">>
idstring

LayoutNodeRecord

interface LayoutNodeRecord {
  hidden?: boolean;
  id: string;
  index: number;
  mass?: number;
  pinned: boolean;
  position: Position3D;
  size?: number;
}

Fields

hidden boolean
idstring
indexnumber
mass number
pinnedboolean
positionPosition3D
size number

LayoutOutput

interface LayoutOutput {
  positions: Map<string, Vec3>;
}

Fields

positionsMap<string, Vec3>

LayoutReadback

interface LayoutReadback {
  positions: Float32Array<ArrayBufferLike>;
  spaceSize: number;
  texture: Texture<unknown, TextureEventMap>;
  textureSize: number;
}

Fields

positionsFloat32Array<ArrayBufferLike>
spaceSizenumber
textureTexture<unknown, TextureEventMap>
textureSizenumber

LayoutRegistrar

The host surface registerCinematicLayouts needs. RenderEngineApi satisfies it.

interface LayoutRegistrar {
  layout: object;
}

Fields

layoutobject

LayoutRegistration

Layout registry — name → layout function.

Replaces the closed switch that executeLayout used to be. Built-in layouts are registered through the same register() as extensions; the only difference is the name rule: extension names MUST carry a pack: prefix (telecom:rack), built-ins must not. That keeps two extension packs from colliding and keeps the built-in namespace closed.

A registry is a value, not a global: createLayoutRegistry() forks the built-ins into an independent instance so one engine's registrations never leak into another's. defaultLayoutRegistry holds the built-ins only and is what the free function executeLayout reads.

interface LayoutRegistration {
  builtin: boolean;
  description?: string;
  fn: (ctx: LayoutContext, options?: unknown) => LayoutResult;
  name: string;
}

Fields

builtinbooleanTrue for the layouts shipped with the engine.
description stringHuman-readable summary, shown in generated UI / agent tool lists.
fn(ctx: LayoutContext, options?: unknown) => LayoutResult
namestringRegistered name.

LayoutResult

interface LayoutResult {
  positions: Map<string, Vec3>;
}

Fields

positionsMap<string, Vec3>nodeId → target position [x, y, z]

LayoutRuntime

interface LayoutRuntime {
  applyGraphDelta: unknown;
  attachEngine: unknown;
  detachEngine: unknown;
  dispose: unknown;
  getEngine: unknown;
  getNodePosition: unknown;
  getPositions: unknown;
  getPositionTexture: unknown;
  getSnapshot: unknown;
  getSpaceSize: unknown;
  getTextureSize: unknown;
  on: unknown;
  pinNodes: unknown;
  setDimensions: unknown;
  setNodePosition: unknown;
  start: unknown;
  stop: unknown;
  syncFromGraph: unknown;
  tick: unknown;
  unpinNodes: unknown;
  updateSettings: unknown;
}

LayoutRuntimeEventMap

interface LayoutRuntimeEventMap {
  afterApplyDelta: object;
  beforeApplyDelta: object;
  engineChanged: object;
  error: object;
  positionsChanged: object;
  positionsInvalidated: object;
  started: object;
  stopped: object;
}

Fields

afterApplyDeltaobject
beforeApplyDeltaobject
engineChangedobject
errorobject
positionsChangedobject
positionsInvalidatedobject
startedobject
stoppedobject

LayoutRuntimeSnapshot

interface LayoutRuntimeSnapshot {
  dimensions: 2 | 3;
  engineId: string;
  engineMode: LayoutEngineMode;
  graphVersion: number;
  layoutVersion: number;
  running: boolean;
}

Fields

dimensions2 | 3
engineIdstring
engineModeLayoutEngineMode
graphVersionnumber
layoutVersionnumber
runningboolean

LayoutSettings

interface LayoutSettings {
  alpha?: number;
  alphaDecay?: number;
  charge?: number;
  collision?: number;
  dimensions?: 2 | 3;
  gravity?: number;
  linkDistance?: number;
  linkStrength?: number;
  velocityDecay?: number;
  warmupTicks?: number;
}

Fields

alpha number
alphaDecay number
charge number
collision number
dimensions 2 | 3
gravity number
linkDistance number
linkStrength number
velocityDecay number
warmupTicks number

LayoutTickResult

interface LayoutTickResult {
  alpha?: number;
  didChangePositions: boolean;
  tick: number;
}

Fields

alpha number
didChangePositionsboolean
ticknumber

LegendPanelProps

interface LegendPanelProps {
  api: RenderEngineApi;
  iconAtlasManager?: IconAtlasManager;
  locale?: string;
  messages?: Record<string, string>;
  minimapVisible?: boolean;
  store: GraphStore;
  visible?: boolean;
}

Fields

apiRenderEngineApi
iconAtlasManager IconAtlasManagerIcon atlas manager for rendering icon glyphs in the style popover
locale stringUI language. Selects the built-in en / zh / es bundle. Default en.
messages Record<string, string>Optional per-key overrides, layered on top of the locale bundle.
minimapVisible booleanWhen minimap is visible, legend limits height to avoid overlap
storeGraphStore
visible boolean

LineLayoutOptions

interface LineLayoutOptions {
  axis?: "x" | "y" | "z";
  spacing?: number;
}

Fields

axis "x" | "y" | "z"
spacing numberDistance between adjacent nodes along the line. Default 1.5.

LinkConfig

interface LinkConfig {
  relationship?: string;
  sourceProperty: string;
  targetProperty: string;
}

Fields

relationship string
sourcePropertystring
targetPropertystring

LinkOptions

interface LinkOptions {
  matchFn?: (a: unknown, b: unknown) => boolean;
  matchType?: "exact" | "case-insensitive";
  sourceCategory?: string;
  targetCategory?: string;
}

Fields

matchFn (a: unknown, b: unknown) => boolean
matchType "exact" | "case-insensitive"
sourceCategory string
targetCategory string