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 line wobble #1915

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Fix line wobble #1915

merged 2 commits into from
Sep 18, 2023

Conversation

ds300
Copy link
Collaborator

@ds300 ds300 commented Sep 18, 2023

Closes #1911

Change Type

  • patch — Bug fix
  • minor — New feature
  • major — Breaking change
  • dependencies — Changes to package dependencies1
  • documentation — Changes to the documentation only2
  • tests — Changes to any test code only2
  • internal — Any other changes that don't affect the published package2
  • I don't know

Test Plan

  1. Add a step-by-step description of how to test your PR here.
  • Unit Tests
  • End to end tests

Release Notes

  • Fixes an issue where lines would wobble as you dragged the handles around

Footnotes

  1. publishes a patch release, for devDependencies use internal

  2. will not publish a new version 2 3

@ds300 ds300 self-assigned this Sep 18, 2023
@huppy-bot huppy-bot bot added the bugfix Bug fix label Sep 18, 2023
@vercel
Copy link

vercel bot commented Sep 18, 2023

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

Name Status Preview Updated (UTC)
examples ✅ Ready (Inspect) Visit Preview Sep 18, 2023 4:17pm

@ds300 ds300 added this pull request to the merge queue Sep 18, 2023
Merged via the queue into main with commit 1b8c153 Sep 18, 2023
5 checks passed
@ds300 ds300 deleted the david/fix-wobble branch September 18, 2023 16:21
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2023
This is a follow up to #1915 which caused the shape container div
dimensions to be wildly inaccurate. We thought it wouldn't matter but we
had a note on discord from someone who was relying on the div container
being accurate.

This rounds the shape dimensions to the nearest integer that is
compatible with the user's device pixel ratio, using the method
pioneered in #1858 (thanks @BrianHung)

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version


### Release Notes

- Improves the precision of the shape dimensions rounding logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lines vibrate when rotated 90 degrees
1 participant