@dpuse/dpuse-tool-d3-visualiser 1.0.133 → 1.0.134

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/README.md CHANGED
@@ -256,14 +256,14 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
256
256
  |     src → chordDiagram.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 494 B |
257
257
  |     d3-array → src/group.js + 1 more | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 487 B |
258
258
  |     (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 13.5% · 7.6 kB |
259
- | **dist/networkDiagram-DAy9A8N3.js** | 45.0 kB · gzip 13.6 kB · 10.8% of the build |
260
- |     src → networkDiagram.ts | `█████░░░░░░░░░░░░░░░` 26.8% · 12.1 kB |
259
+ | **dist/networkDiagram-BkNEqlLn.js** | 45.0 kB · gzip 13.6 kB · 10.8% of the build |
260
+ |     src → networkDiagram.ts | `█████░░░░░░░░░░░░░░░` 26.9% · 12.1 kB |
261
261
  |     d3-zoom → dist/d3-zoom.mjs | `█████░░░░░░░░░░░░░░░` 23.9% · 10.7 kB |
262
262
  |     d3-force → dist/d3-force.mjs | `███░░░░░░░░░░░░░░░░░` 16.9% · 7.6 kB |
263
263
  |     d3-quadtree → src/add.js + 13 more | `███░░░░░░░░░░░░░░░░░` 13.8% · 6.2 kB |
264
- |     d3-drag → dist/d3-drag.mjs | `██░░░░░░░░░░░░░░░░░░` 9.6% · 4.3 kB |
264
+ |     d3-drag → dist/d3-drag.mjs | `██░░░░░░░░░░░░░░░░░░` 9.5% · 4.3 kB |
265
265
  |     d3-interpolate → src/zoom.js | `░░░░░░░░░░░░░░░░░░░░` 2.2% · 1007 B |
266
- |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 6.9% · 3.1 kB |
266
+ |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 6.8% · 3.1 kB |
267
267
  | **dist/d3-shape-gf8U18pS.js** | 36.9 kB · gzip 7.9 kB · 8.9% of the build |
268
268
  |     d3-shape → dist/d3-shape.mjs | `█████████████████░░░` 86.2% · 31.8 kB |
269
269
  |     d3-path → dist/d3-path.mjs | `██░░░░░░░░░░░░░░░░░░` 8.1% · 3.0 kB |
@@ -300,7 +300,7 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
300
300
  | **dist/treeDiagram-t0oFwi1c.js** | 2.2 kB · gzip 1.0 kB · 0.5% of the build |
301
301
  |     src → treeDiagram.ts | `█████████████████░░░` 87.2% · 1.9 kB |
302
302
  |     (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 12.8% · 290 B |
303
- | **dist/dpuse-tool-d3-visualiser.es.js** | 1.6 kB · gzip 437 B · 0.4% of the build |
303
+ | **dist/dpuse-tool-d3-visualiser.es.js** | 1.6 kB · gzip 438 B · 0.4% of the build |
304
304
  |     src → index.ts | `██████████████████░░` 88.0% · 1.4 kB |
305
305
  |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 12.0% · 194 B |
306
306
  | **dist/palette-D5DTPmuA.js** | 1.2 kB · gzip 567 B · 0.3% of the build |
@@ -32,7 +32,7 @@ var e = class {
32
32
  };
33
33
  }
34
34
  async renderNetworkDiagram(e, t, n, r) {
35
- let { renderNetworkDiagram: i } = await import("./networkDiagram-DAy9A8N3.js"), a = i(e, t, n);
35
+ let { renderNetworkDiagram: i } = await import("./networkDiagram-BkNEqlLn.js"), a = i(e, t, n);
36
36
  return r?.(), {
37
37
  destroy: a.destroy,
38
38
  resize: a.resize,
@@ -1063,7 +1063,7 @@ function _t(e, t, n = {}) {
1063
1063
  }
1064
1064
  l.nodes(g), c.links(_);
1065
1065
  let i = S.data(_, Ct), a = i.exit();
1066
- S = i.enter().append("line").attr("stroke", G.linkStroke).attr("stroke-width", n.linkWidth ?? Ie).merge(i);
1066
+ S = i.enter().append("line").attr("stroke", G.linkStroke).style("stroke", () => n.linkColor ?? null).attr("stroke-width", n.linkWidth ?? Ie).merge(i);
1067
1067
  let u = C.data(g, (e) => e.id), d = u.exit().style("pointer-events", "none"), f = u.enter().append("g").style("cursor", "pointer");
1068
1068
  return f.append("title"), f.append("circle"), f.append("text"), f.on("mouseenter", (e, t) => {
1069
1069
  x = t.id, j();
@@ -27,6 +27,7 @@ export interface NetworkDiagramOptions {
27
27
  iconNodeColor?: string;
28
28
  labelHaloColor?: string;
29
29
  labelPlacementId?: NetworkDiagramLabelPlacementId;
30
+ linkColor?: string;
30
31
  linkDistance?: number;
31
32
  linkWidth?: number;
32
33
  nodeBorderWidth?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-tool-d3-visualiser",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
4
4
  "private": false,
5
5
  "description": "A TypeScript wrapper for D3, TanStack Charts, and Unovis that implements the Data Positioning chart-rendering interface, providing ERD (dagre), Sankey (d3-sankey), chord (Unovis), network (d3-force), tree (d3-hierarchy), and bar chart (TanStack Charts) renderers.",
6
6
  "license": "MIT",