@tinyactors/scxmljs
    Preparing search index...

    Interface Model

    A compiled, validated chart. Sessions only read it, so one model can serve many sessions.

    interface Model {
        allData: Element[];
        binding: "early" | "late";
        byElement: Map<Element, StateNode>;
        byId: Map<string, StateNode>;
        name: string;
        ns: string | null;
        resources: Map<Element, string | Error>;
        root: StateNode;
        scripts: Element[];
        states: StateNode[];
        transitionsByElement: Map<Element, TransitionNode>;
        warnings: Diagnostic[];
    }
    Index

    Properties

    allData: Element[]

    Every <data> element, document order.

    binding: "early" | "late"

    The binding attribute: when <data> is initialised.

    byElement: Map<Element, StateNode>

    States by source element.

    byId: Map<string, StateNode>

    States by id (generated ids included).

    name: string

    The <scxml name> attribute ("" when absent).

    ns: string | null

    The SCXML namespace the document uses.

    resources: Map<Element, string | Error>

    Pre-loaded src contents for <script src> and <data src> (value: text, or an Error).

    root: StateNode

    The <scxml> element's node.

    scripts: Element[]

    <script> children of <scxml>.

    states: StateNode[]

    All states (including history and the root) in document order.

    transitionsByElement: Map<Element, TransitionNode>

    Transitions by source <transition> element.

    warnings: Diagnostic[]

    Likely mistakes that are still valid SCXML (see Diagnostic); empty for most charts.