@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,1000 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import t from "./D4XT7ZCD.js";
|
|
3
|
+
import { a as W } from "./KJHME2ZX.js";
|
|
4
|
+
import { a as ee } from "./7I5Y5NSS.js";
|
|
5
|
+
import { a as D } from "./HAGP76HP.js";
|
|
6
|
+
import { a as J } from "./FEJD2JHY.js";
|
|
7
|
+
import s from "./ML4GGRP6.js";
|
|
8
|
+
import { a as $, b as Y, e as Q } from "./ZLQXY2BV.js";
|
|
9
|
+
import { a as f } from "./J7TZPMJS.js";
|
|
10
|
+
import r from "./5752NFTR.js";
|
|
11
|
+
import { d as c } from "./DPJE33GY.js";
|
|
12
|
+
import { a as P } from "./VAB3BCTX.js";
|
|
13
|
+
import q from "./ED7V65WK.js";
|
|
14
|
+
import p from "./IJUDK7C2.js";
|
|
15
|
+
import m from "./V2OPADQU.js";
|
|
16
|
+
import l from "./ZLRKGGOO.js";
|
|
17
|
+
import k from "./NSSG3EFV.js";
|
|
18
|
+
import j from "./AENRD2JF.js";
|
|
19
|
+
import i from "./P4UNBBUE.js";
|
|
20
|
+
import g from "./DKENL7TV.js";
|
|
21
|
+
import e from "./ISWZQ6CS.js";
|
|
22
|
+
import d from "./P5SSZWMH.js";
|
|
23
|
+
import "./UG7LOBJE.js";
|
|
24
|
+
import a from "./A7YNU2NS.js";
|
|
25
|
+
import { n as b } from "./4B3QBH5T.js";
|
|
26
|
+
import "./XLDY6CTA.js";
|
|
27
|
+
import { a as K } from "./HZC3QJTN.js";
|
|
28
|
+
import { e as I, f as B, j as X, m as L, q as w } from "./IHRGRUHQ.js";
|
|
29
|
+
import "./KUVOINJC.js";
|
|
30
|
+
import { a as o, k as z } from "./NKG4FLLR.js";
|
|
31
|
+
import {
|
|
32
|
+
A as h,
|
|
33
|
+
B as _,
|
|
34
|
+
D as x,
|
|
35
|
+
F as U,
|
|
36
|
+
g as F,
|
|
37
|
+
h as n,
|
|
38
|
+
m as C,
|
|
39
|
+
x as N,
|
|
40
|
+
y as A,
|
|
41
|
+
z as V,
|
|
42
|
+
} from "./KRZ433BT.js";
|
|
43
|
+
import "./OR4HXHSY.js";
|
|
44
|
+
export default $geoscene.t(
|
|
45
|
+
([
|
|
46
|
+
,
|
|
47
|
+
,
|
|
48
|
+
,
|
|
49
|
+
,
|
|
50
|
+
,
|
|
51
|
+
,
|
|
52
|
+
,
|
|
53
|
+
{ substitute: ie },
|
|
54
|
+
,
|
|
55
|
+
,
|
|
56
|
+
,
|
|
57
|
+
,
|
|
58
|
+
,
|
|
59
|
+
,
|
|
60
|
+
,
|
|
61
|
+
{ Jb: S, Ra: H, Rd: O, Sb: v, Wd: T, _b: R },
|
|
62
|
+
,
|
|
63
|
+
,
|
|
64
|
+
,
|
|
65
|
+
,
|
|
66
|
+
,
|
|
67
|
+
{ a: G },
|
|
68
|
+
,
|
|
69
|
+
,
|
|
70
|
+
,
|
|
71
|
+
,
|
|
72
|
+
{ s: Z },
|
|
73
|
+
{ a: j, d: y, e: q },
|
|
74
|
+
{ b: k },
|
|
75
|
+
]) => {
|
|
76
|
+
var d = {
|
|
77
|
+
chartUIComponent: "chart-ui-component",
|
|
78
|
+
tabBar: "tab-bar",
|
|
79
|
+
tab: "tab",
|
|
80
|
+
};
|
|
81
|
+
function te(m, e) {
|
|
82
|
+
let a = new Set(),
|
|
83
|
+
t = e;
|
|
84
|
+
return (
|
|
85
|
+
m?.forEach((i, s) => {
|
|
86
|
+
let r = i.chartId;
|
|
87
|
+
(a.has(r) || r === void 0 || r === "") &&
|
|
88
|
+
((i.chartId = `Chart_${Date.now()}_${s}`),
|
|
89
|
+
e === r && (t = i.chartId)),
|
|
90
|
+
a.add(r);
|
|
91
|
+
}),
|
|
92
|
+
t
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function se(m, e, a) {
|
|
96
|
+
return m?.filter((t) => S(a, t.config) && t.layer?.id === e) ?? [];
|
|
97
|
+
}
|
|
98
|
+
function re(m) {
|
|
99
|
+
let {
|
|
100
|
+
modelList: e,
|
|
101
|
+
layerList: a,
|
|
102
|
+
activeLayerId: t,
|
|
103
|
+
disableEditing: i,
|
|
104
|
+
} = m,
|
|
105
|
+
s = new Map();
|
|
106
|
+
return (
|
|
107
|
+
e?.forEach((r) => {
|
|
108
|
+
let l = r.layer;
|
|
109
|
+
l && s.set(l.id, l);
|
|
110
|
+
}),
|
|
111
|
+
i || a.forEach((r) => s.set(r.id, r)),
|
|
112
|
+
Array.from(s.values()).filter((r) => !t || r.id === t)
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
function oe(m, e) {
|
|
116
|
+
m.forEach((a) => {
|
|
117
|
+
e.forEach((t) => {
|
|
118
|
+
a?.id === t.layer?.id && ae(a, t);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function ae(m, e) {
|
|
123
|
+
let a = m;
|
|
124
|
+
if (a) {
|
|
125
|
+
let t = [...(a?.charts ?? [])],
|
|
126
|
+
i = t?.findIndex((r) => r.id === e.chartId),
|
|
127
|
+
s = !1;
|
|
128
|
+
i !== void 0 && i > -1
|
|
129
|
+
? ((s = !b(t[i], e.config)), (t[i] = e.config))
|
|
130
|
+
: a && !T(e.config) && ((s = !0), t.push(e.config)),
|
|
131
|
+
s && (a.charts = t);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function le(m, e) {
|
|
135
|
+
let a = m;
|
|
136
|
+
if (a) {
|
|
137
|
+
let t = [...(a.charts ?? [])],
|
|
138
|
+
i = t.findIndex((s) => s.id === e);
|
|
139
|
+
i > -1 && (t.splice(i, 1), (a.charts = t));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function ce(m, e) {
|
|
143
|
+
let a = m;
|
|
144
|
+
if (a) {
|
|
145
|
+
let t = [...(a.charts ?? [])];
|
|
146
|
+
(t = v({
|
|
147
|
+
arrayA: t,
|
|
148
|
+
arrayB: e.map((i) => i.config),
|
|
149
|
+
getKey: (i) => i.id ?? i.title?.content.text ?? "",
|
|
150
|
+
})),
|
|
151
|
+
(a.charts = t);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
var ne = F`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,
|
|
155
|
+
E = class extends V {
|
|
156
|
+
constructor() {
|
|
157
|
+
super(),
|
|
158
|
+
(this.selectChartTypePopover = null),
|
|
159
|
+
(this.chartsListFlowItem = N()),
|
|
160
|
+
(this.supportedChartTypes = [
|
|
161
|
+
o.BarSeries,
|
|
162
|
+
o.BoxPlotSeries,
|
|
163
|
+
o.LineSeries,
|
|
164
|
+
o.PieSeries,
|
|
165
|
+
o.HistogramSeries,
|
|
166
|
+
o.ScatterSeries,
|
|
167
|
+
o.HeatSeries,
|
|
168
|
+
]),
|
|
169
|
+
(this._messages = P()),
|
|
170
|
+
(this.commonStrings = P({ name: "common", blocking: !0 })),
|
|
171
|
+
(this.chartDataProcessComplete = (e) => {
|
|
172
|
+
let a = e,
|
|
173
|
+
{ chartData: t, model: i } = a.detail,
|
|
174
|
+
s = this.getModel(this.selectedChartId);
|
|
175
|
+
if (i?.isSameChartAs(s))
|
|
176
|
+
switch (s?.chartType) {
|
|
177
|
+
case o.HistogramSeries:
|
|
178
|
+
(this.chartData = t), i && (i.dataStore.chartData = t);
|
|
179
|
+
break;
|
|
180
|
+
case o.PieSeries: {
|
|
181
|
+
(this.chartData = t), i && (i.dataStore.chartData = t);
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
case o.ScatterSeries: {
|
|
185
|
+
let r = t,
|
|
186
|
+
{ dataItems: l, r2: u, aggregated: g } = r,
|
|
187
|
+
p = u;
|
|
188
|
+
Number.isFinite(u) || (p = void 0),
|
|
189
|
+
(this.r2 = p),
|
|
190
|
+
X(i) &&
|
|
191
|
+
((i.dataStore.r2 = p),
|
|
192
|
+
(i.dataStore.aggregated = g),
|
|
193
|
+
g && (i.additionalTooltipField = void 0)),
|
|
194
|
+
(this.calculatedDataMinMaxBounds = this.getDataExtent(l)),
|
|
195
|
+
i &&
|
|
196
|
+
(i.dataStore.calculatedDataMinMaxBounds =
|
|
197
|
+
this.calculatedDataMinMaxBounds);
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
case o.LineSeries:
|
|
201
|
+
case o.BarSeries: {
|
|
202
|
+
let { dataItems: r, timeIntervalInfo: l } = t;
|
|
203
|
+
if (
|
|
204
|
+
((B(s) || (I(s) && s.binTemporalData)) &&
|
|
205
|
+
(l?.size !== void 0 &&
|
|
206
|
+
s.temporalBinningSize !== l?.size &&
|
|
207
|
+
(s.temporalBinningSize = l?.size),
|
|
208
|
+
l?.unit !== void 0 &&
|
|
209
|
+
s.temporalBinningUnit !== l?.unit &&
|
|
210
|
+
l?.unit !== z.Quarter &&
|
|
211
|
+
(s.temporalBinningUnit = l?.unit),
|
|
212
|
+
l?.size !== void 0 &&
|
|
213
|
+
l?.unit !== void 0 &&
|
|
214
|
+
Q($, { size: l.size, unit: l.unit })),
|
|
215
|
+
(this.calculatedDataMinMaxBounds = this.getDataExtent(r)),
|
|
216
|
+
i &&
|
|
217
|
+
(i.dataStore.calculatedDataMinMaxBounds =
|
|
218
|
+
this.calculatedDataMinMaxBounds),
|
|
219
|
+
I(s))
|
|
220
|
+
) {
|
|
221
|
+
let u = s.xAxisField,
|
|
222
|
+
g = r.some((M) => M[u] === null),
|
|
223
|
+
p = s.nullCategory;
|
|
224
|
+
g && p === void 0 && (s.nullCategory = H.nullCategory);
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}),
|
|
230
|
+
(this.chartAxesMinMaxChange = (e) => {
|
|
231
|
+
let a = e,
|
|
232
|
+
{ bounds: t, model: i } = a.detail,
|
|
233
|
+
s = this.getModel(this.selectedChartId),
|
|
234
|
+
r = i?.isSameChartAs(s),
|
|
235
|
+
l = s?.chartType;
|
|
236
|
+
if (r)
|
|
237
|
+
switch (l) {
|
|
238
|
+
case o.BarSeries:
|
|
239
|
+
case o.BoxPlotSeries:
|
|
240
|
+
case o.LineSeries:
|
|
241
|
+
case o.HistogramSeries:
|
|
242
|
+
case o.ScatterSeries:
|
|
243
|
+
(this.calculatedMinMaxBounds = t),
|
|
244
|
+
i && (i.dataStore.calculatedMinMaxBounds = t),
|
|
245
|
+
this.updateAxesBoundsInAppState(t);
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
}),
|
|
249
|
+
(this.chartSeriesColorChange = (e) => {
|
|
250
|
+
let a = e,
|
|
251
|
+
{ data: t, model: i } = a.detail,
|
|
252
|
+
s = this.getModel(this.selectedChartId);
|
|
253
|
+
if (i?.isSameChartAs(s))
|
|
254
|
+
switch (s?.chartType) {
|
|
255
|
+
case o.BarSeries:
|
|
256
|
+
case o.BoxPlotSeries:
|
|
257
|
+
case o.LineSeries:
|
|
258
|
+
case o.HistogramSeries:
|
|
259
|
+
(this.seriesColor = t), i && (i.dataStore.seriesColor = t);
|
|
260
|
+
break;
|
|
261
|
+
case o.PieSeries: {
|
|
262
|
+
let r = new Map([[0, t]]);
|
|
263
|
+
(this.seriesColor = r), i && (i.dataStore.seriesColor = r);
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
case o.ScatterSeries:
|
|
267
|
+
}
|
|
268
|
+
}),
|
|
269
|
+
(this.chartNoRenderPropChange = (e) => {
|
|
270
|
+
let a = e,
|
|
271
|
+
{ propName: t, value: i, model: s } = a.detail,
|
|
272
|
+
r = this.modelList.find((l) => s?.isSameChartAs(l));
|
|
273
|
+
if (r)
|
|
274
|
+
switch (t) {
|
|
275
|
+
case "rotation":
|
|
276
|
+
typeof i == "boolean" && G(r) && (r.rotatedState = i);
|
|
277
|
+
break;
|
|
278
|
+
case "legendPosition":
|
|
279
|
+
typeof i == "string" && w(r) && (r.legendPosition = i);
|
|
280
|
+
break;
|
|
281
|
+
case "legendVisibility":
|
|
282
|
+
typeof i == "boolean" && w(r) && (r.legendVisibility = i);
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}),
|
|
286
|
+
(this.chartLegendItemVisibilityChange = (e) => {
|
|
287
|
+
let a = e,
|
|
288
|
+
{ legendItemVisibility: t, model: i } = a.detail,
|
|
289
|
+
s = this.modelList.find((r) => i?.isSameChartAs(r));
|
|
290
|
+
s?.setSeriesVisibility(t),
|
|
291
|
+
L(s) &&
|
|
292
|
+
((s.getMinBound(1) === null ||
|
|
293
|
+
Number.isNaN(s.getMinBound(1))) &&
|
|
294
|
+
s.setMinBound(null, 1),
|
|
295
|
+
(s.getMaxBound(1) === null ||
|
|
296
|
+
Number.isNaN(s.getMaxBound(1))) &&
|
|
297
|
+
s.setMaxBound(null, 1),
|
|
298
|
+
B(s) &&
|
|
299
|
+
((s.getMinBound(0) === null ||
|
|
300
|
+
Number.isNaN(s.getMinBound(0))) &&
|
|
301
|
+
s.setMinBound(null, 0),
|
|
302
|
+
(s.getMaxBound(0) === null ||
|
|
303
|
+
Number.isNaN(s.getMaxBound(0))) &&
|
|
304
|
+
s.setMaxBound(null, 0)));
|
|
305
|
+
}),
|
|
306
|
+
(this.onSelectChartTypeChange = (e) => {
|
|
307
|
+
(this.currentChartTypeText = ""),
|
|
308
|
+
(this.calculatedDataMinMaxBounds = void 0),
|
|
309
|
+
(this.calculatedMinMaxBounds = void 0),
|
|
310
|
+
this.removeSelectChartTypePopover();
|
|
311
|
+
let { selectedModelType: a, layerId: t } = e.target;
|
|
312
|
+
a !== void 0 &&
|
|
313
|
+
((this.allowChartSyncing = !0),
|
|
314
|
+
this.geosceneChartsConfigNewChart.emit({
|
|
315
|
+
key: "key",
|
|
316
|
+
chartType: a,
|
|
317
|
+
layerId: t,
|
|
318
|
+
}));
|
|
319
|
+
}),
|
|
320
|
+
(this.onAddChartClose = () => {
|
|
321
|
+
this.removeSelectChartTypePopover();
|
|
322
|
+
}),
|
|
323
|
+
(this.onModelConfigChange = (e) => {
|
|
324
|
+
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
325
|
+
let a = e.target;
|
|
326
|
+
ae(a?.layer, a);
|
|
327
|
+
}
|
|
328
|
+
this.requestUpdate();
|
|
329
|
+
}),
|
|
330
|
+
(this.allowChartSyncing = !1),
|
|
331
|
+
(this.currentChartTypeText = ""),
|
|
332
|
+
(this.modelList = []),
|
|
333
|
+
(this.layerList = []),
|
|
334
|
+
(this.disableEditing = !1),
|
|
335
|
+
(this.syncChartsToLayers = !1),
|
|
336
|
+
(this.panelNumber = 0),
|
|
337
|
+
(this.geosceneChartsConfigChartViewChartClose = C()),
|
|
338
|
+
(this.geosceneChartsConfigModelListChange = C()),
|
|
339
|
+
(this.geosceneChartsConfigNewChart = C()),
|
|
340
|
+
(this.geosceneChartsConfigPanelNumberChange = C()),
|
|
341
|
+
(this.geosceneChartsConfigSelectedChartChange = C()),
|
|
342
|
+
this.addChartEventListeners(),
|
|
343
|
+
this.listen(
|
|
344
|
+
"geosceneChartsConfigModelListReorder",
|
|
345
|
+
this.modelListReorderChangeListener
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
static {
|
|
349
|
+
this.properties = {
|
|
350
|
+
selectedPanel: 16,
|
|
351
|
+
currentChartTypeText: 16,
|
|
352
|
+
messageOverrides: 0,
|
|
353
|
+
modelList: [0, { hasChanged: y }],
|
|
354
|
+
layerList: [0, { hasChanged: y }],
|
|
355
|
+
selectedChartId: 1,
|
|
356
|
+
activeLayerId: 1,
|
|
357
|
+
disableEditing: 5,
|
|
358
|
+
syncChartsToLayers: 5,
|
|
359
|
+
timeZone: 1,
|
|
360
|
+
headerTitle: 1,
|
|
361
|
+
open: 5,
|
|
362
|
+
chartData: [0, { hasChanged: y }],
|
|
363
|
+
r2: 9,
|
|
364
|
+
calculatedDataMinMaxBounds: [0, { hasChanged: y }],
|
|
365
|
+
calculatedMinMaxBounds: [0, { hasChanged: y }],
|
|
366
|
+
seriesColor: [0, { hasChanged: q }],
|
|
367
|
+
popoverPlacement: 1,
|
|
368
|
+
usePopupTemplateFieldsInfo: 5,
|
|
369
|
+
panelNumber: 9,
|
|
370
|
+
filterBySelection: 5,
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
static {
|
|
374
|
+
this.styles = ne;
|
|
375
|
+
}
|
|
376
|
+
async setFocus() {
|
|
377
|
+
await this.chartsListFlowItem.value?.setFocus();
|
|
378
|
+
}
|
|
379
|
+
async load() {
|
|
380
|
+
await this.layerListChange();
|
|
381
|
+
let e = this.getModel(this.selectedChartId);
|
|
382
|
+
this.setEventBasedPropsFromModelData(e);
|
|
383
|
+
}
|
|
384
|
+
willUpdate(e) {
|
|
385
|
+
e.has("layerList") && this.layerListChange(),
|
|
386
|
+
e.has("panelNumber") && this.panelNumberChange(this.panelNumber),
|
|
387
|
+
e.has("modelList") &&
|
|
388
|
+
this.modelListChange(this.modelList, e.get("modelList")),
|
|
389
|
+
e.has("selectedChartId") &&
|
|
390
|
+
this.selectedChartIdChange(this.selectedChartId);
|
|
391
|
+
}
|
|
392
|
+
disconnectedCallback() {
|
|
393
|
+
super.disconnectedCallback(),
|
|
394
|
+
this.clearPartialModels(),
|
|
395
|
+
this.removeSelectChartTypePopover();
|
|
396
|
+
}
|
|
397
|
+
modelListReorderChangeListener(e) {
|
|
398
|
+
let { modelList: a } = e.detail;
|
|
399
|
+
if (
|
|
400
|
+
((this.modelList = v({
|
|
401
|
+
arrayA: this.modelList,
|
|
402
|
+
arrayB: a,
|
|
403
|
+
getKey: (t) => t.chartId ?? t.titleText ?? "",
|
|
404
|
+
})),
|
|
405
|
+
this.syncChartsToLayers)
|
|
406
|
+
) {
|
|
407
|
+
let t = a.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
408
|
+
if (t) {
|
|
409
|
+
let i = this.layerList.find((s) => s.id.toString() === t);
|
|
410
|
+
i && ce(i, a);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
async layerListChange() {
|
|
415
|
+
let e = [],
|
|
416
|
+
a = this.layerList.map((i) => i.id.toString()),
|
|
417
|
+
t = [
|
|
418
|
+
...this.modelList.filter((i) => a.includes(i.layer?.id ?? "")),
|
|
419
|
+
];
|
|
420
|
+
for (let i of this.layerList ?? []) {
|
|
421
|
+
if (i.type === "sublayer") {
|
|
422
|
+
let r = await i.createFeatureLayer();
|
|
423
|
+
if (!r) continue;
|
|
424
|
+
i = r;
|
|
425
|
+
}
|
|
426
|
+
let s = i.charts;
|
|
427
|
+
for (let r of s ?? []) {
|
|
428
|
+
let l = await K({ layer: i, config: r });
|
|
429
|
+
l !== void 0 && e.push(l);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
te(e),
|
|
433
|
+
e.forEach((i) => {
|
|
434
|
+
t.find((s) => s.isSameChartAs(i)) === void 0 && t.push(i);
|
|
435
|
+
}),
|
|
436
|
+
(t = t.filter((i) => !R(i.config))),
|
|
437
|
+
(this.modelList = t);
|
|
438
|
+
}
|
|
439
|
+
modelListChange(e, a) {
|
|
440
|
+
(this.selectedChartId = te(e, this.selectedChartId)),
|
|
441
|
+
a?.forEach((i) => {
|
|
442
|
+
i.removeEventListener(
|
|
443
|
+
"geosceneChartsModelConfigChange",
|
|
444
|
+
this.onModelConfigChange
|
|
445
|
+
);
|
|
446
|
+
}),
|
|
447
|
+
e.forEach((i) => {
|
|
448
|
+
i.addEventListener(
|
|
449
|
+
"geosceneChartsModelConfigChange",
|
|
450
|
+
this.onModelConfigChange
|
|
451
|
+
);
|
|
452
|
+
});
|
|
453
|
+
let t = this.getModel(this.selectedChartId);
|
|
454
|
+
(this.currentChartTypeText =
|
|
455
|
+
t?.chartType !== void 0
|
|
456
|
+
? k({
|
|
457
|
+
chartType: t.chartType,
|
|
458
|
+
commonStrings: this.commonStrings,
|
|
459
|
+
config: t.config,
|
|
460
|
+
})
|
|
461
|
+
: ""),
|
|
462
|
+
this.syncChartsToLayers &&
|
|
463
|
+
this.allowChartSyncing &&
|
|
464
|
+
oe(this.layerList, e),
|
|
465
|
+
this.geosceneChartsConfigModelListChange.emit({ modelList: e });
|
|
466
|
+
}
|
|
467
|
+
selectedChartIdChange(e) {
|
|
468
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0),
|
|
469
|
+
(this.selectedPanel = c.Data);
|
|
470
|
+
let a = this.getModel(e);
|
|
471
|
+
this.setEventBasedPropsFromModelData(a),
|
|
472
|
+
(this.currentChartTypeText =
|
|
473
|
+
a?.chartType !== void 0
|
|
474
|
+
? k({
|
|
475
|
+
chartType: a.chartType,
|
|
476
|
+
commonStrings: this.commonStrings,
|
|
477
|
+
config: a.config,
|
|
478
|
+
})
|
|
479
|
+
: ""),
|
|
480
|
+
e !== void 0 && e !== $.selectedChartId && ($.selectedChartId = e),
|
|
481
|
+
(this.allowChartSyncing = !0),
|
|
482
|
+
this.geosceneChartsConfigSelectedChartChange.emit({
|
|
483
|
+
key: "key",
|
|
484
|
+
model: a,
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
panelNumberChange(e) {
|
|
488
|
+
e === 0
|
|
489
|
+
? this.clearPartialModels()
|
|
490
|
+
: e === 1 && this.removeSelectChartTypePopover(),
|
|
491
|
+
this.geosceneChartsConfigPanelNumberChange.emit({
|
|
492
|
+
panelNumber: e,
|
|
493
|
+
modelList: this.modelList,
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
addChartEventListeners() {
|
|
497
|
+
this.listenOn(
|
|
498
|
+
document,
|
|
499
|
+
f.DataProcessComplete,
|
|
500
|
+
this.chartDataProcessComplete
|
|
501
|
+
),
|
|
502
|
+
this.listenOn(
|
|
503
|
+
document,
|
|
504
|
+
f.AxesMinMaxChange,
|
|
505
|
+
this.chartAxesMinMaxChange
|
|
506
|
+
),
|
|
507
|
+
this.listenOn(
|
|
508
|
+
document,
|
|
509
|
+
f.SeriesColorChange,
|
|
510
|
+
this.chartSeriesColorChange
|
|
511
|
+
),
|
|
512
|
+
this.listenOn(
|
|
513
|
+
document,
|
|
514
|
+
f.NoRenderPropChange,
|
|
515
|
+
this.chartNoRenderPropChange
|
|
516
|
+
),
|
|
517
|
+
this.listenOn(
|
|
518
|
+
document,
|
|
519
|
+
f.LegendItemVisibilityChange,
|
|
520
|
+
this.chartLegendItemVisibilityChange
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
getDataExtent(e) {
|
|
524
|
+
let a = this.getModel(this.selectedChartId)?.config,
|
|
525
|
+
t = [];
|
|
526
|
+
if (a !== void 0 && e !== void 0) {
|
|
527
|
+
let i = O({ chartConfig: a, chartData: e }),
|
|
528
|
+
{ minY: s, maxY: r, minX: l, maxX: u } = i;
|
|
529
|
+
t = [
|
|
530
|
+
{ isXAxis: !0, minimum: l, maximum: u },
|
|
531
|
+
{ isXAxis: !1, minimum: s, maximum: r },
|
|
532
|
+
];
|
|
533
|
+
}
|
|
534
|
+
return t;
|
|
535
|
+
}
|
|
536
|
+
updateAxesBoundsInAppState(e) {
|
|
537
|
+
e?.forEach((a) => {
|
|
538
|
+
let { isXAxis: t, maximum: i, minimum: s } = a,
|
|
539
|
+
r = this.getModel(this.selectedChartId);
|
|
540
|
+
if (r !== void 0 && L(r) && this.selectedChartId !== void 0) {
|
|
541
|
+
let l = new W(r, t),
|
|
542
|
+
u = Y({
|
|
543
|
+
chartId: this.selectedChartId,
|
|
544
|
+
isXAxis: t,
|
|
545
|
+
isLogarithmic: l.getLogarithmic(),
|
|
546
|
+
}),
|
|
547
|
+
g = $.chartAxesBoundDataMap;
|
|
548
|
+
g[this.selectedChartId] === void 0 &&
|
|
549
|
+
(g[this.selectedChartId] = {});
|
|
550
|
+
let p = g[this.selectedChartId]?.[u],
|
|
551
|
+
M = {
|
|
552
|
+
defaultMinBound:
|
|
553
|
+
p?.defaultMinBound === p?.currMinBound
|
|
554
|
+
? s
|
|
555
|
+
: p?.defaultMinBound,
|
|
556
|
+
currMinBound: s,
|
|
557
|
+
defaultMaxBound:
|
|
558
|
+
p?.defaultMaxBound === p?.currMaxBound
|
|
559
|
+
? i
|
|
560
|
+
: p?.defaultMaxBound,
|
|
561
|
+
currMaxBound: i,
|
|
562
|
+
};
|
|
563
|
+
!b(p, M) &&
|
|
564
|
+
this.selectedChartId !== void 0 &&
|
|
565
|
+
g?.[this.selectedChartId] !== void 0 &&
|
|
566
|
+
(g[this.selectedChartId][u] = M);
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
getPlacement() {
|
|
571
|
+
let e;
|
|
572
|
+
return (
|
|
573
|
+
this.popoverPlacement !== void 0
|
|
574
|
+
? (e = this.popoverPlacement)
|
|
575
|
+
: (e =
|
|
576
|
+
this.modelList?.filter((a) => S(j, a.config)).length <= 2
|
|
577
|
+
? "bottom"
|
|
578
|
+
: "top"),
|
|
579
|
+
e
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
onBackFlow() {
|
|
583
|
+
this.panelNumber -= 1;
|
|
584
|
+
}
|
|
585
|
+
onAddChartClick(e) {
|
|
586
|
+
let { referenceElement: a, layerId: t } = e.detail;
|
|
587
|
+
this.setupSelectChartTypePopover(a, t);
|
|
588
|
+
}
|
|
589
|
+
setupSelectChartTypePopover(e, a) {
|
|
590
|
+
let t = this.getPlacement();
|
|
591
|
+
this.removeSelectChartTypePopover(),
|
|
592
|
+
(this.selectChartTypePopover = x(
|
|
593
|
+
n`<geoscene-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @geosceneChartsConfigPopoverClose=${this.onAddChartClose} @geosceneChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></geoscene-charts-config-select-chart-type-popover>`
|
|
594
|
+
)),
|
|
595
|
+
!document.body.contains(this.selectChartTypePopover) &&
|
|
596
|
+
this.selectChartTypePopover !== null &&
|
|
597
|
+
document.body.appendChild(this.selectChartTypePopover);
|
|
598
|
+
}
|
|
599
|
+
getModel(e) {
|
|
600
|
+
return this.modelList?.find((a) => a.chartId === e);
|
|
601
|
+
}
|
|
602
|
+
removeSelectChartTypePopover() {
|
|
603
|
+
this.selectChartTypePopover !== void 0 &&
|
|
604
|
+
(this.selectChartTypePopover?.remove(),
|
|
605
|
+
(this.selectChartTypePopover = J(this.selectChartTypePopover)));
|
|
606
|
+
}
|
|
607
|
+
clearPartialModels() {
|
|
608
|
+
this.modelList = this.modelList.filter((e) => !T(e.config));
|
|
609
|
+
}
|
|
610
|
+
onViewChartDelete(e) {
|
|
611
|
+
let { chartId: a } = e.detail;
|
|
612
|
+
if (a !== void 0) {
|
|
613
|
+
let t = this.modelList.find((s) => s.chartId === a),
|
|
614
|
+
i = this.layerList.find((s) => s.id === t?.layer?.id);
|
|
615
|
+
(this.modelList = [
|
|
616
|
+
...this.modelList.filter((s) => s.chartId !== a),
|
|
617
|
+
]),
|
|
618
|
+
i &&
|
|
619
|
+
this.syncChartsToLayers &&
|
|
620
|
+
this.allowChartSyncing &&
|
|
621
|
+
le(i, a);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
onViewChartsSelect(e) {
|
|
625
|
+
this.selectedChartId === e.detail.chartId &&
|
|
626
|
+
((this.allowChartSyncing = !0),
|
|
627
|
+
this.geosceneChartsConfigSelectedChartChange.emit({
|
|
628
|
+
key: "key",
|
|
629
|
+
model: this.getModel(this.selectedChartId),
|
|
630
|
+
})),
|
|
631
|
+
(this.selectedChartId = e.detail.chartId);
|
|
632
|
+
}
|
|
633
|
+
onViewChartsEdit(e) {
|
|
634
|
+
this.onViewChartsSelect(e), (this.panelNumber = 1);
|
|
635
|
+
}
|
|
636
|
+
onViewChartClose() {
|
|
637
|
+
(this.open = !1),
|
|
638
|
+
this.removeSelectChartTypePopover(),
|
|
639
|
+
this.geosceneChartsConfigChartViewChartClose.emit();
|
|
640
|
+
}
|
|
641
|
+
setEventBasedPropsFromModelData(e) {
|
|
642
|
+
(this.chartData = e?.dataStore.chartData),
|
|
643
|
+
(this.r2 = e?.dataStore.r2),
|
|
644
|
+
(this.seriesColor = e?.dataStore.seriesColor),
|
|
645
|
+
(this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds),
|
|
646
|
+
(this.calculatedDataMinMaxBounds =
|
|
647
|
+
e?.dataStore.calculatedDataMinMaxBounds);
|
|
648
|
+
}
|
|
649
|
+
createTooltip(e) {
|
|
650
|
+
let a = e.target,
|
|
651
|
+
t = "";
|
|
652
|
+
switch (a.icon) {
|
|
653
|
+
case "configure":
|
|
654
|
+
t = this._messages.data ?? "";
|
|
655
|
+
break;
|
|
656
|
+
case "graph-bar-stacked":
|
|
657
|
+
case "graph-line-series":
|
|
658
|
+
case "box-chart-series":
|
|
659
|
+
t = this._messages.series ?? "";
|
|
660
|
+
break;
|
|
661
|
+
case "graph-pie-slice":
|
|
662
|
+
t = this._messages.slices ?? "";
|
|
663
|
+
break;
|
|
664
|
+
case "graph-axis":
|
|
665
|
+
t = this._messages.axes ?? "";
|
|
666
|
+
break;
|
|
667
|
+
case "graph-guides":
|
|
668
|
+
t = this._messages.guides ?? "";
|
|
669
|
+
break;
|
|
670
|
+
case "palette":
|
|
671
|
+
t = this._messages.format ?? "";
|
|
672
|
+
break;
|
|
673
|
+
case "text":
|
|
674
|
+
t = this._messages.general ?? "";
|
|
675
|
+
break;
|
|
676
|
+
default:
|
|
677
|
+
t = "";
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
(this.tooltip = x(
|
|
681
|
+
n`<calcite-tooltip style=${_({
|
|
682
|
+
opacity: 1,
|
|
683
|
+
zIndex: "var(--calcite-floating-ui-z-index)",
|
|
684
|
+
})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`
|
|
685
|
+
)),
|
|
686
|
+
document.body.appendChild(this.tooltip);
|
|
687
|
+
}
|
|
688
|
+
destroyTooltip() {
|
|
689
|
+
Z(this.tooltip);
|
|
690
|
+
}
|
|
691
|
+
renderViewCharts() {
|
|
692
|
+
let e = re({
|
|
693
|
+
modelList: this.modelList,
|
|
694
|
+
layerList: this.layerList,
|
|
695
|
+
activeLayerId: this.activeLayerId,
|
|
696
|
+
disableEditing: this.disableEditing,
|
|
697
|
+
});
|
|
698
|
+
return ee(
|
|
699
|
+
e,
|
|
700
|
+
(a) => a.id,
|
|
701
|
+
(a) =>
|
|
702
|
+
n`<geoscene-charts-config-view-charts .noGroup=${
|
|
703
|
+
this.activeLayerId !== void 0
|
|
704
|
+
} .modelList=${se(
|
|
705
|
+
this.modelList,
|
|
706
|
+
a.id.toString(),
|
|
707
|
+
this.supportedChartTypes
|
|
708
|
+
)} .selectedChartId=${
|
|
709
|
+
this.selectedChartId ?? ""
|
|
710
|
+
} .layer=${a} .disableEditing=${
|
|
711
|
+
this.disableEditing
|
|
712
|
+
} @geosceneChartsConfigViewChartSelect=${
|
|
713
|
+
this.onViewChartsSelect
|
|
714
|
+
} @geosceneChartsConfigViewChartEdit=${
|
|
715
|
+
this.onViewChartsEdit
|
|
716
|
+
} @geosceneChartsConfigViewChartDelete=${
|
|
717
|
+
this.onViewChartDelete
|
|
718
|
+
} @geosceneChartsConfigViewChartAddChart=${
|
|
719
|
+
this.onAddChartClick
|
|
720
|
+
}></geoscene-charts-config-view-charts>`
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
render() {
|
|
724
|
+
return this.open !== !1
|
|
725
|
+
? n`<calcite-flow>${D(
|
|
726
|
+
"charts-list",
|
|
727
|
+
n`<calcite-flow-item .selected=${
|
|
728
|
+
this.panelNumber === 0 || this.disableEditing
|
|
729
|
+
} .heading=${
|
|
730
|
+
this.headerTitle ?? this._messages.defaultHeaderTitle
|
|
731
|
+
} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(
|
|
732
|
+
this.chartsListFlowItem
|
|
733
|
+
)}>${this.renderViewCharts()}</calcite-flow-item>`
|
|
734
|
+
)}${
|
|
735
|
+
this.panelNumber >= 1 && !this.disableEditing
|
|
736
|
+
? this.renderTabs()
|
|
737
|
+
: null
|
|
738
|
+
}</calcite-flow>`
|
|
739
|
+
: null;
|
|
740
|
+
}
|
|
741
|
+
renderTabs() {
|
|
742
|
+
let e = this.getModel(this.selectedChartId);
|
|
743
|
+
return D(
|
|
744
|
+
"chart-edit",
|
|
745
|
+
n`<calcite-flow-item .selected=${
|
|
746
|
+
this.panelNumber >= 1 && !this.disableEditing
|
|
747
|
+
} @calciteFlowItemBack=${this.onBackFlow} .heading=${
|
|
748
|
+
this._messages[this.selectedPanel ?? c.Data]
|
|
749
|
+
} .description=${
|
|
750
|
+
this.currentChartTypeText !== "" &&
|
|
751
|
+
this._messages.pageFlowTitle !== void 0
|
|
752
|
+
? ie(this._messages.pageFlowTitle, {
|
|
753
|
+
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
754
|
+
layerName: e?.layer?.title ?? "",
|
|
755
|
+
})
|
|
756
|
+
: ""
|
|
757
|
+
}>${
|
|
758
|
+
e?.chartType !== void 0
|
|
759
|
+
? n`<calcite-action-bar class=${h(
|
|
760
|
+
d.tabBar
|
|
761
|
+
)} layout=horizontal expand-disabled><calcite-action class=${h(
|
|
762
|
+
d.tab
|
|
763
|
+
)} icon=configure scale=s alignment=center .active=${
|
|
764
|
+
this.selectedPanel === c.Data ||
|
|
765
|
+
this.selectedPanel === void 0
|
|
766
|
+
} @click=${() => {
|
|
767
|
+
this.selectedPanel = c.Data;
|
|
768
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
769
|
+
this.destroyTooltip
|
|
770
|
+
} text></calcite-action>${
|
|
771
|
+
e?.chartType === o.BarSeries
|
|
772
|
+
? n`<calcite-action class=${h(
|
|
773
|
+
d.tab
|
|
774
|
+
)} icon=graph-bar-stacked scale=s alignment=center .active=${
|
|
775
|
+
this.selectedPanel === c.Series
|
|
776
|
+
} @click=${() => {
|
|
777
|
+
this.selectedPanel = c.Series;
|
|
778
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
779
|
+
this.destroyTooltip
|
|
780
|
+
} text></calcite-action>`
|
|
781
|
+
: null
|
|
782
|
+
}${
|
|
783
|
+
e?.chartType === o.LineSeries
|
|
784
|
+
? n`<calcite-action class=${h(
|
|
785
|
+
d.tab
|
|
786
|
+
)} icon=graph-line-series scale=s alignment=center .active=${
|
|
787
|
+
this.selectedPanel === c.Series
|
|
788
|
+
} @click=${() => {
|
|
789
|
+
this.selectedPanel = c.Series;
|
|
790
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
791
|
+
this.destroyTooltip
|
|
792
|
+
} text></calcite-action>`
|
|
793
|
+
: null
|
|
794
|
+
}${
|
|
795
|
+
e?.chartType === o.BoxPlotSeries
|
|
796
|
+
? n`<calcite-action class=${h(
|
|
797
|
+
d.tab
|
|
798
|
+
)} icon=box-chart-series scale=s alignment=center .active=${
|
|
799
|
+
this.selectedPanel === c.Series
|
|
800
|
+
} @click=${() => {
|
|
801
|
+
this.selectedPanel = c.Series;
|
|
802
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
803
|
+
this.destroyTooltip
|
|
804
|
+
} text></calcite-action>`
|
|
805
|
+
: null
|
|
806
|
+
}${
|
|
807
|
+
e?.chartType === o.PieSeries
|
|
808
|
+
? n`<calcite-action class=${h(
|
|
809
|
+
d.tab
|
|
810
|
+
)} icon=graph-pie-slice scale=s alignment=center .active=${
|
|
811
|
+
this.selectedPanel === c.Slices
|
|
812
|
+
} @click=${() => {
|
|
813
|
+
this.selectedPanel = c.Slices;
|
|
814
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
815
|
+
this.destroyTooltip
|
|
816
|
+
} text></calcite-action>`
|
|
817
|
+
: null
|
|
818
|
+
}${
|
|
819
|
+
e?.chartType !== o.PieSeries &&
|
|
820
|
+
e?.chartType !== o.HeatSeries
|
|
821
|
+
? n`<calcite-action class=${h(
|
|
822
|
+
d.tab
|
|
823
|
+
)} icon=graph-axis scale=s alignment=center .active=${
|
|
824
|
+
this.selectedPanel === c.Axes
|
|
825
|
+
} @click=${() => {
|
|
826
|
+
this.selectedPanel = c.Axes;
|
|
827
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
828
|
+
this.destroyTooltip
|
|
829
|
+
} text></calcite-action>`
|
|
830
|
+
: null
|
|
831
|
+
}${
|
|
832
|
+
e?.chartType !== o.PieSeries &&
|
|
833
|
+
e?.chartType !== o.HeatSeries
|
|
834
|
+
? n`<calcite-action class=${h(
|
|
835
|
+
d.tab
|
|
836
|
+
)} icon=graph-guides scale=s alignment=center .active=${
|
|
837
|
+
this.selectedPanel === c.Guides
|
|
838
|
+
} @click=${() => {
|
|
839
|
+
this.selectedPanel = c.Guides;
|
|
840
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
841
|
+
this.destroyTooltip
|
|
842
|
+
} text></calcite-action>`
|
|
843
|
+
: null
|
|
844
|
+
}<calcite-action class=${h(
|
|
845
|
+
d.tab
|
|
846
|
+
)} icon=palette scale=s alignment=center .active=${
|
|
847
|
+
this.selectedPanel === c.Format
|
|
848
|
+
} @click=${() => {
|
|
849
|
+
this.selectedPanel = c.Format;
|
|
850
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
851
|
+
this.destroyTooltip
|
|
852
|
+
} text></calcite-action><calcite-action class=${h(
|
|
853
|
+
d.tab
|
|
854
|
+
)} icon=text scale=s alignment=center .active=${
|
|
855
|
+
this.selectedPanel === c.General
|
|
856
|
+
} @click=${() => {
|
|
857
|
+
this.selectedPanel = c.General;
|
|
858
|
+
}} @mouseover=${this.createTooltip} @mouseout=${
|
|
859
|
+
this.destroyTooltip
|
|
860
|
+
} text></calcite-action></calcite-action-bar>`
|
|
861
|
+
: null
|
|
862
|
+
}${this.renderChartUIComponent()}</calcite-flow-item>`
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
renderChartUIComponent() {
|
|
866
|
+
let e = this.getModel(this.selectedChartId),
|
|
867
|
+
a = e?.layer,
|
|
868
|
+
t = null;
|
|
869
|
+
if (e !== void 0 && !this.disableEditing)
|
|
870
|
+
switch (e?.chartType) {
|
|
871
|
+
case o.BarSeries:
|
|
872
|
+
t = n`<geoscene-charts-config-bar-chart class=${h(
|
|
873
|
+
d.chartUIComponent
|
|
874
|
+
)} .model=${e} .timeZone=${
|
|
875
|
+
this.timeZone
|
|
876
|
+
} .usePopupTemplateFieldsInfo=${
|
|
877
|
+
this.usePopupTemplateFieldsInfo
|
|
878
|
+
} .layer=${a} .page=${
|
|
879
|
+
this.selectedPanel ?? c.Data
|
|
880
|
+
} .calculatedMinMaxBounds=${
|
|
881
|
+
this.calculatedMinMaxBounds
|
|
882
|
+
} .seriesColor=${
|
|
883
|
+
this.seriesColor
|
|
884
|
+
}></geoscene-charts-config-bar-chart>`;
|
|
885
|
+
break;
|
|
886
|
+
case o.LineSeries:
|
|
887
|
+
t = n`<geoscene-charts-config-line-chart class=${h(
|
|
888
|
+
d.chartUIComponent
|
|
889
|
+
)} .model=${e} .timeZone=${
|
|
890
|
+
this.timeZone
|
|
891
|
+
} .usePopupTemplateFieldsInfo=${
|
|
892
|
+
this.usePopupTemplateFieldsInfo
|
|
893
|
+
} .layer=${a} .page=${
|
|
894
|
+
this.selectedPanel ?? c.Data
|
|
895
|
+
} .calculatedDataMinMaxBounds=${
|
|
896
|
+
this.calculatedDataMinMaxBounds
|
|
897
|
+
} .calculatedMinMaxBounds=${
|
|
898
|
+
this.calculatedMinMaxBounds
|
|
899
|
+
} .seriesColor=${
|
|
900
|
+
this.seriesColor
|
|
901
|
+
}></geoscene-charts-config-line-chart>`;
|
|
902
|
+
break;
|
|
903
|
+
case o.PieSeries:
|
|
904
|
+
t = n`<geoscene-charts-config-pie-chart class=${h(
|
|
905
|
+
d.chartUIComponent
|
|
906
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
907
|
+
this.usePopupTemplateFieldsInfo
|
|
908
|
+
} .layer=${a} .chartData=${this.chartData} .page=${
|
|
909
|
+
this.selectedPanel ?? c.Data
|
|
910
|
+
} .calculatedMinMaxBounds=${
|
|
911
|
+
this.calculatedMinMaxBounds
|
|
912
|
+
} .seriesColor=${this.seriesColor} .filterBySelection=${
|
|
913
|
+
this.filterBySelection
|
|
914
|
+
}></geoscene-charts-config-pie-chart>`;
|
|
915
|
+
break;
|
|
916
|
+
case o.HistogramSeries:
|
|
917
|
+
t = n`<geoscene-charts-config-histogram class=${h(
|
|
918
|
+
d.chartUIComponent
|
|
919
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
920
|
+
this.usePopupTemplateFieldsInfo
|
|
921
|
+
} .layer=${a} .page=${
|
|
922
|
+
this.selectedPanel ?? c.Data
|
|
923
|
+
} .chartData=${this.chartData} .calculatedMinMaxBounds=${
|
|
924
|
+
this.calculatedMinMaxBounds
|
|
925
|
+
} .seriesColor=${
|
|
926
|
+
this.seriesColor
|
|
927
|
+
}></geoscene-charts-config-histogram>`;
|
|
928
|
+
break;
|
|
929
|
+
case o.ScatterSeries:
|
|
930
|
+
t = n`<geoscene-charts-config-scatter-plot class=${h(
|
|
931
|
+
d.chartUIComponent
|
|
932
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
933
|
+
this.usePopupTemplateFieldsInfo
|
|
934
|
+
} .layer=${a} .page=${this.selectedPanel ?? c.Data} .r2=${
|
|
935
|
+
this.r2
|
|
936
|
+
} .calculatedDataMinMaxBounds=${
|
|
937
|
+
this.calculatedDataMinMaxBounds
|
|
938
|
+
} .calculatedMinMaxBounds=${
|
|
939
|
+
this.calculatedMinMaxBounds
|
|
940
|
+
}></geoscene-charts-config-scatter-plot>`;
|
|
941
|
+
break;
|
|
942
|
+
case o.BoxPlotSeries:
|
|
943
|
+
t = n`<geoscene-charts-config-box-plot class=${h(
|
|
944
|
+
d.chartUIComponent
|
|
945
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
946
|
+
this.usePopupTemplateFieldsInfo
|
|
947
|
+
} .layer=${a} .page=${
|
|
948
|
+
this.selectedPanel ?? c.Data
|
|
949
|
+
} .calculatedMinMaxBounds=${
|
|
950
|
+
this.calculatedMinMaxBounds
|
|
951
|
+
} .seriesColor=${
|
|
952
|
+
this.seriesColor
|
|
953
|
+
}></geoscene-charts-config-box-plot>`;
|
|
954
|
+
break;
|
|
955
|
+
case o.HeatSeries:
|
|
956
|
+
t = n`<geoscene-charts-config-heat-chart class=${h(
|
|
957
|
+
d.chartUIComponent
|
|
958
|
+
)} .model=${e} .usePopupTemplateFieldsInfo=${
|
|
959
|
+
this.usePopupTemplateFieldsInfo
|
|
960
|
+
} .layer=${a} .page=${
|
|
961
|
+
this.selectedPanel ?? c.Data
|
|
962
|
+
}></geoscene-charts-config-heat-chart>`;
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
return t;
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
U("geoscene-charts-config-create-flow", E);
|
|
969
|
+
return E;
|
|
970
|
+
},
|
|
971
|
+
"geometry/support/jsonUtils",
|
|
972
|
+
"rest/support/AttributeBinsQuery",
|
|
973
|
+
"rest/support/StatisticDefinition",
|
|
974
|
+
"time/TimeExtent",
|
|
975
|
+
"Graphic",
|
|
976
|
+
"renderers/support/jsonUtils",
|
|
977
|
+
"symbols/support/symbolUtils",
|
|
978
|
+
"intl",
|
|
979
|
+
"layers/support/FeatureFilter",
|
|
980
|
+
"smartMapping/statistics/histogram",
|
|
981
|
+
"smartMapping/statistics/summaryStatistics",
|
|
982
|
+
"request",
|
|
983
|
+
"core/sql",
|
|
984
|
+
"AttributeBinsGraphic",
|
|
985
|
+
"core/promiseUtils",
|
|
986
|
+
a,
|
|
987
|
+
d,
|
|
988
|
+
e,
|
|
989
|
+
g,
|
|
990
|
+
i,
|
|
991
|
+
j,
|
|
992
|
+
k,
|
|
993
|
+
l,
|
|
994
|
+
m,
|
|
995
|
+
p,
|
|
996
|
+
q,
|
|
997
|
+
r,
|
|
998
|
+
s,
|
|
999
|
+
t
|
|
1000
|
+
);
|