geonodes-web-render 0.3.26 → 0.3.27

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.
Files changed (2) hide show
  1. package/dist/embed.js +22 -3
  2. package/package.json +1 -1
package/dist/embed.js CHANGED
@@ -8110,7 +8110,26 @@ function wf(e) {
8110
8110
  parentFrameId: e.parentFrameId
8111
8111
  })), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
8112
8112
  for (let e of t) for (let t of [...e.inputs, ...e.outputs]) n.set(t.id, e.id), r.set(t.id, t);
8113
- let i = e.links.map((e) => ({
8113
+ let i = /* @__PURE__ */ new Map();
8114
+ for (let t of e.links) i.set(t.toSocketId, t.fromSocketId);
8115
+ let a = /* @__PURE__ */ new Map();
8116
+ for (let e of t) e.type === "NodeReroute" && e.outputs[0] && a.set(e.outputs[0].id, e);
8117
+ function o(e, t) {
8118
+ if (t.has(e.id)) return;
8119
+ t.add(e.id);
8120
+ let n = e.inputs[0]?.id;
8121
+ if (n == null) return;
8122
+ let s = i.get(n);
8123
+ if (s == null) return;
8124
+ let c = a.get(s);
8125
+ return c ? o(c, t) : r.get(s);
8126
+ }
8127
+ for (let e of t) {
8128
+ if (e.type !== "NodeReroute") continue;
8129
+ let t = o(e, /* @__PURE__ */ new Set());
8130
+ if (t) for (let n of [...e.inputs, ...e.outputs]) n.color = t.color, n.dataType = t.dataType;
8131
+ }
8132
+ let s = e.links.map((e) => ({
8114
8133
  id: e.id,
8115
8134
  sourceNodeId: n.get(e.fromSocketId) ?? "",
8116
8135
  sourceSocketId: e.fromSocketId,
@@ -8122,7 +8141,7 @@ function wf(e) {
8122
8141
  id: e.id,
8123
8142
  label: e.label,
8124
8143
  nodes: t,
8125
- edges: i
8144
+ edges: s
8126
8145
  };
8127
8146
  }
8128
8147
  //#endregion
@@ -9045,7 +9064,7 @@ function vp(e) {
9045
9064
  className: "gn-top-left",
9046
9065
  children: [/* @__PURE__ */ _("span", {
9047
9066
  className: "gn-version-badge",
9048
- children: ["node-web-render v", "0.3.26"]
9067
+ children: ["node-web-render v", "0.3.27"]
9049
9068
  }), i.length > 1 ? /* @__PURE__ */ g("nav", {
9050
9069
  className: "gn-breadcrumbs",
9051
9070
  "aria-label": "Node group path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonodes-web-render",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "description": "Browser-based viewer for Blender Geometry Nodes exported via Tree Clipper. Renders node trees as a read-only, Blender-styled graph.",
5
5
  "type": "module",
6
6
  "exports": {