Skip to content

Commit 135a45d

Browse files
committed
add xPixel and yPixel keys to PlotMouseEvent type
1 parent 6b7799d commit 135a45d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/types/core/events.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ export interface PlotMouseEvent {
104104
points: PlotDatum[];
105105
/** The original DOM mouse event. */
106106
event: MouseEvent;
107+
/** x and y pixel position of the mouse */
108+
xPixel: number;
109+
yPixel: number;
107110
}
108111

109112
/** Payload for `plotly_hover` — augments `PlotMouseEvent` with axis values. */

0 commit comments

Comments
 (0)