types

Types: P–R

ParsedDate

interface ParsedDate {
  detectedPrecision: DateGranularity;
  original: PropertyValue;
  timestamp: number;
}

Fields

detectedPrecisionDateGranularityDetected precision of the original value
originalPropertyValueOriginal property value
timestampnumberNormalized timestamp in milliseconds

ParsedSelector

interface ParsedSelector {
  attributes: object[];
  classes: string[];
  states: string[];
  type: "node" | "edge" | "all";
}

Fields

attributesobject[]
classesstring[]
statesstring[]
type"node" | "edge" | "all"

PathHighlightConfig

interface PathHighlightConfig {
  color?: [number, number, number];
  holdDuration?: number;
  leaveTrail?: boolean;
  segmentDuration?: number;
}

Fields

color [number, number, number]
[1.0, 0.8, 0.0] (gold)
Highlight color [r,g,b].
holdDuration number
2000
Duration to hold final state before cleanup in ms.
leaveTrail boolean
true
Whether to keep edges highlighted after wavefront passes.
segmentDuration number
300
Time per edge segment in ms.

PathShotOptions

interface PathShotOptions {
  approach?: number;
  bank?: number;
  baseOrientation?: Quaternion;
  curveType?: "centripetal" | "chordal" | "catmullrom";
  distance?: number;
  dwell?: number | (index: number) => number;
  glide?: number;
  heading?: Heading;
  leadStrength?: number;
  tension?: number;
  travel?: number | (index: number) => number;
  warp?: number;
}

Fields

approach numberMs spent easing from the current view onto the first waypoint. Default 700.
bank numberRoll into the curves, in radians at full curvature. Default 0.22.
baseOrientation QuaternionThe view a lean is measured FROM, and what heading: "keep" keeps. Default level (identity); createCinematics passes the view the flight starts in. It has to be a fixed quaternion rather than "whatever orientation the frame came in with", or sample stops being a pure function of time: a slerp that uses its own previous output as the base converges a little further every call, so leadStrength: 0.4 would creep all the way round to a full chase over a handful of frames, and the same millisecond would give a different answer depending on how it was arrived at. Scrubbing in particular would be nonsense.
curveType "centripetal" | "chordal" | "catmullrom"How the Catmull-Rom through the waypoints is parameterised. Default "centripetal". "catmullrom" (uniform) is what this used to hardcode, and it overshoots when the waypoints are unevenly spaced — which a graph layout always is. Measured on a 9-hop route: a segment whose endpoints are 30 units apart had an arc length of 70, so the camera swung 2.3x further than the hop and came back, which reads as a lurch. "centripetal" is the standard cure (Lee 1989) and keeps cusps and self-intersections out of the path. "chordal" is also available; it smooths harder and cuts corners more.
distance number
3× the mean hop length
Distance to hold from the path.
dwell number | (index: number) => numberMs held at each waypoint. Default 650. A function is asked per waypoint.
glide numberHow much of a dwell is spent still moving, 0..1. Default 1. At 1 the camera crawls THROUGH a waypoint instead of stopping on it: it slows to about a fifth of the cruise on each side of it, passes exactly through the node at the middle of its marks window, and accelerates away. The schedule itself does not move: duration and marks are identical either way, and the window still brackets the node, so a card or a highlight hung off a mark needs no adjusting. At 0 the camera comes to a dead stop and holds the node for the whole dwell, which is what this did before. That was a deliberate choice once — "it lands on the node, not near it" — and it is still the right one for a shot whose job is to let somebody read a record. But measured on the AML route it leaves 34% of the flight's frames motionless across 8 separate stalls, with warp at 0 for the same share, and that is what made the flights read as a slideshow rather than a flight.
heading HeadingSee Heading. Default "lead".
leadStrength numberHow far "lead" turns, 0..1. Default 0.4.
tension numberCurve tension for the Catmull-Rom through the waypoints. Default 0.5.
travel number | (index: number) => numberMs spent travelling each segment. Default 900. A function is asked per segment, with the index of the waypoint it leaves. Per-leg timing is what lets a flight's time axis BE the data's: give each segment the gap between the two events it joins and the flight paces itself the way the data did, so a burst reads as a burst and a long wait reads as a wait. A single number spaces the hops evenly, which looks smoother and says nothing.
warp numberPeak warp published during a segment, 0..1. Default 0.35.

