-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining the viewbox property with the SVG directive #318
Comments
We could also allow overwriting, the |
Are those three the most important, or should we add all possible It seems these six are the most relevant: |
Yes we can add other attributes as well, it might come in handy for some use cases. |
We currently raise an issue, when the |
With the current implementation yes they are required because we use them. I don't see any reason why we could not make them optional (only use them when they are present), and overridable. I guess I made them required because it is a good practice to have them. |
const ALERT = @svg(../public/tiger.svg,
preserveAspectRatio = "xMidYMid meet",
viewBox = "0 0 100 100",
width = 100,
height = 100,
x = 0,
y = 0) |
One of the only things you can't define in CSS for SVG is the
viewbox
property. I'd like to request a feature to pass a (perhaps optional) argument to the @svg directive that lets you define theviewbox
size.The text was updated successfully, but these errors were encountered: