@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
|
@@ -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 } });
|