geonodes-web-render 0.3.0 → 0.3.1
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/embed.js +91 -72
- package/package.json +1 -1
package/dist/embed.js
CHANGED
|
@@ -8495,85 +8495,104 @@ var Kf = {
|
|
|
8495
8495
|
simulationZone: Gf
|
|
8496
8496
|
}, qf = { padding: .08 };
|
|
8497
8497
|
function Jf(e) {
|
|
8498
|
-
let { nodes: t, edges: n, breadcrumbs: r, onNavigate: i, onSelectionIds: o } = e, { fitView: s } = ll(),
|
|
8499
|
-
|
|
8500
|
-
|
|
8498
|
+
let { nodes: t, edges: n, breadcrumbs: r, onNavigate: i, onSelectionIds: o } = e, { fitView: s } = ll(), l = d(null), u = d(!1), [f, p, m] = fd(t), [h, v, y] = pd(n);
|
|
8499
|
+
c(() => {
|
|
8500
|
+
p(t), o?.([]), u.current = !1, s(qf);
|
|
8501
8501
|
}, [
|
|
8502
8502
|
t,
|
|
8503
|
-
|
|
8503
|
+
p,
|
|
8504
8504
|
o,
|
|
8505
8505
|
s
|
|
8506
8506
|
]), c(() => {
|
|
8507
|
-
|
|
8508
|
-
}, [n,
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8507
|
+
v(n);
|
|
8508
|
+
}, [n, v]), c(() => {
|
|
8509
|
+
let e = l.current;
|
|
8510
|
+
if (!e) return;
|
|
8511
|
+
let t = new ResizeObserver(() => {
|
|
8512
|
+
u.current || s(qf);
|
|
8513
|
+
});
|
|
8514
|
+
return t.observe(e), () => t.disconnect();
|
|
8515
|
+
}, [s]);
|
|
8516
|
+
let b = a((e) => {
|
|
8517
|
+
e && (u.current = !0);
|
|
8518
|
+
}, []);
|
|
8519
|
+
return /* @__PURE__ */ g("div", {
|
|
8520
|
+
ref: l,
|
|
8521
|
+
style: {
|
|
8522
|
+
width: "100%",
|
|
8523
|
+
height: "100%"
|
|
8524
|
+
},
|
|
8525
|
+
children: /* @__PURE__ */ _(dd, {
|
|
8526
|
+
nodes: f,
|
|
8527
|
+
edges: h,
|
|
8528
|
+
onNodesChange: m,
|
|
8529
|
+
onEdgesChange: y,
|
|
8530
|
+
onSelectionChange: a(({ nodes: e }) => {
|
|
8531
|
+
o?.(e.map((e) => e.id));
|
|
8532
|
+
}, [o]),
|
|
8533
|
+
onMoveStart: b,
|
|
8534
|
+
nodeTypes: Kf,
|
|
8535
|
+
fitView: !0,
|
|
8536
|
+
fitViewOptions: qf,
|
|
8537
|
+
minZoom: .2,
|
|
8538
|
+
nodesDraggable: !1,
|
|
8539
|
+
nodesConnectable: !1,
|
|
8540
|
+
elementsSelectable: !0,
|
|
8541
|
+
nodesFocusable: !1,
|
|
8542
|
+
edgesFocusable: !1,
|
|
8543
|
+
selectNodesOnDrag: !1,
|
|
8544
|
+
selectionOnDrag: !0,
|
|
8545
|
+
selectionMode: va.Partial,
|
|
8546
|
+
connectOnClick: !1,
|
|
8547
|
+
panOnDrag: [1, 2],
|
|
8548
|
+
panOnScroll: !1,
|
|
8549
|
+
zoomOnScroll: !0,
|
|
8550
|
+
zoomOnDoubleClick: !1,
|
|
8551
|
+
children: [
|
|
8552
|
+
/* @__PURE__ */ g(bd, {
|
|
8553
|
+
gap: 20,
|
|
8554
|
+
size: 1
|
|
8555
|
+
}),
|
|
8556
|
+
/* @__PURE__ */ g(kd, { showInteractive: !1 }),
|
|
8557
|
+
r.length > 1 ? /* @__PURE__ */ g(Sc, {
|
|
8558
|
+
position: "top-left",
|
|
8559
|
+
children: /* @__PURE__ */ g("nav", {
|
|
8560
|
+
className: "gn-breadcrumbs",
|
|
8561
|
+
"aria-label": "Node group path",
|
|
8562
|
+
children: r.map((e, t) => {
|
|
8563
|
+
let n = t === r.length - 1;
|
|
8564
|
+
return /* @__PURE__ */ _("span", {
|
|
8565
|
+
className: "gn-breadcrumbs__item",
|
|
8566
|
+
children: [t > 0 ? /* @__PURE__ */ g("span", {
|
|
8567
|
+
className: "gn-breadcrumbs__sep",
|
|
8568
|
+
"aria-hidden": "true",
|
|
8569
|
+
children: "›"
|
|
8570
|
+
}) : null, n ? /* @__PURE__ */ g("span", {
|
|
8571
|
+
className: "gn-breadcrumbs__current",
|
|
8572
|
+
"aria-current": "page",
|
|
8573
|
+
children: e.label
|
|
8574
|
+
}) : /* @__PURE__ */ g("button", {
|
|
8575
|
+
type: "button",
|
|
8576
|
+
className: "gn-breadcrumbs__link",
|
|
8577
|
+
onClick: () => i(t),
|
|
8578
|
+
children: e.label
|
|
8579
|
+
})]
|
|
8580
|
+
}, `${e.id}-${t}`);
|
|
8581
|
+
})
|
|
8582
|
+
})
|
|
8583
|
+
}) : null,
|
|
8584
|
+
/* @__PURE__ */ g(Sc, {
|
|
8585
|
+
position: "bottom-right",
|
|
8586
|
+
children: /* @__PURE__ */ g("a", {
|
|
8587
|
+
href: "https://extensions.blender.org/add-ons/tree-clipper/",
|
|
8588
|
+
target: "_blank",
|
|
8589
|
+
rel: "noopener noreferrer",
|
|
8590
|
+
className: "tree-clipper-badge",
|
|
8591
|
+
children: "Exported from Blender using Tree Clipper ↗"
|
|
8563
8592
|
})
|
|
8564
8593
|
})
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
position: "bottom-right",
|
|
8568
|
-
children: /* @__PURE__ */ g("a", {
|
|
8569
|
-
href: "https://extensions.blender.org/add-ons/tree-clipper/",
|
|
8570
|
-
target: "_blank",
|
|
8571
|
-
rel: "noopener noreferrer",
|
|
8572
|
-
className: "tree-clipper-badge",
|
|
8573
|
-
children: "Exported from Blender using Tree Clipper ↗"
|
|
8574
|
-
})
|
|
8575
|
-
})
|
|
8576
|
-
]
|
|
8594
|
+
]
|
|
8595
|
+
})
|
|
8577
8596
|
});
|
|
8578
8597
|
}
|
|
8579
8598
|
function Yf(e) {
|
package/package.json
CHANGED