antvis/G6

G6 v5.0 transform: scale() 导致位置偏移 #5233

Anye7 posted onGitHub

问题描述

scale() 导致定位偏移 在4.x版本可以使用graph.get('canvas').set('supportCSSTransform', true)消除影响 在5.0版本中应该怎么去解决

重现链接

重现步骤

页面使用transform: scale() 导致图渲染位置偏移

预期行为

在排除原页面反缩放等方法外 其他类似G6配置相关的解决方法

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


hi @Anye7, welcome!

posted by github-actions[bot] over 1 year ago

Hi @Anye7, Please star this repo if you find it useful! Thanks :star:! 你好 @Anye7。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

你好,请提供更详细的说明及示例

posted by Aarebecca over 1 year ago

graph.canvas.context.config.supportsCSSTransform = true v5试试这个呢

posted by GemT27 over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests