fb2d3b4372
This PR improves a bunch of places where we do "minimum distance checks". Previously, we were using `Vec.Dist`, which uses `Math.hypot` to find the actual distance, but we can just as well use the squared distance. So this PR makes a small improvement to `Vec.Dist2` and then switches to that method when checking minimum distances. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Test Plan - [x] Unit Tests ### Release Notes - Performance: small improvements to hit testing. |
||
---|---|---|
.. | ||
api.json |