@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,347 @@
|
|
|
1
|
+
import type { ChartElementLimit } from "../defaults/interfaces.js";
|
|
2
|
+
import type { SelectionData, ChartSubType } from "./interfaces.js";
|
|
3
|
+
import type { WebChartSortOrderKinds, WebChartTemporalBinningUnits, WebChartTypes, WebChartStackedKinds } from "../../spec/chart-object-literals.js";
|
|
4
|
+
import type { WebBoxPlot, WebChart, WebChartSeries, WebChartSeriesType } from "../../spec/web-chart.js";
|
|
5
|
+
import type { IField } from "../../spec/rest-js-types.js";
|
|
6
|
+
import type { WebChartDataItem, WebChartDataItemValue } from "../../spec/data-source.js";
|
|
7
|
+
import type { OverlayTerms, LegendItemVisibility } from "../../spec/events.js";
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type XYChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type SerialChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.RadarSeries;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type SupportedChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ChartTypes = Extract<WebChartTypes, WebChartType>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type XYChartTypes = Extract<WebChartTypes, XYChartType>;
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type SerialChartTypes = Extract<WebChartTypes, SerialChartType>;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type SupportedCharts = Extract<ChartTypes, SupportedChartType>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Returns the color policy for the chart. If it's not defined, `WebChartColoringPatterns.Single` will be used.
|
|
32
|
+
*
|
|
33
|
+
* @param chartConfig - the chart config.
|
|
34
|
+
* @returns the color policy.
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export function getColorMatch(chartConfig?: WebChart): boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Indicates whether or not the chart is rotated.
|
|
41
|
+
*
|
|
42
|
+
* @param chartConfig - the chart config.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export function isChartRotated(chartConfig?: WebChart): boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Getting the list of series types from a series config array.
|
|
49
|
+
*
|
|
50
|
+
* @param chartSeries - The array of chart's series
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export function getSeriesTypes(chartSeries?: WebChartSeries[]): ChartTypes[];
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Returns the type of stacking (side-by-side, stacked...) to be used to display the chart.
|
|
57
|
+
* For Line, Bar, Box-plot, and Radar chart, default option is 'sideBySide'
|
|
58
|
+
*
|
|
59
|
+
* @param config
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
export function getStackedType(config?: WebChart): WebChartStackedKinds | undefined;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Escapes any single quote in the input string with a single quote for SQL.
|
|
66
|
+
* For example: Cote d'Ivoire -> Cote d''Ivoire
|
|
67
|
+
*
|
|
68
|
+
* @param string - input string to replace for any special characters.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export function escapeSQLString(string: string): string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Normalizes a string by
|
|
75
|
+
* - trimming off white spaces
|
|
76
|
+
* - if the value is a string and keepSurroundingQuotes is not true: stripping ' (single inverted comma), if present on both sides
|
|
77
|
+
* - if escape is true (or undefined): escaping special characters like ", \, /.
|
|
78
|
+
* E.g.:
|
|
79
|
+
* "'alpha'" => "alpha"
|
|
80
|
+
* "'alpha" => No change
|
|
81
|
+
* "alpha'" => No change
|
|
82
|
+
* "alp'ha'" => alp''ha
|
|
83
|
+
* " 'alpha'" => "alpha"
|
|
84
|
+
* "alp"\/ha" => "alp\"\\\/ha"
|
|
85
|
+
*
|
|
86
|
+
* @param props - The string to normalize
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
export function normalizeString(props: {
|
|
90
|
+
value: string;
|
|
91
|
+
keepSurroundingQuotes?: boolean;
|
|
92
|
+
escape?: boolean;
|
|
93
|
+
}): string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Indicates whether a chart respects the number limit of elements (bars, markers, cells or slices).
|
|
97
|
+
* For bar chart, different limits are set according to the number of series.
|
|
98
|
+
* For line chart, a limit on the number of series and the total number of markers are set.
|
|
99
|
+
* For heat chart, a limit on the number of cells is set.
|
|
100
|
+
* For pie chart, a limit on the number of slices is set.
|
|
101
|
+
*
|
|
102
|
+
* @param props - Number total of elements on the chart
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
export function isNumberOfElementsUnderLimit(props: {
|
|
106
|
+
count: number;
|
|
107
|
+
seriesCount: number;
|
|
108
|
+
chartType?: WebChartTypes;
|
|
109
|
+
chartLimits?: ChartElementLimit;
|
|
110
|
+
}): boolean;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns the alias for the field name if it exists; otherwise return the field name itself.
|
|
114
|
+
*
|
|
115
|
+
* @param fields - The field name to look for in the field array
|
|
116
|
+
* @param fieldName - The list of fields containing all the information regarding the fields, including the alias
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
export function getFieldAlias(fields: IField[] | undefined, fieldName: string): string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param fields
|
|
123
|
+
* @param fieldName
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
export function getFieldAlias(fields: IField[] | undefined, fieldName: undefined): undefined;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param fields
|
|
130
|
+
* @param fieldName
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
export function getFieldAlias(fields: IField[] | undefined, fieldName: string | undefined): string | undefined;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @param fields
|
|
137
|
+
* @param fieldName
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
export function getFieldAlias(fields: IField[] | undefined, fieldName: string | undefined): string | undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Return the field name for the field alias if it exists; otherwise return the field alias itself.
|
|
144
|
+
*
|
|
145
|
+
* @param fields - The field alias to look for in the field array
|
|
146
|
+
* @param fieldAlias - The list of fields containing all the information regarding the fields, including the alias
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
export function getFieldNameFromFieldAlias(fields: IField[] | undefined, fieldAlias: string): string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Decides whether we can show the legend or not. If it returns `false`, then we should not show the legend even if `legend.visible` is `true`.
|
|
153
|
+
* For Pie charts, hide the legend when there is only one slice.
|
|
154
|
+
*
|
|
155
|
+
* @param chartSeries
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
export function canShowLegend(chartSeries: WebChartSeries[]): boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Based on a provided list of supported chart types, this function returns a boolean indicating if the config
|
|
162
|
+
* contains supported series. An extra test is done for the scatterplot, pie, and histogram series.
|
|
163
|
+
*
|
|
164
|
+
* @param supportedChartTypes - The list of supported chart types
|
|
165
|
+
* @param config - The chart's config
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
export function isSupportedChart(supportedChartTypes: WebChartTypes[], config?: WebChart): boolean;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Indicates whether a string field is empty (different from undefined, null and empty string).
|
|
172
|
+
* The value is stringified before being trimmed to debunk edge cases like when the value is a numeric value.
|
|
173
|
+
*
|
|
174
|
+
* @param value - The value to test
|
|
175
|
+
* @returns `true` if empty, `false` otherwise
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
export function isEmptyStringField(value: string | null | undefined): boolean;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Indicates whether an object contains a property key from list of properties.
|
|
182
|
+
*
|
|
183
|
+
* @param data - the object to look into
|
|
184
|
+
* @param propertyList - the array of property keys to search the data if one of them is present.
|
|
185
|
+
* @returns An object containing a boolean indicating the propertyList presence, and the property key that matched
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export function isPropertyKeyInData<T extends WebChartDataItem>(data: T, propertyList: string[]): {
|
|
189
|
+
isInItem: boolean;
|
|
190
|
+
expr?: string;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Indicates whether an object contains the result of a calculated expression coming from a
|
|
195
|
+
* query (similar to "EXPR_1").
|
|
196
|
+
*
|
|
197
|
+
* @param dataItem - the object to look into
|
|
198
|
+
* @returns An object containing a boolean indicating the expression's presence, and the expression key that matched
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
export function isQueryCalculatedExprInItem(dataItem: WebChartDataItem): {
|
|
202
|
+
isInItem: boolean;
|
|
203
|
+
expr?: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Finds localized string for the given `WebChartTemporalBinningUnits` unit type.
|
|
208
|
+
*
|
|
209
|
+
* @param unit
|
|
210
|
+
* @param strings
|
|
211
|
+
* @returns Localized unit type label
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
export function getTimeIntervalUnitLabel(unit: WebChartTemporalBinningUnits, strings: {
|
|
215
|
+
seconds?: string;
|
|
216
|
+
minutes?: string;
|
|
217
|
+
hours?: string;
|
|
218
|
+
days?: string;
|
|
219
|
+
weeks?: string;
|
|
220
|
+
months?: string;
|
|
221
|
+
years?: string;
|
|
222
|
+
}): string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Returns the appropriate `index` to fetch the default color from `overlayRamp[]` array for a histogram overlay
|
|
226
|
+
*
|
|
227
|
+
* @param overlayType
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
export function getOverlayColorIndex(overlayType: OverlayTerms | undefined): number;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Assigns visible property to a series or an overlay
|
|
234
|
+
*
|
|
235
|
+
* @param event - The config that gets updated for each series visibility
|
|
236
|
+
* @param config - The event that is currently being called
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
export function updateSeriesVisibility(event: Pick<CustomEvent<LegendItemVisibility>, "detail">, config?: WebBoxPlot | WebChart): void;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Sanitize an HTML string to prevent XSS attacks (https://owasp.org/www-community/attacks/xss/)
|
|
243
|
+
*
|
|
244
|
+
* @param inputToSanitize - The HTML string to sanitize
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* .
|
|
251
|
+
* Indicates if a provided number value is valid.
|
|
252
|
+
* An invalid value is: undefined | NaN | Infinite | -Infinite | null
|
|
253
|
+
* See for more details:
|
|
254
|
+
* - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite
|
|
255
|
+
* - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
256
|
+
*
|
|
257
|
+
* @param value
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
export function isValidNumber(value: WebChartDataItemValue): boolean;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Gets the sorting field or (sorting type for box-plot) and orderBy from an input string.
|
|
264
|
+
*
|
|
265
|
+
* @param stringToParse - The input string to parse, like `orderByField` of a query clause or `orderDataBy` property of a chart config.
|
|
266
|
+
* @param useDefault - If set to `false`, the default sort order will not be used.
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
export function getOrderByComponents(stringToParse: string, useDefault?: boolean): {
|
|
270
|
+
fieldToSort: string;
|
|
271
|
+
orderBy?: WebChartSortOrderKinds;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Gets the fields listed in the `orderByFields` property of a chart config.
|
|
276
|
+
*
|
|
277
|
+
* @param chartConfig - The chart config
|
|
278
|
+
* @returns The list of fields to sort by
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
export function getOrderByFields(chartConfig: WebChart): string[];
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Determines if certain chart subtype is a split by chart.
|
|
285
|
+
*
|
|
286
|
+
* @param chartSubType - The chart subtype
|
|
287
|
+
* @returns `true` if the chart subtype is a split by chart, `false` otherwise
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
export function isSplitByChart(chartSubType: ChartSubType): boolean;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Util function to know if the selection data changed.
|
|
294
|
+
* The selection items and selection OIDs are compared, not the selection source nor the selection indexes.
|
|
295
|
+
*
|
|
296
|
+
* @param selectionA - The first selection data
|
|
297
|
+
* @param selectionB - The second selection data
|
|
298
|
+
* @returns a boolean indicating whether the two selections are equal
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
301
|
+
export function hasSelectionChanged(selectionA?: SelectionData, selectionB?: SelectionData): boolean;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Indicates whether the selection data is empty.
|
|
305
|
+
*
|
|
306
|
+
* @param selectionData - The selection data to check
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
export function isSelectionEmpty(selectionData: SelectionData | undefined): boolean;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Sorts `arrayA` based on the indexes of the elements in `arrayB`.
|
|
313
|
+
*
|
|
314
|
+
* @param props - The array to be sorted
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
export function sortArrayAUsingArrayB<T, K>(props?: {
|
|
318
|
+
arrayA: T[];
|
|
319
|
+
arrayB: T[];
|
|
320
|
+
getKey: (item: T) => K;
|
|
321
|
+
}): T[];
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Gets the display x field for a chart subtype.
|
|
325
|
+
*
|
|
326
|
+
* @param chartSubType - The chart subtype.
|
|
327
|
+
* @param series - The series.
|
|
328
|
+
* @returns The default x field.
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
export function getDisplayXField(chartSubType: ChartSubType, series?: WebChartSeriesType): string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Determines if an RGBA color is light or dark, considering opacity.
|
|
335
|
+
*
|
|
336
|
+
* @param props - Red (0-255)
|
|
337
|
+
* @returns boolean
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
export function isColorLight(props: {
|
|
341
|
+
r: number;
|
|
342
|
+
g: number;
|
|
343
|
+
b: number;
|
|
344
|
+
a?: number;
|
|
345
|
+
}): boolean;
|
|
346
|
+
|
|
347
|
+
export type WebChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.GaugeSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { WebChartHeatChartHeatRulesTypes } from "../../spec/chart-object-literals.js";
|
|
2
|
+
import type { WebChartDataItem } from "../../spec/data-source.js";
|
|
3
|
+
import type { Color, ISimpleFillSymbol, ISimpleLineSymbol, ISimpleMarkerSymbol } from "../../spec/rest-js-types.js";
|
|
4
|
+
import type { WebChartPieChartGroupSlice, WebChartPieChartSlice } from "../../spec/web-chart.js";
|
|
5
|
+
|
|
6
|
+
export const ChartSubType: {
|
|
7
|
+
readonly NonSpecific: "nonSpecific";
|
|
8
|
+
readonly BarAndLineNoAggregation: "barAndLineNoAggregation";
|
|
9
|
+
readonly BarAndLineMonoField: "barAndLineMonoField";
|
|
10
|
+
readonly BarAndLineMultiFields: "barAndLineMultiFields";
|
|
11
|
+
readonly BarAndLineFromFields: "barAndLineFromFields";
|
|
12
|
+
readonly BarAndLineSplitBy: "barAndLineSplitBy";
|
|
13
|
+
readonly BarAndLineSplitByNoAggregation: "barAndLineSplitByNoAggregation";
|
|
14
|
+
readonly PieNoAggregation: "pieNoAggregation";
|
|
15
|
+
readonly PieFromCategory: "pieFromCategory";
|
|
16
|
+
readonly PieFromFields: "pieFromFields";
|
|
17
|
+
readonly BoxPlotMonoField: "boxPlotMonoField";
|
|
18
|
+
readonly BoxPlotMultiFields: "boxPlotMultiFields";
|
|
19
|
+
readonly BoxPlotMonoFieldAndCategory: "boxPlotMonoFieldAndCategory";
|
|
20
|
+
readonly BoxPlotMultiFieldsAndCategory: "boxPlotMultiFieldsAndCategory";
|
|
21
|
+
readonly BoxPlotMonoFieldAndSplitBy: "boxPlotMonoFieldAndSplitBy";
|
|
22
|
+
readonly BoxPlotMultiFieldsAndSplitBy: "boxPlotMultiFieldsAndSplitBy";
|
|
23
|
+
readonly BoxPlotMonoFieldAndCategoryAndSplitBy: "boxPlotMonoFieldAndCategoryAndSplitBy";
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type ChartSubType = (typeof ChartSubType)[keyof typeof ChartSubType];
|
|
27
|
+
|
|
28
|
+
export const SelectionSource: {
|
|
29
|
+
readonly SelectionByClick: "SelectionByClick";
|
|
30
|
+
readonly SelectionByRange: "SelectionByRange";
|
|
31
|
+
readonly ProgrammaticSelection: "ProgrammaticSelection";
|
|
32
|
+
readonly ClearSelection: "ClearSelection";
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type SelectionSource = (typeof SelectionSource)[keyof typeof SelectionSource];
|
|
36
|
+
|
|
37
|
+
export type SelectionIndexes = Map<number, { indexesToSelect?: number[]; }>;
|
|
38
|
+
|
|
39
|
+
export interface SelectionData {
|
|
40
|
+
selectionItems?: WebChartDataItem[];
|
|
41
|
+
selectionIndexes?: SelectionIndexes;
|
|
42
|
+
selectionOIDs?: (number | string)[];
|
|
43
|
+
selectionSource?: SelectionSource;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface SelectionThemeProperties {
|
|
47
|
+
elementColor?: Color;
|
|
48
|
+
elementOutlineColor?: Color;
|
|
49
|
+
elementOutlineWidth?: number;
|
|
50
|
+
rotation?: number;
|
|
51
|
+
transformation?: {
|
|
52
|
+
opacity?: number;
|
|
53
|
+
scale?: number;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SelectionTheme {
|
|
58
|
+
selectedElementsTheme?: SelectionThemeProperties;
|
|
59
|
+
nonSelectedElementsTheme?: SelectionThemeProperties;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface LoaderColors {
|
|
63
|
+
curtainColor?: Color;
|
|
64
|
+
spinnerColor?: Color;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface HeatSeriesColorChangePayload {
|
|
68
|
+
heatRulesType?: WebChartHeatChartHeatRulesTypes;
|
|
69
|
+
seriesColors?: HeatSeriesColorChangePayloadClassSymbols[] | HeatSeriesColorChangePayloadGradient;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface HeatSeriesColorChangePayloadGradient {
|
|
73
|
+
startColor: readonly [number, number, number, number];
|
|
74
|
+
endColor: readonly [number, number, number, number];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type HeatSeriesColorChangePayloadClassSymbols = {
|
|
78
|
+
label: string;
|
|
79
|
+
symbol: ISimpleFillSymbol;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type BoxPlotSymbols = { fillSymbol?: ISimpleFillSymbol; } | {
|
|
83
|
+
lineSymbol: ISimpleLineSymbol;
|
|
84
|
+
markerSymbol?: ISimpleMarkerSymbol;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type LineChartSymbols = {
|
|
88
|
+
lineSymbol: ISimpleLineSymbol;
|
|
89
|
+
markerSymbol?: ISimpleMarkerSymbol;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type SeriesSymbols = BoxPlotSymbols | ISimpleFillSymbol | ISimpleLineSymbol | ISimpleMarkerSymbol | LineChartSymbols | PieSlicesSymbols;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Type used to provide information regarding a pie chart's slices:
|
|
96
|
+
* - `slices` contains an array of `WebChartPieChartSlice` related to the non-grouped slices.
|
|
97
|
+
* - `groupedSlices` contains an array of `WebChartPieChartSlice` related to the non-visible grouped slices.
|
|
98
|
+
* - `groupOfSlices` contains a `WebChartPieChartSlice`related to the group of slices.
|
|
99
|
+
*
|
|
100
|
+
* The `WebChartPieChartSlice` contains information regarding a slice's id, symbol and label.
|
|
101
|
+
*/
|
|
102
|
+
export type PieSlicesSymbols = {
|
|
103
|
+
slices: WebChartPieChartSlice[];
|
|
104
|
+
groupedSlices?: WebChartPieChartSlice[];
|
|
105
|
+
groupOfSlices?: WebChartPieChartGroupSlice;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Map containing a chart's series symbols.
|
|
110
|
+
* The numeric key is the series' position in the series array.
|
|
111
|
+
* The value is either:
|
|
112
|
+
* - A fill symbol (bar chart and histogram).
|
|
113
|
+
* - A marker symbol (scatterplot).
|
|
114
|
+
* - An object containing a line symbol and a marker symbol (line chart).
|
|
115
|
+
*/
|
|
116
|
+
export type SeriesSymbolsMap = Map<number, SeriesSymbols | undefined>;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import type { ModelTypes } from "../../model/interfaces/common.js";
|
|
2
|
+
import type { WebChartStackedKinds } from "../../spec/chart-object-literals.js";
|
|
3
|
+
import type { WebChartDataTypes, WebChartGenericDataItem, WebChartHistogramDataItem, WebChartScatterplotDataItem } from "../../spec/data-source.js";
|
|
4
|
+
import type { IFeatureLayer, ISimpleFillSymbol, ISimpleLineSymbol, ISimpleMarkerSymbol } from "../../spec/rest-js-types.js";
|
|
5
|
+
import type { CategoryFormatOptions, DateTimeFormatOptions, NumberFormatOptions, WebBoxPlot, WebChart, WebChartBarChartSeries, WebChartBoxPlotSeries, WebChartHeatChartSeries, WebChartLineChartSeries, WebChartRadarChartSeries, WebChartSeries, WebChartTextSymbol, WebGaugeChart, WebHeatChart } from "../../spec/web-chart.js";
|
|
6
|
+
import type { ChartTypes } from "../misc/index.js";
|
|
7
|
+
import type { ChartConfig } from "../types/index.js";
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type StringIndexable<T> = Record<string, unknown>
|
|
11
|
+
& T;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Web chart series with rotated property
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export type WebChartSeriesWithRotatedProp = WebChartSeries
|
|
19
|
+
& {
|
|
20
|
+
rotated?: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Check if the chart config supports rotation or not.
|
|
25
|
+
*
|
|
26
|
+
* @param config - the chart config
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export function isRotationSupported(config: WebChart): config is WebChart & { series: WebChartSeriesWithRotatedProp[]; };
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Web chart series with stackedType property
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export type WebChartSeriesWithStackedTypeProp = WebChartSeries
|
|
37
|
+
& {
|
|
38
|
+
stackedType?: WebChartStackedKinds;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Check if the chart config supports rotation or not.
|
|
43
|
+
*
|
|
44
|
+
* @param config - the chart config
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export function isStackedTypeSupported(config: WebChart): config is WebChart & { series: WebChartSeriesWithStackedTypeProp[]; };
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Type guard for `ISimpleFillSymbol`
|
|
51
|
+
*
|
|
52
|
+
* @param symbol
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export function isSFS(symbol: any): symbol is ISimpleFillSymbol;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Type guard for `ISimpleLineSymbol`
|
|
59
|
+
*
|
|
60
|
+
* @param symbol
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export function isSLS(symbol: any): symbol is ISimpleLineSymbol;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Type guard for `ISimpleMarkerSymbol`
|
|
67
|
+
*
|
|
68
|
+
* @param symbol
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export function isSMS(symbol: any): symbol is ISimpleMarkerSymbol;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Type guard for `WebChartTextSymbol`
|
|
75
|
+
*
|
|
76
|
+
* @param symbol
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export function isWebChartTextSymbol(symbol: any): symbol is WebChartTextSymbol;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Determines if the provided `config` has a `iLayer` property.
|
|
83
|
+
*
|
|
84
|
+
* @param config
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export function hasILayer<T extends ModelTypes>(config: ChartConfig<T> | undefined): config is ChartConfig<T, T extends "boxPlot" ? WebBoxPlot : T extends "gauge" ? WebGaugeChart : T extends "heatChart" ? WebHeatChart : WebChart>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @param config
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
export function hasILayer(config: WebChart | undefined): config is WebChart & { iLayer: IFeatureLayer; };
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @param config
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
export function hasILayer<T extends ModelTypes>(config: ChartConfig<T> | undefined): unknown;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Determines if the provided `config` is the specified chart type `T`.
|
|
103
|
+
*
|
|
104
|
+
* @param config - The chart config to check.
|
|
105
|
+
* @param chartType - The chart type to check against.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
export function isChartType<T extends ChartConfig>(config: WebChart | undefined, chartType: ChartTypes | undefined): config is T;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Determines if the series is a box plot series.
|
|
112
|
+
*
|
|
113
|
+
* @param series - The series to check.
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
export function isBoxPlotSeries(series: WebChartSeries | undefined): series is WebChartBoxPlotSeries;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Determines if the series is a line chart series.
|
|
120
|
+
*
|
|
121
|
+
* @param series - The series to check.
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
export function isLineChartSeries(series: WebChartSeries | undefined): series is WebChartLineChartSeries;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Determines if the series is a radar chart series.
|
|
128
|
+
*
|
|
129
|
+
* @param series - The series to check.
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
export function isRadarChartSeries(series: WebChartSeries | undefined): series is WebChartRadarChartSeries;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Determines if the series is a bar chart series.
|
|
136
|
+
*
|
|
137
|
+
* @param series - The series to check.
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
export function isBarChartSeries(series: WebChartSeries | undefined): series is WebChartBarChartSeries;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Determines if the series is a heat chart series.
|
|
144
|
+
*
|
|
145
|
+
* @param series - | undefined} series The series to check.
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
export function isHeatChartSeries(series: WebChartSeries | undefined): series is WebChartHeatChartSeries;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Type guard to check if the series is a `BarChartSeries`.
|
|
152
|
+
*
|
|
153
|
+
* @param series - The series to check.
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
export function isBarChartSeriesArray(series: WebChartSeries[]): series is WebChartBarChartSeries[];
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Type guard to check if the series is a `LineChartSeries`.
|
|
160
|
+
*
|
|
161
|
+
* @param series - The series to check.
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
export function isLineChartSeriesArray(series: WebChartSeries[]): series is WebChartLineChartSeries[];
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Type guard to check if the series is a `RadarChartSeries`.
|
|
168
|
+
*
|
|
169
|
+
* @param series - The series to check.
|
|
170
|
+
* @internal
|
|
171
|
+
*/
|
|
172
|
+
export function isRadarChartSeriesArray(series: WebChartSeries[]): series is WebChartRadarChartSeries[];
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Type guard to check if the series is a HeatChartSeries.
|
|
176
|
+
*
|
|
177
|
+
* @param series - series - The series to check.
|
|
178
|
+
* @returns {series is WebChartHeatChartSeries[]}
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
export function isHeatChartSeriesArray(series: WebChartSeries[]): series is WebChartHeatChartSeries[];
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Determines if the series array is of type box plot series.
|
|
185
|
+
*
|
|
186
|
+
* @param series - The series to check.
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
export function isBoxPlotSeriesArray(series: WebChartSeries[]): series is WebChartBoxPlotSeries[];
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Type guard for axis format being `NumberFormatOptions`
|
|
193
|
+
*
|
|
194
|
+
* @param valueFormat - valueFormat to check
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
export function isNumberFormatOptions(valueFormat: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined): valueFormat is NumberFormatOptions;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Type guard for `WebChartDataTypes` being `WebChartHistogramDataItem`.
|
|
201
|
+
*
|
|
202
|
+
* @param data - dataItem to check
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
export function isWebChartHistogramDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartHistogramDataItem | undefined;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Type guard for `WebChartDataTypes` being `WebChartGenericDataItem`.
|
|
209
|
+
*
|
|
210
|
+
* @param data - dataItem to check
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
export function isWebChartGenericDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartGenericDataItem | undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Type guard for `WebChartDataTypes` being `WebChartScatterplotDataItem`.
|
|
217
|
+
*
|
|
218
|
+
* @param data - dataItem to check
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
export function isWebChartScatterplotDataItemOrUndefined(data: WebChartDataTypes | undefined): data is WebChartScatterplotDataItem | undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* TODO: Once charts-shared-utils is merged into charts-components, we can create a more official version of this type-guard using the AmCharts types.
|
|
225
|
+
*
|
|
226
|
+
* @param axisDataItem
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
export function isValueAxisDataItem<T extends object>(axisDataItem: T): axisDataItem is T & { value: number; };
|