import { createSimulationStore } from "./state/store.js"; import { mountGmoccapyShell } from "./ui/gmoccapy-shell.js"; const app = document.querySelector("#app"); if (!app) { throw new Error("Missing #app mount point"); } const store = createSimulationStore(); const shell = mountGmoccapyShell(app, store); window.webRtcp5AxisSimulation = { getState: store.getState, dispatch: store.dispatch, getRegions: shell.getRegions, }; store.dispatch({ type: "BOOT_READY" });