northdata-viz 1.461.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 +1 -1
- package/viz.esm.js +3 -3
- package/viz.esm.js.map +1 -1
- package/viz.min.js +1 -1
- package/viz.min.js.map +1 -1
package/package.json
CHANGED
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();
|
|
@@ -3923,7 +3923,7 @@ function xc(e, t, n) {
|
|
|
3923
3923
|
var Sc = function(e, t) {
|
|
3924
3924
|
let n = e.container;
|
|
3925
3925
|
L(n).selectAll(".shake").style("display", "none");
|
|
3926
|
-
let r = t.size >= 10, i = t.scope, a = L(n).append("svg").attr("data-dense", r).attr("aria-label", t.desc);
|
|
3926
|
+
let r = t.size >= 10, i = t.scope, a = L(n).append("svg").attr("class", t.svgClass).attr("data-dense", r).attr("aria-label", t.desc);
|
|
3927
3927
|
function o() {
|
|
3928
3928
|
let o = n.getBoundingClientRect().width, s = {
|
|
3929
3929
|
left: -o / 6,
|
|
@@ -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,
|