Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Display

Implements

Index

Constructors

constructor

  • new Display(height: number, width: number): Display
  • Parameters

    • height: number
    • width: number

    Returns Display

Properties

Private Readonly display

display: Display

Protected height

height: number

Protected width

width: number

Methods

clear

  • clear(): void

draw

  • draw(position: PositionInterface, glyph: GlyphInterface): void
  • Parameters

    • position: PositionInterface
    • glyph: GlyphInterface

    Returns void

drawText

  • drawText(position: PositionInterface, text: string): number
  • Parameters

    • position: PositionInterface
    • text: string

    Returns number

getContainer

  • getContainer(): HTMLElement | null

getHeight

  • getHeight(): number

getWidth

  • getWidth(): number

Generated using TypeDoc