@carbon/charts 1.24.0 → 1.25.0
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 +13 -0
- package/dist/{choropleth-Bz2poHE5.mjs → choropleth-BYCZIwGG.mjs} +15 -8
- package/dist/choropleth-BYCZIwGG.mjs.map +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/{index-BILVb6NZ.mjs → index-Bmzree89.mjs} +236 -235
- package/dist/{index-BILVb6NZ.mjs.map → index-Bmzree89.mjs.map} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/services/index.mjs +1 -1
- package/dist/services/zoom.d.ts +1 -0
- package/dist/umd/bundle.umd.cjs +1 -1
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +1 -1
- package/package.json +2 -2
- package/dist/choropleth-Bz2poHE5.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.25.0 (2025-09-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **Events-ZoomDomain.CHANGE:** add type ('in' | 'out' | 'reset' | 'manual')
|
|
11
|
+
([#2035](https://github.com/carbon-design-system/carbon-charts/issues/2035))
|
|
12
|
+
([304fbf6](https://github.com/carbon-design-system/carbon-charts/commit/304fbf6508a4598432c3d6a1e3c7c0e1ed80e3d4))
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
6
19
|
# 1.24.0 (2025-09-18)
|
|
7
20
|
|
|
8
21
|
### Features
|
|
@@ -4437,8 +4437,8 @@ const nn = class nn extends dt {
|
|
|
4437
4437
|
T === null || T[0] === T[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), g(T));
|
|
4438
4438
|
}, v = (x, T) => {
|
|
4439
4439
|
const k = Al().range([0, o]).domain(f);
|
|
4440
|
-
let _ = [k.invert(x), k.invert(T)];
|
|
4441
|
-
_[0].valueOf() === _[1].valueOf()
|
|
4440
|
+
let _ = [k.invert(x), k.invert(T)], G = "manual";
|
|
4441
|
+
_[0].valueOf() === _[1].valueOf() ? (_ = this.services.zoom.getDefaultZoomBarDomain(), G = "reset") : G = "manual", (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_, { dispatchEvent: !0, type: G });
|
|
4442
4442
|
};
|
|
4443
4443
|
let S;
|
|
4444
4444
|
const y = (x) => {
|
|
@@ -4567,13 +4567,20 @@ class um extends dt {
|
|
|
4567
4567
|
handleBrushedEvent(t, e, n, s) {
|
|
4568
4568
|
const a = [n.invert(s[0]), n.invert(s[1])];
|
|
4569
4569
|
if (this.updateBrushHandle(this.getComponentContainer(), s), t.sourceEvent != null && (t.sourceEvent.type === "mousemove" || t.sourceEvent.type === "mouseup" || t.sourceEvent.type === "mousedown" || t.sourceEvent.type === "touchstart" || t.sourceEvent.type === "touchmove" || t.sourceEvent.type === "touchend")) {
|
|
4570
|
+
let r = "manual";
|
|
4571
|
+
if (e && e[0] && e[1]) {
|
|
4572
|
+
const c = this.services.zoom.getDefaultZoomBarDomain();
|
|
4573
|
+
a[0].valueOf() === c[0].valueOf() && a[1].valueOf() === c[1].valueOf() ? r = "reset" : r = "manual";
|
|
4574
|
+
}
|
|
4570
4575
|
(e === void 0 || e[0] !== a[0] || e[1] !== a[1]) && this.services.zoom.handleDomainChange(a, {
|
|
4571
|
-
dispatchEvent: !1
|
|
4576
|
+
dispatchEvent: !1,
|
|
4577
|
+
type: r
|
|
4572
4578
|
});
|
|
4573
|
-
let
|
|
4574
|
-
t.type === "start" ?
|
|
4575
|
-
newDomain: a
|
|
4576
|
-
|
|
4579
|
+
let o;
|
|
4580
|
+
t.type === "start" ? o = b.ZoomBar.SELECTION_START : t.type === "brush" ? o = b.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (o = b.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(b.ZoomDomain.CHANGE, {
|
|
4581
|
+
newDomain: a,
|
|
4582
|
+
type: r
|
|
4583
|
+
})), this.services.events.dispatchEvent(o, {
|
|
4577
4584
|
selection: s,
|
|
4578
4585
|
newDomain: a
|
|
4579
4586
|
});
|
|
@@ -10749,4 +10756,4 @@ export {
|
|
|
10749
10756
|
qm as y,
|
|
10750
10757
|
Vm as z
|
|
10751
10758
|
};
|
|
10752
|
-
//# sourceMappingURL=choropleth-
|
|
10759
|
+
//# sourceMappingURL=choropleth-BYCZIwGG.mjs.map
|