kopia lustrzana https://github.com/Tldraw/Tldraw
stickies: additive cursor icon
rodzic
a8b7d4e2d0
commit
ad85208116
|
@ -64,6 +64,7 @@
|
|||
/* These cursor values get programmatically overridden */
|
||||
/* They're just here to help your editor autocomplete */
|
||||
--tl-cursor: var(--tl-cursor-default);
|
||||
--tl-cursor-copy: copy;
|
||||
--tl-cursor-resize-edge: ew-resize;
|
||||
--tl-cursor-resize-corner: nesw-resize;
|
||||
--tl-cursor-ew-resize: ew-resize;
|
||||
|
|
|
@ -36,6 +36,7 @@ function getCursorCss(
|
|||
const STATIC_CURSORS = [
|
||||
'default',
|
||||
'pointer',
|
||||
'copy',
|
||||
'cross',
|
||||
'move',
|
||||
'grab',
|
||||
|
|
|
@ -8,7 +8,7 @@ export class Idle extends StateNode {
|
|||
}
|
||||
|
||||
override onEnter = () => {
|
||||
this.editor.setCursor({ type: 'cross', rotation: 0 })
|
||||
this.editor.setCursor({ type: 'copy', rotation: 0 })
|
||||
}
|
||||
|
||||
override onCancel = () => {
|
||||
|
|
|
@ -9,6 +9,7 @@ export const TL_CURSOR_TYPES = new Set([
|
|||
'none',
|
||||
'default',
|
||||
'pointer',
|
||||
'copy',
|
||||
'cross',
|
||||
'grab',
|
||||
'rotate',
|
||||
|
|
Ładowanie…
Reference in New Issue