@carbon/charts 1.16.1 → 1.16.3
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/CHANGELOG.md +18 -0
- package/README.md +3 -4
- package/dist/_baseEach-DHzZsRNB.mjs +20 -0
- package/dist/{_baseEach-Ch85zB0O.mjs.map → _baseEach-DHzZsRNB.mjs.map} +1 -1
- package/dist/{angle-utils-GQFx3vKM.mjs → angle-utils-D8sXyiIj.mjs} +84 -89
- package/dist/{angle-utils-GQFx3vKM.mjs.map → angle-utils-D8sXyiIj.mjs.map} +1 -1
- package/dist/axis-chart.d.ts +6 -6
- package/dist/chart.d.ts +6 -6
- package/dist/charts/alluvial.d.ts +4 -4
- package/dist/charts/area-stacked.d.ts +3 -3
- package/dist/charts/area.d.ts +3 -3
- package/dist/charts/bar-grouped.d.ts +3 -3
- package/dist/charts/bar-simple.d.ts +3 -3
- package/dist/charts/bar-stacked.d.ts +3 -3
- package/dist/charts/boxplot.d.ts +4 -4
- package/dist/charts/bubble.d.ts +3 -3
- package/dist/charts/bullet.d.ts +4 -4
- package/dist/charts/choropleth.d.ts +7 -7
- package/dist/charts/circle-pack.d.ts +4 -4
- package/dist/charts/combo.d.ts +3 -3
- package/dist/charts/donut.d.ts +3 -3
- package/dist/charts/gauge.d.ts +4 -4
- package/dist/charts/heatmap.d.ts +7 -7
- package/dist/charts/histogram.d.ts +4 -4
- package/dist/charts/index.d.ts +24 -24
- package/dist/charts/line.d.ts +3 -3
- package/dist/charts/lollipop.d.ts +3 -3
- package/dist/charts/meter.d.ts +4 -4
- package/dist/charts/pie.d.ts +4 -4
- package/dist/charts/radar.d.ts +4 -4
- package/dist/charts/scatter.d.ts +3 -3
- package/dist/charts/tree.d.ts +4 -4
- package/dist/charts/treemap.d.ts +4 -4
- package/dist/charts/wordcloud.d.ts +4 -4
- package/dist/{choropleth-DdBUe80H.mjs → choropleth-ChNZz853.mjs} +1130 -1122
- package/dist/choropleth-ChNZz853.mjs.map +1 -0
- package/dist/{color-scale-utils-CiW9fERh.mjs → color-scale-utils-C93P4hee.mjs} +1093 -1116
- package/dist/color-scale-utils-C93P4hee.mjs.map +1 -0
- package/dist/components/axes/axis.d.ts +3 -3
- package/dist/components/axes/chart-clip.d.ts +2 -2
- package/dist/components/axes/grid-brush.d.ts +1 -1
- package/dist/components/axes/grid.d.ts +1 -1
- package/dist/components/axes/hover-axis.d.ts +1 -1
- package/dist/components/axes/ruler-binned.d.ts +1 -1
- package/dist/components/axes/ruler.d.ts +2 -2
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
- package/dist/components/axes/zero-line.d.ts +1 -1
- package/dist/components/axes/zoom-bar.d.ts +2 -2
- package/dist/components/component.d.ts +3 -3
- package/dist/components/essentials/color-scale-legend.d.ts +2 -2
- package/dist/components/essentials/geo-projection.d.ts +1 -1
- package/dist/components/essentials/highlights.d.ts +3 -3
- package/dist/components/essentials/legend.d.ts +1 -1
- package/dist/components/essentials/modal.d.ts +1 -1
- package/dist/components/essentials/threshold.d.ts +3 -3
- package/dist/components/essentials/title-meter.d.ts +1 -1
- package/dist/components/essentials/title.d.ts +1 -1
- package/dist/components/essentials/tooltip.d.ts +3 -3
- package/dist/components/graphs/alluvial.d.ts +1 -1
- package/dist/components/graphs/area-stacked.d.ts +1 -1
- package/dist/components/graphs/area.d.ts +1 -1
- package/dist/components/graphs/bar-grouped.d.ts +2 -2
- package/dist/components/graphs/bar-simple.d.ts +1 -1
- package/dist/components/graphs/bar-stacked.d.ts +1 -1
- package/dist/components/graphs/boxplot.d.ts +1 -1
- package/dist/components/graphs/bubble.d.ts +2 -2
- package/dist/components/graphs/bullet.d.ts +1 -1
- package/dist/components/graphs/circle-pack.d.ts +1 -1
- package/dist/components/graphs/donut.d.ts +1 -1
- package/dist/components/graphs/gauge.d.ts +1 -1
- package/dist/components/graphs/heatmap.d.ts +1 -1
- package/dist/components/graphs/histogram.d.ts +1 -1
- package/dist/components/graphs/line.d.ts +1 -1
- package/dist/components/graphs/lollipop.d.ts +1 -1
- package/dist/components/graphs/meter.d.ts +1 -1
- package/dist/components/graphs/pie.d.ts +1 -1
- package/dist/components/graphs/radar.d.ts +1 -1
- package/dist/components/graphs/scatter-stacked.d.ts +1 -1
- package/dist/components/graphs/scatter.d.ts +2 -2
- package/dist/components/graphs/skeleton-lines.d.ts +1 -1
- package/dist/components/graphs/skeleton.d.ts +1 -1
- package/dist/components/graphs/tree.d.ts +1 -1
- package/dist/components/graphs/treemap.d.ts +1 -1
- package/dist/components/graphs/wordcloud.d.ts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/layout/layout.d.ts +3 -3
- package/dist/configuration-non-customizable.d.ts +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/demo/charts/index.d.ts +2 -2
- package/dist/demo/index.mjs +115 -108
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +226 -63
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
- package/dist/demo/utils/stackblitz/react.d.ts +1 -1
- package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
- package/dist/enums-DwsxZqjR.mjs.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/interfaces/axis-scales.d.ts +4 -4
- package/dist/interfaces/charts.d.ts +2 -2
- package/dist/interfaces/components.d.ts +2 -2
- package/dist/interfaces/services.d.ts +8 -8
- package/dist/model/cartesian-charts.d.ts +1 -1
- package/dist/model/circle-pack.d.ts +1 -1
- package/dist/model/heatmap.d.ts +1 -1
- package/dist/model/index.mjs +1 -1
- package/dist/model/model.d.ts +1 -1
- package/dist/services/essentials/dom-utils.d.ts +2 -2
- package/dist/services/essentials/files.d.ts +1 -1
- package/dist/services/essentials/transitions.d.ts +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/services/scales-cartesian.d.ts +3 -3
- package/dist/services/service.d.ts +1 -1
- package/dist/services/time-series.d.ts +1 -1
- package/dist/services/zoom.d.ts +1 -1
- package/dist/styles.css +4 -0
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/umd/bundle.umd.js +19 -19
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-DQKXuKDM.mjs → wordcloud-KxSjz0Gg.mjs} +5 -5
- package/dist/{wordcloud-DQKXuKDM.mjs.map → wordcloud-KxSjz0Gg.mjs.map} +1 -1
- package/dist/{zoom-DyHfBf_y.mjs → zoom-B7KfNcH9.mjs} +3 -3
- package/dist/{zoom-DyHfBf_y.mjs.map → zoom-B7KfNcH9.mjs.map} +1 -1
- package/package.json +21 -19
- package/styles.css +4 -0
- package/styles.min.css +1 -1
- package/telemetry.yml +1 -1
- package/dist/_baseEach-Ch85zB0O.mjs +0 -20
- package/dist/choropleth-DdBUe80H.mjs.map +0 -1
- package/dist/color-scale-utils-CiW9fERh.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.16.3 (2024-06-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
15
|
+
## 1.16.2 (2024-06-03)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @carbon/charts
|
|
18
|
+
|
|
19
|
+
# Change Log
|
|
20
|
+
|
|
21
|
+
All notable changes to this project will be documented in this file. See
|
|
22
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
23
|
+
|
|
6
24
|
## 1.16.1 (2024-05-17)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -47,9 +47,8 @@ Customizable options (specific to chart type) can be found
|
|
|
47
47
|
|
|
48
48
|
## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
|
|
49
49
|
|
|
50
|
-
This package uses IBM Telemetry to collect metrics data. By installing this
|
|
51
|
-
|
|
52
|
-
see
|
|
50
|
+
This package uses IBM Telemetry to collect metrics data. By installing this package as a dependency
|
|
51
|
+
you are agreeing to telemetry collection. To opt out, see
|
|
53
52
|
[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
|
|
54
53
|
For more information on the data being collected, please see the
|
|
55
|
-
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
|
54
|
+
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { e as h, k as t, h as b } from "./color-scale-utils-C93P4hee.mjs";
|
|
2
|
+
function i(a, s) {
|
|
3
|
+
return a && h(a, s, t);
|
|
4
|
+
}
|
|
5
|
+
function k(a, s) {
|
|
6
|
+
return function(r, n) {
|
|
7
|
+
if (r == null)
|
|
8
|
+
return r;
|
|
9
|
+
if (!b(r))
|
|
10
|
+
return a(r, n);
|
|
11
|
+
for (var u = r.length, e = -1, f = Object(r); ++e < u && n(f[e], e, f) !== !1; )
|
|
12
|
+
;
|
|
13
|
+
return r;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var m = k(i);
|
|
17
|
+
export {
|
|
18
|
+
m as b
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=_baseEach-DHzZsRNB.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_baseEach-
|
|
1
|
+
{"version":3,"file":"_baseEach-DHzZsRNB.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.js"],"sourcesContent":["import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach"],"mappings":";AAWA,SAASA,EAAWC,GAAQC,GAAU;AACpC,SAAOD,KAAUE,EAAQF,GAAQC,GAAUE,CAAI;AACjD;ACHA,SAASC,EAAeC,GAAUC,GAAW;AAC3C,SAAO,SAASC,GAAYN,GAAU;AACpC,QAAIM,KAAc;AAChB,aAAOA;AAET,QAAI,CAACC,EAAYD,CAAU;AACzB,aAAOF,EAASE,GAAYN,CAAQ;AAMtC,aAJIQ,IAASF,EAAW,QACpBG,IAA6B,IAC7BC,IAAW,OAAOJ,CAAU,GAEF,EAAEG,IAAQD,KAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBG,IAACK,IAAWR,EAAeL,CAAU;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { select as d } from "d3";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as he, l as O, r as fe, m as T, n as _ } from "./color-scale-utils-C93P4hee.mjs";
|
|
3
3
|
import { _ as P, T as E, o as b } from "./enums-DwsxZqjR.mjs";
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
for (var e = t.length; e-- &&
|
|
4
|
+
var de = /\s/;
|
|
5
|
+
function me(t) {
|
|
6
|
+
for (var e = t.length; e-- && de.test(t.charAt(e)); )
|
|
7
7
|
;
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
return t && t.slice(0,
|
|
10
|
+
var ge = /^\s+/;
|
|
11
|
+
function pe(t) {
|
|
12
|
+
return t && t.slice(0, me(t) + 1).replace(ge, "");
|
|
13
13
|
}
|
|
14
|
-
var q = NaN,
|
|
14
|
+
var q = NaN, ye = /^[-+]0x[0-9a-f]+$/i, we = /^0b[01]+$/i, Se = /^0o[0-7]+$/i, Ee = parseInt;
|
|
15
15
|
function j(t) {
|
|
16
16
|
if (typeof t == "number")
|
|
17
17
|
return t;
|
|
18
|
-
if (
|
|
18
|
+
if (he(t))
|
|
19
19
|
return q;
|
|
20
20
|
if (O(t)) {
|
|
21
21
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -23,18 +23,18 @@ function j(t) {
|
|
|
23
23
|
}
|
|
24
24
|
if (typeof t != "string")
|
|
25
25
|
return t === 0 ? t : +t;
|
|
26
|
-
t =
|
|
27
|
-
var n =
|
|
28
|
-
return n ||
|
|
26
|
+
t = pe(t);
|
|
27
|
+
var n = we.test(t);
|
|
28
|
+
return n || Se.test(t) ? Ee(t.slice(2), n ? 2 : 8) : ye.test(t) ? q : +t;
|
|
29
29
|
}
|
|
30
30
|
var M = function() {
|
|
31
|
-
return
|
|
32
|
-
},
|
|
33
|
-
function
|
|
31
|
+
return fe.Date.now();
|
|
32
|
+
}, be = "Expected a function", xe = Math.max, Re = Math.min;
|
|
33
|
+
function Ce(t, e, n) {
|
|
34
34
|
var r, i, s, a, c, o, u = 0, f = !1, m = !1, h = !0;
|
|
35
35
|
if (typeof t != "function")
|
|
36
|
-
throw new TypeError(
|
|
37
|
-
e = j(e) || 0, O(n) && (f = !!n.leading, m = "maxWait" in n, s = m ?
|
|
36
|
+
throw new TypeError(be);
|
|
37
|
+
e = j(e) || 0, O(n) && (f = !!n.leading, m = "maxWait" in n, s = m ? xe(j(n.maxWait) || 0, e) : s, h = "trailing" in n ? !!n.trailing : h);
|
|
38
38
|
function w(l) {
|
|
39
39
|
var S = r, C = i;
|
|
40
40
|
return r = i = void 0, u = l, a = t.apply(C, S), a;
|
|
@@ -44,7 +44,7 @@ function Te(t, e, n) {
|
|
|
44
44
|
}
|
|
45
45
|
function I(l) {
|
|
46
46
|
var S = l - o, C = l - u, U = e - S;
|
|
47
|
-
return m ?
|
|
47
|
+
return m ? Re(U, s - C) : U;
|
|
48
48
|
}
|
|
49
49
|
function z(l) {
|
|
50
50
|
var S = l - o, C = l - u;
|
|
@@ -59,10 +59,10 @@ function Te(t, e, n) {
|
|
|
59
59
|
function G(l) {
|
|
60
60
|
return c = void 0, h && r ? w(l) : (r = i = void 0, a);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function le() {
|
|
63
63
|
c !== void 0 && clearTimeout(c), u = 0, r = o = i = c = void 0;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ue() {
|
|
66
66
|
return c === void 0 ? a : G(M());
|
|
67
67
|
}
|
|
68
68
|
function $() {
|
|
@@ -75,9 +75,9 @@ function Te(t, e, n) {
|
|
|
75
75
|
}
|
|
76
76
|
return c === void 0 && (c = setTimeout(L, e)), a;
|
|
77
77
|
}
|
|
78
|
-
return $.cancel =
|
|
78
|
+
return $.cancel = le, $.flush = ue, $;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Te(t, e) {
|
|
81
81
|
if (t.match(/^[a-z]+:\/\//i))
|
|
82
82
|
return t;
|
|
83
83
|
if (t.match(/^\/\//))
|
|
@@ -87,7 +87,7 @@ function Ie(t, e) {
|
|
|
87
87
|
const n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
|
|
88
88
|
return n.head.appendChild(r), n.body.appendChild(i), e && (r.href = e), i.href = t, i.href;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const Ie = /* @__PURE__ */ (() => {
|
|
91
91
|
let t = 0;
|
|
92
92
|
const e = () => (
|
|
93
93
|
// eslint-disable-next-line no-bitwise
|
|
@@ -105,19 +105,19 @@ function v(t, e) {
|
|
|
105
105
|
const r = (t.ownerDocument.defaultView || window).getComputedStyle(t).getPropertyValue(e);
|
|
106
106
|
return r ? parseFloat(r.replace("px", "")) : 0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Le(t) {
|
|
109
109
|
const e = v(t, "border-left-width"), n = v(t, "border-right-width");
|
|
110
110
|
return t.clientWidth + e + n;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function De(t) {
|
|
113
113
|
const e = v(t, "border-top-width"), n = v(t, "border-bottom-width");
|
|
114
114
|
return t.clientHeight + e + n;
|
|
115
115
|
}
|
|
116
116
|
function ee(t, e = {}) {
|
|
117
|
-
const n = e.width ||
|
|
117
|
+
const n = e.width || Le(t), r = e.height || De(t);
|
|
118
118
|
return { width: n, height: r };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ve() {
|
|
121
121
|
let t, e;
|
|
122
122
|
try {
|
|
123
123
|
e = process;
|
|
@@ -130,18 +130,18 @@ const p = 16384;
|
|
|
130
130
|
function Fe(t) {
|
|
131
131
|
(t.width > p || t.height > p) && (t.width > p && t.height > p ? t.width > t.height ? (t.height *= p / t.width, t.width = p) : (t.width *= p / t.height, t.height = p) : t.width > p ? (t.height *= p / t.width, t.width = p) : (t.width *= p / t.height, t.height = p));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function F(t) {
|
|
134
134
|
return new Promise((e, n) => {
|
|
135
135
|
const r = new Image();
|
|
136
136
|
r.decode = () => e(r), r.onload = () => e(r), r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = t;
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
async function
|
|
139
|
+
async function Ae(t) {
|
|
140
140
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
|
|
141
141
|
}
|
|
142
|
-
async function
|
|
142
|
+
async function $e(t, e, n) {
|
|
143
143
|
const r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), s = document.createElementNS(r, "foreignObject");
|
|
144
|
-
return i.setAttribute("width", `${e}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${e} ${n}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), i.appendChild(s), s.appendChild(t),
|
|
144
|
+
return i.setAttribute("width", `${e}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${e} ${n}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), i.appendChild(s), s.appendChild(t), Ae(i);
|
|
145
145
|
}
|
|
146
146
|
const g = (t, e) => {
|
|
147
147
|
if (t instanceof e)
|
|
@@ -149,37 +149,37 @@ const g = (t, e) => {
|
|
|
149
149
|
const n = Object.getPrototypeOf(t);
|
|
150
150
|
return n === null ? !1 : n.constructor.name === e.name || g(n, e);
|
|
151
151
|
};
|
|
152
|
-
function
|
|
152
|
+
function Pe(t) {
|
|
153
153
|
const e = t.getPropertyValue("content");
|
|
154
154
|
return `${t.cssText} content: '${e.replace(/'|"/g, "")}';`;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Me(t) {
|
|
157
157
|
return y(t).map((e) => {
|
|
158
158
|
const n = t.getPropertyValue(e), r = t.getPropertyPriority(e);
|
|
159
159
|
return `${e}: ${n}${r ? " !important" : ""};`;
|
|
160
160
|
}).join(" ");
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
const r = `.${t}:${e}`, i = n.cssText ?
|
|
162
|
+
function He(t, e, n) {
|
|
163
|
+
const r = `.${t}:${e}`, i = n.cssText ? Pe(n) : Me(n);
|
|
164
164
|
return document.createTextNode(`${r}{${i}}`);
|
|
165
165
|
}
|
|
166
166
|
function N(t, e, n) {
|
|
167
167
|
const r = window.getComputedStyle(t, n), i = r.getPropertyValue("content");
|
|
168
168
|
if (i === "" || i === "none")
|
|
169
169
|
return;
|
|
170
|
-
const s =
|
|
170
|
+
const s = Ie();
|
|
171
171
|
try {
|
|
172
172
|
e.className = `${e.className} ${s}`;
|
|
173
173
|
} catch {
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
const a = document.createElement("style");
|
|
177
|
-
a.appendChild(
|
|
177
|
+
a.appendChild(He(s, n, r)), e.appendChild(a);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Oe(t, e) {
|
|
180
180
|
N(t, e, ":before"), N(t, e, ":after");
|
|
181
181
|
}
|
|
182
|
-
const X = "application/font-woff", J = "image/jpeg",
|
|
182
|
+
const X = "application/font-woff", J = "image/jpeg", Be = {
|
|
183
183
|
woff: X,
|
|
184
184
|
woff2: X,
|
|
185
185
|
ttf: "application/font-truetype",
|
|
@@ -192,24 +192,24 @@ const X = "application/font-woff", J = "image/jpeg", ke = {
|
|
|
192
192
|
svg: "image/svg+xml",
|
|
193
193
|
webp: "image/webp"
|
|
194
194
|
};
|
|
195
|
-
function
|
|
195
|
+
function ke(t) {
|
|
196
196
|
const e = /\.([^./]*?)$/g.exec(t);
|
|
197
197
|
return e ? e[1] : "";
|
|
198
198
|
}
|
|
199
199
|
function V(t) {
|
|
200
|
-
const e =
|
|
201
|
-
return
|
|
200
|
+
const e = ke(t).toLowerCase();
|
|
201
|
+
return Be[e] || "";
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ve(t) {
|
|
204
204
|
return t.split(/,/)[1];
|
|
205
205
|
}
|
|
206
206
|
function B(t) {
|
|
207
207
|
return t.search(/^(data:)/) !== -1;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function We(t, e) {
|
|
210
210
|
return `data:${e};base64,${t}`;
|
|
211
211
|
}
|
|
212
|
-
async function
|
|
212
|
+
async function te(t, e, n) {
|
|
213
213
|
const r = await fetch(t, e);
|
|
214
214
|
if (r.status === 404)
|
|
215
215
|
throw new Error(`Resource "${r.url}" not found`);
|
|
@@ -237,8 +237,8 @@ async function W(t, e, n) {
|
|
|
237
237
|
n.cacheBust && (t += (/\?/.test(t) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
238
238
|
let i;
|
|
239
239
|
try {
|
|
240
|
-
const s = await
|
|
241
|
-
i =
|
|
240
|
+
const s = await te(t, n.fetchRequestInit, ({ res: a, result: c }) => (e || (e = a.headers.get("Content-Type") || ""), Ve(c)));
|
|
241
|
+
i = We(s, e);
|
|
242
242
|
} catch (s) {
|
|
243
243
|
i = n.imagePlaceholder || "";
|
|
244
244
|
let a = `Failed to fetch resource: ${t}`;
|
|
@@ -248,23 +248,23 @@ async function W(t, e, n) {
|
|
|
248
248
|
}
|
|
249
249
|
async function Ge(t) {
|
|
250
250
|
const e = t.toDataURL();
|
|
251
|
-
return e === "data:," ? t.cloneNode(!1) :
|
|
251
|
+
return e === "data:," ? t.cloneNode(!1) : F(e);
|
|
252
252
|
}
|
|
253
253
|
async function Ue(t, e) {
|
|
254
254
|
if (t.currentSrc) {
|
|
255
255
|
const s = document.createElement("canvas"), a = s.getContext("2d");
|
|
256
256
|
s.width = t.clientWidth, s.height = t.clientHeight, a == null || a.drawImage(t, 0, 0, s.width, s.height);
|
|
257
257
|
const c = s.toDataURL();
|
|
258
|
-
return
|
|
258
|
+
return F(c);
|
|
259
259
|
}
|
|
260
260
|
const n = t.poster, r = V(n), i = await W(n, r, e);
|
|
261
|
-
return
|
|
261
|
+
return F(i);
|
|
262
262
|
}
|
|
263
263
|
async function _e(t) {
|
|
264
264
|
var e;
|
|
265
265
|
try {
|
|
266
266
|
if (!((e = t == null ? void 0 : t.contentDocument) === null || e === void 0) && e.body)
|
|
267
|
-
return await
|
|
267
|
+
return await A(t.contentDocument.body, {}, !0);
|
|
268
268
|
} catch {
|
|
269
269
|
}
|
|
270
270
|
return t.cloneNode(!1);
|
|
@@ -276,7 +276,7 @@ const je = (t) => t.tagName != null && t.tagName.toUpperCase() === "SLOT";
|
|
|
276
276
|
async function Ne(t, e, n) {
|
|
277
277
|
var r, i;
|
|
278
278
|
let s = [];
|
|
279
|
-
return je(t) && t.assignedNodes ? s = y(t.assignedNodes()) : g(t, HTMLIFrameElement) && (!((r = t.contentDocument) === null || r === void 0) && r.body) ? s = y(t.contentDocument.body.childNodes) : s = y(((i = t.shadowRoot) !== null && i !== void 0 ? i : t).childNodes), s.length === 0 || g(t, HTMLVideoElement) || await s.reduce((a, c) => a.then(() =>
|
|
279
|
+
return je(t) && t.assignedNodes ? s = y(t.assignedNodes()) : g(t, HTMLIFrameElement) && (!((r = t.contentDocument) === null || r === void 0) && r.body) ? s = y(t.contentDocument.body.childNodes) : s = y(((i = t.shadowRoot) !== null && i !== void 0 ? i : t).childNodes), s.length === 0 || g(t, HTMLVideoElement) || await s.reduce((a, c) => a.then(() => A(c, n)).then((o) => {
|
|
280
280
|
o && e.appendChild(o);
|
|
281
281
|
}), Promise.resolve()), e;
|
|
282
282
|
}
|
|
@@ -300,7 +300,7 @@ function Qe(t, e) {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
function Ye(t, e) {
|
|
303
|
-
return g(e, Element) && (Xe(t, e),
|
|
303
|
+
return g(e, Element) && (Xe(t, e), Oe(t, e), Je(t, e), Qe(t, e)), e;
|
|
304
304
|
}
|
|
305
305
|
async function Ze(t, e) {
|
|
306
306
|
const n = t.querySelectorAll ? t.querySelectorAll("use") : [];
|
|
@@ -311,7 +311,7 @@ async function Ze(t, e) {
|
|
|
311
311
|
const c = n[s].getAttribute("xlink:href");
|
|
312
312
|
if (c) {
|
|
313
313
|
const o = t.querySelector(c), u = document.querySelector(c);
|
|
314
|
-
!o && u && !r[c] && (r[c] = await
|
|
314
|
+
!o && u && !r[c] && (r[c] = await A(u, e, !0));
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
const i = Object.values(r);
|
|
@@ -326,28 +326,23 @@ async function Ze(t, e) {
|
|
|
326
326
|
}
|
|
327
327
|
return t;
|
|
328
328
|
}
|
|
329
|
-
async function
|
|
329
|
+
async function A(t, e, n) {
|
|
330
330
|
return !n && e.filter && !e.filter(t) ? null : Promise.resolve(t).then((r) => qe(r, e)).then((r) => Ne(t, r, e)).then((r) => Ye(t, r)).then((r) => Ze(r, e));
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const ne = /url\((['"]?)([^'"]+?)\1\)/g, Ke = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, et = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
333
333
|
function tt(t) {
|
|
334
334
|
const e = t.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
335
335
|
return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`, "g");
|
|
336
336
|
}
|
|
337
337
|
function nt(t) {
|
|
338
338
|
const e = [];
|
|
339
|
-
return t.replace(
|
|
339
|
+
return t.replace(ne, (n, r, i) => (e.push(i), n)), e.filter((n) => !B(n));
|
|
340
340
|
}
|
|
341
341
|
async function rt(t, e, n, r, i) {
|
|
342
342
|
try {
|
|
343
|
-
const s = n ?
|
|
343
|
+
const s = n ? Te(e, n) : e, a = V(e);
|
|
344
344
|
let c;
|
|
345
|
-
|
|
346
|
-
const o = await i(s);
|
|
347
|
-
c = te(o, a);
|
|
348
|
-
} else
|
|
349
|
-
c = await W(s, a, r);
|
|
350
|
-
return t.replace(tt(e), `$1${c}$3`);
|
|
345
|
+
return i || (c = await W(s, a, r)), t.replace(tt(e), `$1${c}$3`);
|
|
351
346
|
} catch {
|
|
352
347
|
}
|
|
353
348
|
return t;
|
|
@@ -363,11 +358,11 @@ function it(t, { preferredFontFormat: e }) {
|
|
|
363
358
|
}
|
|
364
359
|
}) : t;
|
|
365
360
|
}
|
|
366
|
-
function
|
|
367
|
-
return t.search(
|
|
361
|
+
function re(t) {
|
|
362
|
+
return t.search(ne) !== -1;
|
|
368
363
|
}
|
|
369
|
-
async function
|
|
370
|
-
if (!
|
|
364
|
+
async function ie(t, e, n) {
|
|
365
|
+
if (!re(t))
|
|
371
366
|
return t;
|
|
372
367
|
const r = it(t, n);
|
|
373
368
|
return nt(r).reduce((s, a) => s.then((c) => rt(c, a, e, n)), Promise.resolve(r));
|
|
@@ -376,7 +371,7 @@ async function D(t, e, n) {
|
|
|
376
371
|
var r;
|
|
377
372
|
const i = (r = e.style) === null || r === void 0 ? void 0 : r.getPropertyValue(t);
|
|
378
373
|
if (i) {
|
|
379
|
-
const s = await
|
|
374
|
+
const s = await ie(i, null, n);
|
|
380
375
|
return e.style.setProperty(t, s, e.style.getPropertyPriority(t)), !0;
|
|
381
376
|
}
|
|
382
377
|
return !1;
|
|
@@ -396,10 +391,10 @@ async function at(t, e) {
|
|
|
396
391
|
});
|
|
397
392
|
}
|
|
398
393
|
async function ct(t, e) {
|
|
399
|
-
const r = y(t.childNodes).map((i) =>
|
|
394
|
+
const r = y(t.childNodes).map((i) => se(i, e));
|
|
400
395
|
await Promise.all(r).then(() => t);
|
|
401
396
|
}
|
|
402
|
-
async function
|
|
397
|
+
async function se(t, e) {
|
|
403
398
|
g(t, Element) && (await st(t, e), await at(t, e), await ct(t, e));
|
|
404
399
|
}
|
|
405
400
|
function ot(t, e) {
|
|
@@ -422,7 +417,7 @@ async function Z(t, e) {
|
|
|
422
417
|
let n = t.cssText;
|
|
423
418
|
const r = /url\(["']?([^"')]+)["']?\)/g, s = (n.match(/url\([^)]+\)/g) || []).map(async (a) => {
|
|
424
419
|
let c = a.replace(r, "$1");
|
|
425
|
-
return c.startsWith("https://") || (c = new URL(c, t.url).href),
|
|
420
|
+
return c.startsWith("https://") || (c = new URL(c, t.url).href), te(c, e.fetchRequestInit, ({ result: o }) => (n = n.replace(a, `url(${o})`), [a, o]));
|
|
426
421
|
});
|
|
427
422
|
return Promise.all(s).then(() => n);
|
|
428
423
|
}
|
|
@@ -495,7 +490,7 @@ async function lt(t, e) {
|
|
|
495
490
|
}), n));
|
|
496
491
|
}
|
|
497
492
|
function ut(t) {
|
|
498
|
-
return t.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) =>
|
|
493
|
+
return t.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => re(e.style.getPropertyValue("src")));
|
|
499
494
|
}
|
|
500
495
|
async function ht(t, e) {
|
|
501
496
|
if (t.ownerDocument == null)
|
|
@@ -507,7 +502,7 @@ async function ft(t, e) {
|
|
|
507
502
|
const n = await ht(t, e);
|
|
508
503
|
return (await Promise.all(n.map((i) => {
|
|
509
504
|
const s = i.parentStyleSheet ? i.parentStyleSheet.href : null;
|
|
510
|
-
return
|
|
505
|
+
return ie(i.cssText, s, e);
|
|
511
506
|
}))).join(`
|
|
512
507
|
`);
|
|
513
508
|
}
|
|
@@ -519,20 +514,20 @@ async function dt(t, e) {
|
|
|
519
514
|
}
|
|
520
515
|
}
|
|
521
516
|
async function mt(t, e = {}) {
|
|
522
|
-
const { width: n, height: r } = ee(t, e), i = await
|
|
523
|
-
return await dt(i, e), await
|
|
517
|
+
const { width: n, height: r } = ee(t, e), i = await A(t, e, !0);
|
|
518
|
+
return await dt(i, e), await se(i, e), ot(i, e), await $e(i, n, r);
|
|
524
519
|
}
|
|
525
|
-
async function
|
|
526
|
-
const { width: n, height: r } = ee(t, e), i = await mt(t, e), s = await
|
|
520
|
+
async function ae(t, e = {}) {
|
|
521
|
+
const { width: n, height: r } = ee(t, e), i = await mt(t, e), s = await F(i), a = document.createElement("canvas"), c = a.getContext("2d"), o = e.pixelRatio || ve(), u = e.canvasWidth || n, f = e.canvasHeight || r;
|
|
527
522
|
return a.width = u * o, a.height = f * o, e.skipAutoScale || Fe(a), a.style.width = `${u}`, a.style.height = `${f}`, e.backgroundColor && (c.fillStyle = e.backgroundColor, c.fillRect(0, 0, a.width, a.height)), c.drawImage(s, 0, 0, a.width, a.height), a;
|
|
528
523
|
}
|
|
529
524
|
async function gt(t, e = {}) {
|
|
530
|
-
return (await
|
|
525
|
+
return (await ae(t, e)).toDataURL();
|
|
531
526
|
}
|
|
532
527
|
async function pt(t, e = {}) {
|
|
533
|
-
return (await
|
|
528
|
+
return (await ae(t, e)).toDataURL("image/jpeg", e.quality || 1);
|
|
534
529
|
}
|
|
535
|
-
class
|
|
530
|
+
class ce {
|
|
536
531
|
constructor(e, n) {
|
|
537
532
|
this.model = e, this.services = n, this.init();
|
|
538
533
|
}
|
|
@@ -550,7 +545,7 @@ class oe {
|
|
|
550
545
|
}
|
|
551
546
|
}
|
|
552
547
|
const yt = "DONT_STYLE_ME_css_styles_verifier";
|
|
553
|
-
class k extends
|
|
548
|
+
class k extends ce {
|
|
554
549
|
// initialized in initializeID() called by init()
|
|
555
550
|
constructor(e, n) {
|
|
556
551
|
super(e, n);
|
|
@@ -744,14 +739,14 @@ class k extends oe {
|
|
|
744
739
|
if (!e)
|
|
745
740
|
return;
|
|
746
741
|
let n = e.clientWidth, r = e.clientHeight;
|
|
747
|
-
const i =
|
|
742
|
+
const i = Ce(() => {
|
|
748
743
|
var a;
|
|
749
744
|
e && (Math.abs(n - e.clientWidth) > 1 || Math.abs(r - e.clientHeight) > 1) && (n = e.clientWidth, r = e.clientHeight, (a = this.services.events) == null || a.dispatchEvent(P.Chart.RESIZE));
|
|
750
745
|
}, 12.5);
|
|
751
746
|
new ResizeObserver(i).observe(e);
|
|
752
747
|
}
|
|
753
748
|
}
|
|
754
|
-
class
|
|
749
|
+
class oe extends ce {
|
|
755
750
|
static appendOrUpdateLinearGradient(e) {
|
|
756
751
|
let n = e.svg.select(`defs linearGradient#${e.id}`);
|
|
757
752
|
n.empty() && (n = e.svg.append("defs").append("linearGradient").attr("id", e.id).attr("x1", e.x1).attr("x2", e.x2).attr("y1", e.y1).attr("y2", e.y2)), n.selectAll("stop").remove(), n.selectAll("stop").data(e.stops).enter().append("stop").attr("offset", (r) => r.offset).style("stop-color", (r) => r.color).style("stop-opacity", (r) => r.opacity);
|
|
@@ -780,7 +775,7 @@ class le extends oe {
|
|
|
780
775
|
opacity: "0.6"
|
|
781
776
|
},
|
|
782
777
|
{
|
|
783
|
-
offset:
|
|
778
|
+
offset: oe.getOffsetRatio(e),
|
|
784
779
|
color: n,
|
|
785
780
|
opacity: "0"
|
|
786
781
|
},
|
|
@@ -841,14 +836,14 @@ function It(t, e) {
|
|
|
841
836
|
}
|
|
842
837
|
export {
|
|
843
838
|
k as D,
|
|
844
|
-
|
|
845
|
-
|
|
839
|
+
oe as G,
|
|
840
|
+
ce as S,
|
|
846
841
|
It as a,
|
|
847
842
|
St as b,
|
|
848
|
-
|
|
843
|
+
Ce as c,
|
|
849
844
|
Ct as d,
|
|
850
845
|
Tt as p,
|
|
851
846
|
Rt as r,
|
|
852
847
|
j as t
|
|
853
848
|
};
|
|
854
|
-
//# sourceMappingURL=angle-utils-
|
|
849
|
+
//# sourceMappingURL=angle-utils-D8sXyiIj.mjs.map
|