API Reference

compile

Constants

ADI Library

d2.ADI_COMPONENTS: list[str]

List of all 64 ADI component class names (see ADI Shapes).

d2.ADI_THEME_CLASSES: list[str]

List of all ADI theme class names:

[
    "adi-container", "adi-signal", "adi-signal-analog",
    "adi-signal-digital", "adi-signal-clock", "adi-signal-power",
    "adi-title", "adi-note",
]

SW Library

d2.SW_COMPONENTS: list[str]

List of all 32 SW component class names (see SW Shapes).

d2.SW_THEME_CLASSES: list[str]

List of all SW theme class names:

[
    "sw-container", "sw-container-cream", "sw-container-green",
    "sw-container-amber", "sw-container-red", "sw-container-white",
    "sw-step-blue", "sw-step-green", "sw-step-amber", "sw-step-white",
    "sw-title", "sw-subtitle", "sw-note",
    "sw-flow", "sw-flow-data", "sw-flow-control", "sw-flow-async",
    "sw-flow-error", "sw-flow-success", "sw-flow-feedback", "sw-flow-light",
]

General

d2.__version__: str

Current package version string.