g3-toolkit API Reference
    Preparing search index...

    Function parseWorkspace

    • Parse a workspace snapshot.

      Throws rather than degrading (see @g3-toolkit/core's model/document-errors.ts): a snapshot half-applied is worse than one rejected, because the camera and the pins would disagree. A nested encoding spec is parsed by its own parser, so a bad spec surfaces as an encoding-spec error rather than as a workspace one.

      Parameters

      • json: string

      Returns WorkspaceSnapshot