@carbon/charts-vue 1.15.2 → 1.15.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.15.3 (2024-03-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **bar:** bleed-out for includeZero set to false
11
+ ([#1780](https://github.com/carbon-design-system/carbon-charts/issues/1780))
12
+ ([4c14db0](https://github.com/carbon-design-system/carbon-charts/commit/4c14db0571919004c8591c019b9a1c40fe2e5418))
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.15.2 (2024-03-08)
7
20
 
8
21
  ### Bug Fixes
package/dist/index.mjs CHANGED
@@ -30,7 +30,7 @@ const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
30
  ZoomBar: lp,
31
31
  ZoomDomain: cp
32
32
  }, Symbol.toStringTag, { value: "Module" })), S = N0;
33
- var Q = /* @__PURE__ */ ((e) => (e.HTML = "html", e.SVG = "svg", e))(Q || {}), Ap = /* @__PURE__ */ ((e) => (e.WHITE = "white", e.G100 = "g100", e.G90 = "g90", e.G10 = "g10", e))(Ap || {}), et = /* @__PURE__ */ ((e) => (e.BACKGROUND = "background", e.FILL = "fill", e.STROKE = "stroke", e.TOOLTIP = "tooltip", e))(et || {}), V = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e.TOP = "top", e.BOTTOM = "bottom", e))(V || {}), We = /* @__PURE__ */ ((e) => (e.GRAPH_VIEW = "graph_view", e.SLIDER_VIEW = "slider_view", e))(We || {}), Re = /* @__PURE__ */ ((e) => (e.END_LINE = "end_line", e.MID_LINE = "mid_line", e.FRONT_LINE = "front_line", e.NONE = "none", e))(Re || {}), Wt = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(Wt || {}), X = /* @__PURE__ */ ((e) => (e.TIME = "time", e.LINEAR = "linear", e.LOG = "log", e.LABELS = "labels", e.LABELS_RATIO = "labels-ratio", e))(X || {}), $i = /* @__PURE__ */ ((e) => (e.RIGHT = "right", e.LEFT = "left", e.TOP = "top", e.BOTTOM = "bottom", e))($i || {}), zt = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(zt || {}), Ui = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(Ui || {}), Tc = /* @__PURE__ */ ((e) => (e.TREE = "tree", e.DENDROGRAM = "dendrogram", e))(Tc || {}), At = /* @__PURE__ */ ((e) => (e.ROW = "row", e.COLUMN = "column", e.ROW_REVERSE = "row-reverse", e.COLUMN_REVERSE = "column-reverse", e))(At || {}), st = /* @__PURE__ */ ((e) => (e.FIXED = "fixed", e.PREFERRED = "preferred", e.STRETCH = "stretch", e))(st || {}), Jr = /* @__PURE__ */ ((e) => (e.CENTER = "center", e))(Jr || {}), Rs = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Rs || {}), Ft = /* @__PURE__ */ ((e) => (e.GRID = "grid", e.VERT_OR_HORIZ = "vertOrHoriz", e.PIE = "pie", e.DONUT = "donut", e))(Ft || {}), ln = /* @__PURE__ */ ((e) => (e.START = "start", e.MIDDLE = "middle", e.END = "end", e))(ln || {}), cn = /* @__PURE__ */ ((e) => (e.BASELINE = "baseline", e.MIDDLE = "middle", e.HANGING = "hanging", e))(cn || {}), Ar = /* @__PURE__ */ ((e) => (e.SEMI = "semi", e.FULL = "full", e))(Ar || {}), hl = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e))(hl || {}), Is = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e))(Is || {}), Ns = /* @__PURE__ */ ((e) => (e.ALWAYS = "always", e.AUTO = "auto", e.NEVER = "never", e))(Ns || {}), Se = /* @__PURE__ */ ((e) => (e.SCATTER = "scatter", e.LINE = "line", e.SIMPLE_BAR = "simple-bar", e.STACKED_BAR = "stacked-bar", e.GROUPED_BAR = "grouped-bar", e.AREA = "area", e.STACKED_AREA = "stacked-area", e))(Se || {}), bt = /* @__PURE__ */ ((e) => (e.EXPORT_CSV = "Export as CSV", e.EXPORT_PNG = "Export as PNG", e.EXPORT_JPG = "Export as JPG", e.ZOOM_IN = "Zoom in", e.ZOOM_OUT = "Zoom out", e.RESET_ZOOM = "Reset zoom", e.MAKE_FULLSCREEN = "Make fullscreen", e.EXIT_FULLSCREEN = "Exit fullscreen", e.SHOW_AS_DATATABLE = "Show as data-table", e.CUSTOM = "Custom", e))(bt || {}), dl = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(dl || {}), Vt = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.RADIUS = "radius", e.AREA = "area", e.SIZE = "size", e.LINE = "line", e.QUARTILE = "quartile", e.ZOOM = "zoom", e))(Vt || {}), Ps = /* @__PURE__ */ ((e) => (e.LINEAR = "linear", e.QUANTIZE = "quantize", e))(Ps || {}), Li = /* @__PURE__ */ ((e) => (e.ON = "on", e.AUTO = "auto", e.OFF = "off", e))(Li || {}), Fa = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HOVERABLE = "hoverable", e))(Fa || {}), hn = /* @__PURE__ */ ((e) => (e.geoEqualEarth = "geoEqualEarth", e.geoAlbers = "geoAlbers", e.geoConicEqualArea = "geoConicEqualArea", e.geoConicEquidistant = "geoConicEquidistant", e.geoEquirectangular = "geoEquirectangular", e.geoMercator = "geoMercator", e.geoNaturalEarth1 = "geoNaturalEarth1", e))(hn || {});
33
+ var Q = /* @__PURE__ */ ((e) => (e.HTML = "html", e.SVG = "svg", e))(Q || {}), Ap = /* @__PURE__ */ ((e) => (e.WHITE = "white", e.G100 = "g100", e.G90 = "g90", e.G10 = "g10", e))(Ap || {}), et = /* @__PURE__ */ ((e) => (e.BACKGROUND = "background", e.FILL = "fill", e.STROKE = "stroke", e.TOOLTIP = "tooltip", e))(et || {}), V = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e.TOP = "top", e.BOTTOM = "bottom", e))(V || {}), We = /* @__PURE__ */ ((e) => (e.GRAPH_VIEW = "graph_view", e.SLIDER_VIEW = "slider_view", e))(We || {}), Re = /* @__PURE__ */ ((e) => (e.END_LINE = "end_line", e.MID_LINE = "mid_line", e.FRONT_LINE = "front_line", e.NONE = "none", e))(Re || {}), zt = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(zt || {}), X = /* @__PURE__ */ ((e) => (e.TIME = "time", e.LINEAR = "linear", e.LOG = "log", e.LABELS = "labels", e.LABELS_RATIO = "labels-ratio", e))(X || {}), $i = /* @__PURE__ */ ((e) => (e.RIGHT = "right", e.LEFT = "left", e.TOP = "top", e.BOTTOM = "bottom", e))($i || {}), Gt = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(Gt || {}), Ui = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(Ui || {}), Tc = /* @__PURE__ */ ((e) => (e.TREE = "tree", e.DENDROGRAM = "dendrogram", e))(Tc || {}), At = /* @__PURE__ */ ((e) => (e.ROW = "row", e.COLUMN = "column", e.ROW_REVERSE = "row-reverse", e.COLUMN_REVERSE = "column-reverse", e))(At || {}), st = /* @__PURE__ */ ((e) => (e.FIXED = "fixed", e.PREFERRED = "preferred", e.STRETCH = "stretch", e))(st || {}), Jr = /* @__PURE__ */ ((e) => (e.CENTER = "center", e))(Jr || {}), Rs = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Rs || {}), Ft = /* @__PURE__ */ ((e) => (e.GRID = "grid", e.VERT_OR_HORIZ = "vertOrHoriz", e.PIE = "pie", e.DONUT = "donut", e))(Ft || {}), ln = /* @__PURE__ */ ((e) => (e.START = "start", e.MIDDLE = "middle", e.END = "end", e))(ln || {}), cn = /* @__PURE__ */ ((e) => (e.BASELINE = "baseline", e.MIDDLE = "middle", e.HANGING = "hanging", e))(cn || {}), Ar = /* @__PURE__ */ ((e) => (e.SEMI = "semi", e.FULL = "full", e))(Ar || {}), hl = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e))(hl || {}), Is = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e))(Is || {}), Ns = /* @__PURE__ */ ((e) => (e.ALWAYS = "always", e.AUTO = "auto", e.NEVER = "never", e))(Ns || {}), Se = /* @__PURE__ */ ((e) => (e.SCATTER = "scatter", e.LINE = "line", e.SIMPLE_BAR = "simple-bar", e.STACKED_BAR = "stacked-bar", e.GROUPED_BAR = "grouped-bar", e.AREA = "area", e.STACKED_AREA = "stacked-area", e))(Se || {}), bt = /* @__PURE__ */ ((e) => (e.EXPORT_CSV = "Export as CSV", e.EXPORT_PNG = "Export as PNG", e.EXPORT_JPG = "Export as JPG", e.ZOOM_IN = "Zoom in", e.ZOOM_OUT = "Zoom out", e.RESET_ZOOM = "Reset zoom", e.MAKE_FULLSCREEN = "Make fullscreen", e.EXIT_FULLSCREEN = "Exit fullscreen", e.SHOW_AS_DATATABLE = "Show as data-table", e.CUSTOM = "Custom", e))(bt || {}), dl = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(dl || {}), Vt = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.RADIUS = "radius", e.AREA = "area", e.SIZE = "size", e.LINE = "line", e.QUARTILE = "quartile", e.ZOOM = "zoom", e))(Vt || {}), Ps = /* @__PURE__ */ ((e) => (e.LINEAR = "linear", e.QUANTIZE = "quantize", e))(Ps || {}), Li = /* @__PURE__ */ ((e) => (e.ON = "on", e.AUTO = "auto", e.OFF = "off", e))(Li || {}), Fa = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HOVERABLE = "hoverable", e))(Fa || {}), hn = /* @__PURE__ */ ((e) => (e.geoEqualEarth = "geoEqualEarth", e.geoAlbers = "geoAlbers", e.geoConicEqualArea = "geoConicEqualArea", e.geoConicEquidistant = "geoConicEquidistant", e.geoEquirectangular = "geoEquirectangular", e.geoMercator = "geoMercator", e.geoNaturalEarth1 = "geoNaturalEarth1", e))(hn || {});
34
34
  function Yn(e, t) {
35
35
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
36
36
  }
