getRoots()
Description
Returns an array with ids of all root items of the diagram
Usage
getRoots(): array
Returns
The method returns an array with the ids of the root items
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
diagram.data.getRoots();
Change log: Added in v4.0