diff --git a/frontend/src/pages/Workflow/Definition/Design/index.tsx b/frontend/src/pages/Workflow/Definition/Design/index.tsx index fc815715..9fb36486 100644 --- a/frontend/src/pages/Workflow/Definition/Design/index.tsx +++ b/frontend/src/pages/Workflow/Definition/Design/index.tsx @@ -107,6 +107,22 @@ const WorkflowDesign: React.FC = () => { width: 200, height: 150, padding: 10, + scalable: true, + minScale: 0.01, + maxScale: 16, + graphOptions: { + async: true, + getCellView(cell) { + if (cell.isNode()) { + return graph.findViewByCell(cell); + } + }, + createCellView(cell) { + if (cell.isEdge()) { + return null; + } + }, + }, }) ); }