@@ -98,7 +98,6 @@ function updateData(init=false,all=true) {
98
98
col . x = xCol . selectedIndex ;
99
99
col . y = yCol . selectedIndex ;
100
100
col . z = zCol . selectedIndex ;
101
- legendNames [ currentEditable ] = path . basename ( fileNames [ currentEditable ] ) + ` ${ col . y + 1 } :${ col . z + 1 } `
102
101
}
103
102
th_in = 0 ;
104
103
@@ -107,7 +106,15 @@ function updateData(init=false,all=true) {
107
106
} else {
108
107
[ col . x , col . y ] = [ col . y , col . x ]
109
108
}
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
+ }
111
118
112
119
if ( ddd ) setUpSlider ( )
113
120
@@ -871,7 +878,7 @@ function closeNav() {
871
878
872
879
873
880
874
- function tools2 ( option , index ) {
881
+ function tools ( option , index ) {
875
882
if ( option == 0 ) { //select editable
876
883
if ( currentEditable != index ) changeEditable ( index )
877
884
} else if ( option == 1 ) { // clone this
@@ -901,15 +908,15 @@ function makeRows() {
901
908
fileNames . map ( ( i , j ) => {
902
909
return `
903
910
<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 ) } >
905
912
${ j + 1 } . ${ path . basename ( i ) }
906
913
</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;"' : '' } >
908
915
<svg viewBox="0 0 1792 1792">
909
916
<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"/>
910
917
</svg>
911
918
</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'>
913
920
<svg viewBox="0 0 1792 1792">
914
921
<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"/>
915
922
</svg>
0 commit comments