@carbon/charts 1.27.14 → 1.27.15
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 +9 -0
- package/dist/{angle-utils-Dy0Gf7Eb.mjs → angle-utils-Br0vKMAk.mjs} +2 -2
- package/dist/{angle-utils-Dy0Gf7Eb.mjs.map → angle-utils-Br0vKMAk.mjs.map} +1 -1
- package/dist/{array-D6ni_TQq.mjs → array-DpdUWKrC.mjs} +2 -2
- package/dist/{array-D6ni_TQq.mjs.map → array-DpdUWKrC.mjs.map} +1 -1
- package/dist/{choropleth-Bn8eKXA6.mjs → choropleth-Bqh-oBJ7.mjs} +30 -26
- package/dist/{choropleth-Bn8eKXA6.mjs.map → choropleth-Bqh-oBJ7.mjs.map} +1 -1
- package/dist/{color-scale-utils-C4KU2jNr.mjs → color-scale-utils--mwppOF8.mjs} +17 -21
- package/dist/{color-scale-utils-C4KU2jNr.mjs.map → color-scale-utils--mwppOF8.mjs.map} +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-CHbrPDmO.mjs → index-CNdgfXjZ.mjs} +3 -3
- package/dist/{index-CHbrPDmO.mjs.map → index-CNdgfXjZ.mjs.map} +1 -1
- package/dist/index.mjs +7 -7
- package/dist/interfaces/charts.d.ts +16 -0
- package/dist/model/heatmap.d.ts +7 -1
- package/dist/model/index.mjs +186 -180
- package/dist/model/index.mjs.map +1 -1
- package/dist/services/color-scale-utils.d.ts +15 -2
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.cjs +8 -8
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +8 -8
- package/package.json +2 -2
|
@@ -5689,26 +5689,22 @@ function K(t) {
|
|
|
5689
5689
|
function c0(t) {
|
|
5690
5690
|
return t === void 0 ? "" : t.toISOString();
|
|
5691
5691
|
}
|
|
5692
|
-
function km(t) {
|
|
5693
|
-
const
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
const
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
for (let c = 1; c < u + 1; c++)
|
|
5709
|
-
s.push(`fill-${o}-${i}-${c}`);
|
|
5710
|
-
}
|
|
5711
|
-
return ra().domain(a).range(s);
|
|
5692
|
+
function km(t, e) {
|
|
5693
|
+
const n = _l(t, (i) => i.value), r = na().domain(n).nice().domain();
|
|
5694
|
+
return r[0] > 0 ? r[0] = 0 : r[0] === 0 && r[1] === 0 && (r[0] = 0, r[1] = 1), r[0] < 0 && r[1] > 0 && (Math.abs(r[0]) > r[1] ? r[1] = Math.abs(r[0]) : r[0] = -r[1]), e && (typeof e.min == "number" && (r[0] = e.min), typeof e.max == "number" && (r[1] = e.max)), r;
|
|
5695
|
+
}
|
|
5696
|
+
function f0(t, e, n) {
|
|
5697
|
+
const r = rt(e, "gradient", "colors"), i = !ll(r);
|
|
5698
|
+
let a = rt(e, "pairing", "option");
|
|
5699
|
+
const o = km(t, n), s = o[0] < 0 && o[1] > 0 ? "diverge" : "mono";
|
|
5700
|
+
(a < 1 && a > 4 && s === "mono" || a < 1 && a > 2 && s === "diverge") && (a = 1);
|
|
5701
|
+
const u = i ? r : [];
|
|
5702
|
+
if (!i) {
|
|
5703
|
+
const c = s === "diverge" ? 17 : 11;
|
|
5704
|
+
for (let f = 1; f < c + 1; f++)
|
|
5705
|
+
u.push(`fill-${s}-${a}-${f}`);
|
|
5706
|
+
}
|
|
5707
|
+
return ra().domain(o).range(u);
|
|
5712
5708
|
}
|
|
5713
5709
|
export {
|
|
5714
5710
|
r0 as $,
|
|
@@ -5831,4 +5827,4 @@ export {
|
|
|
5831
5827
|
Pp as y,
|
|
5832
5828
|
$p as z
|
|
5833
5829
|
};
|
|
5834
|
-
//# sourceMappingURL=color-scale-utils
|
|
5830
|
+
//# sourceMappingURL=color-scale-utils--mwppOF8.mjs.map
|