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 22, 2023
1 parent 995f311 commit 21d9aef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Draco.Trace.Visualizer/src/TimelineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ function buildGraph(domRef: React.MutableRefObject<null>, props: Props) {
svg
.selectAll('g')
.select('rect')
.transition(transition)
.attr('transform', `translate(${x} 0) scale(${k} 1)`);
svg
.selectAll('g')
.select('text')
.transition(transition)
.attr('transform', (node: any) => {
return `translate(${x + (k - 1) * ((node.visualBounds.x0 + node.visualBounds.x1) / 2)} 0)`;
});
Expand Down

0 comments on commit 21d9aef

Please sign in to comment.