OptionalcontainerOptionalhostThe host's providers, as for Typograph.Editor (TYP-697). Pass them here, never with a
typograph.setup() call of your own: the viewer calls setup() itself, and a second call
replaces its document.
Optionallegacy_false turns every PHP fallback off; only providers from host are used.
OptionallocaleThe language of the viewer's own texts, as for Typograph.Editor (TYP-1287): 'en' or 'nl'.
Omitted, data-typograph-locale on decides, and without it English.
Optionalpage_Page bar controls. Omitted keys keep canvas's own defaults.
Optionalshow_Show the rulers. Default true — they are part of what canvas's viewer mode has always shown, and the implementer decides whether their product wants them.
Where the viewer is built. Defaults to document.body.