@@ -98,7 +98,6 @@ function updateData(init=false,all=true) {
9898 col . x = xCol . selectedIndex ;
9999 col . y = yCol . selectedIndex ;
100100 col . z = zCol . selectedIndex ;
101- legendNames [ currentEditable ] = path . basename ( fileNames [ currentEditable ] ) + ` ${ col . y + 1 } :${ col . z + 1 } `
102101 }
103102 th_in = 0 ;
104103
@@ -107,7 +106,15 @@ function updateData(init=false,all=true) {
107106 } else {
108107 [ col . x , col . y ] = [ col . y , col . x ]
109108 }
110- fullDataCols [ currentEditable ] = JSON . parse ( JSON . stringify ( col ) ) ;
109+ if ( isAxesLocked ) {
110+ for ( let i = 0 ; i < fullDataCols . length ; i ++ ) {
111+ fullDataCols [ i ] = JSON . parse ( JSON . stringify ( col ) )
112+ legendNames [ i ] = path . basename ( fileNames [ i ] ) + ` ${ col . y + 1 } :${ col . z + 1 } `
113+ }
114+ } else {
115+ fullDataCols [ currentEditable ] = JSON . parse ( JSON . stringify ( col ) ) ;
116+ legendNames [ currentEditable ] = path . basename ( fileNames [ currentEditable ] ) + ` ${ col . y + 1 } :${ col . z + 1 } `
117+ }
111118
112119 if ( ddd ) setUpSlider ( )
113120
@@ -871,7 +878,7 @@ function closeNav() {
871878
872879
873880
874- function tools2 ( option , index ) {
881+ function tools ( option , index ) {
875882 if ( option == 0 ) { //select editable
876883 if ( currentEditable != index ) changeEditable ( index )
877884 } else if ( option == 1 ) { // clone this
@@ -901,15 +908,15 @@ function makeRows() {
901908 fileNames . map ( ( i , j ) => {
902909 return `
903910 <div class="fList ${ currentEditable == j ? 'selected' : '' } " >
904- <div class="fName" onclick="tools2 (0,${ j } )" title=${ replaceWithHome ( i ) } >
911+ <div class="fName" onclick="tools (0,${ j } )" title=${ replaceWithHome ( i ) } >
905912 ${ j + 1 } . ${ path . basename ( i ) }
906913 </div>
907- <div class="fclsBtn" onclick="tools2 (2,${ j } )" title='Remove this file' ${ currentEditable == j ? 'style="pointer-events: none;opacity: 0.4;"' : '' } >
914+ <div class="fclsBtn" onclick="tools (2,${ j } )" title='Remove this file' ${ currentEditable == j ? 'style="pointer-events: none;opacity: 0.4;"' : '' } >
908915 <svg viewBox="0 0 1792 1792">
909916 <path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/>
910917 </svg>
911918 </div>
912- <div class="fcpyBtn" onclick="tools2 (1,${ j } )" title='Use this file'>
919+ <div class="fcpyBtn" onclick="tools (1,${ j } )" title='Use this file'>
913920 <svg viewBox="0 0 1792 1792">
914921 <path d="M1664 1632v-1088q0-13-9.5-22.5t-22.5-9.5h-1088q-13 0-22.5 9.5t-9.5 22.5v1088q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5-9.5t9.5-22.5zm128-1088v1088q0 66-47 113t-113 47h-1088q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1088q66 0 113 47t47 113zm-384-384v160h-128v-160q0-13-9.5-22.5t-22.5-9.5h-1088q-13 0-22.5 9.5t-9.5 22.5v1088q0 13 9.5 22.5t22.5 9.5h160v128h-160q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1088q66 0 113 47t47 113z"/>
915922 </svg>
0 commit comments