@arcgis/charts-components 5.2.0-next.55 → 5.2.0-next.57
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/dist/cdn/{INVFC7O3.js → 2B7R5EPU.js} +1 -1
- package/dist/cdn/{WFYCP7JZ.js → 2DHUAIBZ.js} +1 -1
- package/dist/cdn/{PBSYMRFA.js → 2EDBRZSQ.js} +1 -1
- package/dist/cdn/2ULHNXRJ.js +2 -0
- package/dist/cdn/37UC5ORG.js +2 -0
- package/dist/cdn/{TRSLIVPM.js → 3MGWFTQH.js} +1 -1
- package/dist/cdn/{LLIEB6MK.js → 3Z4FG2HV.js} +1 -1
- package/dist/cdn/{SY4SHDWL.js → 4B5XCGIW.js} +1 -1
- package/dist/cdn/{35POTOZQ.js → 4L2YTJ24.js} +1 -1
- package/dist/cdn/{VQOWMMEN.js → 4MQOMRB6.js} +1 -1
- package/dist/cdn/{AMXNDR4I.js → 4PMNY6J6.js} +1 -1
- package/dist/cdn/{L3TXFMLX.js → 4SFDTXQJ.js} +1 -1
- package/dist/cdn/{R5FNLYC5.js → 53DFPXFT.js} +1 -1
- package/dist/cdn/{4JIJUMOJ.js → 5GXB34LE.js} +1 -1
- package/dist/cdn/{YQS2EQHT.js → 5PAOUYHV.js} +2 -2
- package/dist/cdn/{5IVUWORQ.js → 5WIDEL4K.js} +1 -1
- package/dist/cdn/{MQCPDAMM.js → 6HFL4FZL.js} +1 -1
- package/dist/cdn/{ZX2RKC3N.js → 6Z7SZ44K.js} +1 -1
- package/dist/cdn/7IK6J5VF.js +2 -0
- package/dist/cdn/{3GU4G523.js → A34ROM33.js} +1 -1
- package/dist/cdn/A6QLIVFM.js +45 -0
- package/dist/cdn/{XXTJGAQH.js → ALOMPW5P.js} +1 -1
- package/dist/cdn/{KFHPKJAT.js → BGTNSGMQ.js} +1 -1
- package/dist/cdn/{Y3JE7LSY.js → BM62ZXFE.js} +1 -1
- package/dist/cdn/{N5DFUGTU.js → BNBZEIMG.js} +1 -1
- package/dist/cdn/{PLSATV5N.js → C3YMGEUW.js} +1 -1
- package/dist/cdn/{SOQRI6W2.js → C64W7ELG.js} +1 -1
- package/dist/cdn/{4HW6IYHV.js → CB6BIIF2.js} +1 -1
- package/dist/cdn/{NENBP3B4.js → CD2NGAV3.js} +1 -1
- package/dist/cdn/{PD73QWUT.js → CPRSIFTK.js} +1 -1
- package/dist/cdn/{5LFGIBZK.js → DRHDCMI3.js} +1 -1
- package/dist/cdn/{GGKKUTRH.js → DTNHSQRD.js} +1 -1
- package/dist/cdn/DUAMGCAK.js +2 -0
- package/dist/cdn/{Z726E2GN.js → E4T5VUXT.js} +1 -1
- package/dist/cdn/EDYZLWGW.js +3 -0
- package/dist/cdn/{ZLUIQN7F.js → EKWX6BR7.js} +1 -1
- package/dist/cdn/{AB6TCMRN.js → EQXKSMAG.js} +1 -1
- package/dist/cdn/{Q4CX7PBA.js → EZ6DGROJ.js} +1 -1
- package/dist/cdn/{DMRE2GYB.js → F64XESDA.js} +1 -1
- package/dist/cdn/{BJJJ62EE.js → FJPWWKHZ.js} +1 -1
- package/dist/cdn/{WBEI523H.js → FQ6B5P53.js} +1 -1
- package/dist/cdn/{7FUBB222.js → G5DDARQJ.js} +1 -1
- package/dist/cdn/G5FTVXQF.js +2 -0
- package/dist/cdn/{SEORO35X.js → GHTCOHC2.js} +1 -1
- package/dist/cdn/{3OOV2HEE.js → GSD4ZLN6.js} +1 -1
- package/dist/cdn/{PNV7XBIH.js → GVUHKCSZ.js} +1 -1
- package/dist/cdn/GXGUKV7H.js +2 -0
- package/dist/cdn/{223CX3CX.js → HDCSZ2BJ.js} +2 -2
- package/dist/cdn/{2X3OAYNV.js → I6LYDJKQ.js} +1 -1
- package/dist/cdn/{BSZZXXQG.js → IDAMYFLT.js} +1 -1
- package/dist/cdn/{43ZZWFUB.js → IH2BBWAQ.js} +1 -1
- package/dist/cdn/{BPBAOPSD.js → J4C4QWY4.js} +1 -1
- package/dist/cdn/{WXQ6S6Z3.js → JXZJXDU5.js} +3 -3
- package/dist/cdn/{GGJZNR3O.js → JYROXMJN.js} +1 -1
- package/dist/cdn/{RQTGZRZH.js → KI2XMATI.js} +1 -1
- package/dist/cdn/{DY5EFYIC.js → LDBJRKCM.js} +1 -1
- package/dist/cdn/{6EEZMNAM.js → LOEMTYZB.js} +1 -1
- package/dist/cdn/M5K6IJLD.js +2 -0
- package/dist/cdn/{B45AW3O4.js → M7ZANON3.js} +1 -1
- package/dist/cdn/{LS6GKMWR.js → MCJTQ4YF.js} +1 -1
- package/dist/cdn/{VW22WSUU.js → MEQOANO2.js} +1 -1
- package/dist/cdn/MLA3N4MI.js +2 -0
- package/dist/cdn/{REPRW5PP.js → MR7KELUF.js} +1 -1
- package/dist/cdn/{ZREU3AFM.js → MY2W3RH7.js} +1 -1
- package/dist/cdn/{2IKZFZUE.js → MYK7BBLS.js} +1 -1
- package/dist/cdn/{ZFN2VAFO.js → N7D4B5LO.js} +1 -1
- package/dist/cdn/{ZB7AKPZU.js → NFU76HOO.js} +1 -1
- package/dist/cdn/{3LMD4KUV.js → NZVEN4LR.js} +1 -1
- package/dist/cdn/{QUNHRC77.js → OEYB3NZZ.js} +1 -1
- package/dist/cdn/{OL47BPWN.js → OKK5OJ6S.js} +1 -1
- package/dist/cdn/{KLS66MBI.js → OS5TUH4X.js} +1 -1
- package/dist/cdn/PHUJHKPW.js +2 -0
- package/dist/cdn/{R3RNZJIN.js → PXTV6Y3K.js} +1 -1
- package/dist/cdn/{FIL44WXR.js → QMJ75W7D.js} +1 -1
- package/dist/cdn/{CA5SZB65.js → QRJMT2DB.js} +1 -1
- package/dist/cdn/{RSSVWJA5.js → RKGAXZQB.js} +1 -1
- package/dist/cdn/{GGPWJTK3.js → RP2TRPHY.js} +1 -1
- package/dist/cdn/{N7NVDG4G.js → TT6WOAKC.js} +1 -1
- package/dist/cdn/{KVDM5PYB.js → UGOWEOTC.js} +1 -1
- package/dist/cdn/{JR4SQQU4.js → UIU5UYBO.js} +1 -1
- package/dist/cdn/{F2LCVAD2.js → UYQBMPSN.js} +1 -1
- package/dist/cdn/V23GYHYZ.js +2 -0
- package/dist/cdn/{FZNNCU2C.js → VPJVWP7S.js} +1 -1
- package/dist/cdn/{3DIYOKPZ.js → XWJ4GDXQ.js} +1 -1
- package/dist/cdn/{SPQDPL7T.js → ZAAMSMQB.js} +1 -1
- package/dist/cdn/{6L6HZOZD.js → ZCACFAKY.js} +1 -1
- package/dist/cdn/{MQYXT4ZE.js → ZKZOXEXY.js} +1 -1
- package/dist/cdn/{3GSTHSH7.js → ZMBNBTJQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +0 -5
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +25 -33
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +5 -5
- package/dist/chunks/box-plot-data.js +19 -19
- package/dist/chunks/box-plot-model.js +16 -16
- package/dist/chunks/chart-model.js +9 -9
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +19 -19
- package/dist/chunks/data.js +5 -5
- package/dist/chunks/gauge-model.js +13 -13
- package/dist/chunks/heat-chart-model.js +7 -7
- package/dist/chunks/histogram-data.js +26 -26
- package/dist/chunks/histogram-model.js +7 -7
- package/dist/chunks/index.js +174 -165
- package/dist/chunks/index2.js +1814 -1730
- package/dist/chunks/index3.js +17 -19
- package/dist/chunks/index4.js +29 -2
- package/dist/chunks/line-chart-model.js +4 -4
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +23 -23
- package/dist/chunks/negative-values-stacked-to-baseline.js +12 -12
- package/dist/chunks/pie-chart-data.js +14 -14
- package/dist/chunks/pie-chart-model.js +17 -17
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/scatterplot-model.js +13 -13
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/chunks/serial-chart-model.js +18 -18
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/utils.js +13 -13
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +11 -11
- package/dist/chunks/x-bounds.js +15 -15
- package/dist/components/arcgis-chart/customElement.js +4541 -4668
- package/dist/components/arcgis-charts-action-bar/customElement.js +32 -29
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +459 -457
- package/dist/json-schema/index.d.ts +22 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -1
- package/dist/spec/data-source.d.ts +8 -1
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/chart-config/utils/index.d.ts +2 -2
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +8 -1
- package/dist/utils/defaults/interfaces.d.ts +6 -1
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/47ZP4C6W.js +0 -2
- package/dist/cdn/B7UPRHNP.js +0 -2
- package/dist/cdn/FDXN5BIJ.js +0 -2
- package/dist/cdn/LCDVDWAP.js +0 -2
- package/dist/cdn/LVOIKCIC.js +0 -45
- package/dist/cdn/PAN7QMBU.js +0 -3
- package/dist/cdn/QCVMEX4J.js +0 -2
- package/dist/cdn/RY5RNGN5.js +0 -2
- package/dist/cdn/TUBHNDX5.js +0 -2
- package/dist/cdn/UUG5P5AP.js +0 -2
- package/dist/cdn/WCPUB3NR.js +0 -2
- package/dist/cdn/YST2TFPV.js +0 -2
- /package/dist/cdn/{HRUQXEFI.js → 22WGB4CQ.js} +0 -0
- /package/dist/cdn/{C4O77AVT.js → 3CGAUDYD.js} +0 -0
- /package/dist/cdn/{K25GJKPH.js → 3FZCVKWJ.js} +0 -0
- /package/dist/cdn/{4ASVJDBN.js → 3GVTYZ2I.js} +0 -0
- /package/dist/cdn/{RTVU7ANC.js → 4EBMUPEV.js} +0 -0
- /package/dist/cdn/{OZSAA5YQ.js → 4VL2SBHK.js} +0 -0
- /package/dist/cdn/{Q3ZQR5JF.js → 7WVTY3XI.js} +0 -0
- /package/dist/cdn/{VEXNULZX.js → A2NFOGT2.js} +0 -0
- /package/dist/cdn/{SWEIMWH2.js → ASZ6YFIL.js} +0 -0
- /package/dist/cdn/{7CGAXWPM.js → AZKX3FMB.js} +0 -0
- /package/dist/cdn/{O25MQAZU.js → AZMQPJO3.js} +0 -0
- /package/dist/cdn/{6RG6AF7N.js → CDJRYMBP.js} +0 -0
- /package/dist/cdn/{ZCAHK6VZ.js → CHMLTTRN.js} +0 -0
- /package/dist/cdn/{BAPR67OA.js → CL5G6D6W.js} +0 -0
- /package/dist/cdn/{WWIRRYDD.js → CMGCZ4MF.js} +0 -0
- /package/dist/cdn/{Q5E66RNY.js → CVJSVWF3.js} +0 -0
- /package/dist/cdn/{MDPDU2BA.js → D3KIBJKD.js} +0 -0
- /package/dist/cdn/{GZZJATH3.js → DJPMW6UC.js} +0 -0
- /package/dist/cdn/{2R5BXKVB.js → EXS2KOEA.js} +0 -0
- /package/dist/cdn/{ZYK5XBZK.js → GP3LPIRJ.js} +0 -0
- /package/dist/cdn/{57VIC2YX.js → HBOYEK6P.js} +0 -0
- /package/dist/cdn/{GEHO65XE.js → HQMOMCWF.js} +0 -0
- /package/dist/cdn/{7MEYUIY2.js → HSQ32NUA.js} +0 -0
- /package/dist/cdn/{DGJATKEL.js → IUOORM26.js} +0 -0
- /package/dist/cdn/{R6XIGSQS.js → JZ5HUNM5.js} +0 -0
- /package/dist/cdn/{RLCLIRL6.js → KOCZJFY6.js} +0 -0
- /package/dist/cdn/{XVK4ONRA.js → LHDBHPXR.js} +0 -0
- /package/dist/cdn/{YS73YUW5.js → MVCB4RM7.js} +0 -0
- /package/dist/cdn/{TQLMPVI5.js → MZ2RZ62O.js} +0 -0
- /package/dist/cdn/{F7IPTEHX.js → OSUM4CWA.js} +0 -0
- /package/dist/cdn/{AFE4UMQE.js → PAQGR4DD.js} +0 -0
- /package/dist/cdn/{HWHKCIYW.js → PEEVY5UG.js} +0 -0
- /package/dist/cdn/{XWLP2CHH.js → TGEHTOWR.js} +0 -0
- /package/dist/cdn/{3UDKG6TV.js → TSSN2OW3.js} +0 -0
- /package/dist/cdn/{L5J4TYCU.js → UB36FUCN.js} +0 -0
- /package/dist/cdn/{JEW6MSOC.js → V7AEHY25.js} +0 -0
- /package/dist/cdn/{JNFMKAES.js → VNNTABNO.js} +0 -0
- /package/dist/cdn/{X6QMN2HV.js → VT6X6QMA.js} +0 -0
- /package/dist/cdn/{R6T7WJQJ.js → WKQB6Z7Z.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { s as p, u as v, e as X, h as O } from "./utils.js";
|
|
3
3
|
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
|
-
import { isEmpty as
|
|
4
|
+
import { isEmpty as f, isEqual as D } from "lodash-es";
|
|
5
5
|
import { b as w } from "./series-length.js";
|
|
6
6
|
import { g as b } from "./utils2.js";
|
|
7
|
-
import {
|
|
7
|
+
import { al as m, af as z, ad as k } from "./index.js";
|
|
8
8
|
import { d as y } from "./index3.js";
|
|
9
9
|
import { bh as E } from "./index2.js";
|
|
10
10
|
import { i as T } from "./index4.js";
|
|
11
11
|
import { C as V } from "./chart-model.js";
|
|
12
|
-
import { M as
|
|
12
|
+
import { M as B, a as G, W as U, b as j } from "./data-labels-visibility.js";
|
|
13
13
|
import { W as N } from "./data-labels-symbol.js";
|
|
14
14
|
import { W as q, c as H, d as J } from "./axis-lines-symbol.js";
|
|
15
15
|
import { W as K, a as Q } from "./x-bounds.js";
|
|
@@ -33,17 +33,17 @@ function M(i, e) {
|
|
|
33
33
|
return s === r || o;
|
|
34
34
|
}
|
|
35
35
|
function C(i, e) {
|
|
36
|
-
const { layerFieldsInfo: t } = e, s =
|
|
36
|
+
const { layerFieldsInfo: t } = e, s = x(i), r = y(t, s), o = b(0, i), n = T(i);
|
|
37
37
|
return r === o || n;
|
|
38
38
|
}
|
|
39
39
|
function g(i, e, t) {
|
|
40
|
-
const s =
|
|
40
|
+
const s = x(i), r = u(i), { layerFieldsInfo: o } = e, n = y(o, s), a = y(o, r);
|
|
41
41
|
return Y(t.titleLabels.xAndY, { x: n, y: a });
|
|
42
42
|
}
|
|
43
43
|
const _ = (i) => {
|
|
44
44
|
const { x: e, y: t, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: a, commonStrings: h } = i, { layerFieldsInfo: A } = r, W = y(A, e), P = y(A, t);
|
|
45
|
-
!
|
|
46
|
-
},
|
|
45
|
+
!f(e) && n && v(s, 0, W), !f(t) && a && v(s, 1, P), !f(e) && !f(t) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
46
|
+
}, x = (i) => i.series[0]?.x ?? "", u = (i) => i.series[0]?.y ?? "", re = (i) => {
|
|
47
47
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
48
48
|
F(t), t.series[0] && (t.series[0].x = e), _({
|
|
49
49
|
x: e,
|
|
@@ -63,7 +63,7 @@ const _ = (i) => {
|
|
|
63
63
|
}, oe = (i) => {
|
|
64
64
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
65
65
|
F(t), t.series[0] && (t.series[0].y = e), _({
|
|
66
|
-
x:
|
|
66
|
+
x: x(t),
|
|
67
67
|
y: e,
|
|
68
68
|
config: t,
|
|
69
69
|
layerInfo: s,
|
|
@@ -93,7 +93,7 @@ const _ = (i) => {
|
|
|
93
93
|
!(e.series[0]?.overlays?.trendLine?.created ?? !1) && i && (e.series[0].overlays ??= m(), e.series[0].overlays.trendLine ??= m().trendLine, e.series[0].overlays.trendLine.created = i), ye(i, e);
|
|
94
94
|
}, S = (i) => i.series[0]?.sizePolicy ?? z(), pe = (i, e) => {
|
|
95
95
|
e.series[0] && (i !== void 0 && i.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...i } : e.series[0].sizePolicy = void 0);
|
|
96
|
-
},
|
|
96
|
+
}, fe = (i) => i?.series?.[0]?.overlays, xe = (i, e) => {
|
|
97
97
|
e?.series[0] !== void 0 && (e.series[0].overlays = i);
|
|
98
98
|
}, ue = (i) => i.series.find((e) => e.additionalTooltipFields !== void 0)?.additionalTooltipFields ?? [], he = (i, e) => {
|
|
99
99
|
e.series.forEach((t) => {
|
|
@@ -119,7 +119,7 @@ class l extends V {
|
|
|
119
119
|
* X-axis field.
|
|
120
120
|
*/
|
|
121
121
|
get xAxisField() {
|
|
122
|
-
return
|
|
122
|
+
return x(this._config);
|
|
123
123
|
}
|
|
124
124
|
set xAxisField(e) {
|
|
125
125
|
re({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
@@ -174,10 +174,10 @@ class l extends V {
|
|
|
174
174
|
* Trendline overlay for the scatterplot.
|
|
175
175
|
*/
|
|
176
176
|
get seriesOverlays() {
|
|
177
|
-
return
|
|
177
|
+
return fe(this._config);
|
|
178
178
|
}
|
|
179
179
|
set seriesOverlays(e) {
|
|
180
|
-
e !== void 0 &&
|
|
180
|
+
e !== void 0 && xe(e, this._config);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Add an additional field to display for scatterplot tooltips.
|
|
@@ -240,10 +240,10 @@ c([
|
|
|
240
240
|
], l.prototype, "additionalTooltipField");
|
|
241
241
|
const Ae = [
|
|
242
242
|
ie,
|
|
243
|
-
j,
|
|
244
243
|
B,
|
|
245
244
|
G,
|
|
246
245
|
U,
|
|
246
|
+
j,
|
|
247
247
|
N,
|
|
248
248
|
se,
|
|
249
249
|
te,
|
|
@@ -3,12 +3,12 @@ import { substitute as E } from "@arcgis/core/intl.js";
|
|
|
3
3
|
import { cloneDeep as te, isEmpty as Ue, memoize as je } from "lodash-es";
|
|
4
4
|
import { S as ue } from "./common.js";
|
|
5
5
|
import { s as N, u as W, a as De, g as ge, b as Le, c as Ke, d as Ze, e as Se } from "./utils.js";
|
|
6
|
-
import { w as V, i as _e,
|
|
6
|
+
import { w as V, i as _e, cU as $, b_ as Qe, bm as ze, x as Ge, Y as ie, ct as Je, cs as et, p as tt, aH as fe, c4 as it, d as st, aG as at, I as rt, a7 as nt, bk as lt, W as ot, e as ut, bo as ct, d1 as dt, v as yt, d7 as Fe, bN as mt, d8 as pt, bJ as gt, B as ft, N as xe, bq as z, d4 as St, bb as Y, bu as G, an as Z, a6 as Ne, b9 as Ft, k as ce, bh as he } from "./index2.js";
|
|
7
7
|
import { a as U, s as Oe, g as se, b as Te, c as xt } from "./data.js";
|
|
8
8
|
import { u as B, r as I, k as ht, d as R, n as L, m as H, p as Tt, t as Bt, s as de } from "./chart-object-literals.js";
|
|
9
9
|
import { R as ke, i as Ct } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as ae } from "./index4.js";
|
|
11
|
-
import {
|
|
11
|
+
import { aD as bt, K as J, F as ye, w as At, $ as vt, ac as It, ao as Vt, A as Dt, a2 as Lt } from "./index.js";
|
|
12
12
|
import { C as w, F as X, d as P } from "./index3.js";
|
|
13
13
|
import { h as qe, i as k, j as Nt, n as Ot, g as A, m as v, e as Be } from "./index5.js";
|
|
14
14
|
import { convertChartSpec as kt } from "../utils/chart-config/converter/index.js";
|
|
@@ -7,8 +7,8 @@ import { C as O } from "./chart-model.js";
|
|
|
7
7
|
import { m as o } from "./model-setter.js";
|
|
8
8
|
import { S as V } from "./common.js";
|
|
9
9
|
import { M as N, a as E, W as k, b as U } from "./data-labels-visibility.js";
|
|
10
|
-
import { M as
|
|
11
|
-
import { g as u, d as S, j as Y, k as
|
|
10
|
+
import { M as j, a as X } from "./model-with-y-guides.js";
|
|
11
|
+
import { g as u, d as S, j as Y, k as w, l as z, m as R, n as q, o as K, q as G, t as $, v as Z, w as H, x as J, y as Q, z as T, A as x, B as F, C as y, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as fe } from "./generate-x-axis-title.js";
|
|
@@ -16,12 +16,12 @@ import { W as he, a as pe } from "./x-bounds.js";
|
|
|
16
16
|
import { W as de } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as me } from "./rotated-state.js";
|
|
18
18
|
import { g as W, u as ye, s as C, j as ue, k as Se, f as _e, h as Te } from "./utils.js";
|
|
19
|
-
import { d as
|
|
20
|
-
import {
|
|
19
|
+
import { d as B, e as A, a as xe } from "./data.js";
|
|
20
|
+
import { B as Fe, Z as Ce, x as Be, a4 as Ae, a2 as Ie } from "./index.js";
|
|
21
21
|
import { i as h, g as p, m as _ } from "./index5.js";
|
|
22
22
|
const I = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, v = (s) => {
|
|
23
23
|
const { assign: e, seriesIndex: i, config: t, commonStrings: r } = s;
|
|
24
|
-
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] =
|
|
24
|
+
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] = Be(r, D.BarSeries)[1]), t.series && t.series.forEach((a, g) => {
|
|
25
25
|
g === i ? a.assignToSecondValueAxis = e : g !== i && a?.assignToSecondValueAxis !== !0 && (a.assignToSecondValueAxis = !1);
|
|
26
26
|
}), t.axes?.[2] && !t.series.some((a) => a.assignToSecondValueAxis) && t.axes.splice(2, 1);
|
|
27
27
|
}, ve = (s, e) => e.series?.[s]?.name, be = (s, e, i) => {
|
|
@@ -57,7 +57,7 @@ const I = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, v = (s) => {
|
|
|
57
57
|
});
|
|
58
58
|
ye(i, 1, a);
|
|
59
59
|
}
|
|
60
|
-
i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat =
|
|
60
|
+
i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat = Ae() : i.axes[1].valueFormat = Ie()), C({ config: i, value: null, axisIndex: 1, isMax: !1 }), C({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
61
61
|
}, Ve = (s) => {
|
|
62
62
|
let e;
|
|
63
63
|
const i = s.series.find(
|
|
@@ -82,13 +82,13 @@ class c extends O {
|
|
|
82
82
|
return Y(this._config);
|
|
83
83
|
}
|
|
84
84
|
set temporalBinningSize(e) {
|
|
85
|
-
|
|
85
|
+
w(e, this._config);
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Time interval units for a temporal bar chart or line chart.
|
|
89
89
|
*/
|
|
90
90
|
get temporalBinningUnit() {
|
|
91
|
-
return
|
|
91
|
+
return z(this._config);
|
|
92
92
|
}
|
|
93
93
|
set temporalBinningUnit(e) {
|
|
94
94
|
R(e, this._config);
|
|
@@ -148,8 +148,8 @@ f([
|
|
|
148
148
|
f([
|
|
149
149
|
o
|
|
150
150
|
], c.prototype, "resetTimeInterval");
|
|
151
|
-
var Ue = Object.defineProperty,
|
|
152
|
-
for (var r =
|
|
151
|
+
var Ue = Object.defineProperty, je = Object.getOwnPropertyDescriptor, l = (s, e, i, t) => {
|
|
152
|
+
for (var r = je(e, i), a = s.length - 1, g; a >= 0; a--)
|
|
153
153
|
(g = s[a]) && (r = g(e, i, r) || r);
|
|
154
154
|
return r && Ue(e, i, r), r;
|
|
155
155
|
};
|
|
@@ -241,7 +241,7 @@ class n extends O {
|
|
|
241
241
|
return T(this._config)[0];
|
|
242
242
|
}
|
|
243
243
|
setSortOrder(e, i) {
|
|
244
|
-
|
|
244
|
+
B(e, this._config, i);
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
247
|
* Gets the list of the category values for the chart.
|
|
@@ -263,7 +263,7 @@ class n extends O {
|
|
|
263
263
|
layerInfo: this.layerInfo,
|
|
264
264
|
errorStrings: this.commonStrings?.errorStrings
|
|
265
265
|
});
|
|
266
|
-
|
|
266
|
+
B(i, this._config, t), this.finishAsyncUpdate();
|
|
267
267
|
}
|
|
268
268
|
this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
269
269
|
}
|
|
@@ -271,7 +271,7 @@ class n extends O {
|
|
|
271
271
|
* The list of values for custom sort.
|
|
272
272
|
*/
|
|
273
273
|
get orderByList() {
|
|
274
|
-
return
|
|
274
|
+
return A(this._config);
|
|
275
275
|
}
|
|
276
276
|
set orderByList(e) {
|
|
277
277
|
!P(this._config) && F(e, this._config);
|
|
@@ -351,7 +351,7 @@ class n extends O {
|
|
|
351
351
|
t.splice(i, 0, r), this.setOrderOfSeries(t);
|
|
352
352
|
}
|
|
353
353
|
moveCustomSortValuesInOrderByList(e, i) {
|
|
354
|
-
const t =
|
|
354
|
+
const t = A(this._config), [r] = t.splice(e, 1);
|
|
355
355
|
t.splice(i, 0, r), F(t, this._config);
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
@@ -499,8 +499,8 @@ l([
|
|
|
499
499
|
l([
|
|
500
500
|
o
|
|
501
501
|
], n.prototype, "resetConfig");
|
|
502
|
-
const
|
|
503
|
-
|
|
502
|
+
const Xe = [
|
|
503
|
+
j,
|
|
504
504
|
N,
|
|
505
505
|
E,
|
|
506
506
|
k,
|
|
@@ -508,7 +508,7 @@ const je = [
|
|
|
508
508
|
U,
|
|
509
509
|
de,
|
|
510
510
|
oe,
|
|
511
|
-
|
|
511
|
+
X,
|
|
512
512
|
c,
|
|
513
513
|
ge,
|
|
514
514
|
he,
|
|
@@ -520,7 +520,7 @@ const je = [
|
|
|
520
520
|
fe,
|
|
521
521
|
re
|
|
522
522
|
];
|
|
523
|
-
Te(n,
|
|
523
|
+
Te(n, Xe);
|
|
524
524
|
export {
|
|
525
525
|
n as S,
|
|
526
526
|
be as a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { m as n, C as l } from "./model-setter.js";
|
|
3
|
-
import {
|
|
3
|
+
import { H as o, M as g, T as h } from "./index.js";
|
|
4
4
|
import { aH as p } from "./index2.js";
|
|
5
5
|
var f = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (t, e, i, _) => {
|
|
6
6
|
for (var s = c(e, i), r = t.length - 1, a; r >= 0; r--)
|
package/dist/chunks/series.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { Z as i } from "./index.js";
|
|
3
3
|
const o = (e) => e.lineSymbol?.style, n = (e, t) => {
|
|
4
4
|
t.lineSymbol ??= i(), t.lineSymbol.style = e;
|
|
5
5
|
}, s = (e) => e.lineSymbol?.width, S = (e, t) => {
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
3
|
-
import {
|
|
3
|
+
import { w as C, H as j, M as k, T as q, F as M, x as W } from "./index.js";
|
|
4
4
|
import { g as $ } from "./series-types.js";
|
|
5
|
-
import { l as E, d as S, q as
|
|
5
|
+
import { l as E, d as S, q as H, D as U } from "./index3.js";
|
|
6
6
|
import { an as I, ag as K, h as O, c2 as L, a6 as h, c1 as V, aH as P } from "./index2.js";
|
|
7
7
|
import { k as X } from "./index5.js";
|
|
8
8
|
import { q as R, u as f, r as A, p as G } from "./chart-object-literals.js";
|
|
9
9
|
import { d as T } from "./type-guards.js";
|
|
10
10
|
function ae(s, e, i) {
|
|
11
11
|
const t = s?.axes?.[e];
|
|
12
|
-
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title =
|
|
12
|
+
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = j({
|
|
13
13
|
text: i,
|
|
14
14
|
visible: !0,
|
|
15
|
-
font: q
|
|
15
|
+
font: k(q.AxisTitle)
|
|
16
16
|
}));
|
|
17
17
|
}
|
|
18
18
|
function re(s) {
|
|
@@ -22,7 +22,7 @@ function re(s) {
|
|
|
22
22
|
if (E(e) === R.Stacked100)
|
|
23
23
|
o = t.utilsStrings.statistics.percent;
|
|
24
24
|
else {
|
|
25
|
-
const d =
|
|
25
|
+
const d = C(r, t);
|
|
26
26
|
if (e.series[0]?.type === f.HeatSeries)
|
|
27
27
|
o = S(i.layerFieldsInfo, e.series[0].y);
|
|
28
28
|
else if (a.length === 1) {
|
|
@@ -59,16 +59,16 @@ const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], D = (s) => {
|
|
|
59
59
|
}, ce = (s, e, i) => {
|
|
60
60
|
const t = s.axes?.[e];
|
|
61
61
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
62
|
-
},
|
|
62
|
+
}, Q = (s) => {
|
|
63
63
|
const e = $(s.series);
|
|
64
64
|
return e === f.BarSeries || e === f.ComboLineAndBarSeries || e === f.LineSeries;
|
|
65
|
-
},
|
|
65
|
+
}, Y = (s) => {
|
|
66
66
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
67
67
|
let a = !1;
|
|
68
|
-
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a =
|
|
68
|
+
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = Q(i)), a;
|
|
69
69
|
}, ue = (s) => {
|
|
70
70
|
const { axisIndex: e, func: i, config: t } = s;
|
|
71
|
-
return
|
|
71
|
+
return Y({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
72
72
|
}, v = (s, e) => {
|
|
73
73
|
let i;
|
|
74
74
|
const t = e.axes?.[s]?.valueFormat;
|
|
@@ -94,10 +94,10 @@ const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], D = (s) => {
|
|
|
94
94
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
|
|
95
95
|
};
|
|
96
96
|
async function ye(s) {
|
|
97
|
-
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {},
|
|
97
|
+
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, w = {
|
|
98
98
|
where: O([m, x, l]),
|
|
99
99
|
// excluding the null values from the list
|
|
100
|
-
orderByFields:
|
|
100
|
+
orderByFields: H(a) ? [] : [`${a} ${G.Ascending}`],
|
|
101
101
|
// default sorting ascending for split-by field
|
|
102
102
|
geometry: e?.dataFilters?.geometry
|
|
103
103
|
};
|
|
@@ -112,13 +112,13 @@ async function ye(s) {
|
|
|
112
112
|
queryObject: i,
|
|
113
113
|
category: e?.series[0].x ?? "",
|
|
114
114
|
splitByField: a,
|
|
115
|
-
queryConfig:
|
|
115
|
+
queryConfig: w,
|
|
116
116
|
errorStrings: d
|
|
117
117
|
})).keys()
|
|
118
118
|
) : [];
|
|
119
119
|
if (y = y.slice(0, 500), e) {
|
|
120
120
|
const F = e?.series.map((c) => P({ where: c.query?.where })?.toString() ?? "").filter((c) => c !== void 0 && c !== "");
|
|
121
|
-
y =
|
|
121
|
+
y = U({
|
|
122
122
|
arrayA: y,
|
|
123
123
|
arrayB: F,
|
|
124
124
|
getKey: (c) => c === null ? null : c?.toString()
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { H as x, M as a, T as o } from "./index.js";
|
|
3
3
|
const v = (e, i) => i.axes?.[e]?.labels?.visible ?? !0, f = (e, i, s) => {
|
|
4
4
|
const t = s.axes?.[i];
|
|
5
5
|
t?.labels !== void 0 ? t.labels.visible = e : t !== void 0 && t?.labels === void 0 && (t.labels = x({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as ue, capitalize as B, isNumber as W, zip as ae } from "lodash-es";
|
|
3
3
|
import { d as Y } from "./interfaces.js";
|
|
4
|
-
import { g as ce, a as
|
|
4
|
+
import { g as ce, a as q, b as oe, c as z } from "./box-plot-data.js";
|
|
5
5
|
import { g as fe } from "./histogram-data.js";
|
|
6
6
|
import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
7
7
|
import { g as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { Y as U, an as be, af as xe, aK as E,
|
|
11
|
-
import { k as
|
|
9
|
+
import { g as _, a as pe } from "./data.js";
|
|
10
|
+
import { Y as U, an as be, af as xe, aK as E, cm as Fe, B as V, a6 as De, bb as Se, d6 as Be } from "./index2.js";
|
|
11
|
+
import { k as H, az as $, g as R, as as ve, b as he, a as Q } from "./index.js";
|
|
12
12
|
import { q as K, C as g, F as A } from "./index3.js";
|
|
13
13
|
import { g as Pe } from "./series-types.js";
|
|
14
14
|
import { V as Ve } from "./index6.js";
|
|
@@ -284,7 +284,7 @@ function ee(l) {
|
|
|
284
284
|
}), s;
|
|
285
285
|
}
|
|
286
286
|
function Te(l) {
|
|
287
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u =
|
|
287
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u = _({
|
|
288
288
|
config: e,
|
|
289
289
|
xAxisField: s,
|
|
290
290
|
numericFields: f,
|
|
@@ -293,7 +293,7 @@ function Te(l) {
|
|
|
293
293
|
fieldList: o
|
|
294
294
|
});
|
|
295
295
|
return t.map((p) => {
|
|
296
|
-
const v = p[
|
|
296
|
+
const v = p[H.xField], b = p[H.yField], x = p[H.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
297
|
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
299
|
const { label: F, value: S } = G({
|
|
@@ -406,7 +406,7 @@ function Ke(l) {
|
|
|
406
406
|
timeZone: n
|
|
407
407
|
}), S = { [s]: F };
|
|
408
408
|
return u.forEach((P, C) => {
|
|
409
|
-
const w =
|
|
409
|
+
const w = _({
|
|
410
410
|
config: e,
|
|
411
411
|
xAxisField: s,
|
|
412
412
|
numericFields: u,
|
|
@@ -504,7 +504,7 @@ function je(l) {
|
|
|
504
504
|
function Ee(l) {
|
|
505
505
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
|
|
506
506
|
let f = je(t);
|
|
507
|
-
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, v = ye(e, p), b =
|
|
507
|
+
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, v = ye(e, p), b = _({
|
|
508
508
|
config: e,
|
|
509
509
|
xAxisField: s,
|
|
510
510
|
numericFields: u,
|
|
@@ -558,7 +558,7 @@ function j(l) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function T(l) {
|
|
561
|
-
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s =
|
|
561
|
+
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = q(a), c = oe(a), f = z(a);
|
|
562
562
|
let u = V.Outlier;
|
|
563
563
|
const p = R;
|
|
564
564
|
switch (o) {
|
|
@@ -612,7 +612,7 @@ function T(l) {
|
|
|
612
612
|
b !== void 0 && (t[`${B(V.Outlier)} Z-Score`] = b);
|
|
613
613
|
}
|
|
614
614
|
function Ue(l) {
|
|
615
|
-
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f =
|
|
615
|
+
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = z(a), u = q(a);
|
|
616
616
|
let p = "";
|
|
617
617
|
switch (s) {
|
|
618
618
|
case g.BoxPlotMonoFieldAndSplitBy: {
|
|
@@ -655,7 +655,7 @@ function Ze(l) {
|
|
|
655
655
|
let c = s;
|
|
656
656
|
const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
657
657
|
f && !u && (s === g.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
|
|
658
|
-
const p =
|
|
658
|
+
const p = q(e), v = oe(e), b = ie(e), x = z(e);
|
|
659
659
|
let D;
|
|
660
660
|
switch (c) {
|
|
661
661
|
case g.BoxPlotMonoField:
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -4,11 +4,11 @@ import { cloneDeep as h } from "lodash-es";
|
|
|
4
4
|
import { G as g } from "./common.js";
|
|
5
5
|
import { i as c } from "./rest-js-object-literals.js";
|
|
6
6
|
import { u as x } from "./chart-object-literals.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ai as S, M as L, T as b, a0 as T } from "./index.js";
|
|
8
8
|
import { M as C } from "./index2.js";
|
|
9
|
-
import { q as
|
|
9
|
+
import { q as M, p as X } from "./index5.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
|
-
import { e as
|
|
11
|
+
import { e as B, f as A } from "./utils2.js";
|
|
12
12
|
import { l as p, s as y, h as O } from "./utils.js";
|
|
13
13
|
const P = (t) => {
|
|
14
14
|
for (const e of t.axes ?? [])
|
|
@@ -38,7 +38,7 @@ const V = (t) => {
|
|
|
38
38
|
i?.guides?.[s] !== void 0 && (i.guides[s].visible = e);
|
|
39
39
|
}, m = (t) => {
|
|
40
40
|
const e = C(t.start, t.end);
|
|
41
|
-
|
|
41
|
+
M(t.style) && e === c.SFS ? t.style = { type: c.SFS, color: t.style.color } : X(t.style) && e === c.SLS && (t.style = { type: c.SLS, color: t.style.color });
|
|
42
42
|
}, E = (t) => {
|
|
43
43
|
const { axis: e, index: i } = d(t);
|
|
44
44
|
return e?.guides?.[i]?.start ?? null;
|
|
@@ -66,13 +66,13 @@ const V = (t) => {
|
|
|
66
66
|
}, q = (t) => {
|
|
67
67
|
const { axis: e, index: i } = d(t);
|
|
68
68
|
return e?.guides?.[i]?.above ?? !1;
|
|
69
|
-
},
|
|
69
|
+
}, U = (t) => {
|
|
70
70
|
const { above: e, axis: i, index: s } = d(t);
|
|
71
71
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
72
|
-
},
|
|
72
|
+
}, Y = (t) => {
|
|
73
73
|
const { axis: e, index: i } = d(t);
|
|
74
74
|
return e?.guides?.[i]?.style;
|
|
75
|
-
},
|
|
75
|
+
}, z = (t) => {
|
|
76
76
|
const { style: e, axis: i, index: s } = d(t);
|
|
77
77
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
78
78
|
}, Ge = (t) => {
|
|
@@ -90,10 +90,10 @@ const V = (t) => {
|
|
|
90
90
|
}, _e = (t) => {
|
|
91
91
|
const { config: e, index: i, orientation: s } = t, o = s === g.X ? e.axes?.[0] : e.axes?.[1];
|
|
92
92
|
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
93
|
-
},
|
|
93
|
+
}, H = (t) => {
|
|
94
94
|
const { axis: e, index: i } = d(t);
|
|
95
95
|
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
96
|
-
},
|
|
96
|
+
}, J = (t) => {
|
|
97
97
|
const { reverseColor: e, axis: i, index: s } = d(t);
|
|
98
98
|
i?.guides?.[s] !== void 0 && (i.guides[s].tooltipReverseColor = e);
|
|
99
99
|
};
|
|
@@ -182,7 +182,7 @@ class l extends _ {
|
|
|
182
182
|
return q({ config: this._config, index: e, orientation: i });
|
|
183
183
|
}
|
|
184
184
|
setGuideAbove(e, i, s) {
|
|
185
|
-
|
|
185
|
+
U({ above: e, config: this._config, index: i, orientation: s });
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* Gets the guide style.
|
|
@@ -191,10 +191,10 @@ class l extends _ {
|
|
|
191
191
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
192
192
|
*/
|
|
193
193
|
getGuideStyle(e, i) {
|
|
194
|
-
return
|
|
194
|
+
return Y({ config: this._config, index: e, orientation: i });
|
|
195
195
|
}
|
|
196
196
|
setGuideStyle(e, i, s) {
|
|
197
|
-
|
|
197
|
+
z({ style: e, config: this._config, index: i, orientation: s });
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -203,10 +203,10 @@ class l extends _ {
|
|
|
203
203
|
* @param orientation - The axis orientation of the guide.
|
|
204
204
|
*/
|
|
205
205
|
getTooltipReverseColor(e, i) {
|
|
206
|
-
return
|
|
206
|
+
return H({ config: this._config, index: e, orientation: i });
|
|
207
207
|
}
|
|
208
208
|
setTooltipReverseColor(e, i, s) {
|
|
209
|
-
|
|
209
|
+
J({ reverseColor: e, config: this._config, index: i, orientation: s });
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
u([
|
|
@@ -241,7 +241,7 @@ class he extends f {
|
|
|
241
241
|
* Whether the x-axis labels are visible.
|
|
242
242
|
*/
|
|
243
243
|
get xAxisLabelsVisibility() {
|
|
244
|
-
return
|
|
244
|
+
return B(0, this._config);
|
|
245
245
|
}
|
|
246
246
|
set xAxisLabelsVisibility(e) {
|
|
247
247
|
this.guardSetterFromAsyncOverwrite(() => {
|