import { WorkflowNodeRegistry } from '@flowgram.ai/free-layout-editor'; /** * You can customize your own node registry * 你可以自定义节点的注册器 */ export const nodeRegistries: WorkflowNodeRegistry[] = [ { type: 'start', meta: { isStart: true, // Mark as start deleteDisable: true, // The start node cannot be deleted copyDisable: true, // The start node cannot be copied defaultPorts: [{ type: 'output' }], // Used to define the input and output ports, the start node only has the output port }, }, { type: 'end', meta: { deleteDisable: true, copyDisable: true, defaultPorts: [{ type: 'input' }], }, }, { type: 'custom', meta: {}, defaultPorts: [{ type: 'output' }, { type: 'input' }], // A normal node has two ports }, ];