bbc / peaks.js

JavaScript UI component for interacting with audio waveforms
https://waveform.prototyping.bbc.co.uk
GNU Lesser General Public License v3.0
3.16k stars 277 forks source link

Allow dragging an entire segment #443

Closed Lornz- closed 1 year ago

Lornz- commented 2 years ago

Hi! I'm currently working on a project using peaks.js and I was wondering if the following functionality from another library (wavesurfer.js) is something we can do by customization in some way? Otherwise is that something you plan to add to the api in a future release?

https://user-images.githubusercontent.com/901831/156260731-0c67ec52-5ebf-47aa-b5f3-caf72dca4ab2.mp4

chrisn commented 2 years ago

Thank you for suggesting this. I think implementing this would require changes to the library, rather than being possible through the current API and customisation options. I'd be open to adding this, although no current plans.

The default drag operation is to scroll the waveform so I'd want to make this optional in some way.

Lornz- commented 2 years ago

Thanks @chrisn for answering me back. In what time window do you think it could be added? I just wanna know if I could wait for some times before to be able to use it or do I have to find an alternative if I have to wait longer? Being said, are you opened to get a monetary contribution in order to work on that feature in priority?

chrisn commented 1 year ago

This is now available for testing in version 3.0.0-beta.0. Please see doc/migration-guide.md as there are some breaking API changes.

npm install peaks.js@beta