Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScreenAppender

On-screen (canvas) appender

Hierarchy

  • ScreenAppender

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Optional width: number

      Width of the screen appender in pixels

    • Optional height: number

      Height of the screen appender in pixels

    Returns ScreenAppender

Properties

Private _canvas

_canvas: HTMLCanvasElement

Private _ctx

_ctx: CanvasRenderingContext2D

Private _messages

_messages: string[] = []

Methods

log

  • log(level: LogLevel, args: any[]): void
  • Logs a message at the given LogLevel

    Parameters

    • level: LogLevel

      Level to log at

    • args: any[]

      Arguments to log

    Returns void