Skip to content

Commit b713c21

Browse files
committed
few correction ✔
1 parent 99c317d commit b713c21

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/html/doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466
<li><label class="key">Ctrl+K</label> Open plot setting window.</li>
467467
<li><label class="key">Ctrl+B</label> Toggle plot list dashboard.</li>
468468
<li><label class="key">F11</label> Toggle fullscreen.</li>
469-
<li><label class="key">Ctrl+TAB</label> Switch editable line.</li>
469+
<li><label class="key">Ctrl+TAB</label> Switch between plots.</li>
470470
<li><label class="key">Ctrl+W</label> Toggle axis of projection for 3D data.</li>
471471
<li><label class="key">&lt;space></label> Auto-scale axes.</li>
472472
<li><label class="key">Z</label> Zoom mode.</li>

src/js/functions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,20 +928,23 @@ class Smoother {
928928

929929
closeSmooth=()=>{
930930
Plotly.deleteTraces(figurecontainer, 1);
931-
enableMenu(['edat','fill','filter','af','arf', 'rgft','lmfit','swapen','tpl'])
931+
enableMenu(['edat','fill','filter','af','arf','swapen','tpl'])
932+
if(!ddd) enableMenu(['rgft','lmfit'])
932933
setTimeout(resizePlot, 300)
933934
$('#extendUtils2D').slideUp()
934935
$('#smooth').hide()
935936

936937
fullData.splice(1,1)
937938
fullDataCols.splice(1,1)
939+
legendNames.splice(1,1)
938940
currentEditable = 0;
939941
this.isActive = false
940942
this.#res = null
941943
}
942944

943945
smoothApprox = () => {
944946
const smtFactor = parseFloat(document.getElementById('smoothInp').value)
947+
if(smtFactor>1 || smtFactor<0) alertElec("Smoothing factor must be in between 0 and 1")
945948

946949
var cx = col.x,cy = col.y;
947950
// smooth in one direction

0 commit comments

Comments
 (0)