PickResult

interface PickResult {
  index: number;
  ndcPosition: object;
  picked: boolean;
  screenPosition: object;
  type: PickType;
}

Fields

indexnumberIndex in the GPU buffer (-1 for background)
ndcPositionobjectNormalized device coordinates (-1 to 1)
pickedbooleanWhether something was picked (not background)
screenPositionobjectScreen position of pick
typePickTypeWhat was picked

PickType

type PickType = "node" | "edge" | "background"

PinnedState

Pinned state: which nodes / edges are pinned. Edges are forward-compat only.

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

Fields

edgesstring[]
nodesstring[]

PitchToggleButtonProps

interface PitchToggleButtonProps {
  container: HTMLElement;
  durationMs?: number;
  obliqueDegrees?: number;
}

Fields

containerHTMLElementPortal target — must be the GraphCanvas container or another positioned ancestor.
durationMs number
400
Animation duration in ms.
obliqueDegrees number
45°
Snap pitch value when toggling to 3D.

Platform

type Platform = "mac" | "windows" | "linux"

PlaybackConfig

Playback configuration for animated range sliding.

For date filters with granularity: windowSize = number of granularity units (e.g., 3 months) step = how many units to advance per frame (default: 1)

For numeric filters: windowSize = numeric width of the sliding window step = numeric step per frame (default: windowSize)

interface PlaybackConfig {
  duration?: number;
  filterId: string;
  loop?: boolean;
  mode?: "slide" | "expand" | "shrink";
  reverse?: boolean;
  step?: number;
  windowSize: number;
}

Fields

duration number
5000
Total playback duration in milliseconds.
filterIdstringID of the range filter to animate
loop boolean
false
Loop when reaching the end.
mode "slide" | "expand" | "shrink"Playback mode for dates. - "slide": fixed window slides forward (default) - "expand": window grows from domain start - "shrink": window shrinks within domain
reverse boolean
false
Play in reverse direction.
step number
1 for dates, windowSize for numbers
Step per frame.
windowSizenumberWindow size (in granularity units for dates, or numeric value for numbers)

PlaybackOptions

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

Fields

durationMs number
loop boolean
mode "slide" | "expand" | "shrink"
reverse boolean
step number
windowSizenumber

PlotAxisInfo

interface PlotAxisInfo {
  domain: [number, number];
  label: string;
  property: string;
  scale: "linear" | "log";
  tickFormat?: (value: number) => string;
  ticks: number[];
}

Fields

domain[number, number]
labelstring
propertystring
scale"linear" | "log"
tickFormat (value: number) => string
ticksnumber[]

PlotLayoutResult

interface PlotLayoutResult {
  axes: object;
  baseRange: [number, number];
  excludedNodeIds: Set<string>;
  positions: Map<string, Vec3>;
  range: [number, number];
}

Fields

axesobject
baseRange[number, number]Base range for inactive dimension positioning (unaffected by spread)
excludedNodeIdsSet<string>
positionsMap<string, Vec3>nodeId → target position [x, y, z]
range[number, number]Scaled range for active axes (affected by spread)

PlotMultiCategoryOptions

Options for multi-category scatter layout.

interface PlotMultiCategoryOptions {
  mappings: CategoryAxisMapping[];
  niceX?: boolean;
  niceY?: boolean;
  niceZ?: boolean;
  padding?: number;
  range?: [number, number];
  spread?: number;
  tickCountX?: number;
  tickCountY?: number;
  tickCountZ?: number;
  unmappedMode?: "hide" | "center" | "boundary";
}

