tldraw/packages
Lu Wilson ab0df9118e
Add SVG cursors for all cursor types (#1416)
Fixes #1410 

This PR adds custom SVGs for all cursor types.
This will unblock some upcoming collaboration features!

It also adds some basic debugging for custom cursors.

![2023-05-19 at 11 02 57 - Coffee
Shrimp](https://github.com/tldraw/tldraw/assets/15892272/dbc84d04-604f-43e5-acd2-69df956e5784)

It uses custom cursors for any shape-related UI, like links.

![2023-05-19 at 11 07 04 - Amaranth
Aphid](https://github.com/tldraw/tldraw/assets/15892272/7eb25f6a-0552-47bd-b2b9-f6c3dc2fca70)

But it sticks with the default browser cursors for the non-canvas UI.

![2023-05-23 at 15 06 29 - Apricot
Bovid](https://github.com/tldraw/tldraw/assets/15892272/2fe35afb-095a-4454-a6c3-aa8337b71506)

### Change Type

- [x] `minor`

### Test Plan

1. Enable debug mode.
2. From the debug menu, enable "Debug cursors".
3. Hover the cursor over the shapes that appear.
4. Check that the cursor appears correctly over each one.
5. (Don't forget to turn off "Debug cursors" after use).

### Release Notes

- Added consistent custom cursors.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-05-23 14:12:11 +00:00
..
assets [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
editor Add SVG cursors for all cursor types (#1416) 2023-05-23 14:12:11 +00:00
file-format avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
indices Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives Measure individual words instead of just line breaks for text exports (#1397) 2023-05-22 15:10:03 +00:00
tldraw avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlschema [refactor] remove createTLSchema (#1440) 2023-05-23 13:35:11 +00:00
tlstore [refactor] Remove TLShapeDef, getShapeUtilByType. (#1432) 2023-05-23 12:32:42 +00:00
tlsync-client avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui Add SVG cursors for all cursor types (#1416) 2023-05-23 14:12:11 +00:00
utils Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00