D2ElkSpec

CLI configuration options, found from running d2 layout elk in the CLI.

Properties

Link copied to clipboard
abstract var algorithm: ElkAlgorithm?

Layout algorithm (default ElkAlgorithm.Layered)

Link copied to clipboard
abstract var edgeNodeBetweenLayers: Int?

The spacing to be preserved between nodes and edges that are routed next to the node’s layer (default 40)

Link copied to clipboard
abstract var nodeNodeBetweenLayers: Int?

The spacing to be preserved between any pair of nodes of two adjacent layers (default 70)

Link copied to clipboard
abstract var nodeSelfLoop: Int?

Spacing to be preserved between a node and its self loops (default 50)

Link copied to clipboard
abstract var padding: String?

The padding to be left to a parent element’s border when placing child elements (default "top=50,left=50,bottom=50,right=50")