Skip to content

Class: Debug

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Debug(name): Debug

Parameters

NameType
namestring

Returns

Debug

Defined in

leafer/packages/debug/src/Debug.ts:20

Properties

enable

Static enable: boolean

Defined in

leafer/packages/debug/src/Debug.ts:5


filterList

Static filterList: string[] = []

Defined in

leafer/packages/debug/src/Debug.ts:7


excludeList

Static excludeList: string[] = []

Defined in

leafer/packages/debug/src/Debug.ts:8


showWarn

Static showWarn: boolean = true

Defined in

leafer/packages/debug/src/Debug.ts:11


showRepaint

Static showRepaint: boolean

Defined in

leafer/packages/debug/src/Debug.ts:12


showHitView

Static showHitView: string | boolean | string[]

Defined in

leafer/packages/debug/src/Debug.ts:13


showBoundsView

Static showBoundsView: string | boolean | string[]

Defined in

leafer/packages/debug/src/Debug.ts:14


name

name: string

Defined in

leafer/packages/debug/src/Debug.ts:16


repeatMap

repeatMap: IBooleanMap = {}

Defined in

leafer/packages/debug/src/Debug.ts:18

Accessors

filter

set filter(name): void

Parameters

NameType
namestring | string[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:28


exclude

set exclude(name): void

Parameters

NameType
namestring | string[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:32

Methods

get

get(name): Debug

Parameters

NameType
namestring

Returns

Debug

Defined in

leafer/packages/debug/src/Debug.ts:24


log

log(...messages): void

Parameters

NameType
...messagesunknown[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:37


tip

tip(...messages): void

Parameters

NameType
...messagesunknown[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:45


warn

warn(...messages): void

Parameters

NameType
...messagesunknown[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:49


repeat

repeat(name, ...messages): void

Parameters

NameType
namestring
...messagesunknown[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:53


error

error(...messages): void

Parameters

NameType
...messagesunknown[]

Returns

void

Defined in

leafer/packages/debug/src/Debug.ts:60

Released under the MIT License.