tldraw/packages
Steve Ruiz 79ca14454e
Fix text resizing with alt key (#3632)
This PR fixes a bug where alt-dragging the left or right handles of a
text shape would not produce the correct outcome: the width would double
but the center would change.

![Kapture 2024-04-28 at 13 48
52](https://github.com/tldraw/tldraw/assets/23072548/ad339a57-4efd-4201-86bc-c03a379f7e0c)

This is because the text shape is aspect ratio locked only when dragging
handles other than the left or right, but we didn't have the ability to
differentiate between that. We've had to add that optionality in,
together with a hard-coded override of the normal behavior for text
shapes.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix

### Test Plan

1. Resize text.
2. Resize text with the alt key held.

- [x] Unit Tests

### Release Notes

- Fixed a bug with resizing text shapes from the left and right while
holding alt.
2024-04-29 10:43:02 +00:00
..
assets Add desmos graph embed type (#3608) 2024-04-27 12:30:58 +00:00
dotcom-shared make route prefixes have a single place where they are defined (#3624) 2024-04-27 10:57:55 +00:00
editor Fix text resizing with alt key (#3632) 2024-04-29 10:43:02 +00:00
namespaced-tldraw Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00
state Revert "[signia] Smart dirty checking of active computeds (#3516)" (#3612) 2024-04-25 12:45:36 +00:00
store Automatic undo/redo (#3364) 2024-04-24 18:26:10 +00:00
tldraw Fix text resizing with alt key (#3632) 2024-04-29 10:43:02 +00:00
tlschema Add desmos graph embed type (#3608) 2024-04-27 12:30:58 +00:00
tlsync delete untracked api.json and stale api-report.md files (#3619) 2024-04-25 17:27:28 +00:00
utils Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00
validate Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00