@arcgis/charts-components 5.2.0-next.85 → 5.2.0-next.87
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/{YAWW63A5.js → 2Y4OUUMJ.js} +1 -1
- package/dist/cdn/{MJHVSD5B.js → 32KKW2IG.js} +1 -1
- package/dist/cdn/{2MF442VT.js → 3N6RFNEA.js} +1 -1
- package/dist/cdn/{KG574LAE.js → 3ZF4RSY4.js} +1 -1
- package/dist/cdn/{XHZAAQMF.js → 5EU4GHSG.js} +1 -1
- package/dist/cdn/{R5VDQBUH.js → 5LKJE2PR.js} +1 -1
- package/dist/cdn/{LCTDNI27.js → 6AWJXWDQ.js} +1 -1
- package/dist/cdn/7U6OEWTI.js +2 -0
- package/dist/cdn/{KHJC5P5T.js → AL6VZ6UZ.js} +1 -1
- package/dist/cdn/{IVM37XFX.js → APU26Y2Z.js} +1 -1
- package/dist/cdn/AWN3K3IH.js +2 -0
- package/dist/cdn/DNHE5ZCA.js +2 -0
- package/dist/cdn/DV7I4E5D.js +2 -0
- package/dist/cdn/EHYBMIDH.js +2 -0
- package/dist/cdn/FF46DEA7.js +2 -0
- package/dist/cdn/HX4HUXZP.js +2 -0
- package/dist/cdn/{JQM5R6XW.js → IG43EKA6.js} +1 -1
- package/dist/cdn/{FRTPDJGW.js → KE4AIHA7.js} +1 -1
- package/dist/cdn/{4U2HIMOR.js → LYSF2KY5.js} +1 -1
- package/dist/cdn/{CFOB77PI.js → N634G5MT.js} +1 -1
- package/dist/cdn/{NH2A5QEU.js → OADNRXFH.js} +1 -1
- package/dist/cdn/OGGEEHV2.js +2 -0
- package/dist/cdn/{GX64OP3A.js → OWYKZMAE.js} +1 -1
- package/dist/cdn/{3SSQPYQA.js → PDHWZPY5.js} +1 -1
- package/dist/cdn/{NIDXK3GN.js → PK7GYSIR.js} +1 -1
- package/dist/cdn/{7JA63ENU.js → PTGBFACY.js} +2 -2
- package/dist/cdn/QJFHIO72.js +2 -0
- package/dist/cdn/{PMTNALXO.js → R3XOXHKQ.js} +1 -1
- package/dist/cdn/{7SIKOCYK.js → R6RFH2KK.js} +1 -1
- package/dist/cdn/{EYYTKCXM.js → T6OTQUMI.js} +1 -1
- package/dist/cdn/{FQKGQHVK.js → TMLVMG4C.js} +1 -1
- package/dist/cdn/{4KF7SUJE.js → TVW2GMA6.js} +1 -1
- package/dist/cdn/{CVWT6DGY.js → UOL7KBJK.js} +1 -1
- package/dist/cdn/{HOASAQAB.js → VNWPA5A2.js} +1 -1
- package/dist/cdn/XHSD437D.js +2 -0
- package/dist/cdn/{XU7TGV75.js → XQRGIPLK.js} +1 -1
- package/dist/cdn/{DW5NK2B3.js → ZG3WNUBC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +1 -5
- package/dist/chunks/bar-chart-model.js +8 -4
- package/dist/chunks/box-plot-data.js +138 -112
- package/dist/chunks/box-plot-model.js +131 -133
- package/dist/chunks/combo-bar-line-chart-model.js +115 -102
- package/dist/chunks/line-chart-model.js +33 -17
- package/dist/chunks/model-setter.js +43 -71
- package/dist/chunks/model-with-line-marker-styling.js +59 -43
- package/dist/chunks/negative-values-stacked-to-baseline.js +111 -64
- package/dist/chunks/radar-chart-model.js +26 -10
- package/dist/chunks/rounded-corners.js +47 -30
- package/dist/components/arcgis-chart/customElement.js +4 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +4 -4
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +14 -14
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +12 -12
- package/package.json +6 -6
- package/dist/cdn/72VGCAR5.js +0 -2
- package/dist/cdn/DE3CJJG3.js +0 -2
- package/dist/cdn/EZLKMWI5.js +0 -2
- package/dist/cdn/JMMNRCD4.js +0 -2
- package/dist/cdn/JUU3BZT7.js +0 -2
- package/dist/cdn/LMTSW3JM.js +0 -2
- package/dist/cdn/TBW6K2TY.js +0 -2
- package/dist/cdn/TSU6UVTL.js +0 -2
- package/dist/cdn/ZDUW3TBJ.js +0 -2
- package/dist/cdn/ZGIM53IQ.js +0 -2
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as m, s as b, a as p, b as L, W as _ } from "./rounded-corners.js";
|
|
3
3
|
import { m as a } from "./model-setter.js";
|
|
4
|
-
import { g as
|
|
5
|
-
import { S as
|
|
6
|
-
import { f as
|
|
7
|
-
import { a as
|
|
8
|
-
import { b$ as
|
|
9
|
-
import { an as
|
|
10
|
-
var
|
|
11
|
-
for (var
|
|
12
|
-
(
|
|
13
|
-
return
|
|
4
|
+
import { g as u, a as k, e as C, b as M, f as v, s as z, h as O, c as B, i as V, d as D, j as A, k as F, n as H, o as g, p as W, q as j, r as w, W as P } from "./negative-values-stacked-to-baseline.js";
|
|
5
|
+
import { S as T, s as I } from "./serial-chart-model.js";
|
|
6
|
+
import { f as N } from "./utils.js";
|
|
7
|
+
import { a as n } from "./chart-object-literals.js";
|
|
8
|
+
import { b$ as $, r as S, c1 as c, b_ as q } from "./index.js";
|
|
9
|
+
import { an as R, $ as h, Y as y } from "./index3.js";
|
|
10
|
+
var Y = Object.defineProperty, E = Object.getOwnPropertyDescriptor, l = (f, e, i, o) => {
|
|
11
|
+
for (var s = E(e, i), t = f.length - 1, d; t >= 0; t--)
|
|
12
|
+
(d = f[t]) && (s = d(e, i, s) || s);
|
|
13
|
+
return s && Y(e, i, s), s;
|
|
14
14
|
};
|
|
15
|
-
class
|
|
15
|
+
class r extends T {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._chartType =
|
|
17
|
+
super(...arguments), this._chartType = n.ComboLineAndBarSeries;
|
|
18
18
|
}
|
|
19
19
|
async setup(e) {
|
|
20
|
-
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && (
|
|
20
|
+
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && ($(e.config?.series) && this.initDefaultSeries(), await this.rebuildSeries()), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
21
21
|
}
|
|
22
22
|
// ---------------------------------------------------------------------------------------------
|
|
23
23
|
// Protected Methods
|
|
24
24
|
// ---------------------------------------------------------------------------------------------
|
|
25
25
|
/** @private */
|
|
26
26
|
generateDefaultConfig() {
|
|
27
|
-
const e =
|
|
27
|
+
const e = R(this.commonStrings);
|
|
28
28
|
return e.series = [
|
|
29
|
-
|
|
29
|
+
h({
|
|
30
30
|
commonStrings: this.commonStrings,
|
|
31
|
-
objectIDField:
|
|
31
|
+
objectIDField: S(this.layerInfo.layer).idField
|
|
32
32
|
})
|
|
33
33
|
], e;
|
|
34
34
|
}
|
|
@@ -38,44 +38,44 @@ class o extends N {
|
|
|
38
38
|
* @private
|
|
39
39
|
*/
|
|
40
40
|
initDefaultSeries() {
|
|
41
|
-
this.defaultSeries =
|
|
41
|
+
this.defaultSeries = y({
|
|
42
42
|
commonStrings: this.commonStrings,
|
|
43
|
-
objectIDField:
|
|
43
|
+
objectIDField: S(this.layerInfo.layer).idField
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
setSeriesType(e, i) {
|
|
47
47
|
if (e < this._config.series.length && e >= 0) {
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
if (i ===
|
|
51
|
-
const
|
|
52
|
-
delete
|
|
53
|
-
...
|
|
48
|
+
const o = this._config.series[e];
|
|
49
|
+
let s;
|
|
50
|
+
if (i === n.BarSeries && c(o)) {
|
|
51
|
+
const t = { ...o };
|
|
52
|
+
delete t.lineSymbol, delete t.markerSymbol, delete t.lineSmoothed, delete t.markerVisible, delete t.areaColor, delete t.stackNegativeValuesToBaseline, s = {
|
|
53
|
+
...h({
|
|
54
54
|
commonStrings: this.commonStrings,
|
|
55
|
-
objectIDField:
|
|
55
|
+
objectIDField: S(this.layerInfo.layer).idField
|
|
56
56
|
}),
|
|
57
|
-
...
|
|
58
|
-
type:
|
|
59
|
-
y: [
|
|
60
|
-
},
|
|
61
|
-
...
|
|
62
|
-
color:
|
|
57
|
+
...t,
|
|
58
|
+
type: n.BarSeries,
|
|
59
|
+
y: [o.y].flat()[0]
|
|
60
|
+
}, s.fillSymbol && (s.fillSymbol = {
|
|
61
|
+
...s.fillSymbol,
|
|
62
|
+
color: o.lineSymbol?.color
|
|
63
63
|
});
|
|
64
|
-
} else if (i ===
|
|
65
|
-
const
|
|
66
|
-
delete
|
|
67
|
-
...
|
|
64
|
+
} else if (i === n.LineSeries && q(o)) {
|
|
65
|
+
const t = { ...o };
|
|
66
|
+
delete t.fillSymbol, delete t.hideOversizedStackedLabels, delete t.hideOversizedSideBySideLabels, s = {
|
|
67
|
+
...y({
|
|
68
68
|
commonStrings: this.commonStrings,
|
|
69
|
-
objectIDField:
|
|
69
|
+
objectIDField: S(this.layerInfo.layer).idField
|
|
70
70
|
}),
|
|
71
|
-
...
|
|
72
|
-
type:
|
|
73
|
-
},
|
|
74
|
-
...
|
|
75
|
-
color:
|
|
71
|
+
...t,
|
|
72
|
+
type: n.LineSeries
|
|
73
|
+
}, s.lineSymbol && (s.lineSymbol = {
|
|
74
|
+
...s.lineSymbol,
|
|
75
|
+
color: o.fillSymbol?.color
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
s !== void 0 && (this._config.series[e] = s);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
@@ -85,11 +85,14 @@ class o extends N {
|
|
|
85
85
|
* @param seriesIndex The index of the series.
|
|
86
86
|
*/
|
|
87
87
|
getSeriesLineStyle(e) {
|
|
88
|
-
return
|
|
88
|
+
return u(e, this._config);
|
|
89
89
|
}
|
|
90
90
|
setSeriesLineStyle(e, i) {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
k({
|
|
92
|
+
style: e,
|
|
93
|
+
seriesIndex: i,
|
|
94
|
+
config: this._config
|
|
95
|
+
});
|
|
93
96
|
}
|
|
94
97
|
/**
|
|
95
98
|
* Gets the line width of the series based on the series index.
|
|
@@ -98,11 +101,14 @@ class o extends N {
|
|
|
98
101
|
* @param seriesIndex - The index of the series.
|
|
99
102
|
*/
|
|
100
103
|
getSeriesLineWidth(e) {
|
|
101
|
-
return
|
|
104
|
+
return C(e, this._config);
|
|
102
105
|
}
|
|
103
106
|
setSeriesLineWidth(e, i) {
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
M({
|
|
108
|
+
width: e,
|
|
109
|
+
seriesIndex: i,
|
|
110
|
+
config: this._config
|
|
111
|
+
});
|
|
106
112
|
}
|
|
107
113
|
/**
|
|
108
114
|
* Gets the marker color of the series based on the series index.
|
|
@@ -111,11 +117,11 @@ class o extends N {
|
|
|
111
117
|
* @param seriesIndex - The index of the series.
|
|
112
118
|
*/
|
|
113
119
|
getSeriesMarkerColor(e) {
|
|
114
|
-
return
|
|
120
|
+
return v(e, this._config);
|
|
115
121
|
}
|
|
116
122
|
setSeriesMarkerColor(e, i) {
|
|
117
|
-
const
|
|
118
|
-
|
|
123
|
+
const o = this._config.series?.[i];
|
|
124
|
+
c(o) && z(e, i, this._config);
|
|
119
125
|
}
|
|
120
126
|
/**
|
|
121
127
|
* Gets the marker style of the series based on the series index.
|
|
@@ -124,11 +130,14 @@ class o extends N {
|
|
|
124
130
|
* @param seriesIndex - The index of the series.
|
|
125
131
|
*/
|
|
126
132
|
getSeriesMarkerStyle(e) {
|
|
127
|
-
return
|
|
133
|
+
return O(e, this._config);
|
|
128
134
|
}
|
|
129
135
|
setSeriesMarkerStyle(e, i) {
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
B({
|
|
137
|
+
style: e,
|
|
138
|
+
seriesIndex: i,
|
|
139
|
+
config: this._config
|
|
140
|
+
});
|
|
132
141
|
}
|
|
133
142
|
/**
|
|
134
143
|
* Gets the marker size of the series based on the series index.
|
|
@@ -136,11 +145,14 @@ class o extends N {
|
|
|
136
145
|
* @param seriesIndex - The index of the series.
|
|
137
146
|
*/
|
|
138
147
|
getSeriesMarkerSize(e) {
|
|
139
|
-
return
|
|
148
|
+
return V(e, this._config);
|
|
140
149
|
}
|
|
141
150
|
setSeriesMarkerSize(e, i) {
|
|
142
|
-
|
|
143
|
-
|
|
151
|
+
D({
|
|
152
|
+
size: e,
|
|
153
|
+
seriesIndex: i,
|
|
154
|
+
config: this._config
|
|
155
|
+
});
|
|
144
156
|
}
|
|
145
157
|
/**
|
|
146
158
|
* Specify whether line segments of the series should be smoothed.
|
|
@@ -148,11 +160,10 @@ class o extends N {
|
|
|
148
160
|
* @param seriesIndex - The index of the series.
|
|
149
161
|
*/
|
|
150
162
|
isLineSmoothed(e) {
|
|
151
|
-
return
|
|
163
|
+
return A(e, this._config);
|
|
152
164
|
}
|
|
153
165
|
setLineSmoothed(e, i) {
|
|
154
|
-
|
|
155
|
-
l(s) && H({
|
|
166
|
+
F({
|
|
156
167
|
smoothed: e,
|
|
157
168
|
seriesIndex: i,
|
|
158
169
|
config: this._config
|
|
@@ -164,10 +175,10 @@ class o extends N {
|
|
|
164
175
|
* @param seriesIndex - The index of the series.
|
|
165
176
|
*/
|
|
166
177
|
isAreaVisible(e) {
|
|
167
|
-
return
|
|
178
|
+
return H(e, this._config);
|
|
168
179
|
}
|
|
169
180
|
setAreaVisible(e, i) {
|
|
170
|
-
|
|
181
|
+
g({
|
|
171
182
|
visible: e,
|
|
172
183
|
seriesIndex: i,
|
|
173
184
|
config: this._config
|
|
@@ -179,10 +190,10 @@ class o extends N {
|
|
|
179
190
|
* @param seriesIndex - The index of the series.
|
|
180
191
|
*/
|
|
181
192
|
isMarkerVisible(e) {
|
|
182
|
-
return
|
|
193
|
+
return W(e, this._config);
|
|
183
194
|
}
|
|
184
195
|
setMarkersVisible(e, i) {
|
|
185
|
-
|
|
196
|
+
j({
|
|
186
197
|
visible: e,
|
|
187
198
|
seriesIndex: i,
|
|
188
199
|
config: this._config
|
|
@@ -206,15 +217,15 @@ class o extends N {
|
|
|
206
217
|
* @param seriesIndex - The index of the series.
|
|
207
218
|
*/
|
|
208
219
|
getAreaColor(e) {
|
|
209
|
-
return
|
|
220
|
+
return w(e, this._config);
|
|
210
221
|
}
|
|
211
222
|
setAreaColor(e, i) {
|
|
212
|
-
const
|
|
213
|
-
|
|
223
|
+
const o = this._config.series?.[i];
|
|
224
|
+
c(o) && (g({
|
|
214
225
|
visible: !0,
|
|
215
226
|
seriesIndex: i,
|
|
216
227
|
config: this._config
|
|
217
|
-
}),
|
|
228
|
+
}), I(e, i, this._config));
|
|
218
229
|
}
|
|
219
230
|
/**
|
|
220
231
|
* Gets whether to hide oversized data labels of the side-by-side series based on the series index.
|
|
@@ -224,11 +235,14 @@ class o extends N {
|
|
|
224
235
|
* @param seriesIndex - The index of the series.
|
|
225
236
|
*/
|
|
226
237
|
getSeriesHideOversizedSideBySideLabels(e) {
|
|
227
|
-
return
|
|
238
|
+
return m(e, this._config);
|
|
228
239
|
}
|
|
229
240
|
setSeriesHideOversizedSideBySideLabels(e, i) {
|
|
230
|
-
|
|
231
|
-
|
|
241
|
+
b({
|
|
242
|
+
hide: e,
|
|
243
|
+
seriesIndex: i,
|
|
244
|
+
config: this._config
|
|
245
|
+
});
|
|
232
246
|
}
|
|
233
247
|
/**
|
|
234
248
|
* Gets whether to hide oversized data labels of the stacked series based on the series index.
|
|
@@ -237,51 +251,50 @@ class o extends N {
|
|
|
237
251
|
* @param seriesIndex - The index of the series.
|
|
238
252
|
*/
|
|
239
253
|
getSeriesHideOversizedStackedLabels(e) {
|
|
240
|
-
return
|
|
254
|
+
return p(e, this._config);
|
|
241
255
|
}
|
|
242
256
|
setSeriesHideOversizedStackedLabels(e, i) {
|
|
243
|
-
|
|
244
|
-
h(s) && L(e, i, this._config);
|
|
257
|
+
L({ hide: e, seriesIndex: i, config: this._config });
|
|
245
258
|
}
|
|
246
259
|
}
|
|
247
|
-
|
|
260
|
+
l([
|
|
248
261
|
a
|
|
249
|
-
],
|
|
250
|
-
|
|
262
|
+
], r.prototype, "setSeriesType");
|
|
263
|
+
l([
|
|
251
264
|
a
|
|
252
|
-
],
|
|
253
|
-
|
|
265
|
+
], r.prototype, "setSeriesLineStyle");
|
|
266
|
+
l([
|
|
254
267
|
a
|
|
255
|
-
],
|
|
256
|
-
|
|
268
|
+
], r.prototype, "setSeriesLineWidth");
|
|
269
|
+
l([
|
|
257
270
|
a
|
|
258
|
-
],
|
|
259
|
-
|
|
271
|
+
], r.prototype, "setSeriesMarkerColor");
|
|
272
|
+
l([
|
|
260
273
|
a
|
|
261
|
-
],
|
|
262
|
-
|
|
274
|
+
], r.prototype, "setSeriesMarkerStyle");
|
|
275
|
+
l([
|
|
263
276
|
a
|
|
264
|
-
],
|
|
265
|
-
|
|
277
|
+
], r.prototype, "setSeriesMarkerSize");
|
|
278
|
+
l([
|
|
266
279
|
a
|
|
267
|
-
],
|
|
268
|
-
|
|
280
|
+
], r.prototype, "setLineSmoothed");
|
|
281
|
+
l([
|
|
269
282
|
a
|
|
270
|
-
],
|
|
271
|
-
|
|
283
|
+
], r.prototype, "setAreaVisible");
|
|
284
|
+
l([
|
|
272
285
|
a
|
|
273
|
-
],
|
|
274
|
-
|
|
286
|
+
], r.prototype, "setMarkersVisible");
|
|
287
|
+
l([
|
|
275
288
|
a
|
|
276
|
-
],
|
|
277
|
-
|
|
289
|
+
], r.prototype, "setAreaColor");
|
|
290
|
+
l([
|
|
278
291
|
a
|
|
279
|
-
],
|
|
280
|
-
|
|
292
|
+
], r.prototype, "setSeriesHideOversizedSideBySideLabels");
|
|
293
|
+
l([
|
|
281
294
|
a
|
|
282
|
-
],
|
|
283
|
-
const
|
|
284
|
-
|
|
295
|
+
], r.prototype, "setSeriesHideOversizedStackedLabels");
|
|
296
|
+
const G = [P, _];
|
|
297
|
+
N(r, G);
|
|
285
298
|
export {
|
|
286
|
-
|
|
299
|
+
r as ComboBarLineChartModel
|
|
287
300
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { a as
|
|
3
|
-
import { av as
|
|
2
|
+
import { a as d } from "./chart-object-literals.js";
|
|
3
|
+
import { av as m, Y as l, g as S, r as c } from "./index3.js";
|
|
4
4
|
import { r as a } from "./index.js";
|
|
5
5
|
import { m as g } from "./model-setter.js";
|
|
6
6
|
import { M as y } from "./model-with-line-marker-styling.js";
|
|
7
|
-
import { s as u, a as p, b, c as
|
|
7
|
+
import { s as u, a as p, b, c as I, d as v, W as _ } from "./negative-values-stacked-to-baseline.js";
|
|
8
8
|
import { S as C, s as M, a as k } from "./serial-chart-model.js";
|
|
9
9
|
import { h as f } from "./serial-chart-data.js";
|
|
10
|
-
import { f as
|
|
11
|
-
var
|
|
12
|
-
for (var i =
|
|
13
|
-
(
|
|
14
|
-
return i &&
|
|
10
|
+
import { f as x } from "./utils.js";
|
|
11
|
+
var L = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = (o, e, s, t) => {
|
|
12
|
+
for (var i = D(e, s), r = o.length - 1, n; r >= 0; r--)
|
|
13
|
+
(n = o[r]) && (i = n(e, s, i) || i);
|
|
14
|
+
return i && L(e, s, i), i;
|
|
15
15
|
};
|
|
16
16
|
class h extends C {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this._chartType =
|
|
18
|
+
super(...arguments), this._chartType = d.LineSeries;
|
|
19
19
|
}
|
|
20
20
|
async setup(e) {
|
|
21
21
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.rebuildSeries(), this.initDefaultSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -26,9 +26,9 @@ class h extends C {
|
|
|
26
26
|
// ---------------------------------------------------------------------------------------------
|
|
27
27
|
/** @private */
|
|
28
28
|
generateDefaultConfig() {
|
|
29
|
-
const e =
|
|
29
|
+
const e = m(this.commonStrings);
|
|
30
30
|
return e.series = [
|
|
31
|
-
|
|
31
|
+
l({
|
|
32
32
|
commonStrings: this.commonStrings,
|
|
33
33
|
objectIDField: a(this.layerInfo.layer).idField
|
|
34
34
|
})
|
|
@@ -39,14 +39,14 @@ class h extends C {
|
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
41
41
|
initDefaultSeries() {
|
|
42
|
-
this.defaultSeries =
|
|
42
|
+
this.defaultSeries = l({
|
|
43
43
|
commonStrings: this.commonStrings,
|
|
44
44
|
objectIDField: a(this.layerInfo.layer).idField
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
resetSeriesStyling() {
|
|
48
48
|
for (let e = 0; e < this.seriesLength; e += 1) {
|
|
49
|
-
const s =
|
|
49
|
+
const s = S({
|
|
50
50
|
colorIndex: e,
|
|
51
51
|
opacity: c
|
|
52
52
|
});
|
|
@@ -59,7 +59,23 @@ class h extends C {
|
|
|
59
59
|
});
|
|
60
60
|
i !== a(this.layerInfo.layer).idField && k(i ?? t, e, this._config);
|
|
61
61
|
}
|
|
62
|
-
p(
|
|
62
|
+
p({
|
|
63
|
+
style: this.defaultSeries?.lineSymbol?.style,
|
|
64
|
+
seriesIndex: e,
|
|
65
|
+
config: this._config
|
|
66
|
+
}), b({
|
|
67
|
+
width: this.defaultSeries?.lineSymbol?.width,
|
|
68
|
+
seriesIndex: e,
|
|
69
|
+
config: this._config
|
|
70
|
+
}), I({
|
|
71
|
+
style: this.defaultSeries?.markerSymbol?.style,
|
|
72
|
+
seriesIndex: e,
|
|
73
|
+
config: this._config
|
|
74
|
+
}), v({
|
|
75
|
+
size: this.defaultSeries?.markerSymbol?.size,
|
|
76
|
+
seriesIndex: e,
|
|
77
|
+
config: this._config
|
|
78
|
+
});
|
|
63
79
|
}
|
|
64
80
|
this._config.colorMatch = !0;
|
|
65
81
|
}
|
|
@@ -88,11 +104,11 @@ class h extends C {
|
|
|
88
104
|
return e || s;
|
|
89
105
|
}
|
|
90
106
|
}
|
|
91
|
-
|
|
107
|
+
w([
|
|
92
108
|
g
|
|
93
109
|
], h.prototype, "resetSeriesStyling");
|
|
94
|
-
const
|
|
95
|
-
|
|
110
|
+
const F = [_, y];
|
|
111
|
+
x(h, F);
|
|
96
112
|
export {
|
|
97
113
|
h as LineChartModel
|
|
98
114
|
};
|
|
@@ -1,56 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { fetchT9nStringsBundle as
|
|
3
|
-
import { getElementLocale as
|
|
4
|
-
import { g as
|
|
5
|
-
import { convertChartSpec as
|
|
6
|
-
import { a6 as
|
|
7
|
-
import { bD as
|
|
2
|
+
import { fetchT9nStringsBundle as f } from "@arcgis/toolkit/intl";
|
|
3
|
+
import { getElementLocale as g } from "@arcgis/toolkit/intl/dom";
|
|
4
|
+
import { g as l } from "./runtime.js";
|
|
5
|
+
import { convertChartSpec as m } from "../utils/chart-config/converter/index.js";
|
|
6
|
+
import { a6 as y } from "./index3.js";
|
|
7
|
+
import { bD as o, bc as p, t as u, r as _ } from "./index.js";
|
|
8
8
|
import { cloneDeep as C } from "lodash-es";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
15
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
16
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
17
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
18
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
19
|
-
import "@esri/arcgis-html-sanitizer";
|
|
20
|
-
import "./index2.js";
|
|
21
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
22
|
-
import "@arcgis/core/request.js";
|
|
23
|
-
import "@arcgis/core/Graphic.js";
|
|
24
|
-
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
25
|
-
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
26
|
-
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
27
|
-
import "@arcgis/core/geometry/Point.js";
|
|
28
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
29
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
30
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
31
|
-
import "@arcgis/core/intl.js";
|
|
32
|
-
import "@arcgis/toolkit/dom";
|
|
33
|
-
import "simple-statistics";
|
|
34
|
-
import "@arcgis/core/core/sql.js";
|
|
35
|
-
import "@arcgis/toolkit/type";
|
|
36
|
-
import "./class-breaks.js";
|
|
37
|
-
const m = 30;
|
|
38
|
-
function U(a, i, t, e) {
|
|
39
|
-
const s = m - 1, o = Math.max(a - s, 0);
|
|
40
|
-
if (e === void 0 && (e = a - 1), !(e < o || e > a))
|
|
41
|
-
return e === a ? i : t[e - o];
|
|
9
|
+
const h = 30;
|
|
10
|
+
function U(r, e, t, i) {
|
|
11
|
+
const s = h - 1, n = Math.max(r - s, 0);
|
|
12
|
+
if (i === void 0 && (i = r - 1), !(i < n || i > r))
|
|
13
|
+
return i === r ? e : t[i - n];
|
|
42
14
|
}
|
|
43
|
-
class
|
|
15
|
+
class A extends EventTarget {
|
|
44
16
|
/**
|
|
45
17
|
* @param args
|
|
46
18
|
* @privateRemarks This "any" constructor is needed for TypeScript to merge
|
|
47
19
|
* the base class and mixin classes types together smoothly.
|
|
48
20
|
*/
|
|
49
|
-
constructor(...
|
|
21
|
+
constructor(...e) {
|
|
50
22
|
super(), this.dirtyAsyncSetters = [], this.asyncConfigUpdateInProgress = !1, this.pendingUpdates = 0, this._revision = 0, this._configHistory = [void 0], this.dataStore = {}, this.asyncUpdatesPromise = new Promise((t) => {
|
|
51
23
|
this.resolveSetup = t;
|
|
52
24
|
}), this.emitConfigUpdate = (t) => {
|
|
53
|
-
this._revision += 1, this._configHistory.push(C(this._config)), this._configHistory.length >
|
|
25
|
+
this._revision += 1, this._configHistory.push(C(this._config)), this._configHistory.length > h && this._configHistory.shift(), this.dispatchEvent(
|
|
54
26
|
new CustomEvent("arcgisChartsModelConfigChange", {
|
|
55
27
|
detail: { config: this._config, setterName: t }
|
|
56
28
|
})
|
|
@@ -76,17 +48,17 @@ class et extends EventTarget {
|
|
|
76
48
|
*
|
|
77
49
|
* If no `configRevision` number is provided, it recalls the last configuration just before the current one.
|
|
78
50
|
*/
|
|
79
|
-
recall(
|
|
80
|
-
return U(this._revision, this._config, this._configHistory,
|
|
51
|
+
recall(e) {
|
|
52
|
+
return U(this._revision, this._config, this._configHistory, e);
|
|
81
53
|
}
|
|
82
54
|
/**
|
|
83
55
|
* Checks if the current chart model is for the same chart as another chart model.
|
|
84
56
|
*
|
|
85
57
|
* @param otherModel - The other chart model to compare to.
|
|
86
58
|
*/
|
|
87
|
-
isSameChartAs(
|
|
88
|
-
const t =
|
|
89
|
-
return t !== void 0 && this._config.id ===
|
|
59
|
+
isSameChartAs(e) {
|
|
60
|
+
const t = e?.layer;
|
|
61
|
+
return t !== void 0 && this._config.id === e?.chartId && this.layerInfo?.layer.id === t.id;
|
|
90
62
|
}
|
|
91
63
|
/**
|
|
92
64
|
* Can be awaited to allow any pending async updates to complete.
|
|
@@ -104,32 +76,32 @@ class et extends EventTarget {
|
|
|
104
76
|
* @param params.commonStrings - The t9n common strings
|
|
105
77
|
* @private
|
|
106
78
|
*/
|
|
107
|
-
async loadConfigFromLayer(
|
|
108
|
-
const { layer: t, iLayer:
|
|
109
|
-
this.commonStrings =
|
|
110
|
-
|
|
111
|
-
|
|
79
|
+
async loadConfigFromLayer(e) {
|
|
80
|
+
const { layer: t, iLayer: i, config: s, commonStrings: n } = e;
|
|
81
|
+
this.commonStrings = n ?? await f(
|
|
82
|
+
g(document.documentElement).t9nLocale,
|
|
83
|
+
l("./assets/common/t9n"),
|
|
112
84
|
"messages."
|
|
113
85
|
);
|
|
114
|
-
let
|
|
115
|
-
if (!
|
|
116
|
-
await
|
|
117
|
-
const
|
|
86
|
+
let a = t;
|
|
87
|
+
if (!a && i ? a = await o(i) : !a && s?.iLayer && (a = await o(s.iLayer)), a) {
|
|
88
|
+
await p(a);
|
|
89
|
+
const d = u(a, !0), c = _(a).idField;
|
|
118
90
|
this.layerInfo = {
|
|
119
|
-
layer:
|
|
120
|
-
layerFieldsInfo:
|
|
121
|
-
objectIdField:
|
|
91
|
+
layer: a,
|
|
92
|
+
layerFieldsInfo: d,
|
|
93
|
+
objectIdField: c
|
|
122
94
|
};
|
|
123
95
|
}
|
|
124
|
-
this._config = s ? await
|
|
96
|
+
this._config = s ? await m(s) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = y().title), i && (this._config.iLayer = i);
|
|
125
97
|
}
|
|
126
98
|
/**
|
|
127
99
|
* Manually block the async guard to queue up config updates until unblocked.
|
|
128
100
|
* @private
|
|
129
101
|
*/
|
|
130
102
|
startAsyncUpdate() {
|
|
131
|
-
this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((
|
|
132
|
-
this.resolveSetup =
|
|
103
|
+
this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((e) => {
|
|
104
|
+
this.resolveSetup = e;
|
|
133
105
|
})), this.pendingUpdates += 1;
|
|
134
106
|
}
|
|
135
107
|
/**
|
|
@@ -141,21 +113,21 @@ class et extends EventTarget {
|
|
|
141
113
|
}
|
|
142
114
|
// #endregion
|
|
143
115
|
}
|
|
144
|
-
function
|
|
145
|
-
const
|
|
146
|
-
return
|
|
116
|
+
function x(r, e, t) {
|
|
117
|
+
const i = t.set, s = t.value;
|
|
118
|
+
return i && (t.set = function(n) {
|
|
147
119
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
148
|
-
|
|
120
|
+
i.call(this, n), this.emitConfigUpdate(e);
|
|
149
121
|
});
|
|
150
|
-
}), s && (t.value = function(...
|
|
122
|
+
}), s && (t.value = function(...n) {
|
|
151
123
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
152
|
-
s.apply(this,
|
|
124
|
+
s.apply(this, n), this.emitConfigUpdate(e);
|
|
153
125
|
});
|
|
154
126
|
}), t;
|
|
155
127
|
}
|
|
156
128
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
129
|
+
A as C,
|
|
130
|
+
h as M,
|
|
131
|
+
x as m,
|
|
160
132
|
U as r
|
|
161
133
|
};
|