12 lines
433 B
TypeScript
12 lines
433 B
TypeScript
import type { CompositorGraphIR } from "./compositor";
|
|
|
|
/** Workbench command payload for the bounded local compositor evaluator. */
|
|
export const compositorCommands = Object.freeze({
|
|
evaluate(graph: CompositorGraphIR): CompositorGraphIR {
|
|
return structuredClone(graph);
|
|
},
|
|
setNodeGraph(sceneId: string, graph: CompositorGraphIR) {
|
|
return { type: "setCompositorNodeGraph", sceneId, graph } as const;
|
|
},
|
|
} as const);
|