Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix canvas DPR scaling for crisp selection rendering#8361

Merged
manzt merged 1 commit intoaka/ui-matplotlibfrom
push-lxzqyrwxmsyk
Feb 19, 2026
Merged

Fix canvas DPR scaling for crisp selection rendering#8361
manzt merged 1 commit intoaka/ui-matplotlibfrom
push-lxzqyrwxmsyk

Conversation

Copy link
Collaborator

manzt commented Feb 18, 2026 *
edited
Loading

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

manzt requested a review from Light2Dark as a code owner February 18, 2026 16:54
Copy link

vercel bot commented Feb 18, 2026 *
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Preview, Comment Feb 19, 2026 2:40am

manzt added the enhancement New feature or request label Feb 18, 2026
manzt force-pushed the push-lxzqyrwxmsyk branch from 9eee716 to 238ae2b Compare February 18, 2026 16:55
vercel bot deployed to Preview February 18, 2026 16:56 View deployment
manzt force-pushed the push-oottzpvouwxp branch from e6632e8 to 1e05969 Compare February 18, 2026 18:01
manzt force-pushed the push-lxzqyrwxmsyk branch from 238ae2b to 78a322e Compare February 18, 2026 18:01
manzt force-pushed the push-oottzpvouwxp branch from 8b746b8 to 8bdd2fa Compare February 18, 2026 18:04
vercel bot deployed to Preview February 18, 2026 18:04 View deployment
manzt force-pushed the push-lxzqyrwxmsyk branch from 78a322e to 79af0e3 Compare February 18, 2026 18:06
vercel bot deployed to Preview February 18, 2026 18:06 View deployment
akshayka approved these changes Feb 19, 2026
manzt force-pushed the push-oottzpvouwxp branch from 8bdd2fa to 03e6766 Compare February 19, 2026 02:35
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.
manzt force-pushed the push-lxzqyrwxmsyk branch from 79af0e3 to 6f8ebe1 Compare February 19, 2026 02:39
vercel bot deployed to Preview February 19, 2026 02:40 View deployment
manzt merged commit 3fe183b into aka/ui-matplotlib Feb 19, 2026
23 of 24 checks passed
manzt deleted the push-lxzqyrwxmsyk branch February 19, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

akshayka akshayka approved these changes

Light2Dark Awaiting requested review from Light2Dark

Assignees

No one assigned

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants