9d8a0b0a8d
Closes [#2737](https://github.com/tldraw/brivate/issues/2737) For the checkbox and x-box the inner lines are inset slightly from the edges to account for the stroke width. Alas at tiny box sizes (the box is creates as w:1,h:1 during a drag-to-create interaction) this was ending up with the insets overflowing such that they left the box on the other side, creating miscalculations during the initial resizing. This PR clamps the positions of the x-box and checkbox inner lines so they don't escape the bounds of the box. ### Change Type - [x] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [ ] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### 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 - Fixes a regression introduced by the geometry refactor related to x-box and checkbox resizing. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |