HTML5 Canvas Fire Event with Konva
To fire events with Konva, we can use the fire()
method.
This enables us to programmatically fire events like click
, mouseover
,
mousemove
, etc., and also fire custom events, like foo and bar.
Note: While custom events are possible, it's generally better to use built-in interaction events like
click
,mouseover
,mousemove
, etc. Custom events can make code harder to maintain and debug.
- Vanilla
- React
- Vue