g6-editor
g6-editor copied to clipboard
在click事件中item为空 node:click事件无法监听到 this.graphData = { nodes: [{ id: 'node1', shape:'circle', label: 'START', x: 100, y: 100, labelCfg:{ } },{ id: 'node2', shape:'rect', x: 100, y: 200 },{ id: 'node3', shape:'rect',...
给边加锚点
怎么给边设置锚点,使其可以拖拽并调整边的路径
我想用来画无向的拓扑图,所以希望能够去掉默认连接线上的箭头。有没有人指点一下这个是由哪个属性或者控件控制的呢?
g6-editor 版本:1.2.0 ``` import G6Editor from '@antv/g6-editor'; const { Flow } = G6Editor; // 注册输入源基类 Flow.registerNode('model-input', { draw(item) { const group = item.getGraphicGroup(); const model = item.getModel(); const r =...
求推荐 急用 非常感谢
group.addShape('dom', { attrs: { x: x + 10, y: y + 12, width: 20, height: 16, html: "444" } }); 这样使用为什么老是报如下警告 g6Editor.js?51cd:14173 TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The...
我想注册个自定义一个类似flow-rhombus 中间加个图片的结点,请问 draw 里面该如何写呢?求教个示例。。。 G6Editor.Flow.registerNode("flow-fork", { draw(item) { //这里的代码如何写呢 ??? 。。。。。。 return keyShape; }, "flow-rhombus");
