@arcgis/charts-components 5.1.0-next.85 → 5.1.0-next.86
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/dist/cdn/{4JYFPXNP.js → 27R3TDQ3.js} +1 -1
- package/dist/cdn/{TRBZZLQ4.js → 2P5TV6TZ.js} +1 -1
- package/dist/cdn/{QBGYIPDE.js → 2PY6XJ5J.js} +32 -32
- package/dist/cdn/{E2TM7BJP.js → 2YZFLCHV.js} +1 -1
- package/dist/cdn/{R3KMZ5JQ.js → 3UGQ33ZJ.js} +1 -1
- package/dist/cdn/45N4ERUO.js +2 -0
- package/dist/cdn/{UUKLISLI.js → 4OBWKQXV.js} +1 -1
- package/dist/cdn/{54XEB3TI.js → 5C6NKK2M.js} +1 -1
- package/dist/cdn/{YWCBY5V6.js → 5P2CIK73.js} +1 -1
- package/dist/cdn/{3DN4ZRPN.js → 6CGIXX6D.js} +1 -1
- package/dist/cdn/{G7SW4EUO.js → 6FI7BQHR.js} +1 -1
- package/dist/cdn/{LQGOVHK5.js → 6TU7TELQ.js} +1 -1
- package/dist/cdn/{XXZLJJUD.js → 6U3ROWZZ.js} +1 -1
- package/dist/cdn/{YDR7QMVT.js → 7BU2NYJF.js} +1 -1
- package/dist/cdn/{4M44GUGJ.js → 7FAH7JCG.js} +1 -1
- package/dist/cdn/{64LZP4QQ.js → AOBR2FZX.js} +1 -1
- package/dist/cdn/{SUAG7EYU.js → AUF6Z2XS.js} +1 -1
- package/dist/cdn/{NT6PM5XH.js → AWKPSK42.js} +1 -1
- package/dist/cdn/{DLKG6DVQ.js → B2EZWE7S.js} +1 -1
- package/dist/cdn/{RL2K7DDP.js → BQAMQZ3V.js} +1 -1
- package/dist/cdn/{NFHOSKHP.js → DNF2AXKJ.js} +1 -1
- package/dist/cdn/{PNXMBMZW.js → DPB4UM43.js} +1 -1
- package/dist/cdn/{MO6SHL7R.js → E236NXER.js} +1 -1
- package/dist/cdn/{TUAKPBN6.js → E5GUU5JX.js} +1 -1
- package/dist/cdn/{NSIRDSJE.js → ECWZPFK5.js} +1 -1
- package/dist/cdn/{I346TCJF.js → EDG6NE3Q.js} +1 -1
- package/dist/cdn/{NGG777T3.js → EVB7GUKT.js} +2 -2
- package/dist/cdn/EVQPWQQD.js +99 -0
- package/dist/cdn/{DMFLHZHN.js → FEOJNWJU.js} +1 -1
- package/dist/cdn/{EF2W7QYA.js → FTGZEUG5.js} +1 -1
- package/dist/cdn/{KOP2PBMW.js → FTMDNRQ4.js} +1 -1
- package/dist/cdn/G37XSGAU.js +2 -0
- package/dist/cdn/{DJ2U4EHB.js → GIDKEEAF.js} +1 -1
- package/dist/cdn/{EQTKAWX7.js → GKB2KMVK.js} +1 -1
- package/dist/cdn/{4T6ARKXI.js → H4V744QH.js} +1 -1
- package/dist/cdn/H5LAP626.js +2 -0
- package/dist/cdn/{X43NGKXD.js → IO7XSZZJ.js} +1 -1
- package/dist/cdn/{6ZQWP3MJ.js → J55BL4K2.js} +1 -1
- package/dist/cdn/{PNDSQQ5E.js → JBWZAGT4.js} +1 -1
- package/dist/cdn/{JKNNRHD2.js → JJVDA3DN.js} +1 -1
- package/dist/cdn/JK4I5WFK.js +2 -0
- package/dist/cdn/{BCCYIEWA.js → JMR3NFDK.js} +1 -1
- package/dist/cdn/{HLWXN26K.js → JRBIKCLX.js} +1 -1
- package/dist/cdn/{XP5EHKK5.js → JVUPGGG4.js} +1 -1
- package/dist/cdn/{7R74WZE5.js → KMIWEAU6.js} +1 -1
- package/dist/cdn/{EPJKU44A.js → KSO34SAO.js} +1 -1
- package/dist/cdn/{VICPGXIO.js → L4V7IFLS.js} +1 -1
- package/dist/cdn/{ZZ6ZKTOB.js → LCPXJOVJ.js} +1 -1
- package/dist/cdn/{ABINJ3BK.js → LLMY5OHZ.js} +1 -1
- package/dist/cdn/{4NGF4CFB.js → LRKPA44Q.js} +1 -1
- package/dist/cdn/{UP66E6QT.js → MXWWYMFC.js} +1 -1
- package/dist/cdn/{3EZT4DMV.js → MZP3HKKC.js} +1 -1
- package/dist/cdn/{DCK2YGKJ.js → N5SWE4NH.js} +1 -1
- package/dist/cdn/{5FR6VDUA.js → N72YIV7E.js} +1 -1
- package/dist/cdn/{GY72PUJO.js → NGI7H6FA.js} +1 -1
- package/dist/cdn/{PVGB35UN.js → NL5S3OE6.js} +1 -1
- package/dist/cdn/{6WHMWFQV.js → NPB7D5KA.js} +1 -1
- package/dist/cdn/{XDQXFURT.js → NZW6ACIT.js} +1 -1
- package/dist/cdn/{OFVDF7MK.js → O2LUS7QH.js} +1 -1
- package/dist/cdn/{AU5I6VM4.js → OQNYW7IP.js} +1 -1
- package/dist/cdn/{5KBAXDQP.js → OZJAKFKE.js} +1 -1
- package/dist/cdn/{KQPSYN5C.js → P5PYOHCA.js} +1 -1
- package/dist/cdn/{ESPYLUAE.js → PE3FCPYX.js} +1 -1
- package/dist/cdn/{G6DYYIOL.js → PHEGFURT.js} +1 -1
- package/dist/cdn/{IWIH7WUN.js → Q2EXXGKR.js} +1 -1
- package/dist/cdn/{7HR7XH2G.js → Q4T4D2LB.js} +1 -1
- package/dist/cdn/{WAOI2ELL.js → QC5B3B6A.js} +1 -1
- package/dist/cdn/{U436QJR4.js → QULJVW56.js} +1 -1
- package/dist/cdn/{CRP74XRF.js → RAYEVTTF.js} +1 -1
- package/dist/cdn/{N333UOH4.js → RFBBY6PC.js} +1 -1
- package/dist/cdn/{VF57GKNK.js → RI3UECXS.js} +1 -1
- package/dist/cdn/{I3F7HHTI.js → RNDCOMA2.js} +1 -1
- package/dist/cdn/{6LEDHDVS.js → S7T24OCU.js} +1 -1
- package/dist/cdn/{45UZ5A2P.js → TBLK3BOQ.js} +1 -1
- package/dist/cdn/{XBPOWLBI.js → TS4AXHNJ.js} +1 -1
- package/dist/cdn/{QXUDRWYI.js → UBDNMJPP.js} +1 -1
- package/dist/cdn/{H6CD2WG5.js → UMK53D2L.js} +1 -1
- package/dist/cdn/{UVWAABXY.js → VGFOPTRV.js} +1 -1
- package/dist/cdn/{TMCW2LUV.js → VK7C24TQ.js} +1 -1
- package/dist/cdn/{NG4T3CM7.js → VMYL36WS.js} +1 -1
- package/dist/cdn/{ZXHUZALT.js → VYWV24JN.js} +1 -1
- package/dist/cdn/{TXUK6Z75.js → W44VQVU5.js} +1 -1
- package/dist/cdn/{SN3JJXMR.js → WHVMPOF6.js} +1 -1
- package/dist/cdn/{7CQDF63V.js → WPIPMEWS.js} +1 -1
- package/dist/cdn/{Q5N7EDBG.js → WZ2UHREI.js} +1 -1
- package/dist/cdn/{ADAJBZRP.js → YG3PYTVU.js} +1 -1
- package/dist/cdn/{MPEXW6QX.js → YZABL4ES.js} +1 -1
- package/dist/cdn/{5JYTP6ED.js → Z4W5GME2.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +5 -0
- package/dist/chunks/axis-lines-symbol.js +12 -12
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +52 -52
- package/dist/chunks/box-plot-model.js +8 -8
- package/dist/chunks/chart-model.js +34 -34
- package/dist/chunks/chart-ui-utils2.js +8 -8
- package/dist/chunks/class-breaks.js +10 -10
- package/dist/chunks/combo-bar-line-chart-model.js +11 -11
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +20 -20
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +5 -5
- package/dist/chunks/histogram-data.js +8 -8
- package/dist/chunks/histogram-model.js +7 -7
- package/dist/chunks/index.js +1918 -1773
- package/dist/chunks/index2.js +60 -60
- package/dist/chunks/index3.js +10 -10
- package/dist/chunks/interfaces.js +5 -5
- package/dist/chunks/line-chart-model.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +7 -7
- package/dist/chunks/model-with-tooltips.js +21 -21
- package/dist/chunks/model-with-y-guides.js +9 -9
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +16 -16
- package/dist/chunks/pie-chart-model.js +12 -12
- package/dist/chunks/radar-chart-model.js +5 -5
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +63 -63
- package/dist/chunks/serial-chart-data.js +208 -208
- package/dist/chunks/serial-chart-model.js +19 -19
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/{action-bar-utils.js → type-guards2.js} +33 -25
- package/dist/chunks/utils.js +35 -35
- package/dist/chunks/utils2.js +5 -5
- package/dist/chunks/web-component-utils.js +12 -12
- package/dist/components/arcgis-chart/customElement.d.ts +93 -55
- package/dist/components/arcgis-chart/customElement.js +4294 -4271
- package/dist/components/arcgis-charts-action-bar/customElement.js +35 -38
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +12 -12
- 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 +2 -2
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-font-style/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-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -2
- 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 +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- 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 +2 -2
- 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-info-modal/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 +395 -392
- package/dist/interfaces.d.ts +2 -1
- package/dist/json-schema/index.d.ts +79 -2
- package/dist/spec/rest-js-types.d.ts +15 -0
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/validator/index.d.ts +2 -0
- package/dist/utils/data/interfaces.d.ts +2 -0
- package/dist/utils/layer/index.d.ts +7 -12
- package/dist/utils/layer/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/LNB6B5WL.js +0 -2
- package/dist/cdn/SL2YX32M.js +0 -2
- package/dist/cdn/TQNTRGWQ.js +0 -99
- package/dist/cdn/UE5DMUQ3.js +0 -2
- package/dist/cdn/YPCD27EC.js +0 -2
package/dist/chunks/index2.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getElementLocale as Ge } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { cloneDeep as s, isEmpty as B } from "lodash-es";
|
|
4
4
|
import { DateTime as ze } from "luxon";
|
|
5
|
-
import {
|
|
5
|
+
import { bB as _e, ag as re, as as je, e8 as ie, e7 as He, d9 as $e, d$ as Re, W as Qe, dz as Ye, by as Ke, aq as C, cP as Xe, C as c, ae as b, ds as Z, c6 as Je, c7 as Ze, z as Ue, bL as T, M as K, cL as oe, aI as et, q as tt, bd as rt, $ as it } from "./index.js";
|
|
6
6
|
import { h as ot, n as st, r as nt } from "./index4.js";
|
|
7
7
|
import { v as U, w as h, u as l, r as F, n as f, p as S, f as at, j as ee, s as g } from "./series-types.js";
|
|
8
8
|
var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
|
|
@@ -30,7 +30,7 @@ function ae(r) {
|
|
|
30
30
|
const o = i;
|
|
31
31
|
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
32
32
|
const n = h(r.series, t);
|
|
33
|
-
return (n === l.BarSeries || n === l.LineSeries || n === l.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), n === l.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), n === l.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId =
|
|
33
|
+
return (n === l.BarSeries || n === l.LineSeries || n === l.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), n === l.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), n === l.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = Ye.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
34
34
|
...o.sliceGrouping,
|
|
35
35
|
label: o.sliceGrouping.groupName
|
|
36
36
|
}, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
|
|
@@ -64,7 +64,7 @@ async function de(r, e) {
|
|
|
64
64
|
o && (t = await Ke(o));
|
|
65
65
|
}
|
|
66
66
|
if (t) {
|
|
67
|
-
const o = C(i.series), n = h(i.series), u = i.series && i.series.length > 0 && i.series[0].x.trim() === "" || n === l.GaugeSeries && !
|
|
67
|
+
const o = C(i.series), n = h(i.series), u = i.series && i.series.length > 0 && i.series[0].x.trim() === "" || n === l.GaugeSeries && !Xe(r) || o === c.PieFromFields || o === c.BarAndLineFromFields || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMultiFields || o === c.BoxPlotMultiFieldsAndSplitBy, v = n === l.ScatterSeries || n === l.HeatSeries || o === c.BarAndLineNoAggregation || o === c.BarAndLineSplitByNoAggregation || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMonoFieldAndCategory || o === c.BoxPlotMonoFieldAndCategoryAndSplitBy || o === c.PieNoAggregation;
|
|
68
68
|
if (i.series = r.series.map((a) => {
|
|
69
69
|
const d = { ...a };
|
|
70
70
|
if (u || (d.x = b({ queryObject: t, fieldToMatch: a.x })), "y" in d && v) {
|
|
@@ -86,7 +86,7 @@ async function de(r, e) {
|
|
|
86
86
|
fieldToMatch: x.onStatisticField
|
|
87
87
|
}), O;
|
|
88
88
|
})), y !== void 0 && o === c.BarAndLineSplitBy) {
|
|
89
|
-
const x =
|
|
89
|
+
const x = Je(a.query?.where), O = Ze({
|
|
90
90
|
where: a.query?.where,
|
|
91
91
|
normalize: !1,
|
|
92
92
|
escape: !1
|
|
@@ -202,7 +202,7 @@ async function Se(r) {
|
|
|
202
202
|
const n = le(o);
|
|
203
203
|
o = fe(n);
|
|
204
204
|
}
|
|
205
|
-
return o = ye(o), o = me(o), He(o) &&
|
|
205
|
+
return o = ye(o), o = me(o), He(o) && !$e(i) && (o = se({ configToUpdate: o, chartContainer: t, layer: i })), o;
|
|
206
206
|
}
|
|
207
207
|
function ve(r) {
|
|
208
208
|
const e = s(r);
|
|
@@ -233,7 +233,7 @@ function he(r) {
|
|
|
233
233
|
"query" in t && "extent" in t.query && delete t.query.extent;
|
|
234
234
|
})), e;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function X(r) {
|
|
237
237
|
const e = s(r);
|
|
238
238
|
return B(r.series) || (st(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? et()), e.series.forEach((i) => {
|
|
239
239
|
i.rotated !== void 0 && delete i.rotated;
|
|
@@ -260,7 +260,7 @@ function be(r) {
|
|
|
260
260
|
function Fe(r) {
|
|
261
261
|
return r !== "originalValue";
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function J(r) {
|
|
264
264
|
let e;
|
|
265
265
|
switch (r) {
|
|
266
266
|
case "mean":
|
|
@@ -313,7 +313,7 @@ function Pe(r) {
|
|
|
313
313
|
const e = s(r);
|
|
314
314
|
if (e.sortDataBy !== void 0) {
|
|
315
315
|
if (e.orderOptions?.data === void 0) {
|
|
316
|
-
const i = r.sortDataBy, t =
|
|
316
|
+
const i = r.sortDataBy, t = J(i?.sortType);
|
|
317
317
|
t && t !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
318
318
|
orderType: t,
|
|
319
319
|
orderBy: i?.sortOrder ?? S.Ascending
|
|
@@ -332,7 +332,7 @@ function Le(r) {
|
|
|
332
332
|
}, delete i.scrollbarVisible);
|
|
333
333
|
}), e;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ke(r) {
|
|
336
336
|
const e = s(r), i = e.series[0]?.query?.orderByFields;
|
|
337
337
|
if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
|
|
338
338
|
e.orderOptions ??= {};
|
|
@@ -366,7 +366,7 @@ function P(r) {
|
|
|
366
366
|
}
|
|
367
367
|
return e;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function we(r) {
|
|
370
370
|
const e = s(r), i = r, t = r, o = r, n = r, u = r;
|
|
371
371
|
if (e) {
|
|
372
372
|
if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
@@ -379,7 +379,7 @@ function ke(r) {
|
|
|
379
379
|
else if (e.orderOptions?.data === void 0)
|
|
380
380
|
if (h(e.series) === l.BoxPlotSeries) {
|
|
381
381
|
if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
|
|
382
|
-
const a =
|
|
382
|
+
const a = J(o.sortOptions?.sortDataBy?.sortType);
|
|
383
383
|
a && a !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
384
384
|
orderType: a,
|
|
385
385
|
orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? S.Ascending
|
|
@@ -442,7 +442,7 @@ function Me(r) {
|
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function qe(r) {
|
|
446
446
|
const e = s(r);
|
|
447
447
|
return e.series.forEach((i) => {
|
|
448
448
|
i.query?.outStatistics?.forEach((t) => {
|
|
@@ -450,7 +450,7 @@ function We(r) {
|
|
|
450
450
|
});
|
|
451
451
|
}), e;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function We(r) {
|
|
454
454
|
const e = s(r);
|
|
455
455
|
return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
|
|
456
456
|
}
|
|
@@ -458,7 +458,7 @@ function Ie(r) {
|
|
|
458
458
|
const e = s(r), i = e.series[0];
|
|
459
459
|
return i?.temporalBinning && delete i.temporalBinning?.type, e;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ee(r) {
|
|
462
462
|
const e = s(r), i = e.series[0], t = r;
|
|
463
463
|
return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
|
|
464
464
|
...t.series[0]?.xTemporalBinning,
|
|
@@ -468,21 +468,21 @@ function Ne(r) {
|
|
|
468
468
|
type: l.CalendarDateParts
|
|
469
469
|
}), e;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ne(r) {
|
|
472
472
|
let e = s(r);
|
|
473
473
|
return e = ve(e), e;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function k(r) {
|
|
476
476
|
let e = s(r);
|
|
477
477
|
return e = Be(e), e;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function w(r) {
|
|
480
480
|
let e = s(r);
|
|
481
481
|
return e = he(e), e;
|
|
482
482
|
}
|
|
483
483
|
function A(r) {
|
|
484
484
|
let e = s(r);
|
|
485
|
-
return e =
|
|
485
|
+
return e = X(e), e;
|
|
486
486
|
}
|
|
487
487
|
function D(r) {
|
|
488
488
|
let e = s(r);
|
|
@@ -492,11 +492,11 @@ function M(r) {
|
|
|
492
492
|
let e = s(r);
|
|
493
493
|
return e = be(e), e;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function q(r) {
|
|
496
496
|
let e = s(r);
|
|
497
497
|
return e = xe(e), e;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function W(r) {
|
|
500
500
|
let e = s(r);
|
|
501
501
|
return e = Ce(e), e;
|
|
502
502
|
}
|
|
@@ -504,10 +504,10 @@ function I(r) {
|
|
|
504
504
|
let e = s(r);
|
|
505
505
|
return e = Te(e), e;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function E(r) {
|
|
508
508
|
return Le(r);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function N(r) {
|
|
511
511
|
let e = s(r);
|
|
512
512
|
return ie(e) && (e = Pe(e)), e;
|
|
513
513
|
}
|
|
@@ -515,7 +515,7 @@ function V(r) {
|
|
|
515
515
|
return Oe(r);
|
|
516
516
|
}
|
|
517
517
|
function G(r) {
|
|
518
|
-
return
|
|
518
|
+
return we(r);
|
|
519
519
|
}
|
|
520
520
|
function z(r) {
|
|
521
521
|
return pe(r);
|
|
@@ -529,32 +529,32 @@ function j(r) {
|
|
|
529
529
|
function H(r) {
|
|
530
530
|
return Me(r);
|
|
531
531
|
}
|
|
532
|
-
function R(r) {
|
|
533
|
-
return We(r);
|
|
534
|
-
}
|
|
535
532
|
function $(r) {
|
|
533
|
+
return qe(r);
|
|
534
|
+
}
|
|
535
|
+
function R(r) {
|
|
536
536
|
let e = s(r);
|
|
537
|
-
return e =
|
|
537
|
+
return e = X(e), We(e);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Q(r) {
|
|
540
540
|
let e = s(r);
|
|
541
541
|
return e = Ie(e), e;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Y(r) {
|
|
544
544
|
let e = s(r);
|
|
545
|
-
return e =
|
|
545
|
+
return e = Ee(e), e;
|
|
546
546
|
}
|
|
547
547
|
function Ve(r) {
|
|
548
548
|
const { versionsToConvert: e = [], configToUpdate: i } = r;
|
|
549
549
|
let t = s(i);
|
|
550
|
-
return e.length > 0 && t !== void 0 && (t =
|
|
550
|
+
return e.length > 0 && t !== void 0 && (t = ke(t), e.includes(re) || e.includes(Re) ? (t = Ne(t), t = k(t), t = w(t), t = A(t), t = D(t), t = M(t), t = q(t), t = W(t), t = I(t), t = E(t), t = N(t), t = V(t), t = G(t), t = z(t), t = _(t), t = j(t), t = H(t), t = $(t), t = R(t), t = Q(t), t = Y(t)) : e.forEach((o) => {
|
|
551
551
|
if (t !== void 0)
|
|
552
552
|
switch (o) {
|
|
553
553
|
case "1.0.1":
|
|
554
|
-
t =
|
|
554
|
+
t = k(t);
|
|
555
555
|
break;
|
|
556
556
|
case "3.4.0":
|
|
557
|
-
t =
|
|
557
|
+
t = w(t);
|
|
558
558
|
break;
|
|
559
559
|
case "4.0.0":
|
|
560
560
|
t = A(t);
|
|
@@ -566,19 +566,19 @@ function Ve(r) {
|
|
|
566
566
|
t = M(t);
|
|
567
567
|
break;
|
|
568
568
|
case "7.5.1":
|
|
569
|
-
t =
|
|
569
|
+
t = q(t);
|
|
570
570
|
break;
|
|
571
571
|
case "8.0.0":
|
|
572
|
-
t =
|
|
572
|
+
t = W(t);
|
|
573
573
|
break;
|
|
574
574
|
case "9.2.0":
|
|
575
575
|
t = I(t);
|
|
576
576
|
break;
|
|
577
577
|
case "9.7.0":
|
|
578
|
-
t =
|
|
578
|
+
t = E(t);
|
|
579
579
|
break;
|
|
580
580
|
case "10.0.0":
|
|
581
|
-
t =
|
|
581
|
+
t = N(t);
|
|
582
582
|
break;
|
|
583
583
|
case "11.0.0":
|
|
584
584
|
t = V(t);
|
|
@@ -599,19 +599,19 @@ function Ve(r) {
|
|
|
599
599
|
t = H(t);
|
|
600
600
|
break;
|
|
601
601
|
case "21.0.0":
|
|
602
|
-
t =
|
|
602
|
+
t = $(t);
|
|
603
603
|
break;
|
|
604
604
|
case "23.2.0":
|
|
605
|
-
t =
|
|
605
|
+
t = R(t);
|
|
606
606
|
break;
|
|
607
607
|
case "24.7.0":
|
|
608
|
-
t =
|
|
608
|
+
t = Q(t);
|
|
609
609
|
break;
|
|
610
610
|
case "24.8.0":
|
|
611
|
-
t =
|
|
611
|
+
t = Y(t);
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
|
-
}), t.version =
|
|
614
|
+
}), t.version = Qe), t;
|
|
615
615
|
}
|
|
616
616
|
async function mt(r, e, i) {
|
|
617
617
|
let t = r;
|
|
@@ -632,7 +632,7 @@ const St = {
|
|
|
632
632
|
matchChartFieldsToLayerFields: de,
|
|
633
633
|
resetLegendMaxHeight: ye,
|
|
634
634
|
moveSeriesQueryExtent: he,
|
|
635
|
-
moveSeriesRotatedPropToChart:
|
|
635
|
+
moveSeriesRotatedPropToChart: X,
|
|
636
636
|
renameDataSourceProperties: ge,
|
|
637
637
|
copyDataSourceFilterToConfig: be,
|
|
638
638
|
adjustPieFromFieldsDefaultNameAndValue: ve,
|
|
@@ -648,40 +648,40 @@ const St = {
|
|
|
648
648
|
handleColorMatchChanges: Te,
|
|
649
649
|
moveScrollbarVisible: Le,
|
|
650
650
|
moveSeriesStackedTypePropToChart: Oe,
|
|
651
|
-
convertBoxplotOldToNewDataSortType:
|
|
651
|
+
convertBoxplotOldToNewDataSortType: J,
|
|
652
652
|
getDataOrderFromOrderByFields: P,
|
|
653
653
|
convertWebChartDataValueTypes: Fe,
|
|
654
|
-
moveOrConvertSeriesOrderByFieldsToChartOrderOptions:
|
|
654
|
+
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: ke,
|
|
655
655
|
convertWebChartLabelBehaviorNoneToHide: De,
|
|
656
|
-
handleOrderOptionsChanges:
|
|
656
|
+
handleOrderOptionsChanges: we,
|
|
657
657
|
applyDataOrderInstructionForFromFieldsCharts: Ae,
|
|
658
658
|
convertTemporalBinningProps: Me,
|
|
659
|
-
convertRESTStatisticTypeToWebChartStatisticType:
|
|
660
|
-
renameChartSubtitle:
|
|
659
|
+
convertRESTStatisticTypeToWebChartStatisticType: qe,
|
|
660
|
+
renameChartSubtitle: We,
|
|
661
661
|
applyMandatoryConversions: Se,
|
|
662
|
-
convertTo1x0x1:
|
|
663
|
-
convertTo2x0x0:
|
|
664
|
-
convertTo3x5x0:
|
|
662
|
+
convertTo1x0x1: Ne,
|
|
663
|
+
convertTo2x0x0: k,
|
|
664
|
+
convertTo3x5x0: w,
|
|
665
665
|
convertTo4x0x1: A,
|
|
666
666
|
convertTo5x0x0: D,
|
|
667
667
|
convertTo7x0x0: M,
|
|
668
|
-
convertTo7x6x0:
|
|
669
|
-
convertTo8x0x1:
|
|
668
|
+
convertTo7x6x0: q,
|
|
669
|
+
convertTo8x0x1: W,
|
|
670
670
|
convertTo9x3x0: I,
|
|
671
|
-
convertTo10x0x0:
|
|
672
|
-
convertTo11x0x0:
|
|
671
|
+
convertTo10x0x0: E,
|
|
672
|
+
convertTo11x0x0: N,
|
|
673
673
|
convertTo12x0x0: V,
|
|
674
674
|
convertTo15x0x0: G,
|
|
675
675
|
convertTo16x1x0: z,
|
|
676
676
|
convertTo16x1x1: _,
|
|
677
677
|
convertTo19x0x0: j,
|
|
678
678
|
convertTo20x2x0: H,
|
|
679
|
-
convertTo21x1x0:
|
|
680
|
-
convertTo23x3x0:
|
|
681
|
-
convertTo24x8x0:
|
|
682
|
-
convertTo25x0x0:
|
|
679
|
+
convertTo21x1x0: $,
|
|
680
|
+
convertTo23x3x0: R,
|
|
681
|
+
convertTo24x8x0: Q,
|
|
682
|
+
convertTo25x0x0: Y,
|
|
683
683
|
convertTemporalBinningProps2: Ie,
|
|
684
|
-
transformPropsInHeatChart:
|
|
684
|
+
transformPropsInHeatChart: Ee,
|
|
685
685
|
applyConversions: Ve,
|
|
686
686
|
convertDataSourceToILayer: pe,
|
|
687
687
|
applyDefaultFirstDayOfWeek: se
|
package/dist/chunks/index3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { cloneDeep as w } from "lodash-es";
|
|
3
|
-
import {
|
|
3
|
+
import { bm as V } from "./index.js";
|
|
4
4
|
import { i as g, f as y, g as p, R as $ } from "./rest-js-object-literals.js";
|
|
5
5
|
function L(i) {
|
|
6
6
|
let r;
|
|
@@ -74,19 +74,19 @@ function W(i) {
|
|
|
74
74
|
if (a != null) {
|
|
75
75
|
let t = { value: a };
|
|
76
76
|
e.forEach((o) => {
|
|
77
|
-
const c = N(l[`${n.fillColor}_${o}`]),
|
|
77
|
+
const c = N(l[`${n.fillColor}_${o}`]), m = l[`${n.fillOpacity}_${o}`], S = l[`${n.fillStyle}_${o}`], b = l[`${n.markerSize}_${o}`], D = N(l[`${n.outlineColor}_${o}`]), O = l[`${n.outlineOpacity}_${o}`], h = l[`${n.outlineWidth}_${o}`], k = l[`${n.outlineStyle}_${o}`], F = N(l[`${n.lineColor}_${o}`]), v = l[`${n.lineOpacity}_${o}`], d = l[`${n.lineWidth}_${o}`], _ = l[`${n.lineStyle}_${o}`], C = l[`${n.displayLabel}_${o}`];
|
|
78
78
|
if (typeof C == "string" && (t = {
|
|
79
79
|
...t,
|
|
80
80
|
label: C
|
|
81
|
-
}),
|
|
81
|
+
}), b != null) {
|
|
82
82
|
const f = { type: g.SMS };
|
|
83
|
-
|
|
83
|
+
b && typeof b == "number" && (f.size = b), t.symbol = f;
|
|
84
84
|
}
|
|
85
85
|
if (c || R(S)) {
|
|
86
86
|
const f = t.symbol && t.symbol.type === g.SMS ? t.symbol : {
|
|
87
87
|
type: g.SFS
|
|
88
88
|
};
|
|
89
|
-
if (c && (
|
|
89
|
+
if (c && (m && typeof m == "number" && (c[3] = m), f.color = c), R(S) && (f.style = S), t.symbol = f, D || h != null || I(k)) {
|
|
90
90
|
const T = { type: g.SLS };
|
|
91
91
|
D && (O && typeof O == "number" && (D[3] = O), T.color = D), I(k) && (T.style = k), h && typeof h == "number" && (T.width = h), t.symbol.outline = T;
|
|
92
92
|
}
|
|
@@ -115,9 +115,9 @@ function j(i) {
|
|
|
115
115
|
if ("dataItems" in s) {
|
|
116
116
|
const { dataItems: l } = s, a = [];
|
|
117
117
|
let t = "OBJECTID";
|
|
118
|
-
const o = l.map((
|
|
119
|
-
const
|
|
120
|
-
return "FID" in
|
|
118
|
+
const o = l.map((m, S) => {
|
|
119
|
+
const b = { ...m };
|
|
120
|
+
return "FID" in m ? t = "FID" : "ObjectId" in m && (t = "ObjectId"), b[t] || (b[t] = S), { attributes: b };
|
|
121
121
|
});
|
|
122
122
|
a.push({ type: "esriFieldTypeOID", name: t });
|
|
123
123
|
let c;
|
|
@@ -138,8 +138,8 @@ function j(i) {
|
|
|
138
138
|
c = $.String;
|
|
139
139
|
break;
|
|
140
140
|
}
|
|
141
|
-
a.push({ type: c, name: r }), n.forEach((
|
|
142
|
-
a.push({ type: $.Double, name:
|
|
141
|
+
a.push({ type: c, name: r }), n.forEach((m) => {
|
|
142
|
+
a.push({ type: $.Double, name: m });
|
|
143
143
|
}), u = {
|
|
144
144
|
id: "",
|
|
145
145
|
layerType: "ArcGISFeatureLayer",
|
|
@@ -3,9 +3,9 @@ import { s as S, a as m, b as d, c, d as y, W as g } from "./negative-values-sta
|
|
|
3
3
|
import { S as u, s as p, a as b } from "./serial-chart-model.js";
|
|
4
4
|
import { c as n } from "./serial-chart-data.js";
|
|
5
5
|
import { a as I } from "./utils.js";
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
6
|
+
import { m as _ } from "./model-setter.js";
|
|
7
|
+
import { u as v } from "./series-types.js";
|
|
8
|
+
import { aX as C, a_ as f, bJ as a, bK as L, dN as M } from "./index.js";
|
|
9
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--)
|
|
@@ -14,7 +14,7 @@ var D = Object.defineProperty, F = Object.getOwnPropertyDescriptor, x = (o, e, s
|
|
|
14
14
|
};
|
|
15
15
|
class h extends u {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._chartType =
|
|
17
|
+
super(...arguments), this._chartType = v.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();
|
|
@@ -88,10 +88,10 @@ class h extends u {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
x([
|
|
91
|
-
|
|
91
|
+
_
|
|
92
92
|
], h.prototype, "resetSeriesStyling");
|
|
93
|
-
const
|
|
94
|
-
I(h,
|
|
93
|
+
const N = [g, k];
|
|
94
|
+
I(h, N);
|
|
95
95
|
export {
|
|
96
96
|
h as LineChartModel
|
|
97
97
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { fetchT9nStringsBundle as p, getElementLocale as d } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { g as h } from "./runtime.js";
|
|
4
|
-
import {
|
|
4
|
+
import { by as r, a8 as g, bJ as c, aW as f } from "./index.js";
|
|
5
5
|
import { a as l } from "./index2.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "luxon";
|
|
@@ -116,7 +116,7 @@ class R extends EventTarget {
|
|
|
116
116
|
}
|
|
117
117
|
// #endregion
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function V(o, i, t) {
|
|
120
120
|
const s = t.set, a = t.value;
|
|
121
121
|
return s && (t.set = function(e) {
|
|
122
122
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -130,5 +130,5 @@ function W(o, i, t) {
|
|
|
130
130
|
}
|
|
131
131
|
export {
|
|
132
132
|
R as C,
|
|
133
|
-
|
|
133
|
+
V as m
|
|
134
134
|
};
|
|
@@ -9,7 +9,7 @@ import { u as x } from "./series-types.js";
|
|
|
9
9
|
import { i as c } from "./rest-js-object-literals.js";
|
|
10
10
|
import "@arcgis/toolkit/intl";
|
|
11
11
|
import "luxon";
|
|
12
|
-
import {
|
|
12
|
+
import { bf as C, aN as X, T as p, a$ as B, ac as A } from "./index.js";
|
|
13
13
|
import "@esri/arcgis-html-sanitizer";
|
|
14
14
|
import "@arcgis/core/Graphic.js";
|
|
15
15
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
@@ -30,7 +30,7 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
30
30
|
import "@arcgis/core/time/TimeExtent.js";
|
|
31
31
|
import "@arcgis/core/core/promiseUtils.js";
|
|
32
32
|
import "./runtime.js";
|
|
33
|
-
import { p as
|
|
33
|
+
import { p as M, o as O } from "./index4.js";
|
|
34
34
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
35
35
|
import "@arcgis/core/geometry/Extent.js";
|
|
36
36
|
import "@arcgis/core/geometry/Point.js";
|
|
@@ -65,7 +65,7 @@ var w = Object.defineProperty, F = Object.getOwnPropertyDescriptor, W = (t, e, i
|
|
|
65
65
|
(d = t[n]) && (o = d(e, i, o) || o);
|
|
66
66
|
return o && w(e, i, o), o;
|
|
67
67
|
};
|
|
68
|
-
const
|
|
68
|
+
const $ = (t) => m({ config: t, axisIndex: 0, isMax: !1 }), j = (t, e) => {
|
|
69
69
|
b({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
70
70
|
};
|
|
71
71
|
class v extends f {
|
|
@@ -75,10 +75,10 @@ class v extends f {
|
|
|
75
75
|
* `null` indicates no explicit minimum.
|
|
76
76
|
*/
|
|
77
77
|
get minXBound() {
|
|
78
|
-
return
|
|
78
|
+
return $(this._config);
|
|
79
79
|
}
|
|
80
80
|
set minXBound(e) {
|
|
81
|
-
|
|
81
|
+
j(this._config, e);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
W([
|
|
@@ -127,8 +127,8 @@ const Y = (t) => {
|
|
|
127
127
|
const { visible: e, axis: i, index: s } = r(t);
|
|
128
128
|
i?.guides?.[s] !== void 0 && (i.guides[s].visible = e);
|
|
129
129
|
}, G = (t) => {
|
|
130
|
-
const e =
|
|
131
|
-
|
|
130
|
+
const e = A(t.start, t.end);
|
|
131
|
+
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 });
|
|
132
132
|
}, z = (t) => {
|
|
133
133
|
const { axis: e, index: i } = r(t);
|
|
134
134
|
return e?.guides?.[i]?.start ?? null;
|
|
@@ -5,7 +5,7 @@ import "lodash-es";
|
|
|
5
5
|
import "luxon";
|
|
6
6
|
import { k as _ } from "./series-types.js";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
|
-
import {
|
|
8
|
+
import { aJ as b, T as r, aN as v, aW as d } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -36,10 +36,10 @@ var y = Object.defineProperty, L = Object.getOwnPropertyDescriptor, u = (t, e, i
|
|
|
36
36
|
(n = t[l]) && (o = n(e, i, o) || o);
|
|
37
37
|
return o && y(e, i, o), o;
|
|
38
38
|
};
|
|
39
|
-
const x = (t) => t.colorMatch ?? !0,
|
|
39
|
+
const x = (t) => t.colorMatch ?? !0, D = (t, e) => {
|
|
40
40
|
e.colorMatch = t;
|
|
41
41
|
};
|
|
42
|
-
class
|
|
42
|
+
class M extends h {
|
|
43
43
|
/**
|
|
44
44
|
* Whether the chart should attempt to match the data source's colors.
|
|
45
45
|
*
|
|
@@ -50,12 +50,12 @@ class D extends h {
|
|
|
50
50
|
return x(this._config);
|
|
51
51
|
}
|
|
52
52
|
set colorMatch(e) {
|
|
53
|
-
|
|
53
|
+
D(e, this._config);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
u([
|
|
57
57
|
s
|
|
58
|
-
],
|
|
58
|
+
], M.prototype, "colorMatch");
|
|
59
59
|
var V = Object.defineProperty, P = Object.getOwnPropertyDescriptor, C = (t, e, i, p) => {
|
|
60
60
|
for (var o = P(e, i), l = t.length - 1, n; l >= 0; l--)
|
|
61
61
|
(n = t[l]) && (o = n(e, i, o) || o);
|
|
@@ -90,14 +90,14 @@ const S = (t) => {
|
|
|
90
90
|
return t.legend !== void 0 && (e = t.legend.visible ?? !0), e;
|
|
91
91
|
}, $ = (t, e) => {
|
|
92
92
|
e.legend === void 0 && (e.legend = d()), e.legend.visible = t;
|
|
93
|
-
}, j = (t) => t.legend?.title?.content,
|
|
93
|
+
}, j = (t) => t.legend?.title?.content, W = (t, e) => {
|
|
94
94
|
e.legend === void 0 && (e.legend = d()), (e.legend.title === void 0 || t === void 0) && (e.legend.title = b({
|
|
95
95
|
text: "",
|
|
96
96
|
visible: !0,
|
|
97
97
|
font: v(r.LegendTitle),
|
|
98
98
|
type: r.LegendTitle
|
|
99
99
|
})), t !== void 0 && (e.legend.title.content = t);
|
|
100
|
-
},
|
|
100
|
+
}, H = (t) => t.legend?.body, k = (t, e) => {
|
|
101
101
|
e.legend === void 0 && (e.legend = d()), e.legend.body = t ?? b({
|
|
102
102
|
text: "",
|
|
103
103
|
visible: !0,
|
|
@@ -130,22 +130,22 @@ const S = (t) => {
|
|
|
130
130
|
type: r.LegendTitle
|
|
131
131
|
}), e.legend = i;
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, J = (t) => t.legend?.position ?? _.Right, N = (t, e) => {
|
|
134
134
|
if (e.legend !== void 0)
|
|
135
135
|
e.legend.position = t;
|
|
136
136
|
else if (e.legend === void 0) {
|
|
137
137
|
const i = d();
|
|
138
138
|
i.position = t, e.legend = i;
|
|
139
139
|
}
|
|
140
|
-
},
|
|
140
|
+
}, q = (t) => t.legend?.roundMarkers ?? !1, z = (t, e) => {
|
|
141
141
|
e.legend === void 0 && (e.legend = d()), e.legend.roundMarkers = t;
|
|
142
|
-
},
|
|
142
|
+
}, A = (t) => t.legend?.maxHeight ?? void 0, G = (t, e) => {
|
|
143
143
|
e.legend === void 0 && (e.legend = d()), e.legend.maxHeight = t;
|
|
144
144
|
};
|
|
145
|
-
var
|
|
145
|
+
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, a = (t, e, i, p) => {
|
|
146
146
|
for (var o = Q(e, i), l = t.length - 1, n; l >= 0; l--)
|
|
147
147
|
(n = t[l]) && (o = n(e, i, o) || o);
|
|
148
|
-
return o &&
|
|
148
|
+
return o && K(e, i, o), o;
|
|
149
149
|
};
|
|
150
150
|
class g extends f {
|
|
151
151
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -185,10 +185,10 @@ class g extends f {
|
|
|
185
185
|
* Legend position: `top`, `bottom`, `left`, or `right`.
|
|
186
186
|
*/
|
|
187
187
|
get legendPosition() {
|
|
188
|
-
return
|
|
188
|
+
return J(this._config);
|
|
189
189
|
}
|
|
190
190
|
set legendPosition(e) {
|
|
191
|
-
|
|
191
|
+
N(e, this._config);
|
|
192
192
|
}
|
|
193
193
|
// ---------------------------------------------------------------------------------------------
|
|
194
194
|
// Format Props
|
|
@@ -200,13 +200,13 @@ class g extends f {
|
|
|
200
200
|
return j(this._config);
|
|
201
201
|
}
|
|
202
202
|
set legendTitleSymbol(e) {
|
|
203
|
-
|
|
203
|
+
W(e, this._config);
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* Legend item text symbol (font, color, style).
|
|
207
207
|
*/
|
|
208
208
|
get legendTextSymbol() {
|
|
209
|
-
return
|
|
209
|
+
return H(this._config);
|
|
210
210
|
}
|
|
211
211
|
set legendTextSymbol(e) {
|
|
212
212
|
k(e, this._config);
|
|
@@ -215,19 +215,19 @@ class g extends f {
|
|
|
215
215
|
* Maximum legend height.
|
|
216
216
|
*/
|
|
217
217
|
get legendMaxHeight() {
|
|
218
|
-
return
|
|
218
|
+
return A(this._config);
|
|
219
219
|
}
|
|
220
220
|
set legendMaxHeight(e) {
|
|
221
|
-
e !== void 0 &&
|
|
221
|
+
e !== void 0 && G(e, this._config);
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Whether legend markers are rounded.
|
|
225
225
|
*/
|
|
226
226
|
get legendRoundMarker() {
|
|
227
|
-
return
|
|
227
|
+
return q(this._config);
|
|
228
228
|
}
|
|
229
229
|
set legendRoundMarker(e) {
|
|
230
|
-
|
|
230
|
+
z(e, this._config);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
a([
|
|
@@ -304,7 +304,7 @@ T([
|
|
|
304
304
|
], m.prototype, "setDataTooltipReverseColor");
|
|
305
305
|
export {
|
|
306
306
|
g as M,
|
|
307
|
-
|
|
307
|
+
M as W,
|
|
308
308
|
m as a,
|
|
309
309
|
w as b
|
|
310
310
|
};
|