Skip to content

Conversation

@minestarks
Copy link
Member

@minestarks minestarks commented Jan 15, 2026

We were only using the canvas package for snapshot tests to mock out usage of the canvas element in the product code.

The product doesn't need to use a Canvas element to estimate text width. Since we have a limited set of characters in gate names anyway, estimating with a small utility works just as well (and is probably more performant too since it doesn't do actual rendering)

The difference between the old method and the new method is a few pixels at most in all of the samples and snapshots I checked. There are no visually noticeable changes.

@minestarks minestarks added this pull request to the merge queue Jan 16, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2026
@minestarks minestarks added this pull request to the merge queue Jan 16, 2026
@minestarks minestarks removed this pull request from the merge queue due to a manual request Jan 16, 2026
@minestarks minestarks merged commit 20bce94 into main Jan 16, 2026
18 checks passed
@minestarks minestarks deleted the minestarks/remove-canvas branch January 16, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants