Skip to content

Commit 53616c3

Browse files
committed
bug fix, ranged selector, v2.9.1
1 parent 472fc8c commit 53616c3

File tree

8 files changed

+57
-35
lines changed

8 files changed

+57
-35
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
### <i>A Software to interactively edit data in a graphical manner.</i>
33

44

5-
[![Version](https://img.shields.io/badge/Version-2.8.0-brightgreen.svg)]()
5+
[![Version](https://img.shields.io/badge/Version-2.9.1-brightgreen.svg)]()
66
[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/Koushikphy/Interactive_Data_Editor/blob/master/LICENSE)
7-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3947508.svg)](https://doi.org/10.5281/zenodo.3947508)
7+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3947507.svg)](https://doi.org/10.5281/zenodo.3947507)
88
[![Version](https://img.shields.io/badge/Web-https://koushikphy.github.io/ide/-success.svg)](https://koushikphy.github.io/ide/)
99

1010
![alt text](figs/screenshot.gif "Screen shot")
@@ -43,4 +43,4 @@ Licensed under the MIT License.
4343

4444

4545
## Citaion
46-
If this software was helpful in your work, please cite this project as https://doi.org/10.5281/zenodo.3947508.
46+
If this software was helpful in your work, please cite this project as https://doi.org/10.5281/zenodo.3947507.

RELEASE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## v2.9.1
2+
1. Added multiplot surface plot option for the 3D viewer.
3+
1. Ranged selector, select intermediate points that are out of the view.
4+
2. Fixed several bugs.
5+
6+
7+
## v2.9.0
8+
### NEW:
9+
1. Directly load multiple files.
10+
3. List of plot is moved to a sidebar instead of the popup window.
11+
5. Lock axes when working with multiple files.
12+
7. Save fitted data.
13+
9. `Fill values` can now take number of gird or grid spacing
14+
15+
### Fixed:
16+
2. Fixed bug with loading file directly from terminal.
17+
4. Fixed bug in undo.
18+
6. Fixed bug with swapper when working with multiple files.
19+
8. Fixed bug with 3D viewer not updating
20+
21+
122
## v2.8.0
223
1. UI changes.
324
2. doc style changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interactive_data_editor",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"main": "index.js",
55
"description": "A Software to interactively edit data in a graphical manner.",
66
"homepage": "https://github.com/Koushikphy/Interactive-Data-Editor",

src/html/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
<div style="font-size: large;font-style: italic;margin-top: 3px; font-weight:500">
5353
A Software to interactively edit data in a graphical manner
5454
</div>
55-
<div id='versionname' style="font-size: large;margin-top: 7px">Version 2.8.0 </div>
55+
<div id='versionname' style="font-size: large;margin-top: 7px">Version 2.9.1 </div>
5656
<div style="font-size: larger;margin-top: 5px;font-style: italic;margin-bottom: 9px; font-weight:600">
5757
Developed by Koushik Naskar
5858
</div>
5959
<div style="font-size: larger;margin-top: 50px;font-style: italic;margin-bottom: 9px;font-weight:530">
60-
Copyright &copy; July, 2020 Koushik Naskar
60+
Copyright &copy; October, 2020 Koushik Naskar
6161
</div>
6262

6363
<a title="Open website" href="javascript:void(0)" onclick="shell.openExternal('https://koushikphy.github.io');"><img src="../../figs/internet.png" width="30" height="30"></a>

src/html/doc.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
<img src="../../figs/charts.png" alt="Interactive Data Editor" height="13%",width='13%' id='charts'>
208208
<br>
209209
<label for="charts" id='chartitle'>Interactive Data Editor</label>
210-
<label for="charts" id='charsubtitle'>v2.8.0</label>
210+
<label for="charts" id='charsubtitle'>v2.9.1</label>
211211
<br>
212212
<!-- <label for="charts">v2.7.0</label> -->
213213
<a href="javascript:void(0)" class="page" id='getStart' onclick="showThis(0)">Getting Startted</a>
@@ -275,10 +275,10 @@
275275
User Interface
276276
</div>
277277
<div class="textarea">
278-
<p> The main window has basically 3 parts, Menu bar, Tool bar, and the Plot area.
278+
<p> The main window has basically 3 parts, Menu bar, Tool bar, Plot area and the Plot list dashboard.
279279
Most of the menubar options are self-explanatory and are detailed in the following sections.
280-
Tool bar contains the column selector and slider. Appropriate columns can be set from the column selector, while setting primary editable plot and
281-
adding or removing plots is done from the plot utility.
280+
Tool bar contains the column selector and slider. Appropriate columns can be set from the column selector,
281+
while setting primary editable plot and adding or removing plots is done from the Plot list dashboard.
282282
The slider, available only when working with 3D data, is used
283283
to change the X/Y value for which the corresponding 2D cut is plotted.
284284
</p>
@@ -292,7 +292,8 @@
292292
Apart from the main window this application has 2 external windows, which are accessed from the 'windows' menu in Menubar.
293293
Using the <label class='dom'>3D Plot Viewer</label> one can
294294
view the complete 3D plot in real time as you edit the the 2D projection on main window. Two types of 3D plots are available
295-
here, surface type and wireframe type and either one can be selected using the provided menu.
295+
here, surface type and wireframe type and either one can be selected using the provided menu. By default it shows only the surface being edited,
296+
check <label class='dom'>Plot all</label> to show all the traces.
296297
On the otherhand, with <label class='dom'>Spreadsheet</label> one can check the data in spreadsheet like editor,
297298
with all basic excel like feature e.g. editing, sorting, applying formulas etc. This is useful if you want to edit the
298299
data directly instead of the graphical way.
@@ -473,6 +474,7 @@
473474
<li><label class="key">&lt;dot></dot></label> Move slider up.</li>
474475
<li><label class="key">&lt;comma></label> Move slider down.</li>
475476
<li><label class="key">P</label> Swap data between the selected lines.</li>
477+
<li><label class="key">Ctrl+A</label> Select intermediate points.</li>
476478
<li><label class="key">Ctrl+C</label> Copy values from current 2D projection.</li>
477479
<li><label class="key">Ctrl+V</label> Paste copied values.</li>
478480
<li><label class="key">Ctrl+ Left/Right Arrow</label> Repeat selected points to left or right.</li>

src/html/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<div style="font-size: large;font-style: italic;margin-top: 3px; font-weight:500">
1919
A Software to interactively edit data in a graphical manner
2020
</div>
21-
<div id='versionname' style="font-size: large;margin-top: 7px">Version 2.8.0 </div>
21+
<div id='versionname' style="font-size: large;margin-top: 7px">Version 2.9.1 </div>
2222
<div style="font-size: larger;margin-top: 5px;font-style: italic;margin-bottom: 9px; font-weight:600">
2323
Developed by Koushik Naskar
2424
</div>
2525
<div style="font-size: larger;margin-top: 50px;font-style: italic;margin-bottom: 9px;font-weight:530">
26-
Copyright &copy; July, 2020 Koushik Naskar
26+
Copyright &copy; October, 2020 Koushik Naskar
2727
</div>
2828

2929
<a title="Open website" href="javascript:void(0)" onclick="shell.openExternal('https://koushikphy.github.io');"><img src="../../figs/internet.png" width="30" height="30"></a>

src/js/functions.js

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,13 @@ function fileReader(fname) {
171171
undoStack = []; redoStack = []; swapperIsOn = false;
172172

173173
if(figurecontainer.data.length>1) { // delete extra traces
174+
Plotly.deleteTraces(figurecontainer,Plotly.d3.range(1,figurecontainer.data.length))
174175
if(currentEditable!=0){
175-
let tmp = clone(iniPointsD)
176-
delete tmp.x; delete tmp.y // iniPointsD x/y is not in update format
177-
Plotly.update(figurecontainer,tmp,clone(layout))
176+
Plotly.update(figurecontainer, {... clone(iniPointsD), x:[[1]], y:[[1]]}, clone(layout))
178177
$(`.scatterlayer .trace:first-of-type .points path`).css({'pointer-events':'all'})
179178
points = figurecontainer.querySelector(".scatterlayer .trace:first-of-type .points").getElementsByTagName("path");
180179
currentEditable = 0
181180
}
182-
Plotly.deleteTraces(figurecontainer,Plotly.d3.range(1,figurecontainer.data.length))
183181
}
184182

185183

@@ -229,12 +227,9 @@ function addNewFileDialog() {
229227

230228

231229
function addNewFile(fname) {
232-
// let dat = parseData(fs.readFileSync(fname, "utf8"))
233-
// if(dat==undefined) return
234230
dat = fileOpener(fname)
235231
if (fullData[0].length != dat.length) alertElec("Trying to open a file with different grid.\nThis is not supported for 3D data.",1,"Can't add the file!!!")
236-
// return
237-
// }
232+
238233

239234
let dirname = path.dirname(fname);
240235
let filename = path.basename(fname, path.extname(fname));
@@ -253,6 +248,20 @@ function addNewFile(fname) {
253248
makeRows()
254249
}
255250

251+
function addTrace(){
252+
let ind = fullData.length-1
253+
let thisTrace = {
254+
... clone(iniPointsD),
255+
x : fullData[ind][th_in][fullDataCols[ind].y],
256+
y : fullData[ind][th_in][fullDataCols[ind].z],
257+
name : legendNames[ind]
258+
}
259+
260+
delete thisTrace.marker.color
261+
delete thisTrace.line.color
262+
263+
Plotly.addTraces(figurecontainer, thisTrace);
264+
}
256265

257266

258267
var cRange=false,cRangeY=[NaN, NaN]; //hidden feature
@@ -483,20 +492,6 @@ function changeEditable2(ind){ // used for deleting trace below the currentedita
483492

484493

485494

486-
function addTrace(){
487-
let ind = fullData.length-1
488-
let thisTrace = {
489-
... iniPointsD,
490-
x : fullData[ind][th_in][fullDataCols[ind].y],
491-
y : fullData[ind][th_in][fullDataCols[ind].z],
492-
name : legendNames[ind]
493-
}
494-
delete thisTrace.marker.color
495-
delete thisTrace.line.color
496-
Plotly.addTraces(figurecontainer, thisTrace);
497-
}
498-
499-
500495
var swapperIsOn = false
501496
function openSwapper() {
502497
if (fileNames.length!=1) alertElec("Can't use this feature when multiple files are open.",0,"Operation Unavailable")

src/js/keyIpcTrigger.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ window.onkeydown = function hotKeys(e) {
108108
}else if(e.key=="ArrowRight" && !e.ctrlKey && e.shiftKey){
109109
moveReflect(true, true)
110110

111+
}else if ((e.key=="a" || e.key=="A") && e.ctrlKey) {
112+
index = Plotly.d3.range(index[0], index[index.length-1]+1,1)
113+
Plotly.restyle(figurecontainer, {selectedpoints : [index]})
114+
111115
// }else{
112116
// console.log('No available trigger',e.key)
113117
}

0 commit comments

Comments
 (0)