Yanyan Wang

Results 296 comments of Yanyan Wang

graph.changeData 即可,不行的话请给出在线复现 demo

这种重叠的巧合比较大概率出现在 ‘0’ 这个点四周的空间不够,nodeSize 和 linkDistance 基本上把这个区域占满,导致了重叠可能性增加。考虑根据节点的度数调整 linkDistance,比如 ‘0’ 相关的 linkDistance 大一些 https://g6.antv.vision/zh/docs/api/graphLayout/force#layoutcfglinkdistance

enabledStack 有打开吗,如 https://g6.antv.vision/zh/examples/tool/toolbar#toolbar line85

> ![image](https://user-images.githubusercontent.com/111745349/190945213-e1dff5d9-eb4a-4fdc-a24a-7314db42e8e7.png) 这个值设为true 放大缩小之后撤销重做按钮还是灰色还不可用,设置为false颜色不是灰色但是还是同样点击也不可用 打开之后置灰应该是因为当前图上没有东西可以撤销重做吧?做一些操作,撤销重做栈里有内容,就不会置灰了

arc 类型的边事件有些问题,可以用 quadratic 来代替

自定义节点的 keyShape 是什么?即 draw 方法 return 的是哪个图形? anchorPoints 的百分比是相对于 keyShape 而言的

we run npm run build on mac. What is the error message on your Ubuntu?

The comboForce layout could not completely solve the overlapping problems. Maybe try the new layout 'comboCombined' with the beta version?

> Example 1: comboCombined Adjust the comboPadding for comboCombined, the overlapping problem will be alleviated. The initial size of the combos are wrong, try call this after graph.render ``` setTimeout(()...

拖拽节点要更新节点的位置,是会触发 update 的。你的自定义节点有没有实现 update 方法?如果没有的话,可以写一下,判断没有必要的情况下,不更新 image-shape