tldraw/apps/examples
Steve Ruiz 8892176b1a
[improvement] Scope getShapeAtPoint to rendering shapes only (#2043)
This PR:

1. Adds a `renderingOnly` option to the `Editor.getShapeAtPoint` method.
When true, the method will only hit test against rendering shapes
(shapes that are inside of the current `renderingBounds`) rather than
all shapes on the canvas.
2. Includes some low level improvements to the way that edges find their
nearest point.
3. Includes a fix to circle geometry that could produce NaN values
 
### Change Type

- [x] `minor` — New feature

### Test Plan

1. Check whether hovering shapes still works as you would expect.

- [x] Unit Tests

### Release Notes

- Improve perf for hovering shapes / shape hit tests
2023-10-09 14:18:42 +00:00
..
e2e [fix] Focus events (actually) (#2015) 2023-10-04 09:01:48 +00:00
src [improvement] Scope getShapeAtPoint to rendering shapes only (#2043) 2023-10-09 14:18:42 +00:00
.gitignore Update readme (#2027) 2023-10-06 12:10:33 +00:00
package.json Fix pinch start with toolbar open (#1895) 2023-09-18 10:50:15 +00:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.json Add snapshot prop, examples (#1856) 2023-09-08 14:48:55 +00:00
vite.config.ts Feature flags rework (#1474) 2023-05-30 13:06:15 +00:00

@tldraw/example