antvis/G6

自定义图形在放大情况下拖动节点,画布有残影 #4462

xtito posted onGitHub

Describe the bug

在使用G6-4.8.6版本过程中,自定义图片节点在放大的情况下,拖动节点时,label文字会留下残影

Your Example Website or App

https://stackblitz.com/edit/js-g1m2pu?file=index.js

Steps to Reproduce the Bug or Issue

说明:目前不仅是自定义节点有该问题,内置节点在拖动时偶尔也有残影,尤其是矩形节点

复现步骤: 1、自定义图片节点; 2、定义节点数据; 3、实例化G6,G6 配置参数设置 maxZoom 为 3; 4、放大画布,放至最大 5、拖动节点,尤其是向上拖动节点最为明显。

demo示例详情见:https://stackblitz.com/edit/js-g1m2pu?file=index.js

image

Expected behavior

画布节点正常渲染,且在拖动节点时没有残影

Screenshots or Videos

1682328355002

Platform

  • OS: macOS
  • Browser: Chrome 103.0.5060.134 版本
  • Version: G6 4.8.6

Additional context

No response


Fund this Issue

$0.00
Funded

Pull requests