refactor: move debug node into runtime
This commit is contained in:
23
app/src/lib/node-registry/debugNode.ts
Normal file
23
app/src/lib/node-registry/debugNode.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
const data: Record<string, unknown> = {};
|
||||
|
||||
export function clearDebugData() {
|
||||
for (const key in data) {
|
||||
delete data[key];
|
||||
}
|
||||
}
|
||||
|
||||
export function getDebugData() {
|
||||
return { ...data };
|
||||
}
|
||||
|
||||
export const debugNode = {
|
||||
id: 'max/plantarium/debug',
|
||||
inputs: {
|
||||
a: {
|
||||
type: '*'
|
||||
}
|
||||
},
|
||||
execute(data: Int32Array) {
|
||||
return data;
|
||||
}
|
||||
} as const;
|
||||
Reference in New Issue
Block a user