File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## Version 1.0.2
4
+
5
+ - Improved the layout of the graph when no graph direction is specified in the dgml file.
6
+
3
7
## Version 1.0.1
4
8
5
9
- Updated package references.
Original file line number Diff line number Diff line change 4
4
"displayName" : " DGMLViewer" ,
5
5
"description" : " DGMLViewer is viewer for dgml (Directed Graph Markup Language) files" ,
6
6
"icon" : " icon.png" ,
7
- "version" : " 1.0.1 " ,
7
+ "version" : " 1.0.2 " ,
8
8
"repository" : " https://github.com/CoderAllan/vscode-dgmlviewer" ,
9
9
"engines" : {
10
10
"vscode" : " ^1.52.0"
Original file line number Diff line number Diff line change 21
21
} ;
22
22
var options = {
23
23
physics : {
24
- enabled : false
24
+ enabled : true ,
25
+ solver : 'repulsion'
25
26
} ,
26
27
edges : {
27
28
smooth : false // Make edges straight lines.
36
37
var container = document . getElementById ( 'network' ) ;
37
38
var network = new vis . Network ( container , data , options ) ;
38
39
var seed = network . getSeed ( ) ;
40
+ network . on ( "stabilizationIterationsDone" , function ( ) {
41
+ network . setOptions ( { physics : false } ) ;
42
+ } ) ;
39
43
40
44
const vscode = acquireVsCodeApi ( ) ;
41
45
const helpTextDiv = document . getElementById ( 'helpText' ) ;
298
302
}
299
303
options . layout . randomSeed = seed ;
300
304
network = new vis . Network ( container , data , options ) ;
305
+ network . on ( "stabilizationIterationsDone" , function ( ) {
306
+ network . setOptions ( { physics : false } ) ;
307
+ } ) ;
301
308
}
302
309
303
310
} ( ) ) ;
You can’t perform that action at this time.
0 commit comments