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

cell.size()后graph.toPNG错误Error: size exceeded #4450

Open
MC-YCY opened this issue Sep 24, 2024 · 3 comments
Open

cell.size()后graph.toPNG错误Error: size exceeded #4450

MC-YCY opened this issue Sep 24, 2024 · 3 comments

Comments

@MC-YCY
Copy link

MC-YCY commented Sep 24, 2024

Describe the bug

在画布中已存在的节点更改大小cell.size(),当导出图片时报错误Error: size exceeded;更改cell其他信息像setData setZIndex则没事

Your Example Website or App

https://github.com/MC-YCY/antv-x6-vue3/blob/master/src/components/designer/index.vue

Steps to Reproduce the Bug or Issue

1.选中画布中节点
2.右侧表单区域width,height输入框更改数值
3.点击表单区域上方导出base64

Expected behavior

期望更改大小后导出正常

Screenshots or Videos

20240924_151935.mp4

Platform

  • OS:windows
  • Browser: Chrome
  • Version: 127.0.6533.120

Additional context

阿里巴巴是世界上最好的公司,图表库我只用antv系列

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 24, 2024

👋 @MC-YCY

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.

@MC-YCY
Copy link
Author

MC-YCY commented Sep 25, 2024

好了解决辣,Number(e.target.value)就好;
但是画布中渲染的元素大小都是一样的,导出就错误

@Ardanas
Copy link

Ardanas commented Sep 26, 2024

问一下,导出图片的时候,放大画布图片就会清晰很多,缩小就很模糊,但导出的时候又不希望影响当前画布,有法子吗

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

2 participants