northdata-viz 1.462.11 → 1.463.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northdata-viz",
3
- "version": "1.462.11",
3
+ "version": "1.463.11",
4
4
  "description": "North Data Widget API",
5
5
  "main": "viz.min.js",
6
6
  "module": "viz.esm.js",
package/viz.esm.js CHANGED
@@ -3847,7 +3847,7 @@ function bc(e, t, n, r, i = {}) {
3847
3847
  }
3848
3848
  let f = t.select("g.nodes");
3849
3849
  f.empty() && (f = t.append("g").attr("class", "nodes")), f.style("pointer-events", "all");
3850
- let p = f.selectAll(".node").data(n), m = (e) => e.clickable || !e.root, h = p.enter().append("svg:a").attr("class", "node").attr("data-leaf", (e) => !e.children || e.children.length == 0).attr("data-id", (e) => e.id).attr("data-root", (e) => e.root).attr("data-old", (e) => e.old ?? null).attr("data-warning", (e) => e.warning ?? null).attr("data-d", (e) => e.distance ?? null).attr("xlink:href", function(e) {
3850
+ let p = f.selectAll(".node").data(n), m = (e) => e.clickable || !e.root, h = p.enter().append("svg:a").attr("class", "node").attr("data-leaf", (e) => !e.children || e.children.length == 0).attr("data-id", (e) => e.id).attr("data-root", (e) => e.root).attr("data-old", (e) => e.old ?? null).attr("data-warning", (e) => e.warning ?? null).attr("data-color", (e) => e.color ?? null).attr("data-d", (e) => e.distance ?? null).attr("xlink:href", function(e) {
3851
3851
  return e.url || "";
3852
3852
  }).attr("data-clickable", (t) => m(t) && e.getClickHandler(t.type) ? !0 : null).on("click", function(t, n) {
3853
3853
  m(n) && e.invokeClickHandler(n.query, n.type) && t.preventDefault();
@@ -3955,7 +3955,7 @@ var Sc = function(e, t) {
3955
3955
  })), b, x = 0;
3956
3956
  for (let e of v) e.root && (b = e, i === "publication" && (e.clickable = !0)), x = Math.max(x, e.depth);
3957
3957
  a.select("g").remove();
3958
- let S = a.append("g"), C = S.append("g").selectAll(".link").data(y), w = (e) => e.target.edge, T = C.enter().append("g").attr("class", "link").attr("data-source-id", (e) => e.source.id).attr("data-target-id", (e) => e.target.id).attr("data-old", (e) => w(e)?.old ?? null).attr("data-warn", (e) => w(e)?.warn ?? null).attr("data-head", (e) => w(e)?.head ?? null).attr("data-tail", (e) => w(e)?.tail ?? null);
3958
+ let S = a.append("g"), C = S.append("g").selectAll(".link").data(y), w = (e) => e.target.edge, T = C.enter().append("g").attr("class", "link").attr("data-source-id", (e) => e.source.id).attr("data-target-id", (e) => e.target.id).attr("data-old", (e) => w(e)?.old ?? null).attr("data-warn", (e) => w(e)?.warn ?? null).attr("data-color", (e) => w(e)?.color ?? null).attr("data-head", (e) => w(e)?.head ?? null).attr("data-tail", (e) => w(e)?.tail ?? null);
3959
3959
  T.append("path").attr("class", "line"), T.append("path").attr("class", "head").attr("d", gc(m)), T.append("path").attr("class", "tail").attr("d", gc(m));
3960
3960
  let E = bc(e, S, v, b ? b.id : void 0, {
3961
3961
  denseLeaves: r,