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 | ScanAxis | Which 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 | number | Node-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) => void | Fired 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 | number | Extra room around the graph's bounding box, as a fraction. Default 0.08. |
period | number | Ms for one pass across the graph. Default 5000. |
planeOpacity | number | Sheet brightness. Default 0.55. |
position | number | Where the sheet sits, 0..1 across the graph. Only used by "hold". |
sizeFactor | number | Glow 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 | ScanAxis | Which 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 | number | Node-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) => void | Fired 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 | number | Extra room around the graph's bounding box, as a fraction. Default 0.08. |
period | number | Ms for one pass across the graph. Default 5000. |
planeOpacity | number | Sheet brightness. Default 0.55. |
position | number | Where the sheet sits, 0..1 across the graph. Only used by "hold". |
sizeFactor | number | Glow 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 | number | Half-edge of the scatter cube in world units. Auto-scaled from spacing if unset. |
seed | number | |
spacing | number | Per-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 | string | BCP-47 language tag. Passed as accept-language to Nominatim. |
limit | number | Result count cap. Default 10. |
signal | AbortSignal | Abort 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
| | |
|---|
addedEdgeIds | string[] | Edge IDs affected by this change |
addedNodeIds | string[] | Node IDs affected by this change |
mode | SelectionMode | Selection operation type |
removedEdgeIds | string[] | |
removedNodeIds | string[] | |
selection | SelectionState | Current 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
| | |
|---|
edges | string[] | |
nodes | string[] | |
SelfLoopCloudConfig
interface SelfLoopCloudConfig {
centerOffsetMult?: number;
lineWidth?: number;
loopRadiusMult?: number;
maxLoops?: number;
segments?: number;
}
Fields
| | |
|---|
centerOffsetMult | number | Loop center offset multiplier (relative to node size) |
lineWidth | number | Line width |
loopRadiusMult | number | Loop radius multiplier (relative to node size) |
maxLoops | number | Maximum number of self-loops |
segments | number | Number 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 | number | Shape when the value is empty / not in shapeMap (falls back to the category's defaultShape) |
property | string | Property to read |
shapeMap | Record<string, string | number> | Property value → shape |
ShellLayoutOptions
interface ShellLayoutOptions {
centre?: Vec3;
orphanHop?: number;
roots?: string[];
spacing?: number;
sphere?: boolean;
stagger?: boolean;
}
Fields
| | |
|---|
centre | Vec3 | Centre 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 | number | Radius of the first shell; hop k sits at spacing * k. Default 90. |
sphere | boolean | Spread each shell over a sphere (default) or a flat ring. |
stagger | boolean | Rotate each shell so neighbouring shells do not line up. Default true. |
ShiftLayoutOptions
interface ShiftLayoutOptions {
x?: number;
y?: number;
z?: number;
}
Fields
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
| | |
|---|
activeBinding | KeyBinding | Current active binding (may differ from default if user overrode) |
category | ShortcutCategory | Category for UI grouping |
defaultBinding | KeyBinding | Default key binding |
handler | () => void | Handler function. Can be provided at registration or bound later. |
id | string | Unique ID, e.g. "sel.selectAll" |
label | string | Internationalization key for display label |
when | string | Context condition: shortcut only active when this evaluates true |
ShortcutCommandDefinition
interface ShortcutCommandDefinition {
category: ShortcutCategory;
defaultBinding: KeyBinding;
id: string;
label: string;
when?: string;
}
Fields
| | |
|---|
category | ShortcutCategory | Category for UI grouping |
defaultBinding | KeyBinding | Default key binding |
id | string | Unique ID, e.g. "sel.selectAll" |
label | string | Internationalization key for display label |
when | string | Context condition: shortcut only active when this evaluates true |
ShortcutConfig
interface ShortcutConfig {
incomingRelationship?: string;
outgoingRelationship?: string;
through: string;
}
Fields
| | |
|---|
incomingRelationship | string | |
outgoingRelationship | string | |
through | string | |
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
| | |
|---|
duration | number | Total length in ms. Infinity means "until stopped". |
marks | typeOperator | The points this shot stops at, with their times. Absent on shots that stop
nowhere (an orbit, a dolly zoom). See ShotMark. |
name | string | |
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
| | |
|---|
distance | number | Distance from the camera to focus, in world units. Always > 0. |
focus | Vector3 | The point (in cloudScene local space) to hold at the screen centre. |
fov | number | Vertical FOV in degrees, or null to leave the lens where it is. |
orientation | Quaternion | What cloudScene.quaternion becomes. |
warp | number | Warp 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
| | |
|---|
at | number | Ms from the shot's start at which it arrives. |
index | number | Index into the shot's own list of points. |
leaves | number | Ms at which it starts moving on again — at plus the hold. |
point | Vector3 | Where it is, in cloudScene local space. |
until | number | Ms 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
| | |
|---|
baseFov | number | The camera's resting FOV in degrees — what fov: null means. |
frame | ShotFrame | |
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 | number | Default size when property value is null/non-numeric |
domain | [number, number] | Property value range [min, max]. Leave empty = auto-compute from data |
property | string | Property 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 | string | Restrict 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
SkillDef
interface SkillDef {
accepts: (file: File) => boolean;
id: string;
name: string;
run: (input: SkillInput, ctx: SkillContext) => Promise<SkillResult>;
}
Fields
| | |
|---|
accepts | (file: File) => boolean | |
id | string | |
name | string | |
run | (input: SkillInput, ctx: SkillContext) => Promise<SkillResult> | |
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
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
| | |
|---|
edgesAdded | string[] | |
edgesRemoved | string[] | |
nodesAdded | string[] | |
nodesModified | object[] | |
nodesRemoved | string[] | |
SphereLayoutOptions
interface SphereLayoutOptions {
density?: number;
radius?: number;
spacing?: number;
}
Fields
| | |
|---|
density | number | Legacy density knob (nodes per unit²). Ignored when spacing is set. |
radius | number | Override sphere radius directly. |
spacing | number | Target arc-length gap between neighboring nodes on the sphere. Default 1.5. |
SpiralLayoutOptions
interface SpiralLayoutOptions {
spacing?: number;
}
Fields
| | |
|---|
spacing | number | Arc-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) => ColorValue | Node/edge color |
icon | string | number | (data: NodeData) => string | number | Icon: number = atlas index, string = icon font name (e.g., "fa:person") |
opacity | number | (data: NodeData | EdgeData) => number | Opacity |
selector | string | Selector: 'node', 'node.selected', 'node[category="Person"]', etc. |
size | number | (data: NodeData) => number | Node size |
width | number | (data: EdgeData) => number | Edge width |
Stylesheet
interface Stylesheet {
rules: StyleRule[];
}
Fields
TagId
type TagId = string
interface TagSpec {
anchor: DecorationAnchor;
bg?: string;
fg?: string;
maxWidthPx?: number;
text: string;
}
Fields
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 | string | Optional 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 | number | Total number of lines for this node (used to adjust vertical centering). |
lineIndex | number | Line 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. |
text | string | |
textAlign | "center" | "left" | "right" | Per-item text alignment override (e.g. for radial layouts where left/right side labels differ) |
x | number | |
y | number | |
z | number | |
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 | number | Text 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 | string | CSS color; defaults to the gold flag color in the UI. |
id | string | |
label | string | |
t | number | Timestamp in ms. |
TimelineBin
One time bucket. Timestamps are milliseconds since the Unix epoch.
interface TimelineBin {
count: number;
end: number;
label: string;
start: number;
}
Fields
| | |
|---|
count | number | Aggregate value for the bucket (count in v1). |
end | number | Bucket end (exclusive) = nextGranularity(start). |
label | string | Pre-formatted label for axis ticks / tooltips. |
start | number | Bucket start (inclusive). |
TimelineCanvasProps
interface TimelineCanvasProps {
bins: Bin[];
domain: Domain;
height: number;
range: [number, number];
theme?: "dark" | "light";
width: number;
}
Fields
| | |
|---|
bins | Bin[] | |
domain | Domain | |
height | number | |
range | [number, number] | Brushed window [start,end] in ms; bars intersecting it render "hot". |
theme | "dark" | "light" | |
width | number | |
TimelineData
interface TimelineData {
bins: Bin[];
domain: [number, number];
}
Fields
| | |
|---|
bins | Bin[] | |
domain | [number, number] | |
TimelineEvent
interface TimelineEvent {
data: NodeData | EdgeData | object;
time: number;
type: "addNode" | "removeNode" | "addEdge" | "removeEdge" | "updateNode";
}
Fields
| | |
|---|
data | NodeData | EdgeData | object | Node or edge data |
time | number | Time 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
TimelinePlayOptions
Options forwarded to the underlying filter playback.
interface TimelinePlayOptions {
durationMs?: number;
loop?: boolean;
mode?: "slide" | "expand" | "shrink";
step?: number;
windowSize?: number;
}
Fields
| | |
|---|
durationMs | number | Total playback duration in ms. |
loop | boolean | Loop at the end. |
mode | "slide" | "expand" | "shrink" | Window behaviour: slide (default), expand, or shrink. |
step | number | Units advanced per frame (default 1). |
windowSize | number | Window 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
| | |
|---|
api | RenderEngineApi | The render engine API. Drives api.timeline. |
className | string | |
height | number | Strip height in px (excludes the config header + axis). Default 92. |
locale | string | UI 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"
type ToolItem = ToolItemAction | ToolItemParent | ToolItemToggle | ToolSeparator
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 | |
i18nKey | string | |
icon | IconSpec | (ctx: ToolbarContext) => IconSpec | |
id | string | |
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 | |
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 | |
i18nKey | string | |
icon | IconSpec | (ctx: ToolbarContext) => IconSpec | |
id | string | |
items | ToolItem[] | |
keepOpen | boolean | When 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 | |
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 | |
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 | |
type ToolPriority = "critical" | "normal" | "optional"
interface ToolSeparator {
id: string;
kind: "separator";
}
Fields
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
| | |
|---|
api | RenderEngineApi | |
dispatch | (action: ToolbarAction) => void | |
getState | () => Readonly<ToolbarState> | |
locale | string | |
t | (key: string, values?: Record<string, string | number>) => string | |
viewId | string | |
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[] | |
interface ToolbarPlugin {
id: string;
messages?: Record<string, Record<string, string>>;
name?: string;
version?: string;
install: unknown;
uninstall?: unknown;
}
Fields
| | |
|---|
id | string | |
messages | Record<string, Record<string, string>> | |
name | string | |
version | string | |
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[] | |
registry | ToolRegistry | |
theme | "dark" | "light" | |
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
| | |
|---|
activeToggles | Record<string, string> | |
collapsed | Record<string, boolean> | |
dockPositions | Record<string, object> | |
layoutParams | Record<string, Record<string, unknown>> | Per-layout parameter overrides, keyed by tool id |
pinnedPositions | Record<string, object> | |
pinnedTools | string[] | |
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 | boolean | Invert the filter result (show what would be hidden, hide what would be shown) |
label | string | Human-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" | |
interface TransformResult {
edgesAdded: number;
edgesRemoved: number;
nodesAdded: number;
nodesRemoved: number;
}
Fields
| | |
|---|
edgesAdded | number | |
edgesRemoved | number | |
nodesAdded | number | |
nodesRemoved | number | |
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 | |