@carbon/charts 1.25.0 → 1.25.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.
@@ -1,4 +1,4 @@
1
- import { h as e, k as r, X as o, A as t, a8 as i, F as l, B as n, o as d, p as h, C as p, f as u, e as S, r as C, s as c, q as g, a9 as B, D as m, z as T, a7 as L, G as b, v as k, E as A, H as x, I as P, Y as R, b as w, L as G, j as H, K as v, O as M, N as f, M as D, P as Z, Q as j, R as q, l as y, w as z, m as E, J as W, S as F, x as I, t as J, u as K, y as N, g as O, T as Q, a as U, d as V, U as X, V as Y, i as _, W as $, n as aa, Z as sa, _ as ea, $ as ra, a0 as oa, a1 as ta, a2 as ia, a3 as la, a4 as na, a5 as da, a6 as ha } from "../choropleth-BYCZIwGG.mjs";
1
+ import { h as e, k as r, X as o, A as t, a8 as i, F as l, B as n, o as d, p as h, C as p, f as u, e as S, r as C, s as c, q as g, a9 as B, D as m, z as T, a7 as L, G as b, v as k, E as A, H as x, I as P, Y as R, b as w, L as G, j as H, K as v, O as M, N as f, M as D, P as Z, Q as j, R as q, l as y, w as z, m as E, J as W, S as F, x as I, t as J, u as K, y as N, g as O, T as Q, a as U, d as V, U as X, V as Y, i as _, W as $, n as aa, Z as sa, _ as ea, $ as ra, a0 as oa, a1 as ta, a2 as ia, a3 as la, a4 as na, a5 as da, a6 as ha } from "../choropleth-BgycggQG.mjs";
2
2
  export {
3
3
  e as Alluvial,
4
4
  r as Area,
@@ -1,6 +1,11 @@
1
1
  import { AlluvialChartOptions, AreaChartOptions, AxisChartOptions, BarChartOptions, BaseChartOptions, BubbleChartOptions, BulletChartOptions, ChoroplethChartOptions, CirclePackChartOptions, ComboChartOptions, DonutChartOptions, GaugeChartOptions, HeatmapChartOptions, HistogramChartOptions, LineChartOptions, MeterChartOptions, PieChartOptions, ProportionalMeterChartOptions, RadarChartOptions, ScatterChartOptions, StackedBarChartOptions, ThematicChartOptions, TreeChartOptions, WordCloudChartOptions } from './interfaces/charts';
2
2
  import { TimeScaleOptions } from './interfaces/axis-scales';
3
3
  import { GridOptions, RulerOptions, TooltipOptions } from './interfaces/components';
4
+ /**
5
+ * Axis title positioning offset from the axis line
6
+ * Used for bottom axis title positioning to prevent clipping in screenshots
7
+ */
8
+ export declare const AXIS_TITLE_POSITIONING_OFFSET = 4;
4
9
  /**
5
10
  * Grid options
6
11
  */
@@ -1,5 +1,5 @@
1
- import { a3 as Lt, aC as Nt, aD as Ct, aE as It, aF as ut, aG as Zt, aH as Ft, aI as zt, a0 as Vt, aJ as Ht, aK as Yt, aL as Xt, aM as Gt, _ as $t, W as Ut, ax as q, aN as Kt, aO as qt, n as j, g as c, F as W, aP as v, aQ as M, aR as E, aS as jt, aT as ft, aU as pt, h as J, ar as Wt, ao as Jt, ad as mt, ai as Qt, H as ti } from "./color-scale-utils-DCBFJmbg.mjs";
2
- import { z as ii, A, e as Q, S as O, D as ni, s as ei, v as si, x as oi, y as ai, u as ri } from "./angle-utils-BWFhuTnR.mjs";
1
+ import { a3 as Lt, aD as Nt, aE as Ct, aF as It, aG as ut, aH as Zt, aI as Ft, aJ as zt, a0 as Vt, aK as Ht, aL as Yt, aM as Xt, aN as Gt, _ as $t, W as Ut, ay as j, aO as Kt, aP as jt, n as q, g as c, F as W, aQ as v, aR as M, aS as E, aT as qt, aU as ft, aV as pt, h as J, as as Wt, ap as Jt, ad as mt, aj as Qt, H as ti } from "./color-scale-utils-igrenh2d.mjs";
2
+ import { z as ii, A, e as Q, S as O, D as ni, s as ei, v as si, x as oi, y as ai, u as ri } from "./angle-utils-4EO2XuoV.mjs";
3
3
  import { $ as w, e as _, i as C, S as p } from "./axis-scales-CPuwbFQf.mjs";
4
4
  function dt(i) {
5
5
  var t = i == null ? 0 : i.length;
@@ -92,12 +92,12 @@ function Di(i) {
92
92
  if (m > f) break;
93
93
  u.push(m);
94
94
  }
95
- u.length * 2 < D && (u = q(l, f, D));
95
+ u.length * 2 < D && (u = j(l, f, D));
96
96
  } else
97
- u = q(d, T, Math.min(T - d, D)).map(o);
97
+ u = j(d, T, Math.min(T - d, D)).map(o);
98
98
  return y ? u.reverse() : u;
99
99
  }, t.tickFormat = (r, h) => {
100
- if (r == null && (r = 10), h == null && (h = e === 10 ? "s" : ","), typeof h != "function" && (!(e % 1) && (h = Kt(h)).precision == null && (h.trim = !0), h = qt(h)), r === 1 / 0) return h;
100
+ if (r == null && (r = 10), h == null && (h = e === 10 ? "s" : ","), typeof h != "function" && (!(e % 1) && (h = Kt(h)).precision == null && (h.trim = !0), h = jt(h)), r === 1 / 0) return h;
101
101
  const l = Math.max(1, e * r / t.ticks().length);
102
102
  return (f) => {
103
103
  let y = f / o(Math.round(s(f)));
@@ -791,7 +791,7 @@ class sn extends O {
791
791
  * */
792
792
  zoomIn(t, n, e) {
793
793
  let s, o, a;
794
- const r = e || j;
794
+ const r = e || q;
795
795
  t && (s = t.x, o = t.y, a = 2);
796
796
  const { width: h, height: l } = ni.getSVGElementSize(this.services.domUtils.getHolder(), {
797
797
  useClientDimensions: !0
@@ -804,7 +804,7 @@ class sn extends O {
804
804
  });
805
805
  }
806
806
  zoomOut(t, n) {
807
- const e = n || j;
807
+ const e = n || q;
808
808
  t.transition().duration(e.duration).ease(e.ease).attr("transform", ""), this.services.events.dispatchEvent(w.CanvasZoom.CANVAS_ZOOM_OUT);
809
809
  }
810
810
  }
@@ -960,7 +960,7 @@ function Ki(i, t, n) {
960
960
  i,
961
961
  t
962
962
  ), o = rt(e, s), a = Math.abs(
963
- jt(e, s)
963
+ qt(e, s)
964
964
  );
965
965
  e.setDate(e.getDate() - o * a);
966
966
  const r = +(rt(e, s) === -o), h = o * (a - r);
@@ -974,7 +974,7 @@ function Pt(i, t, n) {
974
974
  const e = v(i, n?.in);
975
975
  return isNaN(t) ? E(i, NaN) : (t && e.setDate(e.getDate() + t), e);
976
976
  }
977
- function qi(i, t, n) {
977
+ function ji(i, t, n) {
978
978
  return Pt(i, -t, n);
979
979
  }
980
980
  function G(i) {
@@ -983,7 +983,7 @@ function G(i) {
983
983
  return e === 0 ? 0 : e;
984
984
  };
985
985
  }
986
- function ji(i, t, n) {
986
+ function qi(i, t, n) {
987
987
  const [e, s] = M(
988
988
  n?.in,
989
989
  i,
@@ -1331,7 +1331,7 @@ class hn extends O {
1331
1331
  }
1332
1332
  function Ji(i, t) {
1333
1333
  const n = new Date(i[0]), e = new Date(i[1]);
1334
- return zi(e, n) > 1 ? [Vi(n, t), St(e, t)] : $i(e, n) > 1 ? [Ui(n, t), X(e, t)] : Ki(e, n) > 1 ? [qi(n, t), Pt(e, t)] : ji(e, n) > 1 ? [Wi(n, t), wt(e, t)] : ht(e, n) > 30 ? [
1334
+ return zi(e, n) > 1 ? [Vi(n, t), St(e, t)] : $i(e, n) > 1 ? [Ui(n, t), X(e, t)] : Ki(e, n) > 1 ? [ji(n, t), Pt(e, t)] : qi(e, n) > 1 ? [Wi(n, t), wt(e, t)] : ht(e, n) > 30 ? [
1335
1335
  ct(n, t * 30),
1336
1336
  Z(e, t * 30)
1337
1337
  ] : ht(e, n) > 1 ? [ct(n, t), Z(e, t)] : lt(e, n) > 15 ? [
@@ -1502,4 +1502,4 @@ export {
1502
1502
  hn as c,
1503
1503
  dt as f
1504
1504
  };
1505
- //# sourceMappingURL=index-Bmzree89.mjs.map
1505
+ //# sourceMappingURL=index-B-DZT7fS.mjs.map