antvis/G6
The issue has been closed
通过拖拽同时添加自定义节点和combo,仅渲染自定义节点 #3145
wuxinhuiaiwll posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
通过拖拽同时添加自定义节点和combo,仅渲染自定义节点。通过graph.save()查看数据,combo已被创建。此时当手动拖动画布内任意节点该combo会渲染出来。 为了方便复现,Demo中用定时器模拟异步添加的过程。
另,已尝试使用graph.refresh()和graph.paint(),均无法更新画布使得combo成功渲染。通过graph.save()获取最新数据后调用graph.render()可以渲染出正确的节点和combo,但有无法接受的combo绘制动画。故demo中不包含此部分的复现。
Environment | Info |
---|---|
g6 | 4.3.5 |
System | macos Big Sur 11.1 |
Browser | chrome 92 |
<!-- generated by antv-issue-helper. DO NOT REMOVE -->