web-audio-peak-meter icon indicating copy to clipboard operation
web-audio-peak-meter copied to clipboard

Dynamic Meter Size

Open Ph33ly opened this issue 4 years ago • 1 comments
trafficstars

Hey! Really good work on this project!

I could just be overlooking how to do this but I wanted to clarify how to resize or adjust the initial height/width of the meter since I didn't see anything related to this in the docs.

Thanks again for the great work!

Ph33ly avatar Apr 27 '21 21:04 Ph33ly

@Ph33ly You can set the size by having the surrounding div an explicit width an height. From the example:

<div id="my-peak-meter" style="width: 5em; height: 20em; margin: 1em 0;">

The meter then adjusts ONCE to this size, not dynamically (aka responsive) though.

suterma avatar Mar 24 '23 07:03 suterma