@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,367 @@
|
|
|
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 {
|
|
6
|
+
WebChart,
|
|
7
|
+
WebChartDataFilters,
|
|
8
|
+
WebChartPieChartSlice,
|
|
9
|
+
WebGaugeChart,
|
|
10
|
+
} from "../../spec/web-chart.js";
|
|
11
|
+
import type {
|
|
12
|
+
WebChartDataItem,
|
|
13
|
+
WebChartDataItemValue,
|
|
14
|
+
WebChartDataTypes,
|
|
15
|
+
} from "../../spec/data-source.js";
|
|
16
|
+
import type {
|
|
17
|
+
ActionModes,
|
|
18
|
+
CursorRange,
|
|
19
|
+
} from "../../utils/cursor/interfaces.js";
|
|
20
|
+
import type {
|
|
21
|
+
LoaderColors,
|
|
22
|
+
SelectionData,
|
|
23
|
+
SelectionTheme,
|
|
24
|
+
} from "../../utils/misc/interfaces.js";
|
|
25
|
+
import type { ChartElementLimit } from "../../utils/defaults/interfaces.js";
|
|
26
|
+
|
|
27
|
+
export interface NotifyOptions {
|
|
28
|
+
closable?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Describes the signature of the callback function used to customize the pie chart legend value labels.
|
|
33
|
+
*
|
|
34
|
+
* @param value
|
|
35
|
+
* @param percent
|
|
36
|
+
*/
|
|
37
|
+
export type PieChartLegendValueLabelFormatCallback = (
|
|
38
|
+
value?: number,
|
|
39
|
+
percent?: number
|
|
40
|
+
) => string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Describes the signature of the callback function used to customize a guide's tooltip.
|
|
44
|
+
*
|
|
45
|
+
* @param props
|
|
46
|
+
*/
|
|
47
|
+
export type GuideTooltipFormatCallback = (
|
|
48
|
+
props: GuideTooltipFormatCallbackProps
|
|
49
|
+
) => string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Describes the signature of the callback function used to customize an axis labels.
|
|
53
|
+
* - `value`: the displayed label.
|
|
54
|
+
* - `originalValue`: provided when the `value` is an alias or coded domain description.
|
|
55
|
+
*
|
|
56
|
+
* @param value
|
|
57
|
+
* @param originalValue
|
|
58
|
+
*/
|
|
59
|
+
export type AxisLabelFormatCallback = (
|
|
60
|
+
value: Date | number | string | null,
|
|
61
|
+
originalValue?: WebChartDataItemValue
|
|
62
|
+
) => string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the signature of the callback function used to customize a gauge inner label
|
|
66
|
+
*
|
|
67
|
+
* @param value
|
|
68
|
+
*/
|
|
69
|
+
export type GaugeInnerLabelFormatCallback = (value?: number) => string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the signature of the callback function executed before rendering the chart.
|
|
73
|
+
* The `slices` property will be only provided for the pie charts.
|
|
74
|
+
*
|
|
75
|
+
* @param props
|
|
76
|
+
*/
|
|
77
|
+
export type PreRenderCallback = (props: {
|
|
78
|
+
chartConfig: WebChart | WebGaugeChart;
|
|
79
|
+
data?: WebChartDataTypes;
|
|
80
|
+
slices?: WebChartPieChartSlice[];
|
|
81
|
+
}) => Promise<WebChart | WebGaugeChart>;
|
|
82
|
+
|
|
83
|
+
/** JSON representation of the runtime chart options for the update or initialization. */
|
|
84
|
+
export interface ChartOptions {
|
|
85
|
+
/** Whether to allow the object id to be used as a statistic other than `COUNT`. */
|
|
86
|
+
allowUsingObjectIdStat?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether to consider a `null` statistic as valid. If set to `false` and the data has only
|
|
89
|
+
* null values, the chart's dataset will be considered empty:
|
|
90
|
+
* - the corresponding warning event will be sent
|
|
91
|
+
* - the "no data" message will be displayed (unless `showUIMesssages` is set to `false`)
|
|
92
|
+
*/
|
|
93
|
+
nullAsValid?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether to display or hide all UI messages (e.g. no data warnings, or when the logarithmic scale can't be applied to an
|
|
96
|
+
* axis when the data contains values <= 0).
|
|
97
|
+
*/
|
|
98
|
+
showUIMessages?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* A property representing the selection to apply on the chart.
|
|
101
|
+
*
|
|
102
|
+
* The properties are considered in the following order:
|
|
103
|
+
* - `selectionData.selectionOIDs`: an array of object Ids (for Feature Layer) representing a selection to apply to the chart.
|
|
104
|
+
* - `selectionData.selectionItems`: an array of data items representing a selection to apply to the chart.
|
|
105
|
+
*/
|
|
106
|
+
selectionData?: SelectionData;
|
|
107
|
+
/**
|
|
108
|
+
* Indicates if the object ids need to be computed whenever a selection is made on or passed to the chart.
|
|
109
|
+
* Only considered for a data source using a feature layer.
|
|
110
|
+
*/
|
|
111
|
+
returnSelectionOIDs?: boolean;
|
|
112
|
+
/** Indicates if the selection indexes need to be computed whenever a selection is made on or passed to the chart. */
|
|
113
|
+
returnSelectionIndexes?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Allows the features extent to be returned, through the `geosceneChartsJSDataProcessComplete` and `geosceneChartsJSSelectionComplete` events payload.
|
|
116
|
+
* Applies only to:
|
|
117
|
+
* - Charts using an aggregation
|
|
118
|
+
* - Data source using a feature layer compatible with envelope aggregation
|
|
119
|
+
*
|
|
120
|
+
* The extent (IExtent) is returned through a property called `geoscene_charts_features_extent`.
|
|
121
|
+
*/
|
|
122
|
+
returnFeaturesExtent?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Used to provide a customized theme for the selected and non selected elements.
|
|
125
|
+
* If no style is provided for the selected elements, a default selection is applied.
|
|
126
|
+
* If no style is provided for the non selected elements, the chart's style is applied.
|
|
127
|
+
*/
|
|
128
|
+
selectionTheme?: SelectionTheme;
|
|
129
|
+
/** Used to perform client-side queries. */
|
|
130
|
+
view?: MapView | SceneView;
|
|
131
|
+
/** Used to perform queries. */
|
|
132
|
+
layer?: FeatureLayerView | SupportedLayer;
|
|
133
|
+
/** Enable filter by selection. */
|
|
134
|
+
filterBySelection?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Re-initialize chart object if the chart object is disposed. Honored only during the update call.
|
|
137
|
+
* Default is `true`.
|
|
138
|
+
*/
|
|
139
|
+
autoRecreateChart?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Indicates whether to automatically inverse the data label text color when it's too dark or too light.
|
|
142
|
+
*
|
|
143
|
+
* **Note**: Currently this feature is only available for stacked bar series and pie charts with `dataLabelsInside` set to true.
|
|
144
|
+
*/
|
|
145
|
+
autoInverseDataLabelTextColor?: boolean;
|
|
146
|
+
/** Optional create message to be displayed in the chart container. */
|
|
147
|
+
createMessage?: string;
|
|
148
|
+
/** Used to hide the loader animation (curtain and spinner), showed by default at every update. */
|
|
149
|
+
hideLoaderAnimation?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Hide the series from the chart if it doesn't have data (i.e. empty).
|
|
152
|
+
* For example, after apply data filters, filter by attribute or geometry (as when using the filter by extent).
|
|
153
|
+
*/
|
|
154
|
+
hideEmptySeries?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Used to customize the loader's colors (spinner and curtain).
|
|
157
|
+
* The loader is displayed when the chart is loading data or when the chart is being updated unless when `hideLoaderAnimation` is set to `true`.
|
|
158
|
+
*/
|
|
159
|
+
loaderColors?: LoaderColors;
|
|
160
|
+
/**
|
|
161
|
+
* Whether to replace the missing categories from a count aggregation with 0s in the chart's data.
|
|
162
|
+
*
|
|
163
|
+
* When data is retrieved from the server, the server excludes all features having a count of 0 from the response; hence resulting in missing entries on the charts.
|
|
164
|
+
* When this property is set to true, a process is applied to complete the dataset with 0s for the empty or missing categories, to display them on the chart without gaps.
|
|
165
|
+
*/
|
|
166
|
+
replaceNoValueCategoryWithZero?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Used to customize the chart's limits, especially the maximum number of elements (bars, markers...) to be displayed.
|
|
169
|
+
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
|
|
170
|
+
* or update of the chart, or render the elements up to the given limits.
|
|
171
|
+
*
|
|
172
|
+
* Not applicable for scatterplot and histogram.
|
|
173
|
+
*/
|
|
174
|
+
chartLimits?: ChartElementLimit;
|
|
175
|
+
/**
|
|
176
|
+
* Set the chart's mode.
|
|
177
|
+
* - `zoom`: Allows to zoom on the chart. All selection is disabled.
|
|
178
|
+
* - `mono-selection`: The selection is enabled but only one element can be selected. Zoom is disabled.
|
|
179
|
+
* - `multi-selection`: The selection is enabled and allows selecting multiple elements. Zoom is disabled.
|
|
180
|
+
* - `multi-selection-with-ctrl-key`: The selection is enabled and allows selecting multiple elements when the ctrl/cmd key is pressed. Zoom is disabled.
|
|
181
|
+
* - `none`: The zoom and selection features are disabled.
|
|
182
|
+
*/
|
|
183
|
+
actionMode?: ActionModes;
|
|
184
|
+
/**
|
|
185
|
+
* Sets the cursor range.
|
|
186
|
+
* - `multi-axes`: Allows to draw a free rectangle
|
|
187
|
+
* - `x-axis`: Allows to draw a rectangle bound to the x-axis
|
|
188
|
+
* - `y-axis`: Allows to draw a rectangle bound to the y-axis
|
|
189
|
+
* - `undefined`: Defaults to a preset behavior according to the chart type and action mode
|
|
190
|
+
*
|
|
191
|
+
* Applies only when the action mode is set to zoom or multi-selection.
|
|
192
|
+
*/
|
|
193
|
+
cursorRange?: CursorRange;
|
|
194
|
+
/** When `true`, the chart gets a full refresh. */
|
|
195
|
+
dataUpdated?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Helps to identify an update triggered after a view extent change.
|
|
198
|
+
* This is used to support a selection workflow while the filter by extent mode is enabled.
|
|
199
|
+
*/
|
|
200
|
+
viewExtentUpdated?: boolean;
|
|
201
|
+
/** Used to apply runtime filters to the chart's data while in Feature Layer mode. */
|
|
202
|
+
runtimeDataFilters?: WebChartDataFilters;
|
|
203
|
+
/**
|
|
204
|
+
* This property will be effective when the component's `view` is provided or when the `layer` is set to a `FeatureLayerView`.
|
|
205
|
+
* By default the queries made by the chart will consider the view's extent as the unique geometry filter applicable. This implies ignoring any
|
|
206
|
+
* geometry passed through the config (component.config.dataFilters) or the runtime filters (component.runtimeDataFilters).
|
|
207
|
+
* Setting this property to `false` signals the queries to ignore the view's extent, whether an additional geometry filter is provided or not.
|
|
208
|
+
*/
|
|
209
|
+
ignoreViewExtent?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Can be used when creating or updating a chart compatible with time binning.
|
|
212
|
+
*
|
|
213
|
+
* When `true`, the series properties `unit` and `size` become optional and will be automatically set to values that fit the data set.
|
|
214
|
+
*/
|
|
215
|
+
setTimeBinningInfoWhenNotProvided?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Can be used to disable the default setting that uses debounce functions to handle the visibility of markers
|
|
218
|
+
* (for scatterplots and line charts) that are outside of plotting area when min/max bound changes and/or
|
|
219
|
+
* when zoom action is performed (via chart cursor or scrollbar), to increase performance.
|
|
220
|
+
*
|
|
221
|
+
* This property will be set when the chart is created and cannot be updated after that.
|
|
222
|
+
*
|
|
223
|
+
* It's recommended that this property should only be set to `true` for small datasets.
|
|
224
|
+
*/
|
|
225
|
+
ignoreSmoothRenderingLimit?: boolean;
|
|
226
|
+
/** Used to customize how the tooltips are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
|
|
227
|
+
tooltipFormatter?: TooltipFormatters;
|
|
228
|
+
dataLabelFormatter?:
|
|
229
|
+
| BarAndLineDataLabelFormatCallback
|
|
230
|
+
| HistogramLabelFormatCallback
|
|
231
|
+
| PieChartLabelFormatCallback
|
|
232
|
+
| ScatterplotLabelFormatCallback;
|
|
233
|
+
/** Used to customize how the guides' tooltip are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
|
|
234
|
+
guideTooltipFormatter?: GuideTooltipFormatCallback;
|
|
235
|
+
/** Used to customize how the x-axis labels are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
|
|
236
|
+
xAxisLabelFormatter?: AxisLabelFormatCallback;
|
|
237
|
+
/**
|
|
238
|
+
* Used to customize how the y-axis labels are rendered. The callback function can return an HTML string and the tags will be interpreted properly.
|
|
239
|
+
* Not applicable to gauge.
|
|
240
|
+
*/
|
|
241
|
+
yAxisLabelFormatter?: AxisLabelFormatCallback;
|
|
242
|
+
/**
|
|
243
|
+
* Used to customize how the secondary y-axis labels are rendered on a dual axis chart. The callback function can return an HTML string and the tags will be interpreted properly.
|
|
244
|
+
* Not applicable to gauge.
|
|
245
|
+
*/
|
|
246
|
+
secondaryYAxisLabelFormatter?: AxisLabelFormatCallback;
|
|
247
|
+
pieChartLegendValueLabelFormatter?: PieChartLegendValueLabelFormatCallback;
|
|
248
|
+
/** Used to customize the gauge inner label. The callback function can return an HTML string and the tags will be interpreted properly. */
|
|
249
|
+
gaugeInnerLabelFormatter?: GaugeInnerLabelFormatCallback;
|
|
250
|
+
/**
|
|
251
|
+
* Used to disable the toggling of legend items for xy chart series, pie slices, histogram overlays, and scatterplot trend line.
|
|
252
|
+
*
|
|
253
|
+
* Not applicable to gauge.
|
|
254
|
+
*/
|
|
255
|
+
disableTogglingLegendItems?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Callback function executed after the data has been processed and before the chart renders.
|
|
258
|
+
* Can be used to alter the config from information extracted from the data for instance.
|
|
259
|
+
* Only applicable to pie chart and gauge.
|
|
260
|
+
*/
|
|
261
|
+
chartWillRender?: PreRenderCallback;
|
|
262
|
+
/** When `true` read the fields from `layer.popupTemplate` and use their alias when rendering tooltips. */
|
|
263
|
+
usePopupTemplateFieldsInfo?: boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Describes the signature of the callback function used to customize the pie chart data labels and tooltips.
|
|
268
|
+
*
|
|
269
|
+
* @param category
|
|
270
|
+
* @param value
|
|
271
|
+
* @param percent
|
|
272
|
+
* @param originalCategory
|
|
273
|
+
*/
|
|
274
|
+
export type PieChartLabelFormatCallback = (
|
|
275
|
+
category: string,
|
|
276
|
+
value?: number,
|
|
277
|
+
percent?: number,
|
|
278
|
+
originalCategory?: WebChartDataItemValue
|
|
279
|
+
) => string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Describes the signature of the callback function used to customize the histogram tooltips.
|
|
283
|
+
*
|
|
284
|
+
* @param count
|
|
285
|
+
* @param binMinValue
|
|
286
|
+
* @param binMaxValue
|
|
287
|
+
*/
|
|
288
|
+
export type HistogramLabelFormatCallback = (
|
|
289
|
+
count: number,
|
|
290
|
+
binMinValue: number,
|
|
291
|
+
binMaxValue: number
|
|
292
|
+
) => string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Describes the signature of the callback function used to customize the scatterplot tooltips.
|
|
296
|
+
*
|
|
297
|
+
* @param x
|
|
298
|
+
* @param y
|
|
299
|
+
* @param sizePolicyValue
|
|
300
|
+
* @param dataContext
|
|
301
|
+
*/
|
|
302
|
+
export type ScatterplotLabelFormatCallback = (
|
|
303
|
+
x: number,
|
|
304
|
+
y: number,
|
|
305
|
+
sizePolicyValue?: number,
|
|
306
|
+
dataContext?: WebChartDataItem
|
|
307
|
+
) => string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Describes the signature of the callback function used to customize the bar and line chart data labels.
|
|
311
|
+
*
|
|
312
|
+
* @param statValue
|
|
313
|
+
* @param percent
|
|
314
|
+
*/
|
|
315
|
+
export type BarAndLineDataLabelFormatCallback = (
|
|
316
|
+
statValue: number,
|
|
317
|
+
percent?: number
|
|
318
|
+
) => string;
|
|
319
|
+
|
|
320
|
+
export interface GuideTooltipFormatCallbackProps {
|
|
321
|
+
guideName: string;
|
|
322
|
+
start: Date | number | string;
|
|
323
|
+
end?: Date | number | string;
|
|
324
|
+
guideIndex: number;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export type TooltipFormatters =
|
|
328
|
+
| BarAndLineTooltipFormatCallback
|
|
329
|
+
| BoxPlotTooltipFormatCallback
|
|
330
|
+
| HistogramLabelFormatCallback
|
|
331
|
+
| PieChartLabelFormatCallback
|
|
332
|
+
| ScatterplotLabelFormatCallback;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Describes the signature of the callback function used to customize the bar and line chart plot tooltips.
|
|
336
|
+
*
|
|
337
|
+
* @param props
|
|
338
|
+
*/
|
|
339
|
+
export type BarAndLineTooltipFormatCallback = (
|
|
340
|
+
props: BarAndLineTooltipFormatCallbackProps
|
|
341
|
+
) => string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Describes the signature of the callback function used to customize the box plot tooltips.
|
|
345
|
+
*
|
|
346
|
+
* @param props
|
|
347
|
+
*/
|
|
348
|
+
export type BoxPlotTooltipFormatCallback = (
|
|
349
|
+
props: BoxPlotTooltipFormatCallbackProps
|
|
350
|
+
) => string;
|
|
351
|
+
|
|
352
|
+
/** Describes the interface of the object passed to the callback function used to customize the bar and line chart tooltips. */
|
|
353
|
+
export interface BarAndLineTooltipFormatCallbackProps {
|
|
354
|
+
seriesName: string;
|
|
355
|
+
statValue?: number;
|
|
356
|
+
percentValue?: number;
|
|
357
|
+
xValue?: Date | number | string;
|
|
358
|
+
originalXValue?: WebChartDataItemValue;
|
|
359
|
+
dateBinningRange?: [number, number];
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface BoxPlotTooltipFormatCallbackProps {
|
|
363
|
+
seriesName: string;
|
|
364
|
+
dataContext: WebChartDataItem;
|
|
365
|
+
xValue?: Date | number | string;
|
|
366
|
+
originalXValue?: WebChartDataItemValue;
|
|
367
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import "@geoscene/toolkit/type";
|
|
3
|
+
import { W as a, w as E } from "./series-types.js";
|
|
4
|
+
import "@geoscene/toolkit/intl";
|
|
5
|
+
import "lodash-es";
|
|
6
|
+
import "luxon";
|
|
7
|
+
import "d3-array";
|
|
8
|
+
import { dj as B, d5 as y, o as x, dp as u, a3 as f, _ as b } from "./index.js";
|
|
9
|
+
import "@geoscene/core/geometry/support/jsonUtils.js";
|
|
10
|
+
import "@geoscene/core/rest/support/AttributeBinsQuery.js";
|
|
11
|
+
import "@geoscene/core/rest/support/StatisticDefinition.js";
|
|
12
|
+
import "@geoscene/core/time/TimeExtent.js";
|
|
13
|
+
import "@geoscene/core/core/promiseUtils.js";
|
|
14
|
+
import "@geoscene/core/request.js";
|
|
15
|
+
import "./runtime.js";
|
|
16
|
+
import "@geoscene/toolkit/dom";
|
|
17
|
+
import { D as e, a as o, A as n } from "./index5.js";
|
|
18
|
+
import "@geoscene/core/intl.js";
|
|
19
|
+
import { i as g, r as F } from "./type-guards.js";
|
|
20
|
+
import { i as I } from "./rotated-state.js";
|
|
21
|
+
const D = [
|
|
22
|
+
e.EditChart,
|
|
23
|
+
e.Legend,
|
|
24
|
+
e.RotateChart,
|
|
25
|
+
e.FilterBySelection,
|
|
26
|
+
e.FilterByExtent,
|
|
27
|
+
e.Zoom,
|
|
28
|
+
e.Selection,
|
|
29
|
+
e.ClearSelection,
|
|
30
|
+
e.FullExtent,
|
|
31
|
+
e.SwitchSelection,
|
|
32
|
+
e.ExportAsCSV,
|
|
33
|
+
e.ExportAsImage,
|
|
34
|
+
],
|
|
35
|
+
L = [
|
|
36
|
+
e.EditChart,
|
|
37
|
+
e.Legend,
|
|
38
|
+
e.RotateChart,
|
|
39
|
+
e.FilterBySelection,
|
|
40
|
+
e.FilterByExtent,
|
|
41
|
+
e.Zoom,
|
|
42
|
+
e.Selection,
|
|
43
|
+
e.ClearSelection,
|
|
44
|
+
e.FullExtent,
|
|
45
|
+
e.SwitchSelection,
|
|
46
|
+
e.ExportAsImage,
|
|
47
|
+
e.ExportAsCSV,
|
|
48
|
+
],
|
|
49
|
+
T = [
|
|
50
|
+
e.EditChart,
|
|
51
|
+
e.Legend,
|
|
52
|
+
e.RotateChart,
|
|
53
|
+
e.FilterBySelection,
|
|
54
|
+
e.FilterByExtent,
|
|
55
|
+
e.Zoom,
|
|
56
|
+
e.Selection,
|
|
57
|
+
e.ClearSelection,
|
|
58
|
+
e.FullExtent,
|
|
59
|
+
e.SwitchSelection,
|
|
60
|
+
e.ExportAsImage,
|
|
61
|
+
e.ExportAsCSV,
|
|
62
|
+
],
|
|
63
|
+
v = [
|
|
64
|
+
e.EditChart,
|
|
65
|
+
e.Legend,
|
|
66
|
+
e.FilterBySelection,
|
|
67
|
+
e.FilterByExtent,
|
|
68
|
+
e.Selection,
|
|
69
|
+
e.ClearSelection,
|
|
70
|
+
e.SwitchSelection,
|
|
71
|
+
e.ExportAsImage,
|
|
72
|
+
e.ExportAsCSV,
|
|
73
|
+
],
|
|
74
|
+
w = [
|
|
75
|
+
e.EditChart,
|
|
76
|
+
e.Legend,
|
|
77
|
+
e.FilterBySelection,
|
|
78
|
+
e.Selection,
|
|
79
|
+
e.ClearSelection,
|
|
80
|
+
e.SwitchSelection,
|
|
81
|
+
e.ExportAsImage,
|
|
82
|
+
],
|
|
83
|
+
V = [
|
|
84
|
+
e.EditChart,
|
|
85
|
+
e.Legend,
|
|
86
|
+
e.FilterBySelection,
|
|
87
|
+
e.FilterByExtent,
|
|
88
|
+
e.Zoom,
|
|
89
|
+
e.Selection,
|
|
90
|
+
e.ClearSelection,
|
|
91
|
+
e.FullExtent,
|
|
92
|
+
e.SwitchSelection,
|
|
93
|
+
e.ExportAsImage,
|
|
94
|
+
e.ExportAsCSV,
|
|
95
|
+
],
|
|
96
|
+
M = [
|
|
97
|
+
e.EditChart,
|
|
98
|
+
e.Legend,
|
|
99
|
+
e.FilterBySelection,
|
|
100
|
+
e.FilterByExtent,
|
|
101
|
+
e.Zoom,
|
|
102
|
+
e.Selection,
|
|
103
|
+
e.ClearSelection,
|
|
104
|
+
e.FullExtent,
|
|
105
|
+
e.SwitchSelection,
|
|
106
|
+
e.ExportAsImage,
|
|
107
|
+
e.ExportAsCSV,
|
|
108
|
+
],
|
|
109
|
+
P = [
|
|
110
|
+
e.EditChart,
|
|
111
|
+
e.Legend,
|
|
112
|
+
e.RotateChart,
|
|
113
|
+
e.FilterBySelection,
|
|
114
|
+
e.FilterByExtent,
|
|
115
|
+
e.Zoom,
|
|
116
|
+
e.Selection,
|
|
117
|
+
e.ClearSelection,
|
|
118
|
+
e.FullExtent,
|
|
119
|
+
e.SwitchSelection,
|
|
120
|
+
e.ExportAsImage,
|
|
121
|
+
e.ExportAsCSV,
|
|
122
|
+
],
|
|
123
|
+
Z = [e.EditChart, e.FilterByExtent, e.ExportAsImage, e.ExportAsCSV];
|
|
124
|
+
function ie(c) {
|
|
125
|
+
switch (c) {
|
|
126
|
+
case a.BarSeries:
|
|
127
|
+
return D;
|
|
128
|
+
case a.LineSeries:
|
|
129
|
+
return L;
|
|
130
|
+
case a.ComboLineAndBarSeries:
|
|
131
|
+
return T;
|
|
132
|
+
case a.PieSeries:
|
|
133
|
+
return v;
|
|
134
|
+
case a.HistogramSeries:
|
|
135
|
+
return V;
|
|
136
|
+
case a.ScatterSeries:
|
|
137
|
+
return M;
|
|
138
|
+
case a.BoxPlotSeries:
|
|
139
|
+
return P;
|
|
140
|
+
case a.GaugeSeries:
|
|
141
|
+
return Z;
|
|
142
|
+
case a.HeatSeries:
|
|
143
|
+
return w;
|
|
144
|
+
default:
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const oe = (c, i, t) => {
|
|
149
|
+
const l = c.target.assignedNodes().find((S) => "legendToggle" in S),
|
|
150
|
+
s = E(t?.series);
|
|
151
|
+
return (
|
|
152
|
+
l &&
|
|
153
|
+
((l.chartType = s),
|
|
154
|
+
H({
|
|
155
|
+
actionBar: l,
|
|
156
|
+
chartComponent: i,
|
|
157
|
+
config: t,
|
|
158
|
+
})),
|
|
159
|
+
l
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
function H(c) {
|
|
163
|
+
const {
|
|
164
|
+
actionBar: i,
|
|
165
|
+
chartComponent: t,
|
|
166
|
+
config: r,
|
|
167
|
+
isWarningDisplayed: l,
|
|
168
|
+
} = c,
|
|
169
|
+
s = B(t.selectionData),
|
|
170
|
+
S = r?.legend ? r.legend.visible ?? !0 : !1;
|
|
171
|
+
if (((i.chartType = E(r?.series)), t.enableConfiguration)) {
|
|
172
|
+
const h = i.hiddenActions ?? [];
|
|
173
|
+
i.hiddenActions = h.filter((A) => A !== e.EditChart);
|
|
174
|
+
}
|
|
175
|
+
i.editChartState = t.enableConfiguration ? o.Enabled : o.Disabled;
|
|
176
|
+
const d = r && y(r.series);
|
|
177
|
+
i.legendState = d ? o.Enabled : o.Disabled;
|
|
178
|
+
const m = g(t?.model) && F(t?.model) ? t.model.legendVisibility : S;
|
|
179
|
+
i.legendToggle = d && m ? n.Active : n.Inactive;
|
|
180
|
+
const p = g(t?.model) && I(t.model) ? t.model.rotatedState : r?.rotated;
|
|
181
|
+
i.rotateChartToggle = p ? n.Active : n.Inactive;
|
|
182
|
+
const C = x(r?.series ?? []) === u.PieFromFields;
|
|
183
|
+
(i.filterBySelectionState =
|
|
184
|
+
!C && (t.filterBySelection === !0 || (!s && t.filterByExtent !== !0))
|
|
185
|
+
? o.Enabled
|
|
186
|
+
: o.Disabled),
|
|
187
|
+
(i.filterBySelectionToggle =
|
|
188
|
+
t.filterBySelection === !0 ? n.Active : n.Inactive),
|
|
189
|
+
(i.filterByExtentState =
|
|
190
|
+
t.filterByExtent === !0 || t.filterBySelection !== !0
|
|
191
|
+
? o.Enabled
|
|
192
|
+
: o.Disabled),
|
|
193
|
+
(i.filterByExtentToggle = t.filterByExtent === !0 ? n.Active : n.Inactive),
|
|
194
|
+
(i.zoomState = t.filterBySelection ? o.Disabled : o.Enabled),
|
|
195
|
+
(i.zoomToggle = t.actionMode === f.Zoom ? n.Active : n.Inactive),
|
|
196
|
+
(i.selectionState = t.filterBySelection ? o.Disabled : o.Enabled),
|
|
197
|
+
(i.selectionToggle =
|
|
198
|
+
(t.actionMode ?? i.actionBarSelectionMode) === i.actionBarSelectionMode
|
|
199
|
+
? n.Active
|
|
200
|
+
: n.Inactive),
|
|
201
|
+
(i.clearSelectionState = s ? o.Disabled : o.Enabled),
|
|
202
|
+
(i.fullExtentState = t.filterBySelection ? o.Disabled : o.Enabled),
|
|
203
|
+
(i.switchSelectionState = t.filterBySelection ? o.Disabled : o.Enabled),
|
|
204
|
+
(i.exportActionState = l || b(r) ? o.Disabled : o.Enabled);
|
|
205
|
+
}
|
|
206
|
+
export { ie as g, oe as o, H as u };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
import { C as r, m as a } from "./model-setter.js";
|
|
3
|
+
import { a as f, s as c } from "./utils2.js";
|
|
4
|
+
import { cloneDeep as x } from "lodash-es";
|
|
5
|
+
import { aP as y, bI as b, aN as m, aQ as S } from "./index.js";
|
|
6
|
+
var p = Object.defineProperty,
|
|
7
|
+
v = Object.getOwnPropertyDescriptor,
|
|
8
|
+
_ = (s, e, t, l) => {
|
|
9
|
+
for (var i = v(e, t), o = s.length - 1, n; o >= 0; o--)
|
|
10
|
+
(n = s[o]) && (i = n(e, t, i) || i);
|
|
11
|
+
return i && p(e, t, i), i;
|
|
12
|
+
};
|
|
13
|
+
function I(s) {
|
|
14
|
+
return s !== void 0 && "xAxisTitleSymbol" in s;
|
|
15
|
+
}
|
|
16
|
+
class d extends r {
|
|
17
|
+
/**
|
|
18
|
+
* X-axis title text symbol (font, color, style).
|
|
19
|
+
*/
|
|
20
|
+
get xAxisTitleSymbol() {
|
|
21
|
+
return f(this._config, 0);
|
|
22
|
+
}
|
|
23
|
+
set xAxisTitleSymbol(e) {
|
|
24
|
+
c({ symbol: e, axisIndex: 0, config: this._config });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
_([a], d.prototype, "xAxisTitleSymbol");
|
|
28
|
+
var u = Object.defineProperty,
|
|
29
|
+
g = Object.getOwnPropertyDescriptor,
|
|
30
|
+
L = (s, e, t, l) => {
|
|
31
|
+
for (var i = g(e, t), o = s.length - 1, n; o >= 0; o--)
|
|
32
|
+
(n = s[o]) && (i = n(e, t, i) || i);
|
|
33
|
+
return i && u(e, t, i), i;
|
|
34
|
+
};
|
|
35
|
+
const A = (s) => {
|
|
36
|
+
for (const e of s.axes ?? [])
|
|
37
|
+
if (e?.labels !== void 0) return e.labels.content;
|
|
38
|
+
},
|
|
39
|
+
h = (s, e) => {
|
|
40
|
+
for (const t of e.axes ?? [])
|
|
41
|
+
if (t !== void 0) {
|
|
42
|
+
const l = t.labels?.content.text;
|
|
43
|
+
s === void 0
|
|
44
|
+
? (t.labels = y({
|
|
45
|
+
text: "",
|
|
46
|
+
visible: !0,
|
|
47
|
+
font: m(b.AxisLabels),
|
|
48
|
+
type: b.AxisLabels,
|
|
49
|
+
}))
|
|
50
|
+
: (t.labels.content = x(s)),
|
|
51
|
+
(t.labels.content.text = l);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function X(s) {
|
|
55
|
+
return s !== void 0 && "axisLabelsSymbol" in s;
|
|
56
|
+
}
|
|
57
|
+
class P extends r {
|
|
58
|
+
/**
|
|
59
|
+
* Axis labels text symbol (font, color, style).
|
|
60
|
+
*/
|
|
61
|
+
get axisLabelsSymbol() {
|
|
62
|
+
return A(this._config);
|
|
63
|
+
}
|
|
64
|
+
set axisLabelsSymbol(e) {
|
|
65
|
+
h(e, this._config);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
L([a], P.prototype, "axisLabelsSymbol");
|
|
69
|
+
var O = Object.defineProperty,
|
|
70
|
+
T = Object.getOwnPropertyDescriptor,
|
|
71
|
+
D = (s, e, t, l) => {
|
|
72
|
+
for (var i = T(e, t), o = s.length - 1, n; o >= 0; o--)
|
|
73
|
+
(n = s[o]) && (i = n(e, t, i) || i);
|
|
74
|
+
return i && O(e, t, i), i;
|
|
75
|
+
};
|
|
76
|
+
const W = (s) => {
|
|
77
|
+
for (const e of s.axes ?? [])
|
|
78
|
+
if (e?.lineSymbol !== void 0) return e.lineSymbol;
|
|
79
|
+
},
|
|
80
|
+
j = (s, e) => {
|
|
81
|
+
for (const t of e.axes ?? []) t !== void 0 && (t.lineSymbol = x(s) ?? S());
|
|
82
|
+
};
|
|
83
|
+
function B(s) {
|
|
84
|
+
return s !== void 0 && "axisLinesSymbol" in s;
|
|
85
|
+
}
|
|
86
|
+
class w extends r {
|
|
87
|
+
/**
|
|
88
|
+
* Axis lines symbol (line width, style, color).
|
|
89
|
+
*/
|
|
90
|
+
get axisLinesSymbol() {
|
|
91
|
+
return W(this._config);
|
|
92
|
+
}
|
|
93
|
+
set axisLinesSymbol(e) {
|
|
94
|
+
j(e, this._config);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
D([a], w.prototype, "axisLinesSymbol");
|
|
98
|
+
export { d as W, P as a, w as b, X as c, I as d, B as i };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
|
|
2
|
+
class e {
|
|
3
|
+
/**
|
|
4
|
+
* `AxisModelWrapper` constructor.
|
|
5
|
+
*
|
|
6
|
+
* @param model The wrapped chart model.
|
|
7
|
+
* @param isXAxis Whether the wrapper is for X-axis or Y-axis.
|
|
8
|
+
*/
|
|
9
|
+
constructor(s, i = !1) {
|
|
10
|
+
(this.model = s), (this.isXAxis = i);
|
|
11
|
+
}
|
|
12
|
+
getMaxBound() {
|
|
13
|
+
return this.model?.getMaxBound(this.isXAxis ? 0 : 1) ?? Number.NaN;
|
|
14
|
+
}
|
|
15
|
+
setMaxBound(s) {
|
|
16
|
+
this.model?.setMaxBound(s, this.isXAxis ? 0 : 1);
|
|
17
|
+
}
|
|
18
|
+
getMinBound() {
|
|
19
|
+
return this.model?.getMinBound(this.isXAxis ? 0 : 1) ?? Number.NaN;
|
|
20
|
+
}
|
|
21
|
+
setMinBound(s) {
|
|
22
|
+
this.model?.setMinBound(s, this.isXAxis ? 0 : 1);
|
|
23
|
+
}
|
|
24
|
+
getValueFormat() {
|
|
25
|
+
return this.model?.getAxisValueFormat(this.isXAxis ? 0 : 1);
|
|
26
|
+
}
|
|
27
|
+
setValueFormat(s) {
|
|
28
|
+
this.model?.setAxisValueFormat(this.isXAxis ? 0 : 1, s);
|
|
29
|
+
}
|
|
30
|
+
getLogarithmic() {
|
|
31
|
+
return this.model?.getLogarithmic(this.isXAxis ? 0 : 1) ?? !1;
|
|
32
|
+
}
|
|
33
|
+
setLogarithmic(s) {
|
|
34
|
+
this.model?.setLogarithmic(s, this.isXAxis ? 0 : 1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export { e as A };
|