documentationfor yFiles for HTML 2.6

IMapper<K,V>

An interface for typed dictionary-like implementations.

Remarks

IMapper<K,V>s are most prominently used when working with supplemental configuration for layout algorithms and custom data in GraphML. IGraph also provides the mapperRegistry to add additional information to a graph.

This is a convertible type that is automatically converted from native JavaScript Map instances in parameter lists, parameter objects or setters.

Related Reading in the Developer's Guide

Using IMapper<K,V> is described in the section Associating Data with Graph Elements.

Related Programming Samples

Drag and Drop
Shows drag and drop of nodes, groups and labels.

Type Parameters

K
The type of element this interface accepts as keys for the mapping.
V
The type of element this interface accepts as values for the mapping.

Type Details

yfiles module
core
yfiles-umd modules
All modules
Legacy UMD name
yfiles.collections.IMapper

See Also

Methods

Static Methods