|
public layout = {
type: "HierarchicalTree",
verticalSpacing: 30,
orientation: "LeftToRight",
horizontalSpacing: 40,
enableAnimation: true
}; |
|
public getCustomTool: Function = this.getTool.bind(this);
//Tool for Userhandles.
public getTool(action: string): void {
if (action === "rightHandle") {
//Open context Menu
} else if (action === "delete") {
this.diagram.remove(this.diagram.selectedItems.nodes[0]);
this.diagram.doLayout();
}
} |