types

Types: S–T

ScaleLayoutOptions

interface ScaleLayoutOptions {
  factor?: number;
  x?: number;
  y?: number;
  z?: number;
}

Fields

factor number
x number
y number
z number

ScanAxis

type ScanAxis = "x" | "y" | "z"

ScanMode

type ScanMode = "loop" | "pingPong" | "hold"

ScanPlaneLayerConfig

interface ScanPlaneLayerConfig {
  color?: ColorRepresentation;
  glowOpacity?: number;
  mode?: ScanMode;
  period?: number;
  planeOpacity?: number;
  position?: number;
  thickness?: number;
}

Fields

color ColorRepresentation
glowOpacity number
mode ScanMode
period number
planeOpacity number
position number
thickness number

ScanPlaneLayerProps

interface ScanPlaneLayerProps {
  axis?: ScanAxis;
  band?: "top" | "underlay" | "overlay";
  bandOffset?: number;
  color?: ColorRepresentation;
  filter?: (node: NodeData, index: number) => boolean;
  glowOpacity?: number;
  grid?: number;
  maxNodes?: number;
  mode?: ScanMode;
  name?: string;
  onSlice?: (nodeIds: string[], position: number) => void;
  padding?: number;
  period?: number;
  planeOpacity?: number;
  position?: number;
  sizeFactor?: number;
  thickness?: number;
}

Fields

axis ScanAxisWhich way the sheet travels. Default "z" — into the screen.
band "top" | "underlay" | "overlay"
bandOffset number
color ColorRepresentation
filter (node: NodeData, index: number) => boolean
all of them
Nodes eligible for the glow.
glowOpacity numberNode-glow brightness. Default 1.
grid number
span/14
Grid spacing on the sheet, in world units. 0 draws no grid.
maxNodes number
mode ScanMode"loop" restarts at the near face, "pingPong" comes back, "hold" parks it at position so a slider can drive it. Default "loop".
name string
onSlice (nodeIds: string[], position: number) => voidFired as the slab's contents change — the analysis half of the effect, since what the viewer wants next is usually "list what is in this slice". Throttled to ~8/s and only computed when a callback is present.
padding numberExtra room around the graph's bounding box, as a fraction. Default 0.08.
period numberMs for one pass across the graph. Default 5000.
planeOpacity numberSheet brightness. Default 0.55.
position numberWhere the sheet sits, 0..1 across the graph. Only used by "hold".
sizeFactor numberGlow size relative to the node. Default 3.4.
thickness number
6% of the span
Half-thickness of the lit slab, in world units.

ScanPlaneLayerSpec

interface ScanPlaneLayerSpec {
  axis?: ScanAxis;
  band?: "top" | "underlay" | "overlay";
  bandOffset?: number;
  color?: ColorRepresentation;
  filter?: (node: NodeData, index: number) => boolean;
  glowOpacity?: number;
  grid?: number;
  maxNodes?: number;
  mode?: ScanMode;
  onSlice?: (nodeIds: string[], position: number) => void;
  padding?: number;
  period?: number;
  planeOpacity?: number;
  position?: number;
  sizeFactor?: number;
  thickness?: number;
}

Fields

axis ScanAxisWhich way the sheet travels. Default "z" — into the screen.
band "top" | "underlay" | "overlay"
bandOffset number
color ColorRepresentation
filter (node: NodeData, index: number) => boolean
all of them
Nodes eligible for the glow.
glowOpacity numberNode-glow brightness. Default 1.
grid number
span/14
Grid spacing on the sheet, in world units. 0 draws no grid.
maxNodes number
mode ScanMode"loop" restarts at the near face, "pingPong" comes back, "hold" parks it at position so a slider can drive it. Default "loop".
onSlice (nodeIds: string[], position: number) => voidFired as the slab's contents change — the analysis half of the effect, since what the viewer wants next is usually "list what is in this slice". Throttled to ~8/s and only computed when a callback is present.
padding numberExtra room around the graph's bounding box, as a fraction. Default 0.08.
period numberMs for one pass across the graph. Default 5000.
planeOpacity numberSheet brightness. Default 0.55.
position numberWhere the sheet sits, 0..1 across the graph. Only used by "hold".
sizeFactor numberGlow size relative to the node. Default 3.4.
thickness number
6% of the span
Half-thickness of the lit slab, in world units.

ScatterLayoutOptions

interface ScatterLayoutOptions {
  range?: number;
  seed?: number;
  spacing?: number;
}

Fields

