graphSvg为当前的画布 //鼠标右键事件 graphSvg.on('node:contextmenu', ({ e, node }) => { e.preventDefault();// 阻止默认的右键菜单 console.log(e,node) }) //鼠标滑过 节点 新增删除事件 gra Read More
posted @ 2024-07-04 18:15 烂笔头~ Views(3) Comments(0) Diggs(0) Edit
graphSvg为画布 if(graphSvg){ graphSvg.dispose(); graphSvg = null; } 另外,还需要将页面中配置的跟画布相关的数据清空。 Read More
posted @ 2024-07-04 18:06 烂笔头~ Views(9) Comments(0) Diggs(0) Edit