X-Git-Url: https://git.kianting.info/?a=blobdiff_plain;f=docs%2Fclasses%2Flibclo_breakLines.BreakLineAlgorithm.html;fp=docs%2Fclasses%2Flibclo_breakLines.BreakLineAlgorithm.html;h=1cdea8f4046e6327ba69d0d7224f7e9b7f6e789b;hb=f12842e5a4ef531e38024e16f91b21c99ce1de92;hp=0000000000000000000000000000000000000000;hpb=a4f79a3761539f45ac7d86fe919bdc32cf290db0;p=clo diff --git a/docs/classes/libclo_breakLines.BreakLineAlgorithm.html b/docs/classes/libclo_breakLines.BreakLineAlgorithm.html new file mode 100644 index 0000000..1cdea8f --- /dev/null +++ b/docs/classes/libclo_breakLines.BreakLineAlgorithm.html @@ -0,0 +1,293 @@ +BreakLineAlgorithm | clo
+
+ +
+
+
+
+ +

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 if a boeitem is BreakPoint Type

    +
    +
    +

    Parameters

    +
      +
    • +
      item: any
    +

    Returns item is HGlue

    +
+
+ +
    + +
  • +

    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

    +
+
+ +
    + +
  • +

    measuring new-line triggered advance width

    +
    +
    +

    Parameters

    +
    +

    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

+
\ No newline at end of file