mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-12 01:33:36 +01:00
feat: node creation and serialization logic in workflow editor
This commit is contained in:
1 parent
88260c26ab
commit
85d90c3382
5 files changed
+230
-174
No files matched your search
@@ -593,7 +593,9 @@ export const nodeRegistry: Record<string, NodeRegistryEntry> = {
|
||||
export function createNodeByType(type: string): BaseWorkflowNode | null {
|
||||
const entry = nodeRegistry[type];
|
||||
if (!entry) return null;
|
||||
return entry.factory();
|
||||
const node = entry.factory();
|
||||
node.nodeType = type;
|
||||
return node;
|
||||
}
|
||||
|
||||
export function getNodesByCategory(): Record<
|
||||
|
||||
Reference in new issue
Block a user