You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
问题描述
官方示例https://codesandbox.io/s/y5lu69运行错误,本地也遇见相同错误,提示错误:"TypeError: view.sendToken is not a function",安装版本"@antv/x6": "^2.9.4",本地代码如下,
const edge = graph.getEdges();
edge.forEach(item => {
const view = graph.findViewByCell(item)
const token = Vector.create('circle', { r: 6, fill: 'green' });
view.sendToken(token.node, 1000)
});
跟踪发现EdgeView下并无sendToken
重现链接
https://codesandbox.io/s/y5lu69
重现步骤
1、进入页面就可以看见错误
预期行为
无错误提示,能正常工作
平台
屏幕截图或视频(可选)
本地调试发现EdgeView下边并无sendToken方法,什么情况?麻烦给与解答,谢谢
补充说明(可选)
本地调试发现EdgeView下边并无sendToken方法,什么情况?麻烦给与解答,谢谢
The text was updated successfully, but these errors were encountered: