D2Spec
Used to configure D2 output from Atlas. For barebones output to a .d2 file, you can just add the "dev.jonpoulton.atlas.d2" gradle plugin. Or for a more fleshed-out config:
atlas {
// other Atlas config
d2 {
animateLinks = true
center = true
direction = Direction.Down
fileFormat = FileFormat.Svg
groupLabelLocation = Location.Inside
groupLabelPosition = Position.TopCenter
layoutEngine = LayoutEngine.Dagre
pad = 5
pathToD2Command = "/path/to/d2"
sketch = true
theme = Theme.ColorblindClear
themeDark = Theme.DarkMauve
rootStyle {
...
}
globalProps {
...
}
layoutEngine {
...
}
}
}Content copied to clipboard