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
交叉表父元素设置tranfrom:scale(0.8) ,字体模糊,缩放越小越模糊,相当于div 里面的字体,交叉表的字体显得更模糊
官网案例,随便一个父元素上加了缩放 .antv-s2-container{ transform: scale(0.9); transform-origin: left top; }
官网案例 https://s2.antv.antgroup.com/examples/case/comparison/#measure-comparison
交叉表父元素加了transform:scale()
字体正常呈现,
字体模糊
The text was updated successfully, but these errors were encountered:
可尝试使用高 DPR 去渲染 Canvas
const s2Options = { devicePixelRatio: 2 }
Sorry, something went wrong.
devicePixelRatio这个属性 我们尝试过,不管怎么设置值,还是存在模糊的状况
在我的mac上不糊,但是同事在1080p显示器就会糊,开了dpr之后不同浏览器糊的还不一样
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
交叉表父元素设置tranfrom:scale(0.8) ,字体模糊,缩放越小越模糊,相当于div 里面的字体,交叉表的字体显得更模糊
⌨️ Code Snapshots
官网案例,随便一个父元素上加了缩放
.antv-s2-container{
transform: scale(0.9);
transform-origin: left top;
}
🔗 Reproduce Link
官网案例 https://s2.antv.antgroup.com/examples/case/comparison/#measure-comparison
🤔 Steps to Reproduce
交叉表父元素加了transform:scale()
😊 Expected Behavior
字体正常呈现,
😅 Current Behavior
字体模糊
💻 System information
The text was updated successfully, but these errors were encountered: