Handling Events¶
- detroit_live.pointer(event: MouseEvent | WheelEvent, node: Element | None = None) tuple[float, float]¶
Returns a two-element array of numbers \([x, y]\) representing the coordinates of the specified event relative to the specified target.
- Parameters:
event (MouseEvent | WheelEvent) – Mouse event or wheel event
node (Optional[etree.Element]) – If the
nodeis specified, the event’s coordinates are transformed using the inverse of the screen coordinate transformation matrix.
- Returns:
Coordinates \([x, y]\)
- Return type:
tuple[float, float]