@dpuse/dpuse-tool-highcharts-visualiser 0.0.79 → 0.0.82
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-CJw-tdb_.js} +74 -83
- package/dist/AnimationUtilities-CJw-tdb_.js.map +1 -0
- package/dist/BorderRadius-CqHYi9va.js +135 -0
- package/dist/BorderRadius-CqHYi9va.js.map +1 -0
- package/dist/CenteredUtilities-BTUT7_Ld.js +1316 -0
- package/dist/CenteredUtilities-BTUT7_Ld.js.map +1 -0
- package/dist/{SVGElement-BmvC_qu3.js → SVGElement-uTuGcjav.js} +101 -103
- package/dist/SVGElement-uTuGcjav.js.map +1 -0
- package/dist/SeriesRegistry-CXsAINSj.js +376 -0
- package/dist/SeriesRegistry-CXsAINSj.js.map +1 -0
- package/dist/{TextPath-DK4Jkzd7.js → TextPath-Coabnrz0.js} +32 -34
- package/dist/{TextPath-DK4Jkzd7.js.map → TextPath-Coabnrz0.js.map} +1 -1
- package/dist/{dependency-wheel.src-BHmwx9rW.js → dependency-wheel.src-ByNiAiZS.js} +26 -27
- package/dist/dependency-wheel.src-ByNiAiZS.js.map +1 -0
- package/dist/dpuse-tool-highcharts-visualiser.es.js +2437 -2415
- package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -1
- package/dist/highchartsMoreCustom-Cm6MkFMu.js +1178 -0
- package/dist/highchartsMoreCustom-Cm6MkFMu.js.map +1 -0
- package/dist/{pattern-fill.src-BPmr3DQg.js → pattern-fill.src-CGZp553r.js} +30 -32
- package/dist/{pattern-fill.src-BPmr3DQg.js.map → pattern-fill.src-CGZp553r.js.map} +1 -1
- package/dist/{sankey.src-DocCurOx.js → sankey.src-Buj1zAlU.js} +115 -117
- package/dist/sankey.src-Buj1zAlU.js.map +1 -0
- package/dist/{streamgraph.src-Bn6PY8Fd.js → streamgraph.src-DjMW1U2g.js} +4 -6
- package/dist/{streamgraph.src-Bn6PY8Fd.js.map → streamgraph.src-DjMW1U2g.js.map} +1 -1
- package/package.json +12 -12
- 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/sankey.src-DocCurOx.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, C as t, G as n, H as r, J as i, K as a, M as o, N as s, O as c, Q as l, S as u, U as d, W as f, X as p, a as m, at as h, h as g, k as _, lt as v, n as y, nt as b, p as x, s as S, t as C, v as w, w as T, x as E, z as D } from "./AnimationUtilities-CJw-tdb_.js";
|
|
2
2
|
//#region node_modules/highcharts/es-modules/Core/Renderer/SVG/SVGElement.js
|
|
3
|
-
var {
|
|
3
|
+
var { deg2rad: O, doc: k, svg: A, SVG_NS: j, win: M, isFirefox: N } = v, P = class P {
|
|
4
4
|
_defaultGetter(e) {
|
|
5
|
-
let t =
|
|
5
|
+
let t = l(this[e + "Value"], this[e], this.element ? this.element.getAttribute(e) : null, 0);
|
|
6
6
|
return /^-?[\d\.]+$/.test(t) && (t = parseFloat(t)), t;
|
|
7
7
|
}
|
|
8
8
|
_defaultSetter(e, t, n) {
|
|
@@ -21,13 +21,13 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
21
21
|
afterSetters() {
|
|
22
22
|
this.doTransform &&= (this.updateTransform(), !1);
|
|
23
23
|
}
|
|
24
|
-
align(
|
|
25
|
-
let o = this.renderer,
|
|
26
|
-
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
let f =
|
|
30
|
-
return
|
|
24
|
+
align(t, r, i, a = !0) {
|
|
25
|
+
let o = this.renderer, c = o.alignedObjects, u = !!t;
|
|
26
|
+
t ? (this.alignOptions = t, this.alignByTranslate = r, this.alignTo = i) : (t = this.alignOptions || {}, r = this.alignByTranslate, i = this.alignTo);
|
|
27
|
+
let d = !i || n(i) ? i || "renderer" : void 0;
|
|
28
|
+
d && (u && e(c, this), i = void 0);
|
|
29
|
+
let f = l(i, o[d], o), p = (f.x || 0) + (t.x || 0) + ((f.width || 0) - (t.width || 0)) * s(t.align), m = (f.y || 0) + (t.y || 0) + ((f.height || 0) - (t.height || 0)) * s(t.verticalAlign), h = {};
|
|
30
|
+
return t.align && (h["text-align"] = t.align), h[r ? "translateX" : "x"] = Math.round(p), h[r ? "translateY" : "y"] = Math.round(m), a && (this[this.placed ? "animate" : "attr"](h), this.placed = !0), this.alignAttr = h, this;
|
|
31
31
|
}
|
|
32
32
|
alignSetter(e) {
|
|
33
33
|
let t = {
|
|
@@ -38,27 +38,27 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
38
38
|
t[e] && (this.alignValue = e, this.element.setAttribute("text-anchor", t[e]));
|
|
39
39
|
}
|
|
40
40
|
animate(e, t, n) {
|
|
41
|
-
let r =
|
|
42
|
-
return
|
|
41
|
+
let r = C(l(t, this.renderer.globalAnimation, !0)), a = r.defer;
|
|
42
|
+
return k.hidden && (r.duration = 0), r.duration === 0 ? (this.attr(e, void 0, n || r.complete), i(e, function(e, t) {
|
|
43
43
|
r.step && r.step.call(this, e, {
|
|
44
44
|
prop: t,
|
|
45
45
|
pos: 1,
|
|
46
46
|
elem: this
|
|
47
47
|
});
|
|
48
|
-
}, this)) : (n && (r.complete = n),
|
|
49
|
-
this.element &&
|
|
48
|
+
}, this)) : (n && (r.complete = n), h(() => {
|
|
49
|
+
this.element && y(this, e, r);
|
|
50
50
|
}, a)), this;
|
|
51
51
|
}
|
|
52
52
|
applyTextOutline(e) {
|
|
53
53
|
let t = this.element;
|
|
54
54
|
e.indexOf("contrast") !== -1 && (e = e.replace(/contrast/g, this.renderer.getContrast(t.style.fill)));
|
|
55
55
|
let n = e.indexOf(" "), r = e.substring(n + 1), i = e.substring(0, n);
|
|
56
|
-
if (i && i !== "none" &&
|
|
56
|
+
if (i && i !== "none" && v.svg) {
|
|
57
57
|
this.fakeTS = !0, i = i.replace(/(^[\d\.]+)(.*?)$/g, function(e, t, n) {
|
|
58
58
|
return 2 * Number(t) + n;
|
|
59
59
|
}), this.removeTextOutline();
|
|
60
|
-
let e =
|
|
61
|
-
|
|
60
|
+
let e = k.createElementNS(j, "tspan");
|
|
61
|
+
w(e, {
|
|
62
62
|
class: "highcharts-text-outline",
|
|
63
63
|
fill: r,
|
|
64
64
|
stroke: r,
|
|
@@ -79,23 +79,23 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
79
79
|
[].forEach.call(n.querySelectorAll("text tspan"), (e) => {
|
|
80
80
|
a += Number(e.getAttribute("dy"));
|
|
81
81
|
});
|
|
82
|
-
let o =
|
|
83
|
-
o.textContent = "",
|
|
82
|
+
let o = k.createElementNS(j, "tspan");
|
|
83
|
+
o.textContent = "", w(o, {
|
|
84
84
|
x: Number(t.getAttribute("x")),
|
|
85
85
|
dy: -a
|
|
86
86
|
}), e.appendChild(o), n.insertBefore(e, n.firstChild);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
attr(e, t, n, r) {
|
|
90
|
-
let { element: a } = this, o =
|
|
90
|
+
let { element: a } = this, o = P.symbolCustomAttribs, s, c, l = this, u, d;
|
|
91
91
|
return typeof e == "string" && t !== void 0 && (s = e, e = {}, e[s] = t), typeof e == "string" ? l = (this[e + "Getter"] || this._defaultGetter).call(this, e, a) : (i(e, function(t, n) {
|
|
92
|
-
u = !1, r ||
|
|
92
|
+
u = !1, r || m(this, n), this.symbolName && o.indexOf(n) !== -1 && (c ||= (this.symbolAttr(e), !0), u = !0), this.rotation && (n === "x" || n === "y") && (this.doTransform = !0), u || (d = this[n + "Setter"] || this._defaultSetter, d.call(this, t, n, a));
|
|
93
93
|
}, this), this.afterSetters()), n && n.call(this), l;
|
|
94
94
|
}
|
|
95
95
|
clip(e) {
|
|
96
96
|
if (e && !e.clipPath) {
|
|
97
97
|
let t = x() + "-", n = this.renderer.createElement("clipPath").attr({ id: t }).add(this.renderer.defs);
|
|
98
|
-
|
|
98
|
+
_(e, {
|
|
99
99
|
clipPath: n,
|
|
100
100
|
id: t,
|
|
101
101
|
count: 0
|
|
@@ -105,34 +105,34 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
105
105
|
}
|
|
106
106
|
crisp(e, t) {
|
|
107
107
|
t = Math.round(t || e.strokeWidth || 0);
|
|
108
|
-
let n = e.x || this.x || 0,
|
|
109
|
-
return
|
|
110
|
-
x:
|
|
111
|
-
y:
|
|
112
|
-
width:
|
|
113
|
-
height:
|
|
114
|
-
}),
|
|
108
|
+
let n = e.x || this.x || 0, r = e.y || this.y || 0, i = (e.width || this.width || 0) + n, a = (e.height || this.height || 0) + r, o = u(n, t), s = u(r, t), c = u(i, t), l = u(a, t);
|
|
109
|
+
return _(e, {
|
|
110
|
+
x: o,
|
|
111
|
+
y: s,
|
|
112
|
+
width: c - o,
|
|
113
|
+
height: l - s
|
|
114
|
+
}), T(e.strokeWidth) && (e.strokeWidth = t), e;
|
|
115
115
|
}
|
|
116
116
|
complexColor(e, t, n) {
|
|
117
|
-
let r = this.renderer,
|
|
118
|
-
|
|
119
|
-
if (e.radialGradient ?
|
|
120
|
-
if (l = e[
|
|
117
|
+
let r = this.renderer, s, c, l, u, d, f, p, m, h, g = [], _;
|
|
118
|
+
o(this.renderer, "complexColor", { args: arguments }, () => {
|
|
119
|
+
if (e.radialGradient ? c = "radialGradient" : e.linearGradient && (c = "linearGradient"), c) {
|
|
120
|
+
if (l = e[c], d = r.gradients, f = e.stops, m = n.radialReference, D(l) && (e[c] = l = {
|
|
121
121
|
x1: l[0],
|
|
122
122
|
y1: l[1],
|
|
123
123
|
x2: l[2],
|
|
124
124
|
y2: l[3],
|
|
125
125
|
gradientUnits: "userSpaceOnUse"
|
|
126
|
-
}),
|
|
127
|
-
t !== "id" &&
|
|
126
|
+
}), c === "radialGradient" && m && !T(l.gradientUnits) && (u = l, l = a(l, r.getRadialAttr(m, u), { gradientUnits: "userSpaceOnUse" })), i(l, function(e, t) {
|
|
127
|
+
t !== "id" && g.push(t, e);
|
|
128
128
|
}), i(f, function(e) {
|
|
129
|
-
|
|
130
|
-
}),
|
|
129
|
+
g.push(e);
|
|
130
|
+
}), g = g.join(","), d[g]) h = d[g].attr("id");
|
|
131
131
|
else {
|
|
132
|
-
l.id =
|
|
133
|
-
let e = d[
|
|
132
|
+
l.id = h = x();
|
|
133
|
+
let e = d[g] = r.createElement(c).attr(l).add(r.defs);
|
|
134
134
|
e.radAttr = u, e.stops = [], f.forEach(([t, n]) => {
|
|
135
|
-
n.indexOf("rgba") === 0 ? (
|
|
135
|
+
n.indexOf("rgba") === 0 ? (s = S.parse(n), n = s.get("rgb"), p = s.get("a")) : p = 1;
|
|
136
136
|
let i = r.createElement("stop").attr({
|
|
137
137
|
offset: t,
|
|
138
138
|
"stop-color": n,
|
|
@@ -141,27 +141,27 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
141
141
|
e.stops.push(i);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
return
|
|
144
|
+
_ = "url(" + r.url + "#" + h + ")", n.setAttribute(t, _), n.gradient = g, e.toString = function() {
|
|
145
|
+
return _;
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
css(e) {
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
}),
|
|
155
|
-
|
|
156
|
-
let i =
|
|
157
|
-
i && (
|
|
158
|
-
let
|
|
151
|
+
let n = this.styles, r = {}, o = this.element, s = this.renderer, c, l = !n;
|
|
152
|
+
if (n && i(e, function(e, t) {
|
|
153
|
+
n && n[t] !== e && (r[t] = e, l = !0);
|
|
154
|
+
}), l) {
|
|
155
|
+
n && (e = _(n, r)), e.width === null || e.width === "auto" ? delete this.textWidth : o.nodeName.toLowerCase() === "text" && e.width && (c = this.textWidth = p(e.width)), _(this.styles, e), c && !A && s.forExport && delete e.width;
|
|
156
|
+
let i = N && e.fontSize || null;
|
|
157
|
+
i && (d(i) || /^\d+$/.test(i)) && (e.fontSize += "px");
|
|
158
|
+
let l = a(e);
|
|
159
159
|
o.namespaceURI === this.SVG_NS && ([
|
|
160
160
|
"textOutline",
|
|
161
161
|
"textOverflow",
|
|
162
162
|
"whiteSpace",
|
|
163
163
|
"width"
|
|
164
|
-
].forEach((e) =>
|
|
164
|
+
].forEach((e) => l && delete l[e]), l.color && (l.fill = l.color, delete l.color)), t(o, l);
|
|
165
165
|
}
|
|
166
166
|
return this.added && (this.element.nodeName === "text" && s.buildText(this), e.textOutline && this.applyTextOutline(e.textOutline)), this;
|
|
167
167
|
}
|
|
@@ -170,13 +170,13 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
170
170
|
if (n === "inherit" && (n = 1), e) {
|
|
171
171
|
e = e.toLowerCase();
|
|
172
172
|
let r = e.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
|
|
173
|
-
for (t = r.length; t--;) r[t] = "" +
|
|
173
|
+
for (t = r.length; t--;) r[t] = "" + p(r[t]) * l(n, NaN);
|
|
174
174
|
e = r.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", e);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
destroy() {
|
|
178
178
|
let e = this, { element: t = {}, renderer: n, stops: r } = e, a = t.ownerSVGElement;
|
|
179
|
-
if (t.onclick = t.onmouseout = t.onmouseover = t.onmousemove = t.point = null,
|
|
179
|
+
if (t.onclick = t.onmouseout = t.onmouseover = t.onmousemove = t.point = null, m(e), e.clipPath && a) {
|
|
180
180
|
let t = e.clipPath;
|
|
181
181
|
[].forEach.call(a.querySelectorAll("[clip-path],[CLIP-PATH]"), function(e) {
|
|
182
182
|
e.getAttribute("clip-path").indexOf(t.element.id) > -1 && e.removeAttribute("clip-path");
|
|
@@ -186,12 +186,12 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
186
186
|
for (let e of r) e.destroy();
|
|
187
187
|
r.length = 0;
|
|
188
188
|
}
|
|
189
|
-
e.safeRemoveChild(t), e.alignOptions &&
|
|
189
|
+
e.safeRemoveChild(t), e.alignOptions && c(n.alignedObjects, e), i(e, (t, n) => {
|
|
190
190
|
(e[n]?.parentGroup === e || ["connector", "foreignObject"].indexOf(n) !== -1) && e[n]?.destroy?.(), delete e[n];
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
dSetter(e, t, n) {
|
|
194
|
-
|
|
194
|
+
D(e) && (typeof e[0] == "string" && (e = this.renderer.pathToSegments(e)), this.pathArray = e, e = e.reduce((e, t, n) => t?.join ? (n ? e + " " : "") + t.join(" ") : (t || "").toString(), "")), /(NaN| {2}|^$)/.test(e) && (e = "M 0 0"), this[t] !== e && (n.setAttribute(t, e), this[t] = e);
|
|
195
195
|
}
|
|
196
196
|
fillSetter(e, t, n) {
|
|
197
197
|
typeof e == "string" ? n.setAttribute(t, e) : e && this.complexColor(e, t, n);
|
|
@@ -199,29 +199,29 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
199
199
|
hrefSetter(e, t, n) {
|
|
200
200
|
n.setAttributeNS("http://www.w3.org/1999/xlink", t, e);
|
|
201
201
|
}
|
|
202
|
-
getBBox(e,
|
|
203
|
-
let
|
|
204
|
-
|
|
202
|
+
getBBox(e, n) {
|
|
203
|
+
let i = this, { element: a, renderer: s, styles: c, textStr: u } = i, { cache: d, cacheKeys: f } = s, p = a.namespaceURI === i.SVG_NS, m = l(n, i.rotation, 0), h = s.styledMode ? a && P.prototype.getStyle.call(a, "font-size") : c.fontSize, g = this.getBBoxCacheKey([
|
|
204
|
+
s.rootFontSize,
|
|
205
205
|
this.textWidth,
|
|
206
206
|
this.alignValue,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
c.fontWeight,
|
|
208
|
+
c.lineClamp,
|
|
209
|
+
c.textOverflow,
|
|
210
|
+
h,
|
|
211
|
+
m
|
|
212
212
|
]), v, y, b;
|
|
213
|
-
if (
|
|
214
|
-
if (
|
|
213
|
+
if (g && !e && (v = d[g]), !v || v.polygon) {
|
|
214
|
+
if (p || s.forExport) {
|
|
215
215
|
try {
|
|
216
216
|
b = this.fakeTS && function(e) {
|
|
217
|
-
let
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
width:
|
|
221
|
-
height:
|
|
217
|
+
let n = a.querySelector(".highcharts-text-outline");
|
|
218
|
+
n && t(n, { display: e });
|
|
219
|
+
}, r(b) && b("none"), v = a.getBBox ? _({}, a.getBBox()) : {
|
|
220
|
+
width: a.offsetWidth,
|
|
221
|
+
height: a.offsetHeight,
|
|
222
222
|
x: 0,
|
|
223
223
|
y: 0
|
|
224
|
-
},
|
|
224
|
+
}, r(b) && b("");
|
|
225
225
|
} catch {}
|
|
226
226
|
(!v || v.width < 0) && (v = {
|
|
227
227
|
x: 0,
|
|
@@ -229,43 +229,43 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
229
229
|
width: 0,
|
|
230
230
|
height: 0
|
|
231
231
|
});
|
|
232
|
-
} else v =
|
|
233
|
-
y = v.height,
|
|
232
|
+
} else v = i.htmlGetBBox();
|
|
233
|
+
y = v.height, p && (v.height = y = {
|
|
234
234
|
"11px,17": 14,
|
|
235
235
|
"13px,20": 16
|
|
236
|
-
}[`${
|
|
236
|
+
}[`${h || ""},${Math.round(y)}`] || y), m && (v = this.getRotatedBox(v, m));
|
|
237
237
|
let e = { bBox: v };
|
|
238
|
-
|
|
238
|
+
o(this, "afterGetBBox", e), v = e.bBox;
|
|
239
239
|
}
|
|
240
|
-
if (
|
|
241
|
-
for (;
|
|
242
|
-
|
|
240
|
+
if (g && (u === "" || v.height > 0)) {
|
|
241
|
+
for (; f.length > 250;) delete d[f.shift()];
|
|
242
|
+
d[g] || f.push(g), d[g] = v;
|
|
243
243
|
}
|
|
244
244
|
return v;
|
|
245
245
|
}
|
|
246
246
|
getBBoxCacheKey(e) {
|
|
247
|
-
if (
|
|
247
|
+
if (T(this.textStr)) {
|
|
248
248
|
let t = "" + this.textStr;
|
|
249
249
|
return t.indexOf("<") === -1 && (t = t.replace(/\d/g, "0")), [t, ...e].join(",");
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
getRotatedBox(e,
|
|
253
|
-
let { x:
|
|
252
|
+
getRotatedBox(e, t) {
|
|
253
|
+
let { x: n, y: r, width: i, height: a } = e, { alignValue: o, translateY: c, rotationOriginX: l = 0, rotationOriginY: u = 0 } = this, d = s(o), f = Number(this.element.getAttribute("y") || 0) - (c ? 0 : r), p = t * O, m = (t - 90) * O, h = Math.cos(p), g = Math.sin(p), _ = i * h, v = i * g, y = Math.cos(m), b = Math.sin(m), [[x, S], [C, w]] = [l, u].map((e) => [e - e * h, e * g]), T = n + d * (i - _) + x + w, E = r + f - d * v - S + C, D = T + f * y, k = D + _, A = k - a * y, j = A - _, M = E + f * b, N = M + v, P = N - a * b, F = P - v, I = Math.min(D, k, A, j), L = Math.min(M, N, P, F);
|
|
254
254
|
return {
|
|
255
255
|
x: I,
|
|
256
256
|
y: L,
|
|
257
|
-
width: Math.max(D,
|
|
257
|
+
width: Math.max(D, k, A, j) - I,
|
|
258
258
|
height: Math.max(M, N, P, F) - L,
|
|
259
259
|
polygon: [
|
|
260
260
|
[D, M],
|
|
261
|
-
[
|
|
261
|
+
[k, N],
|
|
262
262
|
[A, P],
|
|
263
263
|
[j, F]
|
|
264
264
|
]
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
getStyle(e) {
|
|
268
|
-
return
|
|
268
|
+
return M.getComputedStyle(this.element || this, "").getPropertyValue(e);
|
|
269
269
|
}
|
|
270
270
|
hasClass(e) {
|
|
271
271
|
return ("" + this.attr("class")).split(" ").indexOf(e) !== -1;
|
|
@@ -282,11 +282,11 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
constructor(e, t) {
|
|
285
|
-
this.onEvents = {}, this.opacity = 1, this.SVG_NS =
|
|
285
|
+
this.onEvents = {}, this.opacity = 1, this.SVG_NS = j, this.element = t === "div" || t === "body" ? E(t) : k.createElementNS(this.SVG_NS, t), this.renderer = e, this.styles = {}, o(this, "afterInit");
|
|
286
286
|
}
|
|
287
287
|
on(e, t) {
|
|
288
288
|
let { onEvents: n } = this;
|
|
289
|
-
return n[e] && n[e](), n[e] =
|
|
289
|
+
return n[e] && n[e](), n[e] = g(this.element, e, t), this;
|
|
290
290
|
}
|
|
291
291
|
opacitySetter(e, t, n) {
|
|
292
292
|
let r = Number(Number(e).toFixed(3));
|
|
@@ -296,7 +296,7 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
296
296
|
this.alignOptions?.width && this.alignOptions.align !== "left" && (this.alignOptions.width = this.getBBox().width, this.placed = !1, this.align());
|
|
297
297
|
}
|
|
298
298
|
removeClass(e) {
|
|
299
|
-
return this.attr("class", ("" + this.attr("class")).replace(
|
|
299
|
+
return this.attr("class", ("" + this.attr("class")).replace(n(e) ? RegExp(`(^| )${e}( |$)`) : e, " ").replace(/ +/g, " ").trim());
|
|
300
300
|
}
|
|
301
301
|
removeTextOutline() {
|
|
302
302
|
let e = this.element.querySelector("tspan.highcharts-text-outline");
|
|
@@ -311,10 +311,10 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
311
311
|
return this.element.radialReference = e, t?.radAttr && t.animate(this.renderer.getRadialAttr(e, t.radAttr)), this;
|
|
312
312
|
}
|
|
313
313
|
shadow(e) {
|
|
314
|
-
let { renderer: t } = this, n =
|
|
314
|
+
let { renderer: t } = this, n = a(this.parentGroup?.rotation === 90 ? {
|
|
315
315
|
offsetX: -1,
|
|
316
316
|
offsetY: -1
|
|
317
|
-
} : {},
|
|
317
|
+
} : {}, f(e) ? e : {}), r = t.shadowDefinition(n);
|
|
318
318
|
return this.attr({ filter: e ? `url(${t.url}#${r})` : "none" });
|
|
319
319
|
}
|
|
320
320
|
show(e = !0) {
|
|
@@ -326,23 +326,23 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
326
326
|
strokeWidth() {
|
|
327
327
|
if (!this.renderer.styledMode) return this["stroke-width"] || 0;
|
|
328
328
|
let e = this.getStyle("stroke-width"), t = 0, n;
|
|
329
|
-
return /px$/.test(e) ? t =
|
|
329
|
+
return /px$/.test(e) ? t = p(e) : e !== "" && (n = k.createElementNS(j, "rect"), w(n, {
|
|
330
330
|
width: e,
|
|
331
331
|
"stroke-width": 0
|
|
332
332
|
}), this.element.parentNode.appendChild(n), t = n.getBBox().width, n.parentNode.removeChild(n)), t;
|
|
333
333
|
}
|
|
334
334
|
symbolAttr(e) {
|
|
335
335
|
let t = this;
|
|
336
|
-
|
|
337
|
-
t[n] =
|
|
336
|
+
P.symbolCustomAttribs.forEach(function(n) {
|
|
337
|
+
t[n] = l(e[n], t[n]);
|
|
338
338
|
}), t.attr({ d: t.renderer.symbols[t.symbolName](t.x, t.y, t.width, t.height, t) });
|
|
339
339
|
}
|
|
340
340
|
textSetter(e) {
|
|
341
341
|
e !== this.textStr && (delete this.textPxLength, this.textStr = e, this.added && this.renderer.buildText(this), this.reAlign());
|
|
342
342
|
}
|
|
343
|
-
titleSetter(
|
|
344
|
-
let
|
|
345
|
-
|
|
343
|
+
titleSetter(e) {
|
|
344
|
+
let t = this.element, n = t.getElementsByTagName("title")[0] || k.createElementNS(this.SVG_NS, "title");
|
|
345
|
+
t.insertBefore ? t.insertBefore(n, t.firstChild) : t.appendChild(n), n.textContent = b(l(e, ""), [/<[^>]*>/g, ""]).replace(/</g, "<").replace(/>/g, ">");
|
|
346
346
|
}
|
|
347
347
|
toFront() {
|
|
348
348
|
let e = this.element;
|
|
@@ -356,7 +356,7 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
356
356
|
}
|
|
357
357
|
updateTransform(e = "transform") {
|
|
358
358
|
let { element: t, foreignObject: n, matrix: r, rotation: i = 0, rotationOriginX: a, rotationOriginY: o, scaleX: s, scaleY: c, text: l, translateX: u = 0, translateY: d = 0 } = this, f = [`translate(${u},${d})`];
|
|
359
|
-
|
|
359
|
+
T(r) && f.push("matrix(" + r.join(",") + ")"), i && f.push("rotate(" + i + " " + (a ?? t.getAttribute("x") ?? this.x ?? 0) + " " + (o ?? t.getAttribute("y") ?? this.y ?? 0) + ")"), (T(s) || T(c)) && f.push(`scale(${s ?? 1} ${c ?? 1})`), f.length && !(l || this).textPath && (n?.element || t).setAttribute(e, f.join(" "));
|
|
360
360
|
}
|
|
361
361
|
visibilitySetter(e, t, n) {
|
|
362
362
|
e === "inherit" ? n.removeAttribute(t) : this[t] !== e && n.setAttribute(t, e), this[t] = e;
|
|
@@ -366,14 +366,14 @@ var { animate: E, animObject: D, stop: O } = _, { deg2rad: k, doc: A, svg: j, SV
|
|
|
366
366
|
}
|
|
367
367
|
zIndexSetter(e, t) {
|
|
368
368
|
let { element: n, parentGroup: r, renderer: i } = this, a = r?.element || i.box, o = a === i.box, s, c, l, u = !1, d, f = this.added, p;
|
|
369
|
-
if (
|
|
370
|
-
for (e = this.zIndex, e && r && (r.handleZ = !0), s = a.childNodes, p = s.length - 1; p >= 0 && !u; p--) c = s[p], l = c.getAttribute("data-z-index"), d = !
|
|
369
|
+
if (T(e) ? (n.setAttribute("data-z-index", e), e = +e, this[t] === e && (f = !1)) : T(this[t]) && n.removeAttribute("data-z-index"), this[t] = e, f) {
|
|
370
|
+
for (e = this.zIndex, e && r && (r.handleZ = !0), s = a.childNodes, p = s.length - 1; p >= 0 && !u; p--) c = s[p], l = c.getAttribute("data-z-index"), d = !T(l), c !== n && (T(e) && e < 0 && d && !o && !p ? (a.insertBefore(n, s[p]), u = !0) : (T(e) && parseFloat(l || "") <= e || d && (!T(e) || e >= 0)) && (a.insertBefore(n, s[p + 1]), u = !0));
|
|
371
371
|
u ||= (a.insertBefore(n, s[o ? 3 : 0]), !0);
|
|
372
372
|
}
|
|
373
373
|
return u;
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
P.symbolCustomAttribs = [
|
|
377
377
|
"anchorX",
|
|
378
378
|
"anchorY",
|
|
379
379
|
"clockwise",
|
|
@@ -385,10 +385,8 @@ F.symbolCustomAttribs = [
|
|
|
385
385
|
"width",
|
|
386
386
|
"x",
|
|
387
387
|
"y"
|
|
388
|
-
],
|
|
388
|
+
], P.prototype.strokeSetter = P.prototype.fillSetter, P.prototype.yGetter = P.prototype.xGetter, P.prototype.matrixSetter = P.prototype.rotationOriginXSetter = P.prototype.rotationOriginYSetter = P.prototype.rotationSetter = P.prototype.scaleXSetter = P.prototype.scaleYSetter = P.prototype.translateXSetter = P.prototype.translateYSetter = P.prototype.verticalAlignSetter = function(e, t) {
|
|
389
389
|
this[t] = e, this.doTransform = !0;
|
|
390
390
|
};
|
|
391
391
|
//#endregion
|
|
392
|
-
export {
|
|
393
|
-
|
|
394
|
-
//# sourceMappingURL=SVGElement-BmvC_qu3.js.map
|
|
392
|
+
export { P as t };
|