Class BreakLineAlgorithm

Algorithms in LATEX-like language

Hierarchy

  • BreakLineAlgorithm

Constructors

Properties

lineCostStorage: number[][]
prevNodes: number[]
totalCostAuxStorage: number[]

Methods

  • genrate the list of point of breaking line. it returns a correct list ascending

    Returns number[]

  • check the line cost of a line containing items[i..j]

    Parameters

    • items: BoxesItem[]

      items of box

    • i: number

      beginning (excluded)

    • j: number

      end of the line

    • lineWidth: number

      line width

    Returns number

  • check all the total cost of paragraphes of the segnemt

    Parameters

    Returns number

  • check the total cost item[0..j].

    Parameters

    • items: BoxesItem[]
    • j: number
    • lineWidth: number

    Returns number

Generated using TypeDoc