Ir al contenido

Map

Defined in: collections/Map.ts:17

GoJS-compatible: a key/value collection, mirroring go.Map. Named Map to match GoJS’s exact API — import it aliased (e.g. import { Map as GoMap } from 'graphojs') to avoid shadowing the native Map in the same scope.

K

V

new Map<K, V>(coll?): Map<K, V>

Defined in: collections/Map.ts:20

Iterable<IKeyValuePair<K, V>, any, any> | Iterable<readonly [K, V], any, any>

Map<K, V>

get count(): number

Defined in: collections/Map.ts:133

number


get iterator(): Iterator<IKeyValuePair<K, V>>

Defined in: collections/Map.ts:141

Iterator<IKeyValuePair<K, V>>


get iteratorKeys(): Iterator<K>

Defined in: collections/Map.ts:145

Iterator<K>


get iteratorValues(): Iterator<V>

Defined in: collections/Map.ts:153

Iterator<V>


get size(): number

Defined in: collections/Map.ts:137

number

[iterator](): Iterator<[K, V]>

Defined in: collections/Map.ts:165

Iterator<[K, V]>


add(key, val): this

Defined in: collections/Map.ts:38

K

V

this


addAll(coll): this

Defined in: collections/Map.ts:43

Iterable<IKeyValuePair<K, V>, any, any> | Iterable<readonly [K, V], any, any>

this


all(pred): boolean

Defined in: collections/Map.ts:67

(a) => boolean

boolean


any(pred): boolean

Defined in: collections/Map.ts:60

(a) => boolean

boolean


clear(): void

Defined in: collections/Map.ts:117

void


contains(key): boolean

Defined in: collections/Map.ts:97

K

boolean


copy(): Map<K, V>

Defined in: collections/Map.ts:121

Map<K, V>


delete(key): boolean

Defined in: collections/Map.ts:109

K

boolean


each(func): this

Defined in: collections/Map.ts:74

(a) => void

this


entries(): IterableIterator<[K, V]>

Defined in: collections/Map.ts:25

IterableIterator<[K, V]>


filter(pred): Map<K, V>

Defined in: collections/Map.ts:85

(a) => boolean

Map<K, V>


first(): IKeyValuePair<K, V> | null

Defined in: collections/Map.ts:55

IKeyValuePair<K, V> | null


forEach(callbackFunc): void

Defined in: collections/Map.ts:161

(value, key, map) => void

void


get(key): V | null

Defined in: collections/Map.ts:101

K

V | null


getValue(key): V | null

Defined in: collections/Map.ts:105

K

V | null


has(key): boolean

Defined in: collections/Map.ts:93

K

boolean


keys(): IterableIterator<K>

Defined in: collections/Map.ts:149

IterableIterator<K>


map<S>(func): Map<K, S>

Defined in: collections/Map.ts:79

S

(a) => S

Map<K, S>


remove(key): boolean

Defined in: collections/Map.ts:113

K

boolean


set(key, val): this

Defined in: collections/Map.ts:33

K

V

this


toArray(): IKeyValuePair<K, V>[]

Defined in: collections/Map.ts:125

IKeyValuePair<K, V>[]


toKeySet(): Set<K>

Defined in: collections/Map.ts:129

Set<K>


toString(): string

Defined in: collections/Map.ts:29

string


values(): IterableIterator<V>

Defined in: collections/Map.ts:157

IterableIterator<V>