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.
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.