types

Types: U–Z

UniformValue

type UniformValue = number | number[] | THREE.Color | THREE.Vector2 | THREE.Vector3 | THREE.Vector4 | THREE.Texture

Unsubscribe

A function returned by EventBus.on and EventBus.once that removes the subscription when called.

type Unsubscribe = () => void

UpdateStrategy

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

overridesRecord<string, string | null>key = commandId, value = binding string or null (disabled)
version1

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 stringCountry outline stroke. Default "#315a80". Pass "" to omit.
grid stringGraticule (lat/lng grid) stroke. Default "#1a3a55". Pass "" to omit.
gridStepDeg numberGraticule spacing in degrees. Default 15. 0 disables the grid.
land stringLand fill. Default "#1c3147".
ocean stringOcean / background fill. Default "#0b1a2e".

ViewEvent

View event payload

interface ViewEvent {
  id: string;
  type: ViewEventType;
  view?: ViewInfo<TRenderer>;
}

Fields

idstring
typeViewEventType
view ViewInfo<TRenderer>

ViewEventHandler

Event handler type

type ViewEventHandler = (event: ViewEvent<TRenderer>) => void

ViewEventType

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

containerHTMLElementContainer element for rendering
createdAtDateCreation timestamp
idstringUnique view identifier
metadata Record<string, unknown>Optional metadata
rendererTRendererGraphRenderer instance (type depends on implementation)
storeGraphStoreGraphStore 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

cameraZnumberCamera z position (controls zoom).
position[number, number, number]cloudScene world position [x, y, z].
rotation object3D rotation (radians). Only meaningful when is3D === true.

WarpShotOptions

interface WarpShotOptions {
  distance?: number;
  duration?: number;
  fovKick?: number;
  orientation?: Quaternion;
  radius?: number;
  recoil?: number;
}

Fields

distance numberDistance to arrive at. Required unless radius is given.
duration numberTotal ms. Default 1700.
fovKick numberDegrees of FOV added at full stretch — the lens "opens up". Default 26.
orientation Quaternion
whatever the shot starts in
Final orientation.
radius numberBounding radius of the destination; sets distance if that is absent.
recoil numberHow 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 numberRadius, as a fraction of the screen, inside which nothing is drawn. Default 0.06.
intensity() => numberHow 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 numberHow long a streak gets at full intensity, as a fraction of the screen. Default 0.5.
name string
opacity numberOverall brightness multiplier. Default 1.
streaks numberStreak 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 numberRadius, as a fraction of the screen, inside which nothing is drawn. Default 0.06.
intensity() => numberHow 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 numberHow long a streak gets at full intensity, as a fraction of the screen. Default 0.5.
opacity numberOverall brightness multiplier. Default 1.
streaks numberStreak 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

atnumberMs into the flight at which this waypoint is reached.
indexnumberIndex into the target as it was given.
leavesnumberMs at which the flight starts moving on again.
nodeIdstringThe node id, or null when the target was raw points.
pointVector3Where it is, in cloudScene local space.