typograph-editor-documentation
    Preparing search index...

    Class Viewer

    The viewer as a thing you construct. Mirrors Typograph.Editor's contract exactly — see docs/Embedding.md, which applies to both.

    Unlike the editor there is no legacy auto-boot: nothing has ever loaded viewer.js, so it does nothing until a Viewer is constructed. That also means a host can decide at runtime which of the two to mount without one of them seizing the page first.

    Index
    • Remove the viewer's DOM and styles. Re-mounting afterwards is not supported.

      Returns void

    • The canvas document, once the viewer has booted.

      Returns typograph_document