|
@@ -22,7 +22,7 @@ class InteractiveImage(Element):
|
|
|
|
|
|
Create an image with an SVG overlay that handles mouse events and yields image coordinates.
|
|
Create an image with an SVG overlay that handles mouse events and yields image coordinates.
|
|
|
|
|
|
- :param source: the source of the image; can be an url or a base64 string
|
|
|
|
|
|
+ :param source: the source of the image; can be an URL or a base64 string
|
|
:param on_mouse: callback for mouse events (yields `type`, `image_x` and `image_y`)
|
|
:param on_mouse: callback for mouse events (yields `type`, `image_x` and `image_y`)
|
|
:param events: list of JavaScript events to subscribe to (default: `['click']`)
|
|
:param events: list of JavaScript events to subscribe to (default: `['click']`)
|
|
:param cross: whether to show crosshairs (default: `False`)
|
|
:param cross: whether to show crosshairs (default: `False`)
|