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.  It uses custom cursors for any shape-related UI, like links.  But it sticks with the default browser cursors for the non-canvas UI.  ### 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>
This commit is contained in:
parent
abe9237c6e
commit
ab0df9118e
6 changed files with 145 additions and 21 deletions
|
@ -23,6 +23,7 @@ export const debugFlags = {
|
|||
peopleMenu: createDebugValue('tldrawPeopleMenu', false),
|
||||
logMessages: createDebugValue('tldrawUiLog', []),
|
||||
resetConnectionEveryPing: createDebugValue('tldrawResetConnectionEveryPing', false),
|
||||
debugCursors: createDebugValue('tldrawDebugCursors', false),
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue