Skip to content

Commit

Permalink
added console logs for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinMetzger committed Jun 14, 2017
2 parents c9dbe82 + a413753 commit f6796f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/traceView/branch-navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,15 @@ export class BranchNavigator {
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;
let row = nodeRow// 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);

}


Expand Down
5 changes: 5 additions & 0 deletions src/visualization/call-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ export class CallGraph {
function mouseover() {
var mousePositionX = (d3.event.clientX);
var mousePositionY = (d3.event.clientY);
var nodeRow = (d3);
console.log(d3.event);
console.log(d3.data);
console.log(d3.data.row);
console.log(d3.event.data.row);
}


Expand Down

0 comments on commit f6796f8

Please sign in to comment.