@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121
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/{S5QSKGOD.js → 22GEDSID.js} +1 -1
- package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
- package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
- package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
- package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
- package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
- package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
- package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
- package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
- package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
- package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
- package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
- package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
- package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
- package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
- package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
- package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
- package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
- package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
- package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
- package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
- package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
- package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
- package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
- package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
- package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
- package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
- package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
- package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
- package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
- package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
- package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
- package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
- package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
- package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
- package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
- package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
- package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
- package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
- package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
- package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
- package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
- package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
- package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
- package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
- package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
- package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
- package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
- package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
- package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
- package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
- package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
- package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
- package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
- package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
- package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
- package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
- package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
- package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
- package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
- package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
- package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
- package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
- package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
- package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +2 -2
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +13 -13
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-visibility.js +2 -2
- package/dist/chunks/data.js +12 -12
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/index.js +1167 -1119
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-y-guides.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +6 -6
- package/dist/chunks/serial-chart-data.js +701 -708
- package/dist/chunks/serial-chart-model.js +15 -15
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/chunks/x-bounds.js +44 -42
- package/dist/components/arcgis-chart/customElement.js +3085 -3010
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
- package/dist/components/arcgis-charts-config-bar-chart-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 +10 -7
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +351 -347
- package/dist/model/mixins/model-with-guides.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/data/index.d.ts +47 -1
- package/package.json +5 -5
- package/dist/cdn/27DMKFXK.js +0 -2
- package/dist/cdn/7DMHLVYX.js +0 -2
- package/dist/cdn/FVYM4LYH.js +0 -2
- package/dist/cdn/WQ5MRC4U.js +0 -2
- package/dist/cdn/YM3BNPLM.js +0 -2
- package/dist/cdn/ZDQWQTZE.js +0 -2
- package/dist/cdn/ZYWOR5AX.js +0 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as D } from "lodash-es";
|
|
3
3
|
import { a as u, c as b, d as h } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c2 as I, c5 as v, bE as p, r as M } from "./index.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
6
|
import { C as O } from "./chart-model.js";
|
|
7
7
|
import { m as o } from "./model-setter.js";
|
|
8
8
|
import { S as V } from "./common.js";
|
|
9
9
|
import { M as N, a as k, W as E, b as U } from "./data-labels-visibility.js";
|
|
10
10
|
import { M as j, a as X } from "./model-with-y-guides.js";
|
|
11
|
-
import { g as d, d as y, j as Y, k as w, l as z, m as R, n as K, o as
|
|
11
|
+
import { g as d, d as y, j as Y, k as w, l as z, m as R, n as K, o as q, q as G, t as $, v as Z, w as H, x as J, y as Q, z as S, A as _, B as x, C as m, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as fe } from "./generate-x-axis-title.js";
|
|
15
15
|
import { W as he, a as pe } from "./x-bounds.js";
|
|
16
16
|
import { W as me } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as de } from "./rotated-state.js";
|
|
18
|
-
import { g as W, u as ye,
|
|
19
|
-
import { d as F, e as
|
|
20
|
-
import { u as Fe, m as
|
|
18
|
+
import { g as W, u as ye, d as T, j as ue, k as Se, l as _e, h as xe } from "./utils.js";
|
|
19
|
+
import { d as F, e as C, a as Te } from "./data.js";
|
|
20
|
+
import { u as Fe, m as Ce, a7 as Be, j as Ae, k as be } from "./index3.js";
|
|
21
21
|
import { s as L } from "./series-types.js";
|
|
22
|
-
const
|
|
22
|
+
const B = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
|
|
23
23
|
const { assign: e, seriesIndex: i, config: t, commonStrings: r } = s;
|
|
24
|
-
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] =
|
|
24
|
+
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] = Be(r, u.BarSeries)[1]), t.series && t.series.forEach((a, g) => {
|
|
25
25
|
g === i ? a.assignToSecondValueAxis = e : g !== i && a?.assignToSecondValueAxis !== !0 && (a.assignToSecondValueAxis = !1);
|
|
26
26
|
}), t.axes?.[2] && !t.series.some((a) => a.assignToSecondValueAxis) && t.axes.splice(2, 1);
|
|
27
27
|
}, Ie = (s, e) => e.series?.[s]?.name, ve = (s, e, i) => {
|
|
@@ -37,7 +37,7 @@ const C = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
|
|
|
37
37
|
...t.fillSymbol,
|
|
38
38
|
color: s
|
|
39
39
|
} : v(t) && (t.lineSymbol = {
|
|
40
|
-
...
|
|
40
|
+
...Ce(e),
|
|
41
41
|
...t.lineSymbol,
|
|
42
42
|
color: s
|
|
43
43
|
}));
|
|
@@ -99,16 +99,16 @@ class c extends O {
|
|
|
99
99
|
return K(this._config);
|
|
100
100
|
}
|
|
101
101
|
set timeAggregationType(e) {
|
|
102
|
-
|
|
102
|
+
q(e, this._config);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Whether to trim incomplete time intervals for a temporal bar chart or line chart.
|
|
106
106
|
*/
|
|
107
107
|
get trimIncompleteTimeInterval() {
|
|
108
|
-
return
|
|
108
|
+
return G(this._config);
|
|
109
109
|
}
|
|
110
110
|
set trimIncompleteTimeInterval(e) {
|
|
111
|
-
|
|
111
|
+
$(e, this._config);
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Policy which tells the chart how to handle null values.
|
|
@@ -217,7 +217,7 @@ class n extends O {
|
|
|
217
217
|
* @deprecated since 5.2. Use {@link model/serial-chart-model/serial-chart-model#getSeriesToSecondaryYAxis getSeriesToSecondaryYAxis} instead.
|
|
218
218
|
*/
|
|
219
219
|
getAssignToSecondValueAxis(e) {
|
|
220
|
-
return
|
|
220
|
+
return B(e, this._config);
|
|
221
221
|
}
|
|
222
222
|
setAssignToSecondValueAxis(e, i) {
|
|
223
223
|
A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
@@ -228,7 +228,7 @@ class n extends O {
|
|
|
228
228
|
* @param seriesIndex - The index of the series.
|
|
229
229
|
*/
|
|
230
230
|
getSeriesToSecondaryYAxis(e) {
|
|
231
|
-
return
|
|
231
|
+
return B(e, this._config);
|
|
232
232
|
}
|
|
233
233
|
setSeriesToSecondaryYAxis(e, i) {
|
|
234
234
|
A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
@@ -270,7 +270,7 @@ class n extends O {
|
|
|
270
270
|
* The list of values for custom sort.
|
|
271
271
|
*/
|
|
272
272
|
get orderByList() {
|
|
273
|
-
return
|
|
273
|
+
return C(this._config);
|
|
274
274
|
}
|
|
275
275
|
set orderByList(e) {
|
|
276
276
|
!P(this._config) && x(e, this._config);
|
|
@@ -358,7 +358,7 @@ class n extends O {
|
|
|
358
358
|
t.splice(i, 0, r), this.setOrderOfSeries(t);
|
|
359
359
|
}
|
|
360
360
|
moveCustomSortValuesInOrderByList(e, i) {
|
|
361
|
-
const t =
|
|
361
|
+
const t = C(this._config), [r] = t.splice(e, 1);
|
|
362
362
|
t.splice(i, 0, r), x(t, this._config);
|
|
363
363
|
}
|
|
364
364
|
/**
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as q, a as d, d as A, g as w } from "./chart-object-literals.js";
|
|
3
|
-
import { r as I, aj as O,
|
|
3
|
+
import { r as I, aj as O, cf as k, cg as V, ch as L, ci as B, O as E, a1 as b } from "./index.js";
|
|
4
4
|
import { i as T } from "./type-guards.js";
|
|
5
5
|
import { f as M, b as S, i as W, q as $ } from "./index2.js";
|
|
6
6
|
import { substitute as h } from "@arcgis/core/intl.js";
|
|
@@ -203,10 +203,10 @@ function Se(s) {
|
|
|
203
203
|
return s !== void 0 && N(0, s)?.type === d.CategoryAxisFormat && N(1, s)?.type === d.CategoryAxisFormat;
|
|
204
204
|
}
|
|
205
205
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
le as a,
|
|
207
|
+
be as b,
|
|
208
|
+
ce as c,
|
|
209
|
+
v as d,
|
|
210
210
|
ue as e,
|
|
211
211
|
se as f,
|
|
212
212
|
oe as g,
|
|
@@ -221,7 +221,7 @@ export {
|
|
|
221
221
|
ge as p,
|
|
222
222
|
xe as q,
|
|
223
223
|
fe as r,
|
|
224
|
-
|
|
224
|
+
de as s,
|
|
225
225
|
ye as t,
|
|
226
226
|
re as u
|
|
227
227
|
};
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -47,7 +47,7 @@ const A = (e, t) => t.axes?.[e]?.labels?.visible ?? !0, T = (e) => {
|
|
|
47
47
|
visible: !0,
|
|
48
48
|
font: a(o.AxisTitle),
|
|
49
49
|
type: o.AxisTitle
|
|
50
|
-
})), i !== void 0 && (s.title.content = i), s.title.content.text = x;
|
|
50
|
+
})), i !== void 0 && (s.title.content = { ...i }), s.title.content.text = x;
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
};
|
|
@@ -7,13 +7,13 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aQ as De,
|
|
10
|
+
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aQ as De, bM as Se } from "./index.js";
|
|
11
11
|
import { i as Y, J as $, l as R, K as ve, L as Be, M as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
13
|
import { g as he } from "./series-types.js";
|
|
14
14
|
import { V as Pe } from "./index5.js";
|
|
15
15
|
import { DateTime as ne } from "luxon";
|
|
16
|
-
import { P as
|
|
16
|
+
import { P as X } from "./common.js";
|
|
17
17
|
import { a as k, l as L } from "./chart-object-literals.js";
|
|
18
18
|
import { d as Ve } from "./rest-js-object-literals.js";
|
|
19
19
|
function Le(l) {
|
|
@@ -47,7 +47,7 @@ function Oe(l) {
|
|
|
47
47
|
}
|
|
48
48
|
return i;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function J(l) {
|
|
51
51
|
const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
|
|
52
52
|
let r = { label: "", value: e.toString() };
|
|
53
53
|
switch (a) {
|
|
@@ -296,7 +296,7 @@ function Te(l) {
|
|
|
296
296
|
const v = p[Y.xField], b = p[Y.yField], x = p[Y.valueField], C = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
297
|
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
|
-
const { label: F, value: D } =
|
|
299
|
+
const { label: F, value: D } = J({
|
|
300
300
|
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
@@ -306,7 +306,7 @@ function Te(l) {
|
|
|
306
306
|
!K(F) && !K(D) && (m = { label: F, value: D });
|
|
307
307
|
}
|
|
308
308
|
if (n.yTemporalBinning !== void 0) {
|
|
309
|
-
const { label: F, value: D } =
|
|
309
|
+
const { label: F, value: D } = J({
|
|
310
310
|
value: Number(b),
|
|
311
311
|
config: e,
|
|
312
312
|
formatLocale: i,
|
|
@@ -504,7 +504,7 @@ function je(l) {
|
|
|
504
504
|
function Ee(l) {
|
|
505
505
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
|
|
506
506
|
let f = je(t);
|
|
507
|
-
const u = de(e), p = c !== g.PieFromFields ?
|
|
507
|
+
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, v = ye(e, p), b = z({
|
|
508
508
|
config: e,
|
|
509
509
|
xAxisField: s,
|
|
510
510
|
numericFields: u,
|
|
@@ -832,7 +832,7 @@ export {
|
|
|
832
832
|
mt as d,
|
|
833
833
|
ct as e,
|
|
834
834
|
Me as f,
|
|
835
|
-
|
|
835
|
+
J as g,
|
|
836
836
|
ut as h,
|
|
837
837
|
ft as t
|
|
838
838
|
};
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -5,10 +5,10 @@ import { G as c } from "./common.js";
|
|
|
5
5
|
import { b as g } from "./rest-js-object-literals.js";
|
|
6
6
|
import { a as x } from "./chart-object-literals.js";
|
|
7
7
|
import { N as S, a1 as L, a2 as b, t as T } from "./index3.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bO as X, b as C, i as B } from "./index.js";
|
|
9
9
|
import { m as r, C as f } from "./model-setter.js";
|
|
10
10
|
import { f as A, e as M } from "./utils2.js";
|
|
11
|
-
import { n as y,
|
|
11
|
+
import { n as y, d as v, h as O } from "./utils.js";
|
|
12
12
|
const P = (t) => {
|
|
13
13
|
for (const e of t.axes ?? [])
|
|
14
14
|
for (const i of e?.guides ?? [])
|
|
@@ -21,7 +21,7 @@ const P = (t) => {
|
|
|
21
21
|
s.label = _(t), s.label !== void 0 && (s.label.text = o);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function a(t) {
|
|
25
25
|
return {
|
|
26
26
|
...t,
|
|
27
27
|
axis: t.orientation === c.X ? t.config.axes?.[0] : t.config.axes?.[1],
|
|
@@ -30,77 +30,79 @@ function d(t) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
const V = (t) => {
|
|
33
|
-
const { axis: e, index: i } =
|
|
33
|
+
const { axis: e, index: i } = a(t);
|
|
34
34
|
return e?.guides?.[i]?.visible ?? !0;
|
|
35
35
|
}, E = (t) => {
|
|
36
36
|
const i = (t.orientation ?? c.Y) === c.X ? t.config.axes?.[0] : t.config.axes?.[1];
|
|
37
37
|
t.index !== void 0 ? i?.guides?.[t.index] !== void 0 && (i.guides[t.index].visible = t.visible) : i?.guides?.forEach((s) => {
|
|
38
38
|
s.visible = t.visible;
|
|
39
39
|
});
|
|
40
|
-
},
|
|
40
|
+
}, m = (t) => {
|
|
41
41
|
const e = X(t.start, t.end);
|
|
42
42
|
C(t.style) && e === g.SFS ? t.style = { type: g.SFS, color: t.style.color } : B(t.style) && e === g.SLS && (t.style = { type: g.SLS, color: t.style.color });
|
|
43
43
|
}, R = (t) => {
|
|
44
|
-
const { axis: e, index: i } =
|
|
44
|
+
const { axis: e, index: i } = a(t);
|
|
45
45
|
return e?.guides?.[i]?.start ?? null;
|
|
46
46
|
}, w = (t) => {
|
|
47
|
-
const { start: e, axis: i, index: s } =
|
|
48
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].start = e,
|
|
47
|
+
const { start: e, axis: i, index: s } = a(t);
|
|
48
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].start = e, m(i.guides[s]));
|
|
49
49
|
}, F = (t) => {
|
|
50
|
-
const { axis: e, index: i } =
|
|
50
|
+
const { axis: e, index: i } = a(t);
|
|
51
51
|
return e?.guides?.[i]?.end;
|
|
52
52
|
}, W = (t) => {
|
|
53
|
-
const { end: e, axis: i, index: s } =
|
|
54
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].end = e,
|
|
53
|
+
const { end: e, axis: i, index: s } = a(t);
|
|
54
|
+
i?.guides?.[s] !== void 0 && (i.guides[s].end = e, m(i.guides[s]));
|
|
55
55
|
}, j = (t) => {
|
|
56
|
-
const { axis: e, index: i } =
|
|
56
|
+
const { axis: e, index: i } = a(t);
|
|
57
57
|
return e?.guides?.[i]?.name;
|
|
58
58
|
}, N = (t) => {
|
|
59
|
-
const { name: e, axis: i, index: s } =
|
|
59
|
+
const { name: e, axis: i, index: s } = a(t);
|
|
60
60
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
61
61
|
}, $ = (t) => {
|
|
62
|
-
const { axis: e, index: i } =
|
|
62
|
+
const { axis: e, index: i } = a(t);
|
|
63
63
|
return e?.guides?.[i]?.label?.text;
|
|
64
64
|
}, I = (t) => {
|
|
65
|
-
const { labelText: e, axis: i, index: s } =
|
|
65
|
+
const { labelText: e, axis: i, index: s } = a(t), o = i?.guides?.[s]?.label ?? S(e, L(b.GuideLabel), b.GuideLabel);
|
|
66
66
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
67
67
|
}, Y = (t) => {
|
|
68
|
-
const { axis: e, index: i } =
|
|
68
|
+
const { axis: e, index: i } = a(t);
|
|
69
69
|
return e?.guides?.[i]?.above ?? !1;
|
|
70
70
|
}, U = (t) => {
|
|
71
|
-
const { above: e, axis: i, index: s } =
|
|
71
|
+
const { above: e, axis: i, index: s } = a(t);
|
|
72
72
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
73
73
|
}, q = (t) => {
|
|
74
|
-
const { axis: e, index: i } =
|
|
74
|
+
const { axis: e, index: i } = a(t);
|
|
75
75
|
return e?.guides?.[i]?.style;
|
|
76
76
|
}, z = (t) => {
|
|
77
|
-
const { style: e, axis: i, index: s } =
|
|
77
|
+
const { style: e, axis: i, index: s } = a(t);
|
|
78
78
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
79
|
-
},
|
|
79
|
+
}, Ge = (t) => {
|
|
80
80
|
const { config: e, name: i, index: s, orientation: o } = t, n = o === c.X ? e.axes?.[0] : e.axes?.[1];
|
|
81
81
|
if (n !== void 0) {
|
|
82
82
|
n.guides = n.guides ?? [];
|
|
83
|
-
const
|
|
83
|
+
const d = {
|
|
84
84
|
type: x.Guide,
|
|
85
85
|
name: i,
|
|
86
86
|
start: n.valueFormat.type === x.DateAxisFormat ? "" : 0,
|
|
87
87
|
style: T()
|
|
88
88
|
};
|
|
89
|
-
s !== void 0 && s < n.guides.length ? n.guides.splice(s, 0,
|
|
89
|
+
s !== void 0 && s < n.guides.length ? n.guides.splice(s, 0, d) : n.guides.push(d);
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, pe = (t) => {
|
|
92
92
|
const { config: e, index: i, orientation: s } = t, o = s === c.X ? e.axes?.[0] : e.axes?.[1];
|
|
93
93
|
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
94
94
|
}, H = (t) => {
|
|
95
|
-
const { axis: e, index: i } =
|
|
95
|
+
const { axis: e, index: i } = a(t);
|
|
96
96
|
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
97
97
|
}, J = (t) => {
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const i = (t.orientation ?? c.Y) === c.X ? t.config.axes?.[0] : t.config.axes?.[1];
|
|
99
|
+
[t.index !== void 0 ? i?.guides?.[t.index] : i?.guides].flat().forEach((s) => {
|
|
100
|
+
s !== void 0 && (s.tooltipReverseColor = t.reverseColor);
|
|
101
|
+
});
|
|
100
102
|
};
|
|
101
103
|
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, l = (t, e, i, s) => {
|
|
102
|
-
for (var o = Q(e, i), n = t.length - 1,
|
|
103
|
-
(
|
|
104
|
+
for (var o = Q(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
105
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
104
106
|
return o && K(e, i, o), o;
|
|
105
107
|
};
|
|
106
108
|
class u extends h {
|
|
@@ -255,14 +257,14 @@ class he extends f {
|
|
|
255
257
|
}
|
|
256
258
|
}
|
|
257
259
|
var Z = Object.defineProperty, k = Object.getOwnPropertyDescriptor, ee = (t, e, i, s) => {
|
|
258
|
-
for (var o = k(e, i), n = t.length - 1,
|
|
259
|
-
(
|
|
260
|
+
for (var o = k(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
261
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
260
262
|
return o && Z(e, i, o), o;
|
|
261
263
|
};
|
|
262
264
|
const ie = (t) => y({ config: t, axisIndex: 0, isMax: !0 }), te = (t, e) => {
|
|
263
265
|
v({ config: t, value: e, axisIndex: 0, isMax: !0 });
|
|
264
266
|
};
|
|
265
|
-
class
|
|
267
|
+
class G extends f {
|
|
266
268
|
/**
|
|
267
269
|
* Maximum bound set for the x-axis.
|
|
268
270
|
*
|
|
@@ -277,38 +279,38 @@ class m extends f {
|
|
|
277
279
|
}
|
|
278
280
|
ee([
|
|
279
281
|
r
|
|
280
|
-
],
|
|
282
|
+
], G.prototype, "maxXBound");
|
|
281
283
|
var se = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, ne = (t, e, i, s) => {
|
|
282
|
-
for (var o = oe(e, i), n = t.length - 1,
|
|
283
|
-
(
|
|
284
|
+
for (var o = oe(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
285
|
+
(d = t[n]) && (o = d(e, i, o) || o);
|
|
284
286
|
return o && se(e, i, o), o;
|
|
285
287
|
};
|
|
286
|
-
const
|
|
288
|
+
const ae = (t) => y({ config: t, axisIndex: 0, isMax: !1 }), de = (t, e) => {
|
|
287
289
|
v({ config: t, value: e, axisIndex: 0, isMax: !1 });
|
|
288
290
|
};
|
|
289
|
-
class
|
|
291
|
+
class p extends f {
|
|
290
292
|
/**
|
|
291
293
|
* Minimum bound set for the x-axis.
|
|
292
294
|
*
|
|
293
295
|
* `null` indicates no explicit minimum.
|
|
294
296
|
*/
|
|
295
297
|
get minXBound() {
|
|
296
|
-
return
|
|
298
|
+
return ae(this._config);
|
|
297
299
|
}
|
|
298
300
|
set minXBound(e) {
|
|
299
|
-
|
|
301
|
+
de(this._config, e);
|
|
300
302
|
}
|
|
301
303
|
}
|
|
302
304
|
ne([
|
|
303
305
|
r
|
|
304
|
-
],
|
|
306
|
+
], p.prototype, "minXBound");
|
|
305
307
|
class re extends f {
|
|
306
308
|
}
|
|
307
|
-
O(re, [
|
|
309
|
+
O(re, [G, p]);
|
|
308
310
|
export {
|
|
309
311
|
u as M,
|
|
310
312
|
he as W,
|
|
311
313
|
re as a,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
+
Ge as b,
|
|
315
|
+
pe as d
|
|
314
316
|
};
|