antvis/G6

Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: Enlargement of the canvas does not take effect or displays an abnormal display in some cases of fixed node size #6674
liuchangheng posted onGitHub
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 / 其他