Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Reset zoom/unzoom #1199

Merged
merged 6 commits into from
Sep 2, 2017
Merged

Feature: Reset zoom/unzoom #1199

merged 6 commits into from
Sep 2, 2017

Conversation

mspae
Copy link
Contributor

@mspae mspae commented Aug 27, 2017

Short description of changes:

  • Adds the ability to call wavesurfer.zoom without a parameter (or with a falsey parameter) to reset zoom state
  • Adds test for the properties set in the zoom method. (Doesn't currently test the right functions are being called)

Breaking in the external API:

None.

Breaking changes in the internal API:

None.

@mspae mspae changed the title Unzoom Feature: Reset zoom/unzoom Aug 27, 2017
@katspaugh katspaugh self-requested a review August 28, 2017 08:21
*
* @param {number} pxPerSec Number of horizontal pixels per second of audio
* @param {number?} pxPerSec Number of horizontal pixels per second of
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, a nullable type is prefixed with a ?, I think (according to http://usejsdoc.org/tags-type.html).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aah true. I'll correct and merge.

@mspae mspae merged commit d0908d9 into katspaugh:master Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants