-
Notifications
You must be signed in to change notification settings - Fork 977
Fix canvas DPR scaling for crisp selection rendering#8361
Merged
manzt merged 1 commit intoaka/ui-matplotlibfrom Feb 19, 2026
Merged
Fix canvas DPR scaling for crisp selection rendering#8361manzt merged 1 commit intoaka/ui-matplotlibfrom
manzt merged 1 commit intoaka/ui-matplotlibfrom
Conversation
Collaborator
On HiDPI/Retina displays the selection box and lasso overlays rendered blurry because the canvas backing store matched the logical pixel dimensions rather than the physical ones. The browser stretched the 1x canvas to fill the CSS size, producing soft edges on every fillRect, strokeRect, and lineTo call.
| before | after |
|---|---|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
manzt
force-pushed
the
push-lxzqyrwxmsyk
branch
from
February 18, 2026 16:55
9eee716 to
238ae2b
Compare
manzt
force-pushed
the
push-oottzpvouwxp
branch
from
February 18, 2026 18:01
e6632e8 to
1e05969
Compare
manzt
force-pushed
the
push-lxzqyrwxmsyk
branch
from
February 18, 2026 18:01
238ae2b to
78a322e
Compare
manzt
force-pushed
the
push-oottzpvouwxp
branch
from
February 18, 2026 18:04
8b746b8 to
8bdd2fa
Compare
manzt
force-pushed
the
push-lxzqyrwxmsyk
branch
from
February 18, 2026 18:06
78a322e to
79af0e3
Compare
akshayka
approved these changes
Feb 19, 2026
manzt
force-pushed
the
push-oottzpvouwxp
branch
from
February 19, 2026 02:35
8bdd2fa to
03e6766
Compare
Base automatically changed from
push-oottzpvouwxp
to
aka/ui-matplotlib
February 19, 2026 02:38
On HiDPI/Retina displays the selection box and lasso overlays rendered
blurry because the canvas backing store matched the logical pixel
dimensions rather than the physical ones. The browser stretched the 1x
canvas to fill the CSS size, producing soft edges on every fillRect,
strokeRect, and lineTo call.
blurry because the canvas backing store matched the logical pixel
dimensions rather than the physical ones. The browser stretched the 1x
canvas to fill the CSS size, producing soft edges on every fillRect,
strokeRect, and lineTo call.
manzt
force-pushed
the
push-lxzqyrwxmsyk
branch
from
February 19, 2026 02:39
79af0e3 to
6f8ebe1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.