Skip to content

Function: encode() ​

ts
function encode(state): string;

Defined in: serialization/ViewerState.ts:323

Encode a versioned viewer state object into a URL hash fragment string. Pipeline: JSON → UTF-8 → deflate → base64url → "svjs=..."

Parameters ​

state ​

ViewerState

Returns ​

string

Released under the MIT License.