MAIDR JavaScript API
    Preparing search index...

    Interface MaidrRuntimeInfo

    What the script bundle on the page is, and what it does for a chart that shares a page with other content, so a binding can tell whether it still needs its own copy of the same work. Set on window.maidrLive by the core script bundle only: the adapter bundles do not set window.maidrLive, and a page that loads only those keeps a binding's own copies.

    const live = window.maidrLive;
    if (live && live.features && live.features.hostGuards >= 1) {
    // maidr.js guards reveal.js, Quarto's search and the rest itself.
    }
    interface MaidrRuntimeInfo {
        version: string;
        features: Readonly<{ hostGuards: number; focusRing: number }>;
    }
    Index

    Properties

    Properties

    version: string

    The release of the bundle, such as 4.15.0.

    features: Readonly<{ hostGuards: number; focusRing: number }>

    One revision number per feature, frozen. A revision only goes up, when what the feature covers grows; a feature absent from an older build reads as undefined.