staskobzar / vue-audio-visual

VueJS audio visualization components
MIT License
717 stars 112 forks source link

How to set width of av-line width to 100%? #143

Open ricky11 opened 10 months ago

ricky11 commented 10 months ago

I can set the width using canv-width in pixel, but how would i fill the parent container, 100% would do this.

i am using version 2.5 for vue 2.

staskobzar commented 10 months ago

canvas does not provide relative percentage value, unfortunately. You will have to find a way to provide numeric value.

ricky11 commented 10 months ago

Thanks.. will have to us a computed value in js to cal the width.