You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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