From 13297f25dd90b168927aa5ec2dfdeadf280301d2 Mon Sep 17 00:00:00 2001 From: asp_ly Date: Sat, 14 Dec 2024 13:51:18 +0800 Subject: [PATCH] 1 --- .../pages/Workflow/Definition/Design/index.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; + } + }, + }, }) ); }