@mathjax/src
    Preparing search index...

    Interface CommonMmultiscripts<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>

    The CommonMmultiscripts interface

    interface CommonMmultiscripts<
        N,
        T,
        D,
        JX extends CommonOutputJax<N, T, D, WW, WF, WC, CC, VV, DD, FD, FC>,
        WW extends CommonWrapper<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>,
        WF extends
            CommonWrapperFactory<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>,
        WC extends CommonWrapperClass<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>,
        CC extends CharOptions,
        VV extends VariantData<CC>,
        DD extends DelimiterData,
        FD extends FontData<CC, VV, DD>,
        FC extends FontDataClass<CC, VV, DD>,
    > {
        _breakCount: number;
        baseChild: WW;
        baseCore: WW;
        baseHasAccentOver: boolean;
        baseHasAccentUnder: boolean;
        baseIc: number;
        baseIsChar: boolean;
        baseRemoveIc: boolean;
        baseScale: number;
        bbox: BBox;
        bboxComputed: boolean;
        childNodes: WW[];
        dom: N[];
        factory: WF;
        firstPrescript: number;
        font: FD;
        isLineAbove: boolean;
        isLineBelow: boolean;
        isMathAccent: boolean;
        lineBBox: LineBBox[];
        node: MmlNode;
        parent: WW;
        removedStyles: StringMap;
        scriptChild: WW;
        scriptData: ScriptData;
        stretch: DD;
        styleData: StyleData;
        styles: Styles;
        subChild: WW;
        supChild: WW;
        UVQ: number[];
        variant: string;
        get adaptor(): DOMAdaptor<N, T, D>;
        get breakCount(): number;
        get containerWidth(): number;
        get fixesPWidth(): boolean;
        get jax(): JX;
        get kind(): string;
        get linebreakOptions(): {
            inline: boolean;
            LinebreakVisitor: null;
            lineleading: number;
            width: string;
        };
        get linebreaks(): Linebreaks<
            N,
            T,
            D,
            CommonOutputJax<N, T, D, WW, WF, WC, CC, VV, DD, FD, FC>,
            WW,
            WF,
            WC,
            CC,
            VV,
            DD,
            FD,
            FC,
        >;
        get metrics(): Metrics;
        addLeftBorders(bbox: BBox): void;
        addMiddleBorders(bbox: BBox): void;
        addPrescripts(bbox: BBox, u: number, v: number): BBox;
        addRightBorders(bbox: BBox): void;
        appendScripts(bbox: BBox): BBox;
        baseCharZero(n: number): number;
        breakTop(mrow: WW, _child: WW): WW;
        breakToWidth(_W: number): void;
        canStretch(direction: string): boolean;
        checkLineAccents(): void;
        combineBBoxLists(
            bbox1: BBox,
            bbox2: BBox,
            list1: BBox[],
            list2: BBox[],
        ): void;
        combinePrePost(pre: BBox, post: BBox): BBox;
        computeBBox(bbox: BBox, recompute?: boolean): void;
        computeLineBBox(i: number): LineBBox;
        copySkewIC(bbox: BBox): void;
        core(): WW;
        coreMO(): CommonMo<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>;
        coreRScale(): number;
        createMo(
            text: string,
        ): CommonMo<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>;
        em(m: number): string;
        embellishedBBox(i: number): LineBBox;
        explicitVariant(
            fontFamily: string,
            fontWeight: string,
            fontStyle: string,
        ): string;
        getAdjustedIc(): number;
        getAlignShift(): [string, number];
        getAlignX(W: number, bbox: BBox, align: string): number;
        getAlignY(
            H: number,
            D: number,
            h: number,
            d: number,
            align: string,
        ): number;
        getBaseCore(): WW;
        getBaseFence(fence: WW, id: string): WW;
        getBaseIc(): number;
        getBaseScale(): number;
        getBaseWidth(): number;
        getBBox(save?: boolean): BBox;
        getBreakNode(bbox: LineBBox): [WW, WW];
        getChildAlign(_i: number): string;
        getChildLineBBox(child: WW, i: number): LineBBox;
        getCombinedUV(): number[];
        getDelta(script: WW, noskew?: boolean): number;
        getDeltaW(boxes: BBox[], delta?: number[]): number[];
        getLineBBox(i: number): LineBBox;
        getMathMLSpacing(): void;
        getOffset(): number[];
        getOuterBBox(save?: boolean): BBox;
        getOverKU(basebox: BBox, overbox: BBox): number[];
        getRScale(): number;
        getScale(): void;
        getScaledWHD(bbox: BBox): void;
        getScriptBBoxLists(): ScriptLists;
        getScriptData(): void;
        getSemanticBase(): WW;
        getSpace(): void;
        getStyleData(): void;
        getStyles(): void;
        getTeXSpacing(isTop: boolean, hasSpacing: boolean): void;
        getText(): string;
        getU(): number;
        getUnbrokenHD(): [number, number];
        getUnderKV(basebox: BBox, underbox: BBox): number[];
        getUVQ(subbox?: BBox, supbox?: BBox): number[];
        getV(): number;
        getVariant(): void;
        getVariantChar(variant: string, n: number): CharDataArray<CC>;
        getWrapWidth(i: number): number;
        hasMovableLimits(): boolean;
        html(type: string, def?: OptionList, content?: (N | T)[]): N;
        invalidateBBox(bubble?: boolean): void;
        isCharBase(): boolean;
        isLineAccent(script: WW): boolean;
        isTopEmbellished(): boolean;
        length2em(length: Property, size?: number, scale?: number): number;
        mmlNode(
            kind: string,
            properties?: PropertyList,
            children?: MmlNode[],
        ): MmlNode;
        mmlText(text: string): TextNode;
        padLists(list1: BBox[], list2: BBox[]): void;
        percent(m: number): string;
        processIndent(
            indentalign: string,
            indentshift: string,
            align?: string,
            shift?: string,
            width?: number,
        ): [string, number];
        px(m: number, M?: number): string;
        remapChars(chars: number[]): number[];
        setBaseAccentsFor(core: WW): void;
        setChildPWidths(recompute: boolean, w?: number, clear?: boolean): boolean;
        stretchChildren(): void;
        unicodeChars(text: string, name?: string): number[];
        walkTree(func: (node: WW, data?: any) => void, data?: any): any;
        wrap<TT = WW>(node: MmlNode, parent?: WW): TT;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    _breakCount: number = -1

    The cached number of linebreaks

    baseChild: WW

    The base element's wrapper

    baseCore: WW

    The core mi or mo of the base (or the base itself if there isn't one)

    baseHasAccentOver: boolean

    True if the base has an accent over

    baseHasAccentUnder: boolean

    True if the base has an accent under

    baseIc: number

    The italic correction of the base (if any)

    baseIsChar: boolean

    True if the base is a single character

    baseRemoveIc: boolean

    True if base italic correction should be removed (msub and msubsup or mathaccents)

    baseScale: number

    The relative scaling of the base compared to the munderover/msubsup

    bbox: BBox

    The bounding box for this node

    bboxComputed: boolean = false

    Whether the bounding box has been computed yet

    childNodes: WW[]

    The children of this node

    dom: N[] = null

    The DOM tree generated for this wrapper

    factory: WF

    The factory used to create more wrappers

    firstPrescript: number

    The index of the child following the tag

    font: FD = null

    Easy access to the font parameters

    isLineAbove: boolean

    True if this is an overline

    isLineBelow: boolean

    True if this is an underline

    isMathAccent: boolean

    True if this is an msup with script that is a math accent

    lineBBox: LineBBox[] = []

    Sizes of lines into which the element is broken

    node: MmlNode
    parent: WW = null

    The parent of this node

    removedStyles: StringMap = null

    Styles that must be handled directly by the wrappers (mostly having to do with fonts)

    scriptChild: WW

    The script element's wrapper (overridden in subclasses)

    scriptData: ScriptData

    The cached data for the various bounding boxes

    stretch: DD = ...

    Delimiter data for stretching this node (NOSTRETCH means not yet determined)

    styleData: StyleData = null

    The padding and border information from the style attribute

    styles: Styles = null

    The explicit styles set by the node

    subChild: WW

    The wrapper for the subscript

    supChild: WW

    The wrapper for the superscript

    UVQ: number[]

    Cached values for the script offsets and separation (so if they are computed in computeBBox(), they don't have to be recomputed during output)

    variant: string = ''

    The mathvariant for this node

    Accessors

    • get breakCount(): number

      Returns number

      The number of breakpoints in the node

    • get containerWidth(): number

      Easy access to the container width

      Returns number

      The container width

    • get fixesPWidth(): boolean

      Returns boolean

      True if children with percentage widths should be resolved by this container

    • get linebreakOptions(): {
          inline: boolean;
          LinebreakVisitor: null;
          lineleading: number;
          width: string;
      }

      Easy access to the linebreak options

      Returns { inline: boolean; LinebreakVisitor: null; lineleading: number; width: string }

      The linebreak options

    Methods

    • Parameters

      • bbox: BBox

        The bounding box to modify (either this.bbox, or an empty one)

      • recompute: boolean = false

        True if we are recomputing due to changes in children that have percentage widths

      Returns void

    • Set the CSS for a token element having an explicit font (rather than regular mathvariant).

      Parameters

      • fontFamily: string

        The font family to use

      • fontWeight: string

        The font weight to use

      • fontStyle: string

        The font style to use

      Returns string

      The explicit font marker

    • Parameters

      • H: number

        The total height

      • D: number

        The total depth

      • h: number

        The height to be aligned

      • d: number

        The depth to be aligned

      • align: string

        How to align (top, bottom, center, axis, baseline)

      Returns number

      The y position of the aligned baseline

    • Return the wrapped node's bounding box, either the cached one, if it exists, or computed directly if not.

      Parameters

      • save: boolean = true

        Whether to cache the bbox or not (used for stretchy elements)

      Returns BBox

      The computed bounding box

    • Get the bounding box for the i-th line (first and last may be part of a surrounding line). Get the bbox from the lineBBox cache, or compute it, as needed.

      Parameters

      • i: number

        The number of the segment whose sizes are to be obtained

      Returns LineBBox

      The bounding box of the specified segment

    • Return the wrapped node's bounding box that includes borders and padding

      Parameters

      • save: boolean = true

        Whether to cache the bbox or not (used for stretchy elements)

      Returns BBox

      The computed bounding box

    • Get the spacing using the TeX rules

      Parameters

      • isTop: boolean

        True when this is a top-level embellished operator

      • hasSpacing: boolean

        True when there is an explicit or inherited 'form' attribute

      Returns void

    • Get the shift for the scripts and their separation (TeXBook Appendix G 18adef)

      Parameters

      • Optionalsubbox: BBox

        The bounding box of the superscript

      • Optionalsupbox: BBox

        The bounding box of the subscript

      Returns number[]

      The vertical offsets for super and subscripts, and the space between them

    • Parameters

      • length: Property

        A dimension (giving number and units) or number to be converted to ems

      • size: number = 1

        The default size of the dimension (for percentage values)

      • scale: number = null

        The current scaling factor (to handle absolute units)

      Returns number

      The dimension converted to ems

    • Parameters

      • indentalign: string

        The indentalign to process

      • indentshift: string

        The indentshift to process

      • align: string = ''

        The default alignment for 'auto'

      • shift: string = ''

        The default indentshift for 'auto'

      • width: number = ...

        The container width for relative shifts

      Returns [string, number]

      The alignment and indentation shift (normal and last) for the Mo

    • Parameters

      • m: number

        A number of em's to be shown as pixels

      • M: number = -LENGTHS.BIGDIMEN

        The minimum number of pixels to allow

      Returns string

      The number with units of px

    • Recursively resolve any percentage widths in the child nodes using the given container width (or the child width, if none was passed). Overriden for mtables in order to compute the width.

      Parameters

      • recompute: boolean

        True if we are recomputing due to changes in children

      • w: number = null

        The width of the container (from which percentages are computed)

      • clear: boolean = true

        True if pwidth marker is to be cleared

      Returns boolean

      True if a percentage width was found

    • Parameters

      • text: string

        The text to turn into unicode locations

      • name: string = ...

        The name of the variant for the characters

      Returns number[]

      Array of numbers represeting the string's unicode character positions