antvis/G6


The issue has been closed
anchorPoint失效问题 #4663
Oceannnnnnnn posted onGitHub
问题描述
- 我在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 ... ]
屏幕截图或视频(可选)
补充说明(可选)
No response