Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 6a18fd9

Browse files
author
Xing Han Lu
authored
Merge pull request #941 from rreusser/ricky/bbox-2
Pass a bbox through graph hover data
2 parents cbfb31e + 5d2c423 commit 6a18fd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fragments/Graph.react.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ const filterEventData = (gd, eventData, event) => {
7474
const pointData = filter(function (o) {
7575
return !includes(type(o), ['Object', 'Array']);
7676
}, fullPoint);
77+
// permit a bounding box to pass through, if present
78+
if (has('bbox', fullPoint)) {
79+
pointData.bbox = fullPoint.bbox;
80+
}
7781
if (
7882
has('curveNumber', fullPoint) &&
7983
has('pointNumber', fullPoint) &&

0 commit comments

Comments
 (0)