10 lines
452 B
TypeScript
10 lines
452 B
TypeScript
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);
|