Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
第一次拖拽开始节点时标记一个变量,第二次要拖拽开始节点时检查一下这个变量是否为true,为true就return |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
const start = graph.createNode({
id: 'start',
shape: 'rect',
label: '开始',
width: 60,
height: 30,
attrs: { ...nodeAttrs },
ports: { ...ports }
});
stencil 中 load 的上述节点,graph 的 cell:added 事件获取的 cell.id !== 'start' 是随机生成的 uuid ,如何判断当前节点已经拖入画布,不允许重复拖入?或者如何设置元素的id 不使用 uuid 而使用 node 中定义的 id: 'start' ?
Beta Was this translation helpful? Give feedback.
All reactions