G2
G2 copied to clipboard
g-base 这个库,EventController 对象鼠标和滚轮事件addEventListener加入 { passive: true }
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
当大盘同时有多个图表加载时候,滚动页面会非常卡顿,浏览器也会大量的报no-passive警告,加入这个可以解决卡顿,记得兼容哦
What does the proposed API look like?
无
这个库没人维护了吗? g-base 这个包目前只能找到一个 npm 的链接,也没有 git 仓库...
在 @antv/g 中,monorepo的方式
在 @antv/g 中,monorepo的方式
这个我有找过,但还是没找到在哪😂 https://github.dev/antvis/g/blob/next/packages/g/package.json
master 分支,next 分支是 G 5.0 对应 https://g-next.antv.vision
master 分支,next 分支是 G 5.0 对应 https://g-next.antv.vision
感谢,找到了。那么关于 passive 这个,当前版本有计划吗?
g-base
的 event-controller
,会绑定 document 的 mousemove 事件,在页面有多个 bizCharts 实例时,鼠标移动都会造成明显卡顿。
@xiaoiver 这个问题我印象中已经解决了?麻烦看一下。
目前 4.x G 不会维护了,可以使用 5.x 的 G:https://github.com/antvis/G 。