remove

unselects a previously selected item

boolean remove(string|number id);

Parameters

idstring|numberoptional, the id of an item

Returns

booleantrue if an item is unselected, otherwise false

Example

diagram.selection.remove("1"); // -> true
diagram.paint();

Back to top