Add dual canvas XYZBC and refined machine visualization

This commit is contained in:
2026-09-10 05:47:14 +08:00
parent d90933b980
commit 17887c199a
15 changed files with 935 additions and 92 deletions

View File

@@ -159,6 +159,7 @@ export type PanelSnapshotV1 = {
active_segment_id?: number | null;
active_progress?: number;
motion_trace?: Array<{ tick: number; pose: Record<string, number>; joints: number[]; active_segment_id: number; active_progress: number }>;
machine_model?: XyzacMachineModel;
source: "wasm_canonical_motion";
};
authoritative: Record<string, unknown>;
@@ -169,6 +170,17 @@ export type PanelSnapshotV1 = {
io?: Record<string, unknown>;
};
export type XyzacMachineModel = {
schema: "linuxcnc-vismach-model.v1";
id: string;
source: "linuxcnc-wasm-worker";
source_path: string;
source_hash: string | null;
coordinate_system: "XYZAC";
joints: string[];
components: string[];
};
export type Capabilities = {
context_id?: string;
abi?: Record<string, unknown>;