@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.
@@ -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(this.ContextMenuOptions);
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 = true;
1609
- opts.boxSelectionEnabled = false;
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 () {