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

1.x版本,toPNG 设置viewBox,生成空白图片 #3612

Closed
lhC0 opened this issue May 23, 2023 · 2 comments
Closed

1.x版本,toPNG 设置viewBox,生成空白图片 #3612

lhC0 opened this issue May 23, 2023 · 2 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@lhC0
Copy link

lhC0 commented May 23, 2023

问题描述

1.x版本,生成图片时设置viewBox,生成空白图片,删掉viewBox设置,可正常生成画布区域内所有节点的图片,只是无法指定区域;
2.x版本,设置viewBox,正常生成指定区域图片。

重现链接

暂无

重现步骤

预期行为

期望与2.x一样,可正常生成固定区域内节点的图片

平台

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

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@lhC0 lhC0 changed the title 1.x版本,toPng 设置viewBox,生成空白图片 1.x版本,toPNG 设置viewBox,生成空白图片 May 23, 2023
@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label May 30, 2023
@NewByVector
Copy link
Contributor

能否提供一个可以复现的 demo?

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 5, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants