remove

unselects a previously selected item

boolean remove(string|number id);

Parameters

idstring|numberoptional, the item id

Returns

booleantrue if the item is unselected, otherwise false

Example

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

Related samples

Details

Please note that you need to call the paint() method to repaint the diagram after removing selection.

See also
Back to top