-
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
EdgeView 的 sendToken 方法页面加载后的第一次执行总是失败 #1444
Comments
👋 @upwell 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. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the AntV community! 💪💯 |
Still here. Not stale. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the AntV community! 💪💯 |
Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot 🤖, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the AntV community! 💪💯 |
同样碰到了这个问题,找了一天找不到头绪。。 |
@Tabris7777 应该和 #1952 这个有关。 |
X6/packages/x6/src/util/dom/geom.ts |
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. |
问题描述
在我的电脑上能够稳定复现,官方的 demo 示例:
官方示例
页面加载后的第一次点击 矩形A 时,小球并不会出现在边上。但是之后的每次点击,小球都会出现在边上。
环境
浏览器:
操作系统:macOS Big Sur 16.1
可能的原因
调试一下后,在下面的代码片段中找到了一些线索
X6/packages/x6/src/view/edge.ts
Lines 1541 to 1565 in 77d3abe
动画的代码片段:
X6/packages/x6/src/util/dom/geom.ts
Lines 435 to 451 in 77d3abe
在收到 endEvent 事件的时候,会执行 sendToken 里面的
attrs.complete
,会把 token 的 svg 删除掉,这是期望的逻辑,本身没有什么问题。但当页面第一次加载,首次调用 sendToken 时,比较奇怪的是
ani.beginElement()
会被 restart,这样就触发endEvent
和beginEvent
,导致 token 闪了一下就消失了。具体不知道什么原因会导致 animation 被 restart,这里有一段关于restart的描述,不知道是不是浏览器行为。
https://www.w3.org/TR/2001/REC-smil-animation-20010904/#Restart
The text was updated successfully, but these errors were encountered: