tldraw/packages
Steve Ruiz 3f90fbf5b0
[fix] polygon bounds (#2378)
This PR fixes the bounds calculation for polygons. It solves the bug
reported here: https://github.com/tldraw/tldraw/issues/2309 . Note that
this may produce visual changes for hexagons and other shapes.

![Kapture 2023-12-24 at 10 35
13](https://github.com/tldraw/tldraw/assets/23072548/773e89ee-f8c3-4875-b942-30860b1cdf22)

### Change Type

- [x] `patch` — Bug fix

### Test Plan

1. Create a hexagon shape with a label.
2. The label should be correctly centered.

### Release Notes

- Fixed a bug with the bounds calculation for polygons.
2023-12-24 11:53:15 +00:00
..
assets Another typo fix. (#2366) 2023-12-20 16:46:51 +00:00
editor [fix] polygon bounds (#2378) 2023-12-24 11:53:15 +00:00
state Update CHANGELOG.md [skip ci] 2023-12-20 15:27:34 +00:00
store Update CHANGELOG.md [skip ci] 2023-12-20 15:27:34 +00:00
tldraw [fix] polygon bounds (#2378) 2023-12-24 11:53:15 +00:00
tlschema Another typo fix. (#2366) 2023-12-20 16:46:51 +00:00
utils Another typo fix. (#2366) 2023-12-20 16:46:51 +00:00
validate Another typo fix. (#2366) 2023-12-20 16:46:51 +00:00