-
Notifications
You must be signed in to change notification settings - Fork 4
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
utils/svg/ #6
Comments
Update: it seems that nor rounded numbers in the viewPort are a problem. Will check if we can transform the input of the calculation to make this work even if the numbers include a decimal point. |
@dlemm: can you post a failing svg? |
Created a random burger menu icon. Important is the viewbox and the 35.5. <svg id="burger" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54 35.5">
<defs>
<style>.cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:3px;}</style>
</defs>
<line class="cls-1" x1="1.5" y1="1.5" x2="52.5" y2="1.5"/>
<line class="cls-1" x1="1.5" y1="17.75" x2="52.5" y2="17.75"/>
<line class="cls-1" x1="1.5" y1="34" x2="52.5" y2="34"/>
</svg> |
when it's just |
Just ran into this again. Let's prioritize this task. |
Added a PR with a fix. |
I think this can be closed then? |
/core/utils/svg)/parse.html
Line: 103ff. seems not working as it should. It only works when every quote is a single quote except for the
viewPort
.There is the error
looks like the regex is broken.
The text was updated successfully, but these errors were encountered: