Start the editor: publish Typograph.Editor and subscribe to the canvas lifecycle.
These used to run when this module was evaluated, which is fine for the bundle that IS the
editor and wrong for any other. The viewer reaches this module through the shared widget
layer, so evaluating it set the editor up on top of the viewer — a second Toolbar in the
viewer's floating panel, and the legacy auto-boot constructing an Editor nobody asked for.
Only editor.ts, the entry point, calls this. Importing anything from here is now free of
side effects.
Start the editor: publish Typograph.Editor and subscribe to the canvas lifecycle.
These used to run when this module was evaluated, which is fine for the bundle that IS the editor and wrong for any other. The viewer reaches this module through the shared widget layer, so evaluating it set the editor up on top of the viewer — a second Toolbar in the viewer's floating panel, and the legacy auto-boot constructing an Editor nobody asked for.
Only editor.ts, the entry point, calls this. Importing anything from here is now free of side effects.