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

use half of strokeWidth in bounds calculation #3487

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stas-sl
Copy link
Contributor

@stas-sl stas-sl commented May 3, 2022

Hi, as default stoke-alignment is center (and there is no way to change it currently), seems reasonable to use only half of strokeWIdth in bounds calculation. It is probably not a big issue, if most strokes are 1 pixel, but if they become bigger, it might get more noticeable.

image

https://observablehq.com/d/81f81579d483666e

Screen.Recording.2022-05-03.at.21.10.11.mov

@kanitw kanitw requested a review from a team as a code owner May 20, 2024 23:33
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.

None yet

1 participant