-
Notifications
You must be signed in to change notification settings - Fork 27
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
Question about svg node not respecing dimensions / proportions #123
Comments
Hi @vongomben, Due to a lack of free time, I cannot rework your example. But I think you should have a look at the viewbox. You have a drawing size of 800x2000, but your viewbox is "0 0 800 400", which means you only view a part of your drawing (i.e. 800x400 at location (0,0)). Bart |
Thanks for the help. |
Ok. I've made some tests: I've solved it like this but the vidth / height value [1] from the documentation doesn't behave as expected I was able to reach this solution witch suits me [1] A width/height value of "100" means "100px" |
@vongomben,
Ah yes, unitless numbers for SVG presentation attributes (like width, height, ...) are treated as px. I see in this StackOverflow discussion that they use |
The Svg node is the most interesting one I've been playing so far for creating custom visualizations (which is super requested and cool).
In this case, I'm trying to visualize the weight of people using a smart sole.
I created the svg in inkscape, and successfully uploaded in the svg dashboard node.
I'm uploading you just the dashabord nodes, and repeat here the code.
The problem is, that I'm totally unable to show the sole as central and zoomed in in the dashabord group. If I put proportioned dimensions, the sole is rendered not correctly (super tiny).
Any help?
Copy of svg here
The text was updated successfully, but these errors were encountered: