@mathjax/src
    Preparing search index...

    Class RenderList<N, T, D>

    Implements a prioritized list of render actions. Extensions can add actions to the list to make it easy to extend the normal typesetting and conversion operations.

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    items: PrioritizedListItem<RenderData<N, T, D>>[] = []

    The list of items, sorted by priority (smallest number first)

    DEFAULTPRIORITY: number = 5

    The default priority for items added to the list

    Methods

    • Perform the MathItem-level conversion functions

      Parameters

      • math: MathItem<N, T, D>

        The MathItem whose methods are to be called

      • document: MathDocument<N, T, D>

        The MathDocument to pass to the MathItem methods

      • end: number = STATE.LAST

        The state at which to end rendering (default is LAST)

      Returns void

    • Perform the document-level rendering functions

      Parameters

      • document: MathDocument<N, T, D>

        The MathDocument whose methods are to be called

      • start: number = STATE.UNPROCESSED

        The state at which to start rendering (default is UNPROCESSED)

      Returns void

    • Perform the MathItem-level rendering functions

      Parameters

      • math: MathItem<N, T, D>

        The MathItem whose methods are to be called

      • document: MathDocument<N, T, D>

        The MathDocument to pass to the MathItem methods

      • start: number = STATE.UNPROCESSED

        The state at which to start rendering (default is UNPROCESSED)

      Returns void

    • Parses a RenderAction to produce the correspinding RenderData item (e.g., turn method names into actual functions that call the method)

      Type Parameters

      • N
      • T
      • D

      Parameters

      • id: string

        The id of the action

      • action: RenderAction<N, T, D>

        The RenderAction defining the action

      Returns [RenderData<N, T, D>, number]

      The corresponding RenderData definition for the action and its priority

    • Produces the doc and math actions for the given method name(s) (a blank name is a no-op)

      Parameters

      • method1: string

        The method to use for the render() call

      • method2: string = method1

        The method to use for the rerender() and convert() calls

      Returns [(document: any) => boolean, (math: any, document: any) => boolean]

      Two render action methods wrapping the parameter methods.