feat(web): continue source-backed implementation waves
This commit is contained in:
9
web/protocol/geometry-node-commands.ts
Normal file
9
web/protocol/geometry-node-commands.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { GeometryNodeGraphIR } from "./geometry-nodes";
|
||||
import type { WebEngineEditCommand } from "./web-engine";
|
||||
|
||||
/** Workbench constructors for validated Geometry Node graph transactions. */
|
||||
export const geometryNodeCommands = Object.freeze({
|
||||
setGraph(meshId: string, graph: GeometryNodeGraphIR): Extract<WebEngineEditCommand, { type: "setGeometryNodeGraph" }> {
|
||||
return { type: "setGeometryNodeGraph", meshId, graph };
|
||||
},
|
||||
} as const);
|
||||
Reference in New Issue
Block a user