Fields

mappingsCategoryAxisMapping[]
niceX boolean
niceY boolean
niceZ boolean
padding number
range [number, number]
spread number
tickCountX number
tickCountY number
tickCountZ number
unmappedMode "hide" | "center" | "boundary"

PlotMultiCategoryResult

Result from multi-category scatter layout.

interface PlotMultiCategoryResult {
  axes: object;
  baseRange: [number, number];
  categoryAxes: Record<string, object>;
  excludedNodeIds: Set<string>;
  positions: Map<string, Vec3>;
  range: [number, number];
}

Fields

axesobject
baseRange[number, number]Base range for inactive dimension positioning (unaffected by spread)
categoryAxesRecord<string, object>
excludedNodeIdsSet<string>
positionsMap<string, Vec3>nodeId → target position [x, y, z]
range[number, number]Scaled range for active axes (affected by spread)

PlotScatterLayoutOptions

interface PlotScatterLayoutOptions {
  dateAxisX?: boolean;
  dateAxisY?: boolean;
  dateAxisZ?: boolean;
  domainX?: [number, number];
  domainY?: [number, number];
  domainZ?: [number, number];
  niceX?: boolean;
  niceY?: boolean;
  niceZ?: boolean;
  padding?: number;
  parseX?: (value: any) => number;
  parseY?: (value: any) => number;
  parseZ?: (value: any) => number;
  propertyX?: string;
  propertyY?: string;
  propertyZ?: string;
  range?: [number, number];
  scaleX?: "linear" | "log";
  scaleY?: "linear" | "log";
  scaleZ?: "linear" | "log";
  spread?: number;
  tickCountX?: number;
  tickCountY?: number;
  tickCountZ?: number;
  tickFormatX?: (value: number) => string;
  tickFormatY?: (value: number) => string;
  tickFormatZ?: (value: number) => string;
  tickValuesX?: number[];
  tickValuesY?: number[];
  tickValuesZ?: number[];
}

Fields

dateAxisX booleanTreat axis as date (epoch ms). Enables calendar-aware ticks.
dateAxisY boolean
dateAxisZ boolean
domainX [number, number]Override auto-computed domain per axis
domainY [number, number]
domainZ [number, number]
niceX boolean
true
Extend domain to nice tick boundaries (d3.nice).
niceY boolean
niceZ boolean
padding number
0.05
Padding ratio to avoid nodes touching edges.
parseX (value: any) => numberCustom value parser per axis
parseY (value: any) => number
parseZ (value: any) => number
propertyX stringX axis property. Empty string or undefined = all nodes at x=0
propertyY stringY axis property. Empty string or undefined = all nodes at y=0
propertyZ stringZ axis property. Empty string or undefined = all nodes at z=0
range [number, number]
[-2, 2]
Output coordinate range.
scaleX "linear" | "log"
"linear"
Scale type per axis.
scaleY "linear" | "log"
scaleZ "linear" | "log"
spread number
1
Spread factor: scales node positions relative to center without changing axes. >1 = nodes further apart, <1 = nodes closer together.
tickCountX number
5
Number of ticks per axis.
tickCountY number
tickCountZ number
tickFormatX (value: number) => stringTick format functions
tickFormatY (value: number) => string
tickFormatZ (value: number) => string
tickValuesX number[]Manually specify tick values (overrides auto-generation)
tickValuesY number[]
tickValuesZ number[]

PluginInstallContext

interface PluginInstallContext {
  addItem: (dockId: string, item: ToolItem, position?: object) => void;
  registerDock: (dock: DockRegistry) => void;
  registry: ToolRegistry;
  removeItem: (dockId: string, itemId: string) => void;
  replaceItem: (dockId: string, itemId: string, newItem: ToolItem) => void;
}

Fields

addItem(dockId: string, item: ToolItem, position?: object) => void
registerDock(dock: DockRegistry) => void
registryToolRegistry
removeItem(dockId: string, itemId: string) => void
replaceItem(dockId: string, itemId: string, newItem: ToolItem) => void

