Class Clo

whole document-representing class

Hierarchy

  • Clo

Constructors

Properties

attrs: {
    [index: string]: any;
}

the attributes for the Clo

Type declaration

  • [index: string]: any
mainStream: string[]

storing the text string into the main frame

preprocessors: Function[]

array of preprocessor functions to preprocess the mainStream

Methods

  • make all the nest boxes's position fixed

    Parameters

    • box: Box

      the main boxes

    Returns Box

    the fixed boxes

  • get the max height of the glyph[a, b, c]

    Parameters

    • nodeLine: BoxesItem[]

      the node line [a, b, c, ...]

    Returns number

  • register a function of preprocessor

    Parameters

    • f: Function

      a function

    Returns void

  • Parameters

    • doc: PDFDocument
    • box: Box
    • styleCache: TextStyle
    • fontPairCache: fontPathPSNamePair

    Returns Promise<[PDFDocument, TextStyle, fontPathPSNamePair]>

  • input a segmentedNodes and a layed frame, return a big Box that nodes is put in.

    Parameters

    • segmentedNodes: BoxesItem[][]

      the segmentnodes to be input

    • frame: FrameBox

      the frame to be layed out.

    Returns Box

    the big Box.

  • Parameters

    • attr: string
    • val: any

    Returns void

Generated using TypeDoc