@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.
- package/dist/yasgui-graph-plugin.cjs.js +4 -0
- package/dist/yasgui-graph-plugin.cjs.js.map +2 -2
- package/dist/yasgui-graph-plugin.esm.js +4 -0
- package/dist/yasgui-graph-plugin.esm.js.map +2 -2
- package/dist/yasgui-graph-plugin.min.js +1 -1
- package/dist/yasgui-graph-plugin.min.js.map +3 -3
- package/package.json +1 -1
|
@@ -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 } });
|