@esfaenza/es-diagrams 12.2.7 → 12.2.8
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 +10 -4
- 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 +11 -5
- package/esm2015/lib/models/component/contextmenu/ContextMenuOptions.js +1 -1
- package/fesm2015/esfaenza-es-diagrams.js +10 -4
- package/fesm2015/esfaenza-es-diagrams.js.map +1 -1
- package/lib/components/es-diagram.component.d.ts +8 -2
- package/lib/models/component/contextmenu/ContextMenuOptions.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1342,6 +1342,10 @@
|
|
|
1342
1342
|
* Evento lanciato al click di un nodo, contiene l'oggetto **data** del nodo in questione
|
|
1343
1343
|
*/
|
|
1344
1344
|
this.onNodeClick = new i0.EventEmitter();
|
|
1345
|
+
/**
|
|
1346
|
+
* Evento lanciato al termine del caricamento del diagramma
|
|
1347
|
+
*/
|
|
1348
|
+
this.onLoaded = new i0.EventEmitter();
|
|
1345
1349
|
/**
|
|
1346
1350
|
* Indica se il rendering del diagramma è terminato
|
|
1347
1351
|
*/
|
|
@@ -1448,6 +1452,7 @@
|
|
|
1448
1452
|
// Se devo aggiornare in automatico in base alla dimensione del contenitore collego il ResizeObserver
|
|
1449
1453
|
if (this.AutoupdateSize)
|
|
1450
1454
|
this.listenOnChanges();
|
|
1455
|
+
this.onLoaded.emit();
|
|
1451
1456
|
return [2 /*return*/];
|
|
1452
1457
|
}
|
|
1453
1458
|
});
|
|
@@ -1551,7 +1556,7 @@
|
|
|
1551
1556
|
}
|
|
1552
1557
|
// Utilizzo del Context Menu
|
|
1553
1558
|
if (this.UseContextMenu)
|
|
1554
|
-
anyCy.cxtmenu(
|
|
1559
|
+
this.ContextMenuOptions.forEach(function (o) { anyCy.cxtmenu(o); });
|
|
1555
1560
|
// Utilizzo dell'expand collapse solo quando c'è una gerarchia di nodi
|
|
1556
1561
|
if (this.NodesHierarchy && this.UseExpandCollapse)
|
|
1557
1562
|
this.ExpandCollapseApi = anyCy.expandCollapse(this.ExpandCollapseOptions);
|
|
@@ -1605,8 +1610,8 @@
|
|
|
1605
1610
|
// Questo coso fa effetti strani....
|
|
1606
1611
|
//opts.autolock = true;
|
|
1607
1612
|
opts.autoungrabify = true;
|
|
1608
|
-
opts.autounselectify =
|
|
1609
|
-
opts.boxSelectionEnabled =
|
|
1613
|
+
opts.autounselectify = false;
|
|
1614
|
+
opts.boxSelectionEnabled = true;
|
|
1610
1615
|
opts.userZoomingEnabled = false;
|
|
1611
1616
|
opts.userPanningEnabled = false;
|
|
1612
1617
|
}
|
|
@@ -1680,7 +1685,8 @@
|
|
|
1680
1685
|
NodeHTMLTemplates: [{ type: i0.Input }],
|
|
1681
1686
|
ExtensionModulesImporter: [{ type: i0.Input }],
|
|
1682
1687
|
ExtensionModulesApplyer: [{ type: i0.Input }],
|
|
1683
|
-
onNodeClick: [{ type: i0.Output }]
|
|
1688
|
+
onNodeClick: [{ type: i0.Output }],
|
|
1689
|
+
onLoaded: [{ type: i0.Output }]
|
|
1684
1690
|
};
|
|
1685
1691
|
|
|
1686
1692
|
var EsDiagramModule = /** @class */ (function () {
|