antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

g2 开启label ==>> layout中某些组合 会报错 #6114

dudu824 posted onGitHub

问题描述

g2 开启label ==>> layout 并在layout中使用{ type: 'overlap' }, { type: 'limit-in-plot', cfg: { action: 'translate' } }会报错 <img width="623" alt="image" src="https://github.com/antvis/G2/assets/80903923/254b5c03-d3bd-4f4c-b2ff-75cce780fca2">

重现链接

https://codesandbox.io/p/sandbox/vibrant-cookies-dc9xhm?file=%2Findex.ts

重现步骤

  1. 进入页面
  2. copy页面代码到g2官网
  3. 打开控制台
  4. 渲染完毕
  5. 查看控制台

预期行为

预期行为 正常渲染无错误产生 实际结果 报错导致浏览器卡顿

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

<img width="1150" alt="image" src="https://github.com/antvis/G2/assets/80903923/76ad500a-e443-4f1f-8fae-34f5afbda320"> <img width="619" alt="image" src="https://github.com/antvis/G2/assets/80903923/1acb66dd-6321-40e7-ab81-804ba5eb728e">

补充说明(可选)

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests