Files
cnc_wams/web-rtcp-5axis-sim-plan/app/src/main.js
wangdequan 626bcfe8e3 继续完成 web-rtcp-5axis-sim-plan
结论:完成 LinuxCNC kinematics WASM ABI 覆盖,并将 web-rtcp-5axis-sim-plan 的 RTCP frame/boundary adapter 接到 xyzac-trt kinematics SDK;Node、build、browser smoke 验证通过。
2026-06-21 16:44:29 +08:00

20 lines
479 B
JavaScript

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" });