@dpuse/dpuse-tool-highcharts-visualiser 0.0.82 → 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-CJw-tdb_.js → AnimationUtilities-HCzBkGkl.js} +84 -84
- package/dist/AnimationUtilities-HCzBkGkl.js.map +1 -0
- package/dist/{BorderRadius-CqHYi9va.js → BorderRadius-DsUUgNnR.js} +2 -2
- package/dist/{BorderRadius-CqHYi9va.js.map → BorderRadius-DsUUgNnR.js.map} +1 -1
- package/dist/{CenteredUtilities-BTUT7_Ld.js → CenteredUtilities-CBtdKzw5.js} +305 -309
- package/dist/CenteredUtilities-CBtdKzw5.js.map +1 -0
- package/dist/{SVGElement-uTuGcjav.js → SVGElement-DQ_bI6Wv.js} +73 -73
- package/dist/SVGElement-DQ_bI6Wv.js.map +1 -0
- package/dist/{SeriesRegistry-CXsAINSj.js → SeriesRegistry-BO6tW97M.js} +125 -125
- package/dist/SeriesRegistry-BO6tW97M.js.map +1 -0
- package/dist/{TextPath-Coabnrz0.js → TextPath-D9gJwxEx.js} +1 -1
- package/dist/{TextPath-Coabnrz0.js.map → TextPath-D9gJwxEx.js.map} +1 -1
- package/dist/{dependency-wheel.src-ByNiAiZS.js → dependency-wheel.src-CzVxcqBs.js} +5 -5
- package/dist/{dependency-wheel.src-ByNiAiZS.js.map → dependency-wheel.src-CzVxcqBs.js.map} +1 -1
- package/dist/dpuse-tool-highcharts-visualiser.es.js +1423 -1413
- package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -1
- package/dist/{highchartsMoreCustom-Cm6MkFMu.js → highchartsMoreCustom-C4nqraZj.js} +328 -300
- package/dist/highchartsMoreCustom-C4nqraZj.js.map +1 -0
- package/dist/{pattern-fill.src-CGZp553r.js → pattern-fill.src-B5NNMA8k.js} +43 -43
- 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-DjMW1U2g.js → streamgraph.src-BxwGr88G.js} +2 -2
- package/dist/streamgraph.src-BxwGr88G.js.map +1 -0
- package/package.json +12 -12
- package/dist/AnimationUtilities-CJw-tdb_.js.map +0 -1
- package/dist/CenteredUtilities-BTUT7_Ld.js.map +0 -1
- package/dist/SVGElement-uTuGcjav.js.map +0 -1
- package/dist/SeriesRegistry-CXsAINSj.js.map +0 -1
- package/dist/highchartsMoreCustom-Cm6MkFMu.js.map +0 -1
- package/dist/pattern-fill.src-CGZp553r.js.map +0 -1
- package/dist/sankey.src-Buj1zAlU.js +0 -522
- package/dist/sankey.src-Buj1zAlU.js.map +0 -1
- package/dist/streamgraph.src-DjMW1U2g.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, C as t, G as n, H as r, I as i, J as a, K as o, M as s, O as c,
|
|
1
|
+
import { A as e, C as t, G as n, H as r, I as i, J as a, K as o, M as s, O as c, S as l, U as u, W as d, b as f, c as p, h as m, k as h, lt as g, ot as _, p as v, rt as y, t as b, tt as x, u as S, v as C, z as w } from "./AnimationUtilities-HCzBkGkl.js";
|
|
2
2
|
//#region node_modules/highcharts/es-modules/Core/Renderer/HTML/AST.js
|
|
3
|
-
var { SVG_NS:
|
|
3
|
+
var { SVG_NS: T, win: E } = g, { trustedTypes: D } = E, O = D && r(D.createPolicy) && D.createPolicy("highcharts", { createHTML: (e) => e }), k = O ? O.createHTML("") : "", A = class e {
|
|
4
4
|
static filterUserAttributes(t) {
|
|
5
5
|
return a(t, (r, i) => {
|
|
6
6
|
let a = !0;
|
|
@@ -10,7 +10,7 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
|
|
|
10
10
|
"href",
|
|
11
11
|
"lowsrc",
|
|
12
12
|
"src"
|
|
13
|
-
].indexOf(i) !== -1 && (a = n(r) && e.allowedReferences.some((e) => r.indexOf(e) === 0)), a || (
|
|
13
|
+
].indexOf(i) !== -1 && (a = n(r) && e.allowedReferences.some((e) => r.indexOf(e) === 0)), a || (S(33, !1, void 0, { "Invalid attribute in config": `${i}` }), delete t[i]), n(r) && t[i] && (t[i] = r.replace(/</g, "<"));
|
|
14
14
|
}), t;
|
|
15
15
|
}
|
|
16
16
|
static parseStyle(e) {
|
|
@@ -28,16 +28,16 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
|
|
|
28
28
|
addToDOM(n) {
|
|
29
29
|
function r(n, i) {
|
|
30
30
|
let o;
|
|
31
|
-
return
|
|
32
|
-
let s = n.tagName, c = n.textContent ?
|
|
31
|
+
return y(n).forEach(function(n) {
|
|
32
|
+
let s = n.tagName, c = n.textContent ? g.doc.createTextNode(n.textContent) : void 0, l = e.bypassHTMLFiltering, u;
|
|
33
33
|
if (s) {
|
|
34
34
|
if (s === "#text") u = c;
|
|
35
35
|
else if (e.allowedTags.indexOf(s) !== -1 || l) {
|
|
36
|
-
let o = s === "svg" ?
|
|
36
|
+
let o = s === "svg" ? T : i.namespaceURI || T, d = g.doc.createElementNS(o, s), f = n.attributes || {};
|
|
37
37
|
a(n, function(e, t) {
|
|
38
38
|
t !== "tagName" && t !== "attributes" && t !== "children" && t !== "style" && t !== "textContent" && (f[t] = e);
|
|
39
|
-
}),
|
|
40
|
-
} else
|
|
39
|
+
}), C(d, l ? f : e.filterUserAttributes(f)), n.style && t(d, n.style), c && d.appendChild(c), r(n.children || [], d), u = d;
|
|
40
|
+
} else S(33, !1, void 0, { "Invalid tagName in config": s });
|
|
41
41
|
}
|
|
42
42
|
u && i.appendChild(u), o = u;
|
|
43
43
|
}), o;
|
|
@@ -49,12 +49,13 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
|
|
|
49
49
|
t = t.trim().replace(/ style=(["'])/g, " data-style=$1");
|
|
50
50
|
let r;
|
|
51
51
|
try {
|
|
52
|
-
r = new DOMParser().parseFromString(
|
|
53
|
-
} catch {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
r = new DOMParser().parseFromString(O ? O.createHTML(t) : t, "text/html");
|
|
53
|
+
} catch {
|
|
54
|
+
try {
|
|
55
|
+
r = new DOMParser().parseFromString(t, "text/html");
|
|
56
|
+
} catch {}
|
|
57
57
|
}
|
|
58
|
+
r || (r = g.doc.implementation.createHTMLDocument(""), r.body.innerHTML = t);
|
|
58
59
|
let i = (t, n) => {
|
|
59
60
|
let r = t.localName || t.nodeName.toLowerCase(), a = { tagName: r };
|
|
60
61
|
r === "#text" && (a.textContent = t.textContent || "");
|
|
@@ -76,7 +77,7 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
|
|
|
76
77
|
return [].forEach.call(r.body.childNodes, (e) => i(e, n)), n;
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
|
|
80
|
+
A.allowedAttributes = /* @__PURE__ */ "alt.aria-controls.aria-describedby.aria-expanded.aria-haspopup.aria-hidden.aria-label.aria-labelledby.aria-live.aria-pressed.aria-readonly.aria-roledescription.aria-selected.aria-sort.class.clip-path.color.colspan.cx.cy.d.disabled.dx.dy.fill.filterUnits.flood-color.flood-opacity.height.href.id.in.in2.markerHeight.markerWidth.offset.opacity.operator.orient.padding.paddingLeft.paddingRight.patternUnits.r.radius.refX.refY.result.role.rowspan.scope.slope.src.startOffset.stdDeviation.stop-color.stop-opacity.stroke-linecap.stroke-width.stroke.style.summary.tabindex.tableValues.target.text-align.text-anchor.textAnchor.textLength.title.type.valign.width.x.x1.x2.xlink:href.y.y1.y2.zIndex".split("."), A.allowedReferences = [
|
|
80
81
|
"https://",
|
|
81
82
|
"http://",
|
|
82
83
|
"mailto:",
|
|
@@ -84,16 +85,16 @@ M.allowedAttributes = /* @__PURE__ */ "alt.aria-controls.aria-describedby.aria-e
|
|
|
84
85
|
"../",
|
|
85
86
|
"./",
|
|
86
87
|
"#"
|
|
87
|
-
],
|
|
88
|
+
], A.allowedTags = /* @__PURE__ */ "#text.a.abbr.b.br.button.caption.circle.clipPath.code.dd.defs.div.dl.dt.em.feComponentTransfer.feComposite.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feMerge.feMergeNode.feMorphology.feOffset.filter.h1.h2.h3.h4.h5.h6.hr.i.img.li.linearGradient.marker.ol.p.path.pattern.pre.rect.small.span.stop.strong.sub.sup.svg.table.tbody.td.text.textPath.th.thead.title.tr.tspan.u.ul".split("."), A.emptyHTML = k, A.bypassHTMLFiltering = !1;
|
|
88
89
|
//#endregion
|
|
89
90
|
//#region node_modules/highcharts/es-modules/Core/Templating.js
|
|
90
|
-
var { defaultOptions:
|
|
91
|
+
var { defaultOptions: j, defaultTime: M } = p, { pageLang: N } = g, P = {
|
|
91
92
|
add: (e, t) => e + t,
|
|
92
|
-
divide: (e, t) => t === 0 ? "" :
|
|
93
|
+
divide: (e, t) => t === 0 ? "" : f(e / t),
|
|
93
94
|
eq: (e, t) => e == t,
|
|
94
95
|
each: function(e) {
|
|
95
96
|
let t = arguments[arguments.length - 1];
|
|
96
|
-
return
|
|
97
|
+
return w(e) ? e.map((n, r) => R(t.body, h(d(n) ? n : { "@this": n }, {
|
|
97
98
|
"@index": r,
|
|
98
99
|
"@first": r === 0,
|
|
99
100
|
"@last": r === e.length - 1
|
|
@@ -104,86 +105,86 @@ var { defaultOptions: N, defaultTime: P } = m, { pageLang: F } = _, I = {
|
|
|
104
105
|
if: (e) => !!e,
|
|
105
106
|
le: (e, t) => e <= t,
|
|
106
107
|
lt: (e, t) => e < t,
|
|
107
|
-
multiply: (e, t) =>
|
|
108
|
+
multiply: (e, t) => f(e * t, 15),
|
|
108
109
|
ne: (e, t) => e != t,
|
|
109
110
|
subtract: (e, t) => e - t,
|
|
110
|
-
ucfirst:
|
|
111
|
+
ucfirst: _,
|
|
111
112
|
unless: (e) => !e
|
|
112
|
-
},
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
}, F = {}, I = (e) => /^["'].+["']$/.test(e);
|
|
114
|
+
function L(e, t, n) {
|
|
115
|
+
return M.dateFormat(e, t, n);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
-
let a = /\{([^{}]+)\}/g, o = /\(([^()]+)\)/g, s = [], c = /f$/,
|
|
117
|
+
function R(e = "", t, r) {
|
|
118
|
+
let a = /\{([^{}]+)\}/g, o = /\(([^()]+)\)/g, s = [], c = /f$/, l = /\.(\d)/, u = r?.options?.lang || j.lang, d = r?.time || M, f = r?.numberFormatter || z.bind(r), p = (e = "") => {
|
|
118
119
|
let n;
|
|
119
|
-
return e === "true" ? !0 : e === "false" ? !1 : (n = Number(e)).toString() === e ? n :
|
|
120
|
-
}, h, g
|
|
121
|
-
for (; (
|
|
122
|
-
let n =
|
|
123
|
-
r && (
|
|
120
|
+
return e === "true" ? !0 : e === "false" ? !1 : (n = Number(e)).toString() === e ? n : I(e) ? e.slice(1, -1) : i(e, t);
|
|
121
|
+
}, m, h, g = 0, _;
|
|
122
|
+
for (; (m = a.exec(e)) !== null;) {
|
|
123
|
+
let n = m, r = o.exec(m[1]);
|
|
124
|
+
r && (m = r, _ = !0), h?.isBlock || (h = {
|
|
124
125
|
ctx: t,
|
|
125
|
-
expression:
|
|
126
|
-
find:
|
|
127
|
-
isBlock:
|
|
128
|
-
start:
|
|
129
|
-
startInner:
|
|
130
|
-
length:
|
|
126
|
+
expression: m[1],
|
|
127
|
+
find: m[0],
|
|
128
|
+
isBlock: m[1].charAt(0) === "#",
|
|
129
|
+
start: m.index,
|
|
130
|
+
startInner: m.index + m[0].length,
|
|
131
|
+
length: m[0].length
|
|
131
132
|
});
|
|
132
|
-
let i = (
|
|
133
|
-
|
|
134
|
-
let a =
|
|
135
|
-
if (
|
|
136
|
-
if (
|
|
133
|
+
let i = (h.isBlock ? n : m)[1].split(" ")[0].replace("#", "");
|
|
134
|
+
P[i] && (h.isBlock && i === h.fn && g++, h.fn || (h.fn = i));
|
|
135
|
+
let a = m[1] === "else";
|
|
136
|
+
if (h.isBlock && h.fn && (m[1] === `/${h.fn}` || a)) {
|
|
137
|
+
if (g) a || g--;
|
|
137
138
|
else {
|
|
138
|
-
let t =
|
|
139
|
-
|
|
139
|
+
let t = h.startInner, n = e.substr(t, m.index - t);
|
|
140
|
+
h.body === void 0 ? (h.body = n, h.startInner = m.index + m[0].length) : h.elseBody = n, h.find += n + m[0], a || (s.push(h), h = void 0);
|
|
140
141
|
}
|
|
141
|
-
} else
|
|
142
|
-
if (r && !
|
|
142
|
+
} else h.isBlock || s.push(h);
|
|
143
|
+
if (r && !h?.isBlock) break;
|
|
143
144
|
}
|
|
144
145
|
return s.forEach((i) => {
|
|
145
|
-
let { body: a, elseBody: s, expression:
|
|
146
|
-
if (
|
|
147
|
-
let e = [i], n = [], o =
|
|
148
|
-
for (
|
|
149
|
-
let e =
|
|
150
|
-
!l && (e === "\"" || e === "'") ? l = e : l === e && (l = ""), !l && (e === " " ||
|
|
146
|
+
let { body: a, elseBody: s, expression: m, fn: h } = i, g, _;
|
|
147
|
+
if (h) {
|
|
148
|
+
let e = [i], n = [], o = m.length, c = 0, l;
|
|
149
|
+
for (_ = 0; _ <= o; _++) {
|
|
150
|
+
let e = m.charAt(_);
|
|
151
|
+
!l && (e === "\"" || e === "'") ? l = e : l === e && (l = ""), !l && (e === " " || _ === o) && (n.push(m.substr(c, _ - c)), c = _ + 1);
|
|
151
152
|
}
|
|
152
|
-
for (
|
|
153
|
-
|
|
153
|
+
for (_ = P[h].length; _--;) e.unshift(p(n[_ + 1]));
|
|
154
|
+
g = P[h].apply(t, e), i.isBlock && typeof g == "boolean" && (g = R(g ? a : s, t, r));
|
|
154
155
|
} else {
|
|
155
|
-
let e =
|
|
156
|
-
if (
|
|
156
|
+
let e = I(m) ? [m] : m.split(":");
|
|
157
|
+
if (g = p(e.shift() || ""), e.length && typeof g == "number") {
|
|
157
158
|
let t = e.join(":");
|
|
158
159
|
if (c.test(t)) {
|
|
159
|
-
let e = parseInt((t.match(
|
|
160
|
-
|
|
161
|
-
} else
|
|
160
|
+
let e = parseInt((t.match(l) || ["", "-1"])[1], 10);
|
|
161
|
+
g !== null && (g = f(g, e, u.decimalPoint, t.indexOf(",") > -1 ? u.thousandsSep : ""));
|
|
162
|
+
} else g = d.dateFormat(t, g);
|
|
162
163
|
}
|
|
163
|
-
o.lastIndex = 0, o.test(i.find) && n(
|
|
164
|
+
o.lastIndex = 0, o.test(i.find) && n(g) && (g = `"${g}"`);
|
|
164
165
|
}
|
|
165
|
-
e = e.replace(i.find,
|
|
166
|
-
}),
|
|
166
|
+
e = e.replace(i.find, g ?? "");
|
|
167
|
+
}), _ ? R(e, t, r) : e;
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function z(e, t, n, r) {
|
|
169
170
|
e = +e || 0, t = +t;
|
|
170
|
-
let i, a, [o, s] = e.toString().split("e").map(Number), c = this?.options?.lang ||
|
|
171
|
-
n ??= c.decimalPoint, r ??= c.thousandsSep, t === -1 ? t = Math.min(l, 20) :
|
|
172
|
-
let p = r || n, m = p ? "en" : this?.locale || c.locale ||
|
|
173
|
-
return i = (
|
|
171
|
+
let i, a, [o, s] = e.toString().split("e").map(Number), c = this?.options?.lang || j.lang, l = (e.toString().split(".")[1] || "").split("e")[0].length, d = t, f = {};
|
|
172
|
+
n ??= c.decimalPoint, r ??= c.thousandsSep, t === -1 ? t = Math.min(l, 20) : u(t) ? t && s < 0 && (a = t + s, a >= 0 ? (o = +o.toExponential(a).split("e")[0], t = a) : (o = Math.floor(o), e = t < 20 ? +(o * 10 ** s).toFixed(t) : 0, s = 0)) : t = 2, s && (t ??= 2, e = o), u(t) && t >= 0 && (f.minimumFractionDigits = t, f.maximumFractionDigits = t), r === "" && (f.useGrouping = !1);
|
|
173
|
+
let p = r || n, m = p ? "en" : this?.locale || c.locale || N, h = JSON.stringify(f) + m;
|
|
174
|
+
return i = (F[h] ?? (F[h] = new Intl.NumberFormat(m, f))).format(e), p && (i = i.replace(/([,\.])/g, "_$1").replace(/_\,/g, r ?? ",").replace("_.", n ?? ".")), (!t && +i == 0 || s < 0 && !d) && (i = "0"), s && +i != 0 && (i += "e" + (s < 0 ? "" : "+") + s), i;
|
|
174
175
|
}
|
|
175
|
-
var
|
|
176
|
-
dateFormat:
|
|
177
|
-
format:
|
|
178
|
-
helpers:
|
|
179
|
-
numberFormat:
|
|
180
|
-
}, { defaultOptions:
|
|
176
|
+
var B = {
|
|
177
|
+
dateFormat: L,
|
|
178
|
+
format: R,
|
|
179
|
+
helpers: P,
|
|
180
|
+
numberFormat: z
|
|
181
|
+
}, { defaultOptions: V } = p, { format: H } = B, U = class e {
|
|
181
182
|
constructor(e, t, n) {
|
|
182
|
-
this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = e, this.applyOptions(t, n), this.id ??=
|
|
183
|
+
this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = e, this.applyOptions(t, n), this.id ??= v(), this.resolveColor(), this.dataLabelOnNull ??= e.options.nullInteraction, e.chart.pointCount++, this.category = e.xAxis?.categories?.[this.x] ?? this.x, this.key = this.name ?? this.category, s(this, "afterInit");
|
|
183
184
|
}
|
|
184
185
|
applyOptions(t, n, r) {
|
|
185
186
|
let i = this, a = i.series, s = a.options.pointValKey || a.pointValKey;
|
|
186
|
-
return t = e.prototype.optionsToObject.call(this, t),
|
|
187
|
+
return t = e.prototype.optionsToObject.call(this, t), h(i, t), i.options = i.options ? a.chart.options.chart.allowMutatingData ? h(i.options, t) : o(i.options, t) : t, s && (i.y = e.prototype.getNestedProperty.call(i, s)), u(n) && (i.x = n), r || (i.selected && (i.state = "select"), t.group && delete i.group, t.dataLabels && delete i.dataLabels, i.isNull = i.isValid && !i.isValid(), i.formatPrefix = i.isNull ? "null" : "point"), i;
|
|
187
188
|
}
|
|
188
189
|
getOrigin({ x: e = 0, y: t = 0 }, n = {}) {
|
|
189
190
|
let { graphic: r, series: i } = this;
|
|
@@ -197,8 +198,8 @@ var H = {
|
|
|
197
198
|
}
|
|
198
199
|
destroy(e) {
|
|
199
200
|
if (!this.destroyed && !this.condemned) {
|
|
200
|
-
let t = this, n = t.series, r = n.chart, i = r.hoverPoints, a = t.series.chart.renderer.globalAnimation, { duration: o } =
|
|
201
|
-
(t.graphic || t.graphics || t.dataLabel || t.dataLabels) && (
|
|
201
|
+
let t = this, n = t.series, r = n.chart, i = r.hoverPoints, a = t.series.chart.renderer.globalAnimation, { duration: o } = b(a), s = () => {
|
|
202
|
+
(t.graphic || t.graphics || t.dataLabel || t.dataLabels) && (x(t), t.destroyElements());
|
|
202
203
|
for (let e in t) delete t[e];
|
|
203
204
|
this.destroyed = !0;
|
|
204
205
|
};
|
|
@@ -242,12 +243,12 @@ var H = {
|
|
|
242
243
|
return (e.graphic && (e.graphic.symbolName || e.graphic.element.nodeName)) !== this.shapeType;
|
|
243
244
|
}
|
|
244
245
|
isValid() {
|
|
245
|
-
return (
|
|
246
|
+
return (u(this.x) || this.x instanceof Date) && u(this.y);
|
|
246
247
|
}
|
|
247
248
|
optionsToObject(t) {
|
|
248
249
|
let n = this.series, r = n.options.keys, i = r || n.pointArrayMap || ["y"], a = i.length, o = {}, s, c = 0, l = 0;
|
|
249
|
-
if (
|
|
250
|
-
else if (
|
|
250
|
+
if (u(t) || t === null) o[i[0]] = t;
|
|
251
|
+
else if (w(t)) for (!r && t.length > a && (s = typeof t[0], s === "string" ? n.xAxis?.dateTime ? o.x = n.chart.time.parse(t[0]) : o[n.tupleKey || "name"] = t[0] : s === "number" && (o.x = t[0]), c++); l < a;) (!r || t[c] !== void 0) && (o[i[l]] = t[c]), c++, l++;
|
|
251
252
|
else typeof t == "object" && (o = t, t.dataLabels && (n.hasDataLabels = () => !0), t.marker && (n._hasPointMarkers = !0));
|
|
252
253
|
return (r || !n.options.data) && Object.keys(o).forEach((t) => {
|
|
253
254
|
t.indexOf(".") > 0 && (e.prototype.setNestedProperty(o, o[t], t), delete o[t]);
|
|
@@ -255,7 +256,7 @@ var H = {
|
|
|
255
256
|
}
|
|
256
257
|
pos(e, t = this.plotX, n = this.plotY) {
|
|
257
258
|
let { series: r } = this, { chart: i, xAxis: a, yAxis: o } = r || {}, s = 0, c = 0;
|
|
258
|
-
if (i &&
|
|
259
|
+
if (i && u(t) && u(n)) return e && (s = a ? a.pos : i.plotLeft, c = o ? o.pos : i.plotTop), i.inverted && a && o ? [o.len - n + c, a.len - t + s] : [t + s, n + c];
|
|
259
260
|
}
|
|
260
261
|
resolveColor() {
|
|
261
262
|
let { options: e, series: t } = this, n = t.chart, r = n.options.chart, i = n.styledMode, a, o = r.colorCount, s;
|
|
@@ -269,8 +270,9 @@ var H = {
|
|
|
269
270
|
this.colorIndex = e.colorIndex ?? s, this.color = e.color ?? a;
|
|
270
271
|
}
|
|
271
272
|
setNestedProperty(e, t, n) {
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
let r = n.split(".");
|
|
274
|
+
return r.some((e) => e === "__proto__" || e === "constructor") || r.reduce(function(e, n, r, i) {
|
|
275
|
+
return e[n] = i.length - 1 === r ? t : d(e[n], !0) && Object.hasOwnProperty.call(e, n) ? e[n] : {}, e[n];
|
|
274
276
|
}, e), e;
|
|
275
277
|
}
|
|
276
278
|
shouldDraw() {
|
|
@@ -280,25 +282,23 @@ var H = {
|
|
|
280
282
|
let { chart: t, pointArrayMap: n = ["y"], tooltipOptions: r } = this.series, { valueDecimals: i = "", valuePrefix: a = "", valueSuffix: o = "" } = r;
|
|
281
283
|
return t.styledMode && (e = t.tooltip?.styledModeFormat(e) || e), n.forEach((t) => {
|
|
282
284
|
t = "{point." + t, (a || o) && (e = e.replace(RegExp(t + "}", "g"), a + t + "}" + o)), e = e.replace(RegExp(t + "}", "g"), t + ":,." + i + "f}");
|
|
283
|
-
}),
|
|
285
|
+
}), H(e, this, t);
|
|
284
286
|
}
|
|
285
287
|
update(e, t = !0, r, i) {
|
|
286
288
|
let a = this, o = a.series, s = a.graphic, c = o.chart, l = o.options, u = l.data;
|
|
287
|
-
function
|
|
288
|
-
a.applyOptions(e);
|
|
289
|
-
let i =
|
|
290
|
-
|
|
291
|
-
let m = a.optionsToObject(e);
|
|
292
|
-
o.hasProcessedDataTable || (o.dataTable.setRow(m, d), u && (u[d] = f(u[d], !0) || f(e, !0) ? a.options : e ?? u[d])), o.isDirty = o.isDirtyData = !0, "x" in m && (n(m.x) && (o.xColumnIsNumbers = void 0), a.x = o.getX(m.x), a.isNull = a.isValid && !a.isValid(), o.xColumn && (o.xColumn[d] = a.x)), !o.fixedBox && o.hasCartesianSeries && (c.isDirtyBox = !0), l.legendType === "point" && (c.isDirtyLegend = !0), t && c.redraw(r);
|
|
289
|
+
function f() {
|
|
290
|
+
a.applyOptions(e), s && a.y === null && !a.hasMockGraphic && (a.graphic = s.destroy()), d(e, !0) && (s?.element && e?.marker && e.marker.symbol !== void 0 && (a.graphic = s.destroy()), e?.dataLabels && a.dataLabel && (a.dataLabel = a.dataLabel.destroy()));
|
|
291
|
+
let i = a.index, f = a.optionsToObject(e);
|
|
292
|
+
o.hasProcessedDataTable || (o.dataTable.setRow(f, i), u && (u[i] = d(u[i], !0) || d(e, !0) ? a.options : e ?? u[i])), o.isDirty = o.isDirtyData = !0, "x" in f && (n(f.x) && (o.xColumnIsNumbers = void 0), a.x = o.getX(f.x), a.isNull = a.isValid && !a.isValid(), o.xColumn && (o.xColumn[i] = a.x)), !o.fixedBox && o.hasCartesianSeries && (c.isDirtyBox = !0), l.legendType === "point" && (c.isDirtyLegend = !0), t && c.redraw(r);
|
|
293
293
|
}
|
|
294
|
-
i === !1 ?
|
|
294
|
+
i === !1 ? f() : a.firePointEvent("update", { options: e }, f);
|
|
295
295
|
}
|
|
296
296
|
remove(e, t) {
|
|
297
297
|
this.series.removePoint(this.series.data.indexOf(this), e, t);
|
|
298
298
|
}
|
|
299
299
|
select(e, t) {
|
|
300
300
|
let n = this, r = n.series, i = r.chart;
|
|
301
|
-
e
|
|
301
|
+
e ??= !n.selected, this.selectedStaging = e, n.firePointEvent(e ? "select" : "unselect", { accumulate: t }, function() {
|
|
302
302
|
n.selected = n.options.selected = e, r.options.data && (r.options.data[r.data.indexOf(n)] = n.options), n.setState(e && "select"), t || i.getSelectedPoints().forEach(function(e) {
|
|
303
303
|
let t = e.series, r = t.options;
|
|
304
304
|
e.selected && e !== n && (e.selected = e.options.selected = !1, r.data && (r.data[t.data.indexOf(e)] = e.options), e.setState(i.hoverPoints && r.inactiveOtherPoints ? "inactive" : ""), e.firePointEvent("unselect"));
|
|
@@ -319,58 +319,58 @@ var H = {
|
|
|
319
319
|
}
|
|
320
320
|
manageEvent(e) {
|
|
321
321
|
let t = this, n = o(t.series.options.point, t.options).events?.[e];
|
|
322
|
-
r(n) && (!t.hcEvents?.[e] || t.hcEvents?.[e]?.map((e) => e.fn).indexOf(n) === -1) ? (t.importedUserEvent?.(), t.importedUserEvent =
|
|
322
|
+
r(n) && (!t.hcEvents?.[e] || t.hcEvents?.[e]?.map((e) => e.fn).indexOf(n) === -1) ? (t.importedUserEvent?.(), t.importedUserEvent = m(t, e, n), t.hcEvents && (t.hcEvents[e].userEvent = !0)) : t.importedUserEvent && !n && t.hcEvents?.[e] && t.hcEvents?.[e].userEvent && (x(t, e), delete t.hcEvents[e], Object.keys(t.hcEvents) || delete t.importedUserEvent);
|
|
323
323
|
}
|
|
324
324
|
setState(e, t) {
|
|
325
|
-
let n = this, r = n.series, i = n.state, a = r.options.states?.[e || "normal"] || {}, c =
|
|
326
|
-
if (e ||= "", e === n.state && !t || n.selected && e !== "select" || a.enabled === !1 || e && (
|
|
327
|
-
if (n.state = e,
|
|
328
|
-
if (i && n.graphic.removeClass("highcharts-point-" + i), e && n.graphic.addClass("highcharts-point-" + e), !
|
|
329
|
-
|
|
330
|
-
let t =
|
|
331
|
-
r.options.inactiveOtherPoints &&
|
|
332
|
-
e && !e.hasClass("highcharts-data-label-hidden") && (e.animate({ opacity: t },
|
|
333
|
-
}), n.graphic.animate(
|
|
325
|
+
let n = this, r = n.series, i = n.state, a = r.options.states?.[e || "normal"] || {}, c = V.plotOptions?.[r.type]?.marker && r.options.marker, l = c?.enabled === !1, f = c?.states?.[e || "normal"] || {}, p = f.enabled === !1, m = n.marker || {}, g = r.chart, _ = c && r.markerAttribs, v = r.halo, y, b, x, S = r.stateMarkerGraphic, C;
|
|
326
|
+
if (e ||= "", e === n.state && !t || n.selected && e !== "select" || a.enabled === !1 || e && (p || l && f.enabled === !1) || e && m.states?.[e]?.enabled === !1) return;
|
|
327
|
+
if (n.state = e, _ && (y = r.markerAttribs(n, e)), n.graphic && !n.hasMockGraphic) {
|
|
328
|
+
if (i && n.graphic.removeClass("highcharts-point-" + i), e && n.graphic.addClass("highcharts-point-" + e), !g.styledMode) {
|
|
329
|
+
b = r.pointAttribs(n, e), x = g.options.chart.animation ?? a.animation;
|
|
330
|
+
let t = b.opacity;
|
|
331
|
+
r.options.inactiveOtherPoints && u(t) && (n.dataLabels || []).forEach(function(e) {
|
|
332
|
+
e && !e.hasClass("highcharts-data-label-hidden") && (e.animate({ opacity: t }, x), e.connector && e.connector.animate({ opacity: t }, x));
|
|
333
|
+
}), n.graphic.animate(b, x);
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} else e &&
|
|
337
|
-
x:
|
|
338
|
-
y:
|
|
339
|
-
}) :
|
|
340
|
-
let
|
|
341
|
-
|
|
342
|
-
class: "highcharts-halo highcharts-color-" +
|
|
343
|
-
visibility:
|
|
335
|
+
y && n.graphic.animate(y, g.options.chart.animation ?? f.animation ?? c.animation), S && S.hide();
|
|
336
|
+
} else e && f && (C = m.symbol || r.symbol, S && S.currentSymbol !== C && (S = S.destroy()), y && (S ? S[t ? "animate" : "attr"]({
|
|
337
|
+
x: y.x,
|
|
338
|
+
y: y.y
|
|
339
|
+
}) : C && (r.stateMarkerGraphic = S = g.renderer.symbol(C, y.x, y.y, y.width, y.height, o(c, f)).add(r.markerGroup), S.currentSymbol = C)), !g.styledMode && S && n.state !== "inactive" && S.attr(r.pointAttribs(n, e))), S && (S[e && n.isInside ? "show" : "hide"](), S.element.point = n, S.addClass(n.getClassName(), !0));
|
|
340
|
+
let w = d(a.halo) ? a.halo : {}, T = n.graphic || S, E = T?.visibility || "inherit";
|
|
341
|
+
w.size && T && E !== "hidden" && !n.isCluster ? (v || (r.halo = v = g.renderer.path().add(T.parentGroup)), v.show()[t ? "animate" : "attr"]({ d: n.haloPath(w.size) }), v.attr({
|
|
342
|
+
class: "highcharts-halo highcharts-color-" + (n.colorIndex ?? r.colorIndex) + (n.className ? " " + n.className : ""),
|
|
343
|
+
visibility: E,
|
|
344
344
|
zIndex: -1
|
|
345
|
-
}),
|
|
345
|
+
}), v.point = n, g.styledMode || v.attr(h({
|
|
346
346
|
fill: n.color || r.color,
|
|
347
|
-
"fill-opacity":
|
|
348
|
-
},
|
|
347
|
+
"fill-opacity": w.opacity
|
|
348
|
+
}, A.filterUserAttributes(w.attributes || {})))) : v?.point?.haloPath && !v.point.destroyed && v.animate({ d: v.point.haloPath(0) }, null, v.hide), s(n, "afterSetState", { state: e });
|
|
349
349
|
}
|
|
350
350
|
haloPath(e) {
|
|
351
351
|
let t = this.pos();
|
|
352
|
-
return t ? this.series.chart.renderer.symbols.circle(
|
|
352
|
+
return t ? this.series.chart.renderer.symbols.circle(l(t[0], 1) - e, t[1] - e, e * 2, e * 2) : [];
|
|
353
353
|
}
|
|
354
|
-
}, { defaultOptions:
|
|
354
|
+
}, { defaultOptions: W } = p, G;
|
|
355
355
|
(function(t) {
|
|
356
|
-
t.seriesTypes =
|
|
356
|
+
t.seriesTypes = g.seriesTypes;
|
|
357
357
|
function n(e, n) {
|
|
358
|
-
let r =
|
|
359
|
-
return a.type = e, a.pointClass ||=
|
|
358
|
+
let r = W.plotOptions || {}, i = n.defaultOptions, a = n.prototype;
|
|
359
|
+
return a.type = e, a.pointClass ||= U, !t.seriesTypes[e] && (i && (r[e] = i), t.seriesTypes[e] = n, !0);
|
|
360
360
|
}
|
|
361
361
|
t.registerSeriesType = n;
|
|
362
362
|
function r(r, i, a, s, c) {
|
|
363
|
-
let l =
|
|
363
|
+
let l = W.plotOptions || {};
|
|
364
364
|
i ||= "", l[r] = o(l[i], a), delete t.seriesTypes[r];
|
|
365
|
-
let u = t.seriesTypes[i] ||
|
|
365
|
+
let u = t.seriesTypes[i] || g.Series;
|
|
366
366
|
if (n(r, e(u, s)), t.seriesTypes[r].prototype.type = r, c) {
|
|
367
|
-
class e extends
|
|
368
|
-
|
|
367
|
+
class e extends U {}
|
|
368
|
+
h(e.prototype, c), t.seriesTypes[r].prototype.pointClass = e;
|
|
369
369
|
}
|
|
370
370
|
return t.seriesTypes[r];
|
|
371
371
|
}
|
|
372
372
|
t.seriesType = r;
|
|
373
|
-
})(
|
|
374
|
-
var
|
|
373
|
+
})(G ||= {});
|
|
374
|
+
var K = G;
|
|
375
375
|
//#endregion
|
|
376
|
-
export {
|
|
376
|
+
export { A as i, U as n, B as r, K as t };
|