Skip to content
New issue

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() ,字体模糊 #2287

Open
1 of 5 tasks
misswangkang opened this issue Jul 18, 2023 · 3 comments
Open
1 of 5 tasks

🐛交叉表父元素设置了tranfrom:scale() ,字体模糊 #2287

misswangkang opened this issue Jul 18, 2023 · 3 comments
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复

Comments

@misswangkang
Copy link

🏷 Version

Package Version
@antv/s2 1.47.1
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 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

Environment Info
System window 10
Browser chrome: 114.0.5735.199
@lijinke666
Copy link
Member

可尝试使用高 DPR 去渲染 Canvas

const s2Options = {
  devicePixelRatio: 2
}

@misswangkang
Copy link
Author

devicePixelRatio这个属性 我们尝试过,不管怎么设置值,还是存在模糊的状况

@github-actions github-actions bot added the 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 label Aug 31, 2023
@cloudflypeng
Copy link

在我的mac上不糊,但是同事在1080p显示器就会糊,开了dpr之后不同浏览器糊的还不一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复
Projects
None yet
Development

No branches or pull requests

3 participants