Adds comments cursor

This commit is contained in:
alonso.torres 2020-11-24 08:35:01 +01:00
parent b66b0cb431
commit b37ee0fcac
3 changed files with 7 additions and 3 deletions

View file

@ -35,6 +35,7 @@
(def pointer-node (cursor-ref :pointer-node 0 0 10 32))
(def pointer-move (cursor-ref :pointer-move 0 0 10 42))
(def pen-node (cursor-ref :pen-node 0 0 10 36))
(def comments (cursor-ref :comments 0 2 20))
(mf/defc debug-preview
{::mf/wrap-props false}
@ -58,4 +59,3 @@
[:span {:style {:white-space "nowrap"
:margin-right "1rem"}} (pr-str key)]])))]))

View file

@ -536,12 +536,12 @@
:class (when drawing-tool "drawing")
:style {:cursor (cond
panning cur/hand
(= drawing-tool :comments) cur/hand
(= drawing-tool :comments) cur/comments
(= drawing-tool :frame) cur/create-artboard
(= drawing-tool :rect) cur/create-rectangle
(= drawing-tool :circle) cur/create-ellipse
(or (= drawing-tool :path) drawing-path?) cur/pen
(= drawing-tool :curve)cur/pencil
(= drawing-tool :curve) cur/pencil
drawing-tool cur/create-shape
:else cur/pointer-inner)
:background-color (get options :background "#E8E9EA")}