tldraw/packages/editor/src/lib
Steve Ruiz f21eaeb4d8
[fix] zero width / height bounds (#1840)
This PR fixes zero width or height on Geometry2d bounds. It adds the
`zeroFix` helper to the `Box2d` class.

### Change Type

- [x] `patch` — Bug fix

### Test Plan

1. Create a straight line
2. Create a straight arrow that binds to the straight line

- [x] Unit Tests

### Release Notes

- Fix bug with straight lines / arrows
2023-09-08 14:45:30 +00:00
..
components [fix] zero width / height bounds (#1840) 2023-09-08 14:45:30 +00:00
config Rename shapes apis (#1787) 2023-08-02 18:12:25 +00:00
editor Fix paste transform (#1859) 2023-09-08 08:26:55 +00:00
hooks avoid pixel rounding / transformation miscalc for overlay items (#1858) 2023-09-08 10:47:14 +00:00
primitives [fix] zero width / height bounds (#1840) 2023-09-08 14:45:30 +00:00
test Remove helpers / extraneous API methods. (#1745) 2023-07-18 21:50:23 +00:00
utils Rename shapes apis (#1787) 2023-08-02 18:12:25 +00:00
constants.ts ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
TldrawEditor.tsx avoid pixel rounding / transformation miscalc for overlay items (#1858) 2023-09-08 10:47:14 +00:00