Mouse events
<AnnotationViewer/>
support mouse events.#
The You can use the
onShapeMouseEnter
,onShapeMouseLeave
andonShapeClick
props to bind event handlers to the<canvas/>
shapes.
{ methods: { onShapeMouseEnter: function (shape) { console.log(shape) }, onShapeMouseLeave: function (shape) { console.log(shape) }, onShapeClick: function (shape) { console.log(shape) }, }
....
}