PointerEventBase

Base shape shared by every interaction callback payload (click / hover / context-menu / drag).

interface PointerEventBase {
  canvasPos: [number, number];
  modifiers: PointerModifiers;
  originalEvent: MouseEvent;
  worldPos: [number, number, number];
}

Fields

canvasPos[number, number]Canvas-relative position in CSS pixels, origin top-left.
modifiersPointerModifiersModifier-key state at event time.
originalEventMouseEventNative pointer or mouse event the engine handled. Preserved so hosts can call preventDefault() / stopPropagation().
worldPos[number, number, number]Three.js world-space position [x, y, z] at the pointer's intersection with the cloudScene plane.

PointerModifiers

Modifier-key snapshot at the time an event was handled.

interface PointerModifiers {
  alt: boolean;
  ctrl: boolean;
  meta: boolean;
  shift: boolean;
}

Fields

altboolean
ctrlboolean
metaboolean
shiftboolean

PolygonConfig

interface PolygonConfig {
  items: PolygonItem[];
}

Fields

itemsPolygonItem[]

PolygonItem

A single filled polygon. Domain-agnostic; coordinates are WORLD-space.

interface PolygonItem {
  band?: "underlay" | "overlay";
  fillColor: [number, number, number];
  fillOpacity?: number;
  id?: string;
  outline?: boolean;
  outlineColor?: [number, number, number];
  outlineOpacity?: number;
  rings: [number, number, number][][];
}

Fields

band "underlay" | "overlay"Render band. "overlay" (default) draws in front of the graph (over nodes). "underlay" draws behind the nodes (but above the basemap) — a ground highlight that never blocks markers/labels. Use it for filled geo regions the user must still see/click the nodes inside.
fillColor[number, number, number]Interior fill RGB, each channel 0..1.
fillOpacity numberFill opacity 0..1. Default 0.4.
id stringOptional stable id (debugging / future diffing).
outline booleanDraw the boundary outline. Default true.
outlineColor [number, number, number]Outline RGB 0..1. Defaults to fillColor.
outlineOpacity numberOutline opacity 0..1. Default 0.9.
rings[number, number, number][][]Polygon rings in WORLD coords. First ring = outer boundary; any subsequent rings = holes. Each point is [x, y, z] (z is used only to place the fill plane; triangulation happens in XY).

PolygonLayerProps

Props for PolygonLayer.

interface PolygonLayerProps {
  items: PolygonItem[];
}

Fields

itemsPolygonItem[]

PolygonSpec

A polygon to draw. Supply ONE coordinate source:

  • geojson — GeoJSON Polygon/MultiPolygon/Feature, coords [lng, lat].
  • latLngRings — rings of [lat, lng] (outer first, then holes).
  • worldRings — rings already in world coords [x, y, z] (skips projection). Geographic inputs are projected via the injected latLngToWorld, so enable the map (or place geo nodes) before calling — same precondition as positioning geo nodes by lat/lng.
interface PolygonSpec {
  band?: "underlay" | "overlay";
  fillColor: [number, number, number];
  fillOpacity?: number;
  geojson?: GeoJsonPolygonish;
  id?: string;
  latLngRings?: [number, number][][];
  outline?: boolean;
  outlineColor?: [number, number, number];
  outlineOpacity?: number;
  worldRings?: [number, number, number][][];
}

Fields

band "underlay" | "overlay"Render band: "overlay" (over nodes, default) or "underlay" (ground highlight under nodes).
fillColor[number, number, number]Interior fill RGB 0..1.
fillOpacity numberFill opacity 0..1. Default 0.4.
geojson GeoJsonPolygonish
id stringStable key for dedup/replace; defaults to a running index.
latLngRings [number, number][][]
outline booleanDraw the outline. Default true.
outlineColor [number, number, number]Outline RGB 0..1. Defaults to fillColor.
outlineOpacity numberOutline opacity 0..1. Default 0.9.
worldRings [number, number, number][][]

