avianey / androidsvgdrawable-plugin

Gradle plugin that generates qualified, density specific PNG drawables from SVG files at build time for your Android projects.
Apache License 2.0
262 stars 29 forks source link

Force viewbox on SVG masked element #11

Open avianey opened 10 years ago

avianey commented 10 years ago

force the viewport attribute on masked svg to match the computed bounding box :

<svg viewport="x y width height"
avianey commented 10 years ago

This could be done by generating temporary svg for each input svg and overriding the viewport attribute on the <svg> element.