Skip to content

Commit 2111518

Browse files
committed
The edges in the component hierarchy graph are now straight and the dynamics of the graph is turned off.
1 parent 32e8e25 commit 2111518

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## Version 1.1.1
4+
5+
- Bugfix: The edges in the component hierarchy graph are now straight and the dynamics of the graph is turned off.
6+
37
## Version 1.1.0
48

59
- New feature: You can now generate a markdown(Mermaid) file with the component hierarchy.

templates/showComponentHierarchy_Template.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@
2020
nodes: nodes,
2121
edges: edges
2222
};
23-
var options = {};
23+
var options = {
24+
physics: {
25+
enabled: false
26+
},
27+
edges: {
28+
smooth: false // Make edges straight lines.
29+
}
30+
};
2431
var container = document.getElementById('network');
2532
var network = new vis.Network(container, data, options);
26-
33+
2734
const vscode = acquireVsCodeApi();
2835
const helpTextDiv = document.getElementById('helpText');
2936
let lastMouseX = lastMouseY = 0;

0 commit comments

Comments
 (0)