@arcgis/charts-components 5.0.0-next.149 → 5.0.0-next.150
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/README.md +2 -4
- package/dist/cdn/2ATTYJG6.js +2 -0
- package/dist/cdn/2CTKBS47.js +2 -0
- package/dist/cdn/2TUSY77N.js +2 -0
- package/dist/cdn/3C4HBCTV.js +2 -0
- package/dist/cdn/3MXDGSBY.js +2 -0
- package/dist/cdn/3NIVTPH5.js +2 -0
- package/dist/cdn/3Q2BMY2L.js +2 -0
- package/dist/cdn/4DH3GZII.js +2 -0
- package/dist/cdn/{Z255YC4E.js → 4KZSOP76.js} +1 -1
- package/dist/cdn/4UDVEHW7.js +2 -0
- package/dist/cdn/4ZDZD6FW.js +2 -0
- package/dist/cdn/5L3VUKGY.js +2 -0
- package/dist/cdn/{NPTAS3PB.js → 6B7P3OWP.js} +1 -1
- package/dist/cdn/6G6VPJ6K.js +2 -0
- package/dist/cdn/6L2NFOQY.js +2 -0
- package/dist/cdn/6UGQKSVS.js +2 -0
- package/dist/cdn/6VS2BUNX.js +2 -0
- package/dist/cdn/72ILHP4O.js +2 -0
- package/dist/cdn/7AXTHOAU.js +2 -0
- package/dist/cdn/{FPVMDAVP.js → 7K4VZYMF.js} +1 -1
- package/dist/cdn/{E7NSRJS7.js → 7KL2S53W.js} +1 -1
- package/dist/cdn/7QTZ5O4B.js +2 -0
- package/dist/cdn/7YWK5AX4.js +2 -0
- package/dist/cdn/ASYHUBK5.js +2 -0
- package/dist/cdn/{CB2EYCDF.js → AUSXHSLY.js} +1 -1
- package/dist/cdn/AZYWNZ5K.js +2 -0
- package/dist/cdn/BQQLJHIU.js +2 -0
- package/dist/cdn/BRLZ2A7F.js +2 -0
- package/dist/cdn/BZYRPXHD.js +2 -0
- package/dist/cdn/C6RJHADU.js +2 -0
- package/dist/cdn/CEVAPOOF.js +2 -0
- package/dist/cdn/{OHBHUABJ.js → CHYRXR3K.js} +1 -1
- package/dist/cdn/CRNVPN6B.js +2 -0
- package/dist/cdn/CSV2VTSA.js +2 -0
- package/dist/cdn/{W66EH66K.js → CZ3Y6FRM.js} +1 -1
- package/dist/cdn/DJLJ5P4N.js +2 -0
- package/dist/cdn/DKJ7FFOL.js +2 -0
- package/dist/cdn/{BVAXFPTE.js → DPJE33GY.js} +1 -1
- package/dist/cdn/{Z4XTLHV3.js → EGHGISFS.js} +1 -1
- package/dist/cdn/F6PKNIKI.js +2 -0
- package/dist/cdn/FTZVIGVW.js +2 -0
- package/dist/cdn/GJWPFACV.js +2 -0
- package/dist/cdn/H2ABG252.js +2 -0
- package/dist/cdn/{IBPSHNO6.js → H4ULSC2D.js} +1 -1
- package/dist/cdn/HEN5PMZU.js +2 -0
- package/dist/cdn/HPG3LCZN.js +2 -0
- package/dist/cdn/HT5B7AY6.js +2 -0
- package/dist/cdn/IARNAL5N.js +9 -0
- package/dist/cdn/IBKDU34P.js +2 -0
- package/dist/cdn/{737LK3MK.js → IR2XD6P6.js} +3 -3
- package/dist/cdn/{UF2PXUST.js → IXYFMAZY.js} +1 -1
- package/dist/cdn/JO6AAGBV.js +2 -0
- package/dist/cdn/{5Z2N5G2K.js → JTDP2THJ.js} +1 -1
- package/dist/cdn/KA4BSBVA.js +2 -0
- package/dist/cdn/KBKA3QP3.js +2 -0
- package/dist/cdn/KDYJOJ2S.js +2 -0
- package/dist/cdn/KISYVPQA.js +2 -0
- package/dist/cdn/{2NWN5I6T.js → KTHE5IC6.js} +1 -1
- package/dist/cdn/{ZAIDOCYY.js → LHEOE5LN.js} +1 -1
- package/dist/cdn/MAUJ4HUQ.js +2 -0
- package/dist/cdn/MGJN25XS.js +2 -0
- package/dist/cdn/MQRY2EYZ.js +2 -0
- package/dist/cdn/MR5ORMVY.js +2 -0
- package/dist/cdn/MZSNIA3C.js +2 -0
- package/dist/cdn/NA4ZFNCV.js +2 -0
- package/dist/cdn/NMLR7I33.js +2 -0
- package/dist/cdn/{NDRUBDOF.js → NNS7M7OW.js} +1 -1
- package/dist/cdn/{QUWXB6XH.js → NOGZZTAP.js} +1 -1
- package/dist/cdn/NZZFA6F6.js +2 -0
- package/dist/cdn/{OF3VUOXY.js → O4D2KFXK.js} +1 -1
- package/dist/cdn/O4NETRGZ.js +2 -0
- package/dist/cdn/OQNPUVUK.js +2 -0
- package/dist/cdn/PPJ4YIYD.js +2 -0
- package/dist/cdn/PT44XBUL.js +2 -0
- package/dist/cdn/QFHFFY63.js +32 -0
- package/dist/cdn/QSS4DLDZ.js +2 -0
- package/dist/cdn/REHRP6LK.js +2 -0
- package/dist/cdn/SK3SXWIS.js +2 -0
- package/dist/cdn/SUK2EU7N.js +2 -0
- package/dist/cdn/SWNLXRQP.js +2 -0
- package/dist/cdn/TAHOH5D6.js +2 -0
- package/dist/cdn/TJFJHDEJ.js +2 -0
- package/dist/cdn/TKGRT45N.js +2 -0
- package/dist/cdn/{CLEHXDRG.js → TKUAPKCR.js} +1 -1
- package/dist/cdn/{YJ5B4PNE.js → TTLM6X2H.js} +1 -1
- package/dist/cdn/TVTAA4IC.js +2 -0
- package/dist/cdn/UIOMTO3X.js +2 -0
- package/dist/cdn/{3YZMWGH2.js → UNK6HRSC.js} +1 -1
- package/dist/cdn/VPR47IMP.js +2 -0
- package/dist/cdn/{MB3EVMIM.js → W26BDESX.js} +1 -1
- package/dist/cdn/{LBO2EK4A.js → WUYK6PKY.js} +1 -1
- package/dist/cdn/X2HDENND.js +2 -0
- package/dist/cdn/Y6GE3FLR.js +2 -0
- package/dist/cdn/ZALZRTR5.js +2 -0
- package/dist/cdn/{YGNXHR5T.js → ZJG2TJC6.js} +1 -1
- package/dist/cdn/{TXSCRECL.js → ZL3FVX4B.js} +2 -2
- package/dist/cdn/{IYCVQI4V.js → ZMA6K5G6.js} +1 -1
- package/dist/cdn/ZUI6QY5V.js +2 -0
- package/dist/cdn/ZYBAYHZU.js +2 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +15 -16
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +3 -3
- package/dist/chunks/box-plot-model.js +69 -67
- package/dist/chunks/chart-model.js +527 -0
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +13 -12
- package/dist/chunks/combo-bar-line-chart-model.js +40 -41
- package/dist/chunks/data.js +4 -4
- package/dist/chunks/default.js +5 -4
- package/dist/chunks/gauge-model.js +19 -18
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +42 -43
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +43 -42
- package/dist/chunks/index.js +1128 -1195
- package/dist/chunks/interfaces.js +31 -30
- package/dist/chunks/line-chart-model.js +15 -15
- package/dist/chunks/model-setter.js +23 -18
- package/dist/chunks/model-with-guides.js +317 -0
- package/dist/chunks/model-with-line-marker-styling.js +177 -0
- package/dist/chunks/model-with-tooltips.js +315 -0
- package/dist/chunks/model-with-x-guides.js +49 -0
- package/dist/chunks/model-with-y-guides.js +629 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +77 -19
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +18 -18
- package/dist/chunks/radar-chart-model.js +8 -8
- package/dist/chunks/resource.js +5 -4
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +54 -52
- package/dist/chunks/serial-chart-data.js +322 -371
- package/dist/chunks/serial-chart-model.js +295 -138
- package/dist/chunks/series-length.js +79 -0
- package/dist/chunks/series.js +37 -0
- package/dist/chunks/setup-utils.js +79 -0
- package/dist/chunks/type-guards.js +45 -44
- package/dist/chunks/utils.js +3 -3
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +63 -61
- package/dist/components/arcgis-chart/customElement.d.ts +9 -0
- package/dist/components/arcgis-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/resource.d.ts +9 -0
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/resource.d.ts +8 -0
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces.d.ts +77 -0
- package/dist/json-schema/index.d.ts +8498 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +9 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +14 -28
- package/dist/model/chart-model/chart-model-base.d.ts +1 -0
- package/dist/model/chart-model/chart-model.d.ts +2 -31
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +11 -9
- package/dist/model/gauge-model/gauge-model.d.ts +12 -18
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +17 -2
- package/dist/model/histogram-model/histogram-model.d.ts +15 -27
- package/dist/model/line-chart-model/line-chart-model.d.ts +12 -11
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +2 -8
- package/dist/model/mixins/model-with-y-guides.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +12 -14
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +12 -11
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +16 -29
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +9 -31
- package/dist/model.js +38 -112
- package/dist/spec/config-defaults.d.ts +4 -0
- package/dist/spec/rest-js-types.d.ts +89 -224
- package/dist/spec/web-chart.d.ts +1 -2
- package/dist/utils/chart-config/interfaces.d.ts +3 -0
- package/dist/utils/chart-config/utils/index.d.ts +39 -1
- package/dist/utils/chart-config/utils/interfaces.d.ts +2 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +19 -7
- package/dist/utils/components/event-payloads.d.ts +9 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/data/index.d.ts +12 -0
- package/dist/utils/data/interfaces.d.ts +6 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +6 -0
- package/dist/utils/defaults/index.d.ts +135 -15
- package/dist/utils/defaults/interfaces.d.ts +4 -0
- package/dist/utils/layer/index.d.ts +40 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +2 -0
- package/dist/utils/layer/interfaces.d.ts +15 -2
- package/dist/utils/layer/query-features/index.d.ts +26 -1
- package/dist/utils/layer/query-features/interfaces.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +15 -1
- package/dist/utils/layer/utils/index.d.ts +16 -0
- package/dist/utils/localization/index.d.ts +10 -0
- package/dist/utils/localization/interfaces.d.ts +11 -0
- package/dist/utils/misc/index.d.ts +29 -0
- package/dist/utils/type-guards/index.d.ts +38 -3
- package/dist/utils/type-guards/series-types.d.ts +18 -0
- package/dist/utils/types/index.d.ts +31 -6
- package/dist/utils/ui/chart-ui-utils.d.ts +6 -1
- package/dist/utils/ui/popover-ui-utils.d.ts +3 -0
- package/package.json +3 -3
- package/dist/cdn/3IFN5UNC.js +0 -2
- package/dist/cdn/3NE6BHA7.js +0 -2
- package/dist/cdn/3T66I3AV.js +0 -2
- package/dist/cdn/4G3CMZYX.js +0 -2
- package/dist/cdn/5NFDDXIZ.js +0 -2
- package/dist/cdn/5ZDTPYVX.js +0 -2
- package/dist/cdn/73DP7O6V.js +0 -2
- package/dist/cdn/7BYBNK4D.js +0 -2
- package/dist/cdn/7J55VBBP.js +0 -2
- package/dist/cdn/7JHAQ55T.js +0 -2
- package/dist/cdn/7MK2A5CN.js +0 -2
- package/dist/cdn/7QAEPVLP.js +0 -2
- package/dist/cdn/AZXSIAD5.js +0 -2
- package/dist/cdn/B4ONKX76.js +0 -2
- package/dist/cdn/BGRFXQBF.js +0 -2
- package/dist/cdn/BRSFMI7W.js +0 -2
- package/dist/cdn/BZBPPMPO.js +0 -2
- package/dist/cdn/CCE73L6Y.js +0 -2
- package/dist/cdn/CN4JJBQD.js +0 -2
- package/dist/cdn/CSGEEI34.js +0 -2
- package/dist/cdn/E7HMRRLS.js +0 -2
- package/dist/cdn/EJUACEYV.js +0 -2
- package/dist/cdn/F2EEAM7D.js +0 -2
- package/dist/cdn/F32ALQAF.js +0 -2
- package/dist/cdn/FDMFAAYD.js +0 -32
- package/dist/cdn/GXU3KAZJ.js +0 -2
- package/dist/cdn/HBBVQMKS.js +0 -2
- package/dist/cdn/HKS7OKQ2.js +0 -2
- package/dist/cdn/IDUT4PPZ.js +0 -2
- package/dist/cdn/ITOFPGYG.js +0 -2
- package/dist/cdn/K35SAKH6.js +0 -2
- package/dist/cdn/K7PHN6CK.js +0 -2
- package/dist/cdn/KFJDBWIX.js +0 -2
- package/dist/cdn/KJZSK5YZ.js +0 -2
- package/dist/cdn/KTAVV3VX.js +0 -2
- package/dist/cdn/KTLKB6B4.js +0 -2
- package/dist/cdn/KVD56MDM.js +0 -2
- package/dist/cdn/L53UCZR6.js +0 -2
- package/dist/cdn/L7C7MUW3.js +0 -2
- package/dist/cdn/LWCWU4HZ.js +0 -2
- package/dist/cdn/MJMTX7G3.js +0 -2
- package/dist/cdn/MKUWP4YO.js +0 -2
- package/dist/cdn/OLWAY6BU.js +0 -2
- package/dist/cdn/P4IJGBEM.js +0 -2
- package/dist/cdn/PHOC6W4U.js +0 -2
- package/dist/cdn/PTHMEJ4M.js +0 -2
- package/dist/cdn/Q4XRMPTN.js +0 -2
- package/dist/cdn/Q65AFAC2.js +0 -2
- package/dist/cdn/QEUQO5PH.js +0 -2
- package/dist/cdn/QJ7AL2JA.js +0 -2
- package/dist/cdn/QR6LWJA6.js +0 -2
- package/dist/cdn/QRNC5B3Q.js +0 -2
- package/dist/cdn/QZQBEPBF.js +0 -2
- package/dist/cdn/R23O2O7W.js +0 -2
- package/dist/cdn/TTDJJ46R.js +0 -2
- package/dist/cdn/TZ6AFED4.js +0 -2
- package/dist/cdn/UMDCLTNE.js +0 -2
- package/dist/cdn/VPVSYP2L.js +0 -2
- package/dist/cdn/VZR5LOQW.js +0 -2
- package/dist/cdn/W7MNTZT7.js +0 -2
- package/dist/cdn/XRRVOQJ3.js +0 -2
- package/dist/cdn/XSDOT2VC.js +0 -2
- package/dist/cdn/YJC6B2JE.js +0 -2
- package/dist/cdn/YMO37QWY.js +0 -9
- package/dist/cdn/Z2RUBKU7.js +0 -2
- package/dist/cdn/ZEKY74JE.js +0 -2
- package/dist/cdn/ZWPLVA7G.js +0 -2
- package/dist/cdn/ZXRU5IEE.js +0 -2
- package/dist/chunks/data-labels-visibility.js +0 -87
- package/dist/chunks/model-with-multi-axes.js +0 -1995
- package/dist/chunks/x-axis-labels-visibility.js +0 -68
- package/dist/model/shared/utils.d.ts +0 -4
- /package/dist/cdn/{CF5YAZDQ.js → 2BRTKEX6.js} +0 -0
- /package/dist/cdn/{S24EVUYE.js → F4KKUFSS.js} +0 -0
- /package/dist/cdn/{OJHML5IU.js → Z5QOLHIZ.js} +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
+
import "@arcgis/toolkit/type";
|
|
2
3
|
import { a as e } from "./series-types.js";
|
|
3
|
-
const
|
|
4
|
+
const i = {
|
|
4
5
|
actionBar: "action-bar",
|
|
5
6
|
customActionTop: "custom-action-top",
|
|
6
7
|
customActionBelow: "custom-action-below"
|
|
7
|
-
},
|
|
8
|
+
}, n = {
|
|
8
9
|
Mean: "mean",
|
|
9
10
|
Median: "median",
|
|
10
11
|
StandardDev: "standardDev",
|
|
11
12
|
NormalDist: "normalDist"
|
|
12
|
-
},
|
|
13
|
+
}, o = {
|
|
13
14
|
Mean: "mean",
|
|
14
15
|
Median: "median",
|
|
15
16
|
StandardDev: "standardDev",
|
|
@@ -19,7 +20,7 @@ const t = {
|
|
|
19
20
|
Max: e.Maximum,
|
|
20
21
|
Sum: e.Sum,
|
|
21
22
|
Nulls: "nulls"
|
|
22
|
-
},
|
|
23
|
+
}, r = {
|
|
23
24
|
Data: "data",
|
|
24
25
|
Series: "series",
|
|
25
26
|
Slices: "slices",
|
|
@@ -27,19 +28,19 @@ const t = {
|
|
|
27
28
|
Guides: "guides",
|
|
28
29
|
Format: "format",
|
|
29
30
|
General: "general"
|
|
30
|
-
},
|
|
31
|
+
}, s = {
|
|
31
32
|
Title: "title",
|
|
32
33
|
Text: "text",
|
|
33
34
|
Label: "label",
|
|
34
35
|
Palette: "palette"
|
|
35
|
-
},
|
|
36
|
+
}, l = {
|
|
36
37
|
xAxisField: "xAxisField",
|
|
37
38
|
aggregation: "aggregation",
|
|
38
39
|
numericFields: "numericField",
|
|
39
40
|
splitByField: "splitByField",
|
|
40
41
|
interval: "interval",
|
|
41
42
|
intervalAlignment: "intervalAlignment"
|
|
42
|
-
},
|
|
43
|
+
}, d = {
|
|
43
44
|
category: "category",
|
|
44
45
|
aggregation: "aggregation",
|
|
45
46
|
numericFields: "numericField",
|
|
@@ -47,17 +48,17 @@ const t = {
|
|
|
47
48
|
sortOrder: "sortOrder",
|
|
48
49
|
interval: "interval",
|
|
49
50
|
intervalAlignment: "intervalAlignment"
|
|
50
|
-
},
|
|
51
|
+
}, c = {
|
|
51
52
|
category: "category",
|
|
52
53
|
aggregation: "aggregation",
|
|
53
54
|
numericFields: "numericFields",
|
|
54
55
|
sortOrder: "sortOrder"
|
|
55
|
-
},
|
|
56
|
+
}, m = {
|
|
56
57
|
numericFields: "numericField",
|
|
57
58
|
transformation: "transformation",
|
|
58
59
|
fillSymbol: "fillSymbol",
|
|
59
60
|
lineSymbol: "lineSymbol"
|
|
60
|
-
},
|
|
61
|
+
}, g = {
|
|
61
62
|
xAxisField: "xAxis",
|
|
62
63
|
yAxisField: "yAxis",
|
|
63
64
|
sizeVariable: "sizeVariable",
|
|
@@ -65,12 +66,12 @@ const t = {
|
|
|
65
66
|
trendLine: "trendLine",
|
|
66
67
|
additionalTooltipFields: "additionalTooltipFields",
|
|
67
68
|
none: "none"
|
|
68
|
-
},
|
|
69
|
+
}, y = {
|
|
69
70
|
category: "category",
|
|
70
71
|
numericFields: "numericField",
|
|
71
72
|
splitByField: "splitByField",
|
|
72
73
|
sortOrder: "sortOrder"
|
|
73
|
-
},
|
|
74
|
+
}, u = {
|
|
74
75
|
xAxisField: "xAxisField",
|
|
75
76
|
aggregation: "aggregation",
|
|
76
77
|
numericFields: "numericField",
|
|
@@ -79,30 +80,30 @@ const t = {
|
|
|
79
80
|
classBreakMethod: "classBreakMethod",
|
|
80
81
|
colorScheme: "colorScheme",
|
|
81
82
|
null: "null"
|
|
82
|
-
},
|
|
83
|
+
}, p = {
|
|
83
84
|
WeekByDayOfWeekAndHourOfDay: "weekByDayOfWeekAndHourOfDay",
|
|
84
85
|
YearByMonthAndDayOfMonth: "yearByMonthAndDayOfMonth"
|
|
85
|
-
},
|
|
86
|
+
}, F = {
|
|
86
87
|
Fixed: "fixed",
|
|
87
88
|
Proportional: "proportional"
|
|
88
|
-
},
|
|
89
|
+
}, x = {
|
|
89
90
|
Up: "up",
|
|
90
91
|
Down: "down"
|
|
91
92
|
};
|
|
92
93
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
94
|
+
d as B,
|
|
95
|
+
r as C,
|
|
96
|
+
s as F,
|
|
97
|
+
m as H,
|
|
98
|
+
l as L,
|
|
99
|
+
c as P,
|
|
100
|
+
g as S,
|
|
101
|
+
p as W,
|
|
102
|
+
y as a,
|
|
103
|
+
o as b,
|
|
104
|
+
x as c,
|
|
105
|
+
u as d,
|
|
106
|
+
n as e,
|
|
107
|
+
F as f,
|
|
108
|
+
i as g
|
|
108
109
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { s as S, a as m, b as d, c, d as y,
|
|
3
|
-
import { S as b } from "./serial-chart-model.js";
|
|
4
|
-
import {
|
|
2
|
+
import { s as S, a as m, b as d, c, d as y, W as g } from "./negative-values-stacked-to-baseline.js";
|
|
3
|
+
import { S as u, s as p, a as b } from "./serial-chart-model.js";
|
|
4
|
+
import { g as n } from "./serial-chart-data.js";
|
|
5
5
|
import { a as I } from "./utils.js";
|
|
6
6
|
import { m as v } from "./model-setter.js";
|
|
7
|
-
import { W as _ } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { W as _ } from "./series-types.js";
|
|
8
|
+
import { bf as C, b3 as f, bK as a, aC as L, ap as M } from "./index.js";
|
|
9
|
+
import { M as k } from "./model-with-line-marker-styling.js";
|
|
10
10
|
var D = Object.defineProperty, F = Object.getOwnPropertyDescriptor, x = (o, e, s, t) => {
|
|
11
11
|
for (var i = F(e, s), r = o.length - 1, l; r >= 0; r--)
|
|
12
12
|
(l = o[r]) && (i = l(e, s, i) || i);
|
|
13
13
|
return i && D(e, s, i), i;
|
|
14
14
|
};
|
|
15
|
-
class h extends
|
|
15
|
+
class h extends u {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._chartType =
|
|
17
|
+
super(...arguments), this._chartType = _.LineSeries;
|
|
18
18
|
}
|
|
19
19
|
async setup(e) {
|
|
20
20
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.updateSeriesFromLayerFilter(), this.initDefaultSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -24,7 +24,7 @@ class h extends b {
|
|
|
24
24
|
// #region Protected methods
|
|
25
25
|
// ---------------------------------------------------------------------------------------------
|
|
26
26
|
generateDefaultConfig() {
|
|
27
|
-
const e =
|
|
27
|
+
const e = C(this.commonStrings);
|
|
28
28
|
return e.series = [
|
|
29
29
|
f({
|
|
30
30
|
commonStrings: this.commonStrings,
|
|
@@ -43,20 +43,20 @@ class h extends b {
|
|
|
43
43
|
}
|
|
44
44
|
resetSeriesStyling() {
|
|
45
45
|
for (let e = 0; e < this.seriesLength; e += 1) {
|
|
46
|
-
const s =
|
|
46
|
+
const s = L({
|
|
47
47
|
colorIndex: e,
|
|
48
|
-
opacity:
|
|
48
|
+
opacity: M
|
|
49
49
|
});
|
|
50
|
-
if (
|
|
50
|
+
if (p(s, e, this._config), S(s, e, this._config), this.layerInfo !== void 0) {
|
|
51
51
|
const t = this.getSeriesId(e), i = n({
|
|
52
52
|
config: this._config,
|
|
53
53
|
seriesIndex: e,
|
|
54
54
|
layerInfo: this.layerInfo,
|
|
55
55
|
commonStrings: this.commonStrings
|
|
56
56
|
});
|
|
57
|
-
i !== a(this.layerInfo.layer).idField &&
|
|
57
|
+
i !== a(this.layerInfo.layer).idField && b(i ?? t, e, this._config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
m(this.defaultSeries?.lineSymbol?.style, e, this._config), d(this.defaultSeries?.lineSymbol?.width, e, this._config), c(this.defaultSeries?.markerSymbol?.style, e, this._config), y(this.defaultSeries?.markerSymbol?.size, e, this._config);
|
|
60
60
|
}
|
|
61
61
|
this._config.colorMatch = !0;
|
|
62
62
|
}
|
|
@@ -88,7 +88,7 @@ class h extends b {
|
|
|
88
88
|
x([
|
|
89
89
|
v
|
|
90
90
|
], h.prototype, "resetSeriesStyling");
|
|
91
|
-
const w = [
|
|
91
|
+
const w = [g, k];
|
|
92
92
|
I(h, w);
|
|
93
93
|
export {
|
|
94
94
|
h as LineChartModel
|
|
@@ -6,12 +6,12 @@ import { c as l } from "./index2.js";
|
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "luxon";
|
|
8
8
|
import "d3-array";
|
|
9
|
+
import "@arcgis/toolkit/type";
|
|
9
10
|
import "./series-types.js";
|
|
10
11
|
import "@arcgis/core/core/promiseUtils.js";
|
|
11
12
|
import "@arcgis/core/request.js";
|
|
12
13
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
13
14
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
14
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
15
15
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
16
16
|
import "@arcgis/core/time/TimeExtent.js";
|
|
17
17
|
import "@esri/arcgis-html-sanitizer";
|
|
@@ -26,8 +26,13 @@ import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
|
26
26
|
import "simple-statistics";
|
|
27
27
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
28
28
|
class z extends EventTarget {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @param args
|
|
31
|
+
* @privateRemarks This "any" constructor is needed for TypeScript to merge
|
|
32
|
+
* the base class and mixin classes types together smoothly.
|
|
33
|
+
*/
|
|
34
|
+
constructor(...i) {
|
|
35
|
+
super(), this.dirtyAsyncSetters = [], this.asyncConfigUpdateInProgress = !1, this.pendingUpdates = 0, this.dataStore = {}, this.asyncUpdatesPromise = new Promise((t) => {
|
|
31
36
|
this.resolveSetup = t;
|
|
32
37
|
}), this.emitConfigUpdate = (t) => {
|
|
33
38
|
this.dispatchEvent(
|
|
@@ -50,9 +55,9 @@ class z extends EventTarget {
|
|
|
50
55
|
*
|
|
51
56
|
* @param otherModel - The other chart model to compare to.
|
|
52
57
|
*/
|
|
53
|
-
isSameChartAs(
|
|
54
|
-
const
|
|
55
|
-
return
|
|
58
|
+
isSameChartAs(i) {
|
|
59
|
+
const t = i?.layer;
|
|
60
|
+
return t !== void 0 && this._config.id === i?.chartId && this.layerInfo?.layer.id === t.id;
|
|
56
61
|
}
|
|
57
62
|
/**
|
|
58
63
|
* Can be awaited to allow any pending async updates to complete.
|
|
@@ -68,14 +73,14 @@ class z extends EventTarget {
|
|
|
68
73
|
* @param params.iLayer - The layer description to use if the layer is not provided.
|
|
69
74
|
* @param params.config - The config object to be loaded.
|
|
70
75
|
*/
|
|
71
|
-
async loadConfigFromLayer(
|
|
72
|
-
const { layer:
|
|
76
|
+
async loadConfigFromLayer(i) {
|
|
77
|
+
const { layer: t, iLayer: s, config: a } = i;
|
|
73
78
|
this.commonStrings = await p(
|
|
74
79
|
d(document.documentElement).t9nLocale,
|
|
75
80
|
h("./assets/common/t9n"),
|
|
76
81
|
"messages."
|
|
77
82
|
);
|
|
78
|
-
let e =
|
|
83
|
+
let e = t;
|
|
79
84
|
if (!e && s ? e = await r(s) : !e && a?.iLayer && (e = await r(a.iLayer)), e) {
|
|
80
85
|
const o = await c(e, !0), m = g(e).idField;
|
|
81
86
|
this.layerInfo = {
|
|
@@ -90,8 +95,8 @@ class z extends EventTarget {
|
|
|
90
95
|
* Manually block the async guard to queue up config updates until unblocked.
|
|
91
96
|
*/
|
|
92
97
|
startAsyncUpdate() {
|
|
93
|
-
this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((
|
|
94
|
-
this.resolveSetup =
|
|
98
|
+
this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((i) => {
|
|
99
|
+
this.resolveSetup = i;
|
|
95
100
|
})), this.pendingUpdates += 1;
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
@@ -102,17 +107,17 @@ class z extends EventTarget {
|
|
|
102
107
|
}
|
|
103
108
|
// #endregion
|
|
104
109
|
}
|
|
105
|
-
function G(n,
|
|
106
|
-
const s =
|
|
107
|
-
return s && (
|
|
110
|
+
function G(n, i, t) {
|
|
111
|
+
const s = t.set, a = t.value;
|
|
112
|
+
return s && (t.set = function(e) {
|
|
108
113
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
109
|
-
s.call(this, e), this.emitConfigUpdate(
|
|
114
|
+
s.call(this, e), this.emitConfigUpdate(i);
|
|
110
115
|
});
|
|
111
|
-
}), a && (
|
|
116
|
+
}), a && (t.value = function(...e) {
|
|
112
117
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
113
|
-
a.apply(this, e), this.emitConfigUpdate(
|
|
118
|
+
a.apply(this, e), this.emitConfigUpdate(i);
|
|
114
119
|
});
|
|
115
|
-
}),
|
|
120
|
+
}), t;
|
|
116
121
|
}
|
|
117
122
|
export {
|
|
118
123
|
z as C,
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
+
import { C as f, m as a } from "./model-setter.js";
|
|
3
|
+
import { k as b, s as m, a as _ } from "./utils.js";
|
|
4
|
+
import { e as h, f as S } from "./utils2.js";
|
|
5
|
+
import { C as L } from "./chart-model.js";
|
|
6
|
+
import { cloneDeep as T } from "lodash-es";
|
|
7
|
+
import "@arcgis/toolkit/type";
|
|
8
|
+
import { W as x } from "./series-types.js";
|
|
9
|
+
import { f as c } from "./rest-js-object-literals.js";
|
|
10
|
+
import "@arcgis/toolkit/intl";
|
|
11
|
+
import "luxon";
|
|
12
|
+
import "d3-array";
|
|
13
|
+
import { aH as B, aG as C, bB as p, aJ as X, i as A } from "./index.js";
|
|
14
|
+
import "@esri/arcgis-html-sanitizer";
|
|
15
|
+
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
16
|
+
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
17
|
+
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
18
|
+
import "@arcgis/core/time/TimeExtent.js";
|
|
19
|
+
import "@arcgis/core/core/promiseUtils.js";
|
|
20
|
+
import "@arcgis/core/request.js";
|
|
21
|
+
import "./runtime.js";
|
|
22
|
+
import { c as M, b as O } from "./index4.js";
|
|
23
|
+
import "@arcgis/toolkit/dom";
|
|
24
|
+
import { G as g } from "./common.js";
|
|
25
|
+
var P = Object.defineProperty, D = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
|
|
26
|
+
for (var o = D(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
27
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
28
|
+
return o && P(e, i, o), o;
|
|
29
|
+
};
|
|
30
|
+
const R = (t) => b({ config: t, axisIndex: 0, isMax: !0 }), E = (t, e) => {
|
|
31
|
+
m({ config: t, value: e, axisIndex: 0, isMax: !0 });
|
|
32
|
+
};
|
|
33
|
+
class y extends f {
|
|
34
|
+
/**
|
|
35
|
+
* Maximum bound set for the x-axis. Null indicates no explicit maximum.
|
|
36
|
+
*/
|
|
37
|
+
get maxXBound() {
|
|
38
|
+
return R(this._config);
|
|
39
|
+
}
|
|
40
|
+
set maxXBound(e) {
|
|
41
|
+
E(this._config, e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
V([
|
|
45
|
+
a
|
|
46
|
+
], y.prototype, "maxXBound");
|
|
47
|
+
var W = Object.defineProperty, w = Object.getOwnPropertyDescriptor, F = (t, e, i, s) => {
|
|
48
|
+
for (var o = w(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
49
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
50
|
+
return o && W(e, i, o), o;
|
|
51
|
+
};
|
|
52
|
+
const j = (t) => b({ config: t, axisIndex: 0, isMax: !1 }), $ = (t, e) => {
|
|
53
|
+
m({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
54
|
+
};
|
|
55
|
+
class v extends f {
|
|
56
|
+
/**
|
|
57
|
+
* Minimum bound set for the x-axis. Null indicates no explicit minimum.
|
|
58
|
+
*/
|
|
59
|
+
get minXBound() {
|
|
60
|
+
return j(this._config);
|
|
61
|
+
}
|
|
62
|
+
set minXBound(e) {
|
|
63
|
+
$(this._config, e);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
F([
|
|
67
|
+
a
|
|
68
|
+
], v.prototype, "minXBound");
|
|
69
|
+
class N extends f {
|
|
70
|
+
}
|
|
71
|
+
_(N, [y, v]);
|
|
72
|
+
class Pe extends f {
|
|
73
|
+
/**
|
|
74
|
+
* Whether the x-axis labels are visible.
|
|
75
|
+
*/
|
|
76
|
+
get xAxisLabelsVisibility() {
|
|
77
|
+
return h(0, this._config);
|
|
78
|
+
}
|
|
79
|
+
set xAxisLabelsVisibility(e) {
|
|
80
|
+
this.guardSetterFromAsyncOverwrite(() => {
|
|
81
|
+
S(e, 0, this._config), this.emitConfigUpdate("xAxisLabelsVisibility");
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const I = (t) => {
|
|
86
|
+
for (const e of t.axes ?? [])
|
|
87
|
+
for (const i of e?.guides ?? [])
|
|
88
|
+
if (i.label !== void 0)
|
|
89
|
+
return i.label;
|
|
90
|
+
}, H = (t, e) => {
|
|
91
|
+
for (const i of e.axes ?? [])
|
|
92
|
+
for (const s of i?.guides ?? []) {
|
|
93
|
+
const o = s.label?.text ?? "";
|
|
94
|
+
s.label = T(t), s.label !== void 0 && (s.label.text = o);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function r(t) {
|
|
98
|
+
return {
|
|
99
|
+
...t,
|
|
100
|
+
axis: t.orientation === g.X ? t.config.axes?.[0] : t.config.axes?.[1],
|
|
101
|
+
index: t.index ?? 0,
|
|
102
|
+
orientation: t.orientation ?? g.Y
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
const J = (t) => {
|
|
106
|
+
const { axis: e, index: i } = r(t);
|
|
107
|
+
return e?.guides?.[i]?.visible ?? !0;
|
|
108
|
+
}, U = (t) => {
|
|
109
|
+
const { visible: e, axis: i, index: s } = r(t);
|
|
110
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].visible = e);
|
|
111
|
+
}, G = (t) => {
|
|
112
|
+
const e = A(t.start, t.end);
|
|
113
|
+
M(t.style) && e === c.SFS ? t.style = { type: c.SFS, color: t.style.color } : O(t.style) && e === c.SLS && (t.style = { type: c.SLS, color: t.style.color });
|
|
114
|
+
}, Y = (t) => {
|
|
115
|
+
const { axis: e, index: i } = r(t);
|
|
116
|
+
return e?.guides?.[i]?.start ?? null;
|
|
117
|
+
}, q = (t) => {
|
|
118
|
+
const { start: e, axis: i, index: s } = r(t);
|
|
119
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].start = e, G(i.guides[s]));
|
|
120
|
+
}, z = (t) => {
|
|
121
|
+
const { axis: e, index: i } = r(t);
|
|
122
|
+
return e?.guides?.[i]?.end;
|
|
123
|
+
}, K = (t) => {
|
|
124
|
+
const { end: e, axis: i, index: s } = r(t);
|
|
125
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].end = e, G(i.guides[s]));
|
|
126
|
+
}, Q = (t) => {
|
|
127
|
+
const { axis: e, index: i } = r(t);
|
|
128
|
+
return e?.guides?.[i]?.name;
|
|
129
|
+
}, Z = (t) => {
|
|
130
|
+
const { name: e, axis: i, index: s } = r(t);
|
|
131
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
132
|
+
}, k = (t) => {
|
|
133
|
+
const { axis: e, index: i } = r(t);
|
|
134
|
+
return e?.guides?.[i]?.label?.text;
|
|
135
|
+
}, ee = (t) => {
|
|
136
|
+
const { labelText: e, axis: i, index: s } = r(t), o = i?.guides?.[s]?.label ?? B(e, C(p.GuideLabel), p.GuideLabel);
|
|
137
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
138
|
+
}, ie = (t) => {
|
|
139
|
+
const { axis: e, index: i } = r(t);
|
|
140
|
+
return e?.guides?.[i]?.above ?? !1;
|
|
141
|
+
}, te = (t) => {
|
|
142
|
+
const { above: e, axis: i, index: s } = r(t);
|
|
143
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
144
|
+
}, se = (t) => {
|
|
145
|
+
const { axis: e, index: i } = r(t);
|
|
146
|
+
return e?.guides?.[i]?.style;
|
|
147
|
+
}, oe = (t) => {
|
|
148
|
+
const { style: e, axis: i, index: s } = r(t);
|
|
149
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
150
|
+
}, De = (t) => {
|
|
151
|
+
const { config: e, name: i, index: s, orientation: o } = t, n = o === g.X ? e.axes?.[0] : e.axes?.[1];
|
|
152
|
+
if (n !== void 0) {
|
|
153
|
+
n.guides = n.guides ?? [];
|
|
154
|
+
const d = {
|
|
155
|
+
type: x.Guide,
|
|
156
|
+
name: i,
|
|
157
|
+
start: n.valueFormat.type === x.DateAxisFormat ? "" : 0,
|
|
158
|
+
style: X()
|
|
159
|
+
};
|
|
160
|
+
s !== void 0 && s < n.guides.length ? n.guides.splice(s, 0, d) : n.guides.push(d);
|
|
161
|
+
}
|
|
162
|
+
}, Ve = (t) => {
|
|
163
|
+
const { config: e, index: i, orientation: s } = t, o = s === g.X ? e.axes?.[0] : e.axes?.[1];
|
|
164
|
+
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
165
|
+
}, ne = (t) => {
|
|
166
|
+
const { axis: e, index: i } = r(t);
|
|
167
|
+
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
168
|
+
}, re = (t) => {
|
|
169
|
+
const { reverseColor: e, axis: i, index: s } = r(t);
|
|
170
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].tooltipReverseColor = e);
|
|
171
|
+
};
|
|
172
|
+
var de = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, u = (t, e, i, s) => {
|
|
173
|
+
for (var o = ae(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
174
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
175
|
+
return o && de(e, i, o), o;
|
|
176
|
+
};
|
|
177
|
+
class l extends L {
|
|
178
|
+
/**
|
|
179
|
+
* The guide labels text symbol (font, color, style).
|
|
180
|
+
*/
|
|
181
|
+
get guideLabelsSymbol() {
|
|
182
|
+
return I(this._config);
|
|
183
|
+
}
|
|
184
|
+
set guideLabelsSymbol(e) {
|
|
185
|
+
H(e, this._config);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Gets whether a guide is visible.
|
|
189
|
+
*
|
|
190
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
191
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
192
|
+
*/
|
|
193
|
+
getGuideVisibility(e, i) {
|
|
194
|
+
return J({ config: this._config, index: e, orientation: i });
|
|
195
|
+
}
|
|
196
|
+
setGuideVisibility(e, i, s) {
|
|
197
|
+
U({ visible: e, config: this._config, index: i, orientation: s });
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Gets the start value of a guide.
|
|
201
|
+
*
|
|
202
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
203
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
204
|
+
*/
|
|
205
|
+
getGuideStart(e, i) {
|
|
206
|
+
return Y({ config: this._config, index: e, orientation: i });
|
|
207
|
+
}
|
|
208
|
+
setGuideStart(e, i, s) {
|
|
209
|
+
q({ start: e, config: this._config, index: i, orientation: s });
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Gets the end value of a guide.
|
|
213
|
+
*
|
|
214
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
215
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
216
|
+
*/
|
|
217
|
+
getGuideEnd(e, i) {
|
|
218
|
+
return z({ config: this._config, index: e, orientation: i });
|
|
219
|
+
}
|
|
220
|
+
setGuideEnd(e, i, s) {
|
|
221
|
+
K({ end: e, config: this._config, index: i, orientation: s });
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Gets the name of a guide.
|
|
225
|
+
*
|
|
226
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
227
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
228
|
+
*/
|
|
229
|
+
getGuideName(e, i) {
|
|
230
|
+
return Q({ config: this._config, index: e, orientation: i });
|
|
231
|
+
}
|
|
232
|
+
setGuideName(e, i, s) {
|
|
233
|
+
Z({ name: e, config: this._config, index: i, orientation: s });
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Gets the guide label text.
|
|
237
|
+
*
|
|
238
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
239
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
240
|
+
*/
|
|
241
|
+
getGuideLabelText(e, i) {
|
|
242
|
+
return k({ config: this._config, index: e, orientation: i });
|
|
243
|
+
}
|
|
244
|
+
setGuideLabelText(e, i, s) {
|
|
245
|
+
ee({ labelText: e, config: this._config, index: i, orientation: s });
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Gets whether the guide should be rendered above the other chart elements.
|
|
249
|
+
*
|
|
250
|
+
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
251
|
+
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
252
|
+
*/
|
|
253
|
+
getGuideAbove(e, i) {
|
|
254
|
+
return ie({ config: this._config, index: e, orientation: i });
|
|
255
|
+
}
|
|
256
|
+
setGuideAbove(e, i, s) {
|
|
257
|
+
te({ above: e, config: this._config, index: i, orientation: s });
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Gets the guide style.
|
|
261
|
+
*
|
|
262
|
+
* @param index Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
263
|
+
* @param orientation Default `y`. The axis orientation of the guide.
|
|
264
|
+
*/
|
|
265
|
+
getGuideStyle(e, i) {
|
|
266
|
+
return se({ config: this._config, index: e, orientation: i });
|
|
267
|
+
}
|
|
268
|
+
setGuideStyle(e, i, s) {
|
|
269
|
+
oe({ style: e, config: this._config, index: i, orientation: s });
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Gets whether the tooltip text color should be reversed for a guide.
|
|
273
|
+
*
|
|
274
|
+
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
275
|
+
* @param orientation - The axis orientation of the guide.
|
|
276
|
+
*/
|
|
277
|
+
getTooltipReverseColor(e, i) {
|
|
278
|
+
return ne({ config: this._config, index: e, orientation: i });
|
|
279
|
+
}
|
|
280
|
+
setTooltipReverseColor(e, i, s) {
|
|
281
|
+
re({ reverseColor: e, config: this._config, index: i, orientation: s });
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
u([
|
|
285
|
+
a
|
|
286
|
+
], l.prototype, "guideLabelsSymbol");
|
|
287
|
+
u([
|
|
288
|
+
a
|
|
289
|
+
], l.prototype, "setGuideVisibility");
|
|
290
|
+
u([
|
|
291
|
+
a
|
|
292
|
+
], l.prototype, "setGuideStart");
|
|
293
|
+
u([
|
|
294
|
+
a
|
|
295
|
+
], l.prototype, "setGuideEnd");
|
|
296
|
+
u([
|
|
297
|
+
a
|
|
298
|
+
], l.prototype, "setGuideName");
|
|
299
|
+
u([
|
|
300
|
+
a
|
|
301
|
+
], l.prototype, "setGuideLabelText");
|
|
302
|
+
u([
|
|
303
|
+
a
|
|
304
|
+
], l.prototype, "setGuideAbove");
|
|
305
|
+
u([
|
|
306
|
+
a
|
|
307
|
+
], l.prototype, "setGuideStyle");
|
|
308
|
+
u([
|
|
309
|
+
a
|
|
310
|
+
], l.prototype, "setTooltipReverseColor");
|
|
311
|
+
export {
|
|
312
|
+
l as M,
|
|
313
|
+
Pe as W,
|
|
314
|
+
De as a,
|
|
315
|
+
N as b,
|
|
316
|
+
Ve as d
|
|
317
|
+
};
|