@esfaenza/es-diagrams 12.2.9 → 12.2.13

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.
@@ -1368,6 +1368,10 @@
1368
1368
  * Evento lanciato alla selezione o deselezione di un nodo, contiene l'oggetto **data** del nodo in questione e informazioni sul suo stato di selezione
1369
1369
  */
1370
1370
  this.onNodeSelection = new i0.EventEmitter();
1371
+ /**
1372
+ * Evento lanciato al termine del Layouting. Se si vuole eseguire codice dopo che il Layout è fatto e completamente graficato, questo è il punto
1373
+ */
1374
+ this.onLayoutDone = new i0.EventEmitter();
1371
1375
  /**
1372
1376
  * Evento lanciato al termine del caricamento del diagramma
1373
1377
  */
@@ -1563,6 +1567,9 @@
1563
1567
  var targetData = event.target.data();
1564
1568
  _this.onNodeSelection.emit({ data: targetData, selected: true });
1565
1569
  });
1570
+ this.cy.bind('layoutstop', function (event) {
1571
+ _this.onLayoutDone.emit();
1572
+ });
1566
1573
  this.cy.bind('unselect', 'node', function (event) {
1567
1574
  var targetData = event.target.data();
1568
1575
  _this.onNodeSelection.emit({ data: targetData, selected: false });
@@ -1780,6 +1787,7 @@
1780
1787
  ExtensionModulesApplyer: [{ type: i0.Input }],
1781
1788
  onNodeClick: [{ type: i0.Output }],
1782
1789
  onNodeSelection: [{ type: i0.Output }],
1790
+ onLayoutDone: [{ type: i0.Output }],
1783
1791
  onLoaded: [{ type: i0.Output }]
1784
1792
  };
1785
1793