You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pointer represents the current state of the mouse pointer, which roughly corresponds to the state of the toolbar in draw-toolbar: hand, selection, mind, text, and the unique pointer value corresponding to various graphics. When board.pointer equals text, it means entering the mode of clicking to create text.
Pointer also has another function, which is to drive the drawing board container to add a className: pointer-${board.pointer}. In react, directly changing the value of board.pointer cannot drive the UI to update the className. How can such a requirement be implemented in drawnix? @Xwatson@whyour
The text was updated successfully, but these errors were encountered:
pointer 代表当前鼠标的指针状态,差不多可以对应 draw-toolbar 中工具栏的状态:hand、selection、mind、text 以及各种图形对应的 pointer 唯一值,当 board.pointer 等于 text 代表进入点击创建 text 的模式。
pointer 还有一个作用是驱动画板容器增加一个 className:
pointer-${board.pointer}
,在 react 中直接改 board.pointer 的值无法驱动 UI 更新 className,这样的需求在 drawnix 中如何实现?Pointer represents the current state of the mouse pointer, which roughly corresponds to the state of the toolbar in draw-toolbar: hand, selection, mind, text, and the unique pointer value corresponding to various graphics. When board.pointer equals text, it means entering the mode of clicking to create text.
Pointer also has another function, which is to drive the drawing board container to add a className:
pointer-${board.pointer}
. In react, directly changing the value of board.pointer cannot drive the UI to update the className. How can such a requirement be implemented in drawnix? @Xwatson @whyourThe text was updated successfully, but these errors were encountered: