tldraw/packages
David Sheldrick 5f7032a553
[fix] setCamera animates to constrained viewport (#3828)
Before this PR, calling `setCamera` with an `animation` option would
calculate the target viewport based on the camera passed in without
first applying constraints. That meant that if the camera did indeed
need to be constrained you'd end up with some funky animations.

### Change Type

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

- [x] `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
- [ ] `internal` — Does not affect user-facing stuff

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

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


### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Add a brief release note for your PR here.
2024-05-28 09:36:40 +00:00
..
assets Add heart geo shape (#3787) 2024-05-24 13:04:28 +00:00
dotcom-shared Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
editor [fix] setCamera animates to constrained viewport (#3828) 2024-05-28 09:36:40 +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 [fix] setCamera animates to constrained viewport (#3828) 2024-05-28 09:36:40 +00:00
tlschema Add heart geo shape (#3787) 2024-05-24 13:04:28 +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