@dpuse/dpuse-tool-highcharts-visualiser 0.0.80 → 0.0.83
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/{AnimationUtilities-Bby2idBR.js → AnimationUtilities-HCzBkGkl.js} +122 -131
- package/dist/AnimationUtilities-HCzBkGkl.js.map +1 -0
- package/dist/BorderRadius-DsUUgNnR.js +135 -0
- package/dist/BorderRadius-DsUUgNnR.js.map +1 -0
- package/dist/CenteredUtilities-CBtdKzw5.js +1312 -0
- package/dist/CenteredUtilities-CBtdKzw5.js.map +1 -0
- package/dist/{SVGElement-BmvC_qu3.js → SVGElement-DQ_bI6Wv.js} +106 -108
- package/dist/SVGElement-DQ_bI6Wv.js.map +1 -0
- package/dist/SeriesRegistry-BO6tW97M.js +376 -0
- package/dist/SeriesRegistry-BO6tW97M.js.map +1 -0
- package/dist/{TextPath-DK4Jkzd7.js → TextPath-D9gJwxEx.js} +32 -34
- package/dist/{TextPath-DK4Jkzd7.js.map → TextPath-D9gJwxEx.js.map} +1 -1
- package/dist/{dependency-wheel.src-BHmwx9rW.js → dependency-wheel.src-CzVxcqBs.js} +26 -27
- package/dist/dependency-wheel.src-CzVxcqBs.js.map +1 -0
- package/dist/dpuse-tool-highcharts-visualiser.es.js +2495 -2463
- package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -1
- package/dist/highchartsMoreCustom-C4nqraZj.js +1206 -0
- package/dist/highchartsMoreCustom-C4nqraZj.js.map +1 -0
- package/dist/{pattern-fill.src-BPmr3DQg.js → pattern-fill.src-B5NNMA8k.js} +53 -55
- package/dist/pattern-fill.src-B5NNMA8k.js.map +1 -0
- package/dist/sankey.src-CwyzwAVp.js +522 -0
- package/dist/sankey.src-CwyzwAVp.js.map +1 -0
- package/dist/{streamgraph.src-Bn6PY8Fd.js → streamgraph.src-BxwGr88G.js} +4 -6
- package/dist/streamgraph.src-BxwGr88G.js.map +1 -0
- package/package.json +14 -14
- package/dist/AnimationUtilities-Bby2idBR.js.map +0 -1
- package/dist/BorderRadius-2zMZW_aK.js +0 -1445
- package/dist/BorderRadius-2zMZW_aK.js.map +0 -1
- package/dist/SVGElement-BmvC_qu3.js.map +0 -1
- package/dist/SeriesRegistry-0cj0ZJqn.js +0 -374
- package/dist/SeriesRegistry-0cj0ZJqn.js.map +0 -1
- package/dist/dependency-wheel.src-BHmwx9rW.js.map +0 -1
- package/dist/highchartsMoreCustom-CcpfmVny.js +0 -1110
- package/dist/highchartsMoreCustom-CcpfmVny.js.map +0 -1
- package/dist/pattern-fill.src-BPmr3DQg.js.map +0 -1
- package/dist/sankey.src-DocCurOx.js +0 -524
- package/dist/sankey.src-DocCurOx.js.map +0 -1
- package/dist/streamgraph.src-Bn6PY8Fd.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as s } from "./SeriesRegistry-
|
|
3
|
-
import { t as c } from "./SVGElement-
|
|
4
|
-
import {
|
|
1
|
+
import { K as e, X as t, et as n, k as r, lt as i, st as a, t as o } from "./AnimationUtilities-HCzBkGkl.js";
|
|
2
|
+
import { t as s } from "./SeriesRegistry-BO6tW97M.js";
|
|
3
|
+
import { t as c } from "./SVGElement-DQ_bI6Wv.js";
|
|
4
|
+
import { t as l } from "./BorderRadius-DsUUgNnR.js";
|
|
5
|
+
import { n as u, t as d } from "./TextPath-D9gJwxEx.js";
|
|
5
6
|
//#region node_modules/highcharts/es-modules/Series/DependencyWheel/DependencyWheelPoint.js
|
|
6
|
-
var { sankey: { prototype: { pointClass:
|
|
7
|
+
var { sankey: { prototype: { pointClass: f } } } = s.seriesTypes, p = class extends f {
|
|
7
8
|
getSumTo() {
|
|
8
9
|
let e = 0;
|
|
9
10
|
for (let t of this.linksFrom) e += t.weightTo || t.weight || 0;
|
|
@@ -11,25 +12,25 @@ var { sankey: { prototype: { pointClass: d } } } = s.seriesTypes, f = class exte
|
|
|
11
12
|
return e;
|
|
12
13
|
}
|
|
13
14
|
getDataLabelPath(e) {
|
|
14
|
-
let
|
|
15
|
-
return
|
|
16
|
-
return
|
|
17
|
-
}),
|
|
15
|
+
let n = this, r = n.series.chart.renderer, i = n.shapeArgs, o = n.angle < 0 || n.angle > Math.PI, s = i.start || 0, c = i.end || 0;
|
|
16
|
+
return n.dataLabelPath ? (n.dataLabelPath = n.dataLabelPath.destroy(), delete n.dataLabelPath) : a(e, "destroy", function(e) {
|
|
17
|
+
return n.dataLabelPath &&= n.dataLabelPath.destroy(), e.call(this);
|
|
18
|
+
}), n.dataLabelPath = r.arc({
|
|
18
19
|
open: !0,
|
|
19
20
|
longArc: Math.abs(Math.abs(s) - Math.abs(c)) < Math.PI ? 0 : 1
|
|
20
21
|
}).attr({
|
|
21
22
|
x: i.x,
|
|
22
23
|
y: i.y,
|
|
23
|
-
r: (i.r || 0) +
|
|
24
|
-
start:
|
|
25
|
-
end:
|
|
26
|
-
clockwise: +
|
|
27
|
-
}).add(
|
|
24
|
+
r: (i.r || 0) + t(e.options?.distance || 0),
|
|
25
|
+
start: o ? s : c,
|
|
26
|
+
end: o ? c : s,
|
|
27
|
+
clockwise: +o
|
|
28
|
+
}).add(r.defs), n.dataLabelPath;
|
|
28
29
|
}
|
|
29
30
|
isValid() {
|
|
30
31
|
return !0;
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
+
}, m = {
|
|
33
34
|
center: [null, null],
|
|
34
35
|
curveFactor: .6,
|
|
35
36
|
startAngle: 0,
|
|
@@ -41,13 +42,13 @@ var { sankey: { prototype: { pointClass: d } } } = s.seriesTypes, f = class exte
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
tooltip: { pointFormat: "{point.fromNode.name} → {point.toNode.name}: <b>{point.weight}</b><br/>{#if point.weightTo}{point.toNode.name} → {point.fromNode.name}: <b>{point.weightTo}</b><br/>{/if}" }
|
|
44
|
-
}, {
|
|
45
|
-
|
|
45
|
+
}, { deg2rad: h } = i, { pie: g, sankey: _ } = s.seriesTypes;
|
|
46
|
+
d(c);
|
|
46
47
|
var v = class extends _ {
|
|
47
48
|
animate(e) {
|
|
48
49
|
let t = this;
|
|
49
50
|
if (!e) {
|
|
50
|
-
let e =
|
|
51
|
+
let e = o(t.options.animation).duration / 2 / t.nodes.length, n = 0;
|
|
51
52
|
for (let r of t.nodes) {
|
|
52
53
|
let t = r.graphic;
|
|
53
54
|
t && (t.attr({ opacity: 0 }), setTimeout(() => {
|
|
@@ -83,7 +84,7 @@ var v = class extends _ {
|
|
|
83
84
|
}, t;
|
|
84
85
|
}
|
|
85
86
|
createNodeColumns() {
|
|
86
|
-
let e = this, t = [
|
|
87
|
+
let e = this, t = [u.compose([], e)];
|
|
87
88
|
for (let n of e.nodes) n.column = 0, t[0].push(n);
|
|
88
89
|
return t;
|
|
89
90
|
}
|
|
@@ -91,10 +92,10 @@ var v = class extends _ {
|
|
|
91
92
|
return this.options.nodePadding / Math.PI;
|
|
92
93
|
}
|
|
93
94
|
translate() {
|
|
94
|
-
let e = this, t = e.options, r = 2 * Math.PI / (e.chart.plotHeight + e.getNodePadding()), i = e.getCenter(), a = ((t.startAngle || 0) - 90) * h, o = t.borderRadius
|
|
95
|
+
let e = this, t = e.options, r = 2 * Math.PI / (e.chart.plotHeight + e.getNodePadding()), i = e.getCenter(), a = ((t.startAngle || 0) - 90) * h, o = l(t.borderRadius).radius;
|
|
95
96
|
super.translate();
|
|
96
97
|
for (let e of this.nodeColumns[0]) if (e.sum) {
|
|
97
|
-
let
|
|
98
|
+
let s = e.shapeArgs, c = i[0], l = i[1], u = i[2] / 2, d = t.nodeWidth === "auto" ? 20 : t.nodeWidth, f = u - n(d || 0, u), p = a + r * (s.y || 0), m = a + r * ((s.y || 0) + (s.height || 0));
|
|
98
99
|
e.angle = p + (m - p) / 2, e.shapeType = "arc", e.shapeArgs = {
|
|
99
100
|
x: c,
|
|
100
101
|
y: l,
|
|
@@ -102,7 +103,7 @@ var v = class extends _ {
|
|
|
102
103
|
innerR: f,
|
|
103
104
|
start: p,
|
|
104
105
|
end: m,
|
|
105
|
-
borderRadius:
|
|
106
|
+
borderRadius: o
|
|
106
107
|
}, e.dlBox = {
|
|
107
108
|
x: c + Math.cos((p + m) / 2) * (u + f) / 2,
|
|
108
109
|
y: l + Math.sin((p + m) / 2) * (u + f) / 2,
|
|
@@ -175,7 +176,7 @@ var v = class extends _ {
|
|
|
175
176
|
super.translateNode(e, t), e.sumTo = e.getSumTo();
|
|
176
177
|
}
|
|
177
178
|
};
|
|
178
|
-
v.defaultOptions =
|
|
179
|
+
v.defaultOptions = e(_.defaultOptions, m), r(v.prototype, {
|
|
179
180
|
orderNodes: !1,
|
|
180
181
|
pointArrayMap: [
|
|
181
182
|
"from",
|
|
@@ -184,11 +185,9 @@ v.defaultOptions = t(_.defaultOptions, p), e(v.prototype, {
|
|
|
184
185
|
"weightTo"
|
|
185
186
|
],
|
|
186
187
|
getCenter: g.prototype.getCenter
|
|
187
|
-
}), v.prototype.pointClass =
|
|
188
|
+
}), v.prototype.pointClass = p, s.registerSeriesType("dependencywheel", v);
|
|
188
189
|
//#endregion
|
|
189
190
|
//#region node_modules/highcharts/es-modules/masters/modules/dependency-wheel.src.js
|
|
190
|
-
var y =
|
|
191
|
+
var y = i;
|
|
191
192
|
//#endregion
|
|
192
193
|
export { y as default };
|
|
193
|
-
|
|
194
|
-
//# sourceMappingURL=dependency-wheel.src-BHmwx9rW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-wheel.src-CzVxcqBs.js","names":["SeriesRegistry","H","SeriesRegistry","SankeyColumnComposition","Highcharts"],"sources":["../node_modules/highcharts/es-modules/Series/DependencyWheel/DependencyWheelPoint.js","../node_modules/highcharts/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js","../node_modules/highcharts/es-modules/Series/DependencyWheel/DependencyWheelSeries.js","../node_modules/highcharts/es-modules/masters/modules/dependency-wheel.src.js"],"sourcesContent":["/* *\n *\n * Dependency wheel module\n *\n * (c) 2018-2026 Highsoft AS\n * Author: Torstein Hønsi\n *\n * Integration of this software requires a license.\n * - For commercial use, see www.highcharts.com/license\n * - For non-commercial, see www.highcharts.com/license-eula\n *\n *\n * */\n'use strict';\nimport SeriesRegistry from '../../Core/Series/SeriesRegistry.js';\nconst { sankey: { prototype: { pointClass: SankeyPoint } } } = SeriesRegistry.seriesTypes;\nimport { pInt, wrap } from '../../Shared/Utilities.js';\n/* *\n *\n * Class\n *\n * */\n/** @internal */\nclass DependencyWheelPoint extends SankeyPoint {\n /* *\n *\n * Functions\n *\n * */\n /**\n * Return the sum of incoming links wieght and outgoing links weightTo.\n * @internal\n */\n getSumTo() {\n let sum = 0;\n for (const link of this.linksFrom) {\n sum += link.weightTo || link.weight || 0;\n }\n for (const link of this.linksTo) {\n sum += link.weight || 0;\n }\n return sum;\n }\n /**\n * Return a text path that the data label uses.\n * @internal\n */\n getDataLabelPath(label) {\n const point = this, renderer = point.series.chart.renderer, shapeArgs = point.shapeArgs, upperHalf = point.angle < 0 || point.angle > Math.PI, start = shapeArgs.start || 0, end = shapeArgs.end || 0;\n // First time\n if (!point.dataLabelPath) {\n // Destroy the path with the label\n wrap(label, 'destroy', function (proceed) {\n if (point.dataLabelPath) {\n point.dataLabelPath = point.dataLabelPath.destroy();\n }\n return proceed.call(this);\n });\n // Subsequent times\n }\n else {\n point.dataLabelPath = point.dataLabelPath.destroy();\n delete point.dataLabelPath;\n }\n // All times\n point.dataLabelPath = renderer\n .arc({\n open: true,\n longArc: Math.abs(Math.abs(start) - Math.abs(end)) < Math.PI ? 0 : 1\n })\n .attr({\n x: shapeArgs.x,\n y: shapeArgs.y,\n r: ((shapeArgs.r || 0) + pInt(label.options?.distance || 0)),\n start: (upperHalf ? start : end),\n end: (upperHalf ? end : start),\n clockwise: +upperHalf\n })\n .add(renderer.defs);\n return point.dataLabelPath;\n }\n isValid() {\n // No null points here\n return true;\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/** @internal */\nexport default DependencyWheelPoint;\n","/* *\n *\n * Dependency wheel module\n *\n * (c) 2018-2026 Highsoft AS\n * Author: Torstein Hønsi\n *\n * Integration of this software requires a license.\n * - For commercial use, see www.highcharts.com/license\n * - For non-commercial, see www.highcharts.com/license-eula\n *\n *\n * */\n'use strict';\n/* *\n *\n * API Options\n *\n * */\n/**\n * A dependency wheel chart is a type of flow diagram, where all nodes are laid\n * out in a circle, and the flow between the are drawn as link bands.\n *\n * @sample highcharts/demo/dependency-wheel/\n * Dependency wheel\n *\n * @extends plotOptions.sankey\n * @exclude dataSorting, nodeAlignment, nodeDistance\n * @since 7.1.0\n * @product highcharts\n * @requires modules/sankey\n * @requires modules/dependency-wheel\n * @optionparent plotOptions.dependencywheel\n */\nconst DependencyWheelSeriesDefaults = {\n /**\n * The corner radius of the border surrounding each node. A number\n * signifies pixels. A percentage string, like for example `50%`, signifies\n * a relative size. For nodes this is relative to the node width.\n *\n * @type {number|string|Highcharts.BorderRadiusOptionsObject}\n * @default 3\n * @product highcharts\n * @since 11.0.0\n * @apioption plotOptions.dependencywheel.borderRadius\n */\n /**\n * Distance between the data label and the center of the node.\n *\n * @type {number}\n * @default 0\n * @apioption plotOptions.dependencywheel.dataLabels.distance\n */\n /**\n * A format string for data labels of the links between nodes. Available\n * variables are the same as for `formatter`.\n *\n * @see [nodeFormat](#nodeFormat) for formatting node labels\n *\n * @apioption plotOptions.dependencywheel.dataLabels.format\n */\n /**\n * Callback to format data labels of the links between nodes. The `format`\n * option takes precedence over the `formatter` option.\n *\n * @see [nodeFormatter](#nodeFormatter) for formatting node labels\n *\n * @apioption plotOptions.dependencywheel.dataLabels.formatter\n */\n /**\n * The format string specifying what to show for nodes in the sankey\n * diagram. By default the nodeFormatter returns `{point.name}`. Available\n * variables are the same as for `nodeFormatter`.\n *\n * @apioption plotOptions.dependencywheel.dataLabels.nodeFormat\n */\n /**\n * Callback to format data labels of nodes in the dependency wheel. The\n * `nodeFormat` option takes precedence over the `nodeFormatter` option.\n *\n * @apioption plotOptions.dependencywheel.dataLabels.nodeFormatter\n */\n /**\n * Size of the wheel in pixel or percent relative to the canvas space.\n *\n * @type {number|string}\n * @default 100%\n * @apioption plotOptions.dependencywheel.size\n */\n /**\n * The center of the wheel relative to the plot area. Can be\n * percentages or pixel values. The default behavior is to\n * center the wheel inside the plot area.\n *\n * @type {Array<number|string|null>}\n * @default [null, null]\n * @product highcharts\n */\n center: [null, null],\n curveFactor: 0.6,\n /**\n * The start angle of the dependency wheel, in degrees where 0 is up.\n */\n startAngle: 0,\n dataLabels: {\n allowOverlap: true,\n textPath: {\n enabled: false,\n /**\n * @default { dy: 5 }\n */\n attributes: {\n /** @ignore */\n dy: 5\n }\n }\n },\n tooltip: {\n pointFormat: '{point.fromNode.name} \\u2192 ' +\n '{point.toNode.name}: <b>{point.weight}</b><br/>' +\n '{#if point.weightTo}{point.toNode.name} \\u2192 ' +\n '{point.fromNode.name}: <b>{point.weightTo}</b><br/>{/if}'\n }\n};\n/**\n * A `dependencywheel` series. If the [type](#series.dependencywheel.type)\n * option is not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.dependencywheel\n * @exclude dataSorting\n * @product highcharts\n * @requires modules/sankey\n * @requires modules/dependency-wheel\n * @apioption series.dependencywheel\n */\n/**\n * A collection of options for the individual nodes. The nodes in a dependency\n * diagram are auto-generated instances of `Highcharts.Point`, but options can\n * be applied here and linked by the `id`.\n *\n * @extends series.sankey.nodes\n * @type {Array<*>}\n * @product highcharts\n * @excluding offset\n * @apioption series.dependencywheel.nodes\n */\n/**\n * An array of data points for the series. For the `dependencywheel` series\n * type, points can be given in the following way:\n *\n * An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of data\n * points exceeds the series' [turboThreshold](#series.area.turboThreshold),\n * this option is not available.\n *\n * ```js\n * data: [{\n * from: 'Category1',\n * to: 'Category2',\n * weight: 2,\n * weightTo: 3\n * }, {\n * from: 'Category1',\n * to: 'Category3',\n * weight: 5,\n * weightTo: 6\n * }]\n * ```\n * When you provide the data as tuples, the keys option has to be set as well.\n *\n * ```js\n * keys: ['from', 'to', 'weight', 'weightTo'],\n * data: [\n * ['Category1', 'Category2', 2, 4],\n * ['Category1', 'Category3', 5, 2]\n * ]\n * ```\n *\n * @sample {highcharts} highcharts/demo/dependency-wheel\n * Dependency wheel\n * @sample {highcharts} highcharts/demo/chord-diagram\n * Chord diagram\n *\n * @basic\n * @type {Array<Array<string,string,number>|*>}\n * @extends series.sankey.data\n * @product highcharts\n * @excluding outgoing, dataLabels\n * @apioption series.dependencywheel.data\n */\n/**\n * Individual data label for each node. The options are the same as\n * the ones for [series.dependencywheel.dataLabels](#series.dependencywheel.dataLabels).\n *\n * @apioption series.dependencywheel.nodes.dataLabels\n */\n/**\n * The weight of the link from the node.\n *\n * @type {number|null}\n * @product highcharts\n * @apioption series.dependencywheel.data.weight\n */\n/**\n * The weight of the link to the node.\n * When not specified, the `weight` is used.\n *\n * @type {number|null}\n * @product highcharts\n * @since 13.0.0\n * @apioption series.dependencywheel.data.weightTo\n */\n''; // Keeps doclets above separate\n/* *\n *\n * Default Export\n *\n * */\nexport default DependencyWheelSeriesDefaults;\n","/* *\n *\n * Dependency wheel module\n *\n * (c) 2018-2026 Highsoft AS\n * Author: Torstein Hønsi\n *\n * Integration of this software requires a license.\n * - For commercial use, see www.highcharts.com/license\n * - For non-commercial, see www.highcharts.com/license-eula\n *\n *\n * */\n'use strict';\nimport { animObject } from '../../Core/Animation/AnimationUtilities.js';\nimport { borderRadiusObject } from '../../Extensions/BorderRadius.js';\nimport DependencyWheelPoint from './DependencyWheelPoint.js';\nimport DependencyWheelSeriesDefaults from './DependencyWheelSeriesDefaults.js';\nimport H from '../../Core/Globals.js';\nconst { deg2rad } = H;\nimport SankeyColumnComposition from '../Sankey/SankeyColumnComposition.js';\nimport SeriesRegistry from '../../Core/Series/SeriesRegistry.js';\nconst { pie: PieSeries, sankey: SankeySeries } = SeriesRegistry.seriesTypes;\nimport SVGElement from '../../Core/Renderer/SVG/SVGElement.js';\nimport { composeTextPath } from '../../Extensions/TextPath.js';\nimport { extend, merge, relativeLength } from '../../Shared/Utilities.js';\ncomposeTextPath(SVGElement);\n/* *\n *\n * Class\n *\n * */\n/**\n * @internal\n * @class\n * @name Highcharts.seriesTypes.dependencywheel\n *\n * @augments Highcharts.seriesTypes.sankey\n */\nclass DependencyWheelSeries extends SankeySeries {\n /* *\n *\n * Functions\n *\n * */\n animate(init) {\n const series = this;\n if (!init) {\n const duration = animObject(series.options.animation).duration, step = (duration / 2) / series.nodes.length;\n let i = 0;\n for (const point of series.nodes) {\n const graphic = point.graphic;\n if (graphic) {\n graphic.attr({ opacity: 0 });\n setTimeout(() => {\n if (point.graphic) {\n point.graphic.animate({ opacity: 1 }, { duration: step });\n }\n }, step * i++);\n }\n }\n for (const point of series.points) {\n const graphic = point.graphic;\n if (!point.isNode && graphic) {\n graphic.attr({ opacity: 0 })\n .animate({\n opacity: 1\n }, series.options.animation);\n }\n }\n }\n }\n createNode(id) {\n const node = super.createNode(id);\n /**\n * Return the sum of incoming and outgoing links.\n * @internal\n */\n node.getSum = () => {\n let sum = 0;\n for (const link of node.linksFrom) {\n sum += link.weight || 0;\n }\n for (const link of node.linksTo) {\n sum += link.weightTo || link.weight || 0;\n }\n return sum;\n };\n /**\n * Get the offset in weight values of a point/link.\n * @internal\n */\n node.offset = (point) => {\n const otherNode = (link) => (link.fromNode === node ?\n link.toNode :\n link.fromNode);\n let offset = 0, links = node.linksFrom.concat(node.linksTo), sliced;\n // Sort and slice the links to avoid links going out of each\n // node crossing each other.\n links.sort((a, b) => (otherNode(a).index - otherNode(b).index));\n for (let i = 0; i < links.length; i++) {\n if (otherNode(links[i]).index > node.index) {\n links = links.slice(0, i).reverse().concat(links.slice(i).reverse());\n sliced = true;\n break;\n }\n }\n if (!sliced) {\n links.reverse();\n }\n for (let i = 0; i < links.length; i++) {\n if (links[i] === point) {\n return offset;\n }\n const baseWeight = links[i].weight || 0;\n offset += links[i].to === node.id ?\n links[i].weightTo || baseWeight :\n baseWeight;\n }\n };\n return node;\n }\n /**\n * Dependency wheel has only one column, it runs along the perimeter.\n * @internal\n */\n createNodeColumns() {\n const series = this, columns = [SankeyColumnComposition.compose([], series)];\n for (const node of series.nodes) {\n node.column = 0;\n columns[0].push(node);\n }\n return columns;\n }\n /**\n * Translate from vertical pixels to perimeter.\n * @internal\n */\n getNodePadding() {\n return this.options.nodePadding / Math.PI;\n }\n /**\n * @ignore\n * @todo Override the refactored sankey translateLink and translateNode\n * functions instead of the whole translate function.\n */\n translate() {\n const series = this, options = series.options, factor = 2 * Math.PI /\n (series.chart.plotHeight + series.getNodePadding()), center = series.getCenter(), startAngle = ((options.startAngle || 0) - 90) * deg2rad, borderRadius = borderRadiusObject(options.borderRadius).radius;\n super.translate();\n for (const node of this.nodeColumns[0]) {\n // Don't render the nodes if sum is 0 #12453\n if (node.sum) {\n const shapeArgs = node.shapeArgs, centerX = center[0], centerY = center[1], r = center[2] / 2, nodeWidth = options.nodeWidth === 'auto' ?\n 20 : options.nodeWidth, innerR = r - relativeLength(nodeWidth || 0, r), start = startAngle + factor * (shapeArgs.y || 0), end = startAngle +\n factor * ((shapeArgs.y || 0) + (shapeArgs.height || 0));\n // Middle angle\n node.angle = start + (end - start) / 2;\n node.shapeType = 'arc';\n node.shapeArgs = {\n x: centerX,\n y: centerY,\n r: r,\n innerR: innerR,\n start: start,\n end: end,\n borderRadius\n };\n node.dlBox = {\n x: centerX + Math.cos((start + end) / 2) * (r + innerR) / 2,\n y: centerY + Math.sin((start + end) / 2) * (r + innerR) / 2,\n width: 1,\n height: 1\n };\n // Draw the links from this node\n for (const point of node.linksFrom) {\n if (point.linkBase) {\n let curveFactor, distance;\n const corners = point.linkBase.map((top, i) => {\n const angle = factor * top, x = Math.cos(startAngle + angle) * (innerR + 1), y = Math.sin(startAngle + angle) * (innerR + 1);\n curveFactor = options.curveFactor || 0;\n // The distance between the from and to node\n // along the perimeter. This affect how curved\n // the link is, so that links between neighbors\n // don't extend too far towards the center.\n distance = Math.abs(point.linkBase[3 - i] * factor - angle);\n if (distance > Math.PI) {\n distance = 2 * Math.PI - distance;\n }\n distance = distance * innerR;\n if (distance < innerR) {\n curveFactor *= (distance / innerR);\n }\n return {\n x: centerX + x,\n y: centerY + y,\n cpX: centerX + (1 - curveFactor) * x,\n cpY: centerY + (1 - curveFactor) * y\n };\n });\n point.shapeArgs = {\n d: [[\n 'M',\n corners[0].x, corners[0].y\n ], [\n 'A',\n innerR, innerR,\n 0,\n 0, // Long arc\n 1, // Clockwise\n corners[1].x, corners[1].y\n ], [\n 'C',\n corners[1].cpX, corners[1].cpY,\n corners[2].cpX, corners[2].cpY,\n corners[2].x, corners[2].y\n ], [\n 'A',\n innerR, innerR,\n 0,\n 0,\n 1,\n corners[3].x, corners[3].y\n ], [\n 'C',\n corners[3].cpX, corners[3].cpY,\n corners[0].cpX, corners[0].cpY,\n corners[0].x, corners[0].y\n ]]\n };\n }\n }\n }\n }\n }\n /**\n * Run translation operations for one link.\n * @internal\n */\n translateLink(point) {\n const linkToHeight = Math.max((point.weightTo || point.weight || 0) * this.translationFactor, this.options.minLinkWidth || 0);\n const linkToY = this.getY(point, point.toNode, 'linksTo', linkToHeight);\n // Translate the link\n super.translateLink(point, linkToY);\n // Override the last linkBase value\n point.linkBase[3] = linkToY + linkToHeight;\n }\n /**\n * Run translation operations for one node.\n * @internal\n */\n translateNode(node, column) {\n super.translateNode(node, column);\n // Calculate the sum of incoming links weight and\n // outgoing links weightTo.\n node.sumTo = node.getSumTo();\n }\n}\n/* *\n *\n * Static Properties\n *\n * */\nDependencyWheelSeries.defaultOptions = merge(SankeySeries.defaultOptions, DependencyWheelSeriesDefaults);\nextend(DependencyWheelSeries.prototype, {\n orderNodes: false,\n pointArrayMap: ['from', 'to', 'weight', 'weightTo'],\n getCenter: PieSeries.prototype.getCenter\n});\nDependencyWheelSeries.prototype.pointClass = DependencyWheelPoint;\nSeriesRegistry.registerSeriesType('dependencywheel', DependencyWheelSeries);\n/* *\n *\n * Default Export\n *\n * */\n/** @internal */\nexport default DependencyWheelSeries;\n","// SPDX-License-Identifier: LicenseRef-Highcharts\n/**\n * @license Highcharts JS v13.1.0 (2026-09-18)\n * @module highcharts/modules/dependency-wheel\n * @requires highcharts\n * @requires highcharts/modules/sankey\n *\n * Dependency wheel module\n *\n * (c) 2010-2026 Highsoft AS\n * Author: Torstein Hønsi\n *\n * A commercial license may be required depending on use,\n * see www.highcharts.com/license\n */\n'use strict';\nimport Highcharts from '../../Core/Globals.js';\nimport '../../Series/DependencyWheel/DependencyWheelSeries.js';\nexport default Highcharts;\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";;;;;;AAeA,IAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,UAAoBA,EAAe,aAQxE,IAAN,cAAmC,EAAY;CAU3C,WAAW;EACP,IAAI,IAAM;EACV,KAAK,IAAM,KAAQ,KAAK,WACpB,KAAO,EAAK,YAAY,EAAK,UAAU;EAE3C,KAAK,IAAM,KAAQ,KAAK,SACpB,KAAO,EAAK,UAAU;EAE1B,OAAO;CACX;CAKA,iBAAiB,GAAO;EACpB,IAAM,IAAQ,MAAM,IAAW,EAAM,OAAO,MAAM,UAAU,IAAY,EAAM,WAAW,IAAY,EAAM,QAAQ,KAAK,EAAM,QAAQ,KAAK,IAAI,IAAQ,EAAU,SAAS,GAAG,IAAM,EAAU,OAAO;EA+BpM,OA7BK,EAAM,iBAWP,EAAM,gBAAgB,EAAM,cAAc,QAAQ,GAClD,OAAO,EAAM,iBAVb,EAAK,GAAO,WAAW,SAAU,GAAS;GAItC,OAHA,AACI,EAAM,kBAAgB,EAAM,cAAc,QAAQ,GAE/C,EAAQ,KAAK,IAAI;EAC5B,CAAC,GAQL,EAAM,gBAAgB,EACjB,IAAI;GACL,MAAM;GACN,SAAS,KAAK,IAAI,KAAK,IAAI,CAAK,IAAI,KAAK,IAAI,CAAG,CAAC,IAAI,KAAK,KAAK,IAAI;EACvE,CAAC,CAAC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