Types: U–Z
UniformValue
type UniformValue = number | number[] | THREE.Color | THREE.Vector2 | THREE.Vector3 | THREE.Vector4 | THREE.TextureUnsubscribe
A function returned by EventBus.on and EventBus.once that removes the subscription when called.
type Unsubscribe = () => voidUpdateStrategy
interface UpdateStrategy {
clear: unknown;
consumeDirty: unknown;
hasDirty: unknown;
isDirty: unknown;
markDirty: unknown;
markDirtyBatch: unknown;
}UserShortcutConfig
interface UserShortcutConfig {
overrides: Record<string, string | null>;
version: 1;
}Fields
overrides | Record<string, string | null> | key = commandId, value = binding string or null (disabled) |
version | 1 |
Vec3
Geometric Layout Types
Pure function layout system — no dependency on Graph/Node/THREE.js. Each layout function takes a LayoutContext and returns a LayoutResult.
type Vec3 = [number, number, number]VectorTileStyle
Colours + graticule spacing for createVectorTileProvider.
interface VectorTileStyle {
border?: string;
grid?: string;
gridStepDeg?: number;
land?: string;
ocean?: string;
}Fields
border | string | Country outline stroke. Default "#315a80". Pass "" to omit. |
grid | string | Graticule (lat/lng grid) stroke. Default "#1a3a55". Pass "" to omit. |
gridStepDeg | number | Graticule spacing in degrees. Default 15. 0 disables the grid. |
land | string | Land fill. Default "#1c3147". |
ocean | string | Ocean / background fill. Default "#0b1a2e". |
ViewEvent
View event payload
interface ViewEvent {
id: string;
type: ViewEventType;
view?: ViewInfo<TRenderer>;
}Fields
id | string | |
type | ViewEventType | |
view | ViewInfo<TRenderer> |
ViewEventHandler
Event handler type
type ViewEventHandler = (event: ViewEvent<TRenderer>) => voidViewEventType
View lifecycle event types
type ViewEventType = "view:registered" | "view:unregistered" | "view:activated" | "view:deactivated"ViewInfo
View information stored in registry
interface ViewInfo {
container: HTMLElement;
createdAt: Date;
id: string;
metadata?: Record<string, unknown>;
renderer: TRenderer;
store: GraphStore;
}Fields
container | HTMLElement | Container element for rendering |
createdAt | Date | Creation timestamp |
id | string | Unique view identifier |
metadata | Record<string, unknown> | Optional metadata |
renderer | TRenderer | GraphRenderer instance (type depends on implementation) |
store | GraphStore | GraphStore instance for this view |
ViewRegistrationOptions
View registration options (without auto-generated fields)
type ViewRegistrationOptions = Omit<ViewInfo<TRenderer>, "id" | "createdAt">ViewState
Snapshot of the canvas view: where cloudScene is panned, what z the
camera sits at, and (for 3D mode) the scene's rotation. Sufficient to
restore the exact same view via setViewState.
rotation is only meaningful in 3D mode; in 2D mode it's effectively
zero and ignored by the engine.
interface ViewState {
cameraZ: number;
position: [number, number, number];
rotation?: object;
}Fields
cameraZ | number | Camera z position (controls zoom). |
position | [number, number, number] | cloudScene world position [x, y, z]. |
rotation | object | 3D rotation (radians). Only meaningful when is3D === true. |
WarpShotOptions
interface WarpShotOptions {
distance?: number;
duration?: number;
fovKick?: number;
orientation?: Quaternion;
radius?: number;
recoil?: number;
}Fields
distance | number | Distance to arrive at. Required unless radius is given. |
duration | number | Total ms. Default 1700. |
fovKick | number | Degrees of FOV added at full stretch — the lens "opens up". Default 26. |
orientation | Quaternionwhatever the shot starts in | Final orientation. |
radius | number | Bounding radius of the destination; sets distance if that is absent. |
recoil | number | How far back the recoil pulls, as a multiple of the start distance. Default 1.7. |
WarpTunnelLayerConfig
interface WarpTunnelLayerConfig {
centre?: [number, number];
color?: ColorRepresentation;
length?: number;
opacity?: number;
}Fields
centre | [number, number] | |
color | ColorRepresentation | |
length | number | |
opacity | number |
WarpTunnelLayerProps
interface WarpTunnelLayerProps {
bandOffset?: number;
centre?: [number, number];
color?: ColorRepresentation;
hole?: number;
intensity: () => number;
length?: number;
name?: string;
opacity?: number;
streaks?: number;
}Fields
bandOffset | number | |
centre | [number, number] | Where the streaks converge, in clip space. Default [0, 0] (screen centre). |
color | ColorRepresentation | |
hole | number | Radius, as a fraction of the screen, inside which nothing is drawn. Default 0.06. |
intensity | () => number | How hard the streaks are pushing, 0..1, read every frame. At 0 the
layer draws nothing at all — it does not even submit a draw call. |
length | number | How long a streak gets at full intensity, as a fraction of the screen. Default 0.5. |
name | string | |
opacity | number | Overall brightness multiplier. Default 1. |
streaks | number | Streak count. Default 220. |
WarpTunnelLayerSpec
interface WarpTunnelLayerSpec {
bandOffset?: number;
centre?: [number, number];
color?: ColorRepresentation;
hole?: number;
intensity: () => number;
length?: number;
opacity?: number;
streaks?: number;
}Fields
bandOffset | number | |
centre | [number, number] | Where the streaks converge, in clip space. Default [0, 0] (screen centre). |
color | ColorRepresentation | |
hole | number | Radius, as a fraction of the screen, inside which nothing is drawn. Default 0.06. |
intensity | () => number | How hard the streaks are pushing, 0..1, read every frame. At 0 the
layer draws nothing at all — it does not even submit a draw call. |
length | number | How long a streak gets at full intensity, as a fraction of the screen. Default 0.5. |
opacity | number | Overall brightness multiplier. Default 1. |
streaks | number | Streak count. Default 220. |
WaypointHit
Where a flight has got to. Handed to FlyPathOptions.onWaypoint.
interface WaypointHit {
at: number;
index: number;
leaves: number;
nodeId: string;
point: Vector3;
}Fields
at | number | Ms into the flight at which this waypoint is reached. |
index | number | Index into the target as it was given. |
leaves | number | Ms at which the flight starts moving on again. |
nodeId | string | The node id, or null when the target was raw points. |
point | Vector3 | Where it is, in cloudScene local space. |