@@ -15,9 +15,9 @@ const slider = document.getElementById('range')
1515const thumb = document . getElementById ( 'thumb' )
1616const figurecontainer = document . getElementById ( "figurecontainer" )
1717
18- // array of JSONs => {data, fName, sName, }
18+ // array of JSONs => {data, fName, sName, savedOnce }
1919var dataList = [ ] ;
20- // array of JSONs => {dataIndex, col:{x,y,z,s}, lName }
20+ // array of JSONs => {dataIndex, col:{x,y,z,s}}
2121var traceList = [ ] ;
2222
2323var fullData = [ ] , fullDataCols = [ ] , fileNames = [ ] , saveNames = [ ] , legendNames = [ ] ,
@@ -428,7 +428,7 @@ function updateOnServer() {
428428 ] )
429429 }
430430 viewerWindow . webContents . send ( "sdata" , [ s_data , swapped , col . z , data [ 0 ] . length ] ) ;
431- } , 500 )
431+ } , 500 ) // a half second pause before sending the data
432432}
433433
434434
@@ -732,9 +732,7 @@ function openViewer() {
732732
733733
734734
735- var minWidth = $ ( ".colBar" ) . width ( ) + 30
736- var curWidth = minWidth
737- // var minWidth =$(".sideBar").width()*3+30 // window.innerWidth / 4.5
735+ var minWidth , curWidth ;
738736
739737$ ( '#split-bar' ) . mousedown ( function ( e ) {
740738 e . preventDefault ( ) ;
@@ -856,4 +854,5 @@ function makeRows() {
856854 </div>
857855 </div>`
858856 ) . join ( ' ' ) )
857+ curWidth = minWidth = $ ( ".colBar" ) . width ( ) + 30
859858}
0 commit comments