Skip to main content

Interface: UrlStateBinding

Defined in: src/serialization/urlState.ts:34

One control's serializable state, keyed by a stable user-provided id.

The controls (MovablePoint, Slider, PanZoomControls) have no registered scene serializer for their interactive state, so a permalink captures a small explicit { id: value } map: get reads the live value, set restores it.

Properties​

get()​

get: () => unknown

Defined in: src/serialization/urlState.ts:38

Read the current JSON-serializable value of this control.

Returns​

unknown


id​

id: string

Defined in: src/serialization/urlState.ts:36

Stable id used as the key in the encoded { id: value } map.


set()​

set: (value) => void

Defined in: src/serialization/urlState.ts:40

Apply a decoded value back to this control.

Parameters​

value​

unknown

Returns​

void