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

Fix minimap styling issues and add support for zooming #1464

Merged
merged 3 commits into from
Oct 1, 2018

Conversation

joshsalverda
Copy link
Contributor

@joshsalverda joshsalverda commented Sep 19, 2018

Short description of changes:

Fixes some styling issues with the minimap plugin, the height and widths were not being calculated correctly. Also adds support while zooming in on the waveform to update the minimap.

minimap

Ignore the weirdness near the end of the gif with the zoom jumping out, that's just my terribly buggy zoom code (outside of wavesurfer) 😆

Breaking in the external API:

Nothing

Breaking changes in the internal API:

Nothing

Todos/Notes:

Nothing yet, maybe I'll find some more stuff to fix later on :) The library is awesome, really enjoying how easy it is to use overall.

Related Issues and other PRs:

fixes #290

@joshsalverda
Copy link
Contributor Author

My bad for not verifying eslint before pushing up 😓also pushed up a fix for the Karma bug mentioned in codymikol/karma-webpack#350

Let me know if you don't want to resolve it that way, seems to work fine locally when running tests.

karma.conf.js Outdated Show resolved Hide resolved
@thijstriemstra
Copy link
Contributor

@katspaugh can you take a look as well and approve this PR?

Copy link
Owner

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

The code looks good and the plugin works! Thanks a bunch!

@thijstriemstra thijstriemstra merged commit c0a802a into katspaugh:master Oct 1, 2018
@clndwhr
Copy link

clndwhr commented Nov 8, 2018

What is the status on fixing the build issues for this PR?

@thijstriemstra
Copy link
Contributor

@cubancodepath
Copy link

How do you style the region viwer in the minimap?

@katspaugh
Copy link
Owner

katspaugh commented Jan 11, 2024

@bjvalmasedadev you can style it with CSS via the ::part(minimap-overlay) selector which I've just added (not published on npm yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zoomed region in the minimap plugin
5 participants