Ant G6创建节点、创建边并连接
// 节点1样式及配置const model1 = { id: 'node1', children: [], name: '名称', color: 'yellow', x: 200, y: 150, style: { fill: 'blue', },};// 创建第一个节点到图上,第一个参数:类型type为‘node’节点graph.addItem('node', model1);// 节点2样式及配置cons.
原创
2022-05-05 14:46:58 ·
2186 阅读 ·
0 评论