[🎨Component] Allow onMouseDownonMouseMoveonMouseUp to be exposed
Previously mouse operations were hidden inside the Editor class. Thus, the mouse events were unable to be manipulated by users. For instance a user could not emit the inner mouse event with code
However, allowing users to manipulate the mouse events manually was necessary especially when a user decides to overlay a DOM or a transparent screen above Dotting component
I am currently developing a iPad app with Dotting and I needed to overlay a transparent screen on top of Dotting for manipulation.
Now users can call the inner mouse event logic through code
Refactor onMouseDownonMouseMove for better readability
[🎨Component] Refactor mouse event code for better readability
Previously the mouse event code was difficult to understand. This complexity could perplex anyone who tries to decipher the mouse logic
I refactored the code a little according to mouseMode and brushTool for better readability.
🚀 [Resolves #81 ]
Preview
Changes
Expose mouse event for user manipulation
[🎨Component] Allow
onMouseDown
onMouseMove
onMouseUp
to be exposedEditor
class. Thus, the mouse events were unable to be manipulated by users. For instance a user could not emit the inner mouse event with codeDotting
componentDotting
and I needed to overlay a transparent screen on top ofDotting
for manipulation.Refactor
onMouseDown
onMouseMove
for better readability[🎨Component] Refactor mouse event code for better readability
mouseMode
andbrushTool
for better readability.Notes
This is a feature necessary for dotting iPad app.
Next Up?