G6的动画性能问题 大概一百多条边的蚂蚁线就掉帧严重。 #7336
Fei12138945
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
写法就按示例中的https://g6.antv.antgroup.com/examples/animation/persistence/#ant-line

写法就是在自定义边里添加动画:onCreate() {
const shape = this.shapeMap.key;
shape.animate([{ lineDashOffset: -20 }, { lineDashOffset: 0 }], {
duration: 500,
iterations: Infinity,
});
}
41926e29c725b5621d2e424d50831a60.mp4
Beta Was this translation helpful? Give feedback.
All reactions