Skip to content

Commit 4908251

Browse files
committed
Fixed: Dependency graph no longer hijacks other svgs
1 parent c4b8d66 commit 4908251

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<svg width="100%" height="100%" viewBox="-750 -250 1500 500"></svg>
1+
<svg class="dependency-graph" width="100%" height="100%" viewBox="-750 -250 1500 500"></svg>

src/app/component/dependency-graph/dependency-graph.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class DependencyGraphComponent implements OnInit, OnChanges {
171171
}
172172

173173
generateGraph(): void {
174-
let svg = d3.select('svg');
174+
let svg = d3.select('svg.dependency-graph');
175175
svg.selectAll('*').remove();
176176

177177
// Now that rectWidth is set on each node, set up the simulation

0 commit comments

Comments
 (0)