-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
2.x版本 edge:change:target 应该在改变结束后发生 #3103
Comments
试了一下,从 1.0.1 版本开始就是一直触发的,并没有你说的 2.x 版本才一直触发。测试链接。 |
@NewByVector 抱歉,是我搞错了。请问有什么方法可以监听 source 或 target 变化完成时的事件么?我需要捕获这个事件保存到服务器,实时变化对服务器的请求太频繁了。 |
@JamesTing |
@NewByVector 无法满足,因为用户希望在画板中绘制一个“独立自由”的line。 有如下使用场景:
|
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
graph.on('edge:change:target',()={})这个事件,
1.x时,是改变结束后发生的。
升级到2.x后,变成“实时发生”了。
这导致保存到服务器的频率太高了。
重现链接
暂无
重现步骤
预期行为
我期望edge:change:target在事件发生后发送,而不是没拖动一点点持续发送。
或者,新增一个edge:change:target“完成态”的事件。
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: