Sprint 14 integration: merge a/e/c/b (406/0/0), mount B's score + C's wind panels in editor.html
This commit is contained in:
parent
e49ad04f99
commit
3432ea0d1c
@ -195,13 +195,24 @@
|
|||||||
import { createEditor } from './js/editor.js';
|
import { createEditor } from './js/editor.js';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await createEditor({
|
const EDITOR = await createEditor({
|
||||||
canvas: document.getElementById('ed-canvas'),
|
canvas: document.getElementById('ed-canvas'),
|
||||||
side: document.getElementById('ed-side'),
|
side: document.getElementById('ed-side'),
|
||||||
toolbar: document.getElementById('ed-toolbar'),
|
toolbar: document.getElementById('ed-toolbar'),
|
||||||
readout: document.getElementById('ed-readout'),
|
readout: document.getElementById('ed-readout'),
|
||||||
hint: document.getElementById('ed-hint'),
|
hint: document.getElementById('ed-hint'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// The two lane panels, mounted AFTER createEditor resolves because both need
|
||||||
|
// a live EDITOR — B's reads `globalThis.EDITOR` on import (self-registering,
|
||||||
|
// nothing to call), C's exports a mount function. Landed by the integrator at
|
||||||
|
// SPRINT14 integration: both lanes built against A's published seams and
|
||||||
|
// asked for this one line each; A had finished by then, so it's mine. Inside
|
||||||
|
// the try on purpose — a panel that throws is an editor that says so on the
|
||||||
|
// glass rather than a rail with a hole in it.
|
||||||
|
await import('./js/editor_score.js');
|
||||||
|
const { mountWindPanel } = await import('./js/editor.wind.js');
|
||||||
|
await mountWindPanel(EDITOR);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// The editor is a tool, so it fails LOUD and on the glass. index.html's boot
|
// The editor is a tool, so it fails LOUD and on the glass. index.html's boot
|
||||||
// failure writes into a hidden #dev div and shows a stranger a blank page
|
// failure writes into a hidden #dev div and shows a stranger a blank page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user