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 | Vec3 | Centre of the whole figure. Default the origin. |
length | number 16 per node | Length along the axis. |
order | (node: NodeData, index: number) => string | number | Sort key per node. Numbers and strings both work (strings compare
lexicographically). Omit to keep the graph's own order. |
radius | number | Helix radius. Default 60. |
strands | number | Interleaved strands. 2 is the DNA look and splits a bipartite graph nicely. Default 1. |
taper | number | Radius 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
| | |
|---|
edges | string[] | |
nodes | string[] | |
HistoryChangeInfo
Payload for onHistoryChange. Fired after every undo-able mutation,
after undo(), and after redo().
interface HistoryChangeInfo {
canRedo: boolean;
canUndo: boolean;
lastAction: string;
}
Fields
| | |
|---|
canRedo | boolean | |
canUndo | boolean | |
lastAction | string | Human-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
| | |
|---|
causedFallback | boolean | |
faultKind | "device-lost" | "shader-compile-failed" | |
occurredAt | number | The 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. |
reportId | string | |
resultingPathId | RenderFaultPathId | |
sanitizedReason | "device-lost" | "shader-compile-failed" | |
HoverChangeEvent
interface HoverChangeEvent {
current: object;
previous: object;
screenPosition: object;
}
Fields
| | |
|---|
current | object | Current hovered element |
previous | object | Previous hovered element |
screenPosition | object | Screen position |
HoverHandlerConfig
interface HoverHandlerConfig {
debounceMs?: number;
delayMs?: number;
enabled?: boolean;
leaveDelayMs?: number;
throttleMs?: number;
}
Fields
| | |
|---|
debounceMs | number | |
delayMs | number | Delay before showing hover (after throttle admits a pick) |
enabled | boolean | Enable hover detection |
leaveDelayMs | number | Asymmetric 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 | number | Minimum 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
| | |
|---|
edgeId | string | Currently hovered edge ID (null if none) |
nodeId | string | Currently hovered node ID (null if none) |
screenPosition | object | Screen 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
| | |
|---|
id | string | |
kind | "node" | "edge" | |
IconAtlasConfig
interface IconAtlasConfig {
columns: number;
iconCount: number;
rows: number;
texture: Texture;
}
Fields
| | |
|---|
columns | number | Number of columns in the atlas |
iconCount | number | Total icon count |
rows | number | Number of rows in the atlas |
texture | Texture | Atlas texture |
IconEntry
Resolved icon entry with atlas UV coordinates.
interface IconEntry {
fontFamily: string;
u0: number;
u1: number;
unicode: string;
v0: number;
v1: number;
}
Fields
| | |
|---|
fontFamily | string | Source font family |
u0 | number | UV coordinates in the SDF atlas [u0, v0, u1, v1] |
u1 | number | |
unicode | string | Resolved unicode character |
v0 | number | |
v1 | number | |
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
| | |
|---|
fontFamily | string | CSS font-family name |
fontWeight | string "normal" | Font weight |
glyphMap | Record<string, string | number> | Map of icon name → unicode character or codepoint number, e.g. { star: "\uf005" } or { star: 0xf005 } |
name | string | Short name used as prefix, e.g. "fa" → "fa:star" |
url | string | URL 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. |
fontFamily | string | |
fontWeight | string | |
glyphMap | Record<string, string | number> | |
name | string | |
url | string | |
IconMapping
Icon mapping: property value → icon
interface IconMapping {
defaultIcon?: string;
iconMap?: Record<string, string>;
iconNameProperty?: string;
property?: string;
}
Fields
| | |
|---|
defaultIcon | string | Default icon when property value is empty/not found |
iconMap | Record<string, string> | Property value → icon name mapping |
iconNameProperty | string | Read which property as icon name |
property | string | OR: 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
| | |
|---|
height | number | Image height |
layerCount | number | Current layer count |
maxLayers | number | Maximum layers |
texture | Texture | 2D array texture for avatars |
width | number | Image width |
ImageEntry
interface ImageEntry {
u0: number;
u1: number;
url: string;
v0: number;
v1: number;
}
Fields
| | |
|---|
u0 | number | UV coordinates in the image atlas [u0, v0, u1, v1] |
u1 | number | |
url | string | Source URL |
v0 | number | |
v1 | number | |
ImageMappingOptions
interface ImageMappingOptions {
category?: string;
}
Fields
| | |
|---|
category | string | Restrict to a specific category |
ImageUrlMapping
Image URL mapping: property value → image URL
interface ImageUrlMapping {
fallbackUrl?: string;
property: string;
urlTemplate?: string;
}
Fields
| | |
|---|
fallbackUrl | string | Fallback image URL when property value is empty |
property | string | Property key to read as image URL |
urlTemplate | string | URL 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
| | |
|---|
edgeIdToIndex | Map<string, number> | |
edgeIndexToId | string[] | |
edgeSourceIndices | Uint32Array | |
edgeTargetIndices | Uint32Array | |
nodeIdToIndex | Map<string, number> | |
nodeIndexToId | string[] | |
textureSize | number | |
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 | boolean | Enable node dragging |
edgePickingAreaSize | number | Edge picking area size (pixels) |
edgePickingEnabled | boolean | Enable edge picking |
hoverDebounceMs | number | Hover debounce time in ms |
hoverEnabled | boolean | Enable hover detection |
nodePickingEnabled | boolean | Enable 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 | Object3D | The cloudScene object for GraphControl |
coordinator | InteractionCoordinatorConfig | Interaction coordinator configuration |
drag | DragHandlerConfig | Drag handler configuration |
dragEnabled | boolean | Enable node dragging |
edgeCreate | EdgeCreateHandlerConfig | Edge create handler configuration |
edgePickingAreaSize | number | Edge picking area size (pixels) |
edgePickingEnabled | boolean | Enable edge picking |
graphControl | GraphControlConfig | Graph control configuration (pan/zoom/rotate) |
hover | HoverHandlerConfig | Hover handler configuration |
hoverDebounceMs | number | Hover debounce time in ms |
hoverEnabled | boolean | Enable hover detection |
nodePickingEnabled | boolean | Enable node picking |
pathSelect | PathSelectConfig | Path select configuration |
shortcuts | false | KeyboardShortcutManagerConfig | Keyboard shortcut configuration. Set to false to disable shortcuts entirely. |
KeyBinding
interface KeyBinding {
alt?: boolean;
ctrl?: boolean;
key: string;
mod?: boolean;
shift?: boolean;
}
Fields
| | |
|---|
alt | boolean | Alt (Win/Linux) or Option (Mac) |
ctrl | boolean | Force Ctrl even on Mac (not remapped to Cmd) |
key | string | Primary key: "a", "s", "delete", "escape", "ArrowUp" |
mod | boolean | Mod key: Ctrl (Win/Linux) or Cmd (Mac) |
shift | boolean | Shift modifier |
KeyboardShortcutManagerConfig
interface KeyboardShortcutManagerConfig {
debug?: boolean;
platformAdapter?: PlatformAdapter;
target?: EventTarget;
}
Fields
| | |
|---|
debug | boolean | Enable debug logging |
platformAdapter | PlatformAdapter | PlatformAdapter instance (shared or custom) |
target | EventTarget | Target 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
| | |
|---|
camera | PerspectiveCamera | The (stationary) engine camera. Read-only for layers. |
cloudScene | Group | The group ALL layer objects must be added to (never scene). |
getDrawingBufferSize | () => object | Current 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) => number | Current 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) => number | Current render opacity of a node (1 = full, <1 = dimmed). Same dim
sources as getEdgeOpacity. Returns 1 for unknown nodes. |
iconAtlasManager | IconAtlasManager | Icon atlas manager. May be null early in mount — always guard. |
invalidate | () => void | Request a render. Call after any visual mutation. |
isMapMode | boolean | Whether map (inverse-zoom) mode is active. |
renderOrder | (slot: "top" | "underlay" | "overlay", offset?: number) => number | Compute a non-colliding renderOrder for one of the reserved bands.
See renderOrderForSlot. |
sphereRadius | number | Current globe radius in scene units. 0 = flat/planar (no sphere). |
store | GraphStore | Graph 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) => void | Dispose the layer. Remove Three.js objects and free resources. |
init | (cloudScene: Group, store: GraphStore) => T | Initialize the layer. Add Three.js objects to cloudScene.
Return a handle that will be passed to update() and dispose(). |
update | (handle: T, store: GraphStore) => void | Update 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
| | |
|---|
edges | typeOperator | All edges (for ego/tree layouts that need graph structure) |
nodes | typeOperator | Nodes participating in layout |
positions | ReadonlyMap<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
| | |
|---|
graph | object | |
isFinish | boolean | |
mode | "cpu" | "gpu" | |
needsUpdate | boolean | |
sharedArray | Float32Array | |
LayoutEdgeDeltaPatch
interface LayoutEdgeDeltaPatch {
changes: Partial<Omit<LayoutEdgeRecord, "id" | "index">>;
id: string;
}
Fields
| | |
|---|
changes | Partial<Omit<LayoutEdgeRecord, "id" | "index">> | |
id | string | |
LayoutEdgeRecord
interface LayoutEdgeRecord {
hidden?: boolean;
id: string;
index: number;
source: string;
target: string;
weight?: number;
}
Fields
| | |
|---|
hidden | boolean | |
id | string | |
index | number | |
source | string | |
target | string | |
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
| | |
|---|
durationMs | number | Wall-clock milliseconds since onLayoutStart. |
reason | "stopped" | "converged" | "cancelled" | Why the layout ended. |
type | string | Layout 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
LayoutEngineCapabilities
interface LayoutEngineCapabilities {
mode: LayoutEngineMode;
supportsCpuReadback: boolean;
supportsDimensions: boolean;
supportsGpuTexture: boolean;
supportsIncrementalDelta: boolean;
supportsPinning: boolean;
}
Fields
| | |
|---|
mode | LayoutEngineMode | |
supportsCpuReadback | boolean | |
supportsDimensions | boolean | |
supportsGpuTexture | boolean | |
supportsIncrementalDelta | boolean | |
supportsPinning | boolean | |
LayoutEngineEventMap
interface LayoutEngineEventMap {
error: object;
positionsChanged: object;
settled: object;
started: object;
stopped: object;
tick: LayoutTickResult;
}
Fields
| | |
|---|
error | object | |
positionsChanged | object | |
settled | object | |
started | object | |
stopped | object | |
tick | LayoutTickResult | |
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
LayoutGraphSnapshot
interface LayoutGraphSnapshot {
dimensions: 2 | 3;
edges: LayoutEdgeRecord[];
nodes: LayoutNodeRecord[];
version: number;
}
Fields
LayoutNodeDeltaPatch
interface LayoutNodeDeltaPatch {
changes: Partial<Omit<LayoutNodeRecord, "id" | "index">>;
id: string;
}
Fields
| | |
|---|
changes | Partial<Omit<LayoutNodeRecord, "id" | "index">> | |
id | string | |
LayoutNodeRecord
interface LayoutNodeRecord {
hidden?: boolean;
id: string;
index: number;
mass?: number;
pinned: boolean;
position: Position3D;
size?: number;
}
Fields
| | |
|---|
hidden | boolean | |
id | string | |
index | number | |
mass | number | |
pinned | boolean | |
position | Position3D | |
size | number | |
LayoutOutput
interface LayoutOutput {
positions: Map<string, Vec3>;
}
Fields
| | |
|---|
positions | Map<string, Vec3> | |
LayoutReadback
interface LayoutReadback {
positions: Float32Array<ArrayBufferLike>;
spaceSize: number;
texture: Texture<unknown, TextureEventMap>;
textureSize: number;
}
Fields
| | |
|---|
positions | Float32Array<ArrayBufferLike> | |
spaceSize | number | |
texture | Texture<unknown, TextureEventMap> | |
textureSize | number | |
LayoutRegistrar
The host surface registerCinematicLayouts needs. RenderEngineApi satisfies it.
interface LayoutRegistrar {
layout: object;
}
Fields
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
| | |
|---|
builtin | boolean | True for the layouts shipped with the engine. |
description | string | Human-readable summary, shown in generated UI / agent tool lists. |
fn | (ctx: LayoutContext, options?: unknown) => LayoutResult | |
name | string | Registered name. |
LayoutResult
interface LayoutResult {
positions: Map<string, Vec3>;
}
Fields
| | |
|---|
positions | Map<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
| | |
|---|
afterApplyDelta | object | |
beforeApplyDelta | object | |
engineChanged | object | |
error | object | |
positionsChanged | object | |
positionsInvalidated | object | |
started | object | |
stopped | object | |
LayoutRuntimeSnapshot
interface LayoutRuntimeSnapshot {
dimensions: 2 | 3;
engineId: string;
engineMode: LayoutEngineMode;
graphVersion: number;
layoutVersion: number;
running: boolean;
}
Fields
| | |
|---|
dimensions | 2 | 3 | |
engineId | string | |
engineMode | LayoutEngineMode | |
graphVersion | number | |
layoutVersion | number | |
running | boolean | |
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 | |
didChangePositions | boolean | |
tick | number | |
LegendPanelProps
interface LegendPanelProps {
api: RenderEngineApi;
iconAtlasManager?: IconAtlasManager;
locale?: string;
messages?: Record<string, string>;
minimapVisible?: boolean;
store: GraphStore;
visible?: boolean;
}
Fields
| | |
|---|
api | RenderEngineApi | |
iconAtlasManager | IconAtlasManager | Icon atlas manager for rendering icon glyphs in the style popover |
locale | string | UI 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 | boolean | When minimap is visible, legend limits height to avoid overlap |
store | GraphStore | |
visible | boolean | |
LineLayoutOptions
interface LineLayoutOptions {
axis?: "x" | "y" | "z";
spacing?: number;
}
Fields
| | |
|---|
axis | "x" | "y" | "z" | |
spacing | number | Distance between adjacent nodes along the line. Default 1.5. |
LinkConfig
interface LinkConfig {
relationship?: string;
sourceProperty: string;
targetProperty: string;
}
Fields
| | |
|---|
relationship | string | |
sourceProperty | string | |
targetProperty | string | |
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 | |