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 11# Change Log
22
3+ ## Version 1.0.2
4+
5+ - Improved the layout of the graph when no graph direction is specified in the dgml file.
6+
37## Version 1.0.1
48
59- Updated package references.
Original file line number Diff line number Diff line change 44 "displayName" : " DGMLViewer" ,
55 "description" : " DGMLViewer is viewer for dgml (Directed Graph Markup Language) files" ,
66 "icon" : " icon.png" ,
7- "version" : " 1.0.1 " ,
7+ "version" : " 1.0.2 " ,
88 "repository" : " https://github.com/CoderAllan/vscode-dgmlviewer" ,
99 "engines" : {
1010 "vscode" : " ^1.52.0"
Original file line number Diff line number Diff line change 2121 } ;
2222 var options = {
2323 physics : {
24- enabled : false
24+ enabled : true ,
25+ solver : 'repulsion'
2526 } ,
2627 edges : {
2728 smooth : false // Make edges straight lines.
3637 var container = document . getElementById ( 'network' ) ;
3738 var network = new vis . Network ( container , data , options ) ;
3839 var seed = network . getSeed ( ) ;
40+ network . on ( "stabilizationIterationsDone" , function ( ) {
41+ network . setOptions ( { physics : false } ) ;
42+ } ) ;
3943
4044 const vscode = acquireVsCodeApi ( ) ;
4145 const helpTextDiv = document . getElementById ( 'helpText' ) ;
298302 }
299303 options . layout . randomSeed = seed ;
300304 network = new vis . Network ( container , data , options ) ;
305+ network . on ( "stabilizationIterationsDone" , function ( ) {
306+ network . setOptions ( { physics : false } ) ;
307+ } ) ;
301308 }
302309
303310} ( ) ) ;
You can’t perform that action at this time.
0 commit comments