()
| 361 | } |
| 362 | |
| 363 | deleteNode(){ |
| 364 | //Called by context menu |
| 365 | if (this.activeNode){ |
| 366 | const index = this.nodes.indexOf( this.activeNode ); |
| 367 | if (index!=-1){ |
| 368 | this.nodes.splice( index, 1 ); |
| 369 | this.activeNode = null; |
| 370 | } |
| 371 | this.render(true); |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | insertNode( ){ |
| 376 | //Called by context menu |