antvis/G6










The issue has been closed
graph.updateLayout 之后 自定义的 G6.registerEdge( 'line-dash', ....) 失效了 #5160
RainyNight9 posted onGitHub
问题描述
在用 graph.updateLayout 切换布局之后 默认自定义的 G6.registerEdge( 'line-dash', ....) 失效了 表现为:在边上自定义了 run 动画,以及箭头,但是在切换布局之后,动画没了,箭头留在的初始位置。
重现链接
重现步骤
layoutConfig = {
type: 'circular',
radius: 300,
workerEnabled: true
}
graph.updateLayout(layoutConfig);
graph.layout(true)
预期行为
希望 默认的 自定义边不失效。
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- G6 版本: [4.5.1 ... ]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response