remove

unselects a previously selected shape

boolean remove(string|number id);

Parameters

idstring|numberoptional, the shape id

Returns

booleantrue if the shape 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