@mobileaction/action-kit 1.57.0 → 1.57.1
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/action-kit.mjs +1 -1
- package/dist/{annotations-DzxKra_-.js → annotations-DjS6cZ0g.js} +386 -383
- package/dist/components/typography/index.vue.d.ts +1 -1
- package/dist/export-data-DSMuByxy.js +332 -0
- package/dist/exporting-DZnBR8gm.js +601 -0
- package/dist/funnel-DaTDEOyF.js +134 -0
- package/dist/{index-C8r4OcCO.js → index-bTz35Vhl.js} +1879 -1845
- package/dist/map-BhX11nMc.js +1744 -0
- package/dist/offline-exporting-Dj1jDKzF.js +192 -0
- package/dist/stock-Cv-uIi1p.js +2076 -0
- package/dist/venn-CgBXe2Vp.js +453 -0
- package/dist/wordcloud-Bwb3kAJt.js +227 -0
- package/package.json +2 -2
- package/dist/export-data-B7wYF5EQ.js +0 -327
- package/dist/exporting-B0cCEyyg.js +0 -535
- package/dist/funnel-DTHaLuEK.js +0 -135
- package/dist/map-C_BILLYp.js +0 -1757
- package/dist/offline-exporting-8t0G_rUZ.js +0 -192
- package/dist/stock-DyTZKEyb.js +0 -2044
- package/dist/venn-DfFwIzSQ.js +0 -454
- package/dist/wordcloud-Hu3_8VaC.js +0 -235
|
@@ -1,535 +0,0 @@
|
|
|
1
|
-
import { g as Bt } from "./index-C8r4OcCO.js";
|
|
2
|
-
function Gt(U, q) {
|
|
3
|
-
for (var k = 0; k < q.length; k++) {
|
|
4
|
-
const F = q[k];
|
|
5
|
-
if (typeof F != "string" && !Array.isArray(F)) {
|
|
6
|
-
for (const R in F)
|
|
7
|
-
if (R !== "default" && !(R in U)) {
|
|
8
|
-
const N = Object.getOwnPropertyDescriptor(F, R);
|
|
9
|
-
N && Object.defineProperty(U, R, N.get ? N : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => F[R]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(U, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var $ = { exports: {} }, Vt = $.exports, st;
|
|
19
|
-
function $t() {
|
|
20
|
-
return st || (st = 1, function(U, q) {
|
|
21
|
-
/**
|
|
22
|
-
* Highcharts JS v12.3.0 (2025-06-21)
|
|
23
|
-
* @module highcharts/modules/exporting
|
|
24
|
-
* @requires highcharts
|
|
25
|
-
*
|
|
26
|
-
* Exporting module
|
|
27
|
-
*
|
|
28
|
-
* (c) 2010-2025 Torstein Honsi
|
|
29
|
-
*
|
|
30
|
-
* License: www.highcharts.com/license
|
|
31
|
-
*/
|
|
32
|
-
(function(k, F) {
|
|
33
|
-
U.exports = F(k._Highcharts, k._Highcharts.AST, k._Highcharts.Chart);
|
|
34
|
-
})(typeof window > "u" ? Vt : window, (k, F, R) => (() => {
|
|
35
|
-
var N, W, ct = { 660: (a) => {
|
|
36
|
-
a.exports = F;
|
|
37
|
-
}, 944: (a) => {
|
|
38
|
-
a.exports = k;
|
|
39
|
-
}, 960: (a) => {
|
|
40
|
-
a.exports = R;
|
|
41
|
-
} }, Y = {};
|
|
42
|
-
function w(a) {
|
|
43
|
-
var t = Y[a];
|
|
44
|
-
if (t !== void 0) return t.exports;
|
|
45
|
-
var e = Y[a] = { exports: {} };
|
|
46
|
-
return ct[a](e, e.exports, w), e.exports;
|
|
47
|
-
}
|
|
48
|
-
w.n = (a) => {
|
|
49
|
-
var t = a && a.__esModule ? () => a.default : () => a;
|
|
50
|
-
return w.d(t, { a: t }), t;
|
|
51
|
-
}, w.d = (a, t) => {
|
|
52
|
-
for (var e in t) w.o(t, e) && !w.o(a, e) && Object.defineProperty(a, e, { enumerable: !0, get: t[e] });
|
|
53
|
-
}, w.o = (a, t) => Object.prototype.hasOwnProperty.call(a, t);
|
|
54
|
-
var Z = {};
|
|
55
|
-
w.d(Z, { default: () => It });
|
|
56
|
-
var pt = w(944), E = w.n(pt), dt = w(660), G = w.n(dt), ut = w(960), ht = w.n(ut);
|
|
57
|
-
(function(a) {
|
|
58
|
-
a.compose = function(e) {
|
|
59
|
-
return e.navigation || (e.navigation = new t(e)), e;
|
|
60
|
-
};
|
|
61
|
-
class t {
|
|
62
|
-
constructor(o) {
|
|
63
|
-
this.updates = [], this.chart = o;
|
|
64
|
-
}
|
|
65
|
-
addUpdate(o) {
|
|
66
|
-
this.chart.navigation.updates.push(o);
|
|
67
|
-
}
|
|
68
|
-
update(o, n) {
|
|
69
|
-
this.updates.forEach((i) => {
|
|
70
|
-
i.call(this.chart, o, n);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
a.Additions = t;
|
|
75
|
-
})(N || (N = {}));
|
|
76
|
-
let gt = N, { isSafari: ft, win: S, win: { document: j } } = E(), { error: mt } = E(), Q = S.URL || S.webkitURL || S;
|
|
77
|
-
function xt(a) {
|
|
78
|
-
let t = a.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
|
|
79
|
-
if (t && t.length > 3 && S.atob && S.ArrayBuffer && S.Uint8Array && S.Blob && Q.createObjectURL) {
|
|
80
|
-
let e = S.atob(t[3]), o = new S.ArrayBuffer(e.length), n = new S.Uint8Array(o);
|
|
81
|
-
for (let i = 0; i < n.length; ++i) n[i] = e.charCodeAt(i);
|
|
82
|
-
return Q.createObjectURL(new S.Blob([n], { type: t[1] }));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
let { isTouchDevice: yt } = E(), bt = { exporting: { allowTableSorting: !0, libURL: "https://code.highcharts.com/12.3.0/lib/", local: !0, type: "image/png", url: `https://export-svg.highcharts.com?v=${E().version}`, pdfFont: { normal: void 0, bold: void 0, bolditalic: void 0, italic: void 0 }, printMaxWidth: 780, scale: 2, buttons: { contextButton: { className: "highcharts-contextbutton", menuClassName: "highcharts-contextmenu", symbol: "menu", titleKey: "contextButtonTitle", menuItems: ["viewFullscreen", "printChart", "separator", "downloadPNG", "downloadJPEG", "downloadSVG"] } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
|
|
86
|
-
this.fullscreen?.toggle();
|
|
87
|
-
} }, printChart: { textKey: "printChart", onclick: function() {
|
|
88
|
-
this.exporting?.print();
|
|
89
|
-
} }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: async function() {
|
|
90
|
-
await this.exporting?.exportChart();
|
|
91
|
-
} }, downloadJPEG: { textKey: "downloadJPEG", onclick: async function() {
|
|
92
|
-
await this.exporting?.exportChart({ type: "image/jpeg" });
|
|
93
|
-
} }, downloadPDF: { textKey: "downloadPDF", onclick: async function() {
|
|
94
|
-
await this.exporting?.exportChart({ type: "application/pdf" });
|
|
95
|
-
} }, downloadSVG: { textKey: "downloadSVG", onclick: async function() {
|
|
96
|
-
await this.exporting?.exportChart({ type: "image/svg+xml" });
|
|
97
|
-
} } } }, lang: { viewFullscreen: "View in full screen", exitFullscreen: "Exit from full screen", printChart: "Print chart", downloadPNG: "Download PNG image", downloadJPEG: "Download JPEG image", downloadPDF: "Download PDF document", downloadSVG: "Download SVG vector image", contextButtonTitle: "Chart context menu" }, navigation: { buttonOptions: { symbolSize: 14, symbolX: 14.5, symbolY: 13.5, align: "right", buttonSpacing: 5, height: 28, y: -5, verticalAlign: "top", width: 28, symbolFill: "#666666", symbolStroke: "#666666", symbolStrokeWidth: 3, theme: { fill: "#ffffff", padding: 5, stroke: "none", "stroke-linecap": "round" } }, menuStyle: { border: "none", borderRadius: "3px", background: "#ffffff", padding: "0.5em" }, menuItemStyle: { background: "none", borderRadius: "3px", color: "#333333", padding: "0.5em", fontSize: yt ? "0.9em" : "0.8em", transition: "background 250ms, color 250ms" }, menuItemHoverStyle: { background: "#f2f2f2" } } };
|
|
98
|
-
(function(a) {
|
|
99
|
-
let t = [];
|
|
100
|
-
function e(n, i, r, c) {
|
|
101
|
-
return [["M", n, i + 2.5], ["L", n + r, i + 2.5], ["M", n, i + c / 2 + 0.5], ["L", n + r, i + c / 2 + 0.5], ["M", n, i + c - 1.5], ["L", n + r, i + c - 1.5]];
|
|
102
|
-
}
|
|
103
|
-
function o(n, i, r, c) {
|
|
104
|
-
let s = c / 3 - 2;
|
|
105
|
-
return [].concat(this.circle(r - s, i, s, s), this.circle(r - s, i + s + 4, s, s), this.circle(r - s, i + 2 * (s + 4), s, s));
|
|
106
|
-
}
|
|
107
|
-
a.compose = function(n) {
|
|
108
|
-
if (t.indexOf(n) === -1) {
|
|
109
|
-
t.push(n);
|
|
110
|
-
let i = n.prototype.symbols;
|
|
111
|
-
i.menu = e, i.menuball = o.bind(i);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
})(W || (W = {}));
|
|
115
|
-
let vt = W, { composed: wt } = E(), { addEvent: z, fireEvent: _, pushUnique: St } = E();
|
|
116
|
-
function Et() {
|
|
117
|
-
this.fullscreen = new tt(this);
|
|
118
|
-
}
|
|
119
|
-
class tt {
|
|
120
|
-
static compose(t) {
|
|
121
|
-
St(wt, "Fullscreen") && z(t, "beforeRender", Et);
|
|
122
|
-
}
|
|
123
|
-
constructor(t) {
|
|
124
|
-
this.chart = t, this.isOpen = !1;
|
|
125
|
-
let e = t.renderTo;
|
|
126
|
-
!this.browserProps && (typeof e.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : e.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : e.webkitRequestFullScreen ? this.browserProps = { fullscreenChange: "webkitfullscreenchange", requestFullscreen: "webkitRequestFullScreen", exitFullscreen: "webkitExitFullscreen" } : e.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
|
|
127
|
-
}
|
|
128
|
-
close() {
|
|
129
|
-
let t = this, e = t.chart, o = e.options.chart;
|
|
130
|
-
_(e, "fullscreenClose", null, function() {
|
|
131
|
-
t.isOpen && t.browserProps && e.container.ownerDocument instanceof Document && e.container.ownerDocument[t.browserProps.exitFullscreen](), t.unbindFullscreenEvent && (t.unbindFullscreenEvent = t.unbindFullscreenEvent()), e.setSize(t.origWidth, t.origHeight, !1), t.origWidth = void 0, t.origHeight = void 0, o.width = t.origWidthOption, o.height = t.origHeightOption, t.origWidthOption = void 0, t.origHeightOption = void 0, t.isOpen = !1, t.setButtonText();
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
open() {
|
|
135
|
-
let t = this, e = t.chart, o = e.options.chart;
|
|
136
|
-
_(e, "fullscreenOpen", null, function() {
|
|
137
|
-
if (o && (t.origWidthOption = o.width, t.origHeightOption = o.height), t.origWidth = e.chartWidth, t.origHeight = e.chartHeight, t.browserProps) {
|
|
138
|
-
let n = z(e.container.ownerDocument, t.browserProps.fullscreenChange, function() {
|
|
139
|
-
t.isOpen ? (t.isOpen = !1, t.close()) : (e.setSize(null, null, !1), t.isOpen = !0, t.setButtonText());
|
|
140
|
-
}), i = z(e, "destroy", n);
|
|
141
|
-
t.unbindFullscreenEvent = () => {
|
|
142
|
-
n(), i();
|
|
143
|
-
};
|
|
144
|
-
let r = e.renderTo[t.browserProps.requestFullscreen]();
|
|
145
|
-
r && r.catch(function() {
|
|
146
|
-
alert("Full screen is not supported inside a frame.");
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
setButtonText() {
|
|
152
|
-
let t = this.chart, e = t.exporting?.divElements, o = t.options.exporting, n = o && o.buttons && o.buttons.contextButton.menuItems, i = t.options.lang;
|
|
153
|
-
if (o && o.menuItemDefinitions && i && i.exitFullscreen && i.viewFullscreen && n && e) {
|
|
154
|
-
let r = e[n.indexOf("viewFullscreen")];
|
|
155
|
-
r && G().setElementHTML(r, this.isOpen ? i.exitFullscreen : o.menuItemDefinitions.viewFullscreen.text || i.viewFullscreen);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
toggle() {
|
|
159
|
-
this.isOpen ? this.close() : this.open();
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
let { win: et } = E(), { discardElement: Ot, objectEach: nt } = E(), K = { ajax: function(a) {
|
|
163
|
-
let t = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" }, e = new XMLHttpRequest();
|
|
164
|
-
function o(n, i) {
|
|
165
|
-
a.error && a.error(n, i);
|
|
166
|
-
}
|
|
167
|
-
if (!a.url) return !1;
|
|
168
|
-
e.open((a.type || "get").toUpperCase(), a.url, !0), a.headers?.["Content-Type"] || e.setRequestHeader("Content-Type", t[a.dataType || "json"] || t.text), nt(a.headers, function(n, i) {
|
|
169
|
-
e.setRequestHeader(i, n);
|
|
170
|
-
}), a.responseType && (e.responseType = a.responseType), e.onreadystatechange = function() {
|
|
171
|
-
let n;
|
|
172
|
-
if (e.readyState === 4) {
|
|
173
|
-
if (e.status === 200) {
|
|
174
|
-
if (a.responseType !== "blob" && (n = e.responseText, a.dataType === "json")) try {
|
|
175
|
-
n = JSON.parse(n);
|
|
176
|
-
} catch (i) {
|
|
177
|
-
if (i instanceof Error) return o(e, i);
|
|
178
|
-
}
|
|
179
|
-
return a.success?.(n, e);
|
|
180
|
-
}
|
|
181
|
-
o(e, e.responseText);
|
|
182
|
-
}
|
|
183
|
-
}, a.data && typeof a.data != "string" && (a.data = JSON.stringify(a.data)), e.send(a.data);
|
|
184
|
-
}, getJSON: function(a, t) {
|
|
185
|
-
K.ajax({ url: a, success: t, dataType: "json", headers: { "Content-Type": "text/plain" } });
|
|
186
|
-
}, post: async function(a, t, e) {
|
|
187
|
-
let o = new et.FormData();
|
|
188
|
-
nt(t, function(i, r) {
|
|
189
|
-
o.append(r, i);
|
|
190
|
-
}), o.append("b64", "true");
|
|
191
|
-
let n = await et.fetch(a, { method: "POST", body: o, ...e });
|
|
192
|
-
if (n.ok) {
|
|
193
|
-
let i = await n.text(), r = document.createElement("a");
|
|
194
|
-
r.href = `data:${t.type};base64,${i}`, r.download = t.filename, r.click(), Ot(r);
|
|
195
|
-
}
|
|
196
|
-
} }, { defaultOptions: Ct, setOptions: Tt } = E(), { downloadURL: J, getScript: kt } = { downloadURL: function(a, t) {
|
|
197
|
-
let e = S.navigator, o = j.createElement("a");
|
|
198
|
-
if (typeof a != "string" && !(a instanceof String) && e.msSaveOrOpenBlob) return void e.msSaveOrOpenBlob(a, t);
|
|
199
|
-
if (a = "" + a, e.userAgent.length > 1e3) throw Error("Input too long");
|
|
200
|
-
let n = /Edge\/\d+/.test(e.userAgent);
|
|
201
|
-
if ((ft && typeof a == "string" && a.indexOf("data:application/pdf") === 0 || n || a.length > 2e6) && !(a = xt(a) || "")) throw Error("Failed to convert to blob");
|
|
202
|
-
if (o.download !== void 0) o.href = a, o.download = t, j.body.appendChild(o), o.click(), j.body.removeChild(o);
|
|
203
|
-
else try {
|
|
204
|
-
if (!S.open(a, "chart")) throw Error("Failed to open window");
|
|
205
|
-
} catch {
|
|
206
|
-
S.location.href = a;
|
|
207
|
-
}
|
|
208
|
-
}, getScript: function(a) {
|
|
209
|
-
return new Promise((t, e) => {
|
|
210
|
-
let o = j.getElementsByTagName("head")[0], n = j.createElement("script");
|
|
211
|
-
n.type = "text/javascript", n.src = a, n.onload = () => {
|
|
212
|
-
t();
|
|
213
|
-
}, n.onerror = () => {
|
|
214
|
-
e(mt(`Error loading script ${a}`));
|
|
215
|
-
}, o.appendChild(n);
|
|
216
|
-
});
|
|
217
|
-
} }, { composed: Ft, doc: D, isFirefox: Pt, isMS: I, isSafari: V, SVG_NS: Rt, win: b } = E(), { addEvent: P, clearTimeout: X, createElement: A, css: O, discardElement: it, error: Nt, extend: L, find: Lt, fireEvent: H, isObject: Mt, merge: C, objectEach: Dt, pick: B, pushUnique: At, removeEvent: Ht, splat: Ut, uniqueKey: jt } = E();
|
|
218
|
-
G().allowedAttributes.push("data-z-index", "fill-opacity", "filter", "preserveAspectRatio", "rx", "ry", "stroke-dasharray", "stroke-linejoin", "stroke-opacity", "text-anchor", "transform", "transform-origin", "version", "viewBox", "visibility", "xmlns", "xmlns:xlink"), G().allowedTags.push("desc", "clippath", "fedropshadow", "femorphology", "g", "image");
|
|
219
|
-
let ot = b.URL || b.webkitURL || b;
|
|
220
|
-
class h {
|
|
221
|
-
constructor(t, e) {
|
|
222
|
-
this.options = {}, this.chart = t, this.options = e, this.btnCount = 0, this.buttonOffset = 0, this.divElements = [], this.svgElements = [];
|
|
223
|
-
}
|
|
224
|
-
static hyphenate(t) {
|
|
225
|
-
return t.replace(/[A-Z]/g, function(e) {
|
|
226
|
-
return "-" + e.toLowerCase();
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
static async imageToDataURL(t, e, o) {
|
|
230
|
-
let n = await h.loadImage(t), i = D.createElement("canvas"), r = i?.getContext("2d");
|
|
231
|
-
if (r) return i.height = n.height * e, i.width = n.width * e, r.drawImage(n, 0, 0, i.width, i.height), i.toDataURL(o);
|
|
232
|
-
throw Error("No canvas found!");
|
|
233
|
-
}
|
|
234
|
-
static loadImage(t) {
|
|
235
|
-
return new Promise((e, o) => {
|
|
236
|
-
let n = new b.Image();
|
|
237
|
-
n.crossOrigin = "Anonymous", n.onload = () => {
|
|
238
|
-
setTimeout(() => {
|
|
239
|
-
e(n);
|
|
240
|
-
}, h.loadEventDeferDelay);
|
|
241
|
-
}, n.onerror = (i) => {
|
|
242
|
-
o(i);
|
|
243
|
-
}, n.src = t;
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
static prepareImageOptions(t) {
|
|
247
|
-
let e = t?.type || "image/png", o = t?.libURL || Ct.exporting?.libURL;
|
|
248
|
-
return { type: e, filename: (t?.filename || "chart") + "." + (e === "image/svg+xml" ? "svg" : e.split("/")[1]), scale: t?.scale || 1, libURL: o?.slice(-1) !== "/" ? o + "/" : o };
|
|
249
|
-
}
|
|
250
|
-
static sanitizeSVG(t, e) {
|
|
251
|
-
let o = t.indexOf("</svg>") + 6, n = t.indexOf("<foreignObject") > -1, i = t.substr(o);
|
|
252
|
-
return t = t.substr(0, o), n ? t = t.replace(/(<(?:img|br).*?(?=\>))>/g, "$1 />") : i && e?.exporting?.allowHTML && (i = '<foreignObject x="0" y="0" width="' + e.chart.width + '" height="' + e.chart.height + '"><body xmlns="http://www.w3.org/1999/xhtml">' + i.replace(/(<(?:img|br).*?(?=\>))>/g, "$1 />") + "</body></foreignObject>", t = t.replace("</svg>", i + "</svg>")), t = t.replace(/zIndex="[^"]+"/g, "").replace(/symbolName="[^"]+"/g, "").replace(/jQuery\d+="[^"]+"/g, "").replace(/url\(("|")(.*?)("|")\;?\)/g, "url($2)").replace(/url\([^#]+#/g, "url(#").replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g, " xlink:href=").replace(/\n+/g, " ").replace(/ /g, " ").replace(/­/g, "");
|
|
253
|
-
}
|
|
254
|
-
static svgToDataURL(t) {
|
|
255
|
-
let e = b.navigator.userAgent, o = e.indexOf("WebKit") > -1 && 0 > e.indexOf("Chrome");
|
|
256
|
-
try {
|
|
257
|
-
if (!o && t.indexOf("<foreignObject") === -1) return ot.createObjectURL(new b.Blob([t], { type: "image/svg+xml;charset-utf-16" }));
|
|
258
|
-
} catch {
|
|
259
|
-
}
|
|
260
|
-
return "data:image/svg+xml;charset=UTF-8," + encodeURIComponent(t);
|
|
261
|
-
}
|
|
262
|
-
addButton(t) {
|
|
263
|
-
let e, o = this, n = o.chart, i = n.renderer, r = C(n.options.navigation?.buttonOptions, t), c = r.onclick, s = r.menuItems, l = r.symbolSize || 12;
|
|
264
|
-
if (r.enabled === !1 || !r.theme) return;
|
|
265
|
-
let f = n.styledMode ? {} : r.theme, m = () => {
|
|
266
|
-
};
|
|
267
|
-
c ? m = function(p) {
|
|
268
|
-
p && p.stopPropagation(), c.call(n, p);
|
|
269
|
-
} : s && (m = function(p) {
|
|
270
|
-
p && p.stopPropagation(), o.contextMenu(d.menuClassName, s, d.translateX || 0, d.translateY || 0, d.width || 0, d.height || 0, d), d.setState(2);
|
|
271
|
-
}), r.text && r.symbol ? f.paddingLeft = B(f.paddingLeft, 30) : r.text || L(f, { width: r.width, height: r.height, padding: 0 });
|
|
272
|
-
let d = i.button(r.text || "", 0, 0, m, f, void 0, void 0, void 0, void 0, r.useHTML).addClass(t.className || "").attr({ title: B(n.options.lang[r._titleKey || r.titleKey], "") });
|
|
273
|
-
d.menuClassName = t.menuClassName || "highcharts-menu-" + o.btnCount++, r.symbol && (e = i.symbol(r.symbol, Math.round((r.symbolX || 0) - l / 2), Math.round((r.symbolY || 0) - l / 2), l, l, { width: l, height: l }).addClass("highcharts-button-symbol").attr({ zIndex: 1 }).add(d), n.styledMode || e.attr({ stroke: r.symbolStroke, fill: r.symbolFill, "stroke-width": r.symbolStrokeWidth || 1 })), d.add(o.group).align(L(r, { width: d.width, x: B(r.x, o.buttonOffset) }), !0, "spacingBox"), o.buttonOffset += ((d.width || 0) + (r.buttonSpacing || 0)) * (r.align === "right" ? -1 : 1), o.svgElements.push(d, e);
|
|
274
|
-
}
|
|
275
|
-
afterPrint() {
|
|
276
|
-
let t = this.chart;
|
|
277
|
-
if (!this.printReverseInfo) return;
|
|
278
|
-
let { childNodes: e, origDisplay: o, resetParams: n } = this.printReverseInfo;
|
|
279
|
-
this.moveContainers(t.renderTo), [].forEach.call(e, function(i, r) {
|
|
280
|
-
i.nodeType === 1 && (i.style.display = o[r] || "");
|
|
281
|
-
}), this.isPrinting = !1, n && t.setSize.apply(t, n), delete this.printReverseInfo, h.printingChart = void 0, H(t, "afterPrint");
|
|
282
|
-
}
|
|
283
|
-
beforePrint() {
|
|
284
|
-
let t = this.chart, e = D.body, o = this.options.printMaxWidth, n = { childNodes: e.childNodes, origDisplay: [], resetParams: void 0 };
|
|
285
|
-
this.isPrinting = !0, t.pointer?.reset(void 0, 0), H(t, "beforePrint"), o && t.chartWidth > o && (n.resetParams = [t.options.chart.width, void 0, !1], t.setSize(o, void 0, !1)), [].forEach.call(n.childNodes, function(i, r) {
|
|
286
|
-
i.nodeType === 1 && (n.origDisplay[r] = i.style.display, i.style.display = "none");
|
|
287
|
-
}), this.moveContainers(e), this.printReverseInfo = n;
|
|
288
|
-
}
|
|
289
|
-
contextMenu(t, e, o, n, i, r, c) {
|
|
290
|
-
let s = this, l = s.chart, f = l.options.navigation, m = l.chartWidth, d = l.chartHeight, p = "cache-" + t, y = Math.max(i, r), v, g = l[p];
|
|
291
|
-
g || (s.contextMenuEl = l[p] = g = A("div", { className: t }, { position: "absolute", zIndex: 1e3, padding: y + "px", pointerEvents: "auto", ...l.renderer.style }, l.scrollablePlotArea?.fixedDiv || l.container), v = A("ul", { className: "highcharts-menu" }, l.styledMode ? {} : { listStyle: "none", margin: 0, padding: 0 }, g), l.styledMode || O(v, L({ MozBoxShadow: "3px 3px 10px #0008", WebkitBoxShadow: "3px 3px 10px #0008", boxShadow: "3px 3px 10px #0008" }, f?.menuStyle || {})), g.hideMenu = function() {
|
|
292
|
-
O(g, { display: "none" }), c && c.setState(0), l.exporting && (l.exporting.openMenu = !1), O(l.renderTo, { overflow: "hidden" }), O(l.container, { overflow: "hidden" }), X(g.hideTimer), H(l, "exportMenuHidden");
|
|
293
|
-
}, s.events?.push(P(g, "mouseleave", function() {
|
|
294
|
-
g.hideTimer = b.setTimeout(g.hideMenu, 500);
|
|
295
|
-
}), P(g, "mouseenter", function() {
|
|
296
|
-
X(g.hideTimer);
|
|
297
|
-
}), P(D, "mouseup", function(u) {
|
|
298
|
-
l.pointer?.inClass(u.target, t) || g.hideMenu();
|
|
299
|
-
}), P(g, "click", function() {
|
|
300
|
-
l.exporting?.openMenu && g.hideMenu();
|
|
301
|
-
})), e.forEach(function(u) {
|
|
302
|
-
if (typeof u == "string" && s.options.menuItemDefinitions?.[u] && (u = s.options.menuItemDefinitions[u]), Mt(u, !0)) {
|
|
303
|
-
let M;
|
|
304
|
-
u.separator ? M = A("hr", void 0, void 0, v) : (u.textKey === "viewData" && s.isDataTableVisible && (u.textKey = "hideData"), M = A("li", { className: "highcharts-menu-item", onclick: function(at) {
|
|
305
|
-
at && at.stopPropagation(), g.hideMenu(), typeof u != "string" && u.onclick && u.onclick.apply(l, arguments);
|
|
306
|
-
} }, void 0, v), G().setElementHTML(M, u.text || l.options.lang[u.textKey]), l.styledMode || (M.onmouseover = function() {
|
|
307
|
-
O(this, f?.menuItemHoverStyle || {});
|
|
308
|
-
}, M.onmouseout = function() {
|
|
309
|
-
O(this, f?.menuItemStyle || {});
|
|
310
|
-
}, O(M, L({ cursor: "pointer" }, f?.menuItemStyle || {})))), s.divElements.push(M);
|
|
311
|
-
}
|
|
312
|
-
}), s.divElements.push(v, g), s.menuHeight = g.offsetHeight, s.menuWidth = g.offsetWidth);
|
|
313
|
-
let x = { display: "block" };
|
|
314
|
-
o + (s.menuWidth || 0) > m ? x.right = m - o - i - y + "px" : x.left = o - y + "px", n + r + (s.menuHeight || 0) > d && c.alignOptions?.verticalAlign !== "top" ? x.bottom = d - n - y + "px" : x.top = n + r - y + "px", O(g, x), O(l.renderTo, { overflow: "" }), O(l.container, { overflow: "" }), l.exporting && (l.exporting.openMenu = !0), H(l, "exportMenuShown");
|
|
315
|
-
}
|
|
316
|
-
destroy(t) {
|
|
317
|
-
let e, o = t ? t.target : this.chart, { divElements: n, events: i, svgElements: r } = this;
|
|
318
|
-
r.forEach((c, s) => {
|
|
319
|
-
c && (c.onclick = c.ontouchstart = null, o[e = "cache-" + c.menuClassName] && delete o[e], r[s] = c.destroy());
|
|
320
|
-
}), r.length = 0, this.group && (this.group.destroy(), delete this.group), n.forEach(function(c, s) {
|
|
321
|
-
c && (X(c.hideTimer), Ht(c, "mouseleave"), n[s] = c.onmouseout = c.onmouseover = c.ontouchstart = c.onclick = null, it(c));
|
|
322
|
-
}), n.length = 0, i && (i.forEach(function(c) {
|
|
323
|
-
c();
|
|
324
|
-
}), i.length = 0);
|
|
325
|
-
}
|
|
326
|
-
async downloadSVG(t, e) {
|
|
327
|
-
let o, n = { svg: t, exportingOptions: e, exporting: this };
|
|
328
|
-
if (H(h.prototype, "downloadSVG", n), n.defaultPrevented) return;
|
|
329
|
-
let { type: i, filename: r, scale: c, libURL: s } = h.prepareImageOptions(e);
|
|
330
|
-
if (i === "application/pdf") throw Error("Offline exporting logic for PDF type is not found.");
|
|
331
|
-
if (i === "image/svg+xml") {
|
|
332
|
-
if (b.MSBlobBuilder !== void 0) {
|
|
333
|
-
let l = new b.MSBlobBuilder();
|
|
334
|
-
l.append(t), o = l.getBlob("image/svg+xml");
|
|
335
|
-
} else o = h.svgToDataURL(t);
|
|
336
|
-
J(o, r);
|
|
337
|
-
} else {
|
|
338
|
-
o = h.svgToDataURL(t);
|
|
339
|
-
try {
|
|
340
|
-
h.objectURLRevoke = !0;
|
|
341
|
-
let l = await h.imageToDataURL(o, c, i);
|
|
342
|
-
J(l, r);
|
|
343
|
-
} catch (l) {
|
|
344
|
-
if (l.message === "No canvas found!") throw l;
|
|
345
|
-
if (t.length > 1e8) throw Error("Input too long");
|
|
346
|
-
let f = D.createElement("canvas"), m = f.getContext("2d"), d = t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/), p = t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);
|
|
347
|
-
if (m && d && p) {
|
|
348
|
-
let y = d[1] * c, v = p[1] * c;
|
|
349
|
-
f.width = y, f.height = v, b.canvg || (h.objectURLRevoke = !0, await kt(s + "canvg.js")), b.canvg.Canvg.fromString(m, t).start(), J(b.navigator.msSaveOrOpenBlob ? f.msToBlob() : f.toDataURL(i), r);
|
|
350
|
-
}
|
|
351
|
-
} finally {
|
|
352
|
-
if (h.objectURLRevoke) try {
|
|
353
|
-
ot.revokeObjectURL(o);
|
|
354
|
-
} catch {
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
async exportChart(t, e) {
|
|
360
|
-
if ((t = C(this.options, t)).local) await this.localExport(t, e || {});
|
|
361
|
-
else {
|
|
362
|
-
let o = this.getSVGForExport(t, e);
|
|
363
|
-
t.url && await K.post(t.url, { filename: t.filename ? t.filename.replace(/\//g, "-") : this.getFilename(), type: t.type, width: t.width, scale: t.scale, svg: o }, t.fetchOptions);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
async fallbackToServer(t, e) {
|
|
367
|
-
t.fallbackToExportServer === !1 ? t.error ? t.error(t, e) : Nt(28, !0) : t.type === "application/pdf" && (t.local = !1, await this.exportChart(t));
|
|
368
|
-
}
|
|
369
|
-
getChartHTML(t) {
|
|
370
|
-
let e = this.chart;
|
|
371
|
-
return t && this.inlineStyles(), this.resolveCSSVariables(), e.container.innerHTML;
|
|
372
|
-
}
|
|
373
|
-
getFilename() {
|
|
374
|
-
let t = this.chart.userOptions.title?.text, e = this.options.filename;
|
|
375
|
-
return e ? e.replace(/\//g, "-") : (typeof t == "string" && (e = t.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(/[^a-z\d\-]/g, "").replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!e || e.length < 5) && (e = "chart"), e);
|
|
376
|
-
}
|
|
377
|
-
getSVG(t) {
|
|
378
|
-
let e = this.chart, o, n, i = C(e.options, t);
|
|
379
|
-
i.plotOptions = C(e.userOptions.plotOptions, t?.plotOptions), i.time = C(e.userOptions.time, t?.time);
|
|
380
|
-
let r = A("div", void 0, { position: "absolute", top: "-9999em", width: e.chartWidth + "px", height: e.chartHeight + "px" }, D.body), c = e.renderTo.style.width, s = e.renderTo.style.height, l = i.exporting?.sourceWidth || i.chart.width || /px$/.test(c) && parseInt(c, 10) || (i.isGantt ? 800 : 600), f = i.exporting?.sourceHeight || i.chart.height || /px$/.test(s) && parseInt(s, 10) || 400;
|
|
381
|
-
L(i.chart, { animation: !1, renderTo: r, forExport: !0, renderer: "SVGRenderer", width: l, height: f }), i.exporting && (i.exporting.enabled = !1), delete i.data, i.series = [], e.series.forEach(function(p) {
|
|
382
|
-
(n = C(p.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: p.visible })).isInternal || i?.series?.push(n);
|
|
383
|
-
});
|
|
384
|
-
let m = {};
|
|
385
|
-
e.axes.forEach(function(p) {
|
|
386
|
-
p.userOptions.internalKey || (p.userOptions.internalKey = jt()), i && !p.options.isInternal && (m[p.coll] || (m[p.coll] = !0, i[p.coll] = []), i[p.coll].push(C(p.userOptions, { visible: p.visible, type: p.type, uniqueNames: p.uniqueNames })));
|
|
387
|
-
}), i.colorAxis = e.userOptions.colorAxis;
|
|
388
|
-
let d = new e.constructor(i, e.callback);
|
|
389
|
-
return t && ["xAxis", "yAxis", "series"].forEach(function(p) {
|
|
390
|
-
t[p] && d.update({ [p]: t[p] });
|
|
391
|
-
}), e.axes.forEach(function(p) {
|
|
392
|
-
let y = Lt(d.axes, (v) => v.options.internalKey === p.userOptions.internalKey);
|
|
393
|
-
if (y) {
|
|
394
|
-
let v = p.getExtremes(), g = Ut(t?.[p.coll] || {})[0], x = "min" in g ? g.min : v.userMin, u = "max" in g ? g.max : v.userMax;
|
|
395
|
-
(x !== void 0 && x !== y.min || u !== void 0 && u !== y.max) && y.setExtremes(x ?? void 0, u ?? void 0, !0, !1);
|
|
396
|
-
}
|
|
397
|
-
}), o = d.exporting?.getChartHTML(e.styledMode || i.exporting?.applyStyleSheets) || "", H(e, "getSVG", { chartCopy: d }), o = h.sanitizeSVG(o, i), i = void 0, d.destroy(), it(r), o;
|
|
398
|
-
}
|
|
399
|
-
getSVGForExport(t, e) {
|
|
400
|
-
let o = this.options;
|
|
401
|
-
return this.getSVG(C({ chart: { borderRadius: 0 } }, o.chartOptions, e, { exporting: { sourceWidth: t?.sourceWidth || o.sourceWidth, sourceHeight: t?.sourceHeight || o.sourceHeight } }));
|
|
402
|
-
}
|
|
403
|
-
inlineStyles() {
|
|
404
|
-
let t, e = h.inlineDenylist, o = h.inlineAllowlist, n = {}, i = A("iframe", void 0, { width: "1px", height: "1px", visibility: "hidden" }, D.body), r = i.contentWindow?.document;
|
|
405
|
-
r && r.body.appendChild(r.createElementNS(Rt, "svg")), function c(s) {
|
|
406
|
-
let l, f, m, d, p, y, v = {};
|
|
407
|
-
if (r && s.nodeType === 1 && h.unstyledElements.indexOf(s.nodeName) === -1) {
|
|
408
|
-
if (l = b.getComputedStyle(s, null), f = s.nodeName === "svg" ? {} : b.getComputedStyle(s.parentNode, null), !n[s.nodeName]) {
|
|
409
|
-
t = r.getElementsByTagName("svg")[0], m = r.createElementNS(s.namespaceURI, s.nodeName), t.appendChild(m);
|
|
410
|
-
let g = b.getComputedStyle(m, null), x = {};
|
|
411
|
-
for (let u in g) u.length < 1e3 && typeof g[u] == "string" && !/^\d+$/.test(u) && (x[u] = g[u]);
|
|
412
|
-
n[s.nodeName] = x, s.nodeName === "text" && delete n.text.fill, t.removeChild(m);
|
|
413
|
-
}
|
|
414
|
-
for (let g in l) (Pt || I || V || Object.hasOwnProperty.call(l, g)) && function(x, u) {
|
|
415
|
-
if (d = p = !1, o.length) {
|
|
416
|
-
for (y = o.length; y-- && !p; ) p = o[y].test(u);
|
|
417
|
-
d = !p;
|
|
418
|
-
}
|
|
419
|
-
for (u === "transform" && x === "none" && (d = !0), y = e.length; y-- && !d; ) {
|
|
420
|
-
if (u.length > 1e3) throw Error("Input too long");
|
|
421
|
-
d = e[y].test(u) || typeof x == "function";
|
|
422
|
-
}
|
|
423
|
-
!d && (f[u] !== x || s.nodeName === "svg") && n[s.nodeName][u] !== x && (h.inlineToAttributes && h.inlineToAttributes.indexOf(u) === -1 ? v[u] = x : x && s.setAttribute(h.hyphenate(u), x));
|
|
424
|
-
}(l[g], g);
|
|
425
|
-
if (O(s, v), s.nodeName === "svg" && s.setAttribute("stroke-width", "1px"), s.nodeName === "text") return;
|
|
426
|
-
[].forEach.call(s.children || s.childNodes, c);
|
|
427
|
-
}
|
|
428
|
-
}(this.chart.container.querySelector("svg")), t.parentNode.removeChild(t), i.parentNode.removeChild(i);
|
|
429
|
-
}
|
|
430
|
-
async localExport(t, e) {
|
|
431
|
-
let o = this.chart, n, i, r = null, c;
|
|
432
|
-
if (I && o.styledMode && !h.inlineAllowlist.length && h.inlineAllowlist.push(/^blockSize/, /^border/, /^caretColor/, /^color/, /^columnRule/, /^columnRuleColor/, /^cssFloat/, /^cursor/, /^fill$/, /^fillOpacity/, /^font/, /^inlineSize/, /^length/, /^lineHeight/, /^opacity/, /^outline/, /^parentRule/, /^rx$/, /^ry$/, /^stroke/, /^textAlign/, /^textAnchor/, /^textDecoration/, /^transform/, /^vectorEffect/, /^visibility/, /^x$/, /^y$/), I && (t.type === "application/pdf" || o.container.getElementsByTagName("image").length && t.type !== "image/svg+xml") || t.type === "application/pdf" && [].some.call(o.container.getElementsByTagName("image"), function(l) {
|
|
433
|
-
let f = l.getAttribute("href");
|
|
434
|
-
return f !== "" && typeof f == "string" && f.indexOf("data:") !== 0;
|
|
435
|
-
})) return void await this.fallbackToServer(t, Error("Image type not supported for this chart/browser."));
|
|
436
|
-
let s = P(o, "getSVG", (l) => {
|
|
437
|
-
i = l.chartCopy.options, c = (n = l.chartCopy.container.cloneNode(!0)) && n.getElementsByTagName("image") || [];
|
|
438
|
-
});
|
|
439
|
-
try {
|
|
440
|
-
let l;
|
|
441
|
-
for (let m of (this.getSVGForExport(t, e), c ? Array.from(c) : [])) if (r = m.getAttributeNS("http://www.w3.org/1999/xlink", "href")) {
|
|
442
|
-
h.objectURLRevoke = !1;
|
|
443
|
-
let d = await h.imageToDataURL(r, t?.scale || 1, t?.type || "image/png");
|
|
444
|
-
m.setAttributeNS("http://www.w3.org/1999/xlink", "href", d);
|
|
445
|
-
} else m.parentNode.removeChild(m);
|
|
446
|
-
let f = (l = n?.innerHTML, h.sanitizeSVG(l || "", i));
|
|
447
|
-
if (f.indexOf("<foreignObject") > -1 && t.type !== "image/svg+xml" && (I || t.type === "application/pdf")) throw Error("Image type not supported for charts with embedded HTML");
|
|
448
|
-
return await this.downloadSVG(f, L({ filename: this.getFilename() }, t)), f;
|
|
449
|
-
} catch (l) {
|
|
450
|
-
await this.fallbackToServer(t, l);
|
|
451
|
-
} finally {
|
|
452
|
-
s();
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
moveContainers(t) {
|
|
456
|
-
let e = this.chart, { scrollablePlotArea: o } = e;
|
|
457
|
-
(o ? [o.fixedDiv, o.scrollingContainer] : [e.container]).forEach(function(n) {
|
|
458
|
-
t.appendChild(n);
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
print() {
|
|
462
|
-
let t = this.chart;
|
|
463
|
-
this.isPrinting || (h.printingChart = t, V || this.beforePrint(), setTimeout(() => {
|
|
464
|
-
b.focus(), b.print(), V || setTimeout(() => {
|
|
465
|
-
t.exporting?.afterPrint();
|
|
466
|
-
}, 1e3);
|
|
467
|
-
}, 1));
|
|
468
|
-
}
|
|
469
|
-
render() {
|
|
470
|
-
let t = this, { chart: e, options: o } = t, n = t?.isDirty || !t?.svgElements.length;
|
|
471
|
-
t.buttonOffset = 0, t.isDirty && t.destroy(), n && o.enabled !== !1 && (t.events = [], t.group || (t.group = e.renderer.g("exporting-group").attr({ zIndex: 3 }).add()), Dt(o?.buttons, function(i) {
|
|
472
|
-
t.addButton(i);
|
|
473
|
-
}), t.isDirty = !1);
|
|
474
|
-
}
|
|
475
|
-
resolveCSSVariables() {
|
|
476
|
-
Array.from(this.chart.container.querySelectorAll("*")).forEach((t) => {
|
|
477
|
-
["color", "fill", "stop-color", "stroke"].forEach((e) => {
|
|
478
|
-
t.getAttribute(e)?.includes("var(") && t.setAttribute(e, getComputedStyle(t).getPropertyValue(e)), t.style?.[e]?.includes("var(") && (t.style[e] = getComputedStyle(t).getPropertyValue(e));
|
|
479
|
-
});
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
update(t, e) {
|
|
483
|
-
this.isDirty = !0, C(!0, this.options, t), B(e, !0) && this.chart.redraw();
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
h.inlineAllowlist = [], h.inlineDenylist = [/-/, /^(clipPath|cssText|d|height|width)$/, /^font$/, /[lL]ogical(Width|Height)$/, /^parentRule$/, /^(cssRules|ownerRules)$/, /perspective/, /TapHighlightColor/, /^transition/, /^length$/, /^\d+$/], h.inlineToAttributes = ["fill", "stroke", "strokeLinecap", "strokeLinejoin", "strokeWidth", "textAnchor", "x", "y"], h.loadEventDeferDelay = 150 * !!I, h.unstyledElements = ["clipPath", "defs", "desc"], function(a) {
|
|
487
|
-
function t(n) {
|
|
488
|
-
let i = n.exporting;
|
|
489
|
-
i && (i.render(), P(n, "redraw", function() {
|
|
490
|
-
this.exporting?.render();
|
|
491
|
-
}), P(n, "destroy", function() {
|
|
492
|
-
this.exporting?.destroy();
|
|
493
|
-
}));
|
|
494
|
-
}
|
|
495
|
-
function e() {
|
|
496
|
-
let n = this;
|
|
497
|
-
n.options.exporting && (n.exporting = new a(n, n.options.exporting), gt.compose(n).navigation.addUpdate((i, r) => {
|
|
498
|
-
n.exporting && (n.exporting.isDirty = !0, C(!0, n.options.navigation, i), B(r, !0) && n.redraw());
|
|
499
|
-
}));
|
|
500
|
-
}
|
|
501
|
-
function o({ alignTo: n, key: i, textPxLength: r }) {
|
|
502
|
-
let c = this.options.exporting, { align: s, buttonSpacing: l = 0, verticalAlign: f, width: m = 0 } = C(this.options.navigation?.buttonOptions, c?.buttons?.contextButton), d = n.width - r, p = m + l;
|
|
503
|
-
(c?.enabled ?? !0) && i === "title" && s === "right" && f === "top" && d < 2 * p && (d < p ? n.width -= p : this.title?.alignValue !== "left" && (n.x -= p - d / 2));
|
|
504
|
-
}
|
|
505
|
-
a.compose = function(n, i) {
|
|
506
|
-
vt.compose(i), tt.compose(n), At(Ft, "Exporting") && (L(ht().prototype, { exportChart: async function(r, c) {
|
|
507
|
-
await this.exporting?.exportChart(r, c);
|
|
508
|
-
}, getChartHTML: function(r) {
|
|
509
|
-
return this.exporting?.getChartHTML(r);
|
|
510
|
-
}, getFilename: function() {
|
|
511
|
-
return this.exporting?.getFilename();
|
|
512
|
-
}, getSVG: function(r) {
|
|
513
|
-
return this.exporting?.getSVG(r);
|
|
514
|
-
}, print: function() {
|
|
515
|
-
return this.exporting?.print();
|
|
516
|
-
} }), n.prototype.callbacks.push(t), P(n, "afterInit", e), P(n, "layOutTitle", o), V && b.matchMedia("print").addListener(function(r) {
|
|
517
|
-
a.printingChart && (r.matches ? a.printingChart.exporting?.beforePrint() : a.printingChart.exporting?.afterPrint());
|
|
518
|
-
}), Tt(bt));
|
|
519
|
-
};
|
|
520
|
-
}(h || (h = {}));
|
|
521
|
-
let rt = h, T = E();
|
|
522
|
-
T.Exporting = rt, T.HttpUtilities = T.HttpUtilities || K, T.ajax = T.HttpUtilities.ajax, T.getJSON = T.HttpUtilities.getJSON, T.post = T.HttpUtilities.post, rt.compose(T.Chart, T.Renderer);
|
|
523
|
-
let It = E();
|
|
524
|
-
return Z.default;
|
|
525
|
-
})());
|
|
526
|
-
}($)), $.exports;
|
|
527
|
-
}
|
|
528
|
-
var lt = $t();
|
|
529
|
-
const qt = /* @__PURE__ */ Bt(lt), zt = /* @__PURE__ */ Gt({
|
|
530
|
-
__proto__: null,
|
|
531
|
-
default: qt
|
|
532
|
-
}, [lt]);
|
|
533
|
-
export {
|
|
534
|
-
zt as e
|
|
535
|
-
};
|