Skip to content

Commit

Permalink
Add Globals Locations
Browse files Browse the repository at this point in the history
  • Loading branch information
daksh4469 committed Feb 23, 2021
1 parent 6c0da22 commit 56ce59b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions js/widgets/oscilloscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@
*/

/* global _, SMALLERBUTTON, BIGGERBUTTON, Tone, instruments */

/*
Globals location
- js/artwork.js
SMALLERBUTTON,BIGGERBUTTON
- js/utils/utils.js
_
- js/activity.js
Tone
- js/utils/synthutils.js
instruments
*/
/* exported Oscilloscope */

/**
Expand Down Expand Up @@ -59,7 +70,7 @@ class Oscilloscope {
const step = 10;
this.zoomFactor = 40.0;
this.verticalOffset = 0;
const zoomInButton = widgetWindow.addButton("", Oscilloscope.ICONSIZE, _("ZOOM IN"));
const zoomInButton = widgetWindow.addButton("", Oscilloscope.ICONSIZE, _("Zoom In"));

zoomInButton.onclick = () => {
this.zoomFactor += step;
Expand All @@ -68,7 +79,7 @@ class Oscilloscope {
unescape(encodeURIComponent(BIGGERBUTTON))
)}`;

const zoomOutButton = widgetWindow.addButton("", Oscilloscope.ICONSIZE, _("ZOOM OUT"));
const zoomOutButton = widgetWindow.addButton("", Oscilloscope.ICONSIZE, _("Zoom Out"));

zoomOutButton.onclick = () => {
this.zoomFactor -= step;
Expand Down

0 comments on commit 56ce59b

Please sign in to comment.