antvis/G6

The issue has been closed
切换路由页面后再回来MiniMap没有渲染; #4864
Xujun007 posted onGitHub
问题描述
在A页面绘制关系图,并且配置好plugins: [minimap],页面能正常显示MiniMap;然后切换至B页面,再切换回A页面时,Minimap没有渲染,且没有任何报错。 const minimap = new G6.Minimap({ size: [200, 200], viewportClassName: 'drag-border', hideEdge: true, type: 'delegate', delegateStyle: { fill: '#597ef7', stroke: '#597ef7', lineWidth: 1, }, });
重现链接
暂无;
重现步骤
暂无;
预期行为
首次进入A页面能加载MiniMap(能正常实现),切换路由再回到A页面时也能加载MiniMap;
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- G6 版本: [4.5.1 ... ]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response