GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — MaxLog | @maxgraph/core

  • MaxLog

Class MaxLog

A singleton class that implements a simple console.

  • Defined in gui/MaxLog.ts:47
Index

Constructors

constructor

Properties

buffer consoleName DEBUG td textarea TRACE WARN window

Methods

addButton debug enter info init isVisible leave setVisible show trace warn write writeln

Constructors

constructor

  • new MaxLog(): MaxLog

    Returns MaxLog

Properties

Staticbuffer

buffer: string = ''

Buffer for pre-initialized content.

  • Defined in gui/MaxLog.ts:218

StaticconsoleName

consoleName: string = 'Console'

Specifies the name of the console window.

Default

'Console'
  • Defined in gui/MaxLog.ts:195

StaticDEBUG

DEBUG: boolean = true

Specifies if the output for debug should be visible in the console.

Default

true
  • Defined in gui/MaxLog.ts:207

Statictd

td: HTMLTableCellElement
  • Defined in gui/MaxLog.ts:50

Statictextarea

textarea: HTMLTextAreaElement | null = null
  • Defined in gui/MaxLog.ts:48

StaticTRACE

TRACE: boolean = false

Specified if the output for enter and leave should be visible in the console.

Default

false
  • Defined in gui/MaxLog.ts:201

StaticWARN

WARN: boolean = true

Specifies if the output for warn should be visible in the console.

Default

true
  • Defined in gui/MaxLog.ts:213

Staticwindow

window: MaxWindow
  • Defined in gui/MaxLog.ts:49

Methods

StaticaddButton

  • addButton(lab: string, funct: MouseEventListener | KeyboardEventListener): void

    Adds a button to the console using the given label and function.

    Parameters

    • lab: string
    • funct: MouseEventListener | KeyboardEventListener

    Returns void

    • Defined in gui/MaxLog.ts:230

Staticdebug

  • debug(...args: string[]): void

    Adds all arguments to the console if DEBUG is enabled.

    Parameters

    • ...args: string[]

    Returns void

    • Defined in gui/MaxLog.ts:295

Staticenter

  • enter(string: string): number | undefined

    Writes the specified string to the console if TRACE is true and returns the current time in milliseconds.

    Parameters

    • string: string

    Returns number | undefined

    • Defined in gui/MaxLog.ts:271

Staticinfo

  • info(): void

    Writes the current navigator information to the console.

    Returns void

    • Defined in gui/MaxLog.ts:223

Staticinit

  • init(): void

    Initializes the DOM node for the console. This requires document.body to point to a non-null value. This is called from within setVisible if the log has not yet been initialized.

    Returns void

    • Defined in gui/MaxLog.ts:57

StaticisVisible

  • isVisible(): boolean

    Returns true if the console is visible.

    Returns boolean

    • Defined in gui/MaxLog.ts:240

Staticleave

  • leave(string: string, t0?: number): void

    Writes the specified string to the console if TRACE is true and computes the difference between the current time and t0 in milliseconds.

    Parameters

    • string: string
    • Optionalt0: number

    Returns void

    See

    enter for an example.

    • Defined in gui/MaxLog.ts:285

StaticsetVisible

  • setVisible(visible: boolean): void

    Shows or hides the console.

    Parameters

    • visible: boolean

    Returns void

    • Defined in gui/MaxLog.ts:258

Staticshow

  • show(): void

    Shows the console.

    Returns void

    • Defined in gui/MaxLog.ts:251

Statictrace

  • trace(...args: string[]): void

    Adds all arguments to the console if TRACE is enabled.

    Parameters

    • ...args: string[]

    Returns void

    • Defined in gui/MaxLog.ts:304

Staticwarn

  • warn(...args: string[]): void

    Adds all arguments to the console if WARN is enabled.

    Parameters

    • ...args: string[]

    Returns void

    • Defined in gui/MaxLog.ts:313

Staticwrite

  • write(...args: string[]): void

    Adds the specified strings to the console.

    Parameters

    • ...args: string[]

    Returns void

    • Defined in gui/MaxLog.ts:322

Staticwriteln

  • writeln(...args: string[]): void

    Adds the specified strings to the console, appending a linefeed at the end of each string.

    Parameters

    • ...args: string[]

    Returns void

    • Defined in gui/MaxLog.ts:351

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
bufferconsoleNameDEBUGtdtextareaTRACEWARNwindow
Methods
addButtondebugenterinfoinitisVisibleleavesetVisibleshowtracewarnwritewriteln
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.