antv G2 如何设置鼠标滚轮缩放功能,折线图超过外部布局宽度
官方方法:
const graph = new Graph({
scroller: {
enabled: true,
pannable: true,
pageVisible: true,
pageBreak: false,
},
mousewheel: {
enabled: true,
modifiers: ['ctrl', 'meta'],
},
})
https://x6.antv.vision/zh/docs/tutorial/basic/mousewheel