getNearId()
Description
Looks for a nearest item relative to the specified one
Usage
getNearId(id: string | number): string | number;
Parameters
id
- (required) the id of an item
Returns
The method returns the id of the nearest item
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
const nearId = diagram.data.getNearId(id);