getNearId

looks for a nearest item relative to the specified one

string|number getNearId(string|number id);

Parameters

idstring|numberthe id of an item

Returns

string|numberthe id of the nearest item

Example

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

Back to top