07ec1e6ea1
This PR fixes a bug with zero length arrows. Before: ![2023-11-07 at 15 17 47 - Harlequin Mouse](https://github.com/tldraw/tldraw/assets/15892272/4c0b9609-f4f0-49cc-8575-ffd58973e81f) After: ![2023-11-07 at 15 30 07 - Scarlet Dinosaur](https://github.com/tldraw/tldraw/assets/15892272/af3188f1-c996-46e1-a2ff-48de31e0fc05) Fixes #2166 ### Change Type - [x] `patch` — Bug fix [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Draw a rectangle. 2. Clone it. 3. Connect their centers with an arrow. 4. Hold control/command. 5. Drag one rectangle onto the other so they're in the exact same place. 6. Erase both rectangles (but NOT the invisible arrow). 7. Select all. 8. Hover the minimap. 9. Repeat but curve the arrow slightly before moving the rectangles together. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Fix a hyper niche arrow crash with zero length arrows. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |