X6 icon indicating copy to clipboard operation
X6 copied to clipboard

页面进入后的第一次sendToken表现异常

Open fanmingfei opened this issue 2 years ago • 3 comments

Describe the bug

刷新页面,进行一次sendToken,第一个次sendToken的动画不显示

Your Example Website or App

https://codesandbox.io/s/epic-hypatia-70blmk?file=/src/app.tsx

Steps to Reproduce the Bug or Issue

进入页面后 点击第一个节点

Expected behavior

正常显示

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

fanmingfei avatar Jul 29 '22 08:07 fanmingfei

是否和这个 https://github.com/antvis/X6/issues/1952 有关。

NewByVector avatar Aug 01 '22 21:08 NewByVector

不太一样。打开页面后的第一次sendToken直接结束,没有动画过程。

fanmingfei avatar Aug 03 '22 02:08 fanmingfei

X6/packages/x6/src/util/dom/geom.ts setTimeout(() => { ani.beginElement(); },10) ani.beginElement()设置一个10ms的setTimeout可以解决这个问题,但是原因还不清楚,只是个暂时的解决方式

Tabris7777 avatar Sep 02 '22 08:09 Tabris7777