@carbon/charts-vue 1.15.1 → 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 +26 -0
- package/dist/index.mjs +78 -68
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
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
|
+
|
|
19
|
+
## 1.15.2 (2024-03-08)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **tabular-rep:** better handling of null values
|
|
24
|
+
([#1779](https://github.com/carbon-design-system/carbon-charts/issues/1779))
|
|
25
|
+
([011f3b4](https://github.com/carbon-design-system/carbon-charts/commit/011f3b424c97cb22434bcb1f88d75acf6e272b9d))
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
6
32
|
## 1.15.1 (2024-03-06)
|
|
7
33
|
|
|
8
34
|
**Note:** Version bump only for package @carbon/charts-vue
|
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 || {}),
|
|
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
|
|
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) =>
|
|
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 =
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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_ =
|
|
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 =
|
|
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_ =
|
|
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 =
|
|
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 =
|
|
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_ =
|
|
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
|
|
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
|
|
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 =
|
|
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_ =
|
|
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 =
|
|
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 :
|
|
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 =
|
|
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 :
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 ===
|
|
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 ===
|
|
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) {
|
|
@@ -10556,7 +10556,7 @@ let tn = class {
|
|
|
10556
10556
|
...t.map((a) => [
|
|
10557
10557
|
a.source,
|
|
10558
10558
|
a.target,
|
|
10559
|
-
n(a.value, r)
|
|
10559
|
+
a.value === null ? "–" : n(a.value, r)
|
|
10560
10560
|
])
|
|
10561
10561
|
];
|
|
10562
10562
|
return super.formatTable({ headers: i, cells: s });
|
|
@@ -10687,7 +10687,7 @@ let tn = class {
|
|
|
10687
10687
|
...t.map((a) => [
|
|
10688
10688
|
a.id === null ? "–" : a.id,
|
|
10689
10689
|
a.name,
|
|
10690
|
-
n(a.value, r)
|
|
10690
|
+
a.value === null ? "–" : n(a.value, r)
|
|
10691
10691
|
])
|
|
10692
10692
|
];
|
|
10693
10693
|
return super.formatTable({ headers: i, cells: s });
|
|
@@ -10956,7 +10956,7 @@ let tn = class {
|
|
|
10956
10956
|
...t.map((l) => [
|
|
10957
10957
|
l[n.identifier] === null ? "–" : l[n.identifier],
|
|
10958
10958
|
l[r.identifier] === null ? "–" : l[r.identifier],
|
|
10959
|
-
i(l.value, s)
|
|
10959
|
+
l.value === null ? "–" : i(l.value, s)
|
|
10960
10960
|
])
|
|
10961
10961
|
];
|
|
10962
10962
|
return super.formatTable({ headers: a, cells: o });
|
|
@@ -11037,17 +11037,19 @@ let tn = class {
|
|
|
11037
11037
|
l = ["Group", "Value", ...i ? ["Status"] : []], c = [
|
|
11038
11038
|
[
|
|
11039
11039
|
d[r],
|
|
11040
|
-
a(d.value, o),
|
|
11040
|
+
d.value === null ? "–" : a(d.value, o),
|
|
11041
11041
|
...i ? [i] : []
|
|
11042
11042
|
]
|
|
11043
11043
|
];
|
|
11044
11044
|
} else
|
|
11045
11045
|
u = x(s, "total") || this.getMaximumDomain(t), l = ["Group", "Value", "Percentage of total"], c = [
|
|
11046
11046
|
...t.map((h) => {
|
|
11047
|
-
|
|
11047
|
+
let f;
|
|
11048
|
+
h.value !== null && h.value !== void 0 ? f = Number(h.value) : f = 0;
|
|
11049
|
+
let p = Number((h.value / u * 100).toFixed(2));
|
|
11048
11050
|
return [
|
|
11049
11051
|
h[r],
|
|
11050
|
-
a(f, o),
|
|
11052
|
+
h.value === null ? "–" : a(f, o),
|
|
11051
11053
|
a(p, o) + " %"
|
|
11052
11054
|
];
|
|
11053
11055
|
})
|
|
@@ -11097,7 +11099,11 @@ let tn = class {
|
|
|
11097
11099
|
const t = this.getDisplayData(), { number: n, code: r } = x(this.getOptions(), "locale"), i = ["Child", "Group", "Value"], s = [];
|
|
11098
11100
|
return t.forEach((a) => {
|
|
11099
11101
|
Array.isArray(a.children) ? a.children.forEach((o) => {
|
|
11100
|
-
s.push([
|
|
11102
|
+
s.push([
|
|
11103
|
+
o.name,
|
|
11104
|
+
a.name,
|
|
11105
|
+
o.value === null ? "–" : n(o.value, r)
|
|
11106
|
+
]);
|
|
11101
11107
|
}) : x(a.name) !== null && x(a.value) && s.push(["–", a.name, n(a.value, r)]);
|
|
11102
11108
|
}), super.formatTable({ headers: i, cells: s });
|
|
11103
11109
|
}
|
|
@@ -13203,28 +13209,28 @@ function Wv() {
|
|
|
13203
13209
|
const S0 = ct({}, [fs, ps, en], sl);
|
|
13204
13210
|
let ri = null;
|
|
13205
13211
|
const O0 = ["application/xhtml+xml", "text/html"], T0 = "text/html";
|
|
13206
|
-
let
|
|
13212
|
+
let Wt = null, mr = null;
|
|
13207
13213
|
const M0 = n.createElement("form"), Iu = function($) {
|
|
13208
13214
|
return $ instanceof RegExp || $ instanceof Function;
|
|
13209
13215
|
}, Eo = function() {
|
|
13210
13216
|
let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
13211
13217
|
if (!(mr && mr === $)) {
|
|
13212
13218
|
if ((!$ || typeof $ != "object") && ($ = {}), $ = jn($), ri = // eslint-disable-next-line unicorn/prefer-includes
|
|
13213
|
-
O0.indexOf($.PARSER_MEDIA_TYPE) === -1 ? T0 : $.PARSER_MEDIA_TYPE,
|
|
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(
|
|
13214
13220
|
jn(Ru),
|
|
13215
13221
|
// eslint-disable-line indent
|
|
13216
13222
|
$.ADD_URI_SAFE_ATTR,
|
|
13217
13223
|
// eslint-disable-line indent
|
|
13218
|
-
|
|
13224
|
+
Wt
|
|
13219
13225
|
// eslint-disable-line indent
|
|
13220
13226
|
) : Ru, Du = $e($, "ADD_DATA_URI_TAGS") ? ct(
|
|
13221
13227
|
jn(ku),
|
|
13222
13228
|
// eslint-disable-line indent
|
|
13223
13229
|
$.ADD_DATA_URI_TAGS,
|
|
13224
13230
|
// eslint-disable-line indent
|
|
13225
|
-
|
|
13231
|
+
Wt
|
|
13226
13232
|
// eslint-disable-line indent
|
|
13227
|
-
) : ku, fr = $e($, "FORBID_CONTENTS") ? ct({}, $.FORBID_CONTENTS,
|
|
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) {
|
|
13228
13234
|
if (typeof $.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
13229
13235
|
throw mi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
13230
13236
|
if (typeof $.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -13318,7 +13324,7 @@ function Wv() {
|
|
|
13318
13324
|
let Y = null;
|
|
13319
13325
|
if (nn("beforeSanitizeElements", $, null), $0($))
|
|
13320
13326
|
return gr($), !0;
|
|
13321
|
-
const W =
|
|
13327
|
+
const W = Wt($.nodeName);
|
|
13322
13328
|
if (nn("uponSanitizeElement", $, {
|
|
13323
13329
|
tagName: W,
|
|
13324
13330
|
allowedTags: P
|
|
@@ -13381,7 +13387,7 @@ function Wv() {
|
|
|
13381
13387
|
name: Ht,
|
|
13382
13388
|
namespaceURI: rn,
|
|
13383
13389
|
value: sn
|
|
13384
|
-
} = Yt, Ge =
|
|
13390
|
+
} = Yt, Ge = Wt(Ht);
|
|
13385
13391
|
let ae = Ht === "value" ? sn : XR(sn);
|
|
13386
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))
|
|
13387
13393
|
continue;
|
|
@@ -13392,7 +13398,7 @@ function Wv() {
|
|
|
13392
13398
|
Z && $s([T, H, U], (D0) => {
|
|
13393
13399
|
ae = pi(ae, D0, " ");
|
|
13394
13400
|
});
|
|
13395
|
-
const qu =
|
|
13401
|
+
const qu = Wt($.nodeName);
|
|
13396
13402
|
if (Gu(qu, Ge, ae)) {
|
|
13397
13403
|
if ($t && (Ge === "id" || Ge === "name") && (wo(Ht, $), ae = Un + ae), b && typeof f == "object" && typeof f.getAttributeType == "function" && !rn)
|
|
13398
13404
|
switch (f.getAttributeType(qu, Ge)) {
|
|
@@ -13431,7 +13437,7 @@ function Wv() {
|
|
|
13431
13437
|
return $;
|
|
13432
13438
|
if (F || Eo(Y), t.removed = [], typeof $ == "string" && (ni = !1), ni) {
|
|
13433
13439
|
if ($.nodeName) {
|
|
13434
|
-
const Ge =
|
|
13440
|
+
const Ge = Wt($.nodeName);
|
|
13435
13441
|
if (!P[Ge] || lt[Ge])
|
|
13436
13442
|
throw mi("root node is forbidden and cannot be sanitized in-place");
|
|
13437
13443
|
}
|
|
@@ -13470,7 +13476,7 @@ function Wv() {
|
|
|
13470
13476
|
mr = null, F = !1;
|
|
13471
13477
|
}, t.isValidAttribute = function($, Y, W) {
|
|
13472
13478
|
mr || Eo({});
|
|
13473
|
-
const xt =
|
|
13479
|
+
const xt = Wt($), Yt = Wt(Y);
|
|
13474
13480
|
return Gu(xt, Yt, W);
|
|
13475
13481
|
}, t.addHook = function($, Y) {
|
|
13476
13482
|
typeof Y == "function" && (L[$] = L[$] || [], fi(L[$], Y));
|
|
@@ -15205,7 +15211,7 @@ class _u extends ht {
|
|
|
15205
15211
|
render(t = !1) {
|
|
15206
15212
|
const n = this.getOptions(), r = x(n, "legend"), i = x(r, "alignment"), s = x(n, "legend", "orientation");
|
|
15207
15213
|
let a = this.model.getDataGroups();
|
|
15208
|
-
const { DISABLED: o } = Rt.items.status, l = a.some((v) => v.status === o), c = x(r, "order"), u = this.getComponentContainer().classed("center-aligned", i ===
|
|
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");
|
|
15209
15215
|
c && (a = this.sortDataGroups(a, c));
|
|
15210
15216
|
const d = u.selectAll("div.legend-item").data(a, (v) => v.name), h = d.enter().append("div").attr("class", "legend-item");
|
|
15211
15217
|
h.merge(u.selectAll("div.legend-item")).classed("active", function(v) {
|
|
@@ -16233,7 +16239,7 @@ class $N extends ht {
|
|
|
16233
16239
|
s.alluvial.nodePadding > Ae.minNodePadding && (l = s.alluvial.nodePadding);
|
|
16234
16240
|
const c = x(s, "alluvial", "nodeAlignment");
|
|
16235
16241
|
let u = wv;
|
|
16236
|
-
c ===
|
|
16242
|
+
c === Gt.LEFT ? u = rk : c === Gt.RIGHT && (u = ik);
|
|
16237
16243
|
const d = lk().nodeId((v) => v.name).nodeWidth(Ae.nodeWidth).nodePadding(l).nodeAlign(u).extent([
|
|
16238
16244
|
[2, 30],
|
|
16239
16245
|
[r - 2, i]
|
|
@@ -16590,7 +16596,7 @@ class r0 extends ht {
|
|
|
16590
16596
|
const h = (w, O) => {
|
|
16591
16597
|
x(r, "axes", w, "includeZero") === !1 && O[0] > 0 && O[1] > 0 && (d = O[0]);
|
|
16592
16598
|
}, f = (w) => u ? s.getBoundedScaledValues(w)[0] : s.getRangeValue(d), p = (w) => u ? s.getBoundedScaledValues(w)[1] : s.getRangeValue(w);
|
|
16593
|
-
a ===
|
|
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)));
|
|
16594
16600
|
const g = x(r, "color", "gradient", "enabled"), m = l && l.length === 1 && g;
|
|
16595
16601
|
l.length > 1 && g && console.error("Gradients can only be enabled when having 1 single dataset");
|
|
16596
16602
|
const y = n.selectAll("path.area").data(l, (w) => w.name), v = k(this.services.domUtils.getMainContainer());
|
|
@@ -16776,7 +16782,7 @@ class Pn extends ht {
|
|
|
16776
16782
|
// @ts-ignore
|
|
16777
16783
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16778
16784
|
showRuler(t, [n, r]) {
|
|
16779
|
-
const i = this.parent, s = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), u = s ===
|
|
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) => ({
|
|
16780
16786
|
domainValue: this.services.cartesianScales.getDomainValue(m),
|
|
16781
16787
|
originalData: m
|
|
16782
16788
|
})).filter((m) => LN(m.domainValue, u));
|
|
@@ -17544,7 +17550,7 @@ class se extends ht {
|
|
|
17544
17550
|
}
|
|
17545
17551
|
renderVertOrHorizSkeleton(t) {
|
|
17546
17552
|
const n = this.services.cartesianScales.getOrientation();
|
|
17547
|
-
this.setScales(), this.drawBackdrop(t), n ===
|
|
17553
|
+
this.setScales(), this.drawBackdrop(t), n === zt.VERTICAL && this.drawYGrid(t), n === zt.HORIZONTAL && this.drawXGrid(t), this.setShimmerEffect("shimmer-lines");
|
|
17548
17554
|
}
|
|
17549
17555
|
renderPieSkeleton(t) {
|
|
17550
17556
|
const n = this.computeOuterRadius(), r = 0;
|
|
@@ -17595,7 +17601,7 @@ class se extends ht {
|
|
|
17595
17601
|
r ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
17596
17602
|
);
|
|
17597
17603
|
let p = t + Ct.xOffset;
|
|
17598
|
-
c ===
|
|
17604
|
+
c === Gt.CENTER ? p = s / 2 : c === Gt.RIGHT && (p = s - t - Ct.xOffset);
|
|
17599
17605
|
const g = t + Ct.yOffset;
|
|
17600
17606
|
f.attr("transform", `translate(${p}, ${g})`);
|
|
17601
17607
|
}
|
|
@@ -17635,7 +17641,7 @@ class kN extends ht {
|
|
|
17635
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;
|
|
17636
17642
|
if (h === 0)
|
|
17637
17643
|
return;
|
|
17638
|
-
const { cartesianScales: p } = this.services, g = p.getOrientation(), m = g ===
|
|
17644
|
+
const { cartesianScales: p } = this.services, g = p.getOrientation(), m = g === zt.VERTICAL, [y, v] = gn(
|
|
17639
17645
|
(T) => this.services.cartesianScales.getDomainValue(T),
|
|
17640
17646
|
(T) => this.services.cartesianScales.getRangeValue(T),
|
|
17641
17647
|
g
|
|
@@ -18363,7 +18369,7 @@ class GN extends Pn {
|
|
|
18363
18369
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18364
18370
|
showRuler(t, [n, r]) {
|
|
18365
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(
|
|
18366
|
-
o ===
|
|
18372
|
+
o === zt.VERTICAL ? n : r
|
|
18367
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) => {
|
|
18368
18374
|
if (parseFloat(mt(m, "data.x0")) <= h && parseFloat(mt(m, "data.x1")) >= h)
|
|
18369
18375
|
return !0;
|
|
@@ -18565,7 +18571,7 @@ class jN extends ds {
|
|
|
18565
18571
|
*/
|
|
18566
18572
|
appendPercentage() {
|
|
18567
18573
|
const t = x(this.model.getDisplayData(), 0, "value"), { code: n, number: r } = x(this.getOptions(), "locale"), i = this.getComponentContainer(), s = I.appendOrSelect(i, "text.meter-title"), a = x(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [t] : [], o = i.selectAll("text.percent-value").data(a), l = Zt.statusBar.paddingRight;
|
|
18568
|
-
o.enter().append("text").classed("percent-value", !0).merge(o).text((c) => `${r(c, n)}%`).attr("x", +s.attr("x") + s.node().getComputedTextLength() + l).attr("y", s.attr("y")), o.exit().remove();
|
|
18574
|
+
o.enter().append("text").classed("percent-value", !0).merge(o).text((c) => `${c != null ? r(c, n) : 0}%`).attr("x", +s.attr("x") + s.node().getComputedTextLength() + l).attr("y", s.attr("y")), o.exit().remove();
|
|
18569
18575
|
}
|
|
18570
18576
|
/**
|
|
18571
18577
|
* Uses the parent class truncate logic
|
|
@@ -18899,7 +18905,7 @@ class a0 extends ht {
|
|
|
18899
18905
|
useAttrs: !0
|
|
18900
18906
|
}), w = f ? Ct.xOffset : 0, O = f ? Ct.yOffset : 0;
|
|
18901
18907
|
let C = l + w;
|
|
18902
|
-
b ===
|
|
18908
|
+
b === Gt.CENTER ? C = _ / 2 : b === Gt.RIGHT && (C = _ - l - Ct.xOffset);
|
|
18903
18909
|
let R = l + O;
|
|
18904
18910
|
y.length > 0 && (R += Ct.yOffsetCallout), r.attr("x", C + 7).attr("y", R), this.addEventListeners();
|
|
18905
18911
|
}
|
|
@@ -19096,7 +19102,7 @@ class ZN extends ht {
|
|
|
19096
19102
|
useAttrs: !0
|
|
19097
19103
|
});
|
|
19098
19104
|
let m = d;
|
|
19099
|
-
p ===
|
|
19105
|
+
p === Gt.CENTER ? m = g / 2 : p === Gt.RIGHT && (m = g - d), n.attr("x", m).attr("y", d), this.addEventListeners();
|
|
19100
19106
|
}
|
|
19101
19107
|
/**
|
|
19102
19108
|
* draws the value number associated with the Gauge component in the center
|
|
@@ -19234,7 +19240,7 @@ class o0 extends Tu {
|
|
|
19234
19240
|
})
|
|
19235
19241
|
).attr("transform", (u) => {
|
|
19236
19242
|
const d = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
|
|
19237
|
-
return this.services.cartesianScales.getOrientation() ===
|
|
19243
|
+
return this.services.cartesianScales.getOrientation() === zt.VERTICAL ? `translate(${d}, 0)` : `translate(0, ${d})`;
|
|
19238
19244
|
});
|
|
19239
19245
|
const c = l.selectAll("path.bar").data(
|
|
19240
19246
|
(u) => this.getDataCorrespondingToLabel(u),
|
|
@@ -19257,10 +19263,10 @@ class o0 extends Tu {
|
|
|
19257
19263
|
const d = this.services.cartesianScales.getDomainIdentifier(u);
|
|
19258
19264
|
return this.model.getFillColor(u[i], u[d], u);
|
|
19259
19265
|
}).attr("d", (u) => {
|
|
19260
|
-
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,
|
|
19261
|
-
if (!this.isOutsideZoomedDomain(
|
|
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, _))
|
|
19262
19268
|
return re(
|
|
19263
|
-
{ x0: f, x1: p, y0:
|
|
19269
|
+
{ x0: f, x1: p, y0: y, y1: v },
|
|
19264
19270
|
this.services.cartesianScales.getOrientation()
|
|
19265
19271
|
);
|
|
19266
19272
|
}).attr("opacity", 1).attr("role", at.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
|
|
@@ -19579,7 +19585,7 @@ class KN extends ht {
|
|
|
19579
19585
|
return;
|
|
19580
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]);
|
|
19581
19587
|
let m = this.services.cartesianScales.getRangeValue(u[1]);
|
|
19582
|
-
return Math.abs(m - g) > 0 && Math.abs(m - g) > r.bars.dividerSize && (this.services.cartesianScales.getOrientation() ===
|
|
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(
|
|
19583
19589
|
{ x0: f, x1: p, y0: g, y1: m },
|
|
19584
19590
|
this.services.cartesianScales.getOrientation()
|
|
19585
19591
|
);
|
|
@@ -19679,7 +19685,7 @@ class QN extends Ke {
|
|
|
19679
19685
|
animate: t
|
|
19680
19686
|
})
|
|
19681
19687
|
).style("stroke", (m) => this.model.getFillColor(m[i], m[l], m)).attr("opacity", 1);
|
|
19682
|
-
d ===
|
|
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();
|
|
19683
19689
|
}
|
|
19684
19690
|
// listen for when individual datapoints are hovered
|
|
19685
19691
|
addScatterPointEventListeners() {
|
|
@@ -20083,7 +20089,7 @@ class tP extends ht {
|
|
|
20083
20089
|
useAttrs: !0
|
|
20084
20090
|
});
|
|
20085
20091
|
let a = 0;
|
|
20086
|
-
return t ===
|
|
20092
|
+
return t === Gt.CENTER ? a = Math.floor((s - i.width) / 2) : t === Gt.RIGHT && (a = s - i.width), a;
|
|
20087
20093
|
}
|
|
20088
20094
|
destroy() {
|
|
20089
20095
|
this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
@@ -20198,7 +20204,7 @@ class l0 extends Tu {
|
|
|
20198
20204
|
p = this.services.cartesianScales.getRangeValue(Math.max(0, y)), g = this.services.cartesianScales.getRangeValue(l);
|
|
20199
20205
|
}
|
|
20200
20206
|
const m = Math.abs(g - p);
|
|
20201
|
-
if (m !== 0 && m < 2 && (d > 0 && a ===
|
|
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))
|
|
20202
20208
|
return re({ x0: h, x1: f, y0: p, y1: g }, a);
|
|
20203
20209
|
}).attr("opacity", 1).attr("role", at.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (l) => l.value), this.addEventListeners();
|
|
20204
20210
|
}
|
|
@@ -20376,7 +20382,7 @@ class u0 extends Tu {
|
|
|
20376
20382
|
if (!this.isOutsideZoomedDomain(h, f)) {
|
|
20377
20383
|
if (Math.abs(g - p) > 0 && Math.abs(g - p) > r.bars.dividerSize) {
|
|
20378
20384
|
const m = c[0] < 0 && c[1] <= 0;
|
|
20379
|
-
m && a.length > 1 ? this.services.cartesianScales.getOrientation() ===
|
|
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);
|
|
20380
20386
|
}
|
|
20381
20387
|
return re(
|
|
20382
20388
|
{ x0: h, x1: f, y0: p, y1: g },
|
|
@@ -21509,7 +21515,7 @@ class QB extends Mn {
|
|
|
21509
21515
|
this.domainAxisPosition = r.primaryDomainAxisPosition, this.rangeAxisPosition = r.primaryRangeAxisPosition, this.isDualAxes() && (this.secondaryDomainAxisPosition = r.secondaryDomainAxisPosition, this.secondaryRangeAxisPosition = r.secondaryRangeAxisPosition);
|
|
21510
21516
|
}
|
|
21511
21517
|
determineOrientation() {
|
|
21512
|
-
(this.rangeAxisPosition === V.LEFT || this.rangeAxisPosition === V.RIGHT) && (this.domainAxisPosition === V.BOTTOM || this.domainAxisPosition === V.TOP) ? this.orientation =
|
|
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;
|
|
21513
21519
|
}
|
|
21514
21520
|
isDualAxes() {
|
|
21515
21521
|
return this.dualAxes;
|
|
@@ -21722,6 +21728,10 @@ class QB extends Mn {
|
|
|
21722
21728
|
let s;
|
|
21723
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;
|
|
21724
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
|
+
}
|
|
21725
21735
|
getHighestDomainThreshold() {
|
|
21726
21736
|
const t = x(this.model.getOptions(), "axes"), n = this.getDomainAxisPosition(), { thresholds: r } = t[n];
|
|
21727
21737
|
if (!Array.isArray(r) || Array.isArray(r) && !r.length)
|
|
@@ -22876,7 +22886,7 @@ const i3 = Dt(RH, "CcvAlluvialChart"), s3 = Dt(IH, "CcvAreaChart"), a3 = Dt(NH,
|
|
|
22876
22886
|
}
|
|
22877
22887
|
};
|
|
22878
22888
|
export {
|
|
22879
|
-
|
|
22889
|
+
Gt as Alignments,
|
|
22880
22890
|
i3 as CcvAlluvialChart,
|
|
22881
22891
|
s3 as CcvAreaChart,
|
|
22882
22892
|
a3 as CcvBoxplotChart,
|