exists()
Description
Checks whether the specified item exists in the diagram
Usage
exists(id: string | number): boolean;
Parameters
id
- (required) the id of the item in question
Returns
The method returns true
if the item exists, otherwise false
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
const shape = diagram.data.exists("1");