@@ -4743,7 +4743,7 @@ function jc() {
4743
4743
  }, ti.apply(Bm(a), arguments);
4744
4744
  }
4745
4745
  const Ho = /* @__PURE__ */ new Date(), Vo = /* @__PURE__ */ new Date();
4746
- function Gt(e, t, n, r) {
4746
+ function jt(e, t, n, r) {
4747
4747
  function i(s) {
4748
4748
  return e(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
4749
4749
  }
@@ -4759,7 +4759,7 @@ function Gt(e, t, n, r) {
4759
4759
  l.push(c = /* @__PURE__ */ new Date(+s)), t(s, o), e(s);
4760
4760
  while (c < s && s < a);
4761
4761
  return l;
4762
- }, i.filter = (s) => Gt((a) => {
4762
+ }, i.filter = (s) => jt((a) => {
4763
4763
  if (a >= a)
4764
4764
  for (; e(a), !s(a); )
4765
4765
  a.setTime(a - 1);
@@ -4775,67 +4775,67 @@ function Gt(e, t, n, r) {
4775
4775
  ;
4776
4776
  }), n && (i.count = (s, a) => (Ho.setTime(+s), Vo.setTime(+a), e(Ho), e(Vo), Math.floor(n(Ho, Vo))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (a) => r(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i;
4777
4777
  }
4778
- const Ea = Gt(() => {
4778
+ const Ea = jt(() => {
4779
4779
  }, (e, t) => {
4780
4780
  e.setTime(+e + t);
4781
4781
  }, (e, t) => t - e);
4782
- Ea.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? Gt((t) => {
4782
+ Ea.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? jt((t) => {
4783
4783
  t.setTime(Math.floor(t / e) * e);
4784
4784
  }, (t, n) => {
4785
4785
  t.setTime(+t + n * e);
4786
4786
  }, (t, n) => (n - t) / e) : Ea);
4787
4787
  Ea.range;
4788
- const pn = 1e3, Te = pn * 60, mn = Te * 60, En = mn * 24, Wc = En * 7, id = En * 30, Fo = En * 365, Dr = Gt((e) => {
4788
+ const pn = 1e3, Te = pn * 60, mn = Te * 60, En = mn * 24, Wc = En * 7, id = En * 30, Fo = En * 365, Dr = jt((e) => {
4789
4789
  e.setTime(e - e.getMilliseconds());
4790
4790
  }, (e, t) => {
4791
4791
  e.setTime(+e + t * pn);
4792
4792
  }, (e, t) => (t - e) / pn, (e) => e.getUTCSeconds());
4793
4793
  Dr.range;
4794
- const qc = Gt((e) => {
4794
+ const qc = jt((e) => {
4795
4795
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * pn);
4796
4796
  }, (e, t) => {
4797
4797
  e.setTime(+e + t * Te);
4798
4798
  }, (e, t) => (t - e) / Te, (e) => e.getMinutes());
4799
4799
  qc.range;
4800
- const c_ = Gt((e) => {
4800
+ const c_ = jt((e) => {
4801
4801
  e.setUTCSeconds(0, 0);
4802
4802
  }, (e, t) => {
4803
4803
  e.setTime(+e + t * Te);
4804
4804
  }, (e, t) => (t - e) / Te, (e) => e.getUTCMinutes());
4805
4805
  c_.range;
4806
- const Yc = Gt((e) => {
4806
+ const Yc = jt((e) => {
4807
4807
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * pn - e.getMinutes() * Te);
4808
4808
  }, (e, t) => {
4809
4809
  e.setTime(+e + t * mn);
4810
4810
  }, (e, t) => (t - e) / mn, (e) => e.getHours());
4811
4811
  Yc.range;
4812
- const u_ = Gt((e) => {
4812
+ const u_ = jt((e) => {
4813
4813
  e.setUTCMinutes(0, 0, 0);
4814
4814
  }, (e, t) => {
4815
4815
  e.setTime(+e + t * mn);
4816
4816
  }, (e, t) => (t - e) / mn, (e) => e.getUTCHours());
4817
4817
  u_.range;
4818
- const is = Gt(
4818
+ const is = jt(
4819
4819
  (e) => e.setHours(0, 0, 0, 0),
4820
4820
  (e, t) => e.setDate(e.getDate() + t),
4821
4821
  (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Te) / En,
4822
4822
  (e) => e.getDate() - 1
4823
4823
  );
4824
4824
  is.range;
4825
- const Zc = Gt((e) => {
4825
+ const Zc = jt((e) => {
4826
4826
  e.setUTCHours(0, 0, 0, 0);
4827
4827
  }, (e, t) => {
4828
4828
  e.setUTCDate(e.getUTCDate() + t);
4829
4829
  }, (e, t) => (t - e) / En, (e) => e.getUTCDate() - 1);
4830
4830
  Zc.range;
4831
- const h_ = Gt((e) => {
4831
+ const h_ = jt((e) => {
4832
4832
  e.setUTCHours(0, 0, 0, 0);
4833
4833
  }, (e, t) => {
4834
4834
  e.setUTCDate(e.getUTCDate() + t);
4835
4835
  }, (e, t) => (t - e) / En, (e) => Math.floor(e / En));
4836
4836
  h_.range;
4837
4837
  function sr(e) {
4838
- return Gt((t) => {
4838
+ return jt((t) => {
4839
4839
  t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
4840
4840
  }, (t, n) => {
4841
4841
  t.setDate(t.getDate() + n * 7);
@@ -4850,7 +4850,7 @@ Wr.range;
4850
4850
  p_.range;
4851
4851
  m_.range;
4852
4852
  function ar(e) {
4853
- return Gt((t) => {
4853
+ return jt((t) => {
4854
4854
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
4855
4855
  }, (t, n) => {
4856
4856
  t.setUTCDate(t.getUTCDate() + n * 7);
@@ -4864,35 +4864,35 @@ v_.range;
4864
4864
  qr.range;
4865
4865
  y_.range;
4866
4866
  x_.range;
4867
- const Xc = Gt((e) => {
4867
+ const Xc = jt((e) => {
4868
4868
  e.setDate(1), e.setHours(0, 0, 0, 0);
4869
4869
  }, (e, t) => {
4870
4870
  e.setMonth(e.getMonth() + t);
4871
4871
  }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
4872
4872
  Xc.range;
4873
- const b_ = Gt((e) => {
4873
+ const b_ = jt((e) => {
4874
4874
  e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
4875
4875
  }, (e, t) => {
4876
4876
  e.setUTCMonth(e.getUTCMonth() + t);
4877
4877
  }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
4878
4878
  b_.range;
4879
- const wn = Gt((e) => {
4879
+ const wn = jt((e) => {
4880
4880
  e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
4881
4881
  }, (e, t) => {
4882
4882
  e.setFullYear(e.getFullYear() + t);
4883
4883
  }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
4884
- wn.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Gt((t) => {
4884
+ wn.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : jt((t) => {
4885
4885
  t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
4886
4886
  }, (t, n) => {
4887
4887
  t.setFullYear(t.getFullYear() + n * e);
4888
4888
  });
4889
4889
  wn.range;
4890
- const nr = Gt((e) => {
4890
+ const nr = jt((e) => {
4891
4891
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
4892
4892
  }, (e, t) => {
4893
4893
  e.setUTCFullYear(e.getUTCFullYear() + t);
4894
4894
  }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
4895
- nr.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Gt((t) => {
4895
+ nr.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : jt((t) => {
4896
4896
  t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
4897
4897
  }, (t, n) => {
4898
4898
  t.setUTCFullYear(t.getUTCFullYear() + n * e);
@@ -8647,7 +8647,7 @@ const oe = "cds", fn = {
8647
8647
  position: $i.BOTTOM,
8648
8648
  clickable: !0,
8649
8649
  truncation: Ir,
8650
- alignment: zt.LEFT,
8650
+ alignment: Gt.LEFT,
8651
8651
  order: null,
8652
8652
  additionalItems: []
8653
8653
  }, C$ = {
@@ -8891,7 +8891,7 @@ const ee = {
8891
8891
  formatter: null,
8892
8892
  enabled: !0
8893
8893
  },
8894
- alignment: zt.LEFT,
8894
+ alignment: Gt.LEFT,
8895
8895
  sortFunction: null,
8896
8896
  valueMapsTo: "value"
8897
8897
  }
@@ -8911,7 +8911,7 @@ const ee = {
8911
8911
  numberSpacing: 10,
8912
8912
  deltaFontSize: (e) => e / 8,
8913
8913
  valueFontSize: (e) => e / 2.5,
8914
- alignment: zt.LEFT
8914
+ alignment: Gt.LEFT
8915
8915
  }
8916
8916
  }), V$ = rt({}, Qg, {
8917
8917
  donut: {
@@ -8920,7 +8920,7 @@ const ee = {
8920
8920
  titleFontSize: (e) => `${Math.min(e / 100 * 15, 15)}px`,
8921
8921
  titleYPosition: (e) => Math.min(e / 80 * 20, 20)
8922
8922
  },
8923
- alignment: zt.LEFT
8923
+ alignment: Gt.LEFT
8924
8924
  }
8925
8925
  }), Jg = rt({}, ee, {
8926
8926
  legend: {
@@ -8946,7 +8946,7 @@ const ee = {
8946
8946
  angle: "key",
8947
8947
  value: "value"
8948
8948
  },
8949
- alignment: zt.LEFT
8949
+ alignment: Gt.LEFT
8950
8950
  },
8951
8951
  tooltip: {
8952
8952
  gridline: {
@@ -8976,7 +8976,7 @@ const ee = {
8976
8976
  data: rt(ee.data, {
8977
8977
  groupMapsTo: "source"
8978
8978
  }),
8979
- nodeAlignment: zt.CENTER,
8979
+ nodeAlignment: Gt.CENTER,
8980
8980
  nodePadding: 24,
8981
8981
  monochrome: !1,
8982
8982
  nodes: []
@@ -9119,7 +9119,7 @@ const x = (e, ...t) => {
9119
9119
  return n;
9120
9120
  }
9121
9121
  return null;
9122
- }, tv = (e, t) => t === Wt.HORIZONTAL ? {
9122
+ }, tv = (e, t) => t === zt.HORIZONTAL ? {
9123
9123
  y0: e.x0,
9124
9124
  y1: e.x1,
9125
9125
  x0: e.y0,
@@ -9129,7 +9129,7 @@ const x = (e, ...t) => {
9129
9129
  return `M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`;
9130
9130
  };
9131
9131
  function gn(e, t, n) {
9132
- return n === Wt.VERTICAL ? [e, t] : [t, e];
9132
+ return n === zt.VERTICAL ? [e, t] : [t, e];
9133
9133
  }
9134
9134
  const ev = 6048e5, Q$ = 864e5, nv = 6e4, rv = 36e5;
9135
9135
  function tf(e) {
@@ -13209,28 +13209,28 @@ function Wv() {
13209
13209
  const S0 = ct({}, [fs, ps, en], sl);
13210
13210
  let ri = null;
13211
13211
  const O0 = ["application/xhtml+xml", "text/html"], T0 = "text/html";
13212
- let jt = null, mr = null;
13212
+ let Wt = null, mr = null;
13213
13213
  const M0 = n.createElement("form"), Iu = function($) {
13214
13214
  return $ instanceof RegExp || $ instanceof Function;
13215
13215
  }, Eo = function() {
13216
13216
  let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13217
13217
  if (!(mr && mr === $)) {
13218
13218
  if ((!$ || typeof $ != "object") && ($ = {}), $ = jn($), ri = // eslint-disable-next-line unicorn/prefer-includes
13219
- O0.indexOf($.PARSER_MEDIA_TYPE) === -1 ? T0 : $.PARSER_MEDIA_TYPE, jt = ri === "application/xhtml+xml" ? sl : Xs, P = $e($, "ALLOWED_TAGS") ? ct({}, $.ALLOWED_TAGS, jt) : j, G = $e($, "ALLOWED_ATTR") ? ct({}, $.ALLOWED_ATTR, jt) : nt, bo = $e($, "ALLOWED_NAMESPACES") ? ct({}, $.ALLOWED_NAMESPACES, sl) : S0, yo = $e($, "ADD_URI_SAFE_ATTR") ? ct(
13219
+ O0.indexOf($.PARSER_MEDIA_TYPE) === -1 ? T0 : $.PARSER_MEDIA_TYPE, Wt = ri === "application/xhtml+xml" ? sl : Xs, P = $e($, "ALLOWED_TAGS") ? ct({}, $.ALLOWED_TAGS, Wt) : j, G = $e($, "ALLOWED_ATTR") ? ct({}, $.ALLOWED_ATTR, Wt) : nt, bo = $e($, "ALLOWED_NAMESPACES") ? ct({}, $.ALLOWED_NAMESPACES, sl) : S0, yo = $e($, "ADD_URI_SAFE_ATTR") ? ct(
13220
13220
  jn(Ru),
13221
13221
  // eslint-disable-line indent
13222
13222
  $.ADD_URI_SAFE_ATTR,
13223
13223
  // eslint-disable-line indent
13224
- jt
13224
+ Wt
13225
13225
  // eslint-disable-line indent
13226
13226
  ) : Ru, Du = $e($, "ADD_DATA_URI_TAGS") ? ct(
13227
13227
  jn(ku),
13228
13228
  // eslint-disable-line indent
13229
13229
  $.ADD_DATA_URI_TAGS,
13230
13230
  // eslint-disable-line indent
13231
- jt
13231
+ Wt
13232
13232
  // eslint-disable-line indent
13233
- ) : ku, fr = $e($, "FORBID_CONTENTS") ? ct({}, $.FORBID_CONTENTS, jt) : Lu, lt = $e($, "FORBID_TAGS") ? ct({}, $.FORBID_TAGS, jt) : {}, ft = $e($, "FORBID_ATTR") ? ct({}, $.FORBID_ATTR, jt) : {}, dr = $e($, "USE_PROFILES") ? $.USE_PROFILES : !1, q = $.ALLOW_ARIA_ATTR !== !1, K = $.ALLOW_DATA_ATTR !== !1, pt = $.ALLOW_UNKNOWN_PROTOCOLS || !1, z = $.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Z = $.SAFE_FOR_TEMPLATES || !1, it = $.WHOLE_DOCUMENT || !1, dt = $.RETURN_DOM || !1, Ut = $.RETURN_DOM_FRAGMENT || !1, Bt = $.RETURN_TRUSTED_TYPE || !1, Tt = $.FORCE_BODY || !1, tt = $.SANITIZE_DOM !== !1, $t = $.SANITIZE_NAMED_PROPS || !1, we = $.KEEP_CONTENT !== !1, ni = $.IN_PLACE || !1, N = $.ALLOWED_URI_REGEXP || Gv, pr = $.NAMESPACE || en, J = $.CUSTOM_ELEMENT_HANDLING || {}, $.CUSTOM_ELEMENT_HANDLING && Iu($.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (J.tagNameCheck = $.CUSTOM_ELEMENT_HANDLING.tagNameCheck), $.CUSTOM_ELEMENT_HANDLING && Iu($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (J.attributeNameCheck = $.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), $.CUSTOM_ELEMENT_HANDLING && typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (J.allowCustomizedBuiltInElements = $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Z && (K = !1), Ut && (dt = !0), dr && (P = ct({}, Df), G = [], dr.html === !0 && (ct(P, Lf), ct(G, kf)), dr.svg === !0 && (ct(P, al), ct(G, cl), ct(G, Ds)), dr.svgFilters === !0 && (ct(P, ol), ct(G, cl), ct(G, Ds)), dr.mathMl === !0 && (ct(P, ll), ct(G, Rf), ct(G, Ds))), $.ADD_TAGS && (P === j && (P = jn(P)), ct(P, $.ADD_TAGS, jt)), $.ADD_ATTR && (G === nt && (G = jn(G)), ct(G, $.ADD_ATTR, jt)), $.ADD_URI_SAFE_ATTR && ct(yo, $.ADD_URI_SAFE_ATTR, jt), $.FORBID_CONTENTS && (fr === Lu && (fr = jn(fr)), ct(fr, $.FORBID_CONTENTS, jt)), we && (P["#text"] = !0), it && ct(P, ["html", "head", "body"]), P.table && (ct(P, ["tbody"]), delete lt.tbody), $.TRUSTED_TYPES_POLICY) {
13233
+ ) : ku, fr = $e($, "FORBID_CONTENTS") ? ct({}, $.FORBID_CONTENTS, Wt) : Lu, lt = $e($, "FORBID_TAGS") ? ct({}, $.FORBID_TAGS, Wt) : {}, ft = $e($, "FORBID_ATTR") ? ct({}, $.FORBID_ATTR, Wt) : {}, dr = $e($, "USE_PROFILES") ? $.USE_PROFILES : !1, q = $.ALLOW_ARIA_ATTR !== !1, K = $.ALLOW_DATA_ATTR !== !1, pt = $.ALLOW_UNKNOWN_PROTOCOLS || !1, z = $.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Z = $.SAFE_FOR_TEMPLATES || !1, it = $.WHOLE_DOCUMENT || !1, dt = $.RETURN_DOM || !1, Ut = $.RETURN_DOM_FRAGMENT || !1, Bt = $.RETURN_TRUSTED_TYPE || !1, Tt = $.FORCE_BODY || !1, tt = $.SANITIZE_DOM !== !1, $t = $.SANITIZE_NAMED_PROPS || !1, we = $.KEEP_CONTENT !== !1, ni = $.IN_PLACE || !1, N = $.ALLOWED_URI_REGEXP || Gv, pr = $.NAMESPACE || en, J = $.CUSTOM_ELEMENT_HANDLING || {}, $.CUSTOM_ELEMENT_HANDLING && Iu($.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (J.tagNameCheck = $.CUSTOM_ELEMENT_HANDLING.tagNameCheck), $.CUSTOM_ELEMENT_HANDLING && Iu($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (J.attributeNameCheck = $.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), $.CUSTOM_ELEMENT_HANDLING && typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (J.allowCustomizedBuiltInElements = $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Z && (K = !1), Ut && (dt = !0), dr && (P = ct({}, Df), G = [], dr.html === !0 && (ct(P, Lf), ct(G, kf)), dr.svg === !0 && (ct(P, al), ct(G, cl), ct(G, Ds)), dr.svgFilters === !0 && (ct(P, ol), ct(G, cl), ct(G, Ds)), dr.mathMl === !0 && (ct(P, ll), ct(G, Rf), ct(G, Ds))), $.ADD_TAGS && (P === j && (P = jn(P)), ct(P, $.ADD_TAGS, Wt)), $.ADD_ATTR && (G === nt && (G = jn(G)), ct(G, $.ADD_ATTR, Wt)), $.ADD_URI_SAFE_ATTR && ct(yo, $.ADD_URI_SAFE_ATTR, Wt), $.FORBID_CONTENTS && (fr === Lu && (fr = jn(fr)), ct(fr, $.FORBID_CONTENTS, Wt)), we && (P["#text"] = !0), it && ct(P, ["html", "head", "body"]), P.table && (ct(P, ["tbody"]), delete lt.tbody), $.TRUSTED_TYPES_POLICY) {
13234
13234
  if (typeof $.TRUSTED_TYPES_POLICY.createHTML != "function")
13235
13235
  throw mi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
13236
13236
  if (typeof $.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -13324,7 +13324,7 @@ function Wv() {
13324
13324
  let Y = null;
13325
13325
  if (nn("beforeSanitizeElements", $, null), $0($))
13326
13326
  return gr($), !0;
13327
- const W = jt($.nodeName);
13327
+ const W = Wt($.nodeName);
13328
13328
  if (nn("uponSanitizeElement", $, {
13329
13329
  tagName: W,
13330
13330
  allowedTags: P
@@ -13387,7 +13387,7 @@ function Wv() {
13387
13387
  name: Ht,
13388
13388
  namespaceURI: rn,
13389
13389
  value: sn
13390
- } = Yt, Ge = jt(Ht);
13390
+ } = Yt, Ge = Wt(Ht);
13391
13391
  let ae = Ht === "value" ? sn : XR(sn);
13392
13392
  if (W.attrName = Ge, W.attrValue = ae, W.keepAttr = !0, W.forceKeepAttr = void 0, nn("uponSanitizeAttribute", $, W), ae = W.attrValue, W.forceKeepAttr || (wo(Ht, $), !W.keepAttr))
13393
13393
  continue;
@@ -13398,7 +13398,7 @@ function Wv() {
13398
13398
  Z && $s([T, H, U], (D0) => {
13399
13399
  ae = pi(ae, D0, " ");
13400
13400
  });
13401
- const qu = jt($.nodeName);
13401
+ const qu = Wt($.nodeName);
13402
13402
  if (Gu(qu, Ge, ae)) {
13403
13403
  if ($t && (Ge === "id" || Ge === "name") && (wo(Ht, $), ae = Un + ae), b && typeof f == "object" && typeof f.getAttributeType == "function" && !rn)
13404
13404
  switch (f.getAttributeType(qu, Ge)) {
@@ -13437,7 +13437,7 @@ function Wv() {
13437
13437
  return $;
13438
13438
  if (F || Eo(Y), t.removed = [], typeof $ == "string" && (ni = !1), ni) {
13439
13439
  if ($.nodeName) {
13440
- const Ge = jt($.nodeName);
13440
+ const Ge = Wt($.nodeName);
13441
13441
  if (!P[Ge] || lt[Ge])
13442
13442
  throw mi("root node is forbidden and cannot be sanitized in-place");
13443
13443
  }
@@ -13476,7 +13476,7 @@ function Wv() {
13476
13476
  mr = null, F = !1;
13477
13477
  }, t.isValidAttribute = function($, Y, W) {
13478
13478
  mr || Eo({});
13479
- const xt = jt($), Yt = jt(Y);
13479
+ const xt = Wt($), Yt = Wt(Y);
13480
13480
  return Gu(xt, Yt, W);
13481
13481
  }, t.addHook = function($, Y) {
13482
13482
  typeof Y == "function" && (L[$] = L[$] || [], fi(L[$], Y));
@@ -15211,7 +15211,7 @@ class _u extends ht {
15211
15211
  render(t = !1) {
15212
15212
  const n = this.getOptions(), r = x(n, "legend"), i = x(r, "alignment"), s = x(n, "legend", "orientation");
15213
15213
  let a = this.model.getDataGroups();
15214
- const { DISABLED: o } = Rt.items.status, l = a.some((v) => v.status === o), c = x(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === zt.CENTER).classed("right-aligned", i === zt.RIGHT).classed(s, !0).classed("has-deactivated-items", l).attr("role", at.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
15214
+ const { DISABLED: o } = Rt.items.status, l = a.some((v) => v.status === o), c = x(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === Gt.CENTER).classed("right-aligned", i === Gt.RIGHT).classed(s, !0).classed("has-deactivated-items", l).attr("role", at.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
15215
15215
  c && (a = this.sortDataGroups(a, c));
15216
15216
  const d = u.selectAll("div.legend-item").data(a, (v) => v.name), h = d.enter().append("div").attr("class", "legend-item");
15217
15217
  h.merge(u.selectAll("div.legend-item")).classed("active", function(v) {
@@ -16239,7 +16239,7 @@ class $N extends ht {
16239
16239
  s.alluvial.nodePadding > Ae.minNodePadding && (l = s.alluvial.nodePadding);
16240
16240
  const c = x(s, "alluvial", "nodeAlignment");
16241
16241
  let u = wv;
16242
- c === zt.LEFT ? u = rk : c === zt.RIGHT && (u = ik);
16242
+ c === Gt.LEFT ? u = rk : c === Gt.RIGHT && (u = ik);
16243
16243
  const d = lk().nodeId((v) => v.name).nodeWidth(Ae.nodeWidth).nodePadding(l).nodeAlign(u).extent([
16244
16244
  [2, 30],
16245
16245
  [r - 2, i]
@@ -16596,7 +16596,7 @@ class r0 extends ht {
16596
16596
  const h = (w, O) => {
16597
16597
  x(r, "axes", w, "includeZero") === !1 && O[0] > 0 && O[1] > 0 && (d = O[0]);
16598
16598
  }, f = (w) => u ? s.getBoundedScaledValues(w)[0] : s.getRangeValue(d), p = (w) => u ? s.getBoundedScaledValues(w)[1] : s.getRangeValue(w);
16599
- a === Wt.VERTICAL ? (i = s.getMainYScale().domain(), h(s.getMainYAxisPosition(), i), o.x((w) => s.getDomainValue(w)).y0((w) => f(w)).y1((w) => p(w))) : (i = s.getMainXScale().domain(), h(s.getMainXAxisPosition(), i), o.x0((w) => f(w)).x1((w) => p(w)).y((w) => s.getDomainValue(w)));
16599
+ a === zt.VERTICAL ? (i = s.getMainYScale().domain(), h(s.getMainYAxisPosition(), i), o.x((w) => s.getDomainValue(w)).y0((w) => f(w)).y1((w) => p(w))) : (i = s.getMainXScale().domain(), h(s.getMainXAxisPosition(), i), o.x0((w) => f(w)).x1((w) => p(w)).y((w) => s.getDomainValue(w)));
16600
16600
  const g = x(r, "color", "gradient", "enabled"), m = l && l.length === 1 && g;
16601
16601
  l.length > 1 && g && console.error("Gradients can only be enabled when having 1 single dataset");
16602
16602
  const y = n.selectAll("path.area").data(l, (w) => w.name), v = k(this.services.domUtils.getMainContainer());
@@ -16782,7 +16782,7 @@ class Pn extends ht {
16782
16782
  // @ts-ignore
16783
16783
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
16784
16784
  showRuler(t, [n, r]) {
16785
- const i = this.parent, s = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), u = s === Wt.HORIZONTAL ? r : n, d = I.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), h = I.appendOrSelect(d, "line.ruler-line"), f = i.selectAll("[role=graphics-symbol]"), p = a.map((m) => ({
16785
+ const i = this.parent, s = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), u = s === zt.HORIZONTAL ? r : n, d = I.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), h = I.appendOrSelect(d, "line.ruler-line"), f = i.selectAll("[role=graphics-symbol]"), p = a.map((m) => ({
16786
16786
  domainValue: this.services.cartesianScales.getDomainValue(m),
16787
16787
  originalData: m
16788
16788
  })).filter((m) => LN(m.domainValue, u));
@@ -17550,7 +17550,7 @@ class se extends ht {
17550
17550
  }
17551
17551
  renderVertOrHorizSkeleton(t) {
17552
17552
  const n = this.services.cartesianScales.getOrientation();
17553
- this.setScales(), this.drawBackdrop(t), n === Wt.VERTICAL && this.drawYGrid(t), n === Wt.HORIZONTAL && this.drawXGrid(t), this.setShimmerEffect("shimmer-lines");
17553
+ this.setScales(), this.drawBackdrop(t), n === zt.VERTICAL && this.drawYGrid(t), n === zt.HORIZONTAL && this.drawXGrid(t), this.setShimmerEffect("shimmer-lines");
17554
17554
  }
17555
17555
  renderPieSkeleton(t) {
17556
17556
  const n = this.computeOuterRadius(), r = 0;
@@ -17601,7 +17601,7 @@ class se extends ht {
17601
17601
  r ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
17602
17602
  );
17603
17603
  let p = t + Ct.xOffset;
17604
- c === zt.CENTER ? p = s / 2 : c === zt.RIGHT && (p = s - t - Ct.xOffset);
17604
+ c === Gt.CENTER ? p = s / 2 : c === Gt.RIGHT && (p = s - t - Ct.xOffset);
17605
17605
  const g = t + Ct.yOffset;
17606
17606
  f.attr("transform", `translate(${p}, ${g})`);
17607
17607
  }
@@ -17641,7 +17641,7 @@ class kN extends ht {
17641
17641
  const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, s = this.model.getDataGroupNames(), a = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [l, c] = a.range(), [u, d] = o.range(), h = c - l, f = u - d;
17642
17642
  if (h === 0)
17643
17643
  return;
17644
- const { cartesianScales: p } = this.services, g = p.getOrientation(), m = g === Wt.VERTICAL, [y, v] = gn(
17644
+ const { cartesianScales: p } = this.services, g = p.getOrientation(), m = g === zt.VERTICAL, [y, v] = gn(
17645
17645
  (T) => this.services.cartesianScales.getDomainValue(T),
17646
17646
  (T) => this.services.cartesianScales.getRangeValue(T),
17647
17647
  g
@@ -18369,7 +18369,7 @@ class GN extends Pn {
18369
18369
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18370
18370
  showRuler(t, [n, r]) {
18371
18371
  const i = this.parent, s = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), l = a.getRangeScale(), [c, u] = l.range(), d = a.getDomainScale(), h = d.invert(
18372
- o === Wt.VERTICAL ? n : r
18372
+ o === zt.VERTICAL ? n : r
18373
18373
  ), f = I.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), p = I.appendOrSelect(f, "line.ruler-line"), g = i.selectAll("[role=graphics-symbol]").filter((m) => {
18374
18374
  if (parseFloat(mt(m, "data.x0")) <= h && parseFloat(mt(m, "data.x1")) >= h)
18375
18375
  return !0;
@@ -18905,7 +18905,7 @@ class a0 extends ht {
18905
18905
  useAttrs: !0
18906
18906
  }), w = f ? Ct.xOffset : 0, O = f ? Ct.yOffset : 0;
18907
18907
  let C = l + w;
18908
- b === zt.CENTER ? C = _ / 2 : b === zt.RIGHT && (C = _ - l - Ct.xOffset);
18908
+ b === Gt.CENTER ? C = _ / 2 : b === Gt.RIGHT && (C = _ - l - Ct.xOffset);
18909
18909
  let R = l + O;
18910
18910
  y.length > 0 && (R += Ct.yOffsetCallout), r.attr("x", C + 7).attr("y", R), this.addEventListeners();
18911
18911
  }
@@ -19102,7 +19102,7 @@ class ZN extends ht {
19102
19102
  useAttrs: !0
19103
19103
  });
19104
19104
  let m = d;
19105
- p === zt.CENTER ? m = g / 2 : p === zt.RIGHT && (m = g - d), n.attr("x", m).attr("y", d), this.addEventListeners();
19105
+ p === Gt.CENTER ? m = g / 2 : p === Gt.RIGHT && (m = g - d), n.attr("x", m).attr("y", d), this.addEventListeners();
19106
19106
  }
19107
19107
  /**
19108
19108
  * draws the value number associated with the Gauge component in the center
@@ -19240,7 +19240,7 @@ class o0 extends Tu {
19240
19240
  })
19241
19241
  ).attr("transform", (u) => {
19242
19242
  const d = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
19243
- return this.services.cartesianScales.getOrientation() === Wt.VERTICAL ? `translate(${d}, 0)` : `translate(0, ${d})`;
19243
+ return this.services.cartesianScales.getOrientation() === zt.VERTICAL ? `translate(${d}, 0)` : `translate(0, ${d})`;
19244
19244
  });
19245
19245
  const c = l.selectAll("path.bar").data(
19246
19246
  (u) => this.getDataCorrespondingToLabel(u),
@@ -19263,10 +19263,10 @@ class o0 extends Tu {
19263
19263
  const d = this.services.cartesianScales.getDomainIdentifier(u);
19264
19264
  return this.model.getFillColor(u[i], u[d], u);
19265
19265
  }).attr("d", (u) => {
19266
- const d = this.groupScale(u[i]), h = this.getBarWidth(), f = d, p = d + h, g = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), m = this.services.cartesianScales.getValueThroughAxisPosition(g, 0), y = this.services.cartesianScales.getRangeValue(u), v = this.services.cartesianScales.getDomainValue(u) - h / 2, b = v + h;
19267
- if (!this.isOutsideZoomedDomain(v, b))
19266
+ const d = this.groupScale(u[i]), h = this.getBarWidth(), f = d, p = d + h, g = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), m = this.services.cartesianScales.getDomainLowerBound(g), y = this.services.cartesianScales.getValueThroughAxisPosition(g, m), v = this.services.cartesianScales.getRangeValue(u), b = this.services.cartesianScales.getDomainValue(u) - h / 2, _ = b + h;
19267
+ if (!this.isOutsideZoomedDomain(b, _))
19268
19268
  return re(
19269
- { x0: f, x1: p, y0: m, y1: y },
19269
+ { x0: f, x1: p, y0: y, y1: v },
19270
19270
  this.services.cartesianScales.getOrientation()
19271
19271
  );
19272
19272
  }).attr("opacity", 1).attr("role", at.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
@@ -19585,7 +19585,7 @@ class KN extends ht {
19585
19585
  return;
19586
19586
  const h = o(d.x1) - o(d.x0) - 1, f = this.services.cartesianScales.getDomainValue(d.x0), p = f + h, g = this.services.cartesianScales.getRangeValue(u[0]);
19587
19587
  let m = this.services.cartesianScales.getRangeValue(u[1]);
19588
- return Math.abs(m - g) > 0 && Math.abs(m - g) > r.bars.dividerSize && (this.services.cartesianScales.getOrientation() === Wt.VERTICAL ? m += 1 : m -= 1), re(
19588
+ return Math.abs(m - g) > 0 && Math.abs(m - g) > r.bars.dividerSize && (this.services.cartesianScales.getOrientation() === zt.VERTICAL ? m += 1 : m -= 1), re(
19589
19589
  { x0: f, x1: p, y0: g, y1: m },
19590
19590
  this.services.cartesianScales.getOrientation()
19591
19591
  );
@@ -19685,7 +19685,7 @@ class QN extends Ke {
19685
19685
  animate: t
19686
19686
  })
19687
19687
  ).style("stroke", (m) => this.model.getFillColor(m[i], m[l], m)).attr("opacity", 1);
19688
- d === Wt.HORIZONTAL ? g.attr("y1", f).attr("y2", f).attr("x1", a.range()[0]).attr("x2", (m) => h(m) - r.points.radius) : g.attr("x1", h).attr("x2", h).attr("y1", o.range()[0]).attr("y2", (m) => f(m) + r.points.radius), this.addScatterPointEventListeners();
19688
+ d === zt.HORIZONTAL ? g.attr("y1", f).attr("y2", f).attr("x1", a.range()[0]).attr("x2", (m) => h(m) - r.points.radius) : g.attr("x1", h).attr("x2", h).attr("y1", o.range()[0]).attr("y2", (m) => f(m) + r.points.radius), this.addScatterPointEventListeners();
19689
19689
  }
19690
19690
  // listen for when individual datapoints are hovered
19691
19691
  addScatterPointEventListeners() {
@@ -20089,7 +20089,7 @@ class tP extends ht {
20089
20089
  useAttrs: !0
20090
20090
  });
20091
20091
  let a = 0;
20092
- return t === zt.CENTER ? a = Math.floor((s - i.width) / 2) : t === zt.RIGHT && (a = s - i.width), a;
20092
+ return t === Gt.CENTER ? a = Math.floor((s - i.width) / 2) : t === Gt.RIGHT && (a = s - i.width), a;
20093
20093
  }
20094
20094
  destroy() {
20095
20095
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
@@ -20204,7 +20204,7 @@ class l0 extends Tu {
20204
20204
  p = this.services.cartesianScales.getRangeValue(Math.max(0, y)), g = this.services.cartesianScales.getRangeValue(l);
20205
20205
  }
20206
20206
  const m = Math.abs(g - p);
20207
- if (m !== 0 && m < 2 && (d > 0 && a === Wt.VERTICAL || d < 0 && a === Wt.HORIZONTAL ? g = p - 2 : g = p + 2), !this.isOutsideZoomedDomain(h, f))
20207
+ if (m !== 0 && m < 2 && (d > 0 && a === zt.VERTICAL || d < 0 && a === zt.HORIZONTAL ? g = p - 2 : g = p + 2), !this.isOutsideZoomedDomain(h, f))
20208
20208
  return re({ x0: h, x1: f, y0: p, y1: g }, a);
20209
20209
  }).attr("opacity", 1).attr("role", at.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (l) => l.value), this.addEventListeners();
20210
20210
  }
@@ -20382,7 +20382,7 @@ class u0 extends Tu {
20382
20382
  if (!this.isOutsideZoomedDomain(h, f)) {
20383
20383
  if (Math.abs(g - p) > 0 && Math.abs(g - p) > r.bars.dividerSize) {
20384
20384
  const m = c[0] < 0 && c[1] <= 0;
20385
- m && a.length > 1 ? this.services.cartesianScales.getOrientation() === Wt.VERTICAL ? g += c[1] === 0 ? 2 : 1 : g -= 1 : m || (this.services.cartesianScales.getOrientation() === Wt.VERTICAL ? g += 1 : g -= 1);
20385
+ m && a.length > 1 ? this.services.cartesianScales.getOrientation() === zt.VERTICAL ? g += c[1] === 0 ? 2 : 1 : g -= 1 : m || (this.services.cartesianScales.getOrientation() === zt.VERTICAL ? g += 1 : g -= 1);
20386
20386
  }
20387
20387
  return re(
20388
20388
  { x0: h, x1: f, y0: p, y1: g },
@@ -21515,7 +21515,7 @@ class QB extends Mn {
21515
21515
  this.domainAxisPosition = r.primaryDomainAxisPosition, this.rangeAxisPosition = r.primaryRangeAxisPosition, this.isDualAxes() && (this.secondaryDomainAxisPosition = r.secondaryDomainAxisPosition, this.secondaryRangeAxisPosition = r.secondaryRangeAxisPosition);
21516
21516
  }
21517
21517
  determineOrientation() {
21518
- (this.rangeAxisPosition === V.LEFT || this.rangeAxisPosition === V.RIGHT) && (this.domainAxisPosition === V.BOTTOM || this.domainAxisPosition === V.TOP) ? this.orientation = Wt.VERTICAL : this.orientation = Wt.HORIZONTAL;
21518
+ (this.rangeAxisPosition === V.LEFT || this.rangeAxisPosition === V.RIGHT) && (this.domainAxisPosition === V.BOTTOM || this.domainAxisPosition === V.TOP) ? this.orientation = zt.VERTICAL : this.orientation = zt.HORIZONTAL;
21519
21519
  }
21520
21520
  isDualAxes() {
21521
21521
  return this.dualAxes;
@@ -21728,6 +21728,10 @@ class QB extends Mn {
21728
21728
  let s;
21729
21729
  return i === X.TIME ? s = Zm() : i === X.LOG ? s = Vm().base(r.base || 10) : i === X.LABELS || i === X.LABELS_RATIO ? s = rs() : s = Ue(), s.domain(this.getScaleDomain(t)), s;
21730
21730
  }
21731
+ getDomainLowerBound(t) {
21732
+ let n, r = 0;
21733
+ return this.getOrientation() === zt.VERTICAL ? n = this.getMainYScale().domain() : n = this.getMainXScale().domain(), x(this.model.getOptions(), "axes", t, "includeZero") === !1 && n[0] > 0 && n[1] > 0 && (r = n[0]), r;
21734
+ }
21731
21735
  getHighestDomainThreshold() {
21732
21736
  const t = x(this.model.getOptions(), "axes"), n = this.getDomainAxisPosition(), { thresholds: r } = t[n];
21733
21737
  if (!Array.isArray(r) || Array.isArray(r) && !r.length)
@@ -22882,7 +22886,7 @@ const i3 = Dt(RH, "CcvAlluvialChart"), s3 = Dt(IH, "CcvAreaChart"), a3 = Dt(NH,
22882
22886
  }
22883
22887
  };
22884
22888
  export {
22885
- zt as Alignments,
22889
+ Gt as Alignments,
22886
22890
  i3 as CcvAlluvialChart,
22887
22891
  s3 as CcvAreaChart,
22888
22892
  a3 as CcvBoxplotChart,