@arcgis/charts-components 6.0.0-next.3 → 6.0.0-next.31
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/2FSC4TII.js +2 -0
- package/dist/cdn/2P3VH3BF.js +2 -0
- package/dist/cdn/3YLQHPDB.js +2 -0
- package/dist/cdn/424VG732.js +2 -0
- package/dist/cdn/47MLKUMN.js +2 -0
- package/dist/cdn/4B7KYFKX.js +2 -0
- package/dist/cdn/4E7XIO26.js +2 -0
- package/dist/cdn/4FZEHAQ3.js +2 -0
- package/dist/cdn/4L3DNWI7.js +2 -0
- package/dist/cdn/4O5PXQHF.js +4 -0
- package/dist/cdn/4UGEZMMX.js +2 -0
- package/dist/cdn/{H5VCT3XP.js → 5EAIW2ZK.js} +1 -1
- package/dist/cdn/5PW4T4LC.js +2 -0
- package/dist/cdn/{33LWKOPD.js → 6GBCPR5J.js} +1 -1
- package/dist/cdn/{563H5HEV.js → 6SLVQTPT.js} +1 -1
- package/dist/cdn/{VSKK65CP.js → 6SVLCTQS.js} +1 -1
- package/dist/cdn/6WXE7PI7.js +2 -0
- package/dist/cdn/7HBNUKHF.js +2 -0
- package/dist/cdn/7KGHI7WT.js +2 -0
- package/dist/cdn/7KIHMJWQ.js +2 -0
- package/dist/cdn/7L6DK5OS.js +2 -0
- package/dist/cdn/7RPS2ZKZ.js +2 -0
- package/dist/cdn/7TSIJZWC.js +2 -0
- package/dist/cdn/ADENRYX7.js +2 -0
- package/dist/cdn/BAC6JT5W.js +2 -0
- package/dist/cdn/{CLCHZMZ5.js → BDR6ELDH.js} +1 -1
- package/dist/cdn/BIFGQ23U.js +2 -0
- package/dist/cdn/BWNBESN5.js +2 -0
- package/dist/cdn/CUOXXQBF.js +2 -0
- package/dist/cdn/{6RGTAMGU.js → CUQWT4QG.js} +1 -1
- package/dist/cdn/CVYI4FDJ.js +2 -0
- package/dist/cdn/CY3KIENE.js +2 -0
- package/dist/cdn/{FKES55PK.js → DH2G4KHH.js} +1 -1
- package/dist/cdn/DK5CFPVG.js +2 -0
- package/dist/cdn/DYGFR6KY.js +2 -0
- package/dist/cdn/E5F3CSMH.js +2 -0
- package/dist/cdn/EEZEPHWK.js +2 -0
- package/dist/cdn/{PQ3XCNCP.js → EGEYRUPY.js} +1 -1
- package/dist/cdn/FFU63U6V.js +2 -0
- package/dist/cdn/FWGGOXK6.js +2 -0
- package/dist/cdn/GIJFJBQ5.js +2 -0
- package/dist/cdn/GTXF2Q7A.js +2 -0
- package/dist/cdn/{KK445MLC.js → GU6VG5TK.js} +1 -1
- package/dist/cdn/H4EBGCSZ.js +2 -0
- package/dist/cdn/HECZ3OT6.js +4 -0
- package/dist/cdn/HEL54XVB.js +2 -0
- package/dist/cdn/HR5JU7P5.js +2 -0
- package/dist/cdn/ICEANLLZ.js +2 -0
- package/dist/cdn/IRSIUA3Z.js +2 -0
- package/dist/cdn/J77BQI65.js +2 -0
- package/dist/cdn/JFZ5WV6G.js +2 -0
- package/dist/cdn/{V5Z75IQI.js → JON7QEXZ.js} +2 -2
- package/dist/cdn/JTXDHQSH.js +2 -0
- package/dist/cdn/KNJKA4IL.js +2 -0
- package/dist/cdn/{OYUTQX4U.js → KW3N46DO.js} +1 -1
- package/dist/cdn/L2G4TISY.js +2 -0
- package/dist/cdn/LEWMDRPW.js +2 -0
- package/dist/cdn/LHYWDDAS.js +2 -0
- package/dist/cdn/LSO2XNPH.js +4 -0
- package/dist/cdn/M4DADMOO.js +2 -0
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/MIONK5O5.js +2 -0
- package/dist/cdn/MVPGEBWQ.js +2 -0
- package/dist/cdn/N45L56WG.js +2 -0
- package/dist/cdn/NEVDA2IQ.js +2 -0
- package/dist/cdn/{LPLMRI3E.js → OJFYB73J.js} +1 -1
- package/dist/cdn/{2WQNU554.js → OLXXAT2G.js} +1 -1
- package/dist/cdn/OXASIEVD.js +2 -0
- package/dist/cdn/PB4WIYWN.js +2 -0
- package/dist/cdn/{FM6F6ZYW.js → PSKIJ3SM.js} +1 -1
- package/dist/cdn/PV7DIUGW.js +2 -0
- package/dist/cdn/PY7P35QO.js +2 -0
- package/dist/cdn/{FNXREQOE.js → Q3P2IG23.js} +1 -1
- package/dist/cdn/QCSV57EQ.js +2 -0
- package/dist/cdn/QGRQW5WK.js +2 -0
- package/dist/cdn/{S2BGEXZV.js → R6XBFNY4.js} +1 -1
- package/dist/cdn/RGPG43GI.js +2 -0
- package/dist/cdn/S4SOKS52.js +2 -0
- package/dist/cdn/SAK4CBE7.js +2 -0
- package/dist/cdn/SD2WCRDV.js +2 -0
- package/dist/cdn/SMNUEDMN.js +2 -0
- package/dist/cdn/T35WVFIU.js +2 -0
- package/dist/cdn/TFJ4OWRJ.js +2 -0
- package/dist/cdn/TLC7ZXQM.js +2 -0
- package/dist/cdn/TQHFCEOB.js +2 -0
- package/dist/cdn/USYS3LBV.js +2 -0
- package/dist/cdn/VAUOYVAJ.js +2 -0
- package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
- package/dist/cdn/VOY3C6F2.js +2 -0
- package/dist/cdn/WE4SAQIV.js +2 -0
- package/dist/cdn/WFMIM4RW.js +2 -0
- package/dist/cdn/WPAN7ZED.js +2 -0
- package/dist/cdn/XB6GQZZL.js +2 -0
- package/dist/cdn/{HMZRDWG2.js → XERWQ4IR.js} +27 -27
- package/dist/cdn/XFXZYSPI.js +2 -0
- package/dist/cdn/{CUMXC4O4.js → XI6OEXXA.js} +1 -1
- package/dist/cdn/XR46HOI2.js +2 -0
- package/dist/cdn/Y672RHLI.js +2 -0
- package/dist/cdn/{OZSHGMU6.js → Y6URECIF.js} +1 -1
- package/dist/cdn/YK5YAUHK.js +2 -0
- package/dist/cdn/YKSQH65V.js +2 -0
- package/dist/cdn/{QQFMQAJ3.js → ZHMYNWSY.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 +7 -0
- package/dist/chunks/action-bar-utils.js +18 -20
- package/dist/chunks/axis-lines-symbol.js +6 -6
- package/dist/chunks/bar-chart-model.js +6 -8
- package/dist/chunks/box-plot-data.js +164 -163
- package/dist/chunks/box-plot-model.js +40 -38
- package/dist/chunks/chart-model.js +37 -39
- package/dist/chunks/chart-ui-utils.js +45 -47
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +11 -11
- package/dist/chunks/combo-bar-line-chart-model.js +15 -16
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +1 -1
- package/dist/chunks/data.js +49 -51
- package/dist/chunks/gauge-model.js +64 -64
- package/dist/chunks/generate-x-axis-title.js +17 -17
- package/dist/chunks/heat-chart-model.js +13 -14
- package/dist/chunks/histogram-data.js +41 -42
- package/dist/chunks/histogram-model.js +2 -2
- package/dist/chunks/index.js +5432 -4273
- package/dist/chunks/index2.js +1165 -871
- package/dist/chunks/index3.js +11040 -1173
- package/dist/chunks/index4.js +65 -11086
- package/dist/chunks/line-chart-model.js +17 -18
- package/dist/chunks/model-setter.js +6 -6
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +25 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +25 -27
- package/dist/chunks/pie-chart-model.js +168 -167
- package/dist/chunks/radar-chart-model.js +6 -7
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +2 -2
- package/dist/chunks/scatterplot-model.js +74 -75
- package/dist/chunks/serial-chart-data.js +513 -513
- package/dist/chunks/serial-chart-model.js +61 -58
- package/dist/chunks/series-length.js +4 -4
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +109 -55
- package/dist/chunks/utils.js +146 -212
- package/dist/chunks/web-component-utils.js +55 -56
- package/dist/chunks/x-bounds.js +20 -21
- package/dist/components/arcgis-chart/customElement.d.ts +76 -22
- package/dist/components/arcgis-chart/customElement.js +8202 -7978
- package/dist/components/arcgis-charts-action-bar/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +63 -58
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +51 -45
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +115 -113
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +52 -46
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +189 -184
- package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +37 -38
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- 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 +13 -14
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-invalid-input-message/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 +21 -22
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -8
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +40 -35
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +38 -34
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +20 -21
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +322 -322
- package/dist/loader.js +3 -3
- package/dist/model/box-plot-model/box-plot-model.d.ts +6 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +53 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +6 -2
- package/dist/spec/rest-js-types.d.ts +1 -5
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/dist/utils/chart-config/converter/index.js +91 -93
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/dist/utils/components/interfaces.d.ts +7 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/misc/index.d.ts +4 -4
- package/package.json +7 -7
- package/dist/cdn/23NH4HLE.js +0 -2
- package/dist/cdn/2DRKIHTI.js +0 -2
- package/dist/cdn/2E3WHSEW.js +0 -2
- package/dist/cdn/2RG5JCBW.js +0 -3
- package/dist/cdn/2X2QOEKX.js +0 -2
- package/dist/cdn/37WXQO5B.js +0 -2
- package/dist/cdn/3INTJJ4X.js +0 -2
- package/dist/cdn/3RJNZA24.js +0 -2
- package/dist/cdn/4CU5D5WQ.js +0 -2
- package/dist/cdn/4WQUPC2P.js +0 -2
- package/dist/cdn/5DAVFUDX.js +0 -2
- package/dist/cdn/5VCTFSTZ.js +0 -2
- package/dist/cdn/5XGX5QH2.js +0 -2
- package/dist/cdn/6XH6ZRHO.js +0 -2
- package/dist/cdn/732AMNPK.js +0 -2
- package/dist/cdn/7WD2VKG4.js +0 -2
- package/dist/cdn/7YN565O4.js +0 -2
- package/dist/cdn/A2BFOCSN.js +0 -2
- package/dist/cdn/A5TI5TEO.js +0 -2
- package/dist/cdn/AHB4IS7P.js +0 -2
- package/dist/cdn/B6ADEFC7.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/BDIRQUQE.js +0 -2
- package/dist/cdn/BWZA3447.js +0 -2
- package/dist/cdn/BZTSUXUT.js +0 -2
- package/dist/cdn/CFACTMRG.js +0 -2
- package/dist/cdn/D2LNPCIA.js +0 -2
- package/dist/cdn/D6WQTOUC.js +0 -2
- package/dist/cdn/DTSX7SEI.js +0 -2
- package/dist/cdn/EPFEFHM2.js +0 -2
- package/dist/cdn/EW2P4QSN.js +0 -2
- package/dist/cdn/GDJDA5MG.js +0 -2
- package/dist/cdn/GE7CLC6K.js +0 -4
- package/dist/cdn/GEPIPU4G.js +0 -2
- package/dist/cdn/GSCC3FON.js +0 -2
- package/dist/cdn/GXYGXB4U.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/ISSUAEJS.js +0 -2
- package/dist/cdn/KJNBURYA.js +0 -2
- package/dist/cdn/L3AKSDIB.js +0 -2
- package/dist/cdn/L5MTHGFZ.js +0 -2
- package/dist/cdn/LHLPK6TU.js +0 -2
- package/dist/cdn/LXFY54NF.js +0 -2
- package/dist/cdn/MJUCIYQN.js +0 -2
- package/dist/cdn/NGBBNBA7.js +0 -2
- package/dist/cdn/NIZC75X3.js +0 -2
- package/dist/cdn/OBKDR3MU.js +0 -2
- package/dist/cdn/OQKL344Q.js +0 -2
- package/dist/cdn/OZSOICXE.js +0 -2
- package/dist/cdn/PBQRZBQM.js +0 -2
- package/dist/cdn/PT66VVXN.js +0 -2
- package/dist/cdn/QOENPUSD.js +0 -2
- package/dist/cdn/QPVBVDRP.js +0 -2
- package/dist/cdn/RGMPFNUN.js +0 -2
- package/dist/cdn/RGSJ3JFI.js +0 -2
- package/dist/cdn/RVHNFMTN.js +0 -2
- package/dist/cdn/RVQPEB4W.js +0 -2
- package/dist/cdn/RXTO6RE2.js +0 -2
- package/dist/cdn/SCEFJRON.js +0 -2
- package/dist/cdn/SEILP6QP.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SSEWUPML.js +0 -2
- package/dist/cdn/TCE6PLHN.js +0 -2
- package/dist/cdn/TOCU6UKM.js +0 -2
- package/dist/cdn/TSASF4ZC.js +0 -2
- package/dist/cdn/UDAJILEU.js +0 -2
- package/dist/cdn/UZOYADSB.js +0 -2
- package/dist/cdn/W2PTHYOT.js +0 -2
- package/dist/cdn/W53DMMGZ.js +0 -2
- package/dist/cdn/WAQJ7V62.js +0 -2
- package/dist/cdn/WEPXOYBS.js +0 -2
- package/dist/cdn/WLPUBXN7.js +0 -2
- package/dist/cdn/XPCXTKEY.js +0 -2
- package/dist/cdn/Y2S7EWZR.js +0 -2
- package/dist/cdn/YF6ML4P6.js +0 -4
- package/dist/cdn/YGLBPPXP.js +0 -2
- package/dist/cdn/YWUNLBCQ.js +0 -2
- package/dist/cdn/YYTAWATK.js +0 -2
- package/dist/cdn/ZDQWMMOA.js +0 -2
- package/dist/cdn/ZFHMGE36.js +0 -2
- package/dist/cdn/ZGNJFT7B.js +0 -2
- package/dist/cdn/ZMVIOIBB.js +0 -2
- package/dist/cdn/ZTHSDPEH.js +0 -2
- package/dist/chunks/index5.js +0 -69
- package/dist/chunks/type-guards2.js +0 -113
- package/dist/chunks/utils2.js +0 -63
- /package/dist/cdn/{XFEWDUTX.js → 2PUVZIJ6.js} +0 -0
- /package/dist/cdn/{UHSL7Y3B.js → 33NEGHM6.js} +0 -0
- /package/dist/cdn/{6FW2SXLC.js → 55OFHBXV.js} +0 -0
- /package/dist/cdn/{SMHUUBEU.js → 5OSVKP4N.js} +0 -0
- /package/dist/cdn/{VITUV4HV.js → 5QLZ66AU.js} +0 -0
- /package/dist/cdn/{UQRD2CTK.js → 5SOADBYD.js} +0 -0
- /package/dist/cdn/{55DRYT5X.js → 5ZZZKI7V.js} +0 -0
- /package/dist/cdn/{5ANJA54O.js → 6IIBIZJH.js} +0 -0
- /package/dist/cdn/{QLBO3URO.js → 6QY2OFUO.js} +0 -0
- /package/dist/cdn/{UITA7CSN.js → 7AWJIBMG.js} +0 -0
- /package/dist/cdn/{OTV3YYDU.js → 7JMZPDM5.js} +0 -0
- /package/dist/cdn/{373UZR4I.js → 7N2LSD5J.js} +0 -0
- /package/dist/cdn/{SCS4MWFN.js → A6DV5ILW.js} +0 -0
- /package/dist/cdn/{VT3NOR5A.js → BGHJMVNV.js} +0 -0
- /package/dist/cdn/{L4KDCWA7.js → BGVIOGAX.js} +0 -0
- /package/dist/cdn/{Z2IHEWWP.js → CYZPIC2B.js} +0 -0
- /package/dist/cdn/{AVRIN2FL.js → CZKZMSFJ.js} +0 -0
- /package/dist/cdn/{WMGJN3JL.js → D66GTKJ7.js} +0 -0
- /package/dist/cdn/{XR7RCGIT.js → DJGQM3EK.js} +0 -0
- /package/dist/cdn/{PQESGESY.js → FOHR4IFG.js} +0 -0
- /package/dist/cdn/{3DDSV3IF.js → GOVIUHKT.js} +0 -0
- /package/dist/cdn/{KE7XE22Z.js → H44RQIWN.js} +0 -0
- /package/dist/cdn/{W7VPVF72.js → HJUHYEJT.js} +0 -0
- /package/dist/cdn/{57RWTLRG.js → HL6ANDJH.js} +0 -0
- /package/dist/cdn/{HUU3QFFC.js → IDVYAUPY.js} +0 -0
- /package/dist/cdn/{XIE5EUIH.js → IQSNWDU6.js} +0 -0
- /package/dist/cdn/{K43DVQFC.js → JE32QM44.js} +0 -0
- /package/dist/cdn/{52PHJCYM.js → JETTF7E2.js} +0 -0
- /package/dist/cdn/{L26HYK34.js → JSOFN65T.js} +0 -0
- /package/dist/cdn/{LE3B3ATZ.js → KMZIRJIR.js} +0 -0
- /package/dist/cdn/{XUSFQDK4.js → KQ36C2RK.js} +0 -0
- /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
- /package/dist/cdn/{4MSDOPVE.js → M4AD4UJU.js} +0 -0
- /package/dist/cdn/{2BPLDZAJ.js → NUH2GAPZ.js} +0 -0
- /package/dist/cdn/{Q4H5YVTW.js → OWEVDN6C.js} +0 -0
- /package/dist/cdn/{GCUOASRZ.js → QCFAV626.js} +0 -0
- /package/dist/cdn/{R4PFJLD2.js → QMBHZ5JE.js} +0 -0
- /package/dist/cdn/{J5VMBGYI.js → SWHSL245.js} +0 -0
- /package/dist/cdn/{C7VQM4TH.js → T7LKXFIZ.js} +0 -0
- /package/dist/cdn/{KCP6AJV7.js → XQTLPFTW.js} +0 -0
- /package/dist/cdn/{27C6PCQ2.js → XXO5K6N4.js} +0 -0
- /package/dist/cdn/{3VZK52LO.js → Z5DYKSTK.js} +0 -0
|
@@ -1,121 +1,119 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { log as
|
|
2
|
+
import { log as R } from "@arcgis/toolkit/log";
|
|
3
3
|
import { a as g } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import { a7 as p, ay as
|
|
7
|
-
import {
|
|
8
|
-
import { C as J } from "./chart-model.js";
|
|
4
|
+
import { r as S, eO as B, y as h, cB as E, u as j, eM as K } from "./index.js";
|
|
5
|
+
import { i as q } from "./index3.js";
|
|
6
|
+
import { a7 as p, ay as k, k as b, p as A, ax as H, af as J } from "./index2.js";
|
|
7
|
+
import { C as Q } from "./chart-model.js";
|
|
9
8
|
import { m as s } from "./model-setter.js";
|
|
10
|
-
import { b as l, P as
|
|
11
|
-
import { M as
|
|
12
|
-
import { W as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { cloneDeep as ne } from "es-toolkit/compat";
|
|
9
|
+
import { b as l, P as f } from "./common.js";
|
|
10
|
+
import { M as U, a as X, W as Y, b as Z } from "./data-labels-visibility.js";
|
|
11
|
+
import { W as $ } from "./data-labels-symbol.js";
|
|
12
|
+
import { i as y, a as m, g as u, s as ee, c as te, b as ie, d as se, e as L, f as O, h as D, j as C, k as re } from "./pie-chart-data.js";
|
|
13
|
+
import { cloneDeep as ae } from "es-toolkit/compat";
|
|
16
14
|
import { b as _ } from "./rest-js-object-literals.js";
|
|
17
|
-
const
|
|
15
|
+
const v = (t) => t.legend?.displayNumericValue ?? !1, P = (t, e) => {
|
|
18
16
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayNumericValue = t);
|
|
19
|
-
},
|
|
17
|
+
}, I = (t) => t.legend?.displayCategory ?? !1, T = (t, e) => {
|
|
20
18
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayCategory = t);
|
|
21
|
-
},
|
|
19
|
+
}, V = (t) => t.legend?.displayPercentage ?? !1, x = (t, e) => {
|
|
22
20
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayPercentage = t);
|
|
23
|
-
},
|
|
21
|
+
}, N = (t) => t.legend?.labelMaxWidth ?? 200, M = (t, e) => {
|
|
24
22
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.labelMaxWidth = t);
|
|
25
|
-
},
|
|
23
|
+
}, oe = (t) => t.legend?.valueLabelMaxWidth ?? 200, ne = (t, e) => {
|
|
26
24
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.valueLabelMaxWidth = t);
|
|
27
|
-
},
|
|
25
|
+
}, le = (t) => t.series?.[0]?.innerRadius, ce = (t, e) => {
|
|
28
26
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
29
|
-
},
|
|
27
|
+
}, ge = (t) => t.series?.[0]?.innerRadius, pe = (t, e) => {
|
|
30
28
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
31
|
-
},
|
|
29
|
+
}, de = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ue = (t, e) => {
|
|
32
30
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
33
|
-
},
|
|
31
|
+
}, F = (t) => t.series[0]?.startAngle, he = (t, e) => {
|
|
34
32
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
35
|
-
},
|
|
33
|
+
}, fe = (t, e) => {
|
|
36
34
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
37
|
-
},
|
|
35
|
+
}, ye = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, me = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, _e = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Se = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, be = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Oe = (t, e) => {
|
|
38
36
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
39
|
-
},
|
|
37
|
+
}, De = (t) => t.series?.[0]?.valuePrefix, Ce = (t, e) => {
|
|
40
38
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
41
|
-
},
|
|
39
|
+
}, ve = (t) => t.series?.[0]?.valueSuffix, Pe = (t, e) => {
|
|
42
40
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
43
|
-
},
|
|
41
|
+
}, Ie = (t) => t.series?.[0]?.percentagePrefix, Te = (t, e) => {
|
|
44
42
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
45
|
-
},
|
|
43
|
+
}, Ve = (t) => t.series?.[0]?.percentageSuffix, xe = (t, e) => {
|
|
46
44
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
47
|
-
},
|
|
45
|
+
}, Ne = (t) => {
|
|
48
46
|
let e;
|
|
49
47
|
const a = t.series?.[0];
|
|
50
48
|
return a?.displayNumericValueOnDataLabel === !0 && a?.displayPercentageOnDataLabel === !0 ? e = l.Both : a?.displayNumericValueOnDataLabel === !0 ? e = l.Value : e = l.Percentage, e;
|
|
51
|
-
},
|
|
49
|
+
}, Me = (t, e) => {
|
|
52
50
|
const a = t === l.Value || t === l.Both, o = t === l.Percentage || t === l.Both;
|
|
53
51
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = a, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
54
52
|
...e.legend,
|
|
55
53
|
displayNumericValue: a,
|
|
56
54
|
displayPercentage: o
|
|
57
55
|
});
|
|
58
|
-
},
|
|
56
|
+
}, Fe = (t) => t.series?.[0]?.alignDataLabels ?? !1, We = (t, e) => {
|
|
59
57
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
60
|
-
},
|
|
58
|
+
}, ke = (t) => t.series?.[0]?.dataLabelsInside ?? !1, Ae = (t, e) => {
|
|
61
59
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
62
|
-
},
|
|
60
|
+
}, Ge = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, ze = (t, e) => {
|
|
63
61
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
64
|
-
},
|
|
65
|
-
e.series?.[0] && (e.series[0].numericValueFormat ??=
|
|
66
|
-
},
|
|
62
|
+
}, we = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Re = (t, e) => {
|
|
63
|
+
e.series?.[0] && (e.series[0].numericValueFormat ??= b(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= b(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
64
|
+
}, Be = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ee = (t, e) => {
|
|
67
65
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
68
|
-
},
|
|
69
|
-
e.series?.[0] && (e.series[0].ticks ??=
|
|
70
|
-
},
|
|
71
|
-
t && e.series?.[0] && (e.series[0].ticks ??=
|
|
72
|
-
},
|
|
66
|
+
}, je = (t) => t.series[0]?.ticks?.visible ?? !1, Ke = (t, e) => {
|
|
67
|
+
e.series?.[0] && (e.series[0].ticks ??= k(), e.series[0].ticks.visible = t);
|
|
68
|
+
}, qe = (t) => t.series[0]?.ticks?.lineSymbol, He = (t, e) => {
|
|
69
|
+
t && e.series?.[0] && (e.series[0].ticks ??= k(), e.series[0].ticks.lineSymbol = ae(t));
|
|
70
|
+
}, Je = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.label, Ue = (t, e, a) => {
|
|
73
71
|
a.series?.[0]?.slices?.[e] && (a.series[0].slices[e].label = t);
|
|
74
|
-
},
|
|
72
|
+
}, Xe = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ye = (t, e, a) => {
|
|
75
73
|
const o = a.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
76
74
|
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 = {
|
|
77
75
|
type: _.SFS,
|
|
78
76
|
color: t,
|
|
79
77
|
outline: { type: _.SLS, color: t }
|
|
80
78
|
});
|
|
81
|
-
},
|
|
79
|
+
}, Ze = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), W = (t, e) => {
|
|
82
80
|
e.series?.[0]?.slices?.sort(
|
|
83
81
|
(a, o) => t.findIndex((n) => a.sliceId === n) - t.findIndex((n) => o.sliceId === n)
|
|
84
82
|
);
|
|
85
|
-
},
|
|
83
|
+
}, $e = (t) => t.series?.[0]?.sliceGrouping, G = (t, e) => {
|
|
86
84
|
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
87
|
-
},
|
|
85
|
+
}, z = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, et = (t, e) => {
|
|
88
86
|
e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
|
|
89
|
-
sliceId:
|
|
87
|
+
sliceId: A.defaultGroupOfSlicesId,
|
|
90
88
|
percentageThreshold: t
|
|
91
89
|
};
|
|
92
|
-
},
|
|
90
|
+
}, tt = (t) => t.series?.[0]?.slices, w = (t, e) => {
|
|
93
91
|
e.series?.[0] && (e.series[0].slices = t);
|
|
94
|
-
},
|
|
95
|
-
|
|
92
|
+
}, it = (t) => {
|
|
93
|
+
w(void 0, t), G(
|
|
96
94
|
{
|
|
97
|
-
sliceId:
|
|
98
|
-
percentageThreshold:
|
|
95
|
+
sliceId: A.defaultGroupOfSlicesId,
|
|
96
|
+
percentageThreshold: z(t) ?? 0
|
|
99
97
|
},
|
|
100
98
|
t
|
|
101
99
|
);
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
for (var n =
|
|
100
|
+
}, st = (t, e) => e.series[0]?.slices?.[t]?.sliceId, rt = (t, e) => e.series[0]?.slices?.findIndex((a) => a.sliceId === t), at = (t) => t.series[0]?.slices?.length ?? 0;
|
|
101
|
+
var ot = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
|
|
102
|
+
for (var n = nt(e, a), c = t.length - 1, d; c >= 0; c--)
|
|
105
103
|
(d = t[c]) && (n = d(e, a, n) || n);
|
|
106
|
-
return n &&
|
|
104
|
+
return n && ot(e, a, n), n;
|
|
107
105
|
};
|
|
108
|
-
class i extends
|
|
106
|
+
class i extends Q {
|
|
109
107
|
constructor() {
|
|
110
|
-
super(...arguments), this._chartType = g.PieSeries, this._mode =
|
|
108
|
+
super(...arguments), this._chartType = g.PieSeries, this._mode = f.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
|
|
111
109
|
}
|
|
112
110
|
async setup(e) {
|
|
113
111
|
await this.loadConfigFromLayer(e);
|
|
114
112
|
const { config: a } = e;
|
|
115
113
|
if (a !== void 0) {
|
|
116
|
-
const n =
|
|
114
|
+
const n = S(a.series) !== h.PieFromFields ? f.Category : f.Fields;
|
|
117
115
|
this._mode = y({
|
|
118
|
-
category:
|
|
116
|
+
category: u(this._config),
|
|
119
117
|
numericFields: m(this._config),
|
|
120
118
|
fallbackMode: n
|
|
121
119
|
});
|
|
@@ -129,14 +127,14 @@ class i extends J {
|
|
|
129
127
|
* Category field for the pie chart.
|
|
130
128
|
*/
|
|
131
129
|
get category() {
|
|
132
|
-
return
|
|
130
|
+
return u(this._config);
|
|
133
131
|
}
|
|
134
132
|
set category(e) {
|
|
135
|
-
(!
|
|
133
|
+
(!q(this._config) || e.trim() !== "") && (this._mode = y({
|
|
136
134
|
category: e,
|
|
137
135
|
numericFields: m(this._config),
|
|
138
136
|
fallbackMode: this._mode
|
|
139
|
-
}),
|
|
137
|
+
}), ee({
|
|
140
138
|
newCategory: e,
|
|
141
139
|
config: this._config,
|
|
142
140
|
layerInfo: this.layerInfo,
|
|
@@ -151,11 +149,11 @@ class i extends J {
|
|
|
151
149
|
return m(this._config);
|
|
152
150
|
}
|
|
153
151
|
set numericFields(e) {
|
|
154
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ?
|
|
155
|
-
category:
|
|
152
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? B(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
153
|
+
category: u(this._config),
|
|
156
154
|
numericFields: e,
|
|
157
155
|
fallbackMode: this._mode
|
|
158
|
-
}),
|
|
156
|
+
}), te({
|
|
159
157
|
newNumericFields: e,
|
|
160
158
|
config: this._config,
|
|
161
159
|
layerInfo: this.layerInfo,
|
|
@@ -163,16 +161,16 @@ class i extends J {
|
|
|
163
161
|
mode: this._mode
|
|
164
162
|
}), this._config.series[0].slices = this._config.series[0].slices?.filter(
|
|
165
163
|
(o) => o.fillSymbol?.color !== void 0 && this._customizedSliceIds.includes(o.sliceId ?? "")
|
|
166
|
-
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) :
|
|
164
|
+
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : R("error", "pie-chart-model", "Invalid `numericFields`");
|
|
167
165
|
}
|
|
168
166
|
/**
|
|
169
167
|
* Aggregation type for the pie chart.
|
|
170
168
|
*/
|
|
171
169
|
get aggregationType() {
|
|
172
|
-
return
|
|
170
|
+
return ie(this._config, this._mode);
|
|
173
171
|
}
|
|
174
172
|
set aggregationType(e) {
|
|
175
|
-
|
|
173
|
+
se({
|
|
176
174
|
newAggregationType: e,
|
|
177
175
|
config: this._config,
|
|
178
176
|
layerInfo: this.layerInfo,
|
|
@@ -195,10 +193,10 @@ class i extends J {
|
|
|
195
193
|
* @since 5.2
|
|
196
194
|
*/
|
|
197
195
|
getDataSortOrder() {
|
|
198
|
-
return
|
|
196
|
+
return L(this._config, this._mode);
|
|
199
197
|
}
|
|
200
198
|
setDataSortOrder(e, a) {
|
|
201
|
-
|
|
199
|
+
O({
|
|
202
200
|
newSortOrderKind: e,
|
|
203
201
|
config: this._config,
|
|
204
202
|
orderByList: a
|
|
@@ -210,10 +208,10 @@ class i extends J {
|
|
|
210
208
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#getDataSortOrder getDataSortOrder} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
211
209
|
*/
|
|
212
210
|
getSortOrder() {
|
|
213
|
-
return
|
|
211
|
+
return L(this._config, this._mode);
|
|
214
212
|
}
|
|
215
213
|
setSortOrder(e, a) {
|
|
216
|
-
|
|
214
|
+
O({
|
|
217
215
|
newSortOrderKind: e,
|
|
218
216
|
config: this._config,
|
|
219
217
|
orderByList: a
|
|
@@ -228,10 +226,10 @@ class i extends J {
|
|
|
228
226
|
* ```
|
|
229
227
|
*/
|
|
230
228
|
get orderByList() {
|
|
231
|
-
return
|
|
229
|
+
return D(this._config, this._mode);
|
|
232
230
|
}
|
|
233
231
|
set orderByList(e) {
|
|
234
|
-
|
|
232
|
+
C({
|
|
235
233
|
values: e,
|
|
236
234
|
config: this._config,
|
|
237
235
|
mode: this._mode
|
|
@@ -252,20 +250,23 @@ class i extends J {
|
|
|
252
250
|
}
|
|
253
251
|
/**
|
|
254
252
|
* Gets the list of the category values for the chart.
|
|
253
|
+
*
|
|
254
|
+
* @param num The maximum number of category values to fetch.
|
|
255
255
|
*/
|
|
256
|
-
async getCustomSortValues() {
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
return
|
|
260
|
-
category:
|
|
256
|
+
async getCustomSortValues(e) {
|
|
257
|
+
const a = u(this._config), o = S(this._config.series);
|
|
258
|
+
let n = [];
|
|
259
|
+
return o === h.PieFromFields ? n = this.numericFields : a.trim() !== "" && o === h.PieFromCategory && (n = await E({
|
|
260
|
+
category: a,
|
|
261
261
|
config: this._config,
|
|
262
262
|
layerInfo: this.layerInfo,
|
|
263
|
+
num: e,
|
|
263
264
|
errorStrings: this.commonStrings.errorStrings
|
|
264
|
-
})),
|
|
265
|
+
})), n;
|
|
265
266
|
}
|
|
266
267
|
moveCustomSortValuesInOrderByList(e, a) {
|
|
267
|
-
const o =
|
|
268
|
-
o.splice(a, 0, n),
|
|
268
|
+
const o = D(this._config, this._mode), [n] = o.splice(e, 1);
|
|
269
|
+
o.splice(a, 0, n), C({
|
|
269
270
|
values: o,
|
|
270
271
|
config: this._config,
|
|
271
272
|
mode: this._mode
|
|
@@ -278,10 +279,10 @@ class i extends J {
|
|
|
278
279
|
* Ticks symbol connecting slices to labels.
|
|
279
280
|
*/
|
|
280
281
|
get ticksSymbol() {
|
|
281
|
-
return
|
|
282
|
+
return qe(this._config);
|
|
282
283
|
}
|
|
283
284
|
set ticksSymbol(e) {
|
|
284
|
-
|
|
285
|
+
He(e, this._config);
|
|
285
286
|
}
|
|
286
287
|
// ---------------------------------------------------------------------------------------------
|
|
287
288
|
// #region Slices Props
|
|
@@ -290,10 +291,10 @@ class i extends J {
|
|
|
290
291
|
* Array of slices for the pie chart.
|
|
291
292
|
*/
|
|
292
293
|
get slices() {
|
|
293
|
-
return
|
|
294
|
+
return tt(this._config);
|
|
294
295
|
}
|
|
295
296
|
set slices(e) {
|
|
296
|
-
|
|
297
|
+
w(e, this._config);
|
|
297
298
|
}
|
|
298
299
|
/**
|
|
299
300
|
* Array of grouped slice ids for the pie chart.
|
|
@@ -308,10 +309,10 @@ class i extends J {
|
|
|
308
309
|
* Slice grouping configuration for the pie chart.
|
|
309
310
|
*/
|
|
310
311
|
get sliceGrouping() {
|
|
311
|
-
return
|
|
312
|
+
return $e(this._config);
|
|
312
313
|
}
|
|
313
314
|
set sliceGrouping(e) {
|
|
314
|
-
|
|
315
|
+
G(e, this._config);
|
|
315
316
|
}
|
|
316
317
|
/**
|
|
317
318
|
* Inner radius size for the pie chart.
|
|
@@ -320,64 +321,64 @@ class i extends J {
|
|
|
320
321
|
* This property will be removed from `PieChartModel` in 6.0.
|
|
321
322
|
*/
|
|
322
323
|
get innerRadiusSize() {
|
|
323
|
-
return
|
|
324
|
+
return le(this._config) ?? 0;
|
|
324
325
|
}
|
|
325
326
|
set innerRadiusSize(e) {
|
|
326
|
-
|
|
327
|
+
ce(e, this._config);
|
|
327
328
|
}
|
|
328
329
|
/**
|
|
329
330
|
* Inner radius of the pie chart.
|
|
330
331
|
* @since 5.2
|
|
331
332
|
*/
|
|
332
333
|
get innerRadius() {
|
|
333
|
-
return
|
|
334
|
+
return ge(this._config) ?? 0;
|
|
334
335
|
}
|
|
335
336
|
set innerRadius(e) {
|
|
336
|
-
|
|
337
|
+
pe(e, this._config);
|
|
337
338
|
}
|
|
338
339
|
/**
|
|
339
340
|
* Threshold below which slices will be grouped.
|
|
340
341
|
*/
|
|
341
342
|
get groupingThreshold() {
|
|
342
|
-
return
|
|
343
|
+
return z(this._config) ?? 0;
|
|
343
344
|
}
|
|
344
345
|
set groupingThreshold(e) {
|
|
345
|
-
|
|
346
|
+
et(e, this._config);
|
|
346
347
|
}
|
|
347
348
|
/**
|
|
348
349
|
* Character limit for the slice labels.
|
|
349
350
|
*/
|
|
350
351
|
get labelCharacterLimit() {
|
|
351
|
-
return
|
|
352
|
+
return de(this._config) ?? null;
|
|
352
353
|
}
|
|
353
354
|
set labelCharacterLimit(e) {
|
|
354
|
-
|
|
355
|
+
ue(e, this._config);
|
|
355
356
|
}
|
|
356
357
|
/**
|
|
357
358
|
* Number of decimal places to display in the slice values.
|
|
358
359
|
*/
|
|
359
360
|
get decimalPlaces() {
|
|
360
|
-
return
|
|
361
|
+
return we(this._config) ?? 1;
|
|
361
362
|
}
|
|
362
363
|
set decimalPlaces(e) {
|
|
363
|
-
|
|
364
|
+
Re(e, this._config);
|
|
364
365
|
}
|
|
365
366
|
/**
|
|
366
367
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
367
368
|
*/
|
|
368
369
|
get displayType() {
|
|
369
|
-
return
|
|
370
|
+
return Ne(this._config);
|
|
370
371
|
}
|
|
371
372
|
set displayType(e) {
|
|
372
|
-
|
|
373
|
+
Me(e, this._config);
|
|
373
374
|
}
|
|
374
375
|
// ---------------------------------------------------------------------------------------------
|
|
375
376
|
// #region Protected methods
|
|
376
377
|
// ---------------------------------------------------------------------------------------------
|
|
377
378
|
/** @private */
|
|
378
379
|
generateDefaultConfig() {
|
|
379
|
-
const e =
|
|
380
|
-
return e.series = [
|
|
380
|
+
const e = H(this.commonStrings);
|
|
381
|
+
return e.series = [J(this.commonStrings, j(this.layerInfo.layer).idField)], e;
|
|
381
382
|
}
|
|
382
383
|
// ---------------------------------------------------------------------------------------------
|
|
383
384
|
// #region Series Methods
|
|
@@ -388,7 +389,7 @@ class i extends J {
|
|
|
388
389
|
* @param sliceIndex - The index of the slice.
|
|
389
390
|
*/
|
|
390
391
|
getOriginalSliceName(e) {
|
|
391
|
-
return
|
|
392
|
+
return Je(e, this._config);
|
|
392
393
|
}
|
|
393
394
|
/**
|
|
394
395
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -396,11 +397,11 @@ class i extends J {
|
|
|
396
397
|
* @param sliceIndex - The index of the slice.
|
|
397
398
|
*/
|
|
398
399
|
getSliceName(e) {
|
|
399
|
-
return
|
|
400
|
+
return Qe(e, this._config);
|
|
400
401
|
}
|
|
401
402
|
setSliceName(e, a) {
|
|
402
403
|
const o = this.getSliceId(a);
|
|
403
|
-
o !== void 0 && this._customizedSliceIds.push(o),
|
|
404
|
+
o !== void 0 && this._customizedSliceIds.push(o), Ue(e, a, this._config);
|
|
404
405
|
}
|
|
405
406
|
/**
|
|
406
407
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -408,26 +409,26 @@ class i extends J {
|
|
|
408
409
|
* @param sliceIndex - The index of the slice.
|
|
409
410
|
*/
|
|
410
411
|
getSliceColor(e) {
|
|
411
|
-
return
|
|
412
|
+
return Xe(e, this._config);
|
|
412
413
|
}
|
|
413
414
|
setSliceColor(e, a) {
|
|
414
415
|
const o = this.getSliceId(a);
|
|
415
|
-
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o),
|
|
416
|
+
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o), Ye(e, a, this._config);
|
|
416
417
|
}
|
|
417
418
|
/**
|
|
418
419
|
* Order of the slice array by returning an array of slice ids
|
|
419
420
|
*/
|
|
420
421
|
get orderOfSlices() {
|
|
421
|
-
return
|
|
422
|
+
return Ze(this._config);
|
|
422
423
|
}
|
|
423
424
|
set orderOfSlices(e) {
|
|
424
|
-
e !== void 0 &&
|
|
425
|
+
e !== void 0 && W(e, this._config);
|
|
425
426
|
}
|
|
426
427
|
moveSeries(e, a) {
|
|
427
428
|
const o = this.orderOfSlices;
|
|
428
429
|
if (o !== void 0) {
|
|
429
430
|
const [n] = o.splice(e, 1);
|
|
430
|
-
o.splice(a, 0, n),
|
|
431
|
+
o.splice(a, 0, n), W(o, this._config);
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
/**
|
|
@@ -436,7 +437,7 @@ class i extends J {
|
|
|
436
437
|
* @param sliceIndex - The index of the slice.
|
|
437
438
|
*/
|
|
438
439
|
getSliceId(e) {
|
|
439
|
-
return
|
|
440
|
+
return st(e, this._config);
|
|
440
441
|
}
|
|
441
442
|
/**
|
|
442
443
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -444,16 +445,16 @@ class i extends J {
|
|
|
444
445
|
* @param sliceId - The id of the slice.
|
|
445
446
|
*/
|
|
446
447
|
getSliceIndex(e) {
|
|
447
|
-
return
|
|
448
|
+
return rt(e, this._config);
|
|
448
449
|
}
|
|
449
450
|
/**
|
|
450
451
|
* Gets the length of the slices array.
|
|
451
452
|
*/
|
|
452
453
|
getSlicesLength() {
|
|
453
|
-
return
|
|
454
|
+
return at(this._config);
|
|
454
455
|
}
|
|
455
456
|
resetSlices() {
|
|
456
|
-
this._customizedSliceIds = [],
|
|
457
|
+
this._customizedSliceIds = [], it(this._config);
|
|
457
458
|
}
|
|
458
459
|
/**
|
|
459
460
|
* Returns whether the series styling is able to be reset.
|
|
@@ -463,8 +464,8 @@ class i extends J {
|
|
|
463
464
|
let a = !1;
|
|
464
465
|
const o = this.slices?.length ?? 0;
|
|
465
466
|
for (let n = 0; n < o; n += 1) {
|
|
466
|
-
const c = this.getOriginalSliceName(n), d = this.getSliceName(n)
|
|
467
|
-
if (
|
|
467
|
+
const c = this.getOriginalSliceName(n), d = this.getSliceName(n);
|
|
468
|
+
if (c !== void 0 && c?.toString() !== d?.toString()) {
|
|
468
469
|
a = !0;
|
|
469
470
|
break;
|
|
470
471
|
}
|
|
@@ -475,35 +476,35 @@ class i extends J {
|
|
|
475
476
|
* Visibility of the ticks.
|
|
476
477
|
*/
|
|
477
478
|
get ticksVisibility() {
|
|
478
|
-
return
|
|
479
|
+
return je(this._config);
|
|
479
480
|
}
|
|
480
481
|
set ticksVisibility(e) {
|
|
481
|
-
|
|
482
|
+
Ke(e, this._config);
|
|
482
483
|
}
|
|
483
484
|
/**
|
|
484
485
|
* Start angle of the pie chart.
|
|
485
486
|
*/
|
|
486
487
|
get startAngle() {
|
|
487
|
-
return
|
|
488
|
+
return F(this._config);
|
|
488
489
|
}
|
|
489
490
|
set startAngle(e) {
|
|
490
|
-
|
|
491
|
+
he(e, this._config);
|
|
491
492
|
}
|
|
492
493
|
/**
|
|
493
494
|
* End angle of the pie chart.
|
|
494
495
|
*/
|
|
495
496
|
get endAngle() {
|
|
496
|
-
return
|
|
497
|
+
return F(this._config);
|
|
497
498
|
}
|
|
498
499
|
set endAngle(e) {
|
|
499
|
-
|
|
500
|
+
fe(e, this._config);
|
|
500
501
|
}
|
|
501
502
|
/**
|
|
502
503
|
* Whether to display the category on the data label.
|
|
503
504
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
504
505
|
*/
|
|
505
506
|
get displayCategoryOnDataLabel() {
|
|
506
|
-
return
|
|
507
|
+
return me(this._config);
|
|
507
508
|
}
|
|
508
509
|
set displayCategoryOnDataLabel(e) {
|
|
509
510
|
this._config.series[0].displayCategoryOnDataLabel = e;
|
|
@@ -514,7 +515,7 @@ class i extends J {
|
|
|
514
515
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
515
516
|
*/
|
|
516
517
|
get displayCategoryValueOnTooltip() {
|
|
517
|
-
return
|
|
518
|
+
return ye(this._config);
|
|
518
519
|
}
|
|
519
520
|
set displayCategoryValueOnTooltip(e) {
|
|
520
521
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -524,7 +525,7 @@ class i extends J {
|
|
|
524
525
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
525
526
|
*/
|
|
526
527
|
get displayNumericValueOnDataLabel() {
|
|
527
|
-
return
|
|
528
|
+
return _e(this._config);
|
|
528
529
|
}
|
|
529
530
|
set displayNumericValueOnDataLabel(e) {
|
|
530
531
|
this._config.series[0].displayNumericValueOnDataLabel = e;
|
|
@@ -535,7 +536,7 @@ class i extends J {
|
|
|
535
536
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
536
537
|
*/
|
|
537
538
|
get displayPercentageOnDataLabel() {
|
|
538
|
-
return
|
|
539
|
+
return Se(this._config);
|
|
539
540
|
}
|
|
540
541
|
set displayPercentageOnDataLabel(e) {
|
|
541
542
|
this._config.series[0].displayPercentageOnDataLabel = e;
|
|
@@ -546,7 +547,7 @@ class i extends J {
|
|
|
546
547
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
547
548
|
*/
|
|
548
549
|
get displayNumericValueOnTooltip() {
|
|
549
|
-
return
|
|
550
|
+
return be(this._config);
|
|
550
551
|
}
|
|
551
552
|
set displayNumericValueOnTooltip(e) {
|
|
552
553
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -557,82 +558,82 @@ class i extends J {
|
|
|
557
558
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
558
559
|
*/
|
|
559
560
|
get displayPercentageOnTooltip() {
|
|
560
|
-
return
|
|
561
|
+
return Le(this._config);
|
|
561
562
|
}
|
|
562
563
|
set displayPercentageOnTooltip(e) {
|
|
563
|
-
|
|
564
|
+
Oe(e, this._config);
|
|
564
565
|
}
|
|
565
566
|
/**
|
|
566
567
|
* Prefix of the values of the slices.
|
|
567
568
|
*/
|
|
568
569
|
get valuePrefix() {
|
|
569
|
-
return
|
|
570
|
+
return De(this._config);
|
|
570
571
|
}
|
|
571
572
|
set valuePrefix(e) {
|
|
572
|
-
|
|
573
|
+
Ce(e, this._config);
|
|
573
574
|
}
|
|
574
575
|
/**
|
|
575
576
|
* Suffix of the values of the slice.
|
|
576
577
|
*/
|
|
577
578
|
get valueSuffix() {
|
|
578
|
-
return
|
|
579
|
+
return ve(this._config);
|
|
579
580
|
}
|
|
580
581
|
set valueSuffix(e) {
|
|
581
|
-
|
|
582
|
+
Pe(e, this._config);
|
|
582
583
|
}
|
|
583
584
|
/**
|
|
584
585
|
* Prefix of the percentages of the slices.
|
|
585
586
|
*/
|
|
586
587
|
get percentagePrefix() {
|
|
587
|
-
return
|
|
588
|
+
return Ie(this._config);
|
|
588
589
|
}
|
|
589
590
|
set percentagePrefix(e) {
|
|
590
|
-
|
|
591
|
+
Te(e, this._config);
|
|
591
592
|
}
|
|
592
593
|
/**
|
|
593
594
|
* Suffix of the percentages of the slices.
|
|
594
595
|
*/
|
|
595
596
|
get percentageSuffix() {
|
|
596
|
-
return
|
|
597
|
+
return Ve(this._config);
|
|
597
598
|
}
|
|
598
599
|
set percentageSuffix(e) {
|
|
599
|
-
|
|
600
|
+
xe(e, this._config);
|
|
600
601
|
}
|
|
601
602
|
/**
|
|
602
603
|
* Offset for the data labels.
|
|
603
604
|
*/
|
|
604
605
|
get dataLabelsOffset() {
|
|
605
|
-
return
|
|
606
|
+
return Ge(this._config);
|
|
606
607
|
}
|
|
607
608
|
set dataLabelsOffset(e) {
|
|
608
|
-
|
|
609
|
+
ze(e, this._config);
|
|
609
610
|
}
|
|
610
611
|
/**
|
|
611
612
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
612
613
|
*/
|
|
613
614
|
get alignDataLabels() {
|
|
614
|
-
return
|
|
615
|
+
return Fe(this._config);
|
|
615
616
|
}
|
|
616
617
|
set alignDataLabels(e) {
|
|
617
|
-
|
|
618
|
+
We(e, this._config);
|
|
618
619
|
}
|
|
619
620
|
/**
|
|
620
621
|
* Setting for placing the data labels inside of the slices.
|
|
621
622
|
*/
|
|
622
623
|
get dataLabelsInside() {
|
|
623
|
-
return
|
|
624
|
+
return ke(this._config);
|
|
624
625
|
}
|
|
625
626
|
set dataLabelsInside(e) {
|
|
626
|
-
|
|
627
|
+
Ae(e, this._config);
|
|
627
628
|
}
|
|
628
629
|
/**
|
|
629
630
|
* Optimize data labels overlapping setting for the pie chart.
|
|
630
631
|
*/
|
|
631
632
|
get optimizeDataLabelsOverlapping() {
|
|
632
|
-
return
|
|
633
|
+
return Be(this._config);
|
|
633
634
|
}
|
|
634
635
|
set optimizeDataLabelsOverlapping(e) {
|
|
635
|
-
|
|
636
|
+
Ee(e, this._config);
|
|
636
637
|
}
|
|
637
638
|
// ---------------------------------------------------------------------------------------------
|
|
638
639
|
// #region Legend Props
|
|
@@ -641,46 +642,46 @@ class i extends J {
|
|
|
641
642
|
* Whether to display the numeric value on legend items.
|
|
642
643
|
*/
|
|
643
644
|
get displayNumericValueOnLegendItems() {
|
|
644
|
-
return
|
|
645
|
+
return v(this._config);
|
|
645
646
|
}
|
|
646
647
|
set displayNumericValueOnLegendItems(e) {
|
|
647
|
-
|
|
648
|
+
P(e, this._config);
|
|
648
649
|
}
|
|
649
650
|
/**
|
|
650
651
|
* Whether to display the percentage on legend items.
|
|
651
652
|
*/
|
|
652
653
|
get displayPercentageOnLegendItems() {
|
|
653
|
-
return
|
|
654
|
+
return V(this._config);
|
|
654
655
|
}
|
|
655
656
|
set displayPercentageOnLegendItems(e) {
|
|
656
|
-
|
|
657
|
+
x(e, this._config);
|
|
657
658
|
}
|
|
658
659
|
/**
|
|
659
660
|
* Whether to display the category on legend items.
|
|
660
661
|
*/
|
|
661
662
|
get displayCategoryOnLegendItems() {
|
|
662
|
-
return
|
|
663
|
+
return I(this._config);
|
|
663
664
|
}
|
|
664
665
|
set displayCategoryOnLegendItems(e) {
|
|
665
|
-
|
|
666
|
+
T(e, this._config);
|
|
666
667
|
}
|
|
667
668
|
/**
|
|
668
669
|
* Maximum width in pixels for legend item labels.
|
|
669
670
|
*/
|
|
670
671
|
get labelMaxWidth() {
|
|
671
|
-
return
|
|
672
|
+
return N(this._config);
|
|
672
673
|
}
|
|
673
674
|
set labelMaxWidth(e) {
|
|
674
|
-
|
|
675
|
+
M(e, this._config);
|
|
675
676
|
}
|
|
676
677
|
/**
|
|
677
678
|
* Maximum width in pixels for legend value labels.
|
|
678
679
|
*/
|
|
679
680
|
get valueLabelMaxWidth() {
|
|
680
|
-
return
|
|
681
|
+
return oe(this._config);
|
|
681
682
|
}
|
|
682
683
|
set valueLabelMaxWidth(e) {
|
|
683
|
-
|
|
684
|
+
ne(e, this._config);
|
|
684
685
|
}
|
|
685
686
|
/**
|
|
686
687
|
* Gets the setting for displaying numerical values on legend items.
|
|
@@ -688,10 +689,10 @@ class i extends J {
|
|
|
688
689
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayNumericValueOnLegendItems displayNumericValueOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
689
690
|
*/
|
|
690
691
|
getDisplayNumericValue() {
|
|
691
|
-
return
|
|
692
|
+
return v(this._config);
|
|
692
693
|
}
|
|
693
694
|
setDisplayNumericValue(e) {
|
|
694
|
-
|
|
695
|
+
P(e, this._config);
|
|
695
696
|
}
|
|
696
697
|
/**
|
|
697
698
|
* Gets the setting for displaying percentages on legend items.
|
|
@@ -699,10 +700,10 @@ class i extends J {
|
|
|
699
700
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayPercentageOnLegendItems displayPercentageOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
700
701
|
*/
|
|
701
702
|
getDisplayPercentage() {
|
|
702
|
-
return
|
|
703
|
+
return V(this._config);
|
|
703
704
|
}
|
|
704
705
|
setDisplayPercentage(e) {
|
|
705
|
-
|
|
706
|
+
x(e, this._config);
|
|
706
707
|
}
|
|
707
708
|
/**
|
|
708
709
|
* Gets the maximum width in pixels for legend item labels.
|
|
@@ -710,10 +711,10 @@ class i extends J {
|
|
|
710
711
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#labelMaxWidth labelMaxWidth} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
711
712
|
*/
|
|
712
713
|
getLabelMaxWidth() {
|
|
713
|
-
return
|
|
714
|
+
return N(this._config);
|
|
714
715
|
}
|
|
715
716
|
setLabelMaxWidth(e) {
|
|
716
|
-
|
|
717
|
+
M(e, this._config);
|
|
717
718
|
}
|
|
718
719
|
/**
|
|
719
720
|
* Whether to display the category in the legend.
|
|
@@ -721,10 +722,10 @@ class i extends J {
|
|
|
721
722
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayCategoryOnLegendItems displayCategoryOnLegendItems} instead. This property will be removed from `PieChartModel` in 6.0.
|
|
722
723
|
*/
|
|
723
724
|
get displayCategory() {
|
|
724
|
-
return
|
|
725
|
+
return I(this._config);
|
|
725
726
|
}
|
|
726
727
|
set displayCategory(e) {
|
|
727
|
-
|
|
728
|
+
T(e, this._config);
|
|
728
729
|
}
|
|
729
730
|
// ---------------------------------------------------------------------------------------------
|
|
730
731
|
// #region General Props
|
|
@@ -733,7 +734,7 @@ class i extends J {
|
|
|
733
734
|
* Generate the proper chart title given the current config.
|
|
734
735
|
*/
|
|
735
736
|
generateChartTitle() {
|
|
736
|
-
return
|
|
737
|
+
return re({
|
|
737
738
|
config: this._config,
|
|
738
739
|
layerInfo: this.layerInfo,
|
|
739
740
|
commonStrings: this.commonStrings,
|
|
@@ -888,14 +889,14 @@ r([
|
|
|
888
889
|
r([
|
|
889
890
|
s
|
|
890
891
|
], i.prototype, "displayCategory");
|
|
891
|
-
const
|
|
892
|
-
Q,
|
|
892
|
+
const lt = [
|
|
893
893
|
U,
|
|
894
894
|
X,
|
|
895
895
|
Y,
|
|
896
|
-
Z
|
|
896
|
+
Z,
|
|
897
|
+
$
|
|
897
898
|
];
|
|
898
|
-
|
|
899
|
+
K(i, lt);
|
|
899
900
|
export {
|
|
900
901
|
i as PieChartModel
|
|
901
902
|
};
|