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

[Bug]: Enlargement of the canvas does not take effect or displays an abnormal display in some cases of fixed node size #6674

Open
3 of 10 tasks
liuchangheng opened this issue Dec 27, 2024 · 1 comment
Labels

Comments

@liuchangheng
Copy link

Describe the bug / 问题描述

图不采用render绘制时,希望放大画布时,固定节点,使用 FixElementSize 来实现,
问题1:放大画布后,清除所有节点,然后在重新渲染时,节点没有固定大小,而是按照画布现有的zoom进行绘制,
问题2: 在拖动节点时,节点会变大,且拖动完成后,节点也没有变小,
问题3:不再可视范围的节点,没有被固定大小

Reproduction link / 复现链接

https://codesandbox.io/p/sandbox/stoic-haze-gq2hs3?workspaceId=ws_M2rp6HnoPaeSEyXosFZC2z

Steps to Reproduce the Bug or Issue / 重现步骤

当图一直使用draw的方式渲染时,放大画布后,删除所有节点,然后通过draw方法绘制,
问题1: 这时,节点无法固定大小,会一同放大
问题2: 在问题1的基础上执行 一次zoomTo 可以解决问题,但是在拖拽节点时,节点会放大
问题3:部分不再可视区域的节点,没有固定大小,会被放大,点击一下画布后,又会缩小

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@liuchangheng liuchangheng added the status: waiting for maintainer These issues have not yet been reviewed by a maintainer label Dec 27, 2024
@github-actions github-actions bot changed the title [Bug]: 放大画布固定节点大小部分情况下不生效或者显示异常 [Bug]: Enlargement of the canvas does not take effect or displays an abnormal display in some cases of fixed node size Dec 27, 2024
@antvis antvis deleted a comment from petercat-assistant bot Dec 27, 2024
@yvonneyx
Copy link
Contributor

感谢您的反馈,这个例子很好地反映出缺陷,我们会尽快进行修复 ❤️

@yvonneyx yvonneyx added bug and removed status: waiting for maintainer These issues have not yet been reviewed by a maintainer labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants