Skip to content

Commit

Permalink
few correction ✔
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushikphy committed Jan 30, 2022
1 parent 99c317d commit b713c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/html/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
<li><label class="key">Ctrl+K</label> Open plot setting window.</li>
<li><label class="key">Ctrl+B</label> Toggle plot list dashboard.</li>
<li><label class="key">F11</label> Toggle fullscreen.</li>
<li><label class="key">Ctrl+TAB</label> Switch editable line.</li>
<li><label class="key">Ctrl+TAB</label> Switch between plots.</li>
<li><label class="key">Ctrl+W</label> Toggle axis of projection for 3D data.</li>
<li><label class="key">&lt;space></label> Auto-scale axes.</li>
<li><label class="key">Z</label> Zoom mode.</li>
Expand Down
5 changes: 4 additions & 1 deletion src/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,20 +928,23 @@ class Smoother {

closeSmooth=()=>{
Plotly.deleteTraces(figurecontainer, 1);
enableMenu(['edat','fill','filter','af','arf', 'rgft','lmfit','swapen','tpl'])
enableMenu(['edat','fill','filter','af','arf','swapen','tpl'])
if(!ddd) enableMenu(['rgft','lmfit'])
setTimeout(resizePlot, 300)
$('#extendUtils2D').slideUp()
$('#smooth').hide()

fullData.splice(1,1)
fullDataCols.splice(1,1)
legendNames.splice(1,1)
currentEditable = 0;
this.isActive = false
this.#res = null
}

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

var cx = col.x,cy = col.y;
// smooth in one direction
Expand Down

0 comments on commit b713c21

Please sign in to comment.