Position3D

interface Position3D {
  x: number;
  y: number;
  z: number;
}

Fields

xnumber
ynumber
znumber

PositionMode

type PositionMode = "cpu" | "gpu"

PositionProvider

interface PositionProvider {
  mode: PositionMode;
  needsUpdate: boolean;
  clearNeedsUpdate: unknown;
  getPositions: unknown;
  getPositionTexture: unknown;
  getSpaceSize: unknown;
  getTextureSize: unknown;
  remapPositions?: unknown;
  updatePositions?: unknown;
  writePositions?: unknown;
}

Fields

modePositionModePosition mode
needsUpdatebooleanWhether positions need update (for render loop)

PredicateFilter

Predicate filter — arbitrary function for maximum flexibility.

interface PredicateFilter {
  categories?: string[];
  includeNull?: boolean;
  invert?: boolean;
  label?: string;
  predicate: (data: NodeData | EdgeData) => boolean;
  target: FilterTarget;
  type: "predicate";
}

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
predicate(data: NodeData | EdgeData) => booleanCustom filter function. Return true to include.
targetFilterTargetFilter target: nodes or edges
type"predicate"

PropertyColorConfig

interface PropertyColorConfig {
  colorMax?: [number, number, number];
  colorMin?: [number, number, number];
  duration?: number;
  maxValue?: number;
  minValue?: number;
  property: string;
}

Fields

colorMax [number, number, number]
[1.0, 0.2, 0.2] (red)
Color for maximum value.
colorMin [number, number, number]
[0.2, 0.4, 1.0] (blue)
Color for minimum value.
duration number
800
Animation duration in ms.
maxValue numberMax value override
minValue numberMin value override (auto-detect from data if not set)
propertystringNode property key to color by

PropertySchema

interface PropertySchema {
  key: string;
  required?: boolean;
  type: PropertyType;
}

Fields

keystring
required boolean
typePropertyType

PropertyTweenConfig

interface PropertyTweenConfig {
  array: Float32Array;
  duration?: number;
  easing?: "linear" | "easeIn" | "easeOut" | "easeInOut";
  indices: number[];
  onComplete?: () => void;
  onUpdate?: () => void;
  stride: number;
  targetValues: Float32Array;
}

Fields

arrayFloat32ArrayThe Float32Array to modify (e.g., store.nodeState.colors)
duration numberDuration in ms
easing "linear" | "easeIn" | "easeOut" | "easeInOut"Easing function
indicesnumber[]Array indices of elements to animate
onComplete () => voidCalled when complete
onUpdate () => voidCalled after each update to mark dirty
stridenumberComponents per element (1=size, 3=RGB, 4=UV)
targetValuesFloat32ArrayTarget values per element (length = indices.length * stride)

PropertyType

Graph schema types — inferred from data or user-configured. Matches web/libs/RenderEngine/core/types.ts lines 59-86.

type PropertyType = "string" | "number" | "boolean"

PropertyValue

Property value type — flat primitives only, no nested objects.

type PropertyValue = string | number | boolean | null

QuickCreatePanelProps

interface QuickCreatePanelProps {
  allowedRelationships?: string[];
  api?: RenderEngineApi;
  container?: HTMLElement;
  onCreated?: (nodeId: string, edgeIds: string[]) => void;
  onDone: () => void;
  result: EdgeCreateResult;
  store: GraphStore;
}

Fields

