1.0.4 • Published 3 years ago
wavesurfer-zoom-to-mouse-plugin v1.0.4
WaveSurfer Zoom To Mouse Plugin
WaveSurfer.js Zoom To Mouse Plugin
Usage
import ZoomToMousePlugin from "wavesurfer-zoom-to-mouse-plugin";
const wavesurfer = WaveSurfer.create({
container: document.getElementById("wavesurfer"),
backend: "WebAudio", // All backends supported
...
plugins: [
...
ZoomToMousePlugin.create({
maxPxPerSec: 5000 // default 1000
}),
...
],
});
### Installation
```bash
$ npm i wavesurfer-zoom-to-mouse-plugin
Methods
zoomToMouse
-pxPerSec
setMaxPxPerSec
- Max px per sec. Default 1000
Todos
- Tests
License
MIT
Free Software, Hell Yeah!