@esfaenza/es-diagrams 11.2.8 → 11.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1372,6 +1372,10 @@
1372
1372
  * Evento lanciato alla selezione o deselezione di un nodo, contiene l'oggetto **data** del nodo in questione e informazioni sul suo stato di selezione
1373
1373
  */
1374
1374
  this.onNodeSelection = new i0.EventEmitter();
1375
+ /**
1376
+ * Evento lanciato al termine del Layouting. Se si vuole eseguire codice dopo che il Layout è fatto e completamente graficato, questo è il punto
1377
+ */
1378
+ this.onLayoutDone = new i0.EventEmitter();
1375
1379
  /**
1376
1380
  * Evento lanciato al termine del caricamento del diagramma
1377
1381
  */
@@ -1577,6 +1581,9 @@
1577
1581
  var targetData = event.target.data();
1578
1582
  _this.onNodeSelection.emit({ data: targetData, selected: true });
1579
1583
  });
1584
+ this.cy.bind('layoutstop', function (event) {
1585
+ _this.onLayoutDone.emit();
1586
+ });
1580
1587
  this.cy.bind('unselect', 'node', function (event) {
1581
1588
  var targetData = event.target.data();
1582
1589
  _this.onNodeSelection.emit({ data: targetData, selected: false });
@@ -1795,6 +1802,7 @@
1795
1802
  ExtensionModulesApplyer: [{ type: i0.Input }],
1796
1803
  onNodeClick: [{ type: i0.Output }],
1797
1804
  onNodeSelection: [{ type: i0.Output }],
1805
+ onLayoutDone: [{ type: i0.Output }],
1798
1806
  onLoaded: [{ type: i0.Output }]
1799
1807
  };
1800
1808