allowedRelationships string[]When provided, only these relationship types are shown in the dropdown
api RenderEngineApiRenderEngineApi instance for undo-redo-aware mutations. Optional: - If omitted AND the panel is mounted inside a <GraphRenderer> subtree, it's resolved automatically from context. - If omitted AND the panel is mounted OUTSIDE <GraphRenderer> (e.g., as a sibling overlay in a consumer's own layout), the panel renders fine but clicking "Create" will throw. Pass the api prop explicitly in that case (e.g., apiRef.current from GraphCanvas's onReady callback).
container HTMLElementContainer element for clamping panel position
onCreated (nodeId: string, edgeIds: string[]) => voidCalled after successful creation with the created node/edge IDs
onDone() => voidCalled after successful creation or cancellation (to dismiss panel)
resultEdgeCreateResultThe result from EdgeCreateHandler
storeGraphStoreGraphStore for data access and mutation

RGB

type RGB = [number, number, number]

RadarPlane

The plane the beam sweeps in. "xy" suits a flat layout; "xz" is the ground-radar look.

type RadarPlane = "xy" | "xz"

RadarSweepLayerConfig

interface RadarSweepLayerConfig {
  beamWidth?: number;
  color?: ColorRepresentation;
  discOpacity?: number;
  period?: number;
  pingOpacity?: number;
  radius?: number;
  tail?: number;
}

Fields

beamWidth number
color ColorRepresentation
discOpacity number
period number
pingOpacity number
radius number
tail number

RadarSweepLayerProps

interface RadarSweepLayerProps {
  band?: "top" | "underlay" | "overlay";
  bandOffset?: number;
  beamWidth?: number;
  color?: ColorRepresentation;
  discOpacity?: number;
  filter?: (node: NodeData, index: number) => boolean;
  maxNodes?: number;
  name?: string;
  onSweep?: (nodeIds: string[]) => void;
  origin?: string | [number, number, number];
  period?: number;
  pingOpacity?: number;
  plane?: RadarPlane;
  radius?: number;
  reverse?: boolean;
  rings?: number;
  sizeFactor?: number;
  spokes?: number;
  tail?: number;
}

Fields

band "top" | "underlay" | "overlay"
bandOffset number
beamWidth numberWidth of the bright leading edge, in radians. Default 0.12.
color ColorRepresentation
discOpacity numberDisc brightness. Default 0.5.
filter (node: NodeData, index: number) => boolean
all of them
Nodes the beam can light.
maxNodes number
name string
onSweep (nodeIds: string[]) => voidFired once per revolution with the nodes the beam swept, in bearing order — the sweep's reading, for a side panel to list. Only computed when a callback is present.
origin string | [number, number, number]Where the beam comes from: a node id (it follows the node), a fixed point, or null/omitted for the centre of the graph.
period numberMs per revolution. Default 4000.
pingOpacity numberNode flash brightness. Default 1.
plane RadarPlane
radius number
the distance to the furthest node
Reach, in world units.
reverse booleanSweep the other way. Default false.
rings numberRange rings. 0 draws none. Default 4.
sizeFactor numberFlash size relative to the node. Default 3.6.
spokes numberBearing spokes. 0 draws none. Default 8.
tail numberHow long the afterglow lasts, in radians of sweep. Default 1.1.

RadarSweepLayerSpec

interface RadarSweepLayerSpec {
  band?: "top" | "underlay" | "overlay";
  bandOffset?: number;
  beamWidth?: number;
  color?: ColorRepresentation;
  discOpacity?: number;
  filter?: (node: NodeData, index: number) => boolean;
  maxNodes?: number;
  onSweep?: (nodeIds: string[]) => void;
  origin?: string | [number, number, number];
  period?: number;
  pingOpacity?: number;
  plane?: RadarPlane;
  radius?: number;
  reverse?: boolean;
  rings?: number;
  sizeFactor?: number;
  spokes?: number;
  tail?: number;
}

Fields

band "top" | "underlay" | "overlay"
bandOffset number
beamWidth numberWidth of the bright leading edge, in radians. Default 0.12.
color ColorRepresentation
discOpacity numberDisc brightness. Default 0.5.
filter (node: NodeData, index: number) => boolean
all of them
Nodes the beam can light.
maxNodes number
onSweep (nodeIds: string[]) => voidFired once per revolution with the nodes the beam swept, in bearing order — the sweep's reading, for a side panel to list. Only computed when a callback is present.
origin string | [number, number, number]Where the beam comes from: a node id (it follows the node), a fixed point, or null/omitted for the centre of the graph.
period numberMs per revolution. Default 4000.
pingOpacity numberNode flash brightness. Default 1.
plane RadarPlane
radius number
the distance to the furthest node
Reach, in world units.
reverse booleanSweep the other way. Default false.
rings numberRange rings. 0 draws none. Default 4.
sizeFactor numberFlash size relative to the node. Default 3.6.
spokes numberBearing spokes. 0 draws none. Default 8.
tail numberHow long the afterglow lasts, in radians of sweep. Default 1.1.

RangeFilter

Range filter — numeric or date property value within [min, max].

For dates: raw property values (strings or timestamps) are parsed and cached as millisecond timestamps for comparison.

interface RangeFilter {
  categories?: string[];
  domain: [number, number];
  granularity?: DateGranularity;
  includeNull?: boolean;
  invert?: boolean;
  label?: string;
  property: string;
  range: [number, number];
  target: FilterTarget;
  type: "range";
  valueType: "number" | "date";
}

Fields

categories string[]Limit to specific categories (nodes) or relationship types (edges). Empty/undefined = apply to all.
domain[number, number]Full data domain [min, max]. null = auto-infer from data. For dates, these are millisecond timestamps.
granularity DateGranularityDate granularity for stepping and domain alignment. Only used when valueType === "date".
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
propertystringProperty key in node.properties or edge.properties
range[number, number]Current selected range [currentMin, currentMax]
targetFilterTargetFilter target: nodes or edges
type"range"
valueType"number" | "date"Value type: "number" for plain numerics, "date" for date strings/timestamps

RangeSpec

interface RangeSpec {
  id?: string;
  includeNull?: boolean;
  invert?: boolean;
  max?: number;
  min?: number;
  on?: Scope;
  property: string;
}

Fields

id string
includeNull boolean
invert boolean
max number
min number
on Scope
propertystring

RegisterElementTypeOptions

interface RegisterElementTypeOptions {
  description?: string;
  fallback: string;
  replace?: boolean;
}

Fields

description string
fallbackstringBuilt-in type to render as until a renderer for this type exists. Required.
replace boolean

RegisterLayoutOptions

interface RegisterLayoutOptions {
  description?: string;
  replace?: boolean;
}

Fields

description string
replace booleanAllow replacing an existing extension registration. Built-ins can never be replaced.

RelationshipConfig

RelationshipConfig — Visual binding configuration for each edge type.

Declares property → visual attribute mappings for edges. Read and applied by VisualMapper.

interface RelationshipConfig {
  captionConfig?: EdgeCaptionConfig;
  colorMapping?: ColorMappingType;
  defaultColor?: string;
  defaultWidth?: number;
  relationship: string;
  visible?: boolean;
  widthMapping?: EdgeWidthMapping;
}

Fields

captionConfig EdgeCaptionConfigEdge caption configuration
colorMapping ColorMappingTypeEdge color property mapping (reuses node-side ColorMappingType)
defaultColor stringDefault edge color (hex)
defaultWidth numberDefault edge width
relationshipstringCorresponding to EdgeData.relationship
visible booleanVisibility toggle
widthMapping EdgeWidthMappingEdge width property mapping

RelationshipSchema

interface RelationshipSchema {
  name: string;
  properties: PropertySchema[];
}

Fields

namestring
propertiesPropertySchema[]

RelationshipType

interface RelationshipType {
  direction?: "outgoing" | "incoming" | "undirected";
  id: string;
  name: string;
}

Fields

direction "outgoing" | "incoming" | "undirected"
idstring
namestring

RenderBackend

interface RenderBackend {
  kind: RenderPathId;
  supportsPrimitives: boolean;
  createEdgeRenderer: unknown;
  createGroupRingRenderer: unknown;
  createGroupSphereRenderer: unknown;
  createNodeRenderer: unknown;
}

Fields

kindRenderPathId
supportsPrimitivesbooleanWhether this backend can build the four primitive renderers. webgl is true; webgpu stays false until U6 lands the node-material implementations. The dual-path foundation only hands out a backend whose flag is true, so a host-visible path switch never reaches a factory that would throw WebGPUBackendNotReadyError.

RenderBackendType

type RenderBackendType = "cpu" | "gpu" | "auto"

RenderFaultKind

type RenderFaultKind = indexedAccess

RenderPathId

type RenderPathId = "webgl" | "webgpu"

ResolvedMediaStyle

interface ResolvedMediaStyle {
  animate: boolean;
  aspect: number;
  border: number;
  customSdf?: string;
  effects: MediaEffects;
  fit: MediaFit;
  perNodeShape?: boolean;
  radius: number;
  shape: MediaShape;
}

Fields

animateboolean
aspectnumberPanel width / height.
bordernumberOutline thickness in panel heights. 0 = no outline.
customSdf stringGLSL signed-distance expression in vec2 q — panel space, y up, height 1, width aspect, centre at the origin; negative inside. Overrides shape and perNodeShape. This is the one place a caller may hand-write GLSL, and it is deliberately one expression rather than a program.
effectsMediaEffects
fitMediaFit
perNodeShape booleanTake the outline from the per-node shapeId attribute instead of shape. The layer declares that attribute; the shader reads vShapeId.
radiusnumberCorner radius in panel heights, 0..0.5. Ignored unless shape is rect.
shapeMediaShape

ResolvedMenuItem

A resolved menu item with computed visibility/enabled state

interface ResolvedMenuItem {
  action?: (ctx: MenuContext) => void;
  children?: MenuItem[] | (ctx: MenuContext) => Promise<MenuItem[]>;
  danger: boolean;
  enabled: boolean;
  hasAsyncChildren: boolean;
  icon?: string | IconSpec;
  id: string;
  label: string;
}

Fields

action (ctx: MenuContext) => void
children MenuItem[] | (ctx: MenuContext) => Promise<MenuItem[]>
dangerboolean
enabledboolean
hasAsyncChildrenbooleanWhether children are async (needs loading indicator)
icon string | IconSpec
idstring
labelstring

ResolvedMenuSection

A resolved menu section ready for rendering

interface ResolvedMenuSection {
  groupId: string;
  items: ResolvedMenuItem[];
}

Fields

groupIdstringGroup ID
itemsResolvedMenuItem[]Resolved, filtered, sorted items

ResolvedNodeCardTheme

interface ResolvedNodeCardTheme {
  accent: string;
  accentText: string;
  background: string;
  border: number;
  borderColor: string;
  font: string;
  foreground: string;
  header: number;
  labelFont: string;
  muted: string;
  padding: number;
  photo: "left" | "top" | "none";
  photoSize: number;
  rowHeight: number;
  rules: boolean;
}

Fields

accentstringHeader band, accented values, stamp.
accentTextstringHeader text colour, on the accent band.
backgroundstring
bordernumberHairline round the card. 0 = none. Fraction of height. Default 0.006.
borderColorstring
fontstring
foregroundstring
headernumberHeader band height, as a fraction of height. 0 = no band. Default 0.15.
labelFontstring
mutedstringLabels, footer, rules.
paddingnumberInset, as a fraction of height. Default 0.055.
photo"left" | "top" | "none"Where the photo sits. Default "left".
photoSizenumberPhoto box size: a fraction of the card WIDTH when photo: "left", of its HEIGHT when photo: "top". Default 0.34.
rowHeightnumberRow pitch, as a fraction of height. Default 0.082.
rulesbooleanHairline under each row. Default true.

RotateLayoutOptions

interface RotateLayoutOptions {
  axis?: "x" | "y" | "z";
  degrees?: number;
}

Fields

axis "x" | "y" | "z"
degrees number