@dpuse/dpuse-tool-highcharts-visualiser 0.0.76

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 (32) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +329 -0
  3. package/dist/AnimationUtilities-Bby2idBR.js +1176 -0
  4. package/dist/AnimationUtilities-Bby2idBR.js.map +1 -0
  5. package/dist/BorderRadius-2zMZW_aK.js +1445 -0
  6. package/dist/BorderRadius-2zMZW_aK.js.map +1 -0
  7. package/dist/SVGElement-BmvC_qu3.js +394 -0
  8. package/dist/SVGElement-BmvC_qu3.js.map +1 -0
  9. package/dist/SeriesRegistry-0cj0ZJqn.js +374 -0
  10. package/dist/SeriesRegistry-0cj0ZJqn.js.map +1 -0
  11. package/dist/TextPath-DK4Jkzd7.js +133 -0
  12. package/dist/TextPath-DK4Jkzd7.js.map +1 -0
  13. package/dist/dependency-wheel.src-BHmwx9rW.js +194 -0
  14. package/dist/dependency-wheel.src-BHmwx9rW.js.map +1 -0
  15. package/dist/dpuse-tool-highcharts-visualiser.es.js +10154 -0
  16. package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -0
  17. package/dist/highchartsMoreCustom-CcpfmVny.js +1110 -0
  18. package/dist/highchartsMoreCustom-CcpfmVny.js.map +1 -0
  19. package/dist/pattern-fill.src-BPmr3DQg.js +169 -0
  20. package/dist/pattern-fill.src-BPmr3DQg.js.map +1 -0
  21. package/dist/sankey.src-DocCurOx.js +524 -0
  22. package/dist/sankey.src-DocCurOx.js.map +1 -0
  23. package/dist/streamgraph.src-Bn6PY8Fd.js +19 -0
  24. package/dist/streamgraph.src-Bn6PY8Fd.js.map +1 -0
  25. package/dist/types/eslint.config.d.ts +3 -0
  26. package/dist/types/src/highchartsMoreCustom.d.ts +2 -0
  27. package/dist/types/src/index.d.ts +18 -0
  28. package/dist/types/tests/highchartsMoreCustom.test.d.ts +1 -0
  29. package/dist/types/tests/importIndex.test.d.ts +1 -0
  30. package/dist/types/vite.config.d.ts +2 -0
  31. package/dist/types/vitest.config.d.ts +2 -0
  32. package/package.json +75 -0
