Skip to content

Class: LeafLevelList

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new LeafLevelList(item?): LeafLevelList

Parameters

NameType
item?ILeaf | ILeaf[]

Returns

LeafLevelList

Defined in

leafer/packages/list/src/LeafLevelList.ts:12

Properties

levelMap

levelMap: ILeafArrayMap

Implementation of

ILeafLevelList.levelMap

Defined in

leafer/packages/list/src/LeafLevelList.ts:5


keys

keys: INumberMap

Implementation of

ILeafLevelList.keys

Defined in

leafer/packages/list/src/LeafLevelList.ts:6


levels

levels: number[]

Implementation of

ILeafLevelList.levels

Defined in

leafer/packages/list/src/LeafLevelList.ts:7


_length

Private _length: number = 0

Defined in

leafer/packages/list/src/LeafLevelList.ts:10

Accessors

length

get length(): number

Returns

number

Implementation of

ILeafLevelList.length

Defined in

leafer/packages/list/src/LeafLevelList.ts:9

Methods

has

has(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Implementation of

ILeafLevelList.has

Defined in

leafer/packages/list/src/LeafLevelList.ts:17


without

without(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Implementation of

ILeafLevelList.without

Defined in

leafer/packages/list/src/LeafLevelList.ts:21


sort

sort(reverse?): void

Parameters

NameType
reverse?boolean

Returns

void

Implementation of

ILeafLevelList.sort

Defined in

leafer/packages/list/src/LeafLevelList.ts:25


addList

addList(list): void

Parameters

NameType
listILeaf[]

Returns

void

Implementation of

ILeafLevelList.addList

Defined in

leafer/packages/list/src/LeafLevelList.ts:34


add

add(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Implementation of

ILeafLevelList.add

Defined in

leafer/packages/list/src/LeafLevelList.ts:38


forEach

forEach(itemCallback): void

Parameters

NameType
itemCallbackILeafListItemCallback

Returns

void

Implementation of

ILeafLevelList.forEach

Defined in

leafer/packages/list/src/LeafLevelList.ts:52


reset

reset(): void

Returns

void

Implementation of

ILeafLevelList.reset

Defined in

leafer/packages/list/src/LeafLevelList.ts:62


destroy

destroy(): void

Returns

void

Implementation of

ILeafLevelList.destroy

Defined in

leafer/packages/list/src/LeafLevelList.ts:69

Released under the MIT License.