Skip to content

Commit 1cfd7df

Browse files
committed
updates
1 parent eb50d33 commit 1cfd7df

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

src/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ button:active {
249249

250250

251251

252-
#plotlist{
252+
/* #plotlist{
253253
padding: 1px;
254254
width: 1.25pc;
255255
padding-top: 3px;
@@ -261,7 +261,7 @@ button:active {
261261
background: radial-gradient(#eee, transparent) !important;
262262
box-shadow: none;
263263
outline: none;
264-
}
264+
} */
265265

266266
.disabled {
267267
pointer-events: none;

src/html/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div id="split-bar"></div>
4141
<div class="closebtn" onclick="closeNav()">X</div>
4242
<div class="sideheader"> Plots</div>
43-
<div id="lockAllAxes">
43+
<div id="lockAllAxes"> <!-- onclick="isAxesLocked =!isAxesLocked; document.getElementById('lockAxes').checked=isAxesLocked"> -->
4444
<input type="checkbox" id="lockAxes" name="axes" value="lockAxes" onclick="isAxesLocked =this.checked">
4545
<span for="lockAxes">Lock Axes</span>
4646
</div>
@@ -215,13 +215,13 @@
215215
</div>
216216
</div>
217217

218-
<div id="popupPlotList" class="popup">
218+
<!-- <div id="popupPlotList" class="popup">
219219
<div class="title">
220220
<label class='titletxt'>List of Plots</label>
221221
<b class='closbtn' title="Close">X</b>
222222
</div>
223223
<div class="popmain"></div>
224-
</div>
224+
</div> -->
225225

226226
<div id = "branding">
227227
<a title="Follow Me" href='javascript:void(0);' onclick="shell.openExternal('https://koushikphy.github.io/')">

src/js/functions.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

src/js/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function _versionCheck() {
1010
var res = dialog.showMessageBoxSync({
1111
type: "question",
1212
title: "Update available!!!",
13-
message: `A new version of the software ${new_ver} is available.\n Do you want to download it now?`,
13+
message: `A new version of the software ${new_ver} is available.\nDo you want to download it now?`,
1414
buttons: ['OK', "Cancel"]
1515
})
1616
if (!res) {

0 commit comments

Comments
 (0)