Skip to content

Commit

Permalink
added logic for row and pixel position
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinMetzger committed Jun 14, 2017
2 parents 9e92816 + 931e0dd commit c9dbe82
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/traceView/branch-navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,25 @@ export class BranchNavigator {


function update$GraphTooltip($gutterTooltip, mousePositionX, mousePositionY, visualization) {


let branchModel = this.traceViewModel.branchModel;


let row = // you need to look in the node's data for the row the code belongs. Take a look of the highlighting logic to see how is done.
let
rowData = null;
if (dataModel.rows.hasOwnProperty(row)) {
rowData = dataModel.rows[row];
let pixelPosition = {};
pixelPosition.pageY = mousePositionY; //mousePositionY is set in the call-graph.js class
pixelPosition.pageX = mousepositionX; //mousePositionX is set in the call-graph.js class

setTooltipMouseMove(target, row, pixelPosition, rowData);

}


if (!$gutterTooltip) {
return;
}
Expand Down

0 comments on commit c9dbe82

Please sign in to comment.