@mathjax/src
    Preparing search index...

    Interface MenuMathDocument

    The properties needed in the MathDocument for context menus

    interface MenuMathDocument {
        _actionPromises: Promise<void>[];
        _readyPromise: Promise<any>;
        adaptor: DOMAdaptor<HTMLElement, Text, Document>;
        document: Document;
        inputJax: InputJax<HTMLElement, Text, Document>[];
        math: MathList<HTMLElement, Text, Document>;
        menu: Menu;
        mmlFactory: MmlFactory;
        options: OptionList;
        outputJax: OutputJax<HTMLElement, Text, Document>;
        processed: BitField;
        renderActions: RenderList<HTMLElement, Text, Document>;
        webworker: WorkerHandler<HTMLElement, Text, Document>;
        get kind(): string;
        actionPromises(): Promise<void[]>;
        addMenu(): MenuMathDocument;
        addRenderAction(id: string, ...action: any[]): void;
        attachSpeech(): SpeechMathDocument<HTMLElement, Text, Document>;
        checkLoading(): boolean;
        clear(): MenuMathDocument;
        clearMathItemsWithin(
            containers: ContainerList<HTMLElement>,
        ): MathItem<HTMLElement, Text, Document>[];
        clearPromises(): void;
        compile(): MenuMathDocument;
        compileError(math: MathItem<HTMLElement, Text, Document>, err: Error): void;
        compileMath(math: MathItem<HTMLElement, Text, Document>): void;
        complexity(): ComplexityMathDocument<HTMLElement, Text, Document>;
        concat(list: MathList<HTMLElement, Text, Document>): MenuMathDocument;
        convert(math: string, options?: OptionList): any;
        convertPromise(math: string, options?: OptionList): Promise<any>;
        done(): Promise<void>;
        enrich(): EnrichedMathDocument<HTMLElement, Text, Document>;
        enrichError(
            doc: EnrichedMathDocument<HTMLElement, Text, Document>,
            math: EnrichedMathItem<HTMLElement, Text, Document>,
            err: Error,
        ): void;
        findMath(_options?: OptionList): MenuMathDocument;
        getMathItemsWithin(
            elements: ContainerList<HTMLElement>,
        ): MathItem<HTMLElement, Text, Document>[];
        getMetrics(): MenuMathDocument;
        getWebworker(): void;
        removeFromDocument(_restore?: boolean): MenuMathDocument;
        removeRenderAction(id: string): void;
        render(): MenuMathDocument;
        renderPromise(): Promise<any>;
        rerender(start?: number): MenuMathDocument;
        rerenderPromise(start?: number): Promise<any>;
        reset(options?: ResetList): MenuMathDocument;
        savePromise(promise: Promise<any>): void;
        speechError(
            doc: SpeechMathDocument<HTMLElement, Text, Document>,
            math: SpeechMathItem<HTMLElement, Text, Document>,
            err: Error,
        ): void;
        state(state: number, restore?: boolean): MenuMathDocument;
        typeset(): MenuMathDocument;
        typesetError(math: MathItem<HTMLElement, Text, Document>, err: Error): void;
        updateDocument(): MenuMathDocument;
        whenReady(action: () => any): Promise<any>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _actionPromises: Promise<void>[]

    The render action promise list

    _readyPromise: Promise<any>

    Promise for the current typeset or conversion action (used to chain the promise-based calls so they don't overlap).

    adaptor: DOMAdaptor<HTMLElement, Text, Document>

    The DOM adaptor for the document

    document: Document

    The document managed by this MathDocument

    inputJax: InputJax<HTMLElement, Text, Document>[]

    The list of input jax for the document

    math: MathList<HTMLElement, Text, Document>

    The list of MathItems for this document

    menu: Menu

    The menu associated with this document

    mmlFactory: MmlFactory

    The MathML node factory for the internal MathML representation

    options: OptionList

    The actual options for this document (with user-supplied ones merged in)

    outputJax: OutputJax<HTMLElement, Text, Document>

    The output jax for the document

    processed: BitField

    The bit-field used to tell what steps have been taken on the document (for retries)

    renderActions: RenderList<HTMLElement, Text, Document>

    The list of render actions

    webworker: WorkerHandler<HTMLElement, Text, Document>

    The webworker handler for the document

    Accessors

    Methods

    • Checks if there are files being loaded by the menu, and cancels the typesetting if so.

      Returns boolean

      True if we need to wait for extensions