prorm API Reference
    Preparing search index...

    Interface ERDiagramOptions

    interface ERDiagramOptions {
        title?: string;
        models: ModelDiagramOptions[];
        columns?: number;
        hGap?: number;
        vGap?: number;
        theme?: "light" | "dark";
        color?: string;
    }
    Index
    title?: string

    Diagram title shown in the top banner

    All models to include in the diagram

    columns?: number

    Number of entity columns in the grid.

    3
    
    hGap?: number

    Horizontal gap between entity boxes (px)

    vGap?: number

    Vertical gap between entity boxes (px)

    theme?: "light" | "dark"

    Accepted for backward compatibility and ignored: diagrams render in a single monochrome theme.

    color?: string

    Accepted for backward compatibility and ignored.