brushstroke icon indicating copy to clipboard operation
brushstroke copied to clipboard

Unable to scale the SVG

Open FuzzyWobble opened this issue 5 years ago • 3 comments

Hello.

How do you draw an SVG at a specific size?

Changing the width/height attributes of the SVG element does not work. There is no parameters in the javascript options to change the size of the drawing (only the canvas).

Thanks.

FuzzyWobble avatar Aug 13 '19 19:08 FuzzyWobble

There is no option to do that, unfortunately. My suggestion is to scale the SVG beforehand in a vector editor. Cheers...

lmgonzalves avatar Aug 13 '19 20:08 lmgonzalves

That's really unfortunate. Should call them NSVG: Non Scalable Vector Graphics ? Anyways, it's a really nice library you created. Thanks!

FuzzyWobble avatar Aug 14 '19 15:08 FuzzyWobble

I think it could be possible actually, but I'm afraid it would involves lot of math calculations and updates to the library, and I don't have the time to do that right now, sorry. Anyways, thanks for your words!

lmgonzalves avatar Aug 14 '19 17:08 lmgonzalves