range numberHalf-edge of the scatter cube in world units. Auto-scaled from spacing if unset.
seed number
spacing numberPer-node spacing used to auto-derive range when range is unset. Default 1.5.

SchemaCallbacks

interface SchemaCallbacks {
  onResolveCategories?: () => Promise<Category[]>;
  onResolveRelationships?: (sourceId: string, targetId: string) => Promise<RelationshipType[]>;
}

Fields

onResolveCategories () => Promise<Category[]>Resolve all categories available for a new node.
onResolveRelationships (sourceId: string, targetId: string) => Promise<RelationshipType[]>Resolve valid relationship types between two nodes (creation flow).

Scope

Default scope: '*' means all categories / relationships.

type Scope = string | string[] | "*"

ScreenshotOptions

interface ScreenshotOptions {
  background?: string;
  height?: number;
  hideUI?: boolean;
  width?: number;
}

Fields

background string
height number
hideUI boolean
width number

SearchOptions

Optional knobs for a geocoder query.

interface SearchOptions {
  language?: string;
  limit?: number;
  signal?: AbortSignal;
}

Fields

language stringBCP-47 language tag. Passed as accept-language to Nominatim.
limit numberResult count cap. Default 10.
signal AbortSignalAbort signal. Pass from React effect cleanup to cancel inflight.

SelectionChangeEvent

interface SelectionChangeEvent {
  addedEdgeIds: string[];
  addedNodeIds: string[];
  mode: SelectionMode;
  removedEdgeIds: string[];
  removedNodeIds: string[];
  selection: SelectionState;
}

Fields

addedEdgeIdsstring[]Edge IDs affected by this change
addedNodeIdsstring[]Node IDs affected by this change
modeSelectionModeSelection operation type
removedEdgeIdsstring[]
removedNodeIdsstring[]
selectionSelectionStateCurrent selection state after change

SelectionMode

type SelectionMode = "replace" | "add" | "remove" | "toggle"

SelectionState

Selection state: which nodes / edges are currently selected.

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

Fields

edgesstring[]
nodesstring[]

SelfLoopCloudConfig

interface SelfLoopCloudConfig {
  centerOffsetMult?: number;
  lineWidth?: number;
  loopRadiusMult?: number;
  maxLoops?: number;
  segments?: number;
}

Fields

centerOffsetMult numberLoop center offset multiplier (relative to node size)
lineWidth numberLine width
loopRadiusMult numberLoop radius multiplier (relative to node size)
maxLoops numberMaximum number of self-loops
segments numberNumber of segments per arc

ShapeMapping

Shape mapping: property value → node shape. Shapes are the built-in names ("circle", "rect", "roundRect", "diamond", "triangle", "hexagon", "star", "ring") or their ids; the renderer validates them when the config is set.

interface ShapeMapping {
  defaultShape?: string | number;
  property: string;
  shapeMap: Record<string, string | number>;
}

Fields

