@matdata/yasgui-graph-plugin 1.2.0 → 1.3.0

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.
@@ -30074,6 +30074,10 @@ var GraphPlugin = class {
30074
30074
  { nodes: nodesDataSet, edges: edgesDataSet },
30075
30075
  options
30076
30076
  );
30077
+ this.network.once("afterDrawing", () => {
30078
+ const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
30079
+ container.style.height = isHorizontal ? "80vh" : "50vh";
30080
+ });
30077
30081
  this.networkReady = false;
30078
30082
  this.network.on("stabilizationIterationsDone", () => {
30079
30083
  this.network.setOptions({ physics: { enabled: true } });