@geoscene/charts-components 5.0.19
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/LICENSE.md +18 -0
- package/README.md +15 -0
- package/dist/cdn/27RSUS44.js +499 -0
- package/dist/cdn/2ABIWUBP.js +168 -0
- package/dist/cdn/2FLUZ2DU.js +44 -0
- package/dist/cdn/2H7DJUUG.js +217 -0
- package/dist/cdn/2UIJDI4B.js +110 -0
- package/dist/cdn/2WSVTAF5.js +155 -0
- package/dist/cdn/2ZYMR3QH.js +469 -0
- package/dist/cdn/346SLSRB.js +117 -0
- package/dist/cdn/34GIQYIH.js +1000 -0
- package/dist/cdn/3DEMDCI6.js +176 -0
- package/dist/cdn/3PHU76K7.js +162 -0
- package/dist/cdn/3RSCQLEZ.js +376 -0
- package/dist/cdn/3SM7FV35.js +217 -0
- package/dist/cdn/3SYE47CU.js +157 -0
- package/dist/cdn/42A4L2UB.js +209 -0
- package/dist/cdn/43OZVJ43.js +10 -0
- package/dist/cdn/45AJBAFE.js +480 -0
- package/dist/cdn/4B3QBH5T.js +2440 -0
- package/dist/cdn/4HJDWMQ2.js +255 -0
- package/dist/cdn/4UCPYNHM.js +217 -0
- package/dist/cdn/4ZN5TLRY.js +206 -0
- package/dist/cdn/53MWUIM5.js +208 -0
- package/dist/cdn/5752NFTR.js +228 -0
- package/dist/cdn/5AWSZZXY.js +165 -0
- package/dist/cdn/5FBGXF7O.js +508 -0
- package/dist/cdn/5FW4PWIO.js +217 -0
- package/dist/cdn/5RNNVK4R.js +161 -0
- package/dist/cdn/6NZDPYGF.js +187 -0
- package/dist/cdn/6PBHDFIO.js +209 -0
- package/dist/cdn/7I5Y5NSS.js +82 -0
- package/dist/cdn/7IUSVOKT.js +119 -0
- package/dist/cdn/7XITED6J.js +216 -0
- package/dist/cdn/A6QBN7CC.js +45 -0
- package/dist/cdn/A7YNU2NS.js +34090 -0
- package/dist/cdn/AENRD2JF.js +174 -0
- package/dist/cdn/AHWBG4EN.js +170 -0
- package/dist/cdn/AQMOKQMS.js +97 -0
- package/dist/cdn/AULQDYOE.js +286 -0
- package/dist/cdn/BB25YSSU.js +273 -0
- package/dist/cdn/BBHUZEFF.js +217 -0
- package/dist/cdn/BY6OCNJ5.js +203 -0
- package/dist/cdn/BZA7GDEH.js +281 -0
- package/dist/cdn/CCRQK5DN.js +377 -0
- package/dist/cdn/CFQFRB3N.js +154 -0
- package/dist/cdn/CUT7ZZEN.js +211 -0
- package/dist/cdn/D24YASGK.js +241 -0
- package/dist/cdn/D4XT7ZCD.js +78 -0
- package/dist/cdn/D57WSEYW.js +65954 -0
- package/dist/cdn/D7VH5WCI.js +97 -0
- package/dist/cdn/DKENL7TV.js +72 -0
- package/dist/cdn/DP4BNWU2.js +442 -0
- package/dist/cdn/DPJE33GY.js +111 -0
- package/dist/cdn/DPXJFQDJ.js +34 -0
- package/dist/cdn/DVTRF3NE.js +498 -0
- package/dist/cdn/ED7V65WK.js +471 -0
- package/dist/cdn/EEARIV73.js +211 -0
- package/dist/cdn/EI4BBWXF.js +365 -0
- package/dist/cdn/EKW43NKP.js +211 -0
- package/dist/cdn/EKZC6UDI.js +219 -0
- package/dist/cdn/EQYSD2NX.js +217 -0
- package/dist/cdn/F335AJAZ.js +220 -0
- package/dist/cdn/FEJD2JHY.js +15 -0
- package/dist/cdn/FHOCRXYD.js +116 -0
- package/dist/cdn/FKGSMYFL.js +414 -0
- package/dist/cdn/FL37YOHH.js +217 -0
- package/dist/cdn/FPSTP5OC.js +392 -0
- package/dist/cdn/FVY5LUI2.js +157 -0
- package/dist/cdn/FWWJZ3MJ.js +209 -0
- package/dist/cdn/FZD6CNIZ.js +399 -0
- package/dist/cdn/G4MCRK6N.js +162 -0
- package/dist/cdn/GTW3ZY2Z.js +159 -0
- package/dist/cdn/GWOR7UVC.js +124624 -0
- package/dist/cdn/HAGP76HP.js +16 -0
- package/dist/cdn/HB4IRXAE.js +72 -0
- package/dist/cdn/HM3YITGN.js +217 -0
- package/dist/cdn/HOC24MW7.js +151 -0
- package/dist/cdn/HZC3QJTN.js +105 -0
- package/dist/cdn/IARNAL5N.js +14375 -0
- package/dist/cdn/IER7B77G.js +209 -0
- package/dist/cdn/IHRGRUHQ.js +130 -0
- package/dist/cdn/IJKPLGK6.js +141 -0
- package/dist/cdn/IJUDK7C2.js +209 -0
- package/dist/cdn/IMTYQFPL.js +36 -0
- package/dist/cdn/ISWZQ6CS.js +1163 -0
- package/dist/cdn/IUTE24ZY.js +13 -0
- package/dist/cdn/IYO5SQDL.js +99 -0
- package/dist/cdn/J436GCGB.js +217 -0
- package/dist/cdn/J7TZPMJS.js +55 -0
- package/dist/cdn/JADN2A6V.js +209 -0
- package/dist/cdn/JGALBLLO.js +30326 -0
- package/dist/cdn/JP64Q3GB.js +209 -0
- package/dist/cdn/JRIDQN35.js +215 -0
- package/dist/cdn/JRXMYWDW.js +135 -0
- package/dist/cdn/JS32MHPQ.js +217 -0
- package/dist/cdn/K3EUYISB.js +217 -0
- package/dist/cdn/K7DZU3S3.js +209 -0
- package/dist/cdn/KB7UF3HK.js +89 -0
- package/dist/cdn/KJHME2ZX.js +31 -0
- package/dist/cdn/KM2WGERQ.js +625 -0
- package/dist/cdn/KP4ZXQIA.js +104 -0
- package/dist/cdn/KPQTJ2HD.js +642 -0
- package/dist/cdn/KPZUTGHH.js +630 -0
- package/dist/cdn/KRZ433BT.js +2106 -0
- package/dist/cdn/KUVOINJC.js +81 -0
- package/dist/cdn/KYALHV7T.js +209 -0
- package/dist/cdn/KZCTMPJT.js +209 -0
- package/dist/cdn/L2JT5DRD.js +706 -0
- package/dist/cdn/LCDVPNSE.js +13 -0
- package/dist/cdn/LMCXUA7Q.js +10 -0
- package/dist/cdn/LN5565XO.js +52 -0
- package/dist/cdn/LZPEOYIX.js +98 -0
- package/dist/cdn/ML4GGRP6.js +570 -0
- package/dist/cdn/MMTB6DEH.js +209 -0
- package/dist/cdn/MSXA6BCJ.js +207 -0
- package/dist/cdn/NII7T2C6.js +179 -0
- package/dist/cdn/NKG4FLLR.js +165 -0
- package/dist/cdn/NSSG3EFV.js +48 -0
- package/dist/cdn/OBMBMKLH.js +327 -0
- package/dist/cdn/OIKTWYMH.js +157 -0
- package/dist/cdn/OR4HXHSY.js +41 -0
- package/dist/cdn/P4UNBBUE.js +82 -0
- package/dist/cdn/P5SSZWMH.js +309 -0
- package/dist/cdn/P6IDPIZS.js +211 -0
- package/dist/cdn/P7VOZE67.js +296 -0
- package/dist/cdn/PJRXBEGZ.js +178 -0
- package/dist/cdn/PNEIQAP5.js +217 -0
- package/dist/cdn/PWVXLHJ5.js +217 -0
- package/dist/cdn/QB7LODVK.js +684 -0
- package/dist/cdn/QEF5BUC3.js +10 -0
- package/dist/cdn/QFD6CUH6.js +30326 -0
- package/dist/cdn/QH6BI7FG.js +217 -0
- package/dist/cdn/QOI7NT7O.js +219 -0
- package/dist/cdn/QWWC6FN5.js +536 -0
- package/dist/cdn/QXU67LZR.js +155 -0
- package/dist/cdn/QYYAUYYC.js +112 -0
- package/dist/cdn/R6TDL23L.js +209 -0
- package/dist/cdn/RF5DZ4IV.js +191 -0
- package/dist/cdn/S4AW3T6V.js +224 -0
- package/dist/cdn/S565TLQY.js +196 -0
- package/dist/cdn/SMF5WZQN.js +209 -0
- package/dist/cdn/SON2ID5T.js +219 -0
- package/dist/cdn/SQV437VB.js +215 -0
- package/dist/cdn/T27VVYVB.js +157 -0
- package/dist/cdn/TAAITYOS.js +198 -0
- package/dist/cdn/TABYE4TB.js +217 -0
- package/dist/cdn/TB7WEW23.js +209 -0
- package/dist/cdn/TJ5UK25V.js +9 -0
- package/dist/cdn/TJ65PNGP.js +165 -0
- package/dist/cdn/TMANAKTG.js +591 -0
- package/dist/cdn/U4PUZ7GN.js +162 -0
- package/dist/cdn/U7SAWP3S.js +209 -0
- package/dist/cdn/UCCVQZDR.js +9 -0
- package/dist/cdn/UG7LOBJE.js +85 -0
- package/dist/cdn/UKOVO7VE.js +186 -0
- package/dist/cdn/ULFF36NB.js +178 -0
- package/dist/cdn/UNHONDOG.js +31 -0
- package/dist/cdn/UPIJ2RYA.js +219 -0
- package/dist/cdn/UTRIB3ZD.js +162 -0
- package/dist/cdn/V2OPADQU.js +696 -0
- package/dist/cdn/V3CSEWPF.js +487 -0
- package/dist/cdn/VAB3BCTX.js +133 -0
- package/dist/cdn/VE5YTXK3.js +226 -0
- package/dist/cdn/VGRQ5KGN.js +13 -0
- package/dist/cdn/VGRXIFGH.js +473 -0
- package/dist/cdn/VPNOON73.js +6242 -0
- package/dist/cdn/VQMZEOOE.js +711 -0
- package/dist/cdn/VTOYBMVV.js +230 -0
- package/dist/cdn/W2ZT3M5X.js +477 -0
- package/dist/cdn/WKARMQOX.js +416 -0
- package/dist/cdn/WSH74NNB.js +184 -0
- package/dist/cdn/X2UNNQPA.js +209 -0
- package/dist/cdn/X5VZ6AC5.js +209 -0
- package/dist/cdn/XFRW44O2.js +209 -0
- package/dist/cdn/XLDY6CTA.js +142 -0
- package/dist/cdn/XNEK46GJ.js +230 -0
- package/dist/cdn/XOBTD5MM.js +371 -0
- package/dist/cdn/XQXY7DRO.js +268 -0
- package/dist/cdn/XZG6TRNQ.js +163 -0
- package/dist/cdn/XZQIXM6A.js +157 -0
- package/dist/cdn/Y56PEINI.js +217 -0
- package/dist/cdn/Y5VXYUPT.js +217 -0
- package/dist/cdn/YEXVZE6D.js +173 -0
- package/dist/cdn/YIZBXVJZ.js +493 -0
- package/dist/cdn/YOQQ22ZG.js +209 -0
- package/dist/cdn/YYJQDF23.js +35 -0
- package/dist/cdn/Z7HL2BUP.js +283 -0
- package/dist/cdn/ZAGKTJNS.js +209 -0
- package/dist/cdn/ZBU6PQPJ.js +340 -0
- package/dist/cdn/ZEG4LDOE.js +198 -0
- package/dist/cdn/ZEPS5UGU.js +238 -0
- package/dist/cdn/ZLQXY2BV.js +35 -0
- package/dist/cdn/ZLRKGGOO.js +1414 -0
- package/dist/cdn/ZQY74JM4.js +135 -0
- package/dist/cdn/ZTNIHU2P.js +137 -0
- package/dist/cdn/assets/chart/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axes/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axis/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-category-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-chart-rename-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-color-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-colors/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-create-flow/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-font-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-general/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-number-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/styles/_common.scss +257 -0
- package/dist/cdn/assets/styles/_layout.scss +10 -0
- package/dist/cdn/assets/styles/resources.ts +7 -0
- package/dist/cdn/assets/styles/variables.scss +41 -0
- package/dist/cdn/index.js +256 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chart-rendering/common/interfaces.d.ts +367 -0
- package/dist/chunks/action-bar-utils.js +206 -0
- package/dist/chunks/axis-lines-symbol.js +98 -0
- package/dist/chunks/axis-model-wrapper.js +37 -0
- package/dist/chunks/bar-chart-model.js +150 -0
- package/dist/chunks/bar-chart-series.js +41 -0
- package/dist/chunks/bg_BG.js +8 -0
- package/dist/chunks/bg_BG2.js +8 -0
- package/dist/chunks/box-plot-data.js +757 -0
- package/dist/chunks/box-plot-model.js +473 -0
- package/dist/chunks/chart-model.js +595 -0
- package/dist/chunks/chart-ui-utils.js +93 -0
- package/dist/chunks/chart-ui-utils2.js +232 -0
- package/dist/chunks/class-breaks.js +370 -0
- package/dist/chunks/combo-bar-line-chart-model.js +299 -0
- package/dist/chunks/common.js +106 -0
- package/dist/chunks/data-labels-symbol.js +42 -0
- package/dist/chunks/data.js +195 -0
- package/dist/chunks/default.js +16 -0
- package/dist/chunks/gauge-model.js +489 -0
- package/dist/chunks/generate-x-axis-title.js +98 -0
- package/dist/chunks/heat-chart-model.js +483 -0
- package/dist/chunks/histogram-data.js +196 -0
- package/dist/chunks/histogram-model.js +228 -0
- package/dist/chunks/index.js +23574 -0
- package/dist/chunks/index2.js +1099 -0
- package/dist/chunks/index3.js +279 -0
- package/dist/chunks/index4.js +98 -0
- package/dist/chunks/index5.js +76 -0
- package/dist/chunks/interfaces.js +123 -0
- package/dist/chunks/line-chart-model.js +134 -0
- package/dist/chunks/model-setter.js +162 -0
- package/dist/chunks/model-with-guides.js +330 -0
- package/dist/chunks/model-with-line-marker-styling.js +178 -0
- package/dist/chunks/model-with-tooltips.js +318 -0
- package/dist/chunks/model-with-x-guides.js +45 -0
- package/dist/chunks/model-with-y-guides.js +656 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +157 -0
- package/dist/chunks/pie-chart-data.js +473 -0
- package/dist/chunks/pie-chart-model.js +884 -0
- package/dist/chunks/popover-ui-utils.js +15 -0
- package/dist/chunks/radar-chart-model.js +157 -0
- package/dist/chunks/resource.js +14 -0
- package/dist/chunks/resources.js +13 -0
- package/dist/chunks/rest-js-object-literals.js +112 -0
- package/dist/chunks/rotated-state.js +54 -0
- package/dist/chunks/runtime.js +19 -0
- package/dist/chunks/scatterplot-model.js +350 -0
- package/dist/chunks/serial-chart-data.js +1446 -0
- package/dist/chunks/serial-chart-model.js +587 -0
- package/dist/chunks/series-length.js +81 -0
- package/dist/chunks/series-types.js +249 -0
- package/dist/chunks/series.js +36 -0
- package/dist/chunks/setup-utils.js +87 -0
- package/dist/chunks/sk_SK.js +8 -0
- package/dist/chunks/store.js +35 -0
- package/dist/chunks/type-guards.js +156 -0
- package/dist/chunks/useT9n.js +5 -0
- package/dist/chunks/utils.js +308 -0
- package/dist/chunks/utils2.js +85 -0
- package/dist/chunks/web-component-utils.js +634 -0
- package/dist/components/geoscene-chart/customElement.d.ts +1551 -0
- package/dist/components/geoscene-chart/customElement.js +27412 -0
- package/dist/components/geoscene-chart/index.d.ts +1 -0
- package/dist/components/geoscene-chart/index.js +3 -0
- package/dist/components/geoscene-charts-action-bar/customElement.d.ts +813 -0
- package/dist/components/geoscene-charts-action-bar/customElement.js +500 -0
- package/dist/components/geoscene-charts-action-bar/index.d.ts +1 -0
- package/dist/components/geoscene-charts-action-bar/index.js +7 -0
- package/dist/components/geoscene-charts-config-axes/customElement.js +72 -0
- package/dist/components/geoscene-charts-config-axes/index.js +2 -0
- package/dist/components/geoscene-charts-config-axis/customElement.js +382 -0
- package/dist/components/geoscene-charts-config-axis/index.js +9 -0
- package/dist/components/geoscene-charts-config-bar-chart/customElement.js +165 -0
- package/dist/components/geoscene-charts-config-bar-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/customElement.js +644 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/index.js +13 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/customElement.js +341 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/customElement.js +125 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-box-plot/customElement.js +160 -0
- package/dist/components/geoscene-charts-config-box-plot/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-data/customElement.js +456 -0
- package/dist/components/geoscene-charts-config-box-plot-data/index.js +10 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/customElement.js +343 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/index.js +8 -0
- package/dist/components/geoscene-charts-config-box-plot-series/customElement.js +394 -0
- package/dist/components/geoscene-charts-config-box-plot-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/customElement.js +163 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-category-format/customElement.js +87 -0
- package/dist/components/geoscene-charts-config-category-format/index.js +3 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/customElement.js +143 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-color-style/customElement.js +58 -0
- package/dist/components/geoscene-charts-config-color-style/index.js +3 -0
- package/dist/components/geoscene-charts-config-colors/customElement.js +73 -0
- package/dist/components/geoscene-charts-config-colors/index.js +3 -0
- package/dist/components/geoscene-charts-config-create-flow/customElement.js +929 -0
- package/dist/components/geoscene-charts-config-create-flow/index.js +15 -0
- package/dist/components/geoscene-charts-config-field-select/customElement.js +37 -0
- package/dist/components/geoscene-charts-config-field-select/index.js +2 -0
- package/dist/components/geoscene-charts-config-font-style/customElement.js +226 -0
- package/dist/components/geoscene-charts-config-font-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-font-style/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-format/customElement.js +485 -0
- package/dist/components/geoscene-charts-config-format/index.js +5 -0
- package/dist/components/geoscene-charts-config-format-popover/customElement.js +113 -0
- package/dist/components/geoscene-charts-config-format-popover/index.js +5 -0
- package/dist/components/geoscene-charts-config-general/customElement.js +328 -0
- package/dist/components/geoscene-charts-config-general/index.js +9 -0
- package/dist/components/geoscene-charts-config-guide/customElement.js +487 -0
- package/dist/components/geoscene-charts-config-guide/index.js +14 -0
- package/dist/components/geoscene-charts-config-guide/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-guide-popover/customElement.js +111 -0
- package/dist/components/geoscene-charts-config-guide-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides/customElement.js +194 -0
- package/dist/components/geoscene-charts-config-guides/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/customElement.js +100 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart/customElement.js +114 -0
- package/dist/components/geoscene-charts-config-heat-chart/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/customElement.js +701 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/index.js +18 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/customElement.js +499 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/index.js +12 -0
- package/dist/components/geoscene-charts-config-histogram/customElement.js +137 -0
- package/dist/components/geoscene-charts-config-histogram/index.js +6 -0
- package/dist/components/geoscene-charts-config-histogram-data/customElement.js +612 -0
- package/dist/components/geoscene-charts-config-histogram-data/index.js +11 -0
- package/dist/components/geoscene-charts-config-histogram-popover/customElement.js +255 -0
- package/dist/components/geoscene-charts-config-histogram-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/customElement.js +31 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/index.js +2 -0
- package/dist/components/geoscene-charts-config-line-chart/customElement.js +169 -0
- package/dist/components/geoscene-charts-config-line-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-data/customElement.js +444 -0
- package/dist/components/geoscene-charts-config-line-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/customElement.js +357 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/index.js +11 -0
- package/dist/components/geoscene-charts-config-line-chart-series/customElement.js +245 -0
- package/dist/components/geoscene-charts-config-line-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/customElement.js +216 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/index.js +10 -0
- package/dist/components/geoscene-charts-config-line-style/customElement.js +159 -0
- package/dist/components/geoscene-charts-config-line-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-number-format/customElement.js +102 -0
- package/dist/components/geoscene-charts-config-number-format/index.js +4 -0
- package/dist/components/geoscene-charts-config-pie-chart/customElement.js +164 -0
- package/dist/components/geoscene-charts-config-pie-chart/index.js +5 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/customElement.js +258 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/index.js +8 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/customElement.js +300 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/index.js +12 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/customElement.js +126 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot/customElement.js +132 -0
- package/dist/components/geoscene-charts-config-scatter-plot/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/customElement.js +616 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/customElement.js +198 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/customElement.js +148 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-view-charts/customElement.js +289 -0
- package/dist/components/geoscene-charts-config-view-charts/index.js +10 -0
- package/dist/components/geoscene-charts-info-modal/customElement.js +101 -0
- package/dist/components/geoscene-charts-info-modal/index.js +2 -0
- package/dist/docs/api.json +87068 -0
- package/dist/docs/docs.json +3082 -0
- package/dist/docs/vscode.css-custom-data.json +1 -0
- package/dist/docs/vscode.html-custom-data.json +519 -0
- package/dist/docs/web-types.json +1282 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +812 -0
- package/dist/interfaces.d.ts +203 -0
- package/dist/json-schema/index.d.ts +8488 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +332 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +51 -0
- package/dist/model/box-plot-model/box-plot-model.d.ts +177 -0
- package/dist/model/chart-model/chart-model-base.d.ts +34 -0
- package/dist/model/chart-model/chart-model.d.ts +28 -0
- package/dist/model/chart-model/utils/types.d.ts +10 -0
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +189 -0
- package/dist/model/gauge-model/gauge-model.d.ts +103 -0
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +224 -0
- package/dist/model/histogram-model/histogram-model.d.ts +75 -0
- package/dist/model/index.d.ts +18 -0
- package/dist/model/interfaces/chart-interfaces.d.ts +21 -0
- package/dist/model/interfaces/common.d.ts +172 -0
- package/dist/model/line-chart-model/line-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-guides.d.ts +140 -0
- package/dist/model/mixins/model-with-legend.d.ts +22 -0
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +139 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +307 -0
- package/dist/model/mixins/model-with-temporal-binning.d.ts +25 -0
- package/dist/model/mixins/model-with-tooltips.d.ts +36 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +24 -0
- package/dist/model/mixins/model-with-y-guides.d.ts +24 -0
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +56 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +199 -0
- package/dist/model/properties/axes/axis-labels-symbol.d.ts +8 -0
- package/dist/model/properties/axes/axis-lines-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/generate-x-axis-title.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/max-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/min-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-axis-labels-visibility.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-text.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-visibility.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-bounds.d.ts +8 -0
- package/dist/model/properties/background-color.d.ts +8 -0
- package/dist/model/properties/chart-id.d.ts +7 -0
- package/dist/model/properties/chart-renderer.d.ts +52 -0
- package/dist/model/properties/chart-sub-type.d.ts +8 -0
- package/dist/model/properties/color-match.d.ts +12 -0
- package/dist/model/properties/config.d.ts +8 -0
- package/dist/model/properties/data-filters.d.ts +14 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +8 -0
- package/dist/model/properties/data-labels/data-labels-visibility.d.ts +7 -0
- package/dist/model/properties/data-tooltip-value-format.d.ts +21 -0
- package/dist/model/properties/description/description-symbol.d.ts +8 -0
- package/dist/model/properties/description/description-text.d.ts +6 -0
- package/dist/model/properties/description/description-visibility.d.ts +11 -0
- package/dist/model/properties/fetch-null-values.d.ts +7 -0
- package/dist/model/properties/layer.d.ts +8 -0
- package/dist/model/properties/rotated-state.d.ts +7 -0
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +22 -0
- package/dist/model/properties/series/series-id.d.ts +12 -0
- package/dist/model/properties/series/series-index.d.ts +12 -0
- package/dist/model/properties/series/series-length.d.ts +7 -0
- package/dist/model/properties/series/series-visibility.d.ts +18 -0
- package/dist/model/properties/split-by-values.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-symbol.d.ts +8 -0
- package/dist/model/properties/subtitle/subtitle-text.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-visibility.d.ts +11 -0
- package/dist/model/properties/title/title-symbol.d.ts +8 -0
- package/dist/model/properties/title/title-text.d.ts +7 -0
- package/dist/model/properties/title/title-visibility.d.ts +11 -0
- package/dist/model/properties/version.d.ts +7 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +20 -0
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +57 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +145 -0
- package/dist/model/shared/setup-utils.d.ts +74 -0
- package/dist/model/shared/type-guards.d.ts +172 -0
- package/dist/model.js +77 -0
- package/dist/spec/chart-object-literals.d.ts +364 -0
- package/dist/spec/config-defaults.d.ts +11 -0
- package/dist/spec/data-source.d.ts +104 -0
- package/dist/spec/events.d.ts +34 -0
- package/dist/spec/index.d.ts +8 -0
- package/dist/spec/rest-js-object-literals.d.ts +132 -0
- package/dist/spec/rest-js-types.d.ts +1923 -0
- package/dist/spec/web-chart.d.ts +1539 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/lumina.d.ts +187 -0
- package/dist/types/preact.d.ts +194 -0
- package/dist/types/react.d.ts +204 -0
- package/dist/types/stencil.d.ts +194 -0
- package/dist/utils/chart-config/converter/index.d.ts +21 -0
- package/dist/utils/chart-config/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/utils/index.d.ts +520 -0
- package/dist/utils/chart-config/utils/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/validator/index.d.ts +27 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +105 -0
- package/dist/utils/components/event-payloads.d.ts +82 -0
- package/dist/utils/components/interfaces.d.ts +14 -0
- package/dist/utils/cursor/interfaces.d.ts +17 -0
- package/dist/utils/data/categorical-data/index.d.ts +27 -0
- package/dist/utils/data/index.d.ts +149 -0
- package/dist/utils/data/interfaces.d.ts +75 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +38 -0
- package/dist/utils/defaults/index.d.ts +638 -0
- package/dist/utils/defaults/interfaces.d.ts +81 -0
- package/dist/utils/errors/index.d.ts +17 -0
- package/dist/utils/errors/interfaces.d.ts +9 -0
- package/dist/utils/index.d.ts +33 -0
- package/dist/utils/layer/index.d.ts +313 -0
- package/dist/utils/layer/inline-conversion/index.d.ts +46 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +21 -0
- package/dist/utils/layer/interfaces.d.ts +73 -0
- package/dist/utils/layer/query-features/index.d.ts +192 -0
- package/dist/utils/layer/query-features/interfaces.d.ts +10 -0
- package/dist/utils/layer/query-parser/index.d.ts +183 -0
- package/dist/utils/layer/utils/index.d.ts +202 -0
- package/dist/utils/localization/index.d.ts +87 -0
- package/dist/utils/localization/interfaces.d.ts +617 -0
- package/dist/utils/misc/index.d.ts +347 -0
- package/dist/utils/misc/interfaces.d.ts +116 -0
- package/dist/utils/type-guards/index.d.ts +229 -0
- package/dist/utils/type-guards/series-types.d.ts +38 -0
- package/dist/utils/types/index.d.ts +227 -0
- package/dist/utils/ui/chart-ui-utils.d.ts +34 -0
- package/dist/utils/ui/popover-ui-utils.d.ts +35 -0
- package/package.json +59 -0
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { log as F } from "@geoscene/toolkit/log";
|
|
3
|
+
import { C as M } from "./chart-model.js";
|
|
4
|
+
import { m as s } from "./model-setter.js";
|
|
5
|
+
import { b as c, a as f } from "./common.js";
|
|
6
|
+
import { M as v, a as W, W as A, b as w } from "./model-with-tooltips.js";
|
|
7
|
+
import { W as G } from "./data-labels-symbol.js";
|
|
8
|
+
import { a as P, b as k, e as z } from "./utils.js";
|
|
9
|
+
import "@geoscene/toolkit/type";
|
|
10
|
+
import { W as p } from "./series-types.js";
|
|
11
|
+
import "@geoscene/toolkit/intl";
|
|
12
|
+
import { cloneDeep as B } from "lodash-es";
|
|
13
|
+
import "luxon";
|
|
14
|
+
import "d3-array";
|
|
15
|
+
import {
|
|
16
|
+
aX as d,
|
|
17
|
+
bf as T,
|
|
18
|
+
aT as b,
|
|
19
|
+
ax as V,
|
|
20
|
+
o as S,
|
|
21
|
+
dp as h,
|
|
22
|
+
_ as R,
|
|
23
|
+
bo as E,
|
|
24
|
+
bh as j,
|
|
25
|
+
bR as U,
|
|
26
|
+
} from "./index.js";
|
|
27
|
+
import "@geoscene/core/Graphic.js";
|
|
28
|
+
import "@geoscene/core/renderers/support/jsonUtils.js";
|
|
29
|
+
import "@geoscene/core/symbols/support/symbolUtils.js";
|
|
30
|
+
import "@geoscene/geoscene-html-sanitizer";
|
|
31
|
+
import "@geoscene/core/intl.js";
|
|
32
|
+
import "@geoscene/core/layers/support/FeatureFilter.js";
|
|
33
|
+
import "@geoscene/core/smartMapping/statistics/histogram.js";
|
|
34
|
+
import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
|
|
35
|
+
import "simple-statistics";
|
|
36
|
+
import "@geoscene/core/request.js";
|
|
37
|
+
import "@geoscene/core/core/sql.js";
|
|
38
|
+
import "@geoscene/core/AttributeBinsGraphic.js";
|
|
39
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
40
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
41
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
42
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
43
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
44
|
+
import "./runtime.js";
|
|
45
|
+
import "@geoscene/toolkit/dom";
|
|
46
|
+
import {
|
|
47
|
+
g as _,
|
|
48
|
+
s as K,
|
|
49
|
+
a as $,
|
|
50
|
+
c as X,
|
|
51
|
+
b as q,
|
|
52
|
+
d as H,
|
|
53
|
+
e as J,
|
|
54
|
+
f as Q,
|
|
55
|
+
h as L,
|
|
56
|
+
i as O,
|
|
57
|
+
j as Y,
|
|
58
|
+
} from "./pie-chart-data.js";
|
|
59
|
+
import { f as m } from "./rest-js-object-literals.js";
|
|
60
|
+
const Z = (t) => t.legend?.displayNumericValue ?? !1,
|
|
61
|
+
ee = (t, e) => {
|
|
62
|
+
e.series[0]?.type === p.PieSeries &&
|
|
63
|
+
(e.legend === void 0 && (e.legend = d()),
|
|
64
|
+
(e.legend.displayNumericValue = t));
|
|
65
|
+
},
|
|
66
|
+
te = (t) => t.legend?.displayCategory ?? !1,
|
|
67
|
+
ie = (t, e) => {
|
|
68
|
+
e.series[0]?.type === p.PieSeries &&
|
|
69
|
+
(e.legend === void 0 && (e.legend = d()), (e.legend.displayCategory = t));
|
|
70
|
+
},
|
|
71
|
+
se = (t) => t.legend?.displayPercentage ?? !1,
|
|
72
|
+
re = (t, e) => {
|
|
73
|
+
e.series[0]?.type === p.PieSeries &&
|
|
74
|
+
(e.legend === void 0 && (e.legend = d()),
|
|
75
|
+
(e.legend.displayPercentage = t));
|
|
76
|
+
},
|
|
77
|
+
ae = (t) => t.legend?.labelMaxWidth ?? 200,
|
|
78
|
+
oe = (t, e) => {
|
|
79
|
+
e.series[0]?.type === p.PieSeries &&
|
|
80
|
+
(e.legend === void 0 && (e.legend = d()), (e.legend.labelMaxWidth = t));
|
|
81
|
+
},
|
|
82
|
+
le = (t) => t.legend?.valueLabelMaxWidth ?? 200,
|
|
83
|
+
ne = (t, e) => {
|
|
84
|
+
e.series[0]?.type === p.PieSeries &&
|
|
85
|
+
(e.legend === void 0 && (e.legend = d()),
|
|
86
|
+
(e.legend.valueLabelMaxWidth = t));
|
|
87
|
+
};
|
|
88
|
+
var ge = Object.defineProperty,
|
|
89
|
+
ce = Object.getOwnPropertyDescriptor,
|
|
90
|
+
y = (t, e, i, o) => {
|
|
91
|
+
for (var l = ce(e, i), n = t.length - 1, g; n >= 0; n--)
|
|
92
|
+
(g = t[n]) && (l = g(e, i, l) || l);
|
|
93
|
+
return l && ge(e, i, l), l;
|
|
94
|
+
};
|
|
95
|
+
class u extends v {
|
|
96
|
+
/**
|
|
97
|
+
* Gets the setting for the display of numerical value in the legend items.
|
|
98
|
+
*
|
|
99
|
+
* **Note**: Only applicable to pie charts.
|
|
100
|
+
*/
|
|
101
|
+
getDisplayNumericValue() {
|
|
102
|
+
return Z(this._config);
|
|
103
|
+
}
|
|
104
|
+
setDisplayNumericValue(e) {
|
|
105
|
+
ee(e, this._config);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Gets the setting for the display of percentage in the legend items.
|
|
109
|
+
*
|
|
110
|
+
* **Note**: Only applicable to pie charts.
|
|
111
|
+
*/
|
|
112
|
+
getDisplayPercentage() {
|
|
113
|
+
return se(this._config);
|
|
114
|
+
}
|
|
115
|
+
setDisplayPercentage(e) {
|
|
116
|
+
re(e, this._config);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Gets the maximum width in pixel for the legend item labels.
|
|
120
|
+
*
|
|
121
|
+
* **Note**: Only applicable to pie charts.
|
|
122
|
+
*/
|
|
123
|
+
getLabelMaxWidth() {
|
|
124
|
+
return ae(this._config);
|
|
125
|
+
}
|
|
126
|
+
setLabelMaxWidth(e) {
|
|
127
|
+
oe(e, this._config);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The maximum width in pixel for the legend value labels.
|
|
131
|
+
* @returns {number}
|
|
132
|
+
*/
|
|
133
|
+
get valueLabelMaxWidth() {
|
|
134
|
+
return le(this._config);
|
|
135
|
+
}
|
|
136
|
+
set valueLabelMaxWidth(e) {
|
|
137
|
+
ne(e, this._config), this.emitConfigUpdate("valueLabelMaxWidth");
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Whether to display the category in the legend.
|
|
141
|
+
*/
|
|
142
|
+
get displayCategory() {
|
|
143
|
+
return te(this._config);
|
|
144
|
+
}
|
|
145
|
+
set displayCategory(e) {
|
|
146
|
+
ie(e, this._config), this.emitConfigUpdate("displayCategory");
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
y([s], u.prototype, "setDisplayNumericValue");
|
|
150
|
+
y([s], u.prototype, "setDisplayPercentage");
|
|
151
|
+
y([s], u.prototype, "setLabelMaxWidth");
|
|
152
|
+
const pe = [v];
|
|
153
|
+
P(u, pe);
|
|
154
|
+
const de = (t) => t.series?.[0]?.innerRadius,
|
|
155
|
+
ue = (t, e) => {
|
|
156
|
+
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
157
|
+
},
|
|
158
|
+
fe = (t) => t.series?.[0]?.dataLabelsCharacterLimit,
|
|
159
|
+
he = (t, e) => {
|
|
160
|
+
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
161
|
+
},
|
|
162
|
+
D = (t) => t.series[0]?.startAngle,
|
|
163
|
+
me = (t, e) => {
|
|
164
|
+
e.series?.[0] && (e.series[0].startAngle = t);
|
|
165
|
+
},
|
|
166
|
+
ye = (t, e) => {
|
|
167
|
+
e.series?.[0] && (e.series[0].endAngle = t);
|
|
168
|
+
},
|
|
169
|
+
be = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0,
|
|
170
|
+
Se = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0,
|
|
171
|
+
_e = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0,
|
|
172
|
+
Le = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1,
|
|
173
|
+
Oe = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0,
|
|
174
|
+
De = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0,
|
|
175
|
+
Ce = (t, e) => {
|
|
176
|
+
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
177
|
+
},
|
|
178
|
+
ve = (t) => t.series?.[0]?.valuePrefix,
|
|
179
|
+
Pe = (t, e) => {
|
|
180
|
+
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
181
|
+
},
|
|
182
|
+
Te = (t) => t.series?.[0]?.valueSuffix,
|
|
183
|
+
Ve = (t, e) => {
|
|
184
|
+
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
185
|
+
},
|
|
186
|
+
xe = (t) => t.series?.[0]?.percentagePrefix,
|
|
187
|
+
Ie = (t, e) => {
|
|
188
|
+
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
189
|
+
},
|
|
190
|
+
Ne = (t) => t.series?.[0]?.percentageSuffix,
|
|
191
|
+
Fe = (t, e) => {
|
|
192
|
+
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
193
|
+
},
|
|
194
|
+
Me = (t) => {
|
|
195
|
+
let e;
|
|
196
|
+
const i = t.series?.[0];
|
|
197
|
+
return (
|
|
198
|
+
i?.displayNumericValueOnDataLabel === !0 &&
|
|
199
|
+
i?.displayPercentageOnDataLabel === !0
|
|
200
|
+
? (e = c.Both)
|
|
201
|
+
: i?.displayNumericValueOnDataLabel === !0
|
|
202
|
+
? (e = c.Value)
|
|
203
|
+
: (e = c.Percentage),
|
|
204
|
+
e
|
|
205
|
+
);
|
|
206
|
+
},
|
|
207
|
+
We = (t, e) => {
|
|
208
|
+
const i = t === c.Value || t === c.Both,
|
|
209
|
+
o = t === c.Percentage || t === c.Both;
|
|
210
|
+
e.series?.[0] &&
|
|
211
|
+
((e.series[0].displayNumericValueOnDataLabel = i),
|
|
212
|
+
(e.series[0].displayPercentageOnDataLabel = o)),
|
|
213
|
+
e.legend &&
|
|
214
|
+
(e.legend = {
|
|
215
|
+
...e.legend,
|
|
216
|
+
displayNumericValue: i,
|
|
217
|
+
displayPercentage: o,
|
|
218
|
+
});
|
|
219
|
+
},
|
|
220
|
+
Ae = (t) => t.series?.[0]?.alignDataLabels ?? !1,
|
|
221
|
+
we = (t, e) => {
|
|
222
|
+
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
223
|
+
},
|
|
224
|
+
Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1,
|
|
225
|
+
ke = (t, e) => {
|
|
226
|
+
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
227
|
+
},
|
|
228
|
+
ze = (t) => t.series?.[0]?.dataLabelsOffset ?? 10,
|
|
229
|
+
Be = (t, e) => {
|
|
230
|
+
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
231
|
+
},
|
|
232
|
+
Re = (t) =>
|
|
233
|
+
t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,
|
|
234
|
+
Ee = (t, e) => {
|
|
235
|
+
e.series?.[0] &&
|
|
236
|
+
((e.series[0].numericValueFormat ??= b()),
|
|
237
|
+
(e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t),
|
|
238
|
+
(e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t),
|
|
239
|
+
(e.series[0].percentValueFormat ??= b()),
|
|
240
|
+
(e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t),
|
|
241
|
+
(e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t));
|
|
242
|
+
},
|
|
243
|
+
je = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1,
|
|
244
|
+
Ue = (t, e) => {
|
|
245
|
+
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
246
|
+
},
|
|
247
|
+
Ke = (t) => t.series[0]?.ticks?.visible ?? !1,
|
|
248
|
+
$e = (t, e) => {
|
|
249
|
+
e.series?.[0] &&
|
|
250
|
+
((e.series[0].ticks ??= T()), (e.series[0].ticks.visible = t));
|
|
251
|
+
},
|
|
252
|
+
Xe = (t) => t.series[0]?.ticks?.lineSymbol,
|
|
253
|
+
qe = (t, e) => {
|
|
254
|
+
t &&
|
|
255
|
+
e.series?.[0] &&
|
|
256
|
+
((e.series[0].ticks ??= T()), (e.series[0].ticks.lineSymbol = B(t)));
|
|
257
|
+
},
|
|
258
|
+
He = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel,
|
|
259
|
+
Je = (t, e) => e.series?.[0]?.slices?.[t]?.label,
|
|
260
|
+
Qe = (t, e, i) => {
|
|
261
|
+
i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
|
|
262
|
+
},
|
|
263
|
+
Ye = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color,
|
|
264
|
+
Ze = (t, e, i) => {
|
|
265
|
+
const o = i.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
266
|
+
o !== void 0
|
|
267
|
+
? ((o.color = t),
|
|
268
|
+
o.outline !== void 0
|
|
269
|
+
? (o.outline.color = t)
|
|
270
|
+
: (o.outline = { type: m.SLS, color: t }))
|
|
271
|
+
: i.series?.[0]?.slices?.[e] !== void 0 &&
|
|
272
|
+
(i.series[0].slices[e].fillSymbol = {
|
|
273
|
+
type: m.SFS,
|
|
274
|
+
color: t,
|
|
275
|
+
outline: { type: m.SLS, color: t },
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
|
+
et = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId),
|
|
279
|
+
C = (t, e) => {
|
|
280
|
+
e.series?.[0]?.slices?.sort(
|
|
281
|
+
(i, o) =>
|
|
282
|
+
t.findIndex((l) => i.sliceId === l) -
|
|
283
|
+
t.findIndex((l) => o.sliceId === l)
|
|
284
|
+
);
|
|
285
|
+
},
|
|
286
|
+
tt = (t) => t.series?.[0]?.sliceGrouping,
|
|
287
|
+
x = (t, e) => {
|
|
288
|
+
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
289
|
+
},
|
|
290
|
+
I = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold,
|
|
291
|
+
it = (t, e) => {
|
|
292
|
+
e.series?.[0]?.sliceGrouping !== void 0
|
|
293
|
+
? (e.series[0].sliceGrouping.percentageThreshold = t)
|
|
294
|
+
: (e.series[0].sliceGrouping = {
|
|
295
|
+
sliceId: V.defaultGroupOfSlicesId,
|
|
296
|
+
percentageThreshold: t,
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
st = (t) => t.series?.[0]?.slices,
|
|
300
|
+
N = (t, e) => {
|
|
301
|
+
e.series?.[0] && (e.series[0].slices = t);
|
|
302
|
+
},
|
|
303
|
+
rt = (t) => {
|
|
304
|
+
N(void 0, t),
|
|
305
|
+
x(
|
|
306
|
+
{
|
|
307
|
+
sliceId: V.defaultGroupOfSlicesId,
|
|
308
|
+
percentageThreshold: I(t) ?? 0,
|
|
309
|
+
},
|
|
310
|
+
t
|
|
311
|
+
);
|
|
312
|
+
},
|
|
313
|
+
at = (t, e) => e.series[0]?.slices?.[t]?.sliceId,
|
|
314
|
+
ot = (t, e) => e.series[0]?.slices?.findIndex((i) => i.sliceId === t),
|
|
315
|
+
lt = (t) => t.series[0]?.slices?.length ?? 0;
|
|
316
|
+
var nt = Object.defineProperty,
|
|
317
|
+
gt = Object.getOwnPropertyDescriptor,
|
|
318
|
+
a = (t, e, i, o) => {
|
|
319
|
+
for (var l = gt(e, i), n = t.length - 1, g; n >= 0; n--)
|
|
320
|
+
(g = t[n]) && (l = g(e, i, l) || l);
|
|
321
|
+
return l && nt(e, i, l), l;
|
|
322
|
+
};
|
|
323
|
+
class r extends M {
|
|
324
|
+
constructor() {
|
|
325
|
+
super(...arguments),
|
|
326
|
+
(this._chartType = p.PieSeries),
|
|
327
|
+
(this._mode = f.Category),
|
|
328
|
+
(this._groupedSliceIds = []);
|
|
329
|
+
}
|
|
330
|
+
async setup(e) {
|
|
331
|
+
await this.loadConfigFromLayer(e);
|
|
332
|
+
const { config: i } = e;
|
|
333
|
+
if (i !== void 0) {
|
|
334
|
+
const o = S(i.series);
|
|
335
|
+
this._mode = o !== h.PieFromFields ? f.Category : f.Fields;
|
|
336
|
+
}
|
|
337
|
+
typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
338
|
+
}
|
|
339
|
+
// ---------------------------------------------------------------------------------------------
|
|
340
|
+
// #region Data Props
|
|
341
|
+
// ---------------------------------------------------------------------------------------------
|
|
342
|
+
/**
|
|
343
|
+
* Category field for the pie chart.
|
|
344
|
+
*/
|
|
345
|
+
get category() {
|
|
346
|
+
return _(this._config);
|
|
347
|
+
}
|
|
348
|
+
set category(e) {
|
|
349
|
+
(!R(this._config) || e.trim() !== "") &&
|
|
350
|
+
(K({
|
|
351
|
+
newCategory: e,
|
|
352
|
+
config: this._config,
|
|
353
|
+
layerInfo: this.layerInfo,
|
|
354
|
+
commonStrings: this.commonStrings,
|
|
355
|
+
mode: this._mode,
|
|
356
|
+
}),
|
|
357
|
+
this.dispatchEvent(new CustomEvent("geosceneChartsModelDataChange")));
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Numeric fields for the pie chart.
|
|
361
|
+
*/
|
|
362
|
+
get numericFields() {
|
|
363
|
+
return $(this._config);
|
|
364
|
+
}
|
|
365
|
+
set numericFields(e) {
|
|
366
|
+
typeof e == "string" && (e = [e]),
|
|
367
|
+
(this.layerInfo !== void 0 ? k(this.layerInfo.layerFieldsInfo, e) : !0)
|
|
368
|
+
? (X({
|
|
369
|
+
newNumericFields: e,
|
|
370
|
+
config: this._config,
|
|
371
|
+
layerInfo: this.layerInfo,
|
|
372
|
+
commonStrings: this.commonStrings,
|
|
373
|
+
mode: this._mode,
|
|
374
|
+
}),
|
|
375
|
+
this.dispatchEvent(new CustomEvent("geosceneChartsModelDataChange")))
|
|
376
|
+
: F("error", "pie-chart-model", "Invalid `numericFields`");
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Aggregation type for the pie chart.
|
|
380
|
+
*/
|
|
381
|
+
get aggregationType() {
|
|
382
|
+
return q(this._config, this._mode);
|
|
383
|
+
}
|
|
384
|
+
set aggregationType(e) {
|
|
385
|
+
H({
|
|
386
|
+
newAggregationType: e,
|
|
387
|
+
config: this._config,
|
|
388
|
+
layerInfo: this.layerInfo,
|
|
389
|
+
commonStrings: this.commonStrings,
|
|
390
|
+
mode: this._mode,
|
|
391
|
+
}),
|
|
392
|
+
this.dispatchEvent(new CustomEvent("geosceneChartsModelDataChange"));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Gets the sort order for the pie chart.
|
|
396
|
+
*/
|
|
397
|
+
getSortOrder() {
|
|
398
|
+
return J(this._config, this._mode);
|
|
399
|
+
}
|
|
400
|
+
setSortOrder(e, i) {
|
|
401
|
+
Q({
|
|
402
|
+
newSortOrderKind: e,
|
|
403
|
+
config: this._config,
|
|
404
|
+
orderByList: i,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* List of category's values for custom sort.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* ```ts
|
|
412
|
+
* pieChartModel.orderByList = ["Field1", "Field2", "Field3"];
|
|
413
|
+
* ```
|
|
414
|
+
*/
|
|
415
|
+
get orderByList() {
|
|
416
|
+
return L(this._config, this._mode);
|
|
417
|
+
}
|
|
418
|
+
set orderByList(e) {
|
|
419
|
+
O({
|
|
420
|
+
values: e,
|
|
421
|
+
config: this._config,
|
|
422
|
+
mode: this._mode,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* The pie chart data mode.
|
|
427
|
+
*
|
|
428
|
+
* `category` - The chart is using values from the category field to determine each slice.
|
|
429
|
+
* `fields` - The chart is using aggregated values from the numeric fields to determine each slice.
|
|
430
|
+
*/
|
|
431
|
+
get mode() {
|
|
432
|
+
return this._mode;
|
|
433
|
+
}
|
|
434
|
+
set mode(e) {
|
|
435
|
+
this._mode = e;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Gets the list of the category values for the chart.
|
|
439
|
+
*/
|
|
440
|
+
async getCustomSortValues() {
|
|
441
|
+
const e = _(this._config),
|
|
442
|
+
i = S(this._config.series);
|
|
443
|
+
let o = [];
|
|
444
|
+
return (
|
|
445
|
+
i === h.PieFromFields
|
|
446
|
+
? (o = this.numericFields)
|
|
447
|
+
: e.trim() !== "" &&
|
|
448
|
+
i === h.PieFromCategory &&
|
|
449
|
+
(o = await z({
|
|
450
|
+
category: e,
|
|
451
|
+
config: this._config,
|
|
452
|
+
layerInfo: this.layerInfo,
|
|
453
|
+
})),
|
|
454
|
+
o
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
moveCustomSortValuesInOrderByList(e, i) {
|
|
458
|
+
const o = L(this._config, this._mode),
|
|
459
|
+
[l] = o.splice(e, 1);
|
|
460
|
+
o.splice(i, 0, l),
|
|
461
|
+
O({
|
|
462
|
+
values: o,
|
|
463
|
+
config: this._config,
|
|
464
|
+
mode: this._mode,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
// ---------------------------------------------------------------------------------------------
|
|
468
|
+
// #region Format Props
|
|
469
|
+
// ---------------------------------------------------------------------------------------------
|
|
470
|
+
/**
|
|
471
|
+
* Ticks symbol connecting slices to labels.
|
|
472
|
+
*/
|
|
473
|
+
get ticksSymbol() {
|
|
474
|
+
return Xe(this._config);
|
|
475
|
+
}
|
|
476
|
+
set ticksSymbol(e) {
|
|
477
|
+
qe(e, this._config);
|
|
478
|
+
}
|
|
479
|
+
// ---------------------------------------------------------------------------------------------
|
|
480
|
+
// #region Slices Props
|
|
481
|
+
// ---------------------------------------------------------------------------------------------
|
|
482
|
+
/**
|
|
483
|
+
* Array of slices for the pie chart.
|
|
484
|
+
*/
|
|
485
|
+
get slices() {
|
|
486
|
+
return st(this._config);
|
|
487
|
+
}
|
|
488
|
+
set slices(e) {
|
|
489
|
+
N(e, this._config);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Array of grouped slice ids for the pie chart.
|
|
493
|
+
*/
|
|
494
|
+
get groupedSliceIds() {
|
|
495
|
+
return this._groupedSliceIds;
|
|
496
|
+
}
|
|
497
|
+
set groupedSliceIds(e) {
|
|
498
|
+
this._groupedSliceIds = e;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Slice grouping configuration for the pie chart.
|
|
502
|
+
*/
|
|
503
|
+
get sliceGrouping() {
|
|
504
|
+
return tt(this._config);
|
|
505
|
+
}
|
|
506
|
+
set sliceGrouping(e) {
|
|
507
|
+
x(e, this._config);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Inner radius size for the pie chart.
|
|
511
|
+
*/
|
|
512
|
+
get innerRadiusSize() {
|
|
513
|
+
return de(this._config) ?? 0;
|
|
514
|
+
}
|
|
515
|
+
set innerRadiusSize(e) {
|
|
516
|
+
ue(e, this._config);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Threshold below which slices will be grouped.
|
|
520
|
+
*/
|
|
521
|
+
get groupingThreshold() {
|
|
522
|
+
return I(this._config) ?? 0;
|
|
523
|
+
}
|
|
524
|
+
set groupingThreshold(e) {
|
|
525
|
+
it(e, this._config);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Character limit for the slice labels.
|
|
529
|
+
*/
|
|
530
|
+
get labelCharacterLimit() {
|
|
531
|
+
return fe(this._config) ?? null;
|
|
532
|
+
}
|
|
533
|
+
set labelCharacterLimit(e) {
|
|
534
|
+
he(e, this._config);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Number of decimal places to display in the slice values.
|
|
538
|
+
*/
|
|
539
|
+
get decimalPlaces() {
|
|
540
|
+
return Re(this._config) ?? 1;
|
|
541
|
+
}
|
|
542
|
+
set decimalPlaces(e) {
|
|
543
|
+
Ee(e, this._config);
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
547
|
+
*/
|
|
548
|
+
get displayType() {
|
|
549
|
+
return Me(this._config);
|
|
550
|
+
}
|
|
551
|
+
set displayType(e) {
|
|
552
|
+
We(e, this._config);
|
|
553
|
+
}
|
|
554
|
+
// ---------------------------------------------------------------------------------------------
|
|
555
|
+
// #region Protected methods
|
|
556
|
+
// ---------------------------------------------------------------------------------------------
|
|
557
|
+
/** @private */
|
|
558
|
+
generateDefaultConfig() {
|
|
559
|
+
const e = E(this.commonStrings);
|
|
560
|
+
return (
|
|
561
|
+
(e.series = [j(this.commonStrings, U(this.layerInfo.layer).idField)]), e
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
// ---------------------------------------------------------------------------------------------
|
|
565
|
+
// #region Series Methods
|
|
566
|
+
// ---------------------------------------------------------------------------------------------
|
|
567
|
+
/**
|
|
568
|
+
* Gets the original name of the slice based on the slice index.
|
|
569
|
+
*
|
|
570
|
+
* @param sliceIndex - The index of the slice.
|
|
571
|
+
*/
|
|
572
|
+
getOriginalSliceName(e) {
|
|
573
|
+
return He(e, this._config);
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
577
|
+
*
|
|
578
|
+
* @param sliceIndex - The index of the slice.
|
|
579
|
+
*/
|
|
580
|
+
getSliceName(e) {
|
|
581
|
+
return Je(e, this._config);
|
|
582
|
+
}
|
|
583
|
+
setSliceName(e, i) {
|
|
584
|
+
Qe(e, i, this._config);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
588
|
+
*
|
|
589
|
+
* @param sliceIndex - The index of the slice.
|
|
590
|
+
*/
|
|
591
|
+
getSliceColor(e) {
|
|
592
|
+
return Ye(e, this._config);
|
|
593
|
+
}
|
|
594
|
+
setSliceColor(e, i) {
|
|
595
|
+
Ze(e, i, this._config);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Order of the slice array by returning an array of slice ids
|
|
599
|
+
*/
|
|
600
|
+
get orderOfSlices() {
|
|
601
|
+
return et(this._config);
|
|
602
|
+
}
|
|
603
|
+
set orderOfSlices(e) {
|
|
604
|
+
e !== void 0 && C(e, this._config);
|
|
605
|
+
}
|
|
606
|
+
moveSeries(e, i) {
|
|
607
|
+
const o = this.orderOfSlices;
|
|
608
|
+
if (o !== void 0) {
|
|
609
|
+
const [l] = o.splice(e, 1);
|
|
610
|
+
o.splice(i, 0, l), C(o, this._config);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Gets the slice id for a given slice index. If the index is out of bounds, this function will return `undefined`.
|
|
615
|
+
*
|
|
616
|
+
* @param sliceIndex - The index of the slice.
|
|
617
|
+
*/
|
|
618
|
+
getSliceId(e) {
|
|
619
|
+
return at(e, this._config);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
623
|
+
*
|
|
624
|
+
* @param sliceId - The id of the slice.
|
|
625
|
+
*/
|
|
626
|
+
getSliceIndex(e) {
|
|
627
|
+
return ot(e, this._config);
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Gets the length of the slices array.
|
|
631
|
+
*/
|
|
632
|
+
getSlicesLength() {
|
|
633
|
+
return lt(this._config);
|
|
634
|
+
}
|
|
635
|
+
resetSlices() {
|
|
636
|
+
rt(this._config);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Returns whether the series styling is able to be reset.
|
|
640
|
+
*/
|
|
641
|
+
resetAvailable() {
|
|
642
|
+
const e = !this.colorMatch;
|
|
643
|
+
let i = !1;
|
|
644
|
+
const o = this.slices?.length ?? 0;
|
|
645
|
+
for (let l = 0; l < o; l += 1) {
|
|
646
|
+
const n = this.getOriginalSliceName(l),
|
|
647
|
+
g = this.getSliceName(l);
|
|
648
|
+
if (n !== void 0 && n?.toString() !== g?.toString()) {
|
|
649
|
+
i = !0;
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return (
|
|
654
|
+
this.sliceGrouping?.originalLabel !== void 0 &&
|
|
655
|
+
this.sliceGrouping?.label !== this.sliceGrouping.originalLabel &&
|
|
656
|
+
(i = !0),
|
|
657
|
+
e || i
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Visibility of the ticks.
|
|
662
|
+
*/
|
|
663
|
+
get ticksVisibility() {
|
|
664
|
+
return Ke(this._config);
|
|
665
|
+
}
|
|
666
|
+
set ticksVisibility(e) {
|
|
667
|
+
$e(e, this._config);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Start angle of the pie chart.
|
|
671
|
+
*/
|
|
672
|
+
get startAngle() {
|
|
673
|
+
return D(this._config);
|
|
674
|
+
}
|
|
675
|
+
set startAngle(e) {
|
|
676
|
+
me(e, this._config);
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* End angle of the pie chart.
|
|
680
|
+
*/
|
|
681
|
+
get endAngle() {
|
|
682
|
+
return D(this._config);
|
|
683
|
+
}
|
|
684
|
+
set endAngle(e) {
|
|
685
|
+
ye(e, this._config);
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Whether to display the category on the data label.
|
|
689
|
+
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
690
|
+
*/
|
|
691
|
+
get displayCategoryOnDataLabel() {
|
|
692
|
+
return Se(this._config);
|
|
693
|
+
}
|
|
694
|
+
set displayCategoryOnDataLabel(e) {
|
|
695
|
+
this.guardSetterFromAsyncOverwrite(() => {
|
|
696
|
+
(this._config.series[0].displayCategoryOnDataLabel = e),
|
|
697
|
+
this.emitConfigUpdate("displayCategoryOnDataLabel");
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Display category value on tooltip setting from the chart config.
|
|
702
|
+
*
|
|
703
|
+
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
704
|
+
*/
|
|
705
|
+
get displayCategoryValueOnTooltip() {
|
|
706
|
+
return be(this._config);
|
|
707
|
+
}
|
|
708
|
+
set displayCategoryValueOnTooltip(e) {
|
|
709
|
+
this._config.series[0].displayCategoryOnTooltip = e;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Whether to display the numeric value on the data label.
|
|
713
|
+
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
714
|
+
*/
|
|
715
|
+
get displayNumericValueOnDataLabel() {
|
|
716
|
+
return _e(this._config);
|
|
717
|
+
}
|
|
718
|
+
set displayNumericValueOnDataLabel(e) {
|
|
719
|
+
this.guardSetterFromAsyncOverwrite(() => {
|
|
720
|
+
(this._config.series[0].displayNumericValueOnDataLabel = e),
|
|
721
|
+
this.emitConfigUpdate("displayNumericValueOnDataLabel");
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Whether to display the percentage on the data label.
|
|
726
|
+
*
|
|
727
|
+
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
728
|
+
*/
|
|
729
|
+
get displayPercentageOnDataLabel() {
|
|
730
|
+
return Le(this._config);
|
|
731
|
+
}
|
|
732
|
+
set displayPercentageOnDataLabel(e) {
|
|
733
|
+
this.guardSetterFromAsyncOverwrite(() => {
|
|
734
|
+
(this._config.series[0].displayPercentageOnDataLabel = e),
|
|
735
|
+
this.emitConfigUpdate("displayPercentageOnDataLabel");
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Display numeric value on tooltip setting from the chart config.
|
|
740
|
+
*
|
|
741
|
+
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
742
|
+
*/
|
|
743
|
+
get displayNumericValueOnTooltip() {
|
|
744
|
+
return Oe(this._config);
|
|
745
|
+
}
|
|
746
|
+
set displayNumericValueOnTooltip(e) {
|
|
747
|
+
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Display percentage on tooltip setting from the chart config.
|
|
751
|
+
*
|
|
752
|
+
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
753
|
+
*/
|
|
754
|
+
get displayPercentageOnTooltip() {
|
|
755
|
+
return De(this._config);
|
|
756
|
+
}
|
|
757
|
+
set displayPercentageOnTooltip(e) {
|
|
758
|
+
Ce(e, this._config);
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Prefix of the values of the slices.
|
|
762
|
+
*/
|
|
763
|
+
get valuePrefix() {
|
|
764
|
+
return ve(this._config);
|
|
765
|
+
}
|
|
766
|
+
set valuePrefix(e) {
|
|
767
|
+
Pe(e, this._config);
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Suffix of the values of the slice.
|
|
771
|
+
*/
|
|
772
|
+
get valueSuffix() {
|
|
773
|
+
return Te(this._config);
|
|
774
|
+
}
|
|
775
|
+
set valueSuffix(e) {
|
|
776
|
+
Ve(e, this._config);
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Prefix of the percentages of the slices.
|
|
780
|
+
*/
|
|
781
|
+
get percentagePrefix() {
|
|
782
|
+
return xe(this._config);
|
|
783
|
+
}
|
|
784
|
+
set percentagePrefix(e) {
|
|
785
|
+
Ie(e, this._config);
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Suffix of the percentages of the slices.
|
|
789
|
+
*/
|
|
790
|
+
get percentageSuffix() {
|
|
791
|
+
return Ne(this._config);
|
|
792
|
+
}
|
|
793
|
+
set percentageSuffix(e) {
|
|
794
|
+
Fe(e, this._config);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Offset for the data labels.
|
|
798
|
+
*/
|
|
799
|
+
get dataLabelsOffset() {
|
|
800
|
+
return ze(this._config);
|
|
801
|
+
}
|
|
802
|
+
set dataLabelsOffset(e) {
|
|
803
|
+
Be(e, this._config);
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
807
|
+
*/
|
|
808
|
+
get alignDataLabels() {
|
|
809
|
+
return Ae(this._config);
|
|
810
|
+
}
|
|
811
|
+
set alignDataLabels(e) {
|
|
812
|
+
we(e, this._config);
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Setting for placing the data labels inside of the slices.
|
|
816
|
+
*/
|
|
817
|
+
get dataLabelsInside() {
|
|
818
|
+
return Ge(this._config);
|
|
819
|
+
}
|
|
820
|
+
set dataLabelsInside(e) {
|
|
821
|
+
ke(e, this._config);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Optimize data labels overlapping setting for the pie chart.
|
|
825
|
+
*/
|
|
826
|
+
get optimizeDataLabelsOverlapping() {
|
|
827
|
+
return je(this._config);
|
|
828
|
+
}
|
|
829
|
+
set optimizeDataLabelsOverlapping(e) {
|
|
830
|
+
Ue(e, this._config);
|
|
831
|
+
}
|
|
832
|
+
// ---------------------------------------------------------------------------------------------
|
|
833
|
+
// #region General Props
|
|
834
|
+
// ---------------------------------------------------------------------------------------------
|
|
835
|
+
/**
|
|
836
|
+
* Generate the proper chart title given the current config.
|
|
837
|
+
*/
|
|
838
|
+
generateChartTitle() {
|
|
839
|
+
return Y({
|
|
840
|
+
config: this._config,
|
|
841
|
+
layerInfo: this.layerInfo,
|
|
842
|
+
commonStrings: this.commonStrings,
|
|
843
|
+
mode: this._mode,
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
a([s], r.prototype, "category");
|
|
848
|
+
a([s], r.prototype, "numericFields");
|
|
849
|
+
a([s], r.prototype, "aggregationType");
|
|
850
|
+
a([s], r.prototype, "setSortOrder");
|
|
851
|
+
a([s], r.prototype, "orderByList");
|
|
852
|
+
a([s], r.prototype, "mode");
|
|
853
|
+
a([s], r.prototype, "moveCustomSortValuesInOrderByList");
|
|
854
|
+
a([s], r.prototype, "ticksSymbol");
|
|
855
|
+
a([s], r.prototype, "slices");
|
|
856
|
+
a([s], r.prototype, "groupedSliceIds");
|
|
857
|
+
a([s], r.prototype, "sliceGrouping");
|
|
858
|
+
a([s], r.prototype, "innerRadiusSize");
|
|
859
|
+
a([s], r.prototype, "groupingThreshold");
|
|
860
|
+
a([s], r.prototype, "labelCharacterLimit");
|
|
861
|
+
a([s], r.prototype, "decimalPlaces");
|
|
862
|
+
a([s], r.prototype, "displayType");
|
|
863
|
+
a([s], r.prototype, "setSliceName");
|
|
864
|
+
a([s], r.prototype, "setSliceColor");
|
|
865
|
+
a([s], r.prototype, "orderOfSlices");
|
|
866
|
+
a([s], r.prototype, "moveSeries");
|
|
867
|
+
a([s], r.prototype, "resetSlices");
|
|
868
|
+
a([s], r.prototype, "ticksVisibility");
|
|
869
|
+
a([s], r.prototype, "startAngle");
|
|
870
|
+
a([s], r.prototype, "endAngle");
|
|
871
|
+
a([s], r.prototype, "displayCategoryValueOnTooltip");
|
|
872
|
+
a([s], r.prototype, "displayNumericValueOnTooltip");
|
|
873
|
+
a([s], r.prototype, "displayPercentageOnTooltip");
|
|
874
|
+
a([s], r.prototype, "valuePrefix");
|
|
875
|
+
a([s], r.prototype, "valueSuffix");
|
|
876
|
+
a([s], r.prototype, "percentagePrefix");
|
|
877
|
+
a([s], r.prototype, "percentageSuffix");
|
|
878
|
+
a([s], r.prototype, "dataLabelsOffset");
|
|
879
|
+
a([s], r.prototype, "alignDataLabels");
|
|
880
|
+
a([s], r.prototype, "dataLabelsInside");
|
|
881
|
+
a([s], r.prototype, "optimizeDataLabelsOverlapping");
|
|
882
|
+
const ct = [u, W, A, w, G];
|
|
883
|
+
P(r, ct);
|
|
884
|
+
export { r as PieChartModel };
|