@mathjax/src
    Preparing search index...

    Class LinebreakVisitor<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    FACTORS: {
        [key: string]: (
            p: number,
            mo?: CommonMo<N, T, D, JX, WW, WF, WC, CC, VV, DD, FD, FC>,
        ) => number;
    } = ...

    Penalties for other factors

    nodeHandlers: Map<string, VisitorFunction<WW>> = ...

    Holds the mapping from node kinds to visitor funcitons

    PENALTY: { [key: string]: (p: number) => number } = ...

    Penalty functions for the various linebreak values

    state: StateData<WW>

    The state of the linebreaking process

    TEXCLASS: { [key: string]: (p: number) => number } = ...

    Penalties for tex classes

    Methods

    • Break a line to the given width

      Parameters

      • wrapper: WW

        The mrow to break

      • i: number

        The line within that node to break

      Returns void

    • Update the break list to include this break

      Parameters

      • wrapper: WW

        The mo/mspace that might be a breakpoint

      • penalty: number

        The penalty for that break

      • w: number

        The width+indent of the node after the break

      • ij: [number, number]

        The child and character index, or null

      Returns void

    • Visitor functions are named "visitKindNode" where "Kind" is replaced by the node kind; e.g., visitTextNode for kind = text.

      Parameters

      • kind: string

        The node kind whose method name is needed

      Returns string

      The name of the visitor method for the given node kind