chengup-git
chengup-git
> 通过类名(x6-graph-svg)获取到节点去生成图片就好了。  应该是这个导致的,只有svg元素才行,我用上一级的container不行,下一级的x6-graph-svg-viewport也不行,然后看了下文档,发现是这个原因
  在图标实例的demo中拖拽出两个节点就可以复现了
> 有可以复现的 demo 吗? 好像发现怎么回事了,节点重叠之后,智能正交路由变成了正交路由,有没有方法让他重叠的时候还是智能正交路由
> 能把代码发出来吗,我本地调试一下。 import { Graph } from '@antv/x6' import insertCss from '../../edge/demo/node_modules/insert-css' import { DataUri } from "@antv/x6"; const graph = new Graph({ container: document.getElementById('container'), grid: true, resizing: true, })...
> > 能把代码发出来吗,我本地调试一下。 > > import { Graph } from '@antv/x6' import insertCss from '../../edge/demo/node_modules/insert-css' import { DataUri } from "@antv/x6"; > > const graph = new Graph({ container: document.getElementById('container'),...
 这里改成100%
> 能否直接粘贴代码或者搞个 codesanbox 呢,我复现你的代码好麻烦。 直接把这个代码放那个图表实例就可以了 
> > 能否直接粘贴代码或者搞个 codesanbox 呢,我复现你的代码好麻烦。 > > 直接把这个代码放那个图表实例就可以了  
> 我的意思是你不要发图片,直接发文本代码。 import { Graph } from '@antv/x6' import { DataUri } from "@antv/x6"; const graph = new Graph({ container: document.getElementById('container'), grid: true, resizing: true, }) graph.addNode({ x: 280, y:...
> 我测试了一下,是一些默认样式没有被加载,两个解决方案: > > 1. copyStyle 设置为 true,这样下载的时候页面会闪烁一次 > 2. 把 最外层 div 宽度稍微减少一点。 最外层宽度减少一点,那样选中节点会有点怪,有没有更好的解决方法?