Skip to content

Function: deserialize()

ts
function deserialize(viewer, state): RestorationReport;

Defined in: src/serialization/StateDeserializer.ts:18

Apply a serialized state to a NeuroSurfaceViewer.

Each section applies independently — one failure does not block others. Returns a RestorationReport describing what succeeded and what was skipped.

Parameters

viewer

any

state

ViewerStateV1

Returns

RestorationReport

Released under the MIT License.