feat(editor): Add node enable/disable functionality in new canvas (no-changelog) (#9872)

This commit is contained in:
Alex Grozav
2024-06-26 16:56:58 +03:00
committed by GitHub
parent c39c087c20
commit e995309789
21 changed files with 489 additions and 46 deletions

View File

@@ -6,16 +6,20 @@ export function createCanvasNodeData({
id = 'node',
type = 'test',
typeVersion = 1,
disabled = false,
inputs = [],
outputs = [],
connections = { input: {}, output: {} },
renderType = 'default',
}: Partial<CanvasElementData> = {}): CanvasElementData {
return {
id,
type,
typeVersion,
disabled,
inputs,
outputs,
connections,
renderType,
};
}