-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用addItem方法报错:p.getType is not a function #1613
Comments
我也遇到这个问题,然后把onClick方法稍微改动就可以了,改黑色粗体部分 |
我这里的需求是想实现用鼠标点击连线,按照g6曾经的demo示例是给target一个坐标实现的。但现在g6 3.5版本不支持target传入坐标了,传入id是可以的。 |
@jason1ee 你按我的方法改,可以实现同样的需求 |
src/graph/controller/item.ts
|
@SagittariusZhu 既然updateItem的target可以指定为坐标,那么addItem的target也应该可以指定为坐标,所以应该是一个bug |
下个小版本修复 |
3.5.1 已修复。 |
The text was updated successfully, but these errors were encountered: