Type Alias Trigger

Trigger:
    | "click"
    | "mouse-enter"
    | "mouse-leave"
    | "after-delay"

Types of triggers defined:

  • click triggers when the user uses the mouse to click on a shape
  • mouse-enter triggers when the user moves the mouse inside the shape (even if no mouse button is pressed)
  • mouse-leave triggers when the user moves the mouse outside the shape.
  • after-delay triggers after the delay time has passed even if no interaction from the user happens.