@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,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class that enhances the debugging and error handling process. Rather than returning a generic [JavaScript
|
|
3
|
+
* error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error), this class returns a standardized error object with several properties.
|
|
4
|
+
*/
|
|
5
|
+
export class GeosceneChartsError<T = any> extends Error {
|
|
6
|
+
/** Creates a new `GeosceneChartsError` instance. */
|
|
7
|
+
constructor(name: string, message?: string, details?: T);
|
|
8
|
+
/**
|
|
9
|
+
* The details object provides additional details specific to the error,
|
|
10
|
+
* giving more information about why the error was raised.
|
|
11
|
+
*
|
|
12
|
+
* For example, the details object includes additional information to help the developer diagnose issues with a problematic request.
|
|
13
|
+
*/
|
|
14
|
+
details?: T;
|
|
15
|
+
/** A unique error name. This can be used to map to a localized error message to present to the user. */
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const ErrorKeywords: {
|
|
2
|
+
readonly Default: "defaultError";
|
|
3
|
+
readonly LayerLoadFailure: "layerLoadFailure";
|
|
4
|
+
readonly QueryFeaturesError: "queryFeaturesError";
|
|
5
|
+
readonly ChartDisposed: "ChartDisposeError";
|
|
6
|
+
readonly LayerFieldsNotFound: "layerFieldsNotFound";
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type ErrorKeywords = (typeof ErrorKeywords)[keyof typeof ErrorKeywords];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export * from "./chart-config/converter/index";
|
|
2
|
+
export * from "./chart-config/interfaces";
|
|
3
|
+
export * from "./chart-config/utils/index";
|
|
4
|
+
export * from "./chart-config/utils/interfaces";
|
|
5
|
+
export * from "./chart-config/validator/index";
|
|
6
|
+
export * from "./chart-config/validator/interfaces";
|
|
7
|
+
export * from "./cursor/interfaces";
|
|
8
|
+
export * from "./data/index";
|
|
9
|
+
export * from "./data/categorical-data/index";
|
|
10
|
+
export * from "./data/interfaces";
|
|
11
|
+
export * from "./data/time-binning/interfaces";
|
|
12
|
+
export * from "./defaults/index";
|
|
13
|
+
export * from "./defaults/interfaces";
|
|
14
|
+
export * from "./errors/index";
|
|
15
|
+
export * from "./errors/interfaces";
|
|
16
|
+
export * from "./layer/index";
|
|
17
|
+
export * from "./layer/inline-conversion/index";
|
|
18
|
+
export type * from "./layer/inline-conversion/interfaces";
|
|
19
|
+
export type * from "./layer/interfaces";
|
|
20
|
+
export * from "./layer/query-features/index";
|
|
21
|
+
export * from "./layer/query-features/interfaces";
|
|
22
|
+
export * from "./layer/query-parser/index";
|
|
23
|
+
export * from "./layer/utils/index";
|
|
24
|
+
export * from "./localization/index";
|
|
25
|
+
export * from "./localization/interfaces";
|
|
26
|
+
export * from "./misc/index";
|
|
27
|
+
export * from "./misc/interfaces";
|
|
28
|
+
export * from "./type-guards/index";
|
|
29
|
+
export * from "./types/index";
|
|
30
|
+
export * from "./ui/chart-ui-utils";
|
|
31
|
+
export * from "./ui/popover-ui-utils";
|
|
32
|
+
export * from "./type-guards/series-types";
|
|
33
|
+
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import type FeatureLayer from "@geoscene/core/layers/FeatureLayer.js";
|
|
2
|
+
import type Renderer from "@geoscene/core/renderers/Renderer.js";
|
|
3
|
+
import type FeatureLayerView from "@geoscene/core/views/layers/FeatureLayerView.js";
|
|
4
|
+
import type MapView from "@geoscene/core/views/MapView.js";
|
|
5
|
+
import type SceneView from "@geoscene/core/views/SceneView.js";
|
|
6
|
+
import type { SupportedLayer } from "../../interfaces.js";
|
|
7
|
+
import type {
|
|
8
|
+
QueryObject,
|
|
9
|
+
QueryObjectProps,
|
|
10
|
+
RendererInfo,
|
|
11
|
+
SubtypeInfo,
|
|
12
|
+
} from "./interfaces.js";
|
|
13
|
+
import type { IFeatureLayer, IField } from "../../spec/rest-js-types.js";
|
|
14
|
+
import type {
|
|
15
|
+
WebChart,
|
|
16
|
+
WebChartDataFilters,
|
|
17
|
+
WebChartQuery,
|
|
18
|
+
} from "../../spec/web-chart.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns the renderer type and the field and normalization field if applicable.
|
|
22
|
+
*
|
|
23
|
+
* @param layerRenderer
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export function getRendererInfo(layerRenderer?: Renderer): RendererInfo;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Function creating a FeatureLayer from a set of parameters.
|
|
30
|
+
* It returns the created Feature Layer.
|
|
31
|
+
* It is memoized (cached) to avoid multiple requests for a same feature layer.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export const getFeatureLayer: (
|
|
36
|
+
featureLayer: IFeatureLayer
|
|
37
|
+
) => Promise<FeatureLayer>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns the proper query object to use according to the situation.
|
|
41
|
+
* If can return either a FeatureLayer or a FeatureLayerView (and possibly nothing)
|
|
42
|
+
*
|
|
43
|
+
* @param props
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export function getQueryObject(props: QueryObjectProps): Promise<QueryObject>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Fetches all the fields info a feature layer.
|
|
50
|
+
*
|
|
51
|
+
* @param queryObject
|
|
52
|
+
* @param usePopupTemplateFieldsInfo - whether to use the aliases from the popupTemplate
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export function fetchLayerFieldsInfo(
|
|
56
|
+
queryObject: QueryObject,
|
|
57
|
+
usePopupTemplateFieldsInfo?: boolean
|
|
58
|
+
): Promise<IField[]>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Looks into a list of fields for one having a specific name, and returning it if found.
|
|
62
|
+
* Returns nothing if the field is not found.
|
|
63
|
+
*
|
|
64
|
+
* @param fieldName - The list of fields containing all the information regarding the fields, including the name
|
|
65
|
+
* @param fields
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export function getFieldFromName(
|
|
69
|
+
fieldName: string,
|
|
70
|
+
fields?: IField[]
|
|
71
|
+
): IField | undefined;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns the unique ID fields or the object ID field of the given layer.
|
|
75
|
+
* Also return a boolean indicating whether the returned ID field is a traditional Object ID field.
|
|
76
|
+
*
|
|
77
|
+
* @param layer - The layer
|
|
78
|
+
* @returns An object containing the unique ID fields or the object ID field and a boolean indicating if it is a traditional Object ID field
|
|
79
|
+
* When the layer is undefined, returns undefined ID fields and false for the boolean.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
export function getLayerUniqueIdOrObjectIdFields(layer?: SupportedLayer): {
|
|
83
|
+
idFields: string[] | undefined;
|
|
84
|
+
isTraditionalTypeOID: boolean;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Returns the object ID field of the given layer and a boolean indicating whether it is a traditional Object ID field.
|
|
89
|
+
* If the layer has unique ID fields defined, the first field is returned.
|
|
90
|
+
*
|
|
91
|
+
* @param layer - The layer
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
export function getObjectIdField(layer?: SupportedLayer): {
|
|
95
|
+
idField: string;
|
|
96
|
+
isTraditionalTypeOID: boolean;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Checks whether the given field has a valid numeric type.
|
|
101
|
+
* Fields descriptions are [here](http://resources.geoscene.com/help/9.3/GeoSceneEngine/GeoObjects/geosceneGeoDatabase/geosceneFieldType.htm).
|
|
102
|
+
*
|
|
103
|
+
* @param field
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export function isNumericField(field: IField): boolean;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Checks whether the given field has a valid date type.
|
|
110
|
+
* Fields descriptions are [here](http://resources.geoscene.com/help/9.3/GeoSceneEngine/GeoObjects/geosceneGeoDatabase/geosceneFieldType.htm).
|
|
111
|
+
*
|
|
112
|
+
* @param field
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
export function isDateField(field: IField): boolean;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Checks whether the given field has a valid integer type.
|
|
119
|
+
* Fields descriptions are [here](http://resources.geoscene.com/help/9.3/GeoSceneEngine/GeoObjects/geosceneGeoDatabase/geosceneFieldType.htm).
|
|
120
|
+
*
|
|
121
|
+
* @param field
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
export function isIntegerField(field: IField): boolean;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Returns list of date field names from an array of fields of type IField
|
|
128
|
+
*
|
|
129
|
+
* @param fieldsInfo
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
export function getLayerDateFields(fieldsInfo: IField[]): string[];
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns list of numeric field names from an array of fields of type IField
|
|
136
|
+
*
|
|
137
|
+
* @param fieldsInfo
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
export function getLayerNumericFields(fieldsInfo: IField[]): string[];
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Retrieve the subtype name from the subtype id, if available.
|
|
144
|
+
* Otherwise, just simply returns the original value.
|
|
145
|
+
*
|
|
146
|
+
* @param props - The subtypeInfo which consists of a typeIdField and a list of subtypes.
|
|
147
|
+
* @returns The matching subtype name if it's a subtype field; otherwise undefined.
|
|
148
|
+
* //TODO: may need to revise regrading the typeIdField property (See https://devtopia.geoscene.cn/WebGIS/geoscene-js-api/issues/42555)
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
export function getSubtypeName(props: {
|
|
152
|
+
subtypeInfo?: SubtypeInfo;
|
|
153
|
+
fieldName: string;
|
|
154
|
+
fieldValueToMatch: number | string;
|
|
155
|
+
}): string | undefined;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Retrieve subtype information from the query object.
|
|
159
|
+
*
|
|
160
|
+
* @param queryObject - The query object from which to retrieve the feature layer.
|
|
161
|
+
* @returns subtype info like typeIdField and the subtypes, if defined; otherwise undefined.
|
|
162
|
+
* //TODO: may need to revise regrading the typeIdField property (See https://devtopia.geoscene.cn/WebGIS/geoscene-js-api/issues/42555)
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
export function getLayerSubtypeInfo(
|
|
166
|
+
queryObject: QueryObject
|
|
167
|
+
): SubtypeInfo | undefined;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Get the field description if the field contains subtype or domain value.
|
|
171
|
+
* This field description is mainly for displaying purpose (while its id is used in queries).
|
|
172
|
+
*
|
|
173
|
+
* @param props - the name of the field
|
|
174
|
+
* @returns The field description if available; otherwise undefined.
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
export function getFieldDescription(props: {
|
|
178
|
+
fieldName: string;
|
|
179
|
+
fieldValueToMatch: number | string;
|
|
180
|
+
subtypeInfo?: SubtypeInfo;
|
|
181
|
+
fieldList?: IField[];
|
|
182
|
+
}): string | undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Returns feature layer field names used in its renderer.
|
|
186
|
+
*
|
|
187
|
+
* @param layer
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
export function getRendererFieldNames(layer: SupportedLayer): Promise<string[]>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Returns a boolean to indicate if the feature layer is on standard feature data store or not.
|
|
194
|
+
* https://doc.geoscene.com/zh-cn/geoscene-online/reference/faq.htm#anchor7
|
|
195
|
+
*
|
|
196
|
+
* @param layer
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
export function isStandardLayer(layer: SupportedLayer): Promise<boolean>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Finds the matching field name for a given layer based on the fieldToMatch parameter.
|
|
203
|
+
*
|
|
204
|
+
* @param props
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
export function findMatchingLayerFieldName(props: {
|
|
208
|
+
queryObject: QueryObject;
|
|
209
|
+
fieldToMatch: string;
|
|
210
|
+
returnUndefinedIfNotFound?: boolean;
|
|
211
|
+
}): Promise<string>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Find the matching field in a list of fields based on the fieldToMatch parameter.
|
|
215
|
+
* It first looks for a perfect match (case-sensitive), then for an approximate match (case-insensitive).
|
|
216
|
+
*
|
|
217
|
+
* We look for a match in 2 steps:
|
|
218
|
+
*
|
|
219
|
+
* 1. Perfect match: the case of the fields is exactly the same. This helps when the layer has fields with the same name but with a
|
|
220
|
+
* different case (e.g. "field" and "FiElD"). Refer to https://devtopia.geoscene.cn/WebGIS/geoscene-charts/issues/8305
|
|
221
|
+
*
|
|
222
|
+
* 2: Approximate match: we upper-case the fields to compare them
|
|
223
|
+
*
|
|
224
|
+
* @param layerFieldList - The list of fields to search in.
|
|
225
|
+
* @param fieldToMatch - The field name to match.
|
|
226
|
+
* @returns The matching field if found, otherwise undefined.
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
export function findMatchingField(
|
|
230
|
+
layerFieldList: IField[],
|
|
231
|
+
fieldToMatch: string
|
|
232
|
+
): IField | undefined;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Finds the matching layer fields for a list of fields.
|
|
236
|
+
*
|
|
237
|
+
* @param props
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
export function matchFieldsList(props: {
|
|
241
|
+
fieldsList: string[] | undefined;
|
|
242
|
+
queryObject: SupportedLayer;
|
|
243
|
+
returnUndefinedIfNotFound?: boolean;
|
|
244
|
+
}): Promise<string[] | undefined>;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Builds a WebChartQuery based on information coming from the runtime filters (chart options), the config and the data source.
|
|
248
|
+
* The filters by attributes from all sources are all combined together (using the AND operator).
|
|
249
|
+
* Regarding the other filters (by geometry, gdb version and time extent) only one of each can be applied. The runtime filters are chosen over the config filters.
|
|
250
|
+
*
|
|
251
|
+
* @param props - The query object (feature layer or feature layer view)
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
export function buildQueryConfig(props: {
|
|
255
|
+
queryObject?: QueryObject;
|
|
256
|
+
chartConfig: WebChart;
|
|
257
|
+
runtimeDataFilters?: WebChartDataFilters;
|
|
258
|
+
ignoreViewExtent?: boolean;
|
|
259
|
+
}): WebChartQuery;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Ger the list of the fields used in the charts
|
|
263
|
+
*
|
|
264
|
+
* @param layer - the supported layer
|
|
265
|
+
* @returns The list of fields used in the charts
|
|
266
|
+
* @internal
|
|
267
|
+
*/
|
|
268
|
+
export function getFieldsUsedInCharts(layer: SupportedLayer): Promise<string[]>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Fetches the fields used in the chart configuration and returns the matching fields from the feature layer.
|
|
272
|
+
*
|
|
273
|
+
* @param config - The chart configuration
|
|
274
|
+
* @param layer - The feature layer
|
|
275
|
+
* @returns The list of matching fields
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
export function extractFieldsUsedInConfig(
|
|
279
|
+
config: WebChart,
|
|
280
|
+
layer: SupportedLayer | undefined
|
|
281
|
+
): Promise<string[]>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Get the list of layer fields from the series list of the chart config.
|
|
285
|
+
*
|
|
286
|
+
* @param layer - The layer
|
|
287
|
+
* @returns The list of layer fields
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
export function extractFieldsFromConfigList(
|
|
291
|
+
layer: SupportedLayer
|
|
292
|
+
): Promise<string[]>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Finds the matching layer in the view based on the provided layer's portal item id.
|
|
296
|
+
* - The matching is done based on the portalItem id.
|
|
297
|
+
* - If no matching layer is found, returns `undefined`.
|
|
298
|
+
*
|
|
299
|
+
* @param props - The map or scene view
|
|
300
|
+
* @returns The matching layer in the view or undefined if not found
|
|
301
|
+
* @example
|
|
302
|
+
* ```ts
|
|
303
|
+
* const matchingLayer = findMatchingLayerFromView({ view, portalItemId: 'abc123' });
|
|
304
|
+
* ```
|
|
305
|
+
* @requires
|
|
306
|
+
* - view
|
|
307
|
+
* - portalItemId
|
|
308
|
+
* @internal
|
|
309
|
+
*/
|
|
310
|
+
export function findMatchingLayerFromView(props: {
|
|
311
|
+
view?: MapView | SceneView;
|
|
312
|
+
portalItemId: string;
|
|
313
|
+
}): FeatureLayerView | SupportedLayer | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type FeatureLayer from "@geoscene/core/layers/FeatureLayer.js";
|
|
2
|
+
import type { WebChartConfigFields } from "./interfaces.js";
|
|
3
|
+
import type { IFeatureLayer } from "../../../spec/rest-js-types.js";
|
|
4
|
+
import type { WebChartDataTypes } from "../../../spec/data-source.js";
|
|
5
|
+
import type { WebChart } from "../../../spec/web-chart.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates a chart renderer based on the provided config fields and inline data.
|
|
9
|
+
*
|
|
10
|
+
* @param props - The category field, the numeric fields, the config fields and the data to convert.
|
|
11
|
+
*/
|
|
12
|
+
export function convertConfigFieldsToChartRenderer(props: {
|
|
13
|
+
categoryField: string;
|
|
14
|
+
numericFields: string[];
|
|
15
|
+
configFields?: WebChartConfigFields;
|
|
16
|
+
inlineData: WebChartDataTypes;
|
|
17
|
+
}): WebChart["chartRenderer"];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Converts an array of inline data to a feature set and returns an `IFeatureLayer`.
|
|
21
|
+
*
|
|
22
|
+
* @param props - The category field, the category type, the numeric fields and the inline data to convert.
|
|
23
|
+
*/
|
|
24
|
+
export function convertInlineDataToLayerDefinition(props: {
|
|
25
|
+
categoryField: string;
|
|
26
|
+
categoryType: "date" | "dateOnly" | "number" | "string" | "timeStampOffset";
|
|
27
|
+
numericFields: string[];
|
|
28
|
+
inlineData: WebChartDataTypes;
|
|
29
|
+
}): IFeatureLayer | undefined;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Converts an array of inline data into a feature collection. Also returns a `chartRenderer` if the `configFields` are provided.
|
|
33
|
+
*
|
|
34
|
+
* @param props - The category field, the category type, the numeric fields, the config fields and the inline data to convert.
|
|
35
|
+
*/
|
|
36
|
+
export function convertInlineConfigToLayerConfig(props: {
|
|
37
|
+
categoryField: string;
|
|
38
|
+
categoryType: "date" | "dateOnly" | "number" | "string" | "timeStampOffset";
|
|
39
|
+
numericFields: string[];
|
|
40
|
+
configFields?: WebChartConfigFields;
|
|
41
|
+
inlineData: WebChartDataTypes;
|
|
42
|
+
}): Promise<{
|
|
43
|
+
chartRenderer?: WebChart["chartRenderer"];
|
|
44
|
+
iLayer?: IFeatureLayer;
|
|
45
|
+
layer?: FeatureLayer;
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Former interface describing the property `configFields` from an inline data source.
|
|
3
|
+
* Is an object which dictate which data-item field should be used for defining a property of the rendered element (line, point, bars, etc). Used in inline data source mode only.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface WebChartConfigFields {
|
|
8
|
+
fillColor?: string;
|
|
9
|
+
fillOpacity?: string;
|
|
10
|
+
fillStyle?: string;
|
|
11
|
+
lineColor?: string;
|
|
12
|
+
lineOpacity?: string;
|
|
13
|
+
lineWidth?: string;
|
|
14
|
+
lineStyle?: string;
|
|
15
|
+
markerSize?: string;
|
|
16
|
+
outlineColor?: string;
|
|
17
|
+
outlineOpacity?: string;
|
|
18
|
+
outlineWidth?: string;
|
|
19
|
+
outlineStyle?: string;
|
|
20
|
+
displayLabel?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type MapView from "@geoscene/core/views/MapView.js";
|
|
2
|
+
import type SceneView from "@geoscene/core/views/SceneView.js";
|
|
3
|
+
import type FeatureLayerView from "@geoscene/core/views/layers/FeatureLayerView.js";
|
|
4
|
+
import type { SupportedLayer } from "../../interfaces.js";
|
|
5
|
+
import type { WebChart } from "../../spec/web-chart.js";
|
|
6
|
+
import type { RESTRendererType } from "../../spec/rest-js-object-literals.js";
|
|
7
|
+
import type { ICodedValue } from "../../spec/rest-js-types.js";
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export interface QueryObjectProps {
|
|
11
|
+
chartConfig: WebChart;
|
|
12
|
+
layer?: FeatureLayerView | SupportedLayer;
|
|
13
|
+
view?: MapView | SceneView;
|
|
14
|
+
filterByExtent?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export interface RendererInfo {
|
|
19
|
+
rendererType?: RESTRendererType;
|
|
20
|
+
rendererField?: string;
|
|
21
|
+
rendererNormalizationField?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export interface ServerRestInfo {
|
|
26
|
+
currentVersion?: string;
|
|
27
|
+
fullVersion?: string;
|
|
28
|
+
owningSystemUrl?: string;
|
|
29
|
+
owningTenant?: string;
|
|
30
|
+
authInfo?: {
|
|
31
|
+
isTokenBasedSecurity: boolean;
|
|
32
|
+
tokenServicesUrl: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Store information about coded-value domains in the subtype
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export interface ICodedValueDomain {
|
|
42
|
+
fieldName: string;
|
|
43
|
+
name: string;
|
|
44
|
+
codedValues?: ICodedValue[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Store information about featureType
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export interface IFeatureType {
|
|
53
|
+
id: number | string;
|
|
54
|
+
name: string;
|
|
55
|
+
domains?: ICodedValueDomain[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Store information about subtypes from the feature layer, if any, with:
|
|
60
|
+
* - either the couple typeIdField + types
|
|
61
|
+
* - or the couple subtypeField + subtypes
|
|
62
|
+
* representing the field name and information associating a code with a name
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
export interface SubtypeInfo {
|
|
67
|
+
typeIdField?: string;
|
|
68
|
+
types?: IFeatureType[];
|
|
69
|
+
subtypeField?: string;
|
|
70
|
+
subtypes?: IFeatureType[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type QueryObject = FeatureLayerView | SupportedLayer | undefined;
|