@carbon/charts 1.11.2 → 1.11.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 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.11.3](https://github.com/carbon-design-system/carbon-charts/compare/v1.11.2...v1.11.3) (2023-07-03)
7
+
8
+ ### Bug Fixes
9
+
10
+ - StackBlitz dependencies & render(animate: boolean) values
11
+ ([#1601](https://github.com/carbon-design-system/carbon-charts/issues/1601))
12
+ ([40cb8ec](https://github.com/carbon-design-system/carbon-charts/commit/40cb8ecb810cdacd3a9bd89c64b6f1bde3b3a202))
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.11.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.11.1...v1.11.2) (2023-06-28)
7
20
 
8
21
  **Note:** Version bump only for package @carbon/charts
package/dist/chart.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare class Chart {
12
12
  constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BaseChartOptions>);
13
13
  init(holder: HTMLDivElement, chartConfigs: ChartConfig<BaseChartOptions>): void;
14
14
  getComponents(): Component[];
15
- update(): void;
15
+ update(animate?: boolean): void;
16
16
  destroy(): void;
17
17
  protected getChartComponents(graphFrameComponents: any[], configs?: object): (LayoutComponent | Tooltip | Modal)[];
18
18
  }
@@ -765,7 +765,7 @@ class nc extends z {
765
765
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
766
766
  // @ts-ignore
767
767
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
768
- render(e = !0) {
768
+ render(e = !1) {
769
769
  this.getComponentContainer().style("width", `${this.configs.size || Ht.default.size}px`).style("height", `${this.configs.size || Ht.default.size}px`).attr("opacity", 0);
770
770
  }
771
771
  }
@@ -1899,7 +1899,7 @@ class ac extends z {
1899
1899
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1900
1900
  // @ts-ignore
1901
1901
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1902
- render(e = !0) {
1902
+ render(e = !1) {
1903
1903
  const t = this.model.getOptions();
1904
1904
  if (!this.isEventListenerAdded) {
1905
1905
  const s = x(this.services.domUtils.getHolder()), n = y(t, "style", "prefix");
@@ -1917,7 +1917,7 @@ class tr extends z {
1917
1917
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1918
1918
  // @ts-ignore
1919
1919
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1920
- render(e = !0) {
1920
+ render(e = !1) {
1921
1921
  const t = this.getComponentContainer(), s = y(this.getOptions(), "title"), n = t.selectAll("p.title").data([s]);
1922
1922
  if (n.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(n).html((a) => a), n.node() && n.node().offsetWidth < n.node().scrollWidth) {
1923
1923
  const a = this;
@@ -1994,7 +1994,7 @@ class sr extends z {
1994
1994
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1995
1995
  // @ts-ignore
1996
1996
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1997
- render(e = !0) {
1997
+ render(e = !1) {
1998
1998
  const t = this.getOptions(), s = y(t, "legend"), n = y(s, "alignment"), a = y(t, "legend", "orientation");
1999
1999
  let i = this.model.getDataGroups();
2000
2000
  const { DISABLED: o } = K.items.status, l = i.some((S) => S.status === o), c = y(s, "order"), d = this.getComponentContainer().classed("center-aligned", n === ue.CENTER).classed("right-aligned", n === ue.RIGHT).classed(a, !0).classed("has-deactivated-items", l).attr("role", U.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
@@ -2369,7 +2369,7 @@ class ar extends z {
2369
2369
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2370
2370
  // @ts-ignore
2371
2371
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2372
- render(e = !0) {
2372
+ render(e = !1) {
2373
2373
  const t = this.getOptions(), s = y(t, "tooltip", "enabled");
2374
2374
  if (s) {
2375
2375
  const n = x(this.services.domUtils.getHolder()), a = y(t, "style", "prefix");
@@ -3497,7 +3497,7 @@ class Ws extends z {
3497
3497
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3498
3498
  // @ts-ignore
3499
3499
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3500
- render(e = !0) {
3500
+ render(e = !1) {
3501
3501
  const t = y(this.getOptions(), "ruler", "enabled");
3502
3502
  this.drawBackdrop(), t && !this.isEventListenerAdded ? this.addBackdropEventListeners() : !t && this.isEventListenerAdded && this.removeBackdropEventListeners();
3503
3503
  }
@@ -3841,7 +3841,7 @@ class js extends z {
3841
3841
  }), l = E.appendOrSelect(a, `g.axis.${t}`);
3842
3842
  let c, d;
3843
3843
  if (t === P.BOTTOM || t === P.TOP ? (c = this.configs.axes[P.LEFT] ? this.margins.left : 0, d = this.configs.axes[P.RIGHT] ? i - this.margins.right : i) : (c = o - this.margins.bottom, d = this.margins.top), !this.services.cartesianScales)
3844
- throw new Error("Services cartesianScales undefineds");
3844
+ throw new Error("Services cartesianScales undefined");
3845
3845
  const p = this.services.cartesianScales.getScaleByPosition(t);
3846
3846
  this.scaleType === te.LABELS || this.scaleType === te.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
3847
3847
  let h;
@@ -5203,7 +5203,7 @@ class kc extends sr {
5203
5203
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5204
5204
  // @ts-ignore
5205
5205
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5206
- render(e = !0) {
5206
+ render(e = !1) {
5207
5207
  const t = this.getOptions(), s = this.getComponentContainer(), { width: n } = E.getSVGElementSize(s, {
5208
5208
  useAttrs: !0
5209
5209
  }), a = y(t, "color", "gradient", "colors"), i = y(
@@ -5285,7 +5285,7 @@ class Ic extends tr {
5285
5285
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5286
5286
  // @ts-ignore
5287
5287
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5288
- render(e = !0) {
5288
+ render(e = !1) {
5289
5289
  const t = y(this.model.getDisplayData(), 0), s = this.getOptions(), n = this.getComponentContainer(), { groupMapsTo: a } = s.data;
5290
5290
  if (y(s, "meter", "proportional"))
5291
5291
  this.displayTotal(), this.displayBreakdownTitle();
@@ -8019,4 +8019,4 @@ export {
8019
8019
  Fc as y,
8020
8020
  _c as z
8021
8021
  };
8022
- //# sourceMappingURL=choropleth-9a359c3b.mjs.map
8022
+ //# sourceMappingURL=choropleth-449cf25e.mjs.map