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

fix: 修复浏览器窗口多次放大后表格渲染模糊 close #2884 #2897

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

lijinke666
Copy link
Member

👀 PR includes

🐛 Bugfix

📝 Description

系分 VisualViewport resize 场景下 Mac 触控板和浏览器窗口的区分, 避免相互冲突设置错误的 DPR

🖼️ Screenshot

Before After
Kapture 2024-09-12 at 15 21 27 Kapture 2024-09-12 at 15 19 03

🔗 Related issue link

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ❌ Failed (Inspect) Sep 12, 2024 7:23am

@github-actions github-actions bot added the next 2.0-next 版本的问题 label Sep 12, 2024
@github-actions github-actions bot added the pr(fix) bug fix label Sep 12, 2024
@@ -104,24 +115,34 @@ export class HdAdapter {
options: { width, height },
} = this.spreadsheet;
const canvas = this.spreadsheet.getCanvasElement();
const currentRatio = Math.ceil(ratio);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果是窗口缩放场景, DPR 可能是 1.2 , 也可能是 1.2123123 这种, 没啥意义, 统一取整

@lijinke666 lijinke666 linked an issue Sep 12, 2024 that may be closed by this pull request
5 tasks
Copy link
Contributor

Size Change: +30 B (+0.01%)

Total Size: 329 kB

Filename Size Change
./packages/s2-core/dist/index.min.js 229 kB +30 B (+0.01%)
ℹ️ View Unchanged
Filename Size
./packages/s2-core/dist/style.min.css 388 B
./packages/s2-react/dist/index.min.js 70.9 kB
./packages/s2-react/dist/style.min.css 3.88 kB
./packages/s2-vue/dist/index.min.js 22.9 kB
./packages/s2-vue/dist/style.min.css 1.97 kB

compressed-size-action

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.81%. Comparing base (ecdc9c8) to head (ed89cfd).
Report is 432 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2897      +/-   ##
==========================================
+ Coverage   75.77%   80.81%   +5.03%     
==========================================
  Files         257      180      -77     
  Lines       11994    10412    -1582     
  Branches     2464     2360     -104     
==========================================
- Hits         9088     8414     -674     
+ Misses       1398      554     -844     
+ Partials     1508     1444      -64     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lijinke666 lijinke666 merged commit 97e2905 into next Sep 18, 2024
12 of 13 checks passed
@lijinke666 lijinke666 deleted the fix-2884 branch September 18, 2024 10:54
@lijinke666
Copy link
Member Author

🎉 This PR is included in version @antv/s2-v2.0.0-next.28 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题 pr(fix) bug fix released on @next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛浏览器缩放导致表格模糊问题
2 participants