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
Following #159, we now have a list of all shapes currently drawn on canvas. We need to be able to pass mouse events callbacks as arguments when drawing the shapes, in a way similar to that:
Definining mouse event callback will cause the artist to automatically track the shape, and store a reference to the callbacks.
Then, we need to capture the click, mouseenter, mouseleave events on the $canvas object (in the Artist), and check whether the mouse was in one of the shapes we are tracking. For all the shapes in which the mouse click/hovering happened, we need to trigger the callback defined before.
The text was updated successfully, but these errors were encountered:
Following #159, we now have a list of all shapes currently drawn on canvas. We need to be able to pass mouse events callbacks as arguments when drawing the shapes, in a way similar to that:
Definining mouse event callback will cause the artist to automatically track the shape, and store a reference to the callbacks.
Then, we need to capture the
click
,mouseenter
,mouseleave
events on the$canvas
object (in theArtist
), and check whether the mouse was in one of the shapes we are tracking. For all the shapes in which the mouse click/hovering happened, we need to trigger the callback defined before.The text was updated successfully, but these errors were encountered: