Ir al contenido

List

Defined in: collections/List.ts:9

GoJS-compatible: an ordered collection, mirroring go.List. graphojs’s own internals use plain arrays; this class exists as a public utility for code ported from GoJS that constructs new go.List<T>() directly.

T

new List<T>(coll?): List<T>

Defined in: collections/List.ts:12

Iterable<T, any, any>

List<T>

get count(): number

Defined in: collections/List.ts:155

number


get iterator(): Iterator<T>

Defined in: collections/List.ts:167

Iterator<T>


get iteratorBackwards(): Iterator<T>

Defined in: collections/List.ts:171

Iterator<T>


get length(): number

Defined in: collections/List.ts:163

number


get size(): number

Defined in: collections/List.ts:159

number

[iterator](): Iterator<T>

Defined in: collections/List.ts:16

Iterator<T>


add(val): this

Defined in: collections/List.ts:24

T

this


addAll(coll): this

Defined in: collections/List.ts:33

Iterable<T>

this


all(pred): boolean

Defined in: collections/List.ts:86

(a) => boolean

boolean


any(pred): boolean

Defined in: collections/List.ts:82

(a) => boolean

boolean


clear(): void

Defined in: collections/List.ts:38

void


contains(val): boolean

Defined in: collections/List.ts:42

T

boolean


copy(): List<T>

Defined in: collections/List.ts:127

List<T>


delete(val): boolean

Defined in: collections/List.ts:114

T

boolean


each(func): this

Defined in: collections/List.ts:90

(a) => void

this


elt(i): T

Defined in: collections/List.ts:54

number

T


filter(pred): List<T>

Defined in: collections/List.ts:99

(a) => boolean

List<T>


first(): T | null

Defined in: collections/List.ts:70

T | null


get(i): T

Defined in: collections/List.ts:58

number

T


has(val): boolean

Defined in: collections/List.ts:46

T

boolean


indexOf(val): number

Defined in: collections/List.ts:50

T

number


insertAt(i, val): void

Defined in: collections/List.ts:103

number

T

void


last(): T | null

Defined in: collections/List.ts:74

T | null


map<S>(func): List<S>

Defined in: collections/List.ts:95

S

(a) => S

List<S>


pop(): T | null

Defined in: collections/List.ts:78

T | null


push(val): void

Defined in: collections/List.ts:29

T

void


remove(val): boolean

Defined in: collections/List.ts:107

T

boolean


removeAt(i): void

Defined in: collections/List.ts:118

number

void


removeRange(from, to): this

Defined in: collections/List.ts:122

number

number

this


reverse(): this

Defined in: collections/List.ts:150

this


set(i, val): void

Defined in: collections/List.ts:66

number

T

void


setElt(i, val): void

Defined in: collections/List.ts:62

number

T

void


sort(sortfunc): this

Defined in: collections/List.ts:139

(a, b) => number

this


sortRange(sortfunc, from?, to?): this

Defined in: collections/List.ts:144

(a, b) => number

number = 0

number = ...

this


toArray(): T[]

Defined in: collections/List.ts:131

T[]


toSet(): Set<T>

Defined in: collections/List.ts:135

Set<T>


toString(): string

Defined in: collections/List.ts:20

string