exists

checks whether the specified item exists in the diagram

boolean exists(string|number id);

Parameters

idstring|numberthe id of the item in question

Returns

booleantrue if the item exists, otherwise false

Example

var shape = diagram.data.exists("1");

See also
Back to top