tldraw/packages
Taha d0033ce353
Add unit tests for the camera (#3814)
It made more sense for me to group the tests via input rather than via
direction of zoom, so I made a test each for pinching and wheel event
zoom. I can change this though if there's some reason for grouping them
that way that I'm missing.

From what I can tell, resetting the zoom happens via the hand tool,
which is already tested, or via the UI, which should be E2E tested.
Couldn't figure out how to write a test for that.


### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [x] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [x] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know

### Release Notes

- Adds unit tests for the camera
2024-05-23 08:35:53 +00:00
..
assets add missing spline icons (#3778) 2024-05-20 09:28:14 +00:00
dotcom-shared Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
editor Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
namespaced-tldraw Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00
state Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
store Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
tldraw Add unit tests for the camera (#3814) 2024-05-23 08:35:53 +00:00
tlschema Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
tlsync Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
utils Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
validate Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00