Skip to content

Commit

Permalink
Update TimelineGraph.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Sep 21, 2023
1 parent ef70f50 commit e9840f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Draco.Trace.Visualizer/src/TimelineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const TimelineGraph = (props: Props) => {
.attr('text-anchor', 'middle')
.attr('x', (node: any) => node.x0 + (node.x1 - node.x0) / 2)
.attr('y', (node: any) => height - node.y1 + (node.y1 - node.y0) / 2);

allNodes.on('click', (svg, node) => {
console.log(node.data.name);
});
}, [data, width, height]);

return (
Expand Down

0 comments on commit e9840f9

Please sign in to comment.