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

Pass a bbox through graph hover data #941

Merged
merged 1 commit into from
Aug 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/fragments/Graph.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ const filterEventData = (gd, eventData, event) => {
const pointData = filter(function(o) {
return !includes(type(o), ['Object', 'Array']);
}, fullPoint);
// permit a bounding box to pass through, if present
if (has('bbox', fullPoint)) {
pointData.bbox = fullPoint.bbox;
}
if (
has('curveNumber', fullPoint) &&
has('pointNumber', fullPoint) &&
Expand Down