defaultShape string | numberShape when the value is empty / not in shapeMap (falls back to the category's defaultShape)
propertystringProperty to read
shapeMapRecord<string, string | number>Property value → shape

ShellLayoutOptions

interface ShellLayoutOptions {
  centre?: Vec3;
  orphanHop?: number;
  roots?: string[];
  spacing?: number;
  sphere?: boolean;
  stagger?: boolean;
}

Fields

centre Vec3Centre of the shells. Default the origin.
orphanHop number
one past the furthest
Where unreachable nodes go, as a hop number.
roots string[]
the single highest-degree node
Where to measure from.
spacing numberRadius of the first shell; hop k sits at spacing * k. Default 90.
sphere booleanSpread each shell over a sphere (default) or a flat ring.
stagger booleanRotate each shell so neighbouring shells do not line up. Default true.

ShiftLayoutOptions

interface ShiftLayoutOptions {
  x?: number;
  y?: number;
  z?: number;
}

Fields

x number
y number
z number

ShortcutCategory

type ShortcutCategory = "navigation" | "selection" | "editing" | "creation" | "view" | "data" | "tools" | "groups"

ShortcutCommand

interface ShortcutCommand {
  activeBinding: KeyBinding;
  category: ShortcutCategory;
  defaultBinding: KeyBinding;
  handler?: () => void;
  id: string;
  label: string;
  when?: string;
}

Fields

activeBindingKeyBindingCurrent active binding (may differ from default if user overrode)
categoryShortcutCategoryCategory for UI grouping
defaultBindingKeyBindingDefault key binding
handler () => voidHandler function. Can be provided at registration or bound later.
idstringUnique ID, e.g. "sel.selectAll"
labelstringInternationalization key for display label
when stringContext condition: shortcut only active when this evaluates true

ShortcutCommandDefinition

interface ShortcutCommandDefinition {
  category: ShortcutCategory;
  defaultBinding: KeyBinding;
  id: string;
  label: string;
  when?: string;
}

Fields

categoryShortcutCategoryCategory for UI grouping
defaultBindingKeyBindingDefault key binding
idstringUnique ID, e.g. "sel.selectAll"
labelstringInternationalization key for display label
when stringContext condition: shortcut only active when this evaluates true

ShortcutConfig

interface ShortcutConfig {
  incomingRelationship?: string;
  outgoingRelationship?: string;
  through: string;
}

Fields

incomingRelationship string
outgoingRelationship string
throughstring

ShortcutOptions

interface ShortcutOptions {
  aggregate?: object[];
  countPaths?: boolean;
  countProperty?: string;
  newRelationship?: string;
  sourceCategory?: string;
  targetCategory?: string;
}

Fields

aggregate object[]
countPaths boolean
countProperty string
newRelationship string
sourceCategory string
targetCategory string

Shot

One camera move. Built by the *Shot factories below.

interface Shot {
  duration: number;
  marks?: typeOperator;
  name: string;
  sample: unknown;
}

Fields

durationnumberTotal length in ms. Infinity means "until stopped".
marks typeOperatorThe points this shot stops at, with their times. Absent on shots that stop nowhere (an orbit, a dolly zoom). See ShotMark.
namestring

ShotFrame

Where the graph should be, and how the lens should be set, at one instant.

interface ShotFrame {
  distance: number;
  focus: Vector3;
  fov: number;
  orientation: Quaternion;
  warp: number;
}

Fields

distancenumberDistance from the camera to focus, in world units. Always > 0.
focusVector3The point (in cloudScene local space) to hold at the screen centre.
fovnumberVertical FOV in degrees, or null to leave the lens where it is.
orientationQuaternionWhat cloudScene.quaternion becomes.
warpnumberWarp intensity, 0..1 — how hard the flight is pushing. Nothing in the camera maths reads it; it is published for layers that draw speed (see WarpTunnelLayer), which is why a shot and its streaks cannot fall out of sync.

ShotMark

A moment in a shot worth telling somebody about — "the flight is at waypoint 3 now".

A shot cannot call a callback: sample is a pure function of time, which is what makes a shot scrubbable, re-samplable and testable at an exact millisecond. So a shot does not fire events; it PUBLISHES its schedule, and CameraDirector, which is the thing that owns a clock, turns that schedule into events.

That split is what makes "arrived at waypoint" survive scrubbing. The director tracks which mark is current rather than watching for crossings, so dragging a cursor backwards reports the earlier waypoint instead of either nothing or a burst of spurious arrivals.

interface ShotMark {
  at: number;
  index: number;
  leaves: number;
  point: Vector3;
  until: number;
}

Fields

atnumberMs from the shot's start at which it arrives.
indexnumberIndex into the shot's own list of points.
leavesnumberMs at which it starts moving on again — at plus the hold.
pointVector3Where it is, in cloudScene local space.
untilnumberMs at which the NEXT mark takes over; the last one holds to the end. So marks tile the shot with no gaps after the first arrival, and the waypoint "current" during a segment is the one just left — which is the one whose label the viewer is still reading.

ShotStart

The lens and the view a shot starts from.

interface ShotStart {
  baseFov: number;
  frame: ShotFrame;
}

Fields

baseFovnumberThe camera's resting FOV in degrees — what fov: null means.
frameShotFrame

SizeMapping

Size mapping: property value → node size

interface SizeMapping {
  defaultSize?: number;
  domain?: [number, number];
  property: string;
  range: [number, number];
  scale: "linear" | "log" | "sqrt";
}

Fields

defaultSize numberDefault size when property value is null/non-numeric
domain [number, number]Property value range [min, max]. Leave empty = auto-compute from data
propertystringProperty key to read from node.properties
range[number, number]Output size range [minSize, maxSize]
scale"linear" | "log" | "sqrt"Mapping method

SizeMappingOptions

interface SizeMappingOptions {
  category?: string;
  maxSize?: number;
  minSize?: number;
  scale?: "linear" | "log" | "sqrt";
}

Fields

category stringRestrict to a specific category
maxSize number
30
Maximum output size
minSize number
5
Minimum output size
scale "linear" | "log" | "sqrt"How the raw property value is normalized before mapping into [minSize, maxSize]. Default "linear". - "linear" — value maps proportionally. On skewed / heavy-tailed data (e.g. one node = 1, another = 10000) this crushes almost every node to minSize and blows the single outlier up to maxSize. - "sqrt" — maps by area (radius ∝ √value): a 100× value becomes a 10× radius, not 100×. The perceptually-even choice for counts/weights. - "log" — compresses wide / heavy-tailed ranges so mid-range values still get a meaningful size (1 vs 10000 no longer collapses the middle). Non-positive values are shifted into the positive domain first. The output is always clamped to [minSize, maxSize], so no scale can make a node larger than maxSize.

SkillContext

interface SkillContext {
  llm?: LLMAdapter;
}

Fields

llm LLMAdapter

SkillDef

interface SkillDef {
  accepts: (file: File) => boolean;
  id: string;
  name: string;
  run: (input: SkillInput, ctx: SkillContext) => Promise<SkillResult>;
}

Fields

accepts(file: File) => boolean
idstring
namestring
run(input: SkillInput, ctx: SkillContext) => Promise<SkillResult>

SkillInput

interface SkillInput {
  file?: File;
  instruction?: string;
  text?: string;
}

Fields

file File
instruction string
text string

SkillResult

interface SkillResult {
  confidence: number;
  edges: EdgeInput[];
  mapping?: ColumnMapping;
  nodes: NodeInput[];
  source: "rules" | "llm" | "hybrid";
}

Fields

confidencenumber
edgesEdgeInput[]
mapping ColumnMapping
nodesNodeInput[]
source"rules" | "llm" | "hybrid"

SlippyMapFlatConfig

interface SlippyMapFlatConfig {
  maxLevel?: number;
  minLevel?: number;
  tileUrl?: TileUrlFn;
}

Fields

maxLevel number
minLevel number
tileUrl TileUrlFn

SlippyMapGlobeConfig

interface SlippyMapGlobeConfig {
  anisotropy?: number;
  atmosphere?: boolean;
  atmosphereAltitude?: number;
  atmosphereColor?: string | number;
  maxLevel?: number;
  mercatorProjection?: boolean;
  minLevel?: number;
  tileUrl?: TileUrlFn;
}

Fields

anisotropy number
16
Anisotropic filtering level applied to every tile texture. Sharpens tiles viewed at grazing angles (the globe's silhouette). Three.js clamps this to the GPU's max, so passing a high value (e.g. 16) is safe.
atmosphere boolean
true
Render a fresnel atmosphere shell around the globe (the soft rim glow).
atmosphereAltitude number
0.15
Atmosphere shell thickness as a fraction of the globe radius. The shell sphere is rendered at radius * (1 + altitude).
atmosphereColor string | number
0x4d7fc4 (cool blue)
Atmosphere glow color.
maxLevel number
mercatorProjection boolean
minLevel number
tileUrl TileUrlFn

SnapshotDiff

interface SnapshotDiff {
  edgesAdded: string[];
  edgesRemoved: string[];
  nodesAdded: string[];
  nodesModified: object[];
  nodesRemoved: string[];
}

Fields

edgesAddedstring[]
edgesRemovedstring[]
nodesAddedstring[]
nodesModifiedobject[]
nodesRemovedstring[]

SphereLayoutOptions

interface SphereLayoutOptions {
  density?: number;
  radius?: number;
  spacing?: number;
}

Fields

density numberLegacy density knob (nodes per unit²). Ignored when spacing is set.
radius numberOverride sphere radius directly.
spacing numberTarget arc-length gap between neighboring nodes on the sphere. Default 1.5.

SpiralLayoutOptions

interface SpiralLayoutOptions {
  spacing?: number;
}

Fields

spacing numberArc-length gap between adjacent nodes on the spiral. Default 1.5.

StatelessComputeFn

Compute function adapted to stateless layout engines. Returns a map of nodeId -> position.

type StatelessComputeFn = (snapshot: LayoutGraphSnapshot, settings: LayoutSettings) => Map<GraphEntityId, Position3D>

StyleRule

interface StyleRule {
  color?: ColorValue | (data: NodeData | EdgeData) => ColorValue;
  icon?: string | number | (data: NodeData) => string | number;
  opacity?: number | (data: NodeData | EdgeData) => number;
  selector: string;
  size?: number | (data: NodeData) => number;
  width?: number | (data: EdgeData) => number;
}

Fields

color ColorValue | (data: NodeData | EdgeData) => ColorValueNode/edge color
icon string | number | (data: NodeData) => string | numberIcon: number = atlas index, string = icon font name (e.g., "fa:person")
opacity number | (data: NodeData | EdgeData) => numberOpacity
selectorstringSelector: 'node', 'node.selected', 'node[category="Person"]', etc.
size number | (data: NodeData) => numberNode size
width number | (data: EdgeData) => numberEdge width

Stylesheet

interface Stylesheet {
  rules: StyleRule[];
}

Fields

rulesStyleRule[]

TagId

type TagId = string

TagSpec

interface TagSpec {
  anchor: DecorationAnchor;
  bg?: string;
  fg?: string;
  maxWidthPx?: number;
  text: string;
}

Fields

anchorDecorationAnchor
bg string
fg string
maxWidthPx number
textstring

TextAlign

type TextAlign = "left" | "center" | "right"

TextCloudConfig

TextCloud configuration options

interface TextCloudConfig {
  autoCaption?: boolean;
  color?: string | number;
  darkColor?: string | number;
  font?: MSDFFont;
  fontConfig?: FontConfig;
  isDark?: boolean;
  lightColor?: string | number;
  lodDistance?: number;
  maxLength?: number;
  nodeSizeScale?: number;
  position?: LabelPosition;
  scale?: number;
  textScale?: number;
  texture?: Texture;
}

Fields

autoCaption boolean
color string | number
darkColor string | number
font MSDFFont
fontConfig FontConfig
isDark boolean
lightColor string | number
lodDistance number
maxLength number
nodeSizeScale number
position LabelPosition
scale number
textScale number
1.0
Text scale multiplier. Final scale = nodeWorldRadius * scale * textScale.
texture Texture

TextItem

Text item to render

interface TextItem {
  angle?: number;
  id?: string;
  lineCount?: number;
  lineIndex?: number;
  nodeSize?: number;
  opacity?: number;
  quaternion?: Quaternion;
  sizeScale?: number;
  text: string;
  textAlign?: "center" | "left" | "right";
  x: number;
  y: number;
  z: number;
}

Fields

angle number
id stringOptional stable id for the underlying node/edge this label belongs to. Required for hover-neighbor-highlight to dim individual labels; if absent, the renderer falls back to a positional id (node-text-N) which the controller cannot target.
lineCount numberTotal number of lines for this node (used to adjust vertical centering).
lineIndex numberLine offset index for multi-line captions. 0 = first line, 1 = second, etc.
nodeSize number
opacity number
quaternion Quaternion
sizeScale number
1.0
Per-item scale multiplier for multi-caption line sizing.
textstring
textAlign "center" | "left" | "right"Per-item text alignment override (e.g. for radial layouts where left/right side labels differ)
xnumber
ynumber
znumber

TextLayerProps

interface TextLayerProps {
  autoCaption?: boolean;
  color?: string | number;
  darkColor?: string | number;
  getTextItems?: (store: any, positionProvider: PositionProvider) => TextItem[];
  isDark?: boolean;
  lightColor?: string | number;
  lodDistance?: number;
  maxLength?: number;
  maxVisibleLabels?: number;
  position?: LabelPosition;
  properties?: string[];
  property?: string;
  scale?: number;
  textScale?: number;
  theme?: "dark" | "light";
  visible?: boolean;
}

Fields

autoCaption boolean
true
Auto-caption from node properties.
color string | numberText color (overrides theme).
darkColor string | number
0xffffff
Dark theme text color.
getTextItems (store: any, positionProvider: PositionProvider) => TextItem[]Custom text item provider — overrides auto-generated labels
isDark boolean
lightColor string | number
0x333333
Light theme text color.
lodDistance number
4.0
LOD distance threshold.
maxLength number
50
Maximum text length before truncation.
maxVisibleLabels number
500
Maximum visible labels (dynamic cap).
position LabelPosition
"right"
Label position relative to node.
properties string[]Multiple properties to display as multi-line captions. Overrides property when set.
property string
caption/name
Which node property to display as label
scale number
1.0
Text scale multiplier.
textScale number
0.6
Text scale multiplier. If not provided, uses GraphCanvas.textScale
theme "dark" | "light"Override theme for this layer: 'dark' = white text, 'light' = dark text
visible boolean
true
Visibility.

TileUrlFn

type TileUrlFn = (x: number, y: number, level: number) => string

TimelineAnnotation

A pinned point-in-time marker (the gold flags).

interface TimelineAnnotation {
  color?: string;
  id: string;
  label?: string;
  t: number;
}

Fields

color stringCSS color; defaults to the gold flag color in the UI.
idstring
label string
tnumberTimestamp in ms.

TimelineBin

One time bucket. Timestamps are milliseconds since the Unix epoch.

interface TimelineBin {
  count: number;
  end: number;
  label: string;
  start: number;
}

Fields

countnumberAggregate value for the bucket (count in v1).
endnumberBucket end (exclusive) = nextGranularity(start).
labelstringPre-formatted label for axis ticks / tooltips.
startnumberBucket start (inclusive).

TimelineCanvasProps

interface TimelineCanvasProps {
  bins: Bin[];
  domain: Domain;
  height: number;
  range: [number, number];
  theme?: "dark" | "light";
  width: number;
}

Fields

binsBin[]
domainDomain
heightnumber
range[number, number]Brushed window [start,end] in ms; bars intersecting it render "hot".
theme "dark" | "light"
widthnumber

TimelineData

interface TimelineData {
  bins: Bin[];
  domain: [number, number];
}

Fields

binsBin[]
domain[number, number]

TimelineEvent

interface TimelineEvent {
  data: NodeData | EdgeData | object;
  time: number;
  type: "addNode" | "removeNode" | "addEdge" | "removeEdge" | "updateNode";
}

Fields

dataNodeData | EdgeData | objectNode or edge data
timenumberTime offset from start in ms
type"addNode" | "removeNode" | "addEdge" | "removeEdge" | "updateNode"Event type

TimelineMeasure

How a bar's height is computed.

v1 ships count only (number of elements per bucket). Numeric aggregates (sum / avg / max of a property) are a deliberate phase-2 extension — see the design spec's "Out of scope" section.

type TimelineMeasure = unknown

Fields

kind"count"

TimelinePlayOptions

Options forwarded to the underlying filter playback.

interface TimelinePlayOptions {
  durationMs?: number;
  loop?: boolean;
  mode?: "slide" | "expand" | "shrink";
  step?: number;
  windowSize?: number;
}

Fields

durationMs numberTotal playback duration in ms.
loop booleanLoop at the end.
mode "slide" | "expand" | "shrink"Window behaviour: slide (default), expand, or shrink.
step numberUnits advanced per frame (default 1).
windowSize numberWindow size in granularity units (default 1).

TimelineProps

interface TimelineProps {
  api: RenderEngineApi;
  className?: string;
  height?: number;
  locale?: string;
  messages?: Record<string, string>;
  theme?: "dark" | "light";
}

Fields

apiRenderEngineApiThe render engine API. Drives api.timeline.
className string
height numberStrip height in px (excludes the config header + axis). Default 92.
locale stringUI locale; en is the fallback.
messages Record<string, string>Optional message overrides layered on top of the resolved locale bundle.
theme "dark" | "light"

TimelineReplayConfig

interface TimelineReplayConfig {
  animateEdgeDraw?: boolean;
  animateEntrance?: boolean;
  loop?: boolean;
  speed?: number;
}

Fields

animateEdgeDraw boolean
true
Whether to animate edge additions with draw effect.
animateEntrance boolean
true
Whether to animate node additions with entrance effect.
loop boolean
false
Loop playback.
speed number
1.0
Playback speed multiplier.

TimelineTarget

Whether the timeline bins nodes or edges.

type TimelineTarget = "node" | "edge"

ToolItem

type ToolItem = ToolItemAction | ToolItemParent | ToolItemToggle | ToolSeparator

ToolItemAction

interface ToolItemAction {
  active?: boolean | (ctx: ToolbarContext) => boolean;
  enabled?: boolean | (ctx: ToolbarContext) => boolean;
  i18nKey: string;
  icon: IconSpec | (ctx: ToolbarContext) => IconSpec;
  id: string;
  kind: "action";
  label?: string | (ctx: ToolbarContext) => string;
  onInvoke: (ctx: ToolbarContext) => void | Promise<void>;
  params?: LayoutParamDescriptor[];
  priority?: ToolPriority;
  shortcut?: string;
  tooltip?: string | (ctx: ToolbarContext) => string;
}

Fields

active boolean | (ctx: ToolbarContext) => boolean
enabled boolean | (ctx: ToolbarContext) => boolean
i18nKeystring
iconIconSpec | (ctx: ToolbarContext) => IconSpec
idstring
kind"action"
label string | (ctx: ToolbarContext) => string
onInvoke(ctx: ToolbarContext) => void | Promise<void>
params LayoutParamDescriptor[]Layout parameter descriptors — when present, the popover shows a gear icon that opens a settings page
priority ToolPriority
shortcut string
tooltip string | (ctx: ToolbarContext) => string

ToolItemParent

interface ToolItemParent {
  active?: boolean | (ctx: ToolbarContext) => boolean;
  enabled?: boolean | (ctx: ToolbarContext) => boolean;
  i18nKey: string;
  icon: IconSpec | (ctx: ToolbarContext) => IconSpec;
  id: string;
  items: ToolItem[];
  keepOpen?: boolean;
  kind: "parent";
  label?: string | (ctx: ToolbarContext) => string;
  pinnable?: boolean;
  popoverLayout?: "grid" | "list" | "form";
  priority?: ToolPriority;
  renderPinnedPanel?: (ctx: ToolbarContext) => ReactNode;
  shortcut?: string;
  tooltip?: string | (ctx: ToolbarContext) => string;
}

Fields

active boolean | (ctx: ToolbarContext) => boolean
enabled boolean | (ctx: ToolbarContext) => boolean
i18nKeystring
iconIconSpec | (ctx: ToolbarContext) => IconSpec
idstring
itemsToolItem[]
keepOpen booleanWhen true, clicking child items does NOT close the popover
kind"parent"
label string | (ctx: ToolbarContext) => string
pinnable boolean
popoverLayout "grid" | "list" | "form"
priority ToolPriority
renderPinnedPanel (ctx: ToolbarContext) => ReactNode
shortcut string
tooltip string | (ctx: ToolbarContext) => string

ToolItemToggle

interface ToolItemToggle {
  active?: boolean | (ctx: ToolbarContext) => boolean;
  enabled?: boolean | (ctx: ToolbarContext) => boolean;
  exclusiveGroup?: string;
  i18nKey: string;
  icon: IconSpec | (ctx: ToolbarContext) => IconSpec;
  id: string;
  kind: "toggle";
  label?: string | (ctx: ToolbarContext) => string;
  onToggle: (ctx: ToolbarContext, nextActive: boolean) => void;
  priority?: ToolPriority;
  shortcut?: string;
  tooltip?: string | (ctx: ToolbarContext) => string;
}

Fields

active boolean | (ctx: ToolbarContext) => boolean
enabled boolean | (ctx: ToolbarContext) => boolean
exclusiveGroup string
i18nKeystring
iconIconSpec | (ctx: ToolbarContext) => IconSpec
idstring
kind"toggle"
label string | (ctx: ToolbarContext) => string
onToggle(ctx: ToolbarContext, nextActive: boolean) => void
priority ToolPriority
shortcut string
tooltip string | (ctx: ToolbarContext) => string

ToolPriority

type ToolPriority = "critical" | "normal" | "optional"

ToolSeparator

interface ToolSeparator {
  id: string;
  kind: "separator";
}

Fields

idstring
kind"separator"

ToolbarAction

type ToolbarAction = object | object | object | object | object | object | object

ToolbarContext

interface ToolbarContext {
  api: RenderEngineApi;
  dispatch: (action: ToolbarAction) => void;
  getState: () => Readonly<ToolbarState>;
  locale: string;
  t: (key: string, values?: Record<string, string | number>) => string;
  viewId?: string;
}

Fields

apiRenderEngineApi
dispatch(action: ToolbarAction) => void
getState() => Readonly<ToolbarState>
localestring
t(key: string, values?: Record<string, string | number>) => string
viewId string

ToolbarControlledProps

interface ToolbarControlledProps {
  activeToggles?: Record<string, string>;
  collapsed?: Record<string, boolean>;
  dockPositions?: Record<string, object>;
  layoutParams?: Record<string, Record<string, unknown>>;
  onActiveTogglesChange?: (next: Record<string, string>) => void;
  onCollapsedChange?: (next: Record<string, boolean>) => void;
  onDockPositionsChange?: (next: Record<string, object>) => void;
  onLayoutParamsChange?: (next: Record<string, Record<string, unknown>>) => void;
  onPinnedPositionsChange?: (next: Record<string, object>) => void;
  onPinnedToolsChange?: (next: string[]) => void;
  pinnedPositions?: Record<string, object>;
  pinnedTools?: string[];
}

Fields

activeToggles Record<string, string>
collapsed Record<string, boolean>
dockPositions Record<string, object>
layoutParams Record<string, Record<string, unknown>>
onActiveTogglesChange (next: Record<string, string>) => void
onCollapsedChange (next: Record<string, boolean>) => void
onDockPositionsChange (next: Record<string, object>) => void
onLayoutParamsChange (next: Record<string, Record<string, unknown>>) => void
onPinnedPositionsChange (next: Record<string, object>) => void
onPinnedToolsChange (next: string[]) => void
pinnedPositions Record<string, object>
pinnedTools string[]

ToolbarPlugin

interface ToolbarPlugin {
  id: string;
  messages?: Record<string, Record<string, string>>;
  name?: string;
  version?: string;
  install: unknown;
  uninstall?: unknown;
}

Fields

idstring
messages Record<string, Record<string, string>>
name string
version string

ToolbarProps

interface ToolbarProps {
  activeToggles?: Record<string, string>;
  api?: RenderEngineApi;
  collapsed?: Record<string, boolean>;
  dockPositions?: Record<string, object>;
  layoutParams?: Record<string, Record<string, unknown>>;
  locale?: string;
  messages?: Record<string, string>;
  onActiveTogglesChange?: (next: Record<string, string>) => void;
  onCollapsedChange?: (next: Record<string, boolean>) => void;
  onDockPositionsChange?: (next: Record<string, object>) => void;
  onLayoutParamsChange?: (next: Record<string, Record<string, unknown>>) => void;
  onPinnedPositionsChange?: (next: Record<string, object>) => void;
  onPinnedToolsChange?: (next: string[]) => void;
  pinnedPositions?: Record<string, object>;
  pinnedTools?: string[];
  registry: ToolRegistry;
  theme?: "dark" | "light";
}

Fields

activeToggles Record<string, string>
api RenderEngineApi
collapsed Record<string, boolean>
dockPositions Record<string, object>
layoutParams Record<string, Record<string, unknown>>
locale string
messages Record<string, string>
onActiveTogglesChange (next: Record<string, string>) => void
onCollapsedChange (next: Record<string, boolean>) => void
onDockPositionsChange (next: Record<string, object>) => void
onLayoutParamsChange (next: Record<string, Record<string, unknown>>) => void
onPinnedPositionsChange (next: Record<string, object>) => void
onPinnedToolsChange (next: string[]) => void
pinnedPositions Record<string, object>
pinnedTools string[]
registryToolRegistry
theme "dark" | "light"

ToolbarState

interface ToolbarState {
  activeToggles: Record<string, string>;
  collapsed: Record<string, boolean>;
  dockPositions: Record<string, object>;
  layoutParams: Record<string, Record<string, unknown>>;
  pinnedPositions: Record<string, object>;
  pinnedTools: string[];
}

Fields

activeTogglesRecord<string, string>
collapsedRecord<string, boolean>
dockPositionsRecord<string, object>
layoutParamsRecord<string, Record<string, unknown>>Per-layout parameter overrides, keyed by tool id
pinnedPositionsRecord<string, object>
pinnedToolsstring[]

TopologyFilter

Topology filter — filter nodes by structural graph metrics. Metrics are computed on-demand from GraphQueries (no property storage needed).

interface TopologyFilter {
  categories?: string[];
  includeNull?: boolean;
  invert?: boolean;
  label?: string;
  metric: "degree" | "inDegree" | "outDegree";
  range: [number, number];
  target: "node";
  type: "topology";
}

Fields

categories string[]Limit to specific categories (nodes) or relationship types (edges). Empty/undefined = apply to all.
includeNull boolean
true
Whether null/undefined values pass the filter.
invert booleanInvert the filter result (show what would be hidden, hide what would be shown)
label stringHuman-readable label for UI display
metric"degree" | "inDegree" | "outDegree"Structural metric
range[number, number]Required value range [min, max]. Use Infinity for open-ended.
target"node"Filter target: nodes or edges
type"topology"

TransformResult

interface TransformResult {
  edgesAdded: number;
  edgesRemoved: number;
  nodesAdded: number;
  nodesRemoved: number;
}

Fields

edgesAddednumber
edgesRemovednumber
nodesAddednumber
nodesRemovednumber

TransitionOptions

interface TransitionOptions {
  duration?: number;
}

Fields

duration number
800
Crossfade duration in ms.

TransitionPhase

type TransitionPhase = "idle" | "crossfading"

TweenOptions

interface TweenOptions {
  duration?: number;
  easing?: EasingType;
  onComplete?: () => void;
}

Fields

duration number
easing EasingType
onComplete () => void