@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.
- package/bundles/esfaenza-es-diagrams.umd.js +8 -0
- package/bundles/esfaenza-es-diagrams.umd.js.map +1 -1
- package/esfaenza-es-diagrams.metadata.json +1 -1
- package/esm2015/lib/components/es-diagram.component.js +9 -1
- package/fesm2015/esfaenza-es-diagrams.js +8 -0
- package/fesm2015/esfaenza-es-diagrams.js.map +1 -1
- package/lib/components/es-diagram.component.d.ts +4 -0
- package/package.json +7 -7
|
@@ -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
|
|