Skip to content

Structurizr Render Options

Options passed to StructurizrRenderer or set on a workspace. See Styles.

c4.contrib.structurizr.renderer.StructurizrRenderOptions dataclass

Render options for the Structurizr renderer.

Attributes:

Name Type Description
auto_layout AutoLayout | None

Automatic layout settings emitted in generated views. Set to None to omit the autoLayout directive.

style_preset StructurizrStylePreset | None

Named style preset to emit, or None to omit generated preset styles while keeping semantic tags and explicit overrides.

c4.contrib.structurizr.AutoLayout dataclass

Structurizr automatic layout settings.

Defaults to left-to-right ranking. implementation, rank_separation and node_separation are optional and omitted from the DSL when unset.

Attributes:

Name Type Description
rank_direction StructurizrRankDirection

Direction in which the layout ranks elements.

implementation str | None

Optional Structurizr layout implementation name.

rank_separation int | None

Optional positive gap between ranks.

node_separation int | None

Optional positive gap between nodes.