Probably you can wrap your canvas to div with vh/vw sizes and set canvas height 100% and width 100%. I guess it should work 😁
but that's css, as far as I'm aware:
<htmlElement width="10vw" height="10vh">
isn't fully valid. Could you please show what you were thinking in a codeblock? Thanks. Cheers.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.