-
-
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
Allow setting the default layout engine #7
Comments
Sorry, it was hidden in the preview UI . It's working for me. |
D2_LAYOUT is at least a workaround. I usually render my diagrams with d2 -w --sketch --layout=elk --pad=20 I read somewhere (didn't find it right now) that there are plans to allow setting these values in the d2 file (?) |
It is already available in 0.6.3, please see https://d2lang.com/tour/vars/#configuration-variables (support for this syntax in upcoming plugin 1.2.0+) |
Thx. I'll try that tomorrow! |
Works like a charm! |
Thanks for creating this!
It would be great if I could set the default layout engine somehow!
Maybe other defaults are intersting too:
d2 -w --sketch --layout=elk --pad=20
The text was updated successfully, but these errors were encountered: