Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TextLines

Index

Constructors

constructor

  • new TextLines(text: any, fontData: any, width?: number, start?: number, mode?: string, letterSpacing?: number): TextLines
  • Parameters

    • text: any
    • fontData: any
    • Default value width: number = Number.MAX_VALUE
    • Default value start: number = 0
    • Default value mode: string = "nowrap"
    • Default value letterSpacing: number = 0

    Returns TextLines

Properties

Private fontData

fontData: any

lines

lines: any

Methods

computeMetrics

  • computeMetrics(text: any, font: any, start: any, end: any, width: any, letterSpacing?: number): object
  • Parameters

    • text: any
    • font: any
    • start: any
    • end: any
    • width: any
    • Default value letterSpacing: number = 0

    Returns object

    • end: any
    • start: any
    • width: number

greedy

  • greedy(text: any, start: any, end: any, width: number, mode: any): void

idxOf

  • idxOf(text: any, chr: any, start: number, end: number): any

isWhitespace

  • isWhitespace(chr: string): boolean

measure

  • measure(text: any, fontData: any, start: any, end: any, width: any): object
  • Parameters

    • text: any
    • fontData: any
    • start: any
    • end: any
    • width: any

    Returns object

    • end: any
    • start: any
    • width: number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc