ParsedDate
interface ParsedDate {
detectedPrecision: DateGranularity;
original: PropertyValue;
timestamp: number;
}
Fields
| | |
|---|
detectedPrecision | DateGranularity | Detected precision of the original value |
original | PropertyValue | Original property value |
timestamp | number | Normalized timestamp in milliseconds |
ParsedSelector
interface ParsedSelector {
attributes: object[];
classes: string[];
states: string[];
type: "node" | "edge" | "all";
}
Fields
| | |
|---|
attributes | object[] | |
classes | string[] | |
states | string[] | |
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 | number | Ms spent easing from the current view onto the first waypoint. Default 700. |
bank | number | Roll into the curves, in radians at full curvature. Default 0.22. |
baseOrientation | Quaternion | The 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) => number | Ms held at each waypoint. Default 650. A function is asked per waypoint. |
glide | number | How 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 | Heading | See Heading. Default "lead". |
leadStrength | number | How far "lead" turns, 0..1. Default 0.4. |
tension | number | Curve tension for the Catmull-Rom through the waypoints. Default 0.5. |
travel | number | (index: number) => number | Ms 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 | number | Peak warp published during a segment, 0..1. Default 0.35. |
PickResult
interface PickResult {
index: number;
ndcPosition: object;
picked: boolean;
screenPosition: object;
type: PickType;
}
Fields
| | |
|---|
index | number | Index in the GPU buffer (-1 for background) |
ndcPosition | object | Normalized device coordinates (-1 to 1) |
picked | boolean | Whether something was picked (not background) |
screenPosition | object | Screen position of pick |
type | PickType | What 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
| | |
|---|
edges | string[] | |
nodes | string[] | |
interface PitchToggleButtonProps {
container: HTMLElement;
durationMs?: number;
obliqueDegrees?: number;
}
Fields
| | |
|---|
container | HTMLElement | Portal 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. |
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. |
filterId | string | ID 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. |
windowSize | number | Window 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 | |
windowSize | number | |
PlotAxisInfo
interface PlotAxisInfo {
domain: [number, number];
label: string;
property: string;
scale: "linear" | "log";
tickFormat?: (value: number) => string;
ticks: number[];
}
Fields
| | |
|---|
domain | [number, number] | |
label | string | |
property | string | |
scale | "linear" | "log" | |
tickFormat | (value: number) => string | |
ticks | number[] | |
PlotLayoutResult
interface PlotLayoutResult {
axes: object;
baseRange: [number, number];
excludedNodeIds: Set<string>;
positions: Map<string, Vec3>;
range: [number, number];
}
Fields
| | |
|---|
axes | object | |
baseRange | [number, number] | Base range for inactive dimension positioning (unaffected by spread) |
excludedNodeIds | Set<string> | |
positions | Map<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
| | |
|---|
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" | |
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
| | |
|---|
axes | object | |
baseRange | [number, number] | Base range for inactive dimension positioning (unaffected by spread) |
categoryAxes | Record<string, object> | |
excludedNodeIds | Set<string> | |
positions | Map<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 | boolean | Treat 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) => number | Custom value parser per axis |
parseY | (value: any) => number | |
parseZ | (value: any) => number | |
propertyX | string | X axis property. Empty string or undefined = all nodes at x=0 |
propertyY | string | Y axis property. Empty string or undefined = all nodes at y=0 |
propertyZ | string | Z 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) => string | Tick 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 | |
registry | ToolRegistry | |
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. |
modifiers | PointerModifiers | Modifier-key state at event time. |
originalEvent | MouseEvent | Native 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
| | |
|---|
alt | boolean | |
ctrl | boolean | |
meta | boolean | |
shift | boolean | |
PolygonConfig
interface PolygonConfig {
items: PolygonItem[];
}
Fields
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 | number | Fill opacity 0..1. Default 0.4. |
id | string | Optional stable id (debugging / future diffing). |
outline | boolean | Draw the boundary outline. Default true. |
outlineColor | [number, number, number] | Outline RGB 0..1. Defaults to fillColor. |
outlineOpacity | number | Outline 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
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 | number | Fill opacity 0..1. Default 0.4. |
geojson | GeoJsonPolygonish | |
id | string | Stable key for dedup/replace; defaults to a running index. |
latLngRings | [number, number][][] | |
outline | boolean | Draw the outline. Default true. |
outlineColor | [number, number, number] | Outline RGB 0..1. Defaults to fillColor. |
outlineOpacity | number | Outline opacity 0..1. Default 0.9. |
worldRings | [number, number, number][][] | |
Position3D
interface Position3D {
x: number;
y: number;
z: number;
}
Fields
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
| | |
|---|
mode | PositionMode | Position mode |
needsUpdate | boolean | Whether 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 | boolean | Invert the filter result (show what would be hidden, hide what would be shown) |
label | string | Human-readable label for UI display |
predicate | (data: NodeData | EdgeData) => boolean | Custom filter function. Return true to include. |
target | FilterTarget | Filter 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 | number | Max value override |
minValue | number | Min value override (auto-detect from data if not set) |
property | string | Node property key to color by |
PropertySchema
interface PropertySchema {
key: string;
required?: boolean;
type: PropertyType;
}
Fields
PropertyTweenConfig
interface PropertyTweenConfig {
array: Float32Array;
duration?: number;
easing?: "linear" | "easeIn" | "easeOut" | "easeInOut";
indices: number[];
onComplete?: () => void;
onUpdate?: () => void;
stride: number;
targetValues: Float32Array;
}
Fields
| | |
|---|
array | Float32Array | The Float32Array to modify (e.g., store.nodeState.colors) |
duration | number | Duration in ms |
easing | "linear" | "easeIn" | "easeOut" | "easeInOut" | Easing function |
indices | number[] | Array indices of elements to animate |
onComplete | () => void | Called when complete |
onUpdate | () => void | Called after each update to mark dirty |
stride | number | Components per element (1=size, 3=RGB, 4=UV) |
targetValues | Float32Array | Target 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 | RenderEngineApi | RenderEngineApi 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 | HTMLElement | Container element for clamping panel position |
onCreated | (nodeId: string, edgeIds: string[]) => void | Called after successful creation with the created node/edge IDs |
onDone | () => void | Called after successful creation or cancellation (to dismiss panel) |
result | EdgeCreateResult | The result from EdgeCreateHandler |
store | GraphStore | GraphStore 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 | number | Width of the bright leading edge, in radians. Default 0.12. |
color | ColorRepresentation | |
discOpacity | number | Disc 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[]) => void | Fired 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 | number | Ms per revolution. Default 4000. |
pingOpacity | number | Node flash brightness. Default 1. |
plane | RadarPlane | |
radius | number the distance to the furthest node | Reach, in world units. |
reverse | boolean | Sweep the other way. Default false. |
rings | number | Range rings. 0 draws none. Default 4. |
sizeFactor | number | Flash size relative to the node. Default 3.6. |
spokes | number | Bearing spokes. 0 draws none. Default 8. |
tail | number | How 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 | number | Width of the bright leading edge, in radians. Default 0.12. |
color | ColorRepresentation | |
discOpacity | number | Disc brightness. Default 0.5. |
filter | (node: NodeData, index: number) => boolean all of them | Nodes the beam can light. |
maxNodes | number | |
onSweep | (nodeIds: string[]) => void | Fired 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 | number | Ms per revolution. Default 4000. |
pingOpacity | number | Node flash brightness. Default 1. |
plane | RadarPlane | |
radius | number the distance to the furthest node | Reach, in world units. |
reverse | boolean | Sweep the other way. Default false. |
rings | number | Range rings. 0 draws none. Default 4. |
sizeFactor | number | Flash size relative to the node. Default 3.6. |
spokes | number | Bearing spokes. 0 draws none. Default 8. |
tail | number | How 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 | DateGranularity | Date granularity for stepping and domain alignment. Only used when valueType === "date". |
includeNull | boolean true | Whether null/undefined values pass the filter. |
invert | boolean | Invert the filter result (show what would be hidden, hide what would be shown) |
label | string | Human-readable label for UI display |
property | string | Property key in node.properties or edge.properties |
range | [number, number] | Current selected range [currentMin, currentMax] |
target | FilterTarget | Filter 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 | |
property | string | |
RegisterElementTypeOptions
interface RegisterElementTypeOptions {
description?: string;
fallback: string;
replace?: boolean;
}
Fields
| | |
|---|
description | string | |
fallback | string | Built-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 | boolean | Allow 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 | EdgeCaptionConfig | Edge caption configuration |
colorMapping | ColorMappingType | Edge color property mapping (reuses node-side ColorMappingType) |
defaultColor | string | Default edge color (hex) |
defaultWidth | number | Default edge width |
relationship | string | Corresponding to EdgeData.relationship |
visible | boolean | Visibility toggle |
widthMapping | EdgeWidthMapping | Edge width property mapping |
RelationshipSchema
interface RelationshipSchema {
name: string;
properties: PropertySchema[];
}
Fields
RelationshipType
interface RelationshipType {
direction?: "outgoing" | "incoming" | "undirected";
id: string;
name: string;
}
Fields
| | |
|---|
direction | "outgoing" | "incoming" | "undirected" | |
id | string | |
name | string | |
RenderBackend
interface RenderBackend {
kind: RenderPathId;
supportsPrimitives: boolean;
createEdgeRenderer: unknown;
createGroupRingRenderer: unknown;
createGroupSphereRenderer: unknown;
createNodeRenderer: unknown;
}
Fields
| | |
|---|
kind | RenderPathId | |
supportsPrimitives | boolean | Whether 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"
interface ResolvedMediaStyle {
animate: boolean;
aspect: number;
border: number;
customSdf?: string;
effects: MediaEffects;
fit: MediaFit;
perNodeShape?: boolean;
radius: number;
shape: MediaShape;
}
Fields
| | |
|---|
animate | boolean | |
aspect | number | Panel width / height. |
border | number | Outline thickness in panel heights. 0 = no outline. |
customSdf | string | GLSL 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. |
effects | MediaEffects | |
fit | MediaFit | |
perNodeShape | boolean | Take the outline from the per-node shapeId attribute instead of shape.
The layer declares that attribute; the shader reads vShapeId. |
radius | number | Corner radius in panel heights, 0..0.5. Ignored unless shape is rect. |
shape | MediaShape | |
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[]> | |
danger | boolean | |
enabled | boolean | |
hasAsyncChildren | boolean | Whether children are async (needs loading indicator) |
icon | string | IconSpec | |
id | string | |
label | string | |
A resolved menu section ready for rendering
interface ResolvedMenuSection {
groupId: string;
items: ResolvedMenuItem[];
}
Fields
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
| | |
|---|
accent | string | Header band, accented values, stamp. |
accentText | string | Header text colour, on the accent band. |
background | string | |
border | number | Hairline round the card. 0 = none. Fraction of height. Default 0.006. |
borderColor | string | |
font | string | |
foreground | string | |
header | number | Header band height, as a fraction of height. 0 = no band. Default 0.15. |
labelFont | string | |
muted | string | Labels, footer, rules. |
padding | number | Inset, as a fraction of height. Default 0.055. |
photo | "left" | "top" | "none" | Where the photo sits. Default "left". |
photoSize | number | Photo box size: a fraction of the card WIDTH when photo: "left", of its
HEIGHT when photo: "top". Default 0.34. |
rowHeight | number | Row pitch, as a fraction of height. Default 0.082. |
rules | boolean | Hairline under each row. Default true. |
RotateLayoutOptions
interface RotateLayoutOptions {
axis?: "x" | "y" | "z";
degrees?: number;
}
Fields
| | |
|---|
axis | "x" | "y" | "z" | |
degrees | number | |