antvis/G6

Do you want to work on this issue?
You can request for a bounty in order to promote it!
G6 v4.x renderer='svg' exported svg contains hided nodes and edges #6505
balrogden posted onGitHub
Describe the bug / 问题描述
use graph with my cusomt nodes. Some nodes amd edges are hided by graph.hideItem. When i call toFullDataURL all hided nodes and edges are visible on result svg
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
create graph with renderer='svg' used layout = dagre add some nodes and edge call graph.layout hide some nodes using graph.hideItem call graph.toFullDataURL( svgUrl => {do something with svg}) extent of svgUrl will be correct - only for visible nodes, but all invisible nodes wich lies inside extent will be visible in the svgUrl
G6 Version / G6 版本
4.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome, Firefox
Additional context / 补充说明
No response