@@ -0,0 +1,524 @@
1
+ import { B as e, E as t, I as n, O as r, U as i, V as a, Y as o, Z as s, f as c, g as l, i as u, ot as d, tt as f, x as p, y as m } from "./AnimationUtilities-Bby2idBR.js";
2
+ import { n as h, t as g } from "./SeriesRegistry-0cj0ZJqn.js";
3
+ import { t as _ } from "./SVGElement-BmvC_qu3.js";
4
+ import { n as v, t as y } from "./TextPath-DK4Jkzd7.js";
5
+ //#region node_modules/highcharts/es-modules/Series/NodesComposition.js
6
+ var { series: { prototype: b, prototype: { pointClass: { prototype: x } } } } = g, S;
7
+ (function(e) {
8
+ function n(e, t) {
9
+ let n = e.prototype, r = t.prototype;
10
+ return n.setNodeState = f, n.setState = f, n.update = m, r.destroy = l, r.setData = d, c(t, "afterUpdate", a), t;
11
+ }
12
+ e.compose = n;
13
+ function a() {
14
+ if (!this.hasDataLabels?.() && this.nodes) for (let e of this.nodes) e.destroyElements({ dataLabel: 1 });
15
+ }
16
+ function s(e) {
17
+ let n = this.pointClass, i = (e, t) => r(e, (e) => e.id === t), a = i(this.nodes, e), s;
18
+ if (!a) {
19
+ s = this.options.nodes && i(this.options.nodes, e);
20
+ let r = new n(this, t({
21
+ className: "highcharts-node",
22
+ isNode: !0,
23
+ id: e,
24
+ y: 1
25
+ }, s));
26
+ r.linksTo = [], r.linksFrom = [], r.getSum = function() {
27
+ let e = 0, t = 0;
28
+ return r.linksTo.forEach((t) => {
29
+ e += t.weight || 0;
30
+ }), r.linksFrom.forEach((e) => {
31
+ t += e.weight || 0;
32
+ }), Math.max(e, t);
33
+ }, r.offset = function(e, t) {
34
+ let n = 0;
35
+ for (let i = 0; i < r[t].length; i++) {
36
+ if (r[t][i] === e) return n;
37
+ n += r[t][i].weight;
38
+ }
39
+ }, r.hasShape = function() {
40
+ let e = 0;
41
+ return r.linksTo.forEach((t) => {
42
+ t.outgoing && e++;
43
+ }), !r.linksTo.length || e !== r.linksTo.length;
44
+ }, r.index = this.nodes.push(r) - 1, a = r;
45
+ }
46
+ return a.formatPrefix = "node", a.name = a.name || a.options.id || "", a.mass = o(a.options.mass, a.options.marker && a.options.marker.radius, this.options.marker && this.options.marker.radius, 4), a;
47
+ }
48
+ e.createNode = s;
49
+ function l() {
50
+ return this.data = [].concat(this.points || [], this.nodes), b.destroy.apply(this, arguments);
51
+ }
52
+ e.destroy = l;
53
+ function u() {
54
+ let e = this.chart, t = {};
55
+ b.generatePoints.call(this), this.nodes ||= [], this.colorCounter = 0, this.nodes.forEach((e) => {
56
+ e.linksFrom.length = 0, e.linksTo.length = 0, e.level = e.options.level;
57
+ }), this.points.forEach((n) => {
58
+ p(n.from) && (t[n.from] || (t[n.from] = this.createNode(n.from)), t[n.from].linksFrom.push(n), n.fromNode = t[n.from], e.styledMode ? n.colorIndex = o(n.options.colorIndex, t[n.from].colorIndex) : n.color = n.options.color || t[n.from].color), p(n.to) && (t[n.to] || (t[n.to] = this.createNode(n.to)), t[n.to].linksTo.push(n), n.toNode = t[n.to]), n.name = n.name || n.id;
59
+ }, this), this.nodeLookup = t;
60
+ }
61
+ e.generatePoints = u;
62
+ function d() {
63
+ this.nodes && (this.nodes.forEach((e) => {
64
+ e.destroy();
65
+ }), this.nodes.length = 0), b.setData.apply(this, arguments);
66
+ }
67
+ function f(e) {
68
+ let t = arguments, n = this.isNode ? this.linksTo.concat(this.linksFrom) : [this.fromNode, this.toNode];
69
+ e !== "select" && n.forEach((e) => {
70
+ e && e.series && (x.setState.apply(e, t), e.isNode || (e.fromNode.graphic && x.setState.apply(e.fromNode, t), e.toNode && e.toNode.graphic && x.setState.apply(e.toNode, t)));
71
+ }), x.setState.apply(this, t);
72
+ }
73
+ e.setNodeState = f;
74
+ function m(e, t, n, r) {
75
+ let a = this.series.options.nodes, s = this.series.options.data, c = s?.length || 0, l = s?.[this.index];
76
+ if (x.update.call(this, e, !this.isNode && t, n, r), this.isNode) {
77
+ let e = (a || []).reduce((e, t, n) => this.id === t.id ? n : e, -1), r = i(a && a[e] || {}, s?.[this.index] || {});
78
+ s && (l ? s[this.index] = l : s.length = c), a ? e >= 0 ? a[e] = r : a.push(r) : this.series.options.nodes = [r], o(t, !0) && this.series.chart.redraw(n);
79
+ }
80
+ }
81
+ e.updateNode = m;
82
+ })(S ||= {});
83
+ var C = S, { column: w } = g.seriesTypes, T = class extends w.prototype.pointClass {
84
+ applyOptions(e, t) {
85
+ return h.prototype.applyOptions.call(this, e, t), p(this.options.level) && (this.options.column = this.column = this.options.level), this;
86
+ }
87
+ getClassName() {
88
+ return (this.isNode ? "highcharts-node " : "highcharts-link ") + h.prototype.getClassName.call(this);
89
+ }
90
+ getFromNode() {
91
+ let e = this, t = -1, n;
92
+ for (let r = 0; r < e.linksTo.length; r++) {
93
+ let i = e.linksTo[r];
94
+ i.fromNode.column > t && i.fromNode !== e && (n = i.fromNode, t = n.column);
95
+ }
96
+ return {
97
+ fromNode: n,
98
+ fromColumn: t
99
+ };
100
+ }
101
+ setNodeColumn() {
102
+ let e = this;
103
+ p(e.options.column) || (e.column = e.linksTo.length === 0 ? 0 : e.getFromNode().fromColumn + 1);
104
+ }
105
+ isValid() {
106
+ return this.isNode || typeof this.weight == "number";
107
+ }
108
+ }, E = {
109
+ borderWidth: 0,
110
+ colorByPoint: !0,
111
+ curveFactor: .33,
112
+ dataLabels: {
113
+ enabled: !0,
114
+ backgroundColor: "none",
115
+ crop: !1,
116
+ nodeFormat: void 0,
117
+ nodeFormatter: function() {
118
+ return this.point.name;
119
+ },
120
+ format: void 0,
121
+ formatter: function() {},
122
+ inside: !0
123
+ },
124
+ inactiveOtherPoints: !0,
125
+ linkColorMode: "from",
126
+ linkOpacity: .5,
127
+ opacity: 1,
128
+ minLinkWidth: 0,
129
+ nodeAlignment: "center",
130
+ nodeWidth: 20,
131
+ nodePadding: 10,
132
+ nodeDistance: 30,
133
+ showInLegend: !1,
134
+ states: {
135
+ hover: {
136
+ linkOpacity: 1,
137
+ opacity: 1
138
+ },
139
+ inactive: {
140
+ linkOpacity: .1,
141
+ opacity: .1,
142
+ animation: { duration: 50 }
143
+ }
144
+ },
145
+ tooltip: {
146
+ followPointer: !0,
147
+ headerFormat: "<span style=\"font-size: 0.8em\">{series.name}</span><br/>",
148
+ pointFormat: "{point.fromNode.name} → {point.toNode.name}: <b>{point.weight}</b><br/>",
149
+ nodeFormat: "{point.name}: <b>{point.sum}</b><br/>"
150
+ }
151
+ };
152
+ //#endregion
153
+ //#region node_modules/highcharts/es-modules/Series/TreeUtilities.js
154
+ function D(e, t) {
155
+ let n = t.index, r = t.mapOptionsToLevel, i = t.parentColor, a = t.parentColorIndex, s = t.series, c = t.colors, l = t.siblings, d = s.points, f = s.chart.options.chart, p, m, h, g, _, v, y;
156
+ return e && (m = d[e.i], h = r[e.level] || {}, p = m && h.colorByPoint, p && (_ = m.index % (c ? c.length : f.colorCount), g = c && c[_]), s.chart.styledMode || (v = o(m && m.options.color, h && h.color, g, i && ((e) => {
157
+ let t = h && h.colorVariation;
158
+ return t && t.key === "brightness" && n && l ? u.parse(e).brighten(t.to * (n / l)).get() : e;
159
+ })(i), s.color)), y = o(m && m.options.colorIndex, h && h.colorIndex, _, a, t.colorIndex)), {
160
+ color: v,
161
+ colorIndex: y
162
+ };
163
+ }
164
+ function O(t) {
165
+ let r = {}, s, c, l, u, d, f;
166
+ if (a(t)) for (u = e(t.from) ? t.from : 1, f = t.levels, c = {}, s = a(t.defaults) ? t.defaults : {}, n(f) && (c = f.reduce((t, n) => {
167
+ let r, c, l;
168
+ return a(n) && e(n.level) && (l = i({}, n), c = o(l.levelIsConstant, s.levelIsConstant), delete l.levelIsConstant, delete l.level, r = n.level + (c ? 0 : u - 1), a(t[r]) ? i(!0, t[r], l) : t[r] = l), t;
169
+ }, {})), d = e(t.to) ? t.to : 1, l = 0; l <= d; l++) r[l] = i({}, s, a(c[l]) ? c[l] : {});
170
+ return r;
171
+ }
172
+ function k(e, n) {
173
+ let r = n.before, i = n.idRoot, a = n.mapIdToNode[i], s = n.levelIsConstant !== !1, c = n.points[e.i], l = c && c.options || {}, u = [], d = 0;
174
+ e.levelDynamic = e.level - (s ? 0 : a.level), e.name = o(c && c.name, ""), e.visible = i === e.id || n.visible === !0, typeof r == "function" && (e = r(e, n)), e.children.forEach((r, i) => {
175
+ let a = t({}, n);
176
+ t(a, {
177
+ index: i,
178
+ siblings: e.children.length,
179
+ visible: e.visible
180
+ }), r = k(r, a), u.push(r), r.visible && (d += r.val);
181
+ });
182
+ let f = o(l.value, d);
183
+ return e.visible = f >= 0 && (d > 0 || e.visible), e.children = u, e.childrenTotal = d, e.isLeaf = e.visible && !d, e.val = f, e;
184
+ }
185
+ function A(e) {
186
+ let t, n;
187
+ return a(e) && (n = a(e.options) ? e.options : {}, t = o(e.rootNode, n.rootId, ""), a(e.userOptions) && (e.userOptions.rootId = t), e.rootNode = t), t;
188
+ }
189
+ function j(e, t) {
190
+ let { chart: n, options: r } = e, { nodeDistance: i = 0, nodeWidth: a = 0 } = r, { plotSizeX: o = 1 } = n;
191
+ if (a === "auto") {
192
+ if (typeof i == "string" && /%$/.test(i)) return o / (t + parseFloat(i) / 100 * (t - 1));
193
+ let e = Number(i);
194
+ return (o + e) / (t || 1) - e;
195
+ }
196
+ return s(a, o);
197
+ }
198
+ var M = {
199
+ getColor: D,
200
+ getLevelOptions: O,
201
+ getNodeWidth: j,
202
+ setTreeValues: k,
203
+ updateRootId: A
204
+ }, { column: N, line: P } = g.seriesTypes, { parse: F } = u, { getLevelOptions: I, getNodeWidth: L } = M;
205
+ y(_);
206
+ var R = class e extends N {
207
+ static getDLOptions(e) {
208
+ let t = a(e.optionsPoint) ? e.optionsPoint.dataLabels : {}, n = a(e.level) ? e.level.dataLabels : {};
209
+ return i({ style: {} }, n, t, { zIndex: n?.zIndex });
210
+ }
211
+ createNodeColumns() {
212
+ let e = [];
213
+ for (let t of this.nodes) t.setNodeColumn(), e[t.column] || (e[t.column] = v.compose([], this)), e[t.column].push(t);
214
+ for (let t = 0; t < e.length; t++) e[t] === void 0 && (e[t] = v.compose([], this));
215
+ return e;
216
+ }
217
+ order(e, t, n) {
218
+ let r = this;
219
+ if (n ||= /* @__PURE__ */ new Set(), e.level === void 0 || e.level < t) {
220
+ e.level = t, n.add(e);
221
+ for (let i of e.linksFrom) i.toNode && !n.has(i.toNode) && r.order(i.toNode, t + 1, n);
222
+ n.delete(e);
223
+ }
224
+ }
225
+ generatePoints() {
226
+ if (C.generatePoints.apply(this, arguments), this.orderNodes) {
227
+ for (let e of this.nodes) e.linksTo.length === 0 && this.order(e, 0);
228
+ f(this.nodes, (e, t) => e.level - t.level);
229
+ }
230
+ }
231
+ getNodePadding() {
232
+ let e = this.options.nodePadding || 0;
233
+ if (this.nodeColumns) {
234
+ let t = this.nodeColumns.reduce((e, t) => Math.max(e, t.length), 0);
235
+ t * e > this.chart.plotSizeY && (e = this.chart.plotSizeY / t);
236
+ }
237
+ return e;
238
+ }
239
+ hasData() {
240
+ return !!this.dataTable.rowCount;
241
+ }
242
+ pointAttribs(e, t) {
243
+ if (!e) return {};
244
+ let n = this, r = e.isNode ? e.level : e.fromNode.level, i = n.mapOptionsToLevel[r || 0] || {}, a = e.options, s = i.states && i.states[t || ""] || {}, c = [
245
+ "colorByPoint",
246
+ "borderColor",
247
+ "borderWidth",
248
+ "linkOpacity",
249
+ "opacity"
250
+ ].reduce((e, t) => (e[t] = o(s[t], a[t], i[t], n.options[t]), e), {}), l = o(s.color, a.color, c.colorByPoint ? e.color : i.color);
251
+ return e.isNode ? {
252
+ fill: l,
253
+ stroke: c.borderColor,
254
+ "stroke-width": c.borderWidth,
255
+ opacity: c.opacity
256
+ } : {
257
+ fill: l,
258
+ "fill-opacity": c.linkOpacity
259
+ };
260
+ }
261
+ drawTracker() {
262
+ N.prototype.drawTracker.call(this, this.points), N.prototype.drawTracker.call(this, this.nodes);
263
+ }
264
+ drawPoints() {
265
+ N.prototype.drawPoints.call(this, this.points), N.prototype.drawPoints.call(this, this.nodes);
266
+ }
267
+ drawDataLabels() {
268
+ N.prototype.drawDataLabels.call(this, this.points), N.prototype.drawDataLabels.call(this, this.nodes);
269
+ }
270
+ translate() {
271
+ this.generatePoints(), this.nodeColumns = this.createNodeColumns();
272
+ let e = this, t = this.chart, n = this.options, r = this.nodeColumns, i = r.length;
273
+ this.nodeWidth = L(this, i), this.nodePadding = this.getNodePadding(), this.translationFactor = r.reduce((t, n) => Math.min(t, n.sankeyColumn.getTranslationFactor(e)), Infinity), this.colDistance = (t.plotSizeX - this.nodeWidth - n.borderWidth) / Math.max(1, r.length - 1), e.mapOptionsToLevel = I({
274
+ from: 1,
275
+ levels: n.levels,
276
+ to: r.length - 1,
277
+ defaults: {
278
+ borderColor: n.borderColor,
279
+ borderRadius: n.borderRadius,
280
+ borderWidth: n.borderWidth,
281
+ color: e.color,
282
+ colorByPoint: n.colorByPoint,
283
+ levelIsConstant: !0,
284
+ linkColor: n.linkColor,
285
+ linkLineWidth: n.linkLineWidth,
286
+ linkOpacity: n.linkOpacity,
287
+ states: n.states
288
+ }
289
+ });
290
+ for (let t of r) for (let n of t) e.translateNode(n, t);
291
+ for (let t of this.nodes) for (let n of t.linksFrom) (n.weight || n.isNull) && n.to && (e.translateLink(n), n.allowShadow = !1);
292
+ }
293
+ getY(e, t, n, r) {
294
+ let i = (t.offset(e, n) || 0) * this.translationFactor;
295
+ return Math.min(t.nodeY + i, t.nodeY + (t.shapeArgs && t.shapeArgs.height || 0) - r);
296
+ }
297
+ translateLink(e, t) {
298
+ let n = e.fromNode, r = e.toNode, i = this.chart, { inverted: a } = i, s = this.translationFactor, c = this.options, l = o(e.linkColorMode, c.linkColorMode), u = (i.inverted ? -this.colDistance : this.colDistance) * c.curveFactor, d = n.nodeX, f = r.nodeX, p = e.outgoing, m = Math.max((e.weight || 0) * s, this.options.minLinkWidth || 0), h = this.getY(e, n, "linksFrom", m), g = t || this.getY(e, r, "linksTo", m), _ = this.nodeWidth, v = f > d + _;
299
+ if (i.inverted && (h = i.plotSizeY - h, g = (i.plotSizeY || 0) - g, _ = -_, m = -m, v = d > f), e.shapeType = "path", e.linkBase = [
300
+ h,
301
+ h + m,
302
+ g,
303
+ g + m
304
+ ], v && typeof g == "number") e.shapeArgs = { d: [
305
+ [
306
+ "M",
307
+ d + _,
308
+ h
309
+ ],
310
+ [
311
+ "C",
312
+ d + _ + u,
313
+ h,
314
+ f - u,
315
+ g,
316
+ f,
317
+ g
318
+ ],
319
+ [
320
+ "L",
321
+ f + (p ? _ : 0),
322
+ g + m / 2
323
+ ],
324
+ [
325
+ "L",
326
+ f,
327
+ g + m
328
+ ],
329
+ [
330
+ "C",
331
+ f - u,
332
+ g + m,
333
+ d + _ + u,
334
+ h + m,
335
+ d + _,
336
+ h + m
337
+ ],
338
+ ["Z"]
339
+ ] };
340
+ else if (typeof g == "number") {
341
+ let t = i.plotHeight - h - m, n = f - 20 - m, r = f - 20, a = f, o = d + _, s = o + 20, c = s + m, l = h, u = h + m, p = u + 20, v = p + t, y = v + 20, b = y + m, x = g, S = x + m, C = S + 20, w = u - m * .7, T = y + m * .7, E = S - m * .7, D = a - m * .7, O = o + m * .7;
342
+ e.shapeArgs = { d: [
343
+ [
344
+ "M",
345
+ o,
346
+ l
347
+ ],
348
+ [
349
+ "C",
350
+ O,
351
+ l,
352
+ c,
353
+ w,
354
+ c,
355
+ p
356
+ ],
357
+ [
358
+ "L",
359
+ c,
360
+ v
361
+ ],
362
+ [
363
+ "C",
364
+ c,
365
+ T,
366
+ O,
367
+ b,
368
+ o,
369
+ b
370
+ ],
371
+ [
372
+ "L",
373
+ a,
374
+ b
375
+ ],
376
+ [
377
+ "C",
378
+ D,
379
+ b,
380
+ n,
381
+ T,
382
+ n,
383
+ v
384
+ ],
385
+ [
386
+ "L",
387
+ n,
388
+ C
389
+ ],
390
+ [
391
+ "C",
392
+ n,
393
+ E,
394
+ D,
395
+ x,
396
+ a,
397
+ x
398
+ ],
399
+ [
400
+ "L",
401
+ a,
402
+ S
403
+ ],
404
+ [
405
+ "C",
406
+ r,
407
+ S,
408
+ r,
409
+ S,
410
+ r,
411
+ C
412
+ ],
413
+ [
414
+ "L",
415
+ r,
416
+ v
417
+ ],
418
+ [
419
+ "C",
420
+ r,
421
+ y,
422
+ r,
423
+ y,
424
+ a,
425
+ y
426
+ ],
427
+ [
428
+ "L",
429
+ o,
430
+ y
431
+ ],
432
+ [
433
+ "C",
434
+ s,
435
+ y,
436
+ s,
437
+ y,
438
+ s,
439
+ v
440
+ ],
441
+ [
442
+ "L",
443
+ s,
444
+ p
445
+ ],
446
+ [
447
+ "C",
448
+ s,
449
+ u,
450
+ s,
451
+ u,
452
+ o,
453
+ u
454
+ ],
455
+ ["Z"]
456
+ ] };
457
+ }
458
+ if (e.dlBox = {
459
+ x: d + (f - d + _) / 2,
460
+ y: h + (g - h) / 2,
461
+ height: m,
462
+ width: 0
463
+ }, e.tooltipPos = i.inverted ? [i.plotSizeY - e.dlBox.y - m / 2, i.plotSizeX - e.dlBox.x] : [e.dlBox.x, e.dlBox.y + m / 2], e.y = e.plotY = 1, e.x = e.plotX = 1, !e.options.color) {
464
+ if (l === "from") e.color = n.color;
465
+ else if (l === "to") e.color = r.color;
466
+ else if (l === "gradient") {
467
+ let t = F(n.color).get(), i = F(r.color).get();
468
+ e.color = {
469
+ linearGradient: {
470
+ x1: 1,
471
+ x2: 0,
472
+ y1: 0,
473
+ y2: 0
474
+ },
475
+ stops: [[0, a ? t : i], [1, a ? i : t]]
476
+ };
477
+ }
478
+ }
479
+ }
480
+ translateNode(t, n) {
481
+ let r = this.translationFactor, i = this.chart, a = this.options, { borderRadius: c, borderWidth: u = 0 } = a, d = t.getSum(), f = Math.max(Math.round(d * r), this.options.minLinkWidth), p = Math.round(this.nodeWidth), h = n.sankeyColumn.offset(t, r), g = m(o(h.absoluteTop, n.sankeyColumn.top(r) + h.relativeTop), u), _ = m(this.colDistance * t.column + u / 2, u) + s(t.options[i.inverted ? "offsetVertical" : "offsetHorizontal"] || 0, p), v = i.inverted ? i.plotSizeX - _ : _;
482
+ if (t.sum = d, d) {
483
+ t.shapeType = "roundedRect", t.nodeX = v, t.nodeY = g;
484
+ let n = v, r = g, o = t.options.width || a.width || p, u = t.options.height || a.height || f, d = l(s(typeof c == "object" ? c.radius : c || 0, o), 0, f / 2);
485
+ i.inverted && (n = v - p, r = i.plotSizeY - g - f, o = t.options.height || a.height || p, u = t.options.width || a.width || f), t.dlOptions = {
486
+ ...e.getDLOptions({
487
+ level: this.mapOptionsToLevel[t.level],
488
+ optionsPoint: t.options
489
+ }),
490
+ zIndex: void 0
491
+ }, delete t.dlOptions.zIndex, t.plotX = 1, t.plotY = 1, t.tooltipPos = i.inverted ? [i.plotSizeY - r - u / 2, i.plotSizeX - n - o / 2] : [n + o / 2, r + u / 2], t.shapeArgs = {
492
+ x: n,
493
+ y: r,
494
+ width: o,
495
+ height: u,
496
+ r: d,
497
+ display: t.hasShape() ? "" : "none"
498
+ };
499
+ } else t.dlOptions = { enabled: !1 };
500
+ }
501
+ };
502
+ R.defaultOptions = i(N.defaultOptions, E), C.compose(T, R), t(R.prototype, {
503
+ animate: P.prototype.animate,
504
+ createNode: C.createNode,
505
+ forceDL: !0,
506
+ invertible: !0,
507
+ isCartesian: !1,
508
+ orderNodes: !0,
509
+ noSharedTooltip: !0,
510
+ pointArrayMap: [
511
+ "from",
512
+ "to",
513
+ "weight"
514
+ ],
515
+ pointClass: T,
516
+ searchPoint: d.noop
517
+ }), g.registerSeriesType("sankey", R);
518
+ //#endregion
519
+ //#region node_modules/highcharts/es-modules/masters/modules/sankey.src.js
520
+ var z = d;
521
+ //#endregion
522
+ export { z as default };
523
+
524
+ //# sourceMappingURL=sankey.src-DocCurOx.js.map