We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
业务需要在屏幕过小时或移动端浏览器中将图表强制横屏,使用css transform rotate属性将图表旋转了90度,在配置中添加了supportCSSTransform:true,点击交互都正常,但滚动方向还是翻转之前的方向。
翻转后的图表滚动方向按照当前的方向正常滚动
The text was updated successfully, but these errors were encountered:
supportCSSTransform 只是确保 transform 后拿到的坐标是正确的, 表格滚动是不受影响的, 不支持这种场景, 垂直滚动对应 deltaY, 水平滚动对应 deltaX, 你可以提一个 PR, 支持横屏模式, 互换下 deltaX/deltaY 的值, 或者 onWheel 的时候新增一个 hook, 可以自定义 deltaX/deltaY, 以满足你的诉求
supportCSSTransform
deltaY
deltaX
deltaX/deltaY
onWheel
S2/packages/s2-core/src/facet/base-facet.ts
Lines 954 to 959 in bd09e3d
Sorry, something went wrong.
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
业务需要在屏幕过小时或移动端浏览器中将图表强制横屏,使用css transform rotate属性将图表旋转了90度,在配置中添加了supportCSSTransform:true,点击交互都正常,但滚动方向还是翻转之前的方向。
🔗 Reproduce Link
😊 Expected Behavior
翻转后的图表滚动方向按照当前的方向正常滚动
😅 Current Behavior
The text was updated successfully, but these errors were encountered: