getNearId

looks for a nearest shape relative to the specified one

string|number getNearId(string|number id);

Parameters

idstring|numberthe id of a shape

Returns

string|numberthe id of the nearest shape

Example

var nearId = diagram.data.getNearId(id);

Back to top