@matdata/yasgui-graph-plugin 1.1.1 → 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 +7 -1
- package/dist/yasgui-graph-plugin.cjs.js.map +2 -2
- package/dist/yasgui-graph-plugin.esm.js +7 -1
- 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
|
@@ -30054,8 +30054,10 @@ var GraphPlugin = class {
|
|
|
30054
30054
|
const themeColors = getThemeNodeColors(this.currentTheme);
|
|
30055
30055
|
const { nodes, edges } = triplesToGraph(triples, prefixMap, themeColors);
|
|
30056
30056
|
const container = document.createElement("div");
|
|
30057
|
+
container.id = "yasgui-graph-plugin-container";
|
|
30057
30058
|
container.style.width = "100%";
|
|
30058
|
-
container.style.
|
|
30059
|
+
container.style.minHeight = "500px";
|
|
30060
|
+
container.style.height = "100%";
|
|
30059
30061
|
container.style.position = "relative";
|
|
30060
30062
|
container.style.overflow = "hidden";
|
|
30061
30063
|
this.yasr.resultsEl.appendChild(container);
|
|
@@ -30072,6 +30074,10 @@ var GraphPlugin = class {
|
|
|
30072
30074
|
{ nodes: nodesDataSet, edges: edgesDataSet },
|
|
30073
30075
|
options
|
|
30074
30076
|
);
|
|
30077
|
+
this.network.once("afterDrawing", () => {
|
|
30078
|
+
const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
|
|
30079
|
+
container.style.height = isHorizontal ? "80vh" : "50vh";
|
|
30080
|
+
});
|
|
30075
30081
|
this.networkReady = false;
|
|
30076
30082
|
this.network.on("stabilizationIterationsDone", () => {
|
|
30077
30083
|
this.network.setOptions({ physics: { enabled: true } });
|