@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.
@@ -30099,6 +30099,10 @@ var GraphPlugin = class {
30099
30099
  { nodes: nodesDataSet, edges: edgesDataSet },
30100
30100
  options
30101
30101
  );
30102
+ this.network.once("afterDrawing", () => {
30103
+ const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
30104
+ container.style.height = isHorizontal ? "80vh" : "50vh";
30105
+ });
30102
30106
  this.networkReady = false;
30103
30107
  this.network.on("stabilizationIterationsDone", () => {
30104
30108
  this.network.setOptions({ physics: { enabled: true } });