d2
d2 copied to clipboard
D2 is a modern diagram scripting language that turns text to diagrams.
closes #1721
I am in the very early stages of building my own layout plugin for d2 and everything works mostly well, however I am forced to use build tags in order...
https://pkg.go.dev/golang.org/x/tools/txtar Seems a lot simpler to define multiple files this way.
Is there a way to set the default shape and style for the diagram? I could not figure it out from the docs. If not, i think it is an...
**This is not an issue, but a proof of concept, that it is quite easy to create a state diagram with d2lang.** ¹ ## Meta Version: 0.6.1 ## Source I...
would fix: #1752
Consider using [resvg](https://github.com/RazrFalcon/resvg) instead of Chromium to render SVGs. Also solves #496. There are two ways this can be done: - FFI calls - harder to implement and harder development...
D2 output SVGs can't be imported into SVG renderers like Figma and Inkscape currently because we style with CSS. Might be doable to map all the CSS fields to SVG...
For example: ```d2 a: { near: top-left } a -> c: one a -> c: two ``` Looks like this:  The problem exists with all 3 layout engines (Dagre,...
when importing a shape with a near, there is a compiler error because the relative path becomes incorrect. compiling x.d2 directly works, but not when compiling index.d2 which imports x.d2...