Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.graph.getContentBBox()计算graph高度不准确 #4309

Open
wbingyuan opened this issue May 16, 2024 · 1 comment
Open

this.graph.getContentBBox()计算graph高度不准确 #4309

wbingyuan opened this issue May 16, 2024 · 1 comment

Comments

@wbingyuan
Copy link

问题描述

在第一版的时候有个导出功能,通过getContentBBox获得的高度是真实的graph高度;
升级到v2之后,通过getContentBBox获得的高度是真实的graph高度不准确,通过加入参数{ useCellGeometry: false }可以解决,但是导出为png底层调用的getContentBBox是没有参数的,导致导出图片显示不全

重现链接

内网

重现步骤

点击导出按钮导出topo为png

预期行为

宽高正确
实际不准确

平台

  • 操作系统: [win10]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [2.17.1]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented May 16, 2024

👋 @wbingyuan

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant