@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.126
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/{4UYG2V6P.js → 2IW2QZFJ.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → 2PJPH3IO.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → 4MAJ24GS.js} +1 -1
- package/dist/cdn/4U3OAZA7.js +2 -0
- package/dist/cdn/{BQMUOJL7.js → 4VFEZCIA.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → 56LNZVTX.js} +1 -1
- package/dist/cdn/{HFFXDWQL.js → 57SE2XVZ.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → 5BMODU2D.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → 5BNYRPXI.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 5MDZB2JE.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → 5R7ZWTMY.js} +1 -1
- package/dist/cdn/6664UEHL.js +2 -0
- package/dist/cdn/{N4YN5XHL.js → 6AKXJHB7.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → 6GTMALBB.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → 6MHADUGC.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → 6QIL7VBD.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → 763Z5IGF.js} +1 -1
- package/dist/cdn/7KZO2XXD.js +2 -0
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → A5P6WB3G.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → AMVJMEWD.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → ANSNUR3I.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → AOKEN5ZO.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → AOO37P5T.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → ASBXNQOS.js} +2 -2
- package/dist/cdn/{GCPA466R.js → B5VRC7DP.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → CD3XMKTK.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → CRDOGPB7.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → CW4JPG3J.js} +1 -1
- package/dist/cdn/DAB3SJBG.js +2 -0
- package/dist/cdn/{IJR65YQB.js → DX7M2EXK.js} +1 -1
- package/dist/cdn/{BUXZ2NBS.js → DXWP65HI.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → E5JWMNIW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → EJXBVT5O.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → EX2R2B4U.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → G4MIOOVR.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → GMP2UWJG.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → GZWV22RE.js} +1 -1
- package/dist/cdn/{STFT35NP.js → HKFQANWN.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → HQMCT3VB.js} +1 -1
- package/dist/cdn/I3LNZVEA.js +3 -0
- package/dist/cdn/{ZRYPRUVT.js → IBLYUVF2.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → IJAURACW.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → IS2A63E6.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → IYI6DUGL.js} +1 -1
- package/dist/cdn/{Q4HYSXEK.js → JOEBZXL4.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → JZ6V5FKE.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → K3R6EK3N.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → KS4EBLYJ.js} +22 -22
- package/dist/cdn/{BF2U4V7S.js → KW4KLLTK.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → LE2B3JXK.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → LHGIUJ6U.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → LV3GHN5L.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → M2WD5JN6.js} +1 -1
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → NNRSK2LV.js} +1 -1
- package/dist/cdn/ONKX4PWR.js +2 -0
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → PEHD5Y4I.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → QELGEYXU.js} +1 -1
- package/dist/cdn/QZHRLUXI.js +2 -0
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → RPMGP2UN.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → RS2T6377.js} +1 -1
- package/dist/cdn/SKRBORPC.js +2 -0
- package/dist/cdn/SL3ZM7G5.js +2 -0
- package/dist/cdn/{353KIT3L.js → SYSQA3IG.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → T6RCABY5.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → TCYUL3JC.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → TIVS64YH.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → TPTH224R.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → TRR5AXW7.js} +1 -1
- package/dist/cdn/{LUFRX5TB.js → UEAU7YQZ.js} +1 -1
- package/dist/cdn/{ZP4T262N.js → UPEMQGFY.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → UY4AKYFU.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → UYFTXYBR.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → V3HNAMD7.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → VFVOONAN.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → VT2XOG5Y.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → WOENRIAM.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → WW7WSQXS.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → YHQ5JR63.js} +1 -1
- package/dist/cdn/YQDW3D4E.js +2 -0
- package/dist/cdn/{METDO2QG.js → YRWKRJU4.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → YSLCFR5X.js} +1 -1
- package/dist/cdn/{CQLILZFZ.js → YSZKMYYU.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → YUN3KGXG.js} +1 -1
- package/dist/cdn/Z5VGMG7G.js +2 -0
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1590 -1574
- package/dist/chunks/index2.js +7 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +21 -21
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +71 -71
- package/dist/chunks/serial-chart-model.js +134 -79
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +123 -107
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-chart/customElement.js +4775 -4653
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +54 -63
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- 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 +368 -366
- package/dist/interfaces.d.ts +3 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +48 -48
- package/dist/utils/chart-config/utils/index.d.ts +20 -0
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/4YOIC4P4.js +0 -2
- package/dist/cdn/ELXF6XQQ.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KRNF2XCU.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/LBX6U6EK.js +0 -3
- package/dist/cdn/Q4GIMFJ2.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { log as w } from "@arcgis/toolkit/log";
|
|
3
3
|
import { a as g } from "./chart-object-literals.js";
|
|
4
|
-
import { p as b, r as
|
|
5
|
-
import { i as
|
|
6
|
-
import { a6 as p, ax as W, k as L, p as k, aw as
|
|
4
|
+
import { p as b, r as R } from "./index.js";
|
|
5
|
+
import { i as B } from "./index4.js";
|
|
6
|
+
import { a6 as p, ax as W, k as L, p as k, aw as E, af as j } from "./index3.js";
|
|
7
7
|
import { a as f, b as K } from "./index2.js";
|
|
8
8
|
import { C as q } from "./chart-model.js";
|
|
9
9
|
import { m as s } from "./model-setter.js";
|
|
@@ -26,70 +26,72 @@ const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
|
|
|
26
26
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.valueLabelMaxWidth = t);
|
|
27
27
|
}, ge = (t) => t.series?.[0]?.innerRadius, pe = (t, e) => {
|
|
28
28
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
29
|
-
}, de = (t) => t.series?.[0]?.
|
|
29
|
+
}, de = (t) => t.series?.[0]?.innerRadius, ue = (t, e) => {
|
|
30
|
+
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
31
|
+
}, he = (t) => t.series?.[0]?.dataLabelsCharacterLimit, fe = (t, e) => {
|
|
30
32
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
31
|
-
}, M = (t) => t.series[0]?.startAngle,
|
|
33
|
+
}, M = (t) => t.series[0]?.startAngle, ye = (t, e) => {
|
|
32
34
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
33
|
-
},
|
|
35
|
+
}, me = (t, e) => {
|
|
34
36
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
35
|
-
},
|
|
37
|
+
}, _e = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, Se = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, be = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, Oe = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, De = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Ce = (t, e) => {
|
|
36
38
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
37
|
-
},
|
|
39
|
+
}, ve = (t) => t.series?.[0]?.valuePrefix, Pe = (t, e) => {
|
|
38
40
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
39
|
-
},
|
|
41
|
+
}, Ie = (t) => t.series?.[0]?.valueSuffix, Te = (t, e) => {
|
|
40
42
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
41
|
-
},
|
|
43
|
+
}, Ve = (t) => t.series?.[0]?.percentagePrefix, xe = (t, e) => {
|
|
42
44
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
43
|
-
},
|
|
45
|
+
}, Ne = (t) => t.series?.[0]?.percentageSuffix, Me = (t, e) => {
|
|
44
46
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
45
|
-
},
|
|
47
|
+
}, Fe = (t) => {
|
|
46
48
|
let e;
|
|
47
49
|
const a = t.series?.[0];
|
|
48
50
|
return a?.displayNumericValueOnDataLabel === !0 && a?.displayPercentageOnDataLabel === !0 ? e = n.Both : a?.displayNumericValueOnDataLabel === !0 ? e = n.Value : e = n.Percentage, e;
|
|
49
|
-
},
|
|
51
|
+
}, We = (t, e) => {
|
|
50
52
|
const a = t === n.Value || t === n.Both, o = t === n.Percentage || t === n.Both;
|
|
51
53
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = a, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
52
54
|
...e.legend,
|
|
53
55
|
displayNumericValue: a,
|
|
54
56
|
displayPercentage: o
|
|
55
57
|
});
|
|
56
|
-
},
|
|
58
|
+
}, ke = (t) => t.series?.[0]?.alignDataLabels ?? !1, Ae = (t, e) => {
|
|
57
59
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
58
|
-
},
|
|
60
|
+
}, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1, ze = (t, e) => {
|
|
59
61
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
60
|
-
},
|
|
62
|
+
}, we = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, Re = (t, e) => {
|
|
61
63
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
62
|
-
},
|
|
64
|
+
}, Be = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Ee = (t, e) => {
|
|
63
65
|
e.series?.[0] && (e.series[0].numericValueFormat ??= L(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= L(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
64
|
-
},
|
|
66
|
+
}, je = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ke = (t, e) => {
|
|
65
67
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
66
|
-
},
|
|
68
|
+
}, qe = (t) => t.series[0]?.ticks?.visible ?? !1, He = (t, e) => {
|
|
67
69
|
e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.visible = t);
|
|
68
|
-
},
|
|
70
|
+
}, Je = (t) => t.series[0]?.ticks?.lineSymbol, Qe = (t, e) => {
|
|
69
71
|
t && e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.lineSymbol = le(t));
|
|
70
|
-
},
|
|
72
|
+
}, Ue = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Xe = (t, e) => e.series?.[0]?.slices?.[t]?.label, Ye = (t, e, a) => {
|
|
71
73
|
a.series?.[0]?.slices?.[e] && (a.series[0].slices[e].label = t);
|
|
72
|
-
},
|
|
74
|
+
}, Ze = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, $e = (t, e, a) => {
|
|
73
75
|
const o = a.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
74
76
|
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: _.SLS, color: t }) : a.series?.[0]?.slices?.[e] !== void 0 && (a.series[0].slices[e].fillSymbol = {
|
|
75
77
|
type: _.SFS,
|
|
76
78
|
color: t,
|
|
77
79
|
outline: { type: _.SLS, color: t }
|
|
78
80
|
});
|
|
79
|
-
},
|
|
81
|
+
}, et = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), F = (t, e) => {
|
|
80
82
|
e.series?.[0]?.slices?.sort(
|
|
81
83
|
(a, o) => t.findIndex((l) => a.sliceId === l) - t.findIndex((l) => o.sliceId === l)
|
|
82
84
|
);
|
|
83
|
-
},
|
|
85
|
+
}, tt = (t) => t.series?.[0]?.sliceGrouping, A = (t, e) => {
|
|
84
86
|
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
85
|
-
}, G = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold,
|
|
87
|
+
}, G = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, it = (t, e) => {
|
|
86
88
|
e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
|
|
87
89
|
sliceId: k.defaultGroupOfSlicesId,
|
|
88
90
|
percentageThreshold: t
|
|
89
91
|
};
|
|
90
|
-
},
|
|
92
|
+
}, st = (t) => t.series?.[0]?.slices, z = (t, e) => {
|
|
91
93
|
e.series?.[0] && (e.series[0].slices = t);
|
|
92
|
-
},
|
|
94
|
+
}, rt = (t) => {
|
|
93
95
|
z(void 0, t), A(
|
|
94
96
|
{
|
|
95
97
|
sliceId: k.defaultGroupOfSlicesId,
|
|
@@ -97,11 +99,11 @@ const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
|
|
|
97
99
|
},
|
|
98
100
|
t
|
|
99
101
|
);
|
|
100
|
-
},
|
|
101
|
-
var
|
|
102
|
-
for (var l =
|
|
102
|
+
}, at = (t, e) => e.series[0]?.slices?.[t]?.sliceId, ot = (t, e) => e.series[0]?.slices?.findIndex((a) => a.sliceId === t), lt = (t) => t.series[0]?.slices?.length ?? 0;
|
|
103
|
+
var nt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
|
|
104
|
+
for (var l = ct(e, a), c = t.length - 1, d; c >= 0; c--)
|
|
103
105
|
(d = t[c]) && (l = d(e, a, l) || l);
|
|
104
|
-
return l &&
|
|
106
|
+
return l && nt(e, a, l), l;
|
|
105
107
|
};
|
|
106
108
|
class i extends q {
|
|
107
109
|
constructor() {
|
|
@@ -130,7 +132,7 @@ class i extends q {
|
|
|
130
132
|
return h(this._config);
|
|
131
133
|
}
|
|
132
134
|
set category(e) {
|
|
133
|
-
(!
|
|
135
|
+
(!B(this._config) || e.trim() !== "") && (this._mode = y({
|
|
134
136
|
category: e,
|
|
135
137
|
numericFields: m(this._config),
|
|
136
138
|
fallbackMode: this._mode
|
|
@@ -250,10 +252,10 @@ class i extends q {
|
|
|
250
252
|
* Ticks symbol connecting slices to labels.
|
|
251
253
|
*/
|
|
252
254
|
get ticksSymbol() {
|
|
253
|
-
return
|
|
255
|
+
return Je(this._config);
|
|
254
256
|
}
|
|
255
257
|
set ticksSymbol(e) {
|
|
256
|
-
|
|
258
|
+
Qe(e, this._config);
|
|
257
259
|
}
|
|
258
260
|
// ---------------------------------------------------------------------------------------------
|
|
259
261
|
// #region Slices Props
|
|
@@ -262,7 +264,7 @@ class i extends q {
|
|
|
262
264
|
* Array of slices for the pie chart.
|
|
263
265
|
*/
|
|
264
266
|
get slices() {
|
|
265
|
-
return
|
|
267
|
+
return st(this._config);
|
|
266
268
|
}
|
|
267
269
|
set slices(e) {
|
|
268
270
|
z(e, this._config);
|
|
@@ -280,13 +282,16 @@ class i extends q {
|
|
|
280
282
|
* Slice grouping configuration for the pie chart.
|
|
281
283
|
*/
|
|
282
284
|
get sliceGrouping() {
|
|
283
|
-
return
|
|
285
|
+
return tt(this._config);
|
|
284
286
|
}
|
|
285
287
|
set sliceGrouping(e) {
|
|
286
288
|
A(e, this._config);
|
|
287
289
|
}
|
|
288
290
|
/**
|
|
289
291
|
* Inner radius size for the pie chart.
|
|
292
|
+
*
|
|
293
|
+
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#innerRadius innerRadius} instead.
|
|
294
|
+
* This property will be removed from `PieChartModel` in 6.0.
|
|
290
295
|
*/
|
|
291
296
|
get innerRadiusSize() {
|
|
292
297
|
return ge(this._config) ?? 0;
|
|
@@ -294,6 +299,16 @@ class i extends q {
|
|
|
294
299
|
set innerRadiusSize(e) {
|
|
295
300
|
pe(e, this._config);
|
|
296
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* Inner radius of the pie chart.
|
|
304
|
+
* @since 5.2
|
|
305
|
+
*/
|
|
306
|
+
get innerRadius() {
|
|
307
|
+
return de(this._config) ?? 0;
|
|
308
|
+
}
|
|
309
|
+
set innerRadius(e) {
|
|
310
|
+
ue(e, this._config);
|
|
311
|
+
}
|
|
297
312
|
/**
|
|
298
313
|
* Threshold below which slices will be grouped.
|
|
299
314
|
*/
|
|
@@ -301,42 +316,42 @@ class i extends q {
|
|
|
301
316
|
return G(this._config) ?? 0;
|
|
302
317
|
}
|
|
303
318
|
set groupingThreshold(e) {
|
|
304
|
-
|
|
319
|
+
it(e, this._config);
|
|
305
320
|
}
|
|
306
321
|
/**
|
|
307
322
|
* Character limit for the slice labels.
|
|
308
323
|
*/
|
|
309
324
|
get labelCharacterLimit() {
|
|
310
|
-
return
|
|
325
|
+
return he(this._config) ?? null;
|
|
311
326
|
}
|
|
312
327
|
set labelCharacterLimit(e) {
|
|
313
|
-
|
|
328
|
+
fe(e, this._config);
|
|
314
329
|
}
|
|
315
330
|
/**
|
|
316
331
|
* Number of decimal places to display in the slice values.
|
|
317
332
|
*/
|
|
318
333
|
get decimalPlaces() {
|
|
319
|
-
return
|
|
334
|
+
return Be(this._config) ?? 1;
|
|
320
335
|
}
|
|
321
336
|
set decimalPlaces(e) {
|
|
322
|
-
|
|
337
|
+
Ee(e, this._config);
|
|
323
338
|
}
|
|
324
339
|
/**
|
|
325
340
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
326
341
|
*/
|
|
327
342
|
get displayType() {
|
|
328
|
-
return
|
|
343
|
+
return Fe(this._config);
|
|
329
344
|
}
|
|
330
345
|
set displayType(e) {
|
|
331
|
-
|
|
346
|
+
We(e, this._config);
|
|
332
347
|
}
|
|
333
348
|
// ---------------------------------------------------------------------------------------------
|
|
334
349
|
// #region Protected methods
|
|
335
350
|
// ---------------------------------------------------------------------------------------------
|
|
336
351
|
/** @private */
|
|
337
352
|
generateDefaultConfig() {
|
|
338
|
-
const e =
|
|
339
|
-
return e.series = [j(this.commonStrings,
|
|
353
|
+
const e = E(this.commonStrings);
|
|
354
|
+
return e.series = [j(this.commonStrings, R(this.layerInfo.layer).idField)], e;
|
|
340
355
|
}
|
|
341
356
|
// ---------------------------------------------------------------------------------------------
|
|
342
357
|
// #region Series Methods
|
|
@@ -347,7 +362,7 @@ class i extends q {
|
|
|
347
362
|
* @param sliceIndex - The index of the slice.
|
|
348
363
|
*/
|
|
349
364
|
getOriginalSliceName(e) {
|
|
350
|
-
return
|
|
365
|
+
return Ue(e, this._config);
|
|
351
366
|
}
|
|
352
367
|
/**
|
|
353
368
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -355,11 +370,11 @@ class i extends q {
|
|
|
355
370
|
* @param sliceIndex - The index of the slice.
|
|
356
371
|
*/
|
|
357
372
|
getSliceName(e) {
|
|
358
|
-
return
|
|
373
|
+
return Xe(e, this._config);
|
|
359
374
|
}
|
|
360
375
|
setSliceName(e, a) {
|
|
361
376
|
const o = this.getSliceId(a);
|
|
362
|
-
o !== void 0 && this._customizedSliceIds.push(o),
|
|
377
|
+
o !== void 0 && this._customizedSliceIds.push(o), Ye(e, a, this._config);
|
|
363
378
|
}
|
|
364
379
|
/**
|
|
365
380
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -367,17 +382,17 @@ class i extends q {
|
|
|
367
382
|
* @param sliceIndex - The index of the slice.
|
|
368
383
|
*/
|
|
369
384
|
getSliceColor(e) {
|
|
370
|
-
return
|
|
385
|
+
return Ze(e, this._config);
|
|
371
386
|
}
|
|
372
387
|
setSliceColor(e, a) {
|
|
373
388
|
const o = this.getSliceId(a);
|
|
374
|
-
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o),
|
|
389
|
+
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o), $e(e, a, this._config);
|
|
375
390
|
}
|
|
376
391
|
/**
|
|
377
392
|
* Order of the slice array by returning an array of slice ids
|
|
378
393
|
*/
|
|
379
394
|
get orderOfSlices() {
|
|
380
|
-
return
|
|
395
|
+
return et(this._config);
|
|
381
396
|
}
|
|
382
397
|
set orderOfSlices(e) {
|
|
383
398
|
e !== void 0 && F(e, this._config);
|
|
@@ -395,7 +410,7 @@ class i extends q {
|
|
|
395
410
|
* @param sliceIndex - The index of the slice.
|
|
396
411
|
*/
|
|
397
412
|
getSliceId(e) {
|
|
398
|
-
return
|
|
413
|
+
return at(e, this._config);
|
|
399
414
|
}
|
|
400
415
|
/**
|
|
401
416
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -403,16 +418,16 @@ class i extends q {
|
|
|
403
418
|
* @param sliceId - The id of the slice.
|
|
404
419
|
*/
|
|
405
420
|
getSliceIndex(e) {
|
|
406
|
-
return
|
|
421
|
+
return ot(e, this._config);
|
|
407
422
|
}
|
|
408
423
|
/**
|
|
409
424
|
* Gets the length of the slices array.
|
|
410
425
|
*/
|
|
411
426
|
getSlicesLength() {
|
|
412
|
-
return
|
|
427
|
+
return lt(this._config);
|
|
413
428
|
}
|
|
414
429
|
resetSlices() {
|
|
415
|
-
this._customizedSliceIds = [],
|
|
430
|
+
this._customizedSliceIds = [], rt(this._config);
|
|
416
431
|
}
|
|
417
432
|
/**
|
|
418
433
|
* Returns whether the series styling is able to be reset.
|
|
@@ -434,10 +449,10 @@ class i extends q {
|
|
|
434
449
|
* Visibility of the ticks.
|
|
435
450
|
*/
|
|
436
451
|
get ticksVisibility() {
|
|
437
|
-
return
|
|
452
|
+
return qe(this._config);
|
|
438
453
|
}
|
|
439
454
|
set ticksVisibility(e) {
|
|
440
|
-
|
|
455
|
+
He(e, this._config);
|
|
441
456
|
}
|
|
442
457
|
/**
|
|
443
458
|
* Start angle of the pie chart.
|
|
@@ -446,7 +461,7 @@ class i extends q {
|
|
|
446
461
|
return M(this._config);
|
|
447
462
|
}
|
|
448
463
|
set startAngle(e) {
|
|
449
|
-
|
|
464
|
+
ye(e, this._config);
|
|
450
465
|
}
|
|
451
466
|
/**
|
|
452
467
|
* End angle of the pie chart.
|
|
@@ -455,14 +470,14 @@ class i extends q {
|
|
|
455
470
|
return M(this._config);
|
|
456
471
|
}
|
|
457
472
|
set endAngle(e) {
|
|
458
|
-
|
|
473
|
+
me(e, this._config);
|
|
459
474
|
}
|
|
460
475
|
/**
|
|
461
476
|
* Whether to display the category on the data label.
|
|
462
477
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
463
478
|
*/
|
|
464
479
|
get displayCategoryOnDataLabel() {
|
|
465
|
-
return
|
|
480
|
+
return Se(this._config);
|
|
466
481
|
}
|
|
467
482
|
set displayCategoryOnDataLabel(e) {
|
|
468
483
|
this._config.series[0].displayCategoryOnDataLabel = e;
|
|
@@ -473,7 +488,7 @@ class i extends q {
|
|
|
473
488
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
474
489
|
*/
|
|
475
490
|
get displayCategoryValueOnTooltip() {
|
|
476
|
-
return
|
|
491
|
+
return _e(this._config);
|
|
477
492
|
}
|
|
478
493
|
set displayCategoryValueOnTooltip(e) {
|
|
479
494
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -483,7 +498,7 @@ class i extends q {
|
|
|
483
498
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
484
499
|
*/
|
|
485
500
|
get displayNumericValueOnDataLabel() {
|
|
486
|
-
return
|
|
501
|
+
return be(this._config);
|
|
487
502
|
}
|
|
488
503
|
set displayNumericValueOnDataLabel(e) {
|
|
489
504
|
this._config.series[0].displayNumericValueOnDataLabel = e;
|
|
@@ -494,7 +509,7 @@ class i extends q {
|
|
|
494
509
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
495
510
|
*/
|
|
496
511
|
get displayPercentageOnDataLabel() {
|
|
497
|
-
return
|
|
512
|
+
return Le(this._config);
|
|
498
513
|
}
|
|
499
514
|
set displayPercentageOnDataLabel(e) {
|
|
500
515
|
this._config.series[0].displayPercentageOnDataLabel = e;
|
|
@@ -505,7 +520,7 @@ class i extends q {
|
|
|
505
520
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
506
521
|
*/
|
|
507
522
|
get displayNumericValueOnTooltip() {
|
|
508
|
-
return
|
|
523
|
+
return Oe(this._config);
|
|
509
524
|
}
|
|
510
525
|
set displayNumericValueOnTooltip(e) {
|
|
511
526
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -516,82 +531,82 @@ class i extends q {
|
|
|
516
531
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
517
532
|
*/
|
|
518
533
|
get displayPercentageOnTooltip() {
|
|
519
|
-
return
|
|
534
|
+
return De(this._config);
|
|
520
535
|
}
|
|
521
536
|
set displayPercentageOnTooltip(e) {
|
|
522
|
-
|
|
537
|
+
Ce(e, this._config);
|
|
523
538
|
}
|
|
524
539
|
/**
|
|
525
540
|
* Prefix of the values of the slices.
|
|
526
541
|
*/
|
|
527
542
|
get valuePrefix() {
|
|
528
|
-
return
|
|
543
|
+
return ve(this._config);
|
|
529
544
|
}
|
|
530
545
|
set valuePrefix(e) {
|
|
531
|
-
|
|
546
|
+
Pe(e, this._config);
|
|
532
547
|
}
|
|
533
548
|
/**
|
|
534
549
|
* Suffix of the values of the slice.
|
|
535
550
|
*/
|
|
536
551
|
get valueSuffix() {
|
|
537
|
-
return
|
|
552
|
+
return Ie(this._config);
|
|
538
553
|
}
|
|
539
554
|
set valueSuffix(e) {
|
|
540
|
-
|
|
555
|
+
Te(e, this._config);
|
|
541
556
|
}
|
|
542
557
|
/**
|
|
543
558
|
* Prefix of the percentages of the slices.
|
|
544
559
|
*/
|
|
545
560
|
get percentagePrefix() {
|
|
546
|
-
return
|
|
561
|
+
return Ve(this._config);
|
|
547
562
|
}
|
|
548
563
|
set percentagePrefix(e) {
|
|
549
|
-
|
|
564
|
+
xe(e, this._config);
|
|
550
565
|
}
|
|
551
566
|
/**
|
|
552
567
|
* Suffix of the percentages of the slices.
|
|
553
568
|
*/
|
|
554
569
|
get percentageSuffix() {
|
|
555
|
-
return
|
|
570
|
+
return Ne(this._config);
|
|
556
571
|
}
|
|
557
572
|
set percentageSuffix(e) {
|
|
558
|
-
|
|
573
|
+
Me(e, this._config);
|
|
559
574
|
}
|
|
560
575
|
/**
|
|
561
576
|
* Offset for the data labels.
|
|
562
577
|
*/
|
|
563
578
|
get dataLabelsOffset() {
|
|
564
|
-
return
|
|
579
|
+
return we(this._config);
|
|
565
580
|
}
|
|
566
581
|
set dataLabelsOffset(e) {
|
|
567
|
-
|
|
582
|
+
Re(e, this._config);
|
|
568
583
|
}
|
|
569
584
|
/**
|
|
570
585
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
571
586
|
*/
|
|
572
587
|
get alignDataLabels() {
|
|
573
|
-
return
|
|
588
|
+
return ke(this._config);
|
|
574
589
|
}
|
|
575
590
|
set alignDataLabels(e) {
|
|
576
|
-
|
|
591
|
+
Ae(e, this._config);
|
|
577
592
|
}
|
|
578
593
|
/**
|
|
579
594
|
* Setting for placing the data labels inside of the slices.
|
|
580
595
|
*/
|
|
581
596
|
get dataLabelsInside() {
|
|
582
|
-
return
|
|
597
|
+
return Ge(this._config);
|
|
583
598
|
}
|
|
584
599
|
set dataLabelsInside(e) {
|
|
585
|
-
|
|
600
|
+
ze(e, this._config);
|
|
586
601
|
}
|
|
587
602
|
/**
|
|
588
603
|
* Optimize data labels overlapping setting for the pie chart.
|
|
589
604
|
*/
|
|
590
605
|
get optimizeDataLabelsOverlapping() {
|
|
591
|
-
return
|
|
606
|
+
return je(this._config);
|
|
592
607
|
}
|
|
593
608
|
set optimizeDataLabelsOverlapping(e) {
|
|
594
|
-
|
|
609
|
+
Ke(e, this._config);
|
|
595
610
|
}
|
|
596
611
|
// ---------------------------------------------------------------------------------------------
|
|
597
612
|
// #region Legend Props
|
|
@@ -736,6 +751,9 @@ r([
|
|
|
736
751
|
r([
|
|
737
752
|
s
|
|
738
753
|
], i.prototype, "innerRadiusSize");
|
|
754
|
+
r([
|
|
755
|
+
s
|
|
756
|
+
], i.prototype, "innerRadius");
|
|
739
757
|
r([
|
|
740
758
|
s
|
|
741
759
|
], i.prototype, "groupingThreshold");
|
|
@@ -841,14 +859,14 @@ r([
|
|
|
841
859
|
r([
|
|
842
860
|
s
|
|
843
861
|
], i.prototype, "displayCategory");
|
|
844
|
-
const
|
|
862
|
+
const gt = [
|
|
845
863
|
H,
|
|
846
864
|
J,
|
|
847
865
|
Q,
|
|
848
866
|
U,
|
|
849
867
|
X
|
|
850
868
|
];
|
|
851
|
-
$(i,
|
|
869
|
+
$(i, gt);
|
|
852
870
|
export {
|
|
853
871
|
i as PieChartModel
|
|
854
872
|
};
|
package/dist/chunks/resource.js
CHANGED
|
@@ -6,7 +6,7 @@ import { g as z } from "./series-length.js";
|
|
|
6
6
|
import { g as b } from "./utils2.js";
|
|
7
7
|
import { aB as m, B as w, az as k } from "./index3.js";
|
|
8
8
|
import { b as y } from "./index2.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bH as E } from "./index.js";
|
|
10
10
|
import { i as T } from "./index4.js";
|
|
11
11
|
import { C as V } from "./chart-model.js";
|
|
12
12
|
import { M as B, a as G, W as U, b as j } from "./data-labels-visibility.js";
|