This commit is contained in:
asp_ly 2024-12-14 13:51:18 +08:00
parent f3058cd7c9
commit 13297f25dd

View File

@ -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;
}
},
},
})
);
}