Skip to content

NgDiagramNodeTemplateMap

Map that associates node type names with their corresponding Angular component classes. Used by ng-diagram to determine which custom node component to render based on node type.

readonly size: number

the number of elements in the Map.

Map.size

[iterator](): MapIterator<[string, Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>]>

Returns an iterable of entries in the map.

MapIterator<[string, Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>]>

Map.[iterator]


delete(key): boolean

string

boolean

true if an element in the Map existed and has been removed, or false if the element does not exist.

Map.delete


entries(): MapIterator<[string, Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>]>

Returns an iterable of key, value pairs for every entry in the map.

MapIterator<[string, Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>]>

Map.entries


forEach(callbackfn, thisArg?): void

Executes a provided function once per each key/value pair in the Map, in insertion order.

(value, key, map) => void

any

void

Map.forEach


get(key): undefined | Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>

Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

string

undefined | Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>

Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

Map.get


has(key): boolean

string

boolean

boolean indicating whether an element with the specified key exists or not.

Map.has


keys(): MapIterator<string>

Returns an iterable of keys in the map

MapIterator<string>

Map.keys


set(key, value): this

Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

string

Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>

this

Map.set


values(): MapIterator<Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>>

Returns an iterable of values in the map

MapIterator<Type$1<NgDiagramNodeTemplate<any, SimpleNode<any>>> | Type$1<NgDiagramGroupNodeTemplate<any>>>

Map.values