MAIDR JavaScript API
    Preparing search index...

    Interface DiagramContext

    What a diagram converter is handed: the parsed database and the rendered SVG, whose elements the layers' selectors name.

    interface DiagramContext {
        db: unknown;
        text?: string;
        svg: SVGSVGElement;
        svgId: string;
        layerId: (suffix: string) => string;
    }
    Index

    Properties

    Properties

    db: unknown

    The diagram's database. Read only through the guards in read.ts.

    text?: string

    The diagram's text, for the one diagram whose plugin keeps no database (ZenUML).

    svg: SVGSVGElement

    The rendered diagram.

    svgId: string

    The id Mermaid prefixed the diagram's element ids with.

    layerId: (suffix: string) => string

    Makes layer ids unique within the figure.