-
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
Better documentation on how to use the same output measurement for multiple diagrams #112
Comments
I have just crossposted this question to stackoverflow. |
I finally managed to figure this out. I had some arrows: for these I used the arrowOpts:
For SVG rendering I used
The crucial part is setting I'm still trying to track down the other measurements that aren't I think examples such as these should be added to the documentation, because this was really difficult to figure out. |
Thanks for the suggestions! I agree, this should be better documented. For other measurements you can use |
If I do |
Also, I'm guessing that output units are pixels. Is this true? |
Yes, they should be, if you use
It depends on the backend. I am not sure specifically for the SVG backend. |
The user manual says this:
This is exactly what I'd like to do. I am making a webpage with multiple
diagrams
-generated svg files of different sizes inline, and I'd like the line widths, arrowhead sizes, and circle radii to be consistent. But I'm not sure how. How would I pass the same output value to all the arrows, arrowheads, circles, etc.? And when I ultimately render withrenderPretty
, what would I setsize
to in theSVGOptions
argument so that it just makes the svg whatever size its contents are?The text was updated successfully, but these errors were encountered: