preserveAspectRatio
See original GitHub issueHi,
Thanks for your great plugin !
Small question, how i can keep the preserveAspectRatio=“none” attribute ?
I try with svgo :
removeAttrs: false,
removeUnknownsAndDefaults: false,
But i can’t keep this value.
Any idea ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
preserveAspectRatio - SVG: Scalable Vector Graphics | MDN
The preserveAspectRatio attribute indicates how an element with a viewBox providing a given aspect ratio must fit into a viewport with a ...
Read more >Understanding SVG preserveAspectRatio - DigitalOcean
preserveAspectRatio gives us the ability to tell our graphic how to scale when the aspect ratio of the viewBox and viewPort are different....
Read more >HTML svg preserveAspectRatio Attribute - Dofactory
The preserveAspectRatio attribute specifies if the SVG should be scaled uniformly. This attribute only works if the viewBox attribute is also present. Syntax....
Read more >preserveAspectRatio - SVG: Scalable Vector Graphics
The preserveAspectRatio attribute indicates how an element with a viewBox providing a given aspect ratio must fit into a viewport with a different...
Read more >SVG - preserveAspectRatio="none" not applying
preserveAspectRatio does nothing if your SVG doesn't have a viewBox . It is viewBox which tells the renderer how big the contents of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@am3000 a template could look like that
But I think I will port it to the default template
@am3000 it should be possible to do this with a custom templates with a custom transformdata function.
the
svg
params contains theoriginalAttributes
. You should be able to accesspreserveAspectRatio
from here.