antvis/G6

anchorPoint失效问题 #4663

Oceannnnnnnn posted onGitHub

问题描述

  1. 我在https://g6.antv.antgroup.com/examples/interaction/createEdge/#drag-link-point的例子中修改了之后 anchorPoint会失效 在设置anchorPointBottomIdx和anchorPointTopIdx为0时anchorPoint在rect的左边 为1时在rect的右边 而并非我自己设置的两个结点

重现链接

https://codesandbox.io/s/fast-haze-tyd35s?file=/index.js

重现步骤

右侧显示 点击黑色 anchorPoint拖拽到蓝色的 anchorPoint

预期行为

黑色 anchorPoint连接到蓝色 anchorPoint上

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

87cc4414432caaf27955e936bfb3c73

补充说明(可选)

No response


自定义节点的 getAnchorPoints 不能删掉哈,这个返回了节点上边连接对应的位置。

posted by Yanyan-Wang almost 2 years ago

自定义节点的 getAnchorPoints 不能删掉哈,这个返回了节点上边连接对应的位置。

感谢已经解决了

posted by Oceannnnnnnn almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests