gis-map-szdp 0.4.2 → 0.4.3
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/gismap.es.js +474 -478
- package/dist/gismap.umd.js +24 -24
- package/package.json +1 -1
package/dist/gismap.es.js
CHANGED
|
@@ -8600,11 +8600,11 @@ var r5 = (
|
|
|
8600
8600
|
case Vt.CUSTOM:
|
|
8601
8601
|
c = /** @type {number} */
|
|
8602
8602
|
G[1], v = G[2];
|
|
8603
|
-
var
|
|
8603
|
+
var q = (
|
|
8604
8604
|
/** @type {import("../../geom/SimpleGeometry.js").default} */
|
|
8605
8605
|
G[3]
|
|
8606
8606
|
), dt = G[4], Y = G.length == 6 ? G[5] : void 0;
|
|
8607
|
-
O.geometry =
|
|
8607
|
+
O.geometry = q, O.feature = N, h in L || (L[h] = []);
|
|
8608
8608
|
var B = L[h];
|
|
8609
8609
|
Y ? Y(u, c, v, 2, B) : (B[0] = u[c], B[1] = u[c + 1], B.length = 2), dt(B, O), ++h;
|
|
8610
8610
|
break;
|
|
@@ -8740,21 +8740,21 @@ var r5 = (
|
|
|
8740
8740
|
G[13],
|
|
8741
8741
|
/** @type {number} */
|
|
8742
8742
|
G[13]
|
|
8743
|
-
], V = this.textStates[w], W = V.font,
|
|
8743
|
+
], V = this.textStates[w], W = V.font, $ = [
|
|
8744
8744
|
V.scale[0] * Ue,
|
|
8745
8745
|
V.scale[1] * Ue
|
|
8746
8746
|
], ot = void 0;
|
|
8747
8747
|
W in this.widths_ ? ot = this.widths_[W] : (ot = {}, this.widths_[W] = ot);
|
|
8748
|
-
var
|
|
8749
|
-
if (St ||
|
|
8750
|
-
var Wt = this.textStates[w].textAlign, Ot = (
|
|
8748
|
+
var Pt = pP(u, Nt, ae, 2), Et = Math.abs($[0]) * hA(W, S, ot);
|
|
8749
|
+
if (St || Et <= Pt) {
|
|
8750
|
+
var Wt = this.textStates[w].textAlign, Ot = (Pt - Et) * kd[Wt], Xt = $3(u, Nt, ae, 2, S, Ot, ee, Math.abs($[0]), hA, W, ot, D ? 0 : this.viewRotation_);
|
|
8751
8751
|
t: if (Xt) {
|
|
8752
8752
|
var ye = [], Yt = void 0, de = void 0, Ze = void 0, me = void 0, De = void 0;
|
|
8753
8753
|
if (A)
|
|
8754
8754
|
for (Yt = 0, de = Xt.length; Yt < de; ++Yt) {
|
|
8755
8755
|
De = Xt[Yt], Ze = /** @type {string} */
|
|
8756
8756
|
De[4], me = this.createLabel(Ze, w, "", A), d = /** @type {number} */
|
|
8757
|
-
De[2] + (
|
|
8757
|
+
De[2] + ($[0] < 0 ? -re : re), p = ct * me.height + (0.5 - ct) * 2 * re * $[1] / $[0] - Ge;
|
|
8758
8758
|
var et = this.calculateImageOrLabelDimensions_(me.width, me.height, De[0], De[1], me.width, me.height, d, p, 0, 0, De[3], Ce, !1, Rs, !1, N);
|
|
8759
8759
|
if (l && l.collides(et.declutterBox))
|
|
8760
8760
|
break t;
|
|
@@ -14224,24 +14224,24 @@ var z4 = /* @__PURE__ */ function() {
|
|
|
14224
14224
|
var ut, nt, tt;
|
|
14225
14225
|
i.opacity === 1 && (!this.containerReused || c.getOpaque(t.viewState.projection)) ? lt = lt.reverse() : (ut = [], nt = []);
|
|
14226
14226
|
for (var ft = lt.length - 1; ft >= 0; --ft) {
|
|
14227
|
-
var
|
|
14227
|
+
var q = lt[ft], dt = c.getTilePixelSize(q, h, o), Y = d.getResolution(q), B = Y / g, j = dt[0] * B * G, it = dt[1] * B * G, at = d.getTileCoordForCoordAndZ(_l(C), q), Tt = d.getTileCoordExtent(at), zt = We(this.tempTransform, [
|
|
14228
14228
|
_ * (Tt[0] - C[0]) / g,
|
|
14229
14229
|
_ * (C[3] - Tt[3]) / g
|
|
14230
|
-
]), Se = _ * c.getGutterForProjection(o), Me = I[
|
|
14230
|
+
]), Se = _ * c.getGutterForProjection(o), Me = I[q];
|
|
14231
14231
|
for (var cr in Me) {
|
|
14232
14232
|
var R = (
|
|
14233
14233
|
/** @type {import("../../ImageTile.js").default} */
|
|
14234
14234
|
Me[cr]
|
|
14235
|
-
), vr = R.tileCoord, Ur = at[1] - vr[1], Pi = Math.round(zt[0] - (Ur - 1) * j), Oi = at[2] - vr[2], si = Math.round(zt[1] - (Oi - 1) * it), D = Math.round(zt[0] - Ur * j), O = Math.round(zt[1] - Oi * it), Zr = Pi - D, Mr = si - O, On = p ===
|
|
14235
|
+
), vr = R.tileCoord, Ur = at[1] - vr[1], Pi = Math.round(zt[0] - (Ur - 1) * j), Oi = at[2] - vr[2], si = Math.round(zt[1] - (Oi - 1) * it), D = Math.round(zt[0] - Ur * j), O = Math.round(zt[1] - Oi * it), Zr = Pi - D, Mr = si - O, On = p === q, k = On && R.getAlpha(kt(this), t.time) !== 1, Ri = !1;
|
|
14236
14236
|
if (!k)
|
|
14237
14237
|
if (ut) {
|
|
14238
14238
|
tt = [D, O, D + Zr, O, D + Zr, O + Mr, D, O + Mr];
|
|
14239
14239
|
for (var et = 0, ht = ut.length; et < ht; ++et)
|
|
14240
|
-
if (p !==
|
|
14240
|
+
if (p !== q && q < nt[et]) {
|
|
14241
14241
|
var mt = ut[et];
|
|
14242
14242
|
qr([D, O, D + Zr, O + Mr], [mt[0], mt[3], mt[4], mt[7]]) && (Ri || (Z.save(), Ri = !0), Z.beginPath(), Z.moveTo(tt[0], tt[1]), Z.lineTo(tt[2], tt[3]), Z.lineTo(tt[4], tt[5]), Z.lineTo(tt[6], tt[7]), Z.moveTo(mt[6], mt[7]), Z.lineTo(mt[4], mt[5]), Z.lineTo(mt[2], mt[3]), Z.lineTo(mt[0], mt[1]), Z.clip());
|
|
14243
14243
|
}
|
|
14244
|
-
ut.push(tt), nt.push(
|
|
14244
|
+
ut.push(tt), nt.push(q);
|
|
14245
14245
|
} else
|
|
14246
14246
|
Z.clearRect(D, O, Zr, Mr);
|
|
14247
14247
|
this.drawTileImage(R, t, D, O, Zr, Mr, Se, On), ut && !k ? (Ri && Z.restore(), this.renderedTiles.unshift(R)) : this.renderedTiles.push(R), this.updateUsedTiles(t.usedTiles, c, R);
|
|
@@ -15635,9 +15635,9 @@ const $p = (n, e) => {
|
|
|
15635
15635
|
function jP(n, e, t, r, i, a, o) {
|
|
15636
15636
|
const l = o || "cb48e2a640a7b1c9b559da93318b633c", u = yt(null), h = yt(!1), f = yt(null), c = yt(null), v = yt(null), d = yt(null), p = yt("standard"), g = yt(null), y = yt(null), m = yt(null), _ = yt(null), x = yt(null), S = yt(null), w = yt(null);
|
|
15637
15637
|
yt(null);
|
|
15638
|
-
const A = yt(null), T = yt(null), C = yt(null), b = yt(null), I = yt(null), M = yt(null), L = yt(null), P = yt(null), D = yt(null), O = yt(null), R = yt(null), N = yt({ distance: 500, color: "rgba(255, 0, 0, 0.3)" }), k = "http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?", z = "https://service.sdmap.gov.cn/tileservice/dsfg_qsb?", F = "https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?", G = "https://service.sdmap.gov.cn/tileservice/sdpubmap?", U = "https://service.sdmap.gov.cn/tileservice/sdrasterpubmapdj?", Z = "http://10.166.157.209:8090/iserver/services/map-road20/rest/maps/roadData", rt = "http://jsgl.sdgsbim.com:8602/iserver/services/map-JiNanGaoSuLuWangv4/rest/maps/dashLine@济南高速路网v4", lt = "http://10.166.157.209:8090/iserver/services/map-ZH20/rest/maps/ZHData20", ut = "/china_full.json", nt = "#1b2639", tt = "#ffffff", ft = "#edf1f3",
|
|
15639
|
-
let V, W,
|
|
15640
|
-
B.value === "light" ? (V = z, W = tt,
|
|
15638
|
+
const A = yt(null), T = yt(null), C = yt(null), b = yt(null), I = yt(null), M = yt(null), L = yt(null), P = yt(null), D = yt(null), O = yt(null), R = yt(null), N = yt({ distance: 500, color: "rgba(255, 0, 0, 0.3)" }), k = "http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?", z = "https://service.sdmap.gov.cn/tileservice/dsfg_qsb?", F = "https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?", G = "https://service.sdmap.gov.cn/tileservice/sdpubmap?", U = "https://service.sdmap.gov.cn/tileservice/sdrasterpubmapdj?", Z = "http://10.166.157.209:8090/iserver/services/map-road20/rest/maps/roadData", rt = "http://jsgl.sdgsbim.com:8602/iserver/services/map-JiNanGaoSuLuWangv4/rest/maps/dashLine@济南高速路网v4", lt = "http://10.166.157.209:8090/iserver/services/map-ZH20/rest/maps/ZHData20", ut = "/china_full.json", nt = "#1b2639", tt = "#ffffff", ft = "#edf1f3", q = "#3578E0", dt = "#b4b4b1", Y = "#d3d3d3", B = tn(() => ["dark", "light", "yingxiang"].includes(e.value) ? e.value : "dark"), j = () => {
|
|
15639
|
+
let V, W, $;
|
|
15640
|
+
B.value === "light" ? (V = z, W = tt, $ = dt) : B.value === "yingxiang" ? (V = F, W = ft, $ = Y) : (V = k, W = nt, $ = q), v.value = new fi({
|
|
15641
15641
|
source: new Ll({
|
|
15642
15642
|
url: V,
|
|
15643
15643
|
key: l,
|
|
@@ -15660,7 +15660,7 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15660
15660
|
style: function(Ot) {
|
|
15661
15661
|
return new $t({
|
|
15662
15662
|
stroke: new Pe({
|
|
15663
|
-
color:
|
|
15663
|
+
color: $,
|
|
15664
15664
|
width: 1
|
|
15665
15665
|
}),
|
|
15666
15666
|
fill: new Ae({
|
|
@@ -15676,9 +15676,9 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15676
15676
|
});
|
|
15677
15677
|
};
|
|
15678
15678
|
Ur(), ot();
|
|
15679
|
-
let
|
|
15679
|
+
let Pt = r.value;
|
|
15680
15680
|
g.value = new Bf({
|
|
15681
|
-
element:
|
|
15681
|
+
element: Pt,
|
|
15682
15682
|
positioning: "bottom-center",
|
|
15683
15683
|
stopEvent: !0,
|
|
15684
15684
|
autoPan: !1
|
|
@@ -15800,11 +15800,11 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15800
15800
|
else
|
|
15801
15801
|
a();
|
|
15802
15802
|
});
|
|
15803
|
-
let
|
|
15803
|
+
let Et = null;
|
|
15804
15804
|
n.value.on("pointermove", (Wt) => {
|
|
15805
|
-
if (
|
|
15806
|
-
|
|
15807
|
-
|
|
15805
|
+
if (Et) return;
|
|
15806
|
+
Et = setTimeout(() => {
|
|
15807
|
+
Et = null;
|
|
15808
15808
|
}, 50);
|
|
15809
15809
|
let Ot = n.value.forEachFeatureAtPixel(Wt.pixel, (Xt) => Xt);
|
|
15810
15810
|
if (Ot !== u.value) {
|
|
@@ -15822,7 +15822,7 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15822
15822
|
u.value = Ot;
|
|
15823
15823
|
}
|
|
15824
15824
|
});
|
|
15825
|
-
}, it = (V, W,
|
|
15825
|
+
}, it = (V, W, $) => {
|
|
15826
15826
|
v.value && n.value.removeLayer(v.value), x.value && n.value.removeLayer(x.value), v.value = new fi({
|
|
15827
15827
|
source: new Ll({
|
|
15828
15828
|
url: V,
|
|
@@ -15832,24 +15832,24 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15832
15832
|
}),
|
|
15833
15833
|
zIndex: 1
|
|
15834
15834
|
}), n.value.addLayer(v.value), fetch(ut).then((ot) => ot.json()).then((ot) => {
|
|
15835
|
-
let
|
|
15835
|
+
let Pt = new pn();
|
|
15836
15836
|
x.value = new Je({
|
|
15837
15837
|
layerName: "china_full_Layer",
|
|
15838
15838
|
source: new Ye({
|
|
15839
|
-
format:
|
|
15840
|
-
features:
|
|
15839
|
+
format: Pt,
|
|
15840
|
+
features: Pt.readFeatures(ot, {
|
|
15841
15841
|
dataProjection: "EPSG:4326",
|
|
15842
15842
|
featureProjection: "EPSG:4326"
|
|
15843
15843
|
})
|
|
15844
15844
|
}),
|
|
15845
15845
|
zIndex: 3,
|
|
15846
|
-
style: function(
|
|
15846
|
+
style: function(Et) {
|
|
15847
15847
|
return new $t({
|
|
15848
15848
|
fill: new Ae({
|
|
15849
15849
|
color: W
|
|
15850
15850
|
}),
|
|
15851
15851
|
stroke: new Pe({
|
|
15852
|
-
color:
|
|
15852
|
+
color: $,
|
|
15853
15853
|
width: 1
|
|
15854
15854
|
})
|
|
15855
15855
|
});
|
|
@@ -15872,7 +15872,7 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15872
15872
|
dark: {
|
|
15873
15873
|
fill: nt,
|
|
15874
15874
|
labelUrl: "",
|
|
15875
|
-
stroke:
|
|
15875
|
+
stroke: q,
|
|
15876
15876
|
url: k
|
|
15877
15877
|
},
|
|
15878
15878
|
image: {
|
|
@@ -15882,12 +15882,11 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15882
15882
|
url: F
|
|
15883
15883
|
}
|
|
15884
15884
|
}, Tt = (V = dt) => {
|
|
15885
|
-
|
|
15886
|
-
(W = n.value) != null && W.value && (x.value && (n.value.value.removeLayer(x.value), x.value = null), fetch(ut).then((q) => q.json()).then((q) => {
|
|
15885
|
+
n.value && (x.value && (n.value.removeLayer(x.value), x.value = null), fetch(ut).then((W) => W.json()).then((W) => {
|
|
15887
15886
|
x.value = new Je({
|
|
15888
15887
|
layerName: "china_full_Layer",
|
|
15889
15888
|
source: new Ye({
|
|
15890
|
-
features: new pn().readFeatures(
|
|
15889
|
+
features: new pn().readFeatures(W, {
|
|
15891
15890
|
dataProjection: "EPSG:4326",
|
|
15892
15891
|
featureProjection: "EPSG:4326"
|
|
15893
15892
|
})
|
|
@@ -15899,69 +15898,66 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15899
15898
|
});
|
|
15900
15899
|
},
|
|
15901
15900
|
zIndex: 11
|
|
15902
|
-
}), n.value.
|
|
15903
|
-
}).catch((
|
|
15904
|
-
console.error("加载行政区划边界失败:",
|
|
15901
|
+
}), n.value.addLayer(x.value);
|
|
15902
|
+
}).catch((W) => {
|
|
15903
|
+
console.error("加载行政区划边界失败:", W);
|
|
15905
15904
|
}));
|
|
15906
15905
|
}, zt = (V = "standard", W = {}) => {
|
|
15907
|
-
|
|
15908
|
-
if (!((It = n.value) != null && It.value))
|
|
15906
|
+
if (!n.value)
|
|
15909
15907
|
return console.error("switchBaseMap: Map reference is not valid"), null;
|
|
15910
|
-
const
|
|
15908
|
+
const $ = at[V] || at.standard, ot = n.value;
|
|
15911
15909
|
return v.value && (ot.removeLayer(v.value), v.value = null), d.value && (ot.removeLayer(d.value), d.value = null), v.value = new fi({
|
|
15912
15910
|
layerName: "baseMapLayer",
|
|
15913
15911
|
source: new Ll({
|
|
15914
15912
|
crossOrigin: "anonymous",
|
|
15915
15913
|
key: l,
|
|
15916
15914
|
projection: "EPSG:4326",
|
|
15917
|
-
url:
|
|
15915
|
+
url: $.url
|
|
15918
15916
|
}),
|
|
15919
15917
|
zIndex: 0
|
|
15920
|
-
}), ot.addLayer(v.value),
|
|
15918
|
+
}), ot.addLayer(v.value), $.labelUrl && (d.value = new fi({
|
|
15921
15919
|
layerName: "baseMapLabelLayer",
|
|
15922
15920
|
source: new Ll({
|
|
15923
15921
|
crossOrigin: "anonymous",
|
|
15924
15922
|
key: l,
|
|
15925
15923
|
projection: "EPSG:4326",
|
|
15926
|
-
url:
|
|
15924
|
+
url: $.labelUrl
|
|
15927
15925
|
}),
|
|
15928
15926
|
zIndex: 1
|
|
15929
|
-
}), ot.addLayer(d.value)), W.showDistrict && Tt(W.districtColor ||
|
|
15927
|
+
}), ot.addLayer(d.value)), W.showDistrict && Tt(W.districtColor || $.stroke), p.value = V, V;
|
|
15930
15928
|
}, Se = () => Object.keys(at).map((V) => ({
|
|
15931
15929
|
type: V,
|
|
15932
15930
|
url: at[V].url
|
|
15933
15931
|
})), Me = (V) => {
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
}), q ? (n.value.value.removeLayer(q), !0) : !1;
|
|
15932
|
+
if (!n.value || !V) return !1;
|
|
15933
|
+
const W = n.value.getLayers().getArray();
|
|
15934
|
+
let $ = null;
|
|
15935
|
+
return W.forEach((ot) => {
|
|
15936
|
+
ot.get("layerName") === V && ($ = ot);
|
|
15937
|
+
}), $ ? (n.value.removeLayer($), !0) : !1;
|
|
15941
15938
|
}, cr = (V = {}) => {
|
|
15942
|
-
var Ot;
|
|
15943
15939
|
const {
|
|
15944
15940
|
layerName: W,
|
|
15945
|
-
opacity:
|
|
15941
|
+
opacity: $ = 1,
|
|
15946
15942
|
projection: ot = "EPSG:4326",
|
|
15947
|
-
url:
|
|
15948
|
-
zIndex:
|
|
15943
|
+
url: Pt,
|
|
15944
|
+
zIndex: Et = 5
|
|
15949
15945
|
} = V;
|
|
15950
|
-
if (!
|
|
15946
|
+
if (!n.value || !W || !Pt)
|
|
15951
15947
|
return console.error("addTileLayerByUrl: 参数不完整(layerName / url 必填)"), null;
|
|
15952
15948
|
Me(W);
|
|
15953
15949
|
const Wt = new fi({
|
|
15954
15950
|
layerName: W,
|
|
15955
|
-
opacity:
|
|
15951
|
+
opacity: $,
|
|
15956
15952
|
source: new eT({
|
|
15957
15953
|
crossOrigin: "anonymous",
|
|
15958
15954
|
projection: ot,
|
|
15959
|
-
url:
|
|
15955
|
+
url: Pt
|
|
15960
15956
|
}),
|
|
15961
|
-
zIndex:
|
|
15957
|
+
zIndex: Et
|
|
15962
15958
|
});
|
|
15963
|
-
return n.value.
|
|
15964
|
-
}, vr = (V, W,
|
|
15959
|
+
return n.value.addLayer(Wt), Wt;
|
|
15960
|
+
}, vr = (V, W, $, ot = {}) => $ ? cr({ layerName: V, url: W, ...ot }) : Me(V), Ur = () => {
|
|
15965
15961
|
C.value && n.value.removeLayer(C.value), C.value = new fi({
|
|
15966
15962
|
layerName: "baseRoadlayer",
|
|
15967
15963
|
source: new Ug({
|
|
@@ -15990,11 +15986,11 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
15990
15986
|
}), n.value.addLayer(b.value);
|
|
15991
15987
|
const V = n.value.getView();
|
|
15992
15988
|
let W = null;
|
|
15993
|
-
const
|
|
15989
|
+
const $ = () => {
|
|
15994
15990
|
V.getZoom() < 15 ? (C.value.getVisible() || C.value.setVisible(!0), b.value.getVisible() && b.value.setVisible(!1)) : (C.value.getVisible() && C.value.setVisible(!1), b.value.getVisible() || b.value.setVisible(!0));
|
|
15995
15991
|
};
|
|
15996
|
-
return
|
|
15997
|
-
W && clearTimeout(W), W = setTimeout(
|
|
15992
|
+
return $(), V.on("change:resolution", () => {
|
|
15993
|
+
W && clearTimeout(W), W = setTimeout($, 150);
|
|
15998
15994
|
}), {
|
|
15999
15995
|
baseRoadlayer: C.value,
|
|
16000
15996
|
roadLinelayer: b.value
|
|
@@ -16017,10 +16013,10 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16017
16013
|
I.value && (n.value.removeLayer(I.value), I.value = null);
|
|
16018
16014
|
}, Zr = () => {
|
|
16019
16015
|
const V = /* @__PURE__ */ new Date(), W = V.getFullYear();
|
|
16020
|
-
let
|
|
16021
|
-
const
|
|
16022
|
-
|
|
16023
|
-
const Ot = W + "-" +
|
|
16016
|
+
let $ = V.getMonth() + 1, ot = V.getDate();
|
|
16017
|
+
const Pt = V.getHours(), Et = V.getMinutes(), Wt = V.getSeconds();
|
|
16018
|
+
$ >= 1 && $ <= 9 && ($ = "0" + $), ot >= 1 && ot <= 9 && (ot = "0" + ot);
|
|
16019
|
+
const Ot = W + "-" + $ + "-" + ot + " " + Pt + ":" + Et + ":" + Wt;
|
|
16024
16020
|
return new Date(
|
|
16025
16021
|
Ot.replace(new RegExp("-", "gm"), "/")
|
|
16026
16022
|
).getTime();
|
|
@@ -16035,11 +16031,11 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16035
16031
|
}),
|
|
16036
16032
|
zIndex: V.zIndex || 9,
|
|
16037
16033
|
minZoom: V.minZoom ?? 13
|
|
16038
|
-
}), M.value.on("prerender", (
|
|
16039
|
-
const ot =
|
|
16040
|
-
ot.save(), ot.translate(
|
|
16041
|
-
}), M.value.on("postrender", (
|
|
16042
|
-
|
|
16034
|
+
}), M.value.on("prerender", ($) => {
|
|
16035
|
+
const ot = $.context, Pt = n.value.getView().getZoom(), Et = W * (256 * Math.pow(2, Pt)) / 360, Wt = 5e-5 * (256 * Math.pow(2, Pt)) / 360;
|
|
16036
|
+
ot.save(), ot.translate(Et, Wt);
|
|
16037
|
+
}), M.value.on("postrender", ($) => {
|
|
16038
|
+
$.context.restore();
|
|
16043
16039
|
}), n.value.addLayer(M.value), M.value;
|
|
16044
16040
|
}, On = () => {
|
|
16045
16041
|
M.value && (n.value.removeLayer(M.value), M.value = null);
|
|
@@ -16070,10 +16066,10 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16070
16066
|
}, ht = "path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z", mt = (V = {}) => {
|
|
16071
16067
|
if (!n.value)
|
|
16072
16068
|
return console.error("地图实例未就绪,无法绘制迁徙线"), null;
|
|
16073
|
-
const W = V.cityData || [],
|
|
16069
|
+
const W = V.cityData || [], $ = V.startIndex ?? 0;
|
|
16074
16070
|
return W.length ? (P.value = {
|
|
16075
16071
|
cityData: W,
|
|
16076
|
-
startIndex:
|
|
16072
|
+
startIndex: $,
|
|
16077
16073
|
cityColors: V.cityColors,
|
|
16078
16074
|
lineColor: V.lineColor,
|
|
16079
16075
|
planePath: V.planePath,
|
|
@@ -16088,12 +16084,12 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16088
16084
|
}), L.value.appendTo(n.value)), Ct(P.value), L.value) : (console.error("迁徙线城市数据不能为空"), null);
|
|
16089
16085
|
}, Ct = (V) => {
|
|
16090
16086
|
if (!L.value || !V) return;
|
|
16091
|
-
const { cityData: W, cityColors:
|
|
16087
|
+
const { cityData: W, cityColors: $, planePath: ot, lineWidth: Pt, symbolSize: Et, period: Wt } = V, Ot = V.startIndex ?? 0, Xt = W[Ot];
|
|
16092
16088
|
if (!Xt) {
|
|
16093
16089
|
console.error("起点城市索引超出范围");
|
|
16094
16090
|
return;
|
|
16095
16091
|
}
|
|
16096
|
-
const ye =
|
|
16092
|
+
const ye = $ || {}, Yt = V.lineColor, de = ot || ht, Ze = Pt ?? 2, me = Et ?? 6, De = Wt ?? 5, fn = [];
|
|
16097
16093
|
W.forEach((Xr, Ni) => {
|
|
16098
16094
|
Ni !== Ot && fn.push({
|
|
16099
16095
|
coords: [Xt.name, Xr.name]
|
|
@@ -16275,101 +16271,101 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16275
16271
|
re();
|
|
16276
16272
|
}, 100);
|
|
16277
16273
|
}), n.value.addInteraction(D.value);
|
|
16278
|
-
}, ct = (V, W,
|
|
16279
|
-
const
|
|
16274
|
+
}, ct = (V, W, $, ot) => {
|
|
16275
|
+
const Pt = 63710088e-1, Et = (De) => De * Math.PI / 180, Wt = (De) => De * 180 / Math.PI, Ot = Et($), Xt = Et(W), ye = Et(V), Yt = ot / Pt, de = Math.asin(
|
|
16280
16276
|
Math.sin(Xt) * Math.cos(Yt) + Math.cos(Xt) * Math.sin(Yt) * Math.cos(Ot)
|
|
16281
16277
|
), me = (ye + Math.atan2(
|
|
16282
16278
|
Math.sin(Ot) * Math.sin(Yt) * Math.cos(Xt),
|
|
16283
16279
|
Math.cos(Yt) - Math.sin(Xt) * Math.sin(de)
|
|
16284
16280
|
) + 3 * Math.PI) % (2 * Math.PI) - Math.PI;
|
|
16285
16281
|
return [Wt(me), Wt(de)];
|
|
16286
|
-
}, St = (V, W,
|
|
16287
|
-
const
|
|
16288
|
-
return (
|
|
16282
|
+
}, St = (V, W, $, ot) => {
|
|
16283
|
+
const Pt = (de) => de * Math.PI / 180, Et = (de) => de * 180 / Math.PI, Wt = Pt($ - V), Ot = Pt(W), Xt = Pt(ot), ye = Math.sin(Wt) * Math.cos(ot), Yt = Math.cos(Ot) * Math.sin(Xt) - Math.sin(Ot) * Math.cos(Xt) * Math.cos(Wt);
|
|
16284
|
+
return (Et(Math.atan2(ye, Yt)) + 360) % 360;
|
|
16289
16285
|
}, ee = (V, W) => {
|
|
16290
16286
|
if (!V || V.length < 2) {
|
|
16291
16287
|
if (V && V.length === 1) {
|
|
16292
|
-
const [
|
|
16288
|
+
const [Et, Wt] = V[0], Ot = [], Xt = 64;
|
|
16293
16289
|
for (let ye = 0; ye <= Xt; ye++) {
|
|
16294
|
-
const Yt = ye * 360 / Xt, de = ct(
|
|
16290
|
+
const Yt = ye * 360 / Xt, de = ct(Et, Wt, Yt, W);
|
|
16295
16291
|
Ot.push(de);
|
|
16296
16292
|
}
|
|
16297
16293
|
return Ot;
|
|
16298
16294
|
}
|
|
16299
16295
|
return null;
|
|
16300
16296
|
}
|
|
16301
|
-
const
|
|
16302
|
-
for (let
|
|
16303
|
-
const [Wt, Ot] = V[
|
|
16297
|
+
const $ = [], ot = [];
|
|
16298
|
+
for (let Et = 0; Et < V.length; Et++) {
|
|
16299
|
+
const [Wt, Ot] = V[Et];
|
|
16304
16300
|
let Xt;
|
|
16305
|
-
if (
|
|
16301
|
+
if (Et === 0)
|
|
16306
16302
|
Xt = St(
|
|
16307
16303
|
Wt,
|
|
16308
16304
|
Ot,
|
|
16309
|
-
V[
|
|
16310
|
-
V[
|
|
16305
|
+
V[Et + 1][0],
|
|
16306
|
+
V[Et + 1][1]
|
|
16311
16307
|
);
|
|
16312
|
-
else if (
|
|
16308
|
+
else if (Et === V.length - 1)
|
|
16313
16309
|
Xt = St(
|
|
16314
|
-
V[
|
|
16315
|
-
V[
|
|
16310
|
+
V[Et - 1][0],
|
|
16311
|
+
V[Et - 1][1],
|
|
16316
16312
|
Wt,
|
|
16317
16313
|
Ot
|
|
16318
16314
|
);
|
|
16319
16315
|
else {
|
|
16320
16316
|
const de = St(
|
|
16321
|
-
V[
|
|
16322
|
-
V[
|
|
16317
|
+
V[Et - 1][0],
|
|
16318
|
+
V[Et - 1][1],
|
|
16323
16319
|
Wt,
|
|
16324
16320
|
Ot
|
|
16325
16321
|
);
|
|
16326
16322
|
let me = St(
|
|
16327
16323
|
Wt,
|
|
16328
16324
|
Ot,
|
|
16329
|
-
V[
|
|
16330
|
-
V[
|
|
16325
|
+
V[Et + 1][0],
|
|
16326
|
+
V[Et + 1][1]
|
|
16331
16327
|
) - de;
|
|
16332
16328
|
me > 180 && (me -= 360), me < -180 && (me += 360), Xt = (de + me / 2 + 360) % 360;
|
|
16333
16329
|
}
|
|
16334
16330
|
const ye = (Xt - 90 + 360) % 360, Yt = (Xt + 90) % 360;
|
|
16335
|
-
|
|
16331
|
+
$.push(ct(Wt, Ot, ye, W)), ot.push(ct(Wt, Ot, Yt, W));
|
|
16336
16332
|
}
|
|
16337
|
-
return [
|
|
16338
|
-
(
|
|
16333
|
+
return [...$, ...ot.slice().reverse(), $[0]].filter(
|
|
16334
|
+
(Et) => Number.isFinite(Et[0]) && Number.isFinite(Et[1])
|
|
16339
16335
|
);
|
|
16340
16336
|
}, Ue = (V) => {
|
|
16341
16337
|
if (!V || !R.value) return;
|
|
16342
|
-
const W = N.value.distance,
|
|
16343
|
-
if (
|
|
16344
|
-
const ot =
|
|
16345
|
-
let
|
|
16338
|
+
const W = N.value.distance, $ = V.getGeometry();
|
|
16339
|
+
if (!$) return;
|
|
16340
|
+
const ot = $.getType();
|
|
16341
|
+
let Pt = null;
|
|
16346
16342
|
try {
|
|
16347
16343
|
if (ot === "LineString") {
|
|
16348
|
-
const Ot =
|
|
16349
|
-
|
|
16344
|
+
const Ot = $.getCoordinates();
|
|
16345
|
+
Pt = ee(Ot, W);
|
|
16350
16346
|
} else if (ot === "Point") {
|
|
16351
|
-
const [Ot, Xt] =
|
|
16352
|
-
|
|
16347
|
+
const [Ot, Xt] = $.getCoordinates();
|
|
16348
|
+
Pt = [];
|
|
16353
16349
|
const ye = 64;
|
|
16354
16350
|
for (let Yt = 0; Yt <= ye; Yt++) {
|
|
16355
16351
|
const de = Yt * 360 / ye;
|
|
16356
|
-
|
|
16352
|
+
Pt.push(ct(Ot, Xt, de, W));
|
|
16357
16353
|
}
|
|
16358
16354
|
} else if (ot === "Polygon") {
|
|
16359
|
-
const Ot =
|
|
16360
|
-
|
|
16355
|
+
const Ot = $.getCoordinates(), Xt = Ot[0], ye = Ot.slice(1), Yt = ee(Xt, W), de = ye.map((Ze) => ee(Ze, -W)).filter(Boolean);
|
|
16356
|
+
Pt = Yt, de.length && (Pt = Yt);
|
|
16361
16357
|
} else {
|
|
16362
16358
|
console.error("不支持的几何类型:", ot);
|
|
16363
16359
|
return;
|
|
16364
16360
|
}
|
|
16365
|
-
if (!
|
|
16361
|
+
if (!Pt || Pt.length < 4) {
|
|
16366
16362
|
console.warn("缓冲区生成结果为空");
|
|
16367
16363
|
return;
|
|
16368
16364
|
}
|
|
16369
|
-
const
|
|
16365
|
+
const Et = new bi([Pt]), Wt = new ji({ geometry: Et });
|
|
16370
16366
|
R.value.getSource().addFeature(Wt);
|
|
16371
|
-
} catch (
|
|
16372
|
-
console.error("生成缓冲区失败:",
|
|
16367
|
+
} catch (Et) {
|
|
16368
|
+
console.error("生成缓冲区失败:", Et);
|
|
16373
16369
|
}
|
|
16374
16370
|
}, Ge = (V = {}) => {
|
|
16375
16371
|
V.distance !== void 0 && (N.value.distance = V.distance), V.color !== void 0 && (N.value.color = V.color, R.value && R.value.setStyle(
|
|
@@ -16387,7 +16383,7 @@ function jP(n, e, t, r, i, a, o) {
|
|
|
16387
16383
|
re(), O.value && (O.value.getSource().clear(), n.value.removeLayer(O.value), O.value = null), R.value && (R.value.getSource().clear(), n.value.removeLayer(R.value), R.value = null);
|
|
16388
16384
|
};
|
|
16389
16385
|
return Pf(e, (V) => {
|
|
16390
|
-
V === "dark" ? it(k, nt,
|
|
16386
|
+
V === "dark" ? it(k, nt, q) : V === "light" ? it(z, tt, dt) : V === "yingxiang" && it(F, ft, Y);
|
|
16391
16387
|
}), {
|
|
16392
16388
|
lastHoverFeature: u,
|
|
16393
16389
|
isCluster: h,
|
|
@@ -16592,7 +16588,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16592
16588
|
font: "14px sans-serif",
|
|
16593
16589
|
text: re.toString()
|
|
16594
16590
|
})
|
|
16595
|
-
}),
|
|
16591
|
+
}), $ = new $t({
|
|
16596
16592
|
image: new Xe({
|
|
16597
16593
|
src: Ge.get("features")[0].getProperties().iconUrl,
|
|
16598
16594
|
scale: et.clusterScale || 0.6
|
|
@@ -16608,11 +16604,11 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16608
16604
|
})
|
|
16609
16605
|
});
|
|
16610
16606
|
if (n.value.value.getView().getZoom() < 18)
|
|
16611
|
-
return
|
|
16607
|
+
return $;
|
|
16612
16608
|
{
|
|
16613
16609
|
let ot = 1;
|
|
16614
|
-
return Ge.get("features").forEach((
|
|
16615
|
-
|
|
16610
|
+
return Ge.get("features").forEach((Pt) => {
|
|
16611
|
+
Pt.getProperties().otherInfo.state === 0 && (ot = 0);
|
|
16616
16612
|
}), ot === 1 ? V : W;
|
|
16617
16613
|
}
|
|
16618
16614
|
} else
|
|
@@ -16634,8 +16630,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16634
16630
|
if (!re.get("isClusterLayer")) return;
|
|
16635
16631
|
const Ce = re.get("clusterZoomThreshold") || 16, V = re.get("clusterSource"), W = re.get("rawSource");
|
|
16636
16632
|
if (!V || !W) return;
|
|
16637
|
-
const
|
|
16638
|
-
Ge > Ce &&
|
|
16633
|
+
const $ = re.getSource();
|
|
16634
|
+
Ge > Ce && $ !== W ? re.setSource(W) : Ge <= Ce && $ !== V && re.setSource(V);
|
|
16639
16635
|
});
|
|
16640
16636
|
}));
|
|
16641
16637
|
} else
|
|
@@ -16750,24 +16746,24 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16750
16746
|
Ct.appendTo(n.value.value);
|
|
16751
16747
|
let Bt = function(V) {
|
|
16752
16748
|
let W = [];
|
|
16753
|
-
for (let
|
|
16754
|
-
let ot = V[
|
|
16749
|
+
for (let $ = 0; $ < V.length; $++) {
|
|
16750
|
+
let ot = V[$].latlng;
|
|
16755
16751
|
if (ot) {
|
|
16756
|
-
let
|
|
16757
|
-
Array.isArray(
|
|
16758
|
-
let
|
|
16759
|
-
Array.isArray(
|
|
16760
|
-
let Wt = V[
|
|
16752
|
+
let Pt = V[$].bar_data || [0];
|
|
16753
|
+
Array.isArray(Pt) || (Pt = [Pt]);
|
|
16754
|
+
let Et = V[$].bar_names || ["数据1"];
|
|
16755
|
+
Array.isArray(Et) || (Et = [Et]);
|
|
16756
|
+
let Wt = V[$].bar_units || ["单位"];
|
|
16761
16757
|
Array.isArray(Wt) || (Wt = [Wt]), W.push({
|
|
16762
|
-
name: V[
|
|
16758
|
+
name: V[$].city,
|
|
16763
16759
|
value: ot,
|
|
16764
16760
|
// 不再使用level字段
|
|
16765
|
-
bar_count: V[
|
|
16761
|
+
bar_count: V[$].bar_count || 1,
|
|
16766
16762
|
// 默认显示一根柱子
|
|
16767
|
-
color: Array.isArray(V[
|
|
16763
|
+
color: Array.isArray(V[$].color) ? V[$].color : V[$].color ? [V[$].color, "#ff7f00"] : ["#efda18", "#ff7f00"],
|
|
16768
16764
|
// 默认颜色
|
|
16769
|
-
bar_data:
|
|
16770
|
-
bar_names:
|
|
16765
|
+
bar_data: Pt,
|
|
16766
|
+
bar_names: Et,
|
|
16771
16767
|
bar_units: Wt
|
|
16772
16768
|
});
|
|
16773
16769
|
}
|
|
@@ -16777,8 +16773,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16777
16773
|
const Nt = Bt(ht).reduce((V, W) => V.concat(W.bar_data), []), ae = Math.max(...Nt, 1), ct = (V) => {
|
|
16778
16774
|
let W;
|
|
16779
16775
|
if (typeof V == "string" && V.startsWith("#")) {
|
|
16780
|
-
const
|
|
16781
|
-
W = `rgba(${ot}, ${
|
|
16776
|
+
const $ = V.replace("#", ""), ot = parseInt($.substring(0, 2), 16), Pt = parseInt($.substring(2, 4), 16), Et = parseInt($.substring(4, 6), 16);
|
|
16777
|
+
W = `rgba(${ot}, ${Pt}, ${Et}, 1)`;
|
|
16782
16778
|
} else
|
|
16783
16779
|
W = V;
|
|
16784
16780
|
return {
|
|
@@ -16837,14 +16833,14 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16837
16833
|
trigger: "item",
|
|
16838
16834
|
formatter: function(V) {
|
|
16839
16835
|
if (V.seriesName === "车流量") {
|
|
16840
|
-
const W = V.data.bar_names[0] || "数据",
|
|
16841
|
-
return `${V.data.name}<br/>${W}: ${
|
|
16836
|
+
const W = V.data.bar_names[0] || "数据", $ = V.data.bar_data[0] || 0, ot = V.data.bar_units[0] || "";
|
|
16837
|
+
return `${V.data.name}<br/>${W}: ${$}${ot}`;
|
|
16842
16838
|
} else if (V.seriesName === "车流量1") {
|
|
16843
|
-
const W = V.data.bar_names[0] || "数据1",
|
|
16844
|
-
return `${V.data.name}<br/>${W}: ${
|
|
16839
|
+
const W = V.data.bar_names[0] || "数据1", $ = V.data.bar_data[0] || 0, ot = V.data.bar_units[0] || "";
|
|
16840
|
+
return `${V.data.name}<br/>${W}: ${$}${ot}`;
|
|
16845
16841
|
} else if (V.seriesName === "车流量2") {
|
|
16846
|
-
const W = V.data.bar_names[1] || "数据2",
|
|
16847
|
-
return `${V.data.name}<br/>${W}: ${
|
|
16842
|
+
const W = V.data.bar_names[1] || "数据2", $ = V.data.bar_data[1] || 0, ot = V.data.bar_units[1] || "";
|
|
16843
|
+
return `${V.data.name}<br/>${W}: ${$}${ot}`;
|
|
16848
16844
|
}
|
|
16849
16845
|
return `${V.data.name}<br/>数据: ${V.data.bar_data[0] || 0}${V.data.bar_units[0] || ""}`;
|
|
16850
16846
|
},
|
|
@@ -16862,8 +16858,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16862
16858
|
coordinateSystem: "geo",
|
|
16863
16859
|
data: re,
|
|
16864
16860
|
symbolSize: function(V) {
|
|
16865
|
-
const W = V[2] || 0,
|
|
16866
|
-
return [mt.barWidth || 15,
|
|
16861
|
+
const W = V[2] || 0, $ = Math.max(10, W / ae * 150);
|
|
16862
|
+
return [mt.barWidth || 15, $];
|
|
16867
16863
|
},
|
|
16868
16864
|
symbolOffset: [0, "-50%"],
|
|
16869
16865
|
rippleEffect: {
|
|
@@ -16887,8 +16883,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16887
16883
|
coordinateSystem: "geo",
|
|
16888
16884
|
data: Ue,
|
|
16889
16885
|
symbolSize: function(V) {
|
|
16890
|
-
const W = V[2] || 0,
|
|
16891
|
-
return [mt.barWidth || 15,
|
|
16886
|
+
const W = V[2] || 0, $ = Math.max(10, W / ae * 150);
|
|
16887
|
+
return [mt.barWidth || 15, $];
|
|
16892
16888
|
},
|
|
16893
16889
|
symbolOffset: [-8, "-50%"],
|
|
16894
16890
|
// 左移第一个柱子
|
|
@@ -16913,8 +16909,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16913
16909
|
coordinateSystem: "geo",
|
|
16914
16910
|
data: Ge,
|
|
16915
16911
|
symbolSize: function(V) {
|
|
16916
|
-
const W = V[2] || 0,
|
|
16917
|
-
return [mt.barWidth || 15,
|
|
16912
|
+
const W = V[2] || 0, $ = Math.max(10, W / ae * 150);
|
|
16913
|
+
return [mt.barWidth || 15, $];
|
|
16918
16914
|
},
|
|
16919
16915
|
symbolOffset: [8, "-50%"],
|
|
16920
16916
|
// 右移第二个柱子
|
|
@@ -16938,12 +16934,12 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16938
16934
|
return Ct && (Ct.setChartOptions(Ce), setTimeout(() => {
|
|
16939
16935
|
Ct.$chart && Ct.$chart.on("click", function(V) {
|
|
16940
16936
|
if (t && typeof t == "function") {
|
|
16941
|
-
let W = V.data,
|
|
16942
|
-
if (
|
|
16943
|
-
let
|
|
16944
|
-
n && n.value && n.value.value && (
|
|
16937
|
+
let W = V.data, $ = W.value[0], ot = W.value[1], Pt = null;
|
|
16938
|
+
if ($ && ot) {
|
|
16939
|
+
let Et = [$, ot];
|
|
16940
|
+
n && n.value && n.value.value && (Pt = n.value.value.getPixelFromCoordinate(Et));
|
|
16945
16941
|
}
|
|
16946
|
-
t("barClick", W,
|
|
16942
|
+
t("barClick", W, Pt);
|
|
16947
16943
|
}
|
|
16948
16944
|
});
|
|
16949
16945
|
}, 0)), Ct;
|
|
@@ -16959,32 +16955,32 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16959
16955
|
});
|
|
16960
16956
|
Ct.appendTo(n.value.value);
|
|
16961
16957
|
let Bt = function(W) {
|
|
16962
|
-
let
|
|
16958
|
+
let $ = [];
|
|
16963
16959
|
for (let ot = 0; ot < W.length; ot++) {
|
|
16964
|
-
let
|
|
16965
|
-
if (
|
|
16966
|
-
let
|
|
16967
|
-
Array.isArray(
|
|
16960
|
+
let Pt = W[ot].latlng;
|
|
16961
|
+
if (Pt) {
|
|
16962
|
+
let Et = W[ot].bar_data || [0];
|
|
16963
|
+
Array.isArray(Et) || (Et = [Et]);
|
|
16968
16964
|
let Wt = W[ot].bar_names || ["数据1"];
|
|
16969
16965
|
Array.isArray(Wt) || (Wt = [Wt]);
|
|
16970
16966
|
let Ot = W[ot].bar_units || ["单位"];
|
|
16971
|
-
Array.isArray(Ot) || (Ot = [Ot]),
|
|
16967
|
+
Array.isArray(Ot) || (Ot = [Ot]), $.push({
|
|
16972
16968
|
name: W[ot].city,
|
|
16973
|
-
value:
|
|
16969
|
+
value: Pt,
|
|
16974
16970
|
bar_count: W[ot].bar_count || 1,
|
|
16975
16971
|
color: Array.isArray(W[ot].color) ? W[ot].color : W[ot].color ? [W[ot].color, "#ff7f00"] : ["#0097fb", "#30eca6"],
|
|
16976
|
-
bar_data:
|
|
16972
|
+
bar_data: Et,
|
|
16977
16973
|
bar_names: Wt,
|
|
16978
16974
|
bar_units: Ot
|
|
16979
16975
|
});
|
|
16980
16976
|
}
|
|
16981
16977
|
}
|
|
16982
|
-
return
|
|
16978
|
+
return $;
|
|
16983
16979
|
};
|
|
16984
|
-
const Nt = Bt(ht).reduce((W,
|
|
16985
|
-
const
|
|
16980
|
+
const Nt = Bt(ht).reduce((W, $) => W.concat($.bar_data), []), ae = Math.max(...Nt, 1), ct = (W) => {
|
|
16981
|
+
const $ = W || 0;
|
|
16986
16982
|
let ot = [];
|
|
16987
|
-
return
|
|
16983
|
+
return $ < 300 ? ot = [
|
|
16988
16984
|
{
|
|
16989
16985
|
offset: 0,
|
|
16990
16986
|
color: "rgba(44, 104, 226, 1)"
|
|
@@ -16993,7 +16989,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
16993
16989
|
offset: 1,
|
|
16994
16990
|
color: "rgba(44, 104, 226, 0.5)"
|
|
16995
16991
|
}
|
|
16996
|
-
] :
|
|
16992
|
+
] : $ < 1e3 ? ot = [
|
|
16997
16993
|
{
|
|
16998
16994
|
offset: 0,
|
|
16999
16995
|
color: "rgba(23, 221, 174, 1)"
|
|
@@ -17002,7 +16998,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17002
16998
|
offset: 1,
|
|
17003
16999
|
color: "rgba(44, 104, 226, 0.5)"
|
|
17004
17000
|
}
|
|
17005
|
-
] :
|
|
17001
|
+
] : $ < 2e3 ? ot = [
|
|
17006
17002
|
{
|
|
17007
17003
|
offset: 0,
|
|
17008
17004
|
color: "rgba(255, 213, 114, 1)"
|
|
@@ -17062,14 +17058,14 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17062
17058
|
trigger: "item",
|
|
17063
17059
|
formatter: function(W) {
|
|
17064
17060
|
if (W.seriesName === "singleBar") {
|
|
17065
|
-
const
|
|
17066
|
-
return `${W.data.name}<br/>${
|
|
17061
|
+
const $ = W.data.bar_names[0] || "数据", ot = W.data.bar_data[0] || 0, Pt = W.data.bar_units[0] || "";
|
|
17062
|
+
return `${W.data.name}<br/>${$}: ${ot}${Pt}`;
|
|
17067
17063
|
} else if (W.seriesName === "doubleBar1") {
|
|
17068
|
-
const
|
|
17069
|
-
return `${W.data.name}<br/>${
|
|
17064
|
+
const $ = W.data.bar_names[0] || "数据1", ot = W.data.bar_data[0] || 0, Pt = W.data.bar_units[0] || "";
|
|
17065
|
+
return `${W.data.name}<br/>${$}: ${ot}${Pt}`;
|
|
17070
17066
|
} else if (W.seriesName === "doubleBar2") {
|
|
17071
|
-
const
|
|
17072
|
-
return `${W.data.name}<br/>${
|
|
17067
|
+
const $ = W.data.bar_names[1] || "数据2", ot = W.data.bar_data[1] || 0, Pt = W.data.bar_units[1] || "";
|
|
17068
|
+
return `${W.data.name}<br/>${$}: ${ot}${Pt}`;
|
|
17073
17069
|
}
|
|
17074
17070
|
return `${W.data.name}`;
|
|
17075
17071
|
},
|
|
@@ -17090,7 +17086,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17090
17086
|
coordinateSystem: "geo",
|
|
17091
17087
|
data: Ue,
|
|
17092
17088
|
symbolSize: function(W) {
|
|
17093
|
-
const
|
|
17089
|
+
const $ = W[2] || 0, ot = Math.max(10, $ / ae * 150);
|
|
17094
17090
|
return [mt.barWidth || 15, ot];
|
|
17095
17091
|
},
|
|
17096
17092
|
symbolOffset: [0, "-50%"],
|
|
@@ -17110,7 +17106,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17110
17106
|
coordinateSystem: "geo",
|
|
17111
17107
|
data: Ge,
|
|
17112
17108
|
symbolSize: function(W) {
|
|
17113
|
-
const
|
|
17109
|
+
const $ = W[2] || 0, ot = Math.max(10, $ / ae * 150);
|
|
17114
17110
|
return [mt.barWidth || 15, ot];
|
|
17115
17111
|
},
|
|
17116
17112
|
symbolOffset: [-8, "-50%"],
|
|
@@ -17130,7 +17126,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17130
17126
|
coordinateSystem: "geo",
|
|
17131
17127
|
data: re,
|
|
17132
17128
|
symbolSize: function(W) {
|
|
17133
|
-
const
|
|
17129
|
+
const $ = W[2] || 0, ot = Math.max(10, $ / ae * 150);
|
|
17134
17130
|
return [mt.barWidth || 15, ot];
|
|
17135
17131
|
},
|
|
17136
17132
|
symbolOffset: [8, "-50%"],
|
|
@@ -17149,12 +17145,12 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17149
17145
|
return Ct && (Ct.setChartOptions(V), setTimeout(() => {
|
|
17150
17146
|
Ct.$chart && Ct.$chart.on("click", function(W) {
|
|
17151
17147
|
if (t && typeof t == "function") {
|
|
17152
|
-
let
|
|
17153
|
-
if (ot &&
|
|
17154
|
-
let Wt = [ot,
|
|
17155
|
-
n && n.value && n.value.value && (
|
|
17148
|
+
let $ = W.data, ot = $.value[0], Pt = $.value[1], Et = null;
|
|
17149
|
+
if (ot && Pt) {
|
|
17150
|
+
let Wt = [ot, Pt];
|
|
17151
|
+
n && n.value && n.value.value && (Et = n.value.value.getPixelFromCoordinate(Wt));
|
|
17156
17152
|
}
|
|
17157
|
-
t("barClick",
|
|
17153
|
+
t("barClick", $, Et);
|
|
17158
17154
|
}
|
|
17159
17155
|
});
|
|
17160
17156
|
}, 0)), Ct;
|
|
@@ -17228,7 +17224,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17228
17224
|
};
|
|
17229
17225
|
let D = yt(null), O = null, R = null, N = null, k = null, z = null, F = null, G = yt(null), U = [], Z = null, rt = null, lt = null;
|
|
17230
17226
|
const ut = yt([]);
|
|
17231
|
-
let nt = null, tt = null, ft = yt(null),
|
|
17227
|
+
let nt = null, tt = null, ft = yt(null), q = null;
|
|
17232
17228
|
const dt = "__measure_layer__", Y = "点击继续绘制多边形", B = "点击继续绘制线条", j = "点击开始绘制", it = function(et) {
|
|
17233
17229
|
const mt = n.value.value.getView().getProjection(), Ct = yx(et, { projection: mt });
|
|
17234
17230
|
let Bt;
|
|
@@ -17410,7 +17406,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17410
17406
|
}), ht.addLayer(tt), ft.value = new Gd({
|
|
17411
17407
|
source: nt,
|
|
17412
17408
|
type: et
|
|
17413
|
-
}),
|
|
17409
|
+
}), q = ft.value.on("drawend", function(Ct) {
|
|
17414
17410
|
const ae = Ct.feature.getGeometry().getCoordinates();
|
|
17415
17411
|
ut.value.push({
|
|
17416
17412
|
type: et,
|
|
@@ -17421,7 +17417,7 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17421
17417
|
if (!n || !n.value || !n.value.value)
|
|
17422
17418
|
return;
|
|
17423
17419
|
const et = n.value.value;
|
|
17424
|
-
ft.value && (et.removeInteraction(ft.value), ft.value = null),
|
|
17420
|
+
ft.value && (et.removeInteraction(ft.value), ft.value = null), q && (ou(q), q = null), nt && (nt.clear(), nt = null), tt && (et.removeLayer(tt), tt = null), ut.value = [];
|
|
17425
17421
|
}, Zr = (et = {}) => {
|
|
17426
17422
|
if (!n || !n.value || !n.value.value) {
|
|
17427
17423
|
console.error("Map reference is not valid");
|
|
@@ -17489,20 +17485,20 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17489
17485
|
return;
|
|
17490
17486
|
const Bt = n.value.value, Nt = et && typeof et == "object" && !Array.isArray(et) ? et : {}, ae = Nt.baseImgURL ?? ht ?? "", ct = Nt.geoJSONUrl ?? mt ?? "/sdArea.json", St = Nt.themeStyle ?? Ct ?? "light", ee = Mr[St] || Mr.dark, Ue = Nt.fillColor ?? Nt.fill ?? ee.fillColor, Ge = Nt.strokeColor ?? Nt.stroke ?? ee.strokeColor, re = Nt.strokeWidth ?? 1, Ce = Nt.zIndex ?? 3;
|
|
17491
17487
|
let V = Number(Nt.opacity ?? 0.5);
|
|
17492
|
-
Number.isNaN(V) && (V = 0.5), V = Math.min(Math.max(V, 0), 1), v.value && (Bt.removeLayer(v.value), v.value = null), fetch(`${ae || ""}${ct}`).then((
|
|
17488
|
+
Number.isNaN(V) && (V = 0.5), V = Math.min(Math.max(V, 0), 1), v.value && (Bt.removeLayer(v.value), v.value = null), fetch(`${ae || ""}${ct}`).then(($) => $.json()).then(($) => {
|
|
17493
17489
|
const ot = new pn();
|
|
17494
17490
|
v.value = new Je({
|
|
17495
17491
|
layerName: "china_full_Layer",
|
|
17496
17492
|
source: new Ye({
|
|
17497
17493
|
format: ot,
|
|
17498
|
-
features: ot.readFeatures(
|
|
17494
|
+
features: ot.readFeatures($, {
|
|
17499
17495
|
dataProjection: "EPSG:4326",
|
|
17500
17496
|
featureProjection: "EPSG:4326"
|
|
17501
17497
|
})
|
|
17502
17498
|
}),
|
|
17503
17499
|
opacity: V,
|
|
17504
17500
|
zIndex: Ce,
|
|
17505
|
-
style: function(
|
|
17501
|
+
style: function(Pt) {
|
|
17506
17502
|
return new $t({
|
|
17507
17503
|
fill: new Ae({
|
|
17508
17504
|
color: Ue
|
|
@@ -17514,8 +17510,8 @@ function KP(n, e, t, r, i, a, o, s, l, u) {
|
|
|
17514
17510
|
});
|
|
17515
17511
|
}
|
|
17516
17512
|
}), Bt.addLayer(v.value);
|
|
17517
|
-
}).catch((
|
|
17518
|
-
console.error("加载区域数据失败:",
|
|
17513
|
+
}).catch(($) => {
|
|
17514
|
+
console.error("加载区域数据失败:", $);
|
|
17519
17515
|
});
|
|
17520
17516
|
},
|
|
17521
17517
|
removeShandongDistrictLayer: () => {
|
|
@@ -17817,8 +17813,8 @@ function GH(n) {
|
|
|
17817
17813
|
featureProjection: "EPSG:4326"
|
|
17818
17814
|
}
|
|
17819
17815
|
).forEach((ft) => {
|
|
17820
|
-
const
|
|
17821
|
-
|
|
17816
|
+
const q = ft.get("DEV_STATUS");
|
|
17817
|
+
q === 1 || q === "1" ? ft.setStyle(k) : q === 2 || q === "2" ? ft.setStyle(z) : q === 3 || q === "3" ? ft.setStyle(F) : q === 21 || q === "21" ? ft.setStyle(G) : q === 31 || q === "31" ? ft.setStyle(U) : ft.setStyle(k), ft.set("popoup", !1), ft.set("type", "sfz"), N.addFeature(ft);
|
|
17822
17818
|
}), n.value.addLayer(t.value), O(t.value);
|
|
17823
17819
|
}).catch(function(ut) {
|
|
17824
17820
|
console.error("加载收费站数据失败:", ut), R(ut);
|
|
@@ -18464,7 +18460,7 @@ function Si() {
|
|
|
18464
18460
|
n[e] = arguments[e];
|
|
18465
18461
|
typeof console < "u" && console.error.apply(console, n);
|
|
18466
18462
|
}
|
|
18467
|
-
function
|
|
18463
|
+
function It(n) {
|
|
18468
18464
|
if (n == null || typeof n != "object")
|
|
18469
18465
|
return n;
|
|
18470
18466
|
var e = n, t = qu.call(n);
|
|
@@ -18472,7 +18468,7 @@ function Et(n) {
|
|
|
18472
18468
|
if (!mf(n)) {
|
|
18473
18469
|
e = [];
|
|
18474
18470
|
for (var r = 0, i = n.length; r < i; r++)
|
|
18475
|
-
e[r] =
|
|
18471
|
+
e[r] = It(n[r]);
|
|
18476
18472
|
}
|
|
18477
18473
|
} else if (t2[t]) {
|
|
18478
18474
|
if (!mf(n)) {
|
|
@@ -18488,17 +18484,17 @@ function Et(n) {
|
|
|
18488
18484
|
} else if (!$P[t] && !mf(n) && !Fu(n)) {
|
|
18489
18485
|
e = {};
|
|
18490
18486
|
for (var o in n)
|
|
18491
|
-
n.hasOwnProperty(o) && o !== Jx && (e[o] =
|
|
18487
|
+
n.hasOwnProperty(o) && o !== Jx && (e[o] = It(n[o]));
|
|
18492
18488
|
}
|
|
18493
18489
|
return e;
|
|
18494
18490
|
}
|
|
18495
18491
|
function Ft(n, e, t) {
|
|
18496
18492
|
if (!wt(e) || !wt(n))
|
|
18497
|
-
return t ?
|
|
18493
|
+
return t ? It(e) : n;
|
|
18498
18494
|
for (var r in e)
|
|
18499
18495
|
if (e.hasOwnProperty(r) && r !== Jx) {
|
|
18500
18496
|
var i = n[r], a = e[r];
|
|
18501
|
-
wt(a) && wt(i) && !J(a) && !J(i) && !Fu(a) && !Fu(i) && !lT(a) && !lT(i) && !mf(a) && !mf(i) ? Ft(i, a, t) : (t || !(r in n)) && (n[r] =
|
|
18497
|
+
wt(a) && wt(i) && !J(a) && !J(i) && !Fu(a) && !Fu(i) && !lT(a) && !lT(i) && !mf(a) && !mf(i) ? Ft(i, a, t) : (t || !(r in n)) && (n[r] = It(e[r]));
|
|
18502
18498
|
}
|
|
18503
18499
|
return n;
|
|
18504
18500
|
}
|
|
@@ -18672,7 +18668,7 @@ function lr() {
|
|
|
18672
18668
|
if (n[t] != null)
|
|
18673
18669
|
return n[t];
|
|
18674
18670
|
}
|
|
18675
|
-
function
|
|
18671
|
+
function Lt(n, e) {
|
|
18676
18672
|
return n ?? e;
|
|
18677
18673
|
}
|
|
18678
18674
|
function ti(n, e, t) {
|
|
@@ -20607,7 +20603,7 @@ function A2(n) {
|
|
|
20607
20603
|
return Math.max(Math.ceil(Math.log(t) / Math.log(10)), 1);
|
|
20608
20604
|
}
|
|
20609
20605
|
function T2(n) {
|
|
20610
|
-
var e = n.x || 0, t = n.y || 0, r = (n.rotation || 0) * id, i =
|
|
20606
|
+
var e = n.x || 0, t = n.y || 0, r = (n.rotation || 0) * id, i = Lt(n.scaleX, 1), a = Lt(n.scaleY, 1), o = n.skewX || 0, s = n.skewY || 0, l = [];
|
|
20611
20607
|
return (e || t) && l.push("translate(" + e + "px," + t + "px)"), r && l.push("rotate(" + r + ")"), (i !== 1 || a !== 1) && l.push("scale(" + i + "," + a + ")"), (o || s) && l.push("skew(" + jd(o * id) + "deg, " + jd(s * id) + "deg)"), l.join(" ");
|
|
20612
20608
|
}
|
|
20613
20609
|
var ZW = function() {
|
|
@@ -21849,7 +21845,7 @@ function M2(n, e, t, r, i, a, o, s) {
|
|
|
21849
21845
|
S.targetName = e, i.scope && (S.scope = i.scope), c && T && S.whenWithKeys(0, T, p), b && S.whenWithKeys(0, b, p), S.whenWithKeys(u ?? 500, s ? C : r, p).delay(h || 0), n.addAnimator(S, e), o.push(S);
|
|
21850
21846
|
}
|
|
21851
21847
|
}
|
|
21852
|
-
var
|
|
21848
|
+
var Mt = function(n) {
|
|
21853
21849
|
ke(e, n);
|
|
21854
21850
|
function e(t) {
|
|
21855
21851
|
var r = n.call(this) || this;
|
|
@@ -21936,7 +21932,7 @@ var Dt = function(n) {
|
|
|
21936
21932
|
return o || r;
|
|
21937
21933
|
}, e;
|
|
21938
21934
|
}(og);
|
|
21939
|
-
|
|
21935
|
+
Mt.prototype.type = "group";
|
|
21940
21936
|
/*!
|
|
21941
21937
|
* ZRender, a high performance 2d drawing library.
|
|
21942
21938
|
*
|
|
@@ -21973,7 +21969,7 @@ var pY = function() {
|
|
|
21973
21969
|
var s = new ef[o](t, a, r, e), l = r.ssr || s.ssrOnly;
|
|
21974
21970
|
this.storage = a, this.painter = s;
|
|
21975
21971
|
var u = !Qt.node && !Qt.worker && !l ? new aY(s.getViewportRoot(), s.root) : null, h = r.useCoarsePointer, f = h == null || h === "auto" ? Qt.touchEventsSupported : !!h, c = 44, v;
|
|
21976
|
-
f && (v =
|
|
21972
|
+
f && (v = Lt(r.pointerSize, c)), this.handler = new l2(a, s, u, s.root, v), this.animation = new qW({
|
|
21977
21973
|
stage: {
|
|
21978
21974
|
update: l ? null : function() {
|
|
21979
21975
|
return i._flush(!0);
|
|
@@ -22040,7 +22036,7 @@ var pY = function() {
|
|
|
22040
22036
|
}, n.prototype.clear = function() {
|
|
22041
22037
|
if (!this._disposed) {
|
|
22042
22038
|
for (var e = this.storage.getRoots(), t = 0; t < e.length; t++)
|
|
22043
|
-
e[t] instanceof
|
|
22039
|
+
e[t] instanceof Mt && e[t].removeSelfFromZr(this);
|
|
22044
22040
|
this.storage.delAllRoots(), this.painter.clear();
|
|
22045
22041
|
}
|
|
22046
22042
|
}, n.prototype.dispose = function() {
|
|
@@ -22788,11 +22784,11 @@ function tU(n, e, t, r, i, a) {
|
|
|
22788
22784
|
function Y2(n, e, t, r) {
|
|
22789
22785
|
r = r || {};
|
|
22790
22786
|
var i = X({}, r);
|
|
22791
|
-
i.font = e, t =
|
|
22792
|
-
var a = i.minChar =
|
|
22787
|
+
i.font = e, t = Lt(t, "..."), i.maxIterations = Lt(r.maxIterations, 2);
|
|
22788
|
+
var a = i.minChar = Lt(r.minChar, 0);
|
|
22793
22789
|
i.cnCharWidth = Dn("国", e);
|
|
22794
22790
|
var o = i.ascCharWidth = Dn("a", e);
|
|
22795
|
-
i.placeholder =
|
|
22791
|
+
i.placeholder = Lt(r.placeholder, "");
|
|
22796
22792
|
for (var s = n = Math.max(0, n - 1), l = 0; l < a && s >= o; l++)
|
|
22797
22793
|
s -= o;
|
|
22798
22794
|
var u = Dn(t, e);
|
|
@@ -22828,10 +22824,10 @@ function eU(n, e, t, r) {
|
|
|
22828
22824
|
}
|
|
22829
22825
|
function rU(n, e) {
|
|
22830
22826
|
n != null && (n += "");
|
|
22831
|
-
var t = e.overflow, r = e.padding, i = e.font, a = t === "truncate", o = ag(i), s =
|
|
22827
|
+
var t = e.overflow, r = e.padding, i = e.font, a = t === "truncate", o = ag(i), s = Lt(e.lineHeight, o), l = !!e.backgroundColor, u = e.lineOverflow === "truncate", h = !1, f = e.width, c;
|
|
22832
22828
|
f != null && (t === "break" || t === "breakAll") ? c = n ? Z2(n, e.font, f, t === "breakAll", 0).lines : [] : c = n ? n.split(`
|
|
22833
22829
|
`) : [];
|
|
22834
|
-
var v = c.length * s, d =
|
|
22830
|
+
var v = c.length * s, d = Lt(e.height, v);
|
|
22835
22831
|
if (v > d && u) {
|
|
22836
22832
|
var p = Math.floor(d / s);
|
|
22837
22833
|
h = h || c.length > p, c = c.slice(0, p);
|
|
@@ -22891,7 +22887,7 @@ function aU(n, e) {
|
|
|
22891
22887
|
for (var _ = t.lines[m], x = 0, S = 0, w = 0; w < _.tokens.length; w++) {
|
|
22892
22888
|
var A = _.tokens[w], T = A.styleName && e.rich[A.styleName] || {}, C = A.textPadding = T.padding, b = C ? C[1] + C[3] : 0, I = A.font = T.font || e.font;
|
|
22893
22889
|
A.contentHeight = ag(I);
|
|
22894
|
-
var M =
|
|
22890
|
+
var M = Lt(T.height, A.contentHeight);
|
|
22895
22891
|
if (A.innerHeight = M, C && (M += C[0] + C[2]), A.height = M, A.lineHeight = ti(T.lineHeight, e.lineHeight, M), A.align = T && T.align || e.align, A.verticalAlign = T && T.verticalAlign || "middle", p && i != null && f + A.lineHeight > i) {
|
|
22896
22892
|
var L = t.lines.length;
|
|
22897
22893
|
w > 0 ? (_.tokens = _.tokens.slice(0, w), y(_, S, x), t.lines = t.lines.slice(0, m + 1)) : t.lines = t.lines.slice(0, m), t.isTruncated = t.isTruncated || t.lines.length < L;
|
|
@@ -22912,7 +22908,7 @@ function aU(n, e) {
|
|
|
22912
22908
|
}
|
|
22913
22909
|
y(_, S, x);
|
|
22914
22910
|
}
|
|
22915
|
-
t.outerWidth = t.width =
|
|
22911
|
+
t.outerWidth = t.width = Lt(r, c), t.outerHeight = t.height = Lt(i, f), t.contentHeight = f, t.contentWidth = c, v && (t.outerWidth += v[1] + v[3], t.outerHeight += v[0] + v[2]);
|
|
22916
22912
|
for (var m = 0; m < h.length; m++) {
|
|
22917
22913
|
var A = h[m], k = A.percentWidth;
|
|
22918
22914
|
A.width = parseInt(k, 10) / 100 * t.width;
|
|
@@ -23400,12 +23396,12 @@ var ha = function() {
|
|
|
23400
23396
|
break;
|
|
23401
23397
|
}
|
|
23402
23398
|
case Ie.A:
|
|
23403
|
-
var z = r[w++], F = r[w++], G = r[w++], U = r[w++], Z = r[w++], rt = r[w++], lt = r[w++], ut = !r[w++], nt = G > U ? G : U, tt = ga(G - U) > 1e-3, ft = Z + rt,
|
|
23399
|
+
var z = r[w++], F = r[w++], G = r[w++], U = r[w++], Z = r[w++], rt = r[w++], lt = r[w++], ut = !r[w++], nt = G > U ? G : U, tt = ga(G - U) > 1e-3, ft = Z + rt, q = !1;
|
|
23404
23400
|
if (v) {
|
|
23405
23401
|
var I = d[y++];
|
|
23406
|
-
g + I > m && (ft = Z + rt * (m - g) / I,
|
|
23402
|
+
g + I > m && (ft = Z + rt * (m - g) / I, q = !0), g += I;
|
|
23407
23403
|
}
|
|
23408
|
-
if (tt && e.ellipse ? e.ellipse(z, F, G, U, lt, Z, ft, ut) : e.arc(z, F, nt, Z, ft, ut),
|
|
23404
|
+
if (tt && e.ellipse ? e.ellipse(z, F, G, U, lt, Z, ft, ut) : e.arc(z, F, nt, Z, ft, ut), q)
|
|
23409
23405
|
break t;
|
|
23410
23406
|
T && (s = os(Z) * G + z, l = ss(Z) * U + F), u = os(ft) * G + z, h = ss(ft) * U + F;
|
|
23411
23407
|
break;
|
|
@@ -23833,9 +23829,9 @@ var Qd = bt({
|
|
|
23833
23829
|
return t.init && t.init.call(l, s), l;
|
|
23834
23830
|
}
|
|
23835
23831
|
return o.prototype.getDefaultStyle = function() {
|
|
23836
|
-
return
|
|
23832
|
+
return It(t.style);
|
|
23837
23833
|
}, o.prototype.getDefaultShape = function() {
|
|
23838
|
-
return
|
|
23834
|
+
return It(t.shape);
|
|
23839
23835
|
}, o;
|
|
23840
23836
|
}(e);
|
|
23841
23837
|
for (var i in t)
|
|
@@ -24112,7 +24108,7 @@ var qT = {
|
|
|
24112
24108
|
var p = this._getOrCreateChild(zu), g = p.createStyle();
|
|
24113
24109
|
p.useStyle(g);
|
|
24114
24110
|
var y = this._defaultStyle, m = !1, _ = 0, x = iC("fill" in u ? u.fill : "fill" in r ? r.fill : (m = !0, y.fill)), S = nC("stroke" in u ? u.stroke : "stroke" in r ? r.stroke : !v && !l && (!y.autoStroke || m) ? (_ = $T, y.stroke) : null), w = u.textShadowBlur > 0 || r.textShadowBlur > 0;
|
|
24115
|
-
g.text = t.text, g.x = o, g.y = f, w && (g.shadowBlur = u.textShadowBlur || r.textShadowBlur || 0, g.shadowColor = u.textShadowColor || r.textShadowColor || "transparent", g.shadowOffsetX = u.textShadowOffsetX || r.textShadowOffsetX || 0, g.shadowOffsetY = u.textShadowOffsetY || r.textShadowOffsetY || 0), g.textAlign = s, g.textBaseline = "middle", g.font = t.font || No, g.opacity = ti(u.opacity, r.opacity, 1), eC(g, u), S && (g.lineWidth = ti(u.lineWidth, r.lineWidth, _), g.lineDash =
|
|
24111
|
+
g.text = t.text, g.x = o, g.y = f, w && (g.shadowBlur = u.textShadowBlur || r.textShadowBlur || 0, g.shadowColor = u.textShadowColor || r.textShadowColor || "transparent", g.shadowOffsetX = u.textShadowOffsetX || r.textShadowOffsetX || 0, g.shadowOffsetY = u.textShadowOffsetY || r.textShadowOffsetY || 0), g.textAlign = s, g.textBaseline = "middle", g.font = t.font || No, g.opacity = ti(u.opacity, r.opacity, 1), eC(g, u), S && (g.lineWidth = ti(u.lineWidth, r.lineWidth, _), g.lineDash = Lt(u.lineDash, r.lineDash), g.lineDashOffset = r.lineDashOffset || 0, g.stroke = S), x && (g.fill = x);
|
|
24116
24112
|
var A = t.contentWidth, T = t.contentHeight;
|
|
24117
24113
|
p.setBoundingRect(new Ht(tf(g.x, A, g.textAlign), vu(g.y, T, g.textBaseline), A, T));
|
|
24118
24114
|
}, e.prototype._renderBackground = function(t, r, i, a, o, s) {
|
|
@@ -24124,7 +24120,7 @@ var qT = {
|
|
|
24124
24120
|
}
|
|
24125
24121
|
if (c) {
|
|
24126
24122
|
var m = p.style;
|
|
24127
|
-
m.fill = l || null, m.fillOpacity =
|
|
24123
|
+
m.fill = l || null, m.fillOpacity = Lt(t.fillOpacity, 1);
|
|
24128
24124
|
} else if (f) {
|
|
24129
24125
|
g = this._getOrCreateChild(Er), g.onload = function() {
|
|
24130
24126
|
d.dirtyStyle();
|
|
@@ -24134,7 +24130,7 @@ var qT = {
|
|
|
24134
24130
|
}
|
|
24135
24131
|
if (u && h) {
|
|
24136
24132
|
var m = p.style;
|
|
24137
|
-
m.lineWidth = u, m.stroke = h, m.strokeOpacity =
|
|
24133
|
+
m.lineWidth = u, m.stroke = h, m.strokeOpacity = Lt(t.strokeOpacity, 1), m.lineDash = t.borderDash, m.lineDashOffset = t.borderDashOffset || 0, p.strokeContainThreshold = 0, p.hasFill() && p.hasStroke() && (m.strokeFirst = !0, m.lineWidth *= 2);
|
|
24138
24134
|
}
|
|
24139
24135
|
var x = (p || g).style;
|
|
24140
24136
|
x.shadowBlur = t.shadowBlur || 0, x.shadowColor = t.shadowColor || "transparent", x.shadowOffsetX = t.shadowOffsetX || 0, x.shadowOffsetY = t.shadowOffsetY || 0, x.opacity = ti(t.opacity, r.opacity, 1);
|
|
@@ -24190,11 +24186,11 @@ function oC(n) {
|
|
|
24190
24186
|
function $y(n) {
|
|
24191
24187
|
return !!(n.backgroundColor || n.lineHeight || n.borderWidth && n.borderColor);
|
|
24192
24188
|
}
|
|
24193
|
-
var
|
|
24189
|
+
var Dt = se(), V_ = function(n, e, t, r) {
|
|
24194
24190
|
if (r) {
|
|
24195
|
-
var i =
|
|
24191
|
+
var i = Dt(r);
|
|
24196
24192
|
i.dataIndex = t, i.dataType = e, i.seriesIndex = n, i.ssrType = "chart", r.type === "group" && r.traverse(function(a) {
|
|
24197
|
-
var o =
|
|
24193
|
+
var o = Dt(a);
|
|
24198
24194
|
o.seriesIndex = n, o.dataIndex = t, o.dataType = e, o.ssrType = "chart";
|
|
24199
24195
|
});
|
|
24200
24196
|
}
|
|
@@ -24410,7 +24406,7 @@ function WU(n, e, t) {
|
|
|
24410
24406
|
for (var s = i.count(), l = 0; !o && l < s; )
|
|
24411
24407
|
o = i.getItemGraphicEl(l++);
|
|
24412
24408
|
if (o) {
|
|
24413
|
-
var u =
|
|
24409
|
+
var u = Dt(o);
|
|
24414
24410
|
H_(r, u.focus, u.blurScope, t);
|
|
24415
24411
|
} else {
|
|
24416
24412
|
var h = n.get(["emphasis", "focus"]), f = n.get(["emphasis", "blurScope"]);
|
|
@@ -24431,7 +24427,7 @@ function gS(n, e, t, r) {
|
|
|
24431
24427
|
if (!o || !o.findHighDownDispatchers)
|
|
24432
24428
|
return i;
|
|
24433
24429
|
for (var s = o.findHighDownDispatchers(t), l, u = 0; u < s.length; u++)
|
|
24434
|
-
if (process.env.NODE_ENV !== "production" && !Go(s[u]) && Rr("param should be highDownDispatcher"),
|
|
24430
|
+
if (process.env.NODE_ENV !== "production" && !Go(s[u]) && Rr("param should be highDownDispatcher"), Dt(s[u]).focus === "self") {
|
|
24435
24431
|
l = !0;
|
|
24436
24432
|
break;
|
|
24437
24433
|
}
|
|
@@ -24442,14 +24438,14 @@ function gS(n, e, t, r) {
|
|
|
24442
24438
|
}
|
|
24443
24439
|
function YU(n, e, t) {
|
|
24444
24440
|
process.env.NODE_ENV !== "production" && !Go(n) && Rr("param should be highDownDispatcher");
|
|
24445
|
-
var r =
|
|
24441
|
+
var r = Dt(n), i = gS(r.componentMainType, r.componentIndex, r.componentHighDownName, t), a = i.dispatchers, o = i.focusSelf;
|
|
24446
24442
|
a ? (o && W_(r.componentMainType, r.componentIndex, t), E(a, function(s) {
|
|
24447
24443
|
return hC(s, e);
|
|
24448
24444
|
})) : (H_(r.seriesIndex, r.focus, r.blurScope, t), r.focus === "self" && W_(r.componentMainType, r.componentIndex, t), hC(n, e));
|
|
24449
24445
|
}
|
|
24450
24446
|
function UU(n, e, t) {
|
|
24451
24447
|
process.env.NODE_ENV !== "production" && !Go(n) && Rr("param should be highDownDispatcher"), sO(t);
|
|
24452
|
-
var r =
|
|
24448
|
+
var r = Dt(n), i = gS(r.componentMainType, r.componentIndex, r.componentHighDownName, t).dispatchers;
|
|
24453
24449
|
i ? E(i, function(a) {
|
|
24454
24450
|
return fC(a, e);
|
|
24455
24451
|
}) : fC(n, e);
|
|
@@ -24496,7 +24492,7 @@ function He(n, e, t, r) {
|
|
|
24496
24492
|
r ? jU(n) : tl(n, e, t);
|
|
24497
24493
|
}
|
|
24498
24494
|
function Y_(n, e, t) {
|
|
24499
|
-
var r =
|
|
24495
|
+
var r = Dt(n);
|
|
24500
24496
|
e != null ? (r.focus = e, r.blurScope = t) : r.focus && (r.focus = null);
|
|
24501
24497
|
}
|
|
24502
24498
|
var vC = ["emphasis", "blur", "select"], KU = {
|
|
@@ -24519,7 +24515,7 @@ function Go(n) {
|
|
|
24519
24515
|
return !!(n && n.__highDownDispatcher);
|
|
24520
24516
|
}
|
|
24521
24517
|
function JU(n, e, t) {
|
|
24522
|
-
var r =
|
|
24518
|
+
var r = Dt(n);
|
|
24523
24519
|
r.componentMainType = e.mainType, r.componentIndex = e.componentIndex, r.componentHighDownName = t;
|
|
24524
24520
|
}
|
|
24525
24521
|
function QU(n) {
|
|
@@ -24820,15 +24816,15 @@ function fZ(n, e) {
|
|
|
24820
24816
|
if (!k)
|
|
24821
24817
|
n.moveTo(h + D, f + O);
|
|
24822
24818
|
else if (C > vi) {
|
|
24823
|
-
var tt = Bi(y, C), ft = Bi(m, C),
|
|
24824
|
-
n.moveTo(h +
|
|
24819
|
+
var tt = Bi(y, C), ft = Bi(m, C), q = yv(L, P, D, O, r, tt, c), dt = yv(I, M, R, N, r, ft, c);
|
|
24820
|
+
n.moveTo(h + q.cx + q.x0, f + q.cy + q.y0), C < A && tt === ft ? n.arc(h + q.cx, f + q.cy, C, Gr(q.y0, q.x0), Gr(dt.y0, dt.x0), !c) : (tt > 0 && n.arc(h + q.cx, f + q.cy, tt, Gr(q.y0, q.x0), Gr(q.y1, q.x1), !c), n.arc(h, f, r, Gr(q.cy + q.y1, q.cx + q.x1), Gr(dt.cy + dt.y1, dt.cx + dt.x1), !c), ft > 0 && n.arc(h + dt.cx, f + dt.cy, ft, Gr(dt.y1, dt.x1), Gr(dt.y0, dt.x0), !c));
|
|
24825
24821
|
} else
|
|
24826
24822
|
n.moveTo(h + D, f + O), n.arc(h, f, r, l, u, !c);
|
|
24827
24823
|
if (!(i > vi) || !k)
|
|
24828
24824
|
n.lineTo(h + R, f + N);
|
|
24829
24825
|
else if (b > vi) {
|
|
24830
|
-
var tt = Bi(p, b), ft = Bi(g, b),
|
|
24831
|
-
n.lineTo(h +
|
|
24826
|
+
var tt = Bi(p, b), ft = Bi(g, b), q = yv(R, N, I, M, i, -ft, c), dt = yv(D, O, L, P, i, -tt, c);
|
|
24827
|
+
n.lineTo(h + q.cx + q.x0, f + q.cy + q.y0), b < T && tt === ft ? n.arc(h + q.cx, f + q.cy, b, Gr(q.y0, q.x0), Gr(dt.y0, dt.x0), !c) : (ft > 0 && n.arc(h + q.cx, f + q.cy, ft, Gr(q.y0, q.x0), Gr(q.y1, q.x1), !c), n.arc(h, f, i, Gr(q.cy + q.y1, q.cx + q.x1), Gr(dt.cy + dt.y1, dt.cx + dt.x1), c), tt > 0 && n.arc(h + dt.cx, f + dt.cy, tt, Gr(dt.y1, dt.x1), Gr(dt.y0, dt.x0), !c));
|
|
24832
24828
|
} else
|
|
24833
24829
|
n.lineTo(h + R, f + N), n.arc(h, f, i, u, l, c);
|
|
24834
24830
|
}
|
|
@@ -25212,7 +25208,7 @@ function nh(n, e, t, r, i) {
|
|
|
25212
25208
|
var s = e && e.isAnimationEnabled(), l = n === "update";
|
|
25213
25209
|
if (s) {
|
|
25214
25210
|
var u = void 0, h = void 0, f = void 0;
|
|
25215
|
-
r ? (u =
|
|
25211
|
+
r ? (u = Lt(r.duration, 200), h = Lt(r.easing, "cubicOut"), f = 0) : (u = e.getShallow(l ? "animationDurationUpdate" : "animationDuration"), h = e.getShallow(l ? "animationEasingUpdate" : "animationEasing"), f = e.getShallow(l ? "animationDelayUpdate" : "animationDelay")), a && (a.duration != null && (u = a.duration), a.easing != null && (h = a.easing), a.delay != null && (f = a.delay)), xt(f) && (f = f(t, i)), xt(u) && (u = u(t));
|
|
25216
25212
|
var c = {
|
|
25217
25213
|
duration: u || 0,
|
|
25218
25214
|
delay: f,
|
|
@@ -25393,7 +25389,7 @@ function Tc(n, e, t) {
|
|
|
25393
25389
|
var s = a[o.anid];
|
|
25394
25390
|
if (s) {
|
|
25395
25391
|
var l = i(o);
|
|
25396
|
-
o.attr(i(s)), ve(o, l, t,
|
|
25392
|
+
o.attr(i(s)), ve(o, l, t, Dt(o).dataIndex);
|
|
25397
25393
|
}
|
|
25398
25394
|
}
|
|
25399
25395
|
});
|
|
@@ -25467,7 +25463,7 @@ function Tl(n) {
|
|
|
25467
25463
|
l && E(ne(l), function(h) {
|
|
25468
25464
|
gt(s, h) || (s[h] = l[h], s.$vars.push(h));
|
|
25469
25465
|
});
|
|
25470
|
-
var u =
|
|
25466
|
+
var u = Dt(n.el);
|
|
25471
25467
|
u.componentMainType = a, u.componentIndex = o, u.tooltipConfig = {
|
|
25472
25468
|
name: r,
|
|
25473
25469
|
option: bt({
|
|
@@ -25507,7 +25503,7 @@ const Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25507
25503
|
Circle: Za,
|
|
25508
25504
|
CompoundPath: mS,
|
|
25509
25505
|
Ellipse: pg,
|
|
25510
|
-
Group:
|
|
25506
|
+
Group: Mt,
|
|
25511
25507
|
Image: Er,
|
|
25512
25508
|
IncrementalDisplayable: wZ,
|
|
25513
25509
|
Line: _r,
|
|
@@ -25570,7 +25566,7 @@ function j_(n, e, t) {
|
|
|
25570
25566
|
normal: s
|
|
25571
25567
|
}, u = 0; u < sn.length; u++) {
|
|
25572
25568
|
var h = sn[u], f = e[h];
|
|
25573
|
-
l[h] =
|
|
25569
|
+
l[h] = Lt(r ? r.getFormattedLabel(i, h, null, a, f && f.get("formatter")) : null, s);
|
|
25574
25570
|
}
|
|
25575
25571
|
return l;
|
|
25576
25572
|
}
|
|
@@ -25591,7 +25587,7 @@ function kr(n, e, t, r) {
|
|
|
25591
25587
|
for (var o = 0; o < sn.length; o++) {
|
|
25592
25588
|
var v = sn[o], s = e[v];
|
|
25593
25589
|
if (s) {
|
|
25594
|
-
var d = l.ensureState(v), p = !!
|
|
25590
|
+
var d = l.ensureState(v), p = !!Lt(s.getShallow("show"), f);
|
|
25595
25591
|
if (p !== f && (d.ignore = !p), d.style = Re(s, r && r[v], t, !0, !i), d.style.text = u[v], !i) {
|
|
25596
25592
|
var g = n.ensureState(v);
|
|
25597
25593
|
g.textConfig = rp(s, t, !0);
|
|
@@ -25621,7 +25617,7 @@ function Re(n, e, t, r, i) {
|
|
|
25621
25617
|
}
|
|
25622
25618
|
function rp(n, e, t) {
|
|
25623
25619
|
e = e || {};
|
|
25624
|
-
var r = {}, i, a = n.getShallow("rotate"), o =
|
|
25620
|
+
var r = {}, i, a = n.getShallow("rotate"), o = Lt(n.getShallow("distance"), t ? null : 5), s = n.getShallow("offset");
|
|
25625
25621
|
return i = n.getShallow("position") || (t ? null : "inside"), i === "outside" && (i = e.defaultOutsidePosition || "top"), i != null && (r.position = i), s != null && (r.offset = s), a != null && (a *= Math.PI / 180, r.rotation = a), o != null && (r.distance = o), r.outsideFill = n.get("color") === "inherit" ? e.inheritColor || null : "auto", r;
|
|
25626
25622
|
}
|
|
25627
25623
|
function LZ(n, e, t, r, i) {
|
|
@@ -25658,16 +25654,16 @@ function PZ(n) {
|
|
|
25658
25654
|
var TC = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], CC = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"], bC = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"];
|
|
25659
25655
|
function IC(n, e, t, r, i, a, o, s) {
|
|
25660
25656
|
t = !i && t || _g;
|
|
25661
|
-
var l = r && r.inheritColor, u = e.getShallow("color"), h = e.getShallow("textBorderColor"), f =
|
|
25657
|
+
var l = r && r.inheritColor, u = e.getShallow("color"), h = e.getShallow("textBorderColor"), f = Lt(e.getShallow("opacity"), t.opacity);
|
|
25662
25658
|
(u === "inherit" || u === "auto") && (process.env.NODE_ENV !== "production" && u === "auto" && ar("color: 'auto'", "color: 'inherit'"), l ? u = l : u = null), (h === "inherit" || h === "auto") && (process.env.NODE_ENV !== "production" && h === "auto" && ar("color: 'auto'", "color: 'inherit'"), l ? h = l : h = null), a || (u = u || t.color, h = h || t.textBorderColor), u != null && (n.fill = u), h != null && (n.stroke = h);
|
|
25663
|
-
var c =
|
|
25659
|
+
var c = Lt(e.getShallow("textBorderWidth"), t.textBorderWidth);
|
|
25664
25660
|
c != null && (n.lineWidth = c);
|
|
25665
|
-
var v =
|
|
25661
|
+
var v = Lt(e.getShallow("textBorderType"), t.textBorderType);
|
|
25666
25662
|
v != null && (n.lineDash = v);
|
|
25667
|
-
var d =
|
|
25663
|
+
var d = Lt(e.getShallow("textBorderDashOffset"), t.textBorderDashOffset);
|
|
25668
25664
|
d != null && (n.lineDashOffset = d), !i && f == null && !s && (f = r && r.defaultOpacity), f != null && (n.opacity = f), !i && !a && n.fill == null && r.inheritColor && (n.fill = r.inheritColor);
|
|
25669
25665
|
for (var p = 0; p < TC.length; p++) {
|
|
25670
|
-
var g = TC[p], y =
|
|
25666
|
+
var g = TC[p], y = Lt(e.getShallow(g), t[g]);
|
|
25671
25667
|
y != null && (n[g] = y);
|
|
25672
25668
|
}
|
|
25673
25669
|
for (var p = 0; p < CC.length; p++) {
|
|
@@ -25710,7 +25706,7 @@ function CO(n, e, t, r, i) {
|
|
|
25710
25706
|
var a = ih(n);
|
|
25711
25707
|
if (!a.valueAnimation || a.prevValue === a.value)
|
|
25712
25708
|
return;
|
|
25713
|
-
var o = a.defaultInterpolatedText, s =
|
|
25709
|
+
var o = a.defaultInterpolatedText, s = Lt(a.interpolatedValue, a.prevValue), l = a.value;
|
|
25714
25710
|
function u(h) {
|
|
25715
25711
|
var f = V2(t, a.precision, s, l, h);
|
|
25716
25712
|
a.interpolatedValue = h === 1 ? null : f;
|
|
@@ -25825,7 +25821,7 @@ var OZ = ["textStyle", "color"], im = ["fontStyle", "fontWeight", "fontSize", "f
|
|
|
25825
25821
|
}, n.prototype.restoreData = function() {
|
|
25826
25822
|
}, n.prototype.clone = function() {
|
|
25827
25823
|
var e = this.constructor;
|
|
25828
|
-
return new e(
|
|
25824
|
+
return new e(It(this.option));
|
|
25829
25825
|
}, n.prototype.parsePath = function(e) {
|
|
25830
25826
|
return typeof e == "string" ? e.split(".") : e;
|
|
25831
25827
|
}, n.prototype.resolveParentPath = function(e) {
|
|
@@ -26157,9 +26153,9 @@ function MO(n, e) {
|
|
|
26157
26153
|
function YZ(n) {
|
|
26158
26154
|
if (vt(n)) {
|
|
26159
26155
|
var e = dd[n.toUpperCase()] || {};
|
|
26160
|
-
return n === np || n === wS ?
|
|
26156
|
+
return n === np || n === wS ? It(e) : Ft(It(e), It(dd[Iu]), !1);
|
|
26161
26157
|
} else
|
|
26162
|
-
return Ft(
|
|
26158
|
+
return Ft(It(n), It(dd[Iu]), !1);
|
|
26163
26159
|
}
|
|
26164
26160
|
function K_(n) {
|
|
26165
26161
|
return AS[n];
|
|
@@ -27000,7 +26996,7 @@ var LS = (
|
|
|
27000
26996
|
}, e.prototype._mergeOption = function(t, r) {
|
|
27001
26997
|
var i = this.option, a = this._componentsMap, o = this._componentsCount, s = [], l = _t(), u = r && r.replaceMergeMainTypeMap;
|
|
27002
26998
|
nX(this), E(t, function(f, c) {
|
|
27003
|
-
f != null && (te.hasClass(c) ? c && (s.push(c), l.set(c, !0)) : i[c] = i[c] == null ?
|
|
26999
|
+
f != null && (te.hasClass(c) ? c && (s.push(c), l.set(c, !0)) : i[c] = i[c] == null ? It(f) : Ft(i[c], f, !0));
|
|
27004
27000
|
}), u && u.each(function(f, c) {
|
|
27005
27001
|
te.hasClass(c) && !l.get(c) && (s.push(c), l.set(c, !0));
|
|
27006
27002
|
}), te.topologicalTravel(s, te.getAllClassMainTypes(), h, this);
|
|
@@ -27052,7 +27048,7 @@ echarts.use([` + M + "]);" : "Unknown series " + I));
|
|
|
27052
27048
|
}
|
|
27053
27049
|
this._seriesIndices || Sv(this);
|
|
27054
27050
|
}, e.prototype.getOption = function() {
|
|
27055
|
-
var t =
|
|
27051
|
+
var t = It(this.option);
|
|
27056
27052
|
return E(t, function(r, i) {
|
|
27057
27053
|
if (te.hasClass(i)) {
|
|
27058
27054
|
for (var a = Te(r), o = a.length, s = !1, l = o - 1; l >= 0; l--)
|
|
@@ -27208,7 +27204,7 @@ function vX(n, e) {
|
|
|
27208
27204
|
function dX(n, e) {
|
|
27209
27205
|
var t = n.color && !n.colorLayer;
|
|
27210
27206
|
E(e, function(r, i) {
|
|
27211
|
-
i === "colorLayer" && t || te.hasClass(i) || (typeof r == "object" ? n[i] = n[i] ? Ft(n[i], r, !1) :
|
|
27207
|
+
i === "colorLayer" && t || te.hasClass(i) || (typeof r == "object" ? n[i] = n[i] ? Ft(n[i], r, !1) : It(r) : n[i] == null && (n[i] = r));
|
|
27212
27208
|
});
|
|
27213
27209
|
}
|
|
27214
27210
|
function NC(n, e, t) {
|
|
@@ -27307,17 +27303,17 @@ var pX = [
|
|
|
27307
27303
|
o && o.data && an(o.data) && Hd(o.data);
|
|
27308
27304
|
}), E(Te(e.dataset), function(o) {
|
|
27309
27305
|
o && o.source && an(o.source) && Hd(o.source);
|
|
27310
|
-
})), e =
|
|
27306
|
+
})), e = It(e);
|
|
27311
27307
|
var i = this._optionBackup, a = mX(e, t, !i);
|
|
27312
27308
|
this._newBaseOption = a.baseOption, i ? (a.timelineOptions.length && (i.timelineOptions = a.timelineOptions), a.mediaList.length && (i.mediaList = a.mediaList), a.mediaDefault && (i.mediaDefault = a.mediaDefault)) : this._optionBackup = a;
|
|
27313
27309
|
}, n.prototype.mountOption = function(e) {
|
|
27314
27310
|
var t = this._optionBackup;
|
|
27315
|
-
return this._timelineOptions = t.timelineOptions, this._mediaList = t.mediaList, this._mediaDefault = t.mediaDefault, this._currentMediaIndices = [],
|
|
27311
|
+
return this._timelineOptions = t.timelineOptions, this._mediaList = t.mediaList, this._mediaDefault = t.mediaDefault, this._currentMediaIndices = [], It(e ? t.baseOption : this._newBaseOption);
|
|
27316
27312
|
}, n.prototype.getTimelineOption = function(e) {
|
|
27317
27313
|
var t, r = this._timelineOptions;
|
|
27318
27314
|
if (r.length) {
|
|
27319
27315
|
var i = e.getComponent("timeline");
|
|
27320
|
-
i && (t =
|
|
27316
|
+
i && (t = It(
|
|
27321
27317
|
// FIXME:TS as TimelineModel or quivlant interface
|
|
27322
27318
|
r[i.getCurrentIndex()]
|
|
27323
27319
|
));
|
|
@@ -27330,7 +27326,7 @@ var pX = [
|
|
|
27330
27326
|
for (var l = 0, u = i.length; l < u; l++)
|
|
27331
27327
|
_X(i[l].query, t, r) && o.push(l);
|
|
27332
27328
|
return !o.length && a && (o = [-1]), o.length && !SX(o, this._currentMediaIndices) && (s = Q(o, function(h) {
|
|
27333
|
-
return
|
|
27329
|
+
return It(h === -1 ? a.option : i[h].option);
|
|
27334
27330
|
})), this._currentMediaIndices = o, s;
|
|
27335
27331
|
}, n;
|
|
27336
27332
|
}()
|
|
@@ -27627,7 +27623,7 @@ function t1(n, e, t) {
|
|
|
27627
27623
|
dimensionsDefine: i.dimensionsDefine,
|
|
27628
27624
|
startIndex: i.startIndex,
|
|
27629
27625
|
dimensionsDetectedCount: i.dimensionsDetectedCount,
|
|
27630
|
-
metaRawOption:
|
|
27626
|
+
metaRawOption: It(e)
|
|
27631
27627
|
});
|
|
27632
27628
|
return a;
|
|
27633
27629
|
}
|
|
@@ -27642,7 +27638,7 @@ function LX(n) {
|
|
|
27642
27638
|
data: n.data,
|
|
27643
27639
|
sourceFormat: n.sourceFormat,
|
|
27644
27640
|
seriesLayoutBy: n.seriesLayoutBy,
|
|
27645
|
-
dimensionsDefine:
|
|
27641
|
+
dimensionsDefine: It(n.dimensionsDefine),
|
|
27646
27642
|
startIndex: n.startIndex,
|
|
27647
27643
|
dimensionsDetectedCount: n.dimensionsDetectedCount
|
|
27648
27644
|
});
|
|
@@ -28233,11 +28229,11 @@ function XX(n, e, t) {
|
|
|
28233
28229
|
}
|
|
28234
28230
|
}
|
|
28235
28231
|
function jX(n) {
|
|
28236
|
-
return
|
|
28232
|
+
return It(n);
|
|
28237
28233
|
}
|
|
28238
28234
|
var lR = _t();
|
|
28239
28235
|
function KX(n) {
|
|
28240
|
-
n =
|
|
28236
|
+
n = It(n);
|
|
28241
28237
|
var e = n.type, t = "";
|
|
28242
28238
|
e || (process.env.NODE_ENV !== "production" && (t = "Must have a `type` when `registerTransform`."), pe(t));
|
|
28243
28239
|
var r = e.split(":");
|
|
@@ -28264,7 +28260,7 @@ function QX(n, e, t, r) {
|
|
|
28264
28260
|
}), l = Te(o.transform({
|
|
28265
28261
|
upstream: s[0],
|
|
28266
28262
|
upstreamList: s,
|
|
28267
|
-
config:
|
|
28263
|
+
config: It(n.config)
|
|
28268
28264
|
}));
|
|
28269
28265
|
if (process.env.NODE_ENV !== "production" && n.print) {
|
|
28270
28266
|
var u = Q(l, function(h) {
|
|
@@ -28679,7 +28675,7 @@ var e1 = (
|
|
|
28679
28675
|
r._chunks = i;
|
|
28680
28676
|
return this._copyCommonProps(r), t || (r._indices = this._cloneIndices()), r._updateGetRawIdx(), r;
|
|
28681
28677
|
}, n.prototype._copyCommonProps = function(e) {
|
|
28682
|
-
e._count = this._count, e._rawCount = this._rawCount, e._provider = this._provider, e._dimensions = this._dimensions, e._extent =
|
|
28678
|
+
e._count = this._count, e._rawCount = this._rawCount, e._provider = this._provider, e._dimensions = this._dimensions, e._extent = It(this._extent), e._rawExtent = It(this._rawExtent);
|
|
28683
28679
|
}, n.prototype._cloneIndices = function() {
|
|
28684
28680
|
if (this._indices) {
|
|
28685
28681
|
var e = this._indices.constructor, t = void 0;
|
|
@@ -28743,7 +28739,7 @@ var e1 = (
|
|
|
28743
28739
|
h.prepareSource(), u = h.getSource(), s = u.data, l = u.sourceFormat, a = [h._getVersionSign()];
|
|
28744
28740
|
} else
|
|
28745
28741
|
s = o.get("data", !0), l = an(s) ? Pa : ai, a = [];
|
|
28746
|
-
var f = this._getSourceMetaRawOption() || {}, c = u && u.metaRawOption || {}, v =
|
|
28742
|
+
var f = this._getSourceMetaRawOption() || {}, c = u && u.metaRawOption || {}, v = Lt(f.seriesLayoutBy, c.seriesLayoutBy) || null, d = Lt(f.sourceHeader, c.sourceHeader), p = Lt(f.dimensions, c.dimensions), g = v !== c.seriesLayoutBy || !!d != !!c.sourceHeader || p;
|
|
28747
28743
|
i = g ? [t1(s, {
|
|
28748
28744
|
seriesLayoutBy: v,
|
|
28749
28745
|
sourceHeader: d,
|
|
@@ -29294,7 +29290,7 @@ var Be = (
|
|
|
29294
29290
|
/** @class */
|
|
29295
29291
|
function() {
|
|
29296
29292
|
function n() {
|
|
29297
|
-
this.group = new
|
|
29293
|
+
this.group = new Mt(), this.uid = ah("viewComponent");
|
|
29298
29294
|
}
|
|
29299
29295
|
return n.prototype.init = function(e, t) {
|
|
29300
29296
|
}, n.prototype.render = function(e, t, r, i) {
|
|
@@ -29322,7 +29318,7 @@ var xR = se(), g8 = hh(), be = (
|
|
|
29322
29318
|
/** @class */
|
|
29323
29319
|
function() {
|
|
29324
29320
|
function n() {
|
|
29325
|
-
this.group = new
|
|
29321
|
+
this.group = new Mt(), this.uid = ah("viewChart"), this.renderTask = Ef({
|
|
29326
29322
|
plan: y8,
|
|
29327
29323
|
reset: m8
|
|
29328
29324
|
}), this.renderTask.context = {
|
|
@@ -29537,7 +29533,7 @@ function T8(n, e) {
|
|
|
29537
29533
|
lineWidth: 5,
|
|
29538
29534
|
zlevel: 0
|
|
29539
29535
|
});
|
|
29540
|
-
var t = new
|
|
29536
|
+
var t = new Mt(), r = new oe({
|
|
29541
29537
|
style: {
|
|
29542
29538
|
fill: e.maskColor
|
|
29543
29539
|
},
|
|
@@ -30356,7 +30352,7 @@ function ch(n) {
|
|
|
30356
30352
|
}
|
|
30357
30353
|
function bl(n, e) {
|
|
30358
30354
|
if (n != null)
|
|
30359
|
-
return J(n) || (n = [n, n]), [st(n[0], e[0]) || 0, st(
|
|
30355
|
+
return J(n) || (n = [n, n]), [st(n[0], e[0]) || 0, st(Lt(n[1], n[0]), e[1]) || 0];
|
|
30360
30356
|
}
|
|
30361
30357
|
function Hs(n) {
|
|
30362
30358
|
return isFinite(n);
|
|
@@ -30681,8 +30677,8 @@ function Hu(n, e) {
|
|
|
30681
30677
|
}
|
|
30682
30678
|
L += y[P], ++D, ++P, P === y.length && (P = 0);
|
|
30683
30679
|
}
|
|
30684
|
-
function nt(tt, ft,
|
|
30685
|
-
var B = i ? 1 : t, j = hr(Y, tt * B, ft * B,
|
|
30680
|
+
function nt(tt, ft, q, dt, Y) {
|
|
30681
|
+
var B = i ? 1 : t, j = hr(Y, tt * B, ft * B, q * B, dt * B, o.color, o.symbolKeepAspect);
|
|
30686
30682
|
if (i) {
|
|
30687
30683
|
var it = r.painter.renderOneToVNode(j);
|
|
30688
30684
|
it && w.children.push(it);
|
|
@@ -30847,10 +30843,10 @@ var Xl, ym, bv, no, mm, _m, xm, Ph, Oh, Ib, Eb, Sm, Mb, Iv, Db, Gn, Lb, b9 = (
|
|
|
30847
30843
|
/* eslint-disable-next-line */
|
|
30848
30844
|
Qt.hasGlobalWindow ? window : global
|
|
30849
30845
|
);
|
|
30850
|
-
u && (o =
|
|
30846
|
+
u && (o = Lt(u.__ECHARTS__DEFAULT__RENDERER__, o), s = Lt(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = Lt(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l));
|
|
30851
30847
|
}
|
|
30852
30848
|
i.ssr && mY(function(v) {
|
|
30853
|
-
var d =
|
|
30849
|
+
var d = Dt(v), p = d.dataIndex;
|
|
30854
30850
|
if (p != null) {
|
|
30855
30851
|
var g = _t();
|
|
30856
30852
|
return g.set("series_index", d.seriesIndex), g.set("data_index", p), d.ssrType && g.set("ssr_type", d.ssrType), g;
|
|
@@ -30862,11 +30858,11 @@ var Xl, ym, bv, no, mm, _m, xm, Ph, Oh, Ib, Eb, Sm, Mb, Iv, Db, Gn, Lb, b9 = (
|
|
|
30862
30858
|
width: i.width,
|
|
30863
30859
|
height: i.height,
|
|
30864
30860
|
ssr: i.ssr,
|
|
30865
|
-
useDirtyRect:
|
|
30866
|
-
useCoarsePointer:
|
|
30861
|
+
useDirtyRect: Lt(i.useDirtyRect, l),
|
|
30862
|
+
useCoarsePointer: Lt(i.useCoarsePointer, s),
|
|
30867
30863
|
pointerSize: i.pointerSize
|
|
30868
30864
|
});
|
|
30869
|
-
a._ssr = i.ssr, a._throttledZrFlush = kS(pt(h.flush, h), 17), r =
|
|
30865
|
+
a._ssr = i.ssr, a._throttledZrFlush = kS(pt(h.flush, h), 17), r = It(r), r && qO(r, !0), a._theme = r, a._locale = YZ(i.locale || EO), a._coordSysMgr = new uh();
|
|
30870
30866
|
var f = a._api = Db(a);
|
|
30871
30867
|
function c(v, d) {
|
|
30872
30868
|
return v.__prio - d.__prio;
|
|
@@ -31005,7 +31001,7 @@ var Xl, ym, bv, no, mm, _m, xm, Ph, Oh, Ib, Eb, Sm, Mb, Iv, Db, Gn, Lb, b9 = (
|
|
|
31005
31001
|
var l = s, u = s, h = -s, f = -s, c = [], v = t && t.pixelRatio || this.getDevicePixelRatio();
|
|
31006
31002
|
E(Pb, function(_, x) {
|
|
31007
31003
|
if (_.group === i) {
|
|
31008
|
-
var S = r ? _.getZr().painter.getSvgDom().innerHTML : _.renderToCanvas(
|
|
31004
|
+
var S = r ? _.getZr().painter.getSvgDom().innerHTML : _.renderToCanvas(It(t)), w = _.getDom().getBoundingClientRect();
|
|
31009
31005
|
l = a(w.left, l), u = a(w.top, u), h = o(w.right, h), f = o(w.bottom, f), c.push({
|
|
31010
31006
|
dom: S,
|
|
31011
31007
|
left: w.left,
|
|
@@ -31087,7 +31083,7 @@ var Xl, ym, bv, no, mm, _m, xm, Ph, Oh, Ib, Eb, Sm, Mb, Iv, Db, Gn, Lb, b9 = (
|
|
|
31087
31083
|
var i = function(a) {
|
|
31088
31084
|
var o = t.getModel(), s = a.target, l, u = r === "globalout";
|
|
31089
31085
|
if (u ? l = {} : s && Vs(s, function(d) {
|
|
31090
|
-
var p =
|
|
31086
|
+
var p = Dt(d);
|
|
31091
31087
|
if (p && p.dataIndex != null) {
|
|
31092
31088
|
var g = p.dataModel || o.getSeriesByIndex(p.seriesIndex);
|
|
31093
31089
|
return l = g && g.getDataParams(p.dataIndex, p.dataType, s) || {}, !0;
|
|
@@ -31436,10 +31432,10 @@ var Xl, ym, bv, no, mm, _m, xm, Ph, Oh, Ib, Eb, Sm, Mb, Iv, Db, Gn, Lb, b9 = (
|
|
|
31436
31432
|
p && (UU(p, v, c._api), Gn(c));
|
|
31437
31433
|
}).on("click", function(v) {
|
|
31438
31434
|
var d = v.target, p = Vs(d, function(m) {
|
|
31439
|
-
return
|
|
31435
|
+
return Dt(m).dataIndex != null;
|
|
31440
31436
|
}, !0);
|
|
31441
31437
|
if (p) {
|
|
31442
|
-
var g = p.selected ? "unselect" : "select", y =
|
|
31438
|
+
var g = p.selected ? "unselect" : "select", y = Dt(p);
|
|
31443
31439
|
c._api.dispatchAction({
|
|
31444
31440
|
type: g,
|
|
31445
31441
|
dataType: y.dataType,
|
|
@@ -31944,7 +31940,7 @@ var yd = (
|
|
|
31944
31940
|
}, n.prototype._updateDimOmitted = function(e) {
|
|
31945
31941
|
this._dimOmitted = e, e && (this._dimNameMap || (this._dimNameMap = qR(this.source)));
|
|
31946
31942
|
}, n.prototype.getSourceDimensionIndex = function(e) {
|
|
31947
|
-
return
|
|
31943
|
+
return Lt(this._dimNameMap.get(e), -1);
|
|
31948
31944
|
}, n.prototype.getSourceDimension = function(e) {
|
|
31949
31945
|
var t = this.source.dimensionsDefine;
|
|
31950
31946
|
if (t)
|
|
@@ -32314,7 +32310,7 @@ var Nh = wt, io = Q, H9 = typeof Int32Array > "u" ? Array : Int32Array, W9 = "e\
|
|
|
32314
32310
|
E(Y9.concat(t.__wrappedMethods || []), function(r) {
|
|
32315
32311
|
t.hasOwnProperty(r) && (e[r] = t[r]);
|
|
32316
32312
|
}), e.__wrappedMethods = t.__wrappedMethods, E(U9, function(r) {
|
|
32317
|
-
e[r] =
|
|
32313
|
+
e[r] = It(t[r]);
|
|
32318
32314
|
}), e._calculationInfo = X({}, t._calculationInfo);
|
|
32319
32315
|
}, Tm = function(e, t) {
|
|
32320
32316
|
var r = e._nameList, i = e._idList, a = e._nameDimIdx, o = e._idDimIdx, s = r[t], l = i[t];
|
|
@@ -34257,8 +34253,8 @@ function jS(n, e, t) {
|
|
|
34257
34253
|
for (var a = e.normal, o = a.get("show"), s = i.ignore, l = 0; l < Zf.length; l++) {
|
|
34258
34254
|
var u = Zf[l], h = e[u], f = u === "normal";
|
|
34259
34255
|
if (h) {
|
|
34260
|
-
var c = h.get("show"), v = f ? s :
|
|
34261
|
-
if (v || !
|
|
34256
|
+
var c = h.get("show"), v = f ? s : Lt(i.states[u] && i.states[u].ignore, s);
|
|
34257
|
+
if (v || !Lt(c, o)) {
|
|
34262
34258
|
var d = f ? r : r && r.states[u];
|
|
34263
34259
|
d && (d.ignore = !0), r && Em(r, !0, u, h);
|
|
34264
34260
|
continue;
|
|
@@ -34497,7 +34493,7 @@ var Rv = ["x", "y", "rotation"], a6 = (
|
|
|
34497
34493
|
(xt(i) || ne(i).length) && e.group.traverse(function(a) {
|
|
34498
34494
|
if (a.ignore)
|
|
34499
34495
|
return !0;
|
|
34500
|
-
var o = a.getTextContent(), s =
|
|
34496
|
+
var o = a.getTextContent(), s = Dt(a);
|
|
34501
34497
|
o && !o.disableLabelLayout && t._addLabel(s.dataIndex, s.dataType, r, o, i);
|
|
34502
34498
|
});
|
|
34503
34499
|
}, n.prototype.updateLayoutConfig = function(e) {
|
|
@@ -34568,7 +34564,7 @@ var Rv = ["x", "y", "rotation"], a6 = (
|
|
|
34568
34564
|
});
|
|
34569
34565
|
});
|
|
34570
34566
|
}, n.prototype._updateLabelLine = function(e, t) {
|
|
34571
|
-
var r = e.getTextContent(), i =
|
|
34567
|
+
var r = e.getTextContent(), i = Dt(e), a = i.dataIndex;
|
|
34572
34568
|
if (r && a != null) {
|
|
34573
34569
|
var o = t.getData(i.dataType), s = o.getItemModel(a), l = {}, u = o.getItemVisual(a, "style");
|
|
34574
34570
|
if (u) {
|
|
@@ -34581,7 +34577,7 @@ var Rv = ["x", "y", "rotation"], a6 = (
|
|
|
34581
34577
|
}, n.prototype._animateLabels = function(e, t) {
|
|
34582
34578
|
var r = e.getTextContent(), i = e.getTextGuideLine();
|
|
34583
34579
|
if (r && (e.forceLabelAnimation || !r.ignore && !r.invisible && !e.disableLabelAnimation && !bu(e))) {
|
|
34584
|
-
var a = Mm(r), o = a.oldLayout, s =
|
|
34580
|
+
var a = Mm(r), o = a.oldLayout, s = Dt(e), l = s.dataIndex, u = {
|
|
34585
34581
|
x: r.x,
|
|
34586
34582
|
y: r.y,
|
|
34587
34583
|
rotation: r.rotation
|
|
@@ -34591,7 +34587,7 @@ var Rv = ["x", "y", "rotation"], a6 = (
|
|
|
34591
34587
|
var c = e.prevStates;
|
|
34592
34588
|
c && (Zt(c, "select") >= 0 && r.attr(a.oldLayoutSelect), Zt(c, "emphasis") >= 0 && r.attr(a.oldLayoutEmphasis)), ve(r, u, t, l);
|
|
34593
34589
|
} else if (r.attr(u), !ih(r).valueAnimation) {
|
|
34594
|
-
var f =
|
|
34590
|
+
var f = Lt(r.style.opacity, 1);
|
|
34595
34591
|
r.style.opacity = 0, Fe(r, {
|
|
34596
34592
|
style: {
|
|
34597
34593
|
opacity: f
|
|
@@ -34901,8 +34897,8 @@ function Ng(n, e, t, r) {
|
|
|
34901
34897
|
function p(m) {
|
|
34902
34898
|
var _ = m[1], x = _.length, S = {}, w = {}, A = {}, T = "animation-timing-function";
|
|
34903
34899
|
function C(nt, tt, ft) {
|
|
34904
|
-
for (var
|
|
34905
|
-
var B =
|
|
34900
|
+
for (var q = nt.getTracks(), dt = nt.getMaxTime(), Y = 0; Y < q.length; Y++) {
|
|
34901
|
+
var B = q[Y];
|
|
34906
34902
|
if (B.needsAnimate()) {
|
|
34907
34903
|
var j = B.keyframes, it = B.propName;
|
|
34908
34904
|
if (ft && (it = ft(it)), it)
|
|
@@ -34945,8 +34941,8 @@ function Ng(n, e, t, r) {
|
|
|
34945
34941
|
if (!r)
|
|
34946
34942
|
for (var b = 0; b < x; b++) {
|
|
34947
34943
|
var I = _[b], M = I.targetName;
|
|
34948
|
-
M === "style" && C(I, A, function(
|
|
34949
|
-
return S6[
|
|
34944
|
+
M === "style" && C(I, A, function(q) {
|
|
34945
|
+
return S6[q];
|
|
34950
34946
|
});
|
|
34951
34947
|
}
|
|
34952
34948
|
for (var G = ne(A), U = !0, Z, b = 1; b < G.length; b++) {
|
|
@@ -35157,7 +35153,7 @@ function VN(n, e, t, r) {
|
|
|
35157
35153
|
if (x2(i))
|
|
35158
35154
|
a = "linearGradient", o.x1 = i.x, o.y1 = i.y, o.x2 = i.x2, o.y2 = i.y2;
|
|
35159
35155
|
else if (S2(i))
|
|
35160
|
-
a = "radialGradient", o.cx =
|
|
35156
|
+
a = "radialGradient", o.cx = Lt(i.x, 0.5), o.cy = Lt(i.y, 0.5), o.r = Lt(i.r, 0.5);
|
|
35161
35157
|
else {
|
|
35162
35158
|
process.env.NODE_ENV !== "production" && Si("Illegal gradient type.");
|
|
35163
35159
|
return;
|
|
@@ -35194,7 +35190,7 @@ function HN(n, e, t, r) {
|
|
|
35194
35190
|
width: c,
|
|
35195
35191
|
height: v
|
|
35196
35192
|
}), o.width = c, o.height = v;
|
|
35197
|
-
} else i.svgElement && (f =
|
|
35193
|
+
} else i.svgElement && (f = It(i.svgElement), o.width = i.svgWidth, o.height = i.svgHeight);
|
|
35198
35194
|
if (f) {
|
|
35199
35195
|
var _, x;
|
|
35200
35196
|
l ? _ = x = 1 : u ? (x = 1, _ = o.width / a.width) : h ? (_ = 1, x = o.height / a.height) : o.patternUnits = "userSpaceOnUse", _ != null && !isNaN(_) && (o.width = _), x != null && !isNaN(x) && (o.height = x);
|
|
@@ -35367,11 +35363,11 @@ var F6 = 0, G6 = function() {
|
|
|
35367
35363
|
return Jb(r, i, o, e.useViewBox);
|
|
35368
35364
|
}, n.prototype.renderToString = function(e) {
|
|
35369
35365
|
return e = e || {}, QS(this.renderToVNode({
|
|
35370
|
-
animation:
|
|
35371
|
-
emphasis:
|
|
35366
|
+
animation: Lt(e.cssAnimation, !0),
|
|
35367
|
+
emphasis: Lt(e.cssEmphasis, !0),
|
|
35372
35368
|
willUpdate: !1,
|
|
35373
35369
|
compress: !0,
|
|
35374
|
-
useViewBox:
|
|
35370
|
+
useViewBox: Lt(e.useViewBox, !0)
|
|
35375
35371
|
}), { newline: !0 });
|
|
35376
35372
|
}, n.prototype.setBackgroundColor = function(e) {
|
|
35377
35373
|
this._backgroundColor = e;
|
|
@@ -35899,7 +35895,7 @@ var Z6 = (
|
|
|
35899
35895
|
useEncodeDefaulter: !0
|
|
35900
35896
|
});
|
|
35901
35897
|
}, e.prototype.getLegendIcon = function(t) {
|
|
35902
|
-
var r = new
|
|
35898
|
+
var r = new Mt(), i = hr("line", 0, t.itemHeight / 2, t.itemWidth, 0, t.lineStyle.stroke, !1);
|
|
35903
35899
|
r.add(i), i.setStyle(t.lineStyle);
|
|
35904
35900
|
var a = this.getData().getVisual("symbol"), o = this.getData().getVisual("symbolRotate"), s = a === "none" ? "circle" : a, l = t.itemHeight * 0.8, u = hr(s, (t.itemWidth - l) / 2, (t.itemHeight - l) / 2, l, l, t.itemStyle.fill);
|
|
35905
35901
|
r.add(u), u.setStyle(t.itemStyle);
|
|
@@ -36092,7 +36088,7 @@ var Mc = (
|
|
|
36092
36088
|
}, e.prototype.setSymbolScale = function(t) {
|
|
36093
36089
|
this.scaleX = this.scaleY = t;
|
|
36094
36090
|
}, e.prototype.fadeOut = function(t, r, i) {
|
|
36095
|
-
var a = this.childAt(0), o =
|
|
36091
|
+
var a = this.childAt(0), o = Dt(this).dataIndex, s = i && i.animation;
|
|
36096
36092
|
if (this.silent = a.silent = !0, i && i.fadeLabel) {
|
|
36097
36093
|
var l = a.getTextContent();
|
|
36098
36094
|
l && zo(l, {
|
|
@@ -36122,7 +36118,7 @@ var Mc = (
|
|
|
36122
36118
|
}, e.getSymbolSize = function(t, r) {
|
|
36123
36119
|
return ch(t.getItemVisual(r, "symbolSize"));
|
|
36124
36120
|
}, e;
|
|
36125
|
-
}(
|
|
36121
|
+
}(Mt)
|
|
36126
36122
|
);
|
|
36127
36123
|
function X6(n, e) {
|
|
36128
36124
|
this.parent.drift(n, e);
|
|
@@ -36153,7 +36149,7 @@ var Dc = (
|
|
|
36153
36149
|
/** @class */
|
|
36154
36150
|
function() {
|
|
36155
36151
|
function n(e) {
|
|
36156
|
-
this.group = new
|
|
36152
|
+
this.group = new Mt(), this._SymbolCtor = e || Mc;
|
|
36157
36153
|
}
|
|
36158
36154
|
return n.prototype.updateData = function(e, t) {
|
|
36159
36155
|
this._progressiveEls = null, t = fI(t);
|
|
@@ -36753,7 +36749,7 @@ var l7 = (
|
|
|
36753
36749
|
return n !== null && n.apply(this, arguments) || this;
|
|
36754
36750
|
}
|
|
36755
36751
|
return e.prototype.init = function() {
|
|
36756
|
-
var t = new
|
|
36752
|
+
var t = new Mt(), r = new Dc();
|
|
36757
36753
|
this.group.add(r.group), this._symbolDraw = r, this._lineGroup = t, this._changePolyState = pt(this._changePolyState, this);
|
|
36758
36754
|
}, e.prototype.render = function(t, r, i) {
|
|
36759
36755
|
var a = t.coordinateSystem, o = this.group, s = t.getData(), l = t.getModel("lineStyle"), u = t.getModel("areaStyle"), h = s.getLayout("points") || [], f = a.type === "polar", c = this._coordSys, v = this._symbolDraw, d = this._polyline, p = this._polygon, g = this._lineGroup, y = !r.ssr && t.get("animation"), m = !u.isEmpty(), _ = u.get("origin"), x = XN(a, s, _), S = m && $6(a, s, x), w = t.get("showSymbol"), A = t.get("connectNulls"), T = w && !f && r7(t, s, a), C = this._data;
|
|
@@ -36809,7 +36805,7 @@ var l7 = (
|
|
|
36809
36805
|
var k = d.getState("emphasis").style;
|
|
36810
36806
|
k.lineWidth = +d.style.lineWidth + 1;
|
|
36811
36807
|
}
|
|
36812
|
-
|
|
36808
|
+
Dt(d).seriesIndex = t.seriesIndex, He(d, O, R, N);
|
|
36813
36809
|
var z = gI(t.get("smooth")), F = t.get("smoothMonotone");
|
|
36814
36810
|
if (d.setShape({
|
|
36815
36811
|
smooth: z,
|
|
@@ -36827,14 +36823,14 @@ var l7 = (
|
|
|
36827
36823
|
stackedOnSmooth: U,
|
|
36828
36824
|
smoothMonotone: F,
|
|
36829
36825
|
connectNulls: A
|
|
36830
|
-
}), Nr(p, t, "areaStyle"),
|
|
36826
|
+
}), Nr(p, t, "areaStyle"), Dt(p).seriesIndex = t.seriesIndex, He(p, O, R, N);
|
|
36831
36827
|
}
|
|
36832
36828
|
var Z = this._changePolyState;
|
|
36833
36829
|
s.eachItemGraphicEl(function(rt) {
|
|
36834
36830
|
rt && (rt.onHoverStateChange = Z);
|
|
36835
36831
|
}), this._polyline.onHoverStateChange = Z, this._data = s, this._coordSys = a, this._stackedOnPoints = S, this._points = h, this._step = b, this._valueOrigin = _, t.get("triggerLineEvent") && (this.packEventData(t, d), p && this.packEventData(t, p));
|
|
36836
36832
|
}, e.prototype.packEventData = function(t, r) {
|
|
36837
|
-
|
|
36833
|
+
Dt(r).eventData = {
|
|
36838
36834
|
componentType: "series",
|
|
36839
36835
|
componentSubType: "line",
|
|
36840
36836
|
componentIndex: t.componentIndex,
|
|
@@ -37456,7 +37452,7 @@ var y7 = (
|
|
|
37456
37452
|
var M = l.getItemGraphicEl(I);
|
|
37457
37453
|
M && Xf(M, t, I);
|
|
37458
37454
|
}).execute();
|
|
37459
|
-
var C = this._backgroundGroup || (this._backgroundGroup = new
|
|
37455
|
+
var C = this._backgroundGroup || (this._backgroundGroup = new Mt());
|
|
37460
37456
|
C.removeAll();
|
|
37461
37457
|
for (var b = 0; b < x.length; ++b)
|
|
37462
37458
|
C.add(x[b]);
|
|
@@ -37544,7 +37540,7 @@ var y7 = (
|
|
|
37544
37540
|
}, e.prototype._clear = function(t) {
|
|
37545
37541
|
var r = this.group, i = this._data;
|
|
37546
37542
|
t && t.isAnimationEnabled() && i && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], i.eachItemGraphicEl(function(a) {
|
|
37547
|
-
Xf(a, t,
|
|
37543
|
+
Xf(a, t, Dt(a).dataIndex);
|
|
37548
37544
|
})) : r.removeAll(), this._data = null, this._isFirstFrame = !0;
|
|
37549
37545
|
}, e.prototype._removeBackground = function() {
|
|
37550
37546
|
this.group.remove(this._backgroundGroup), this._backgroundGroup = null;
|
|
@@ -37777,11 +37773,11 @@ function CI(n, e, t, r) {
|
|
|
37777
37773
|
ignoreCoarsePointer: !0,
|
|
37778
37774
|
z2: 1
|
|
37779
37775
|
});
|
|
37780
|
-
f.baseDimIdx = a, f.largeDataIndices = o, f.barWidth = s, e.add(f), f.useStyle(i.getVisual("style")), f.style.stroke = null,
|
|
37776
|
+
f.baseDimIdx = a, f.largeDataIndices = o, f.barWidth = s, e.add(f), f.useStyle(i.getVisual("style")), f.style.stroke = null, Dt(f).seriesIndex = n.seriesIndex, n.get("silent") || (f.on("mousedown", bI), f.on("mousemove", bI)), t && t.push(f);
|
|
37781
37777
|
}
|
|
37782
37778
|
var bI = kS(function(n) {
|
|
37783
37779
|
var e = this, t = T7(e, n.offsetX, n.offsetY);
|
|
37784
|
-
|
|
37780
|
+
Dt(e).dataIndex = t >= 0 ? t : null;
|
|
37785
37781
|
}, 30, !1);
|
|
37786
37782
|
function T7(n, e, t) {
|
|
37787
37783
|
for (var r = n.baseDimIdx, i = 1 - r, a = n.shape.points, o = n.largeDataIndices, s = [], l = [], u = n.barWidth, h = 0, f = a.length / 3; h < f; h++) {
|
|
@@ -38058,8 +38054,8 @@ function D7(n) {
|
|
|
38058
38054
|
else {
|
|
38059
38055
|
var tt = (nt ? (T.r + T.r0) / 2 * G : T.r * G) + r, ft = (nt ? (T.r + T.r0) / 2 * U : T.r * U) + i;
|
|
38060
38056
|
if (Z = tt + G * 3, rt = ft + U * 3, !nt) {
|
|
38061
|
-
var
|
|
38062
|
-
D === "edge" ? Z = G < 0 ? h + O : h + u - O : Z = Y + (G < 0 ? -P : P), rt = B, lt = [[tt, ft], [
|
|
38057
|
+
var q = tt + G * (k + l - T.r), dt = ft + U * (k + l - T.r), Y = q + (G < 0 ? -1 : 1) * z, B = dt;
|
|
38058
|
+
D === "edge" ? Z = G < 0 ? h + O : h + u - O : Z = Y + (G < 0 ? -P : P), rt = B, lt = [[tt, ft], [q, dt], [Y, B]];
|
|
38063
38059
|
}
|
|
38064
38060
|
ut = nt ? "center" : D === "edge" ? G > 0 ? "right" : "left" : G > 0 ? "left" : "right";
|
|
38065
38061
|
}
|
|
@@ -38566,7 +38562,7 @@ var F7 = (
|
|
|
38566
38562
|
/** @class */
|
|
38567
38563
|
function() {
|
|
38568
38564
|
function n() {
|
|
38569
|
-
this.group = new
|
|
38565
|
+
this.group = new Mt();
|
|
38570
38566
|
}
|
|
38571
38567
|
return n.prototype.updateData = function(e, t) {
|
|
38572
38568
|
this._clear();
|
|
@@ -38618,7 +38614,7 @@ var F7 = (
|
|
|
38618
38614
|
);
|
|
38619
38615
|
var s = t.getVisual("style"), l = s && s.fill;
|
|
38620
38616
|
l && e.setColor(l);
|
|
38621
|
-
var u =
|
|
38617
|
+
var u = Dt(e);
|
|
38622
38618
|
u.seriesIndex = i.seriesIndex, e.on("mousemove", function(h) {
|
|
38623
38619
|
u.dataIndex = null;
|
|
38624
38620
|
var f = e.hoverDataIdx;
|
|
@@ -39313,7 +39309,7 @@ var Co = Math.PI, rn = (
|
|
|
39313
39309
|
/** @class */
|
|
39314
39310
|
function() {
|
|
39315
39311
|
function n(e, t) {
|
|
39316
|
-
this.group = new
|
|
39312
|
+
this.group = new Mt(), this.opt = t, this.axisModel = e, bt(t, {
|
|
39317
39313
|
labelOffset: 0,
|
|
39318
39314
|
nameDirection: 1,
|
|
39319
39315
|
tickDirection: 1,
|
|
@@ -39323,7 +39319,7 @@ var Co = Math.PI, rn = (
|
|
|
39323
39319
|
return !0;
|
|
39324
39320
|
}
|
|
39325
39321
|
});
|
|
39326
|
-
var r = new
|
|
39322
|
+
var r = new Mt({
|
|
39327
39323
|
x: t.position[0],
|
|
39328
39324
|
y: t.position[1],
|
|
39329
39325
|
rotation: t.rotation
|
|
@@ -39457,7 +39453,7 @@ var Co = Math.PI, rn = (
|
|
|
39457
39453
|
itemName: i
|
|
39458
39454
|
}), _.__fullText = i, _.anid = "name", e.get("triggerEvent")) {
|
|
39459
39455
|
var x = rn.makeAxisEventDataBase(e);
|
|
39460
|
-
x.targetType = "axisName", x.name = i,
|
|
39456
|
+
x.targetType = "axisName", x.name = i, Dt(_).eventData = x;
|
|
39461
39457
|
}
|
|
39462
39458
|
r.add(_), _.updateTransform(), t.add(_), _.decomposeTransform();
|
|
39463
39459
|
}
|
|
@@ -39544,7 +39540,7 @@ function rK(n, e, t, r) {
|
|
|
39544
39540
|
var S = f[y];
|
|
39545
39541
|
wt(S) && S.textStyle && (x = new xe(S.textStyle, o, t.ecModel));
|
|
39546
39542
|
}
|
|
39547
|
-
var w = x.getTextColor() || t.get(["axisLine", "lineStyle", "color"]), A = i.dataToCoord(y), T = x.getShallow("align", !0) || h.textAlign, C =
|
|
39543
|
+
var w = x.getTextColor() || t.get(["axisLine", "lineStyle", "color"]), A = i.dataToCoord(y), T = x.getShallow("align", !0) || h.textAlign, C = Lt(x.getShallow("alignMinLabel", !0), T), b = Lt(x.getShallow("alignMaxLabel", !0), T), I = x.getShallow("verticalAlign", !0) || x.getShallow("baseline", !0) || h.textVerticalAlign, M = Lt(x.getShallow("verticalAlignMinLabel", !0), I), L = Lt(x.getShallow("verticalAlignMaxLabel", !0), I), P = new ue({
|
|
39548
39544
|
x: A,
|
|
39549
39545
|
y: r.labelOffset + r.labelDirection * s,
|
|
39550
39546
|
rotation: h.rotation,
|
|
@@ -39580,7 +39576,7 @@ function rK(n, e, t, r) {
|
|
|
39580
39576
|
}
|
|
39581
39577
|
}), d) {
|
|
39582
39578
|
var D = rn.makeAxisEventDataBase(t);
|
|
39583
|
-
D.targetType = "axisLabel", D.value = _, D.tickIndex = g, i.type === "category" && (D.dataIndex = y),
|
|
39579
|
+
D.targetType = "axisLabel", D.value = _, D.tickIndex = g, i.type === "category" && (D.dataIndex = y), Dt(P).eventData = D;
|
|
39584
39580
|
}
|
|
39585
39581
|
e.add(P), P.updateTransform(), c.push(P), n.add(P), P.decomposeTransform();
|
|
39586
39582
|
}), c;
|
|
@@ -39657,7 +39653,7 @@ function iK(n, e, t) {
|
|
|
39657
39653
|
function aK(n, e, t, r, i, a) {
|
|
39658
39654
|
var o = e.getModel("axisPointer"), s = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], l = {};
|
|
39659
39655
|
E(s, function(c) {
|
|
39660
|
-
l[c] =
|
|
39656
|
+
l[c] = It(o.get(c));
|
|
39661
39657
|
}), l.snap = n.type !== "category" && !!a, o.get("type") === "cross" && (l.type = "line");
|
|
39662
39658
|
var u = l.label || (l.label = {});
|
|
39663
39659
|
if (u.show == null && (u.show = !1), i === "cross") {
|
|
@@ -39804,7 +39800,7 @@ var hK = ["axisLine", "axisTickLabel", "axisName"], fK = ["splitArea", "splitLin
|
|
|
39804
39800
|
return e.prototype.render = function(t, r, i, a) {
|
|
39805
39801
|
this.group.removeAll();
|
|
39806
39802
|
var o = this._axisGroup;
|
|
39807
|
-
if (this._axisGroup = new
|
|
39803
|
+
if (this._axisGroup = new Mt(), this.group.add(this._axisGroup), !!t.get("show")) {
|
|
39808
39804
|
var s = t.getCoordSysModel(), l = x1(s, t), u = new rn(t, X({
|
|
39809
39805
|
handleAutoShown: function(f) {
|
|
39810
39806
|
for (var c = s.coordinateSystem.getCartesians(), v = 0; v < c.length; v++)
|
|
@@ -40020,7 +40016,7 @@ var mK = (
|
|
|
40020
40016
|
}
|
|
40021
40017
|
};
|
|
40022
40018
|
d.shape.points = f(v), p.shape.points = f(v), Fe(d, g, t, c), Fe(p, g, t, c);
|
|
40023
|
-
var y = new
|
|
40019
|
+
var y = new Mt(), m = new Mt();
|
|
40024
40020
|
y.add(p), y.add(d), y.add(m), h(p.shape.points, v, m, s, c, !0), s.setItemGraphicEl(c, y);
|
|
40025
40021
|
}
|
|
40026
40022
|
}).update(function(c, v) {
|
|
@@ -40062,7 +40058,7 @@ var mK = (
|
|
|
40062
40058
|
} else
|
|
40063
40059
|
T.useStyle(m), T.setColor(_), T.style.strokeNoScale = !0;
|
|
40064
40060
|
var b = T.ensureState("emphasis");
|
|
40065
|
-
b.style =
|
|
40061
|
+
b.style = It(A);
|
|
40066
40062
|
var I = s.getStore().get(s.getDimensionIndex(T.__dimIdx), v);
|
|
40067
40063
|
(I == null || isNaN(I)) && (I = ""), kr(T, wr(d), {
|
|
40068
40064
|
labelFetcher: s.hostModel,
|
|
@@ -40162,7 +40158,7 @@ var xK = (
|
|
|
40162
40158
|
d.color != null && (p = bt({
|
|
40163
40159
|
color: d.color
|
|
40164
40160
|
}, l));
|
|
40165
|
-
var g = Ft(
|
|
40161
|
+
var g = Ft(It(d), {
|
|
40166
40162
|
boundaryGap: t,
|
|
40167
40163
|
splitNumber: r,
|
|
40168
40164
|
scale: i,
|
|
@@ -40450,7 +40446,7 @@ var Nc = (
|
|
|
40450
40446
|
r._zr = t;
|
|
40451
40447
|
var i = pt(r._mousedownHandler, r), a = pt(r._mousemoveHandler, r), o = pt(r._mouseupHandler, r), s = pt(r._mousewheelHandler, r), l = pt(r._pinchHandler, r);
|
|
40452
40448
|
return r.enable = function(u, h) {
|
|
40453
|
-
this.disable(), this._opt = bt(
|
|
40449
|
+
this.disable(), this._opt = bt(It(h) || {}, {
|
|
40454
40450
|
zoomOnMouseWheel: !0,
|
|
40455
40451
|
moveOnMouseMove: !0,
|
|
40456
40452
|
// By default, wheel do not trigger move.
|
|
@@ -40603,7 +40599,7 @@ var Um, Sp = {
|
|
|
40603
40599
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
40604
40600
|
throw new Error("Illegal svg");
|
|
40605
40601
|
this._defsUsePending = [];
|
|
40606
|
-
var i = new
|
|
40602
|
+
var i = new Mt();
|
|
40607
40603
|
this._root = i;
|
|
40608
40604
|
var a = [], o = r.getAttribute("viewBox") || "", s = parseFloat(r.getAttribute("width") || t.width), l = parseFloat(r.getAttribute("height") || t.height);
|
|
40609
40605
|
isNaN(s) && (s = null), isNaN(l) && (l = null), wn(r, i, null, !0, !1);
|
|
@@ -40622,7 +40618,7 @@ var Um, Sp = {
|
|
|
40622
40618
|
}
|
|
40623
40619
|
if (h && s != null && l != null && (f = xk(h, { x: 0, y: 0, width: s, height: l }), !t.ignoreViewBox)) {
|
|
40624
40620
|
var v = i;
|
|
40625
|
-
i = new
|
|
40621
|
+
i = new Mt(), i.add(v), v.scaleX = v.scaleY = f.scale, v.x = f.x, v.y = f.y;
|
|
40626
40622
|
}
|
|
40627
40623
|
return !t.ignoreRootClip && s != null && l != null && i.setClipPath(new oe({
|
|
40628
40624
|
shape: { x: 0, y: 0, width: s, height: l }
|
|
@@ -40694,7 +40690,7 @@ var Um, Sp = {
|
|
|
40694
40690
|
}, n.internalField = function() {
|
|
40695
40691
|
Um = {
|
|
40696
40692
|
g: function(e, t) {
|
|
40697
|
-
var r = new
|
|
40693
|
+
var r = new Mt();
|
|
40698
40694
|
return Bn(t, r), wn(e, r, this._defsUsePending, !1, !1), r;
|
|
40699
40695
|
},
|
|
40700
40696
|
rect: function(e, t) {
|
|
@@ -40767,13 +40763,13 @@ var Um, Sp = {
|
|
|
40767
40763
|
text: function(e, t) {
|
|
40768
40764
|
var r = e.getAttribute("x") || "0", i = e.getAttribute("y") || "0", a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0";
|
|
40769
40765
|
this._textX = parseFloat(r) + parseFloat(a), this._textY = parseFloat(i) + parseFloat(o);
|
|
40770
|
-
var s = new
|
|
40766
|
+
var s = new Mt();
|
|
40771
40767
|
return Bn(t, s), wn(e, s, this._defsUsePending, !1, !0), s;
|
|
40772
40768
|
},
|
|
40773
40769
|
tspan: function(e, t) {
|
|
40774
40770
|
var r = e.getAttribute("x"), i = e.getAttribute("y");
|
|
40775
40771
|
r != null && (this._textX = parseFloat(r)), i != null && (this._textY = parseFloat(i));
|
|
40776
|
-
var a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0", s = new
|
|
40772
|
+
var a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0", s = new Mt();
|
|
40777
40773
|
return Bn(t, s), wn(e, s, this._defsUsePending, !1, !0), this._textX += parseFloat(a), this._textY += parseFloat(o), s;
|
|
40778
40774
|
},
|
|
40779
40775
|
path: function(e, t) {
|
|
@@ -41000,7 +40996,7 @@ var zK = _t([
|
|
|
41000
40996
|
throw new Error(`Invalid svg format
|
|
41001
40997
|
` + g.message);
|
|
41002
40998
|
}
|
|
41003
|
-
var i = new
|
|
40999
|
+
var i = new Mt();
|
|
41004
41000
|
i.add(r), i.isGeoSVGGraphicRoot = !0;
|
|
41005
41001
|
var a = t.width, o = t.height, s = t.viewBoxRect, l = this._boundingRect;
|
|
41006
41002
|
if (!l) {
|
|
@@ -41231,10 +41227,10 @@ var wk = (
|
|
|
41231
41227
|
/** @class */
|
|
41232
41228
|
function() {
|
|
41233
41229
|
function n(e) {
|
|
41234
|
-
var t = new
|
|
41230
|
+
var t = new Mt();
|
|
41235
41231
|
this.uid = ah("ec_map_draw"), this._controller = new Nc(e.getZr()), this._controllerHost = {
|
|
41236
41232
|
target: t
|
|
41237
|
-
}, this.group = t, t.add(this._regionsGroup = new
|
|
41233
|
+
}, this.group = t, t.add(this._regionsGroup = new Mt()), t.add(this._svgGroup = new Mt());
|
|
41238
41234
|
}
|
|
41239
41235
|
return n.prototype.draw = function(e, t, r, i, a) {
|
|
41240
41236
|
var o = e.mainType === "geo", s = e.getData && e.getData();
|
|
@@ -41278,7 +41274,7 @@ var wk = (
|
|
|
41278
41274
|
i.removeAll(), E(e.geo.regions, function(v) {
|
|
41279
41275
|
var d = v.name, p = t.get(d), g = r.get(d) || {}, y = g.dataIdx, m = g.regionModel;
|
|
41280
41276
|
if (!p) {
|
|
41281
|
-
p = t.set(d, new
|
|
41277
|
+
p = t.set(d, new Mt()), i.add(p), y = s ? s.indexOfName(d) : null, m = e.isGeo ? o.getRegionModel(d) : s ? s.getItemModel(y) : null;
|
|
41282
41278
|
var _ = m.get("silent", !0);
|
|
41283
41279
|
_ != null && (p.silent = _), r.set(d, {
|
|
41284
41280
|
dataIdx: y,
|
|
@@ -41452,7 +41448,7 @@ function tE(n, e, t, r, i, a, o) {
|
|
|
41452
41448
|
e.removeTextContent(), e.removeTextConfig(), e.disableLabelAnimation = null;
|
|
41453
41449
|
}
|
|
41454
41450
|
function eE(n, e, t, r, i, a) {
|
|
41455
|
-
n.data ? n.data.setItemGraphicEl(a, e) :
|
|
41451
|
+
n.data ? n.data.setItemGraphicEl(a, e) : Dt(e).eventData = {
|
|
41456
41452
|
componentType: "geo",
|
|
41457
41453
|
componentIndex: i.componentIndex,
|
|
41458
41454
|
geoIndex: i.componentIndex,
|
|
@@ -41868,7 +41864,7 @@ var oJ = {
|
|
|
41868
41864
|
}
|
|
41869
41865
|
else
|
|
41870
41866
|
c = s.boundingRect;
|
|
41871
|
-
return a.setBoundingRect(c.x, c.y, c.width, c.height), a.aspectScale = o ? 1 :
|
|
41867
|
+
return a.setBoundingRect(c.x, c.y, c.width, c.height), a.aspectScale = o ? 1 : Lt(i.aspectScale, f.aspectScale), a._invertLongitute = o ? !1 : f.invertLongitute, a;
|
|
41872
41868
|
}
|
|
41873
41869
|
return e.prototype._transformTo = function(t, r, i, a) {
|
|
41874
41870
|
var o = this.getBoundingRect(), s = this._invertLongitute;
|
|
@@ -42169,7 +42165,7 @@ var hJ = (
|
|
|
42169
42165
|
}, e.prototype._handleRegionClick = function(t) {
|
|
42170
42166
|
var r;
|
|
42171
42167
|
Vs(t.target, function(i) {
|
|
42172
|
-
return (r =
|
|
42168
|
+
return (r = Dt(i).eventData) != null;
|
|
42173
42169
|
}, !0), r && this._api.dispatchAction({
|
|
42174
42170
|
type: "geoToggleSelect",
|
|
42175
42171
|
geoId: this._model.id,
|
|
@@ -42178,7 +42174,7 @@ var hJ = (
|
|
|
42178
42174
|
}, e.prototype.updateSelectStatus = function(t, r, i) {
|
|
42179
42175
|
var a = this;
|
|
42180
42176
|
this._mapDraw.group.traverse(function(o) {
|
|
42181
|
-
var s =
|
|
42177
|
+
var s = Dt(o).eventData;
|
|
42182
42178
|
if (s)
|
|
42183
42179
|
return a._model.isSelected(s.name) ? i.enterSelect(o) : i.leaveSelect(o), !0;
|
|
42184
42180
|
});
|
|
@@ -42390,7 +42386,7 @@ var wJ = (
|
|
|
42390
42386
|
H(e, n);
|
|
42391
42387
|
function e() {
|
|
42392
42388
|
var t = n !== null && n.apply(this, arguments) || this;
|
|
42393
|
-
return t.type = e.type, t._mainGroup = new
|
|
42389
|
+
return t.type = e.type, t._mainGroup = new Mt(), t;
|
|
42394
42390
|
}
|
|
42395
42391
|
return e.prototype.init = function(t, r) {
|
|
42396
42392
|
this._controller = new Nc(r.getZr()), this._controllerHost = {
|
|
@@ -42517,7 +42513,7 @@ function cE(n, e, t, r, i) {
|
|
|
42517
42513
|
}), I.setStyle("verticalAlign", "middle"));
|
|
42518
42514
|
}
|
|
42519
42515
|
var M = s.get(["emphasis", "focus"]), L = M === "relative" ? Vf(o.getAncestorsIndices(), o.getDescendantIndices()) : M === "ancestor" ? o.getAncestorsIndices() : M === "descendant" ? o.getDescendantIndices() : null;
|
|
42520
|
-
L && (
|
|
42516
|
+
L && (Dt(t).focus = L), CJ(i, o, h, t, d, v, p, r), t.__edge && (t.onHoverStateChange = function(P) {
|
|
42521
42517
|
if (P !== "blur") {
|
|
42522
42518
|
var D = o.parentNode && n.getItemGraphicEl(o.parentNode.dataIndex);
|
|
42523
42519
|
D && D.hoverState === xc || qd(t.__edge, P);
|
|
@@ -43316,7 +43312,7 @@ var YJ = 8, gE = 8, Km = 5, UJ = (
|
|
|
43316
43312
|
/** @class */
|
|
43317
43313
|
function() {
|
|
43318
43314
|
function n(e) {
|
|
43319
|
-
this.group = new
|
|
43315
|
+
this.group = new Mt(), e.add(this.group);
|
|
43320
43316
|
}
|
|
43321
43317
|
return n.prototype.render = function(e, t, r, i) {
|
|
43322
43318
|
var a = e.getModel("breadcrumb"), o = this.group;
|
|
@@ -43383,7 +43379,7 @@ function ZJ(n, e, t, r, i, a) {
|
|
|
43383
43379
|
return !a && o.splice(2, 0, [n + t + Km, e + r / 2]), !i && o.push([n, e + r / 2]), o;
|
|
43384
43380
|
}
|
|
43385
43381
|
function XJ(n, e, t) {
|
|
43386
|
-
|
|
43382
|
+
Dt(n).eventData = {
|
|
43387
43383
|
componentType: "series",
|
|
43388
43384
|
componentSubType: "treemap",
|
|
43389
43385
|
componentIndex: e.componentIndex,
|
|
@@ -43435,7 +43431,7 @@ var jJ = (
|
|
|
43435
43431
|
function KJ() {
|
|
43436
43432
|
return new jJ();
|
|
43437
43433
|
}
|
|
43438
|
-
var b1 =
|
|
43434
|
+
var b1 = Mt, yE = oe, mE = 3, _E = "label", xE = "upperLabel", JJ = rh * 10, QJ = rh * 2, qJ = rh * 3, As = cl([
|
|
43439
43435
|
["fill", "color"],
|
|
43440
43436
|
// `borderColor` and `borderWidth` has been occupied,
|
|
43441
43437
|
// so use `stroke` to indicate the stroke of the rect.
|
|
@@ -43569,7 +43565,7 @@ var b1 = Dt, yE = oe, mE = 3, _E = "label", xE = "upperLabel", JJ = rh * 10, QJ
|
|
|
43569
43565
|
}), E(this._storage, function(f, c) {
|
|
43570
43566
|
E(f, function(v, d) {
|
|
43571
43567
|
var p = r.lastsForAnimation[c][d], g = {};
|
|
43572
|
-
p && (v instanceof
|
|
43568
|
+
p && (v instanceof Mt ? p.oldX != null && (g.x = v.x, g.y = v.y, v.x = p.oldX, v.y = p.oldY) : (p.oldShape && (g.shape = X({}, v.shape), v.setShape(p.oldShape)), p.fadein ? (v.setStyle("opacity", 0), g.style = {
|
|
43573
43569
|
opacity: 1
|
|
43574
43570
|
}) : v.style.opacity !== 1 && (g.style = {
|
|
43575
43571
|
opacity: 1
|
|
@@ -43748,8 +43744,8 @@ function tQ(n, e, t, r, i, a, o, s, l, u) {
|
|
|
43748
43744
|
}
|
|
43749
43745
|
return I;
|
|
43750
43746
|
function z(nt, tt, ft) {
|
|
43751
|
-
var
|
|
43752
|
-
if (
|
|
43747
|
+
var q = Dt(tt);
|
|
43748
|
+
if (q.dataIndex = o.dataIndex, q.seriesIndex = n.seriesIndex, tt.setShape({
|
|
43753
43749
|
x: 0,
|
|
43754
43750
|
y: 0,
|
|
43755
43751
|
width: v,
|
|
@@ -43787,13 +43783,13 @@ function tQ(n, e, t, r, i, a, o, s, l, u) {
|
|
|
43787
43783
|
nt.add(tt);
|
|
43788
43784
|
}
|
|
43789
43785
|
function F(nt, tt) {
|
|
43790
|
-
var ft =
|
|
43786
|
+
var ft = Dt(tt);
|
|
43791
43787
|
ft.dataIndex = o.dataIndex, ft.seriesIndex = n.seriesIndex;
|
|
43792
|
-
var
|
|
43788
|
+
var q = Math.max(v - 2 * p, 0), dt = Math.max(d - 2 * p, 0);
|
|
43793
43789
|
if (tt.culling = !0, tt.setShape({
|
|
43794
43790
|
x: p,
|
|
43795
43791
|
y: p,
|
|
43796
|
-
width:
|
|
43792
|
+
width: q,
|
|
43797
43793
|
height: dt,
|
|
43798
43794
|
r: b
|
|
43799
43795
|
}), g)
|
|
@@ -43810,9 +43806,9 @@ function tQ(n, e, t, r, i, a, o, s, l, u) {
|
|
|
43810
43806
|
function G(nt) {
|
|
43811
43807
|
!nt.invisible && a.push(nt);
|
|
43812
43808
|
}
|
|
43813
|
-
function U(nt, tt, ft,
|
|
43814
|
-
var dt = c.getModel(
|
|
43815
|
-
kr(nt, wr(c,
|
|
43809
|
+
function U(nt, tt, ft, q) {
|
|
43810
|
+
var dt = c.getModel(q ? xE : _E), Y = dr(c.get("name"), null), B = dt.getShallow("show");
|
|
43811
|
+
kr(nt, wr(c, q ? xE : _E), {
|
|
43816
43812
|
defaultText: B ? Y : null,
|
|
43817
43813
|
inheritColor: tt,
|
|
43818
43814
|
defaultOpacity: ft,
|
|
@@ -43822,38 +43818,38 @@ function tQ(n, e, t, r, i, a, o, s, l, u) {
|
|
|
43822
43818
|
var j = nt.getTextContent();
|
|
43823
43819
|
if (j) {
|
|
43824
43820
|
var it = j.style, at = $x(it.padding || 0);
|
|
43825
|
-
|
|
43826
|
-
layoutRect:
|
|
43821
|
+
q && (nt.setTextConfig({
|
|
43822
|
+
layoutRect: q
|
|
43827
43823
|
}), j.disableLabelLayout = !0), j.beforeUpdate = function() {
|
|
43828
|
-
var zt = Math.max((
|
|
43824
|
+
var zt = Math.max((q ? q.width : nt.shape.width) - at[1] - at[3], 0), Se = Math.max((q ? q.height : nt.shape.height) - at[0] - at[2], 0);
|
|
43829
43825
|
(it.width !== zt || it.height !== Se) && j.setStyle({
|
|
43830
43826
|
width: zt,
|
|
43831
43827
|
height: Se
|
|
43832
43828
|
});
|
|
43833
|
-
}, it.truncateMinChar = 2, it.lineOverflow = "truncate", Z(it,
|
|
43829
|
+
}, it.truncateMinChar = 2, it.lineOverflow = "truncate", Z(it, q, h);
|
|
43834
43830
|
var Tt = j.getState("emphasis");
|
|
43835
|
-
Z(Tt ? Tt.style : null,
|
|
43831
|
+
Z(Tt ? Tt.style : null, q, h);
|
|
43836
43832
|
}
|
|
43837
43833
|
}
|
|
43838
43834
|
function Z(nt, tt, ft) {
|
|
43839
|
-
var
|
|
43840
|
-
if (!tt && ft.isLeafRoot &&
|
|
43835
|
+
var q = nt ? nt.text : null;
|
|
43836
|
+
if (!tt && ft.isLeafRoot && q != null) {
|
|
43841
43837
|
var dt = n.get("drillDownIcon", !0);
|
|
43842
|
-
nt.text = dt ? dt + " " +
|
|
43838
|
+
nt.text = dt ? dt + " " + q : q;
|
|
43843
43839
|
}
|
|
43844
43840
|
}
|
|
43845
|
-
function rt(nt, tt, ft,
|
|
43841
|
+
function rt(nt, tt, ft, q) {
|
|
43846
43842
|
var dt = m != null && t[nt][m], Y = i[nt];
|
|
43847
|
-
return dt ? (t[nt][m] = null, lt(Y, dt)) : g || (dt = new tt(), dt instanceof ri && (dt.z2 = eQ(ft,
|
|
43843
|
+
return dt ? (t[nt][m] = null, lt(Y, dt)) : g || (dt = new tt(), dt instanceof ri && (dt.z2 = eQ(ft, q)), ut(Y, dt)), e[nt][y] = dt;
|
|
43848
43844
|
}
|
|
43849
43845
|
function lt(nt, tt) {
|
|
43850
43846
|
var ft = nt[y] = {};
|
|
43851
43847
|
tt instanceof b1 ? (ft.oldX = tt.x, ft.oldY = tt.y) : ft.oldShape = X({}, tt.shape);
|
|
43852
43848
|
}
|
|
43853
43849
|
function ut(nt, tt) {
|
|
43854
|
-
var ft = nt[y] = {},
|
|
43855
|
-
if (
|
|
43856
|
-
var Y = 0, B = 0, j = i.background[
|
|
43850
|
+
var ft = nt[y] = {}, q = o.parentNode, dt = tt instanceof Mt;
|
|
43851
|
+
if (q && (!r || r.direction === "drillDown")) {
|
|
43852
|
+
var Y = 0, B = 0, j = i.background[q.getRawIndex()];
|
|
43857
43853
|
!r && j && j.oldShape && (Y = j.oldShape.width, B = j.oldShape.height), dt ? (ft.oldX = 0, ft.oldY = B) : ft.oldShape = {
|
|
43858
43854
|
x: Y,
|
|
43859
43855
|
y: B,
|
|
@@ -43871,7 +43867,7 @@ var oc = E, rQ = wt, Tp = -1, Sr = (
|
|
|
43871
43867
|
/** @class */
|
|
43872
43868
|
function() {
|
|
43873
43869
|
function n(e) {
|
|
43874
|
-
var t = e.mappingMethod, r = e.type, i = this.option =
|
|
43870
|
+
var t = e.mappingMethod, r = e.type, i = this.option = It(e);
|
|
43875
43871
|
this.type = r, this.mappingMethod = t, this._normalizeData = aQ[t];
|
|
43876
43872
|
var a = n.visualHandlers[r];
|
|
43877
43873
|
this.applyVisual = a.applyVisual, this.getColorMapper = a.getColorMapper, this._normalizedToVisual = a._normalizedToVisual[t], t === "piecewise" ? (Jm(i), nQ(i)) : t === "category" ? i.categories ? iQ(i) : Jm(i, !0) : (At(t !== "linear" || i.dataExtent), Jm(i));
|
|
@@ -45056,12 +45052,12 @@ var gw = (
|
|
|
45056
45052
|
});
|
|
45057
45053
|
}
|
|
45058
45054
|
}, e;
|
|
45059
|
-
}(
|
|
45055
|
+
}(Mt)
|
|
45060
45056
|
), yw = (
|
|
45061
45057
|
/** @class */
|
|
45062
45058
|
function() {
|
|
45063
45059
|
function n(e) {
|
|
45064
|
-
this.group = new
|
|
45060
|
+
this.group = new Mt(), this._LineCtor = e || gw;
|
|
45065
45061
|
}
|
|
45066
45062
|
return n.prototype.updateData = function(e) {
|
|
45067
45063
|
var t = this;
|
|
@@ -45245,11 +45241,11 @@ var VQ = (
|
|
|
45245
45241
|
v && v.setUnfixed(x);
|
|
45246
45242
|
}), S.setDraggable(A, !!w.get("cursor"));
|
|
45247
45243
|
var T = w.get(["emphasis", "focus"]);
|
|
45248
|
-
T === "adjacency" && (
|
|
45244
|
+
T === "adjacency" && (Dt(S).focus = _.getAdjacentDataIndices());
|
|
45249
45245
|
}
|
|
45250
45246
|
}), f.graph.eachEdge(function(_) {
|
|
45251
45247
|
var x = _.getGraphicEl(), S = _.getModel().get(["emphasis", "focus"]);
|
|
45252
|
-
x && S === "adjacency" && (
|
|
45248
|
+
x && S === "adjacency" && (Dt(x).focus = {
|
|
45253
45249
|
edge: [_.dataIndex],
|
|
45254
45250
|
node: [_.node1.dataIndex, _.node2.dataIndex]
|
|
45255
45251
|
});
|
|
@@ -45984,7 +45980,7 @@ var KQ = (
|
|
|
45984
45980
|
h.z2 = i.get("showAbove") ? 1 : 0, h.setStyle(i.getModel("itemStyle").getItemStyle()), this.group.add(h);
|
|
45985
45981
|
}
|
|
45986
45982
|
}, e.prototype._renderTitleAndDetail = function(t, r, i, a, o) {
|
|
45987
|
-
var s = this, l = t.getData(), u = l.mapDimension("value"), h = +t.get("min"), f = +t.get("max"), c = new
|
|
45983
|
+
var s = this, l = t.getData(), u = l.mapDimension("value"), h = +t.get("min"), f = +t.get("max"), c = new Mt(), v = [], d = [], p = t.isAnimationEnabled(), g = t.get(["pointer", "showAbove"]);
|
|
45988
45984
|
l.diff(this._data).add(function(y) {
|
|
45989
45985
|
v[y] = new ue({
|
|
45990
45986
|
silent: !0
|
|
@@ -45994,7 +45990,7 @@ var KQ = (
|
|
|
45994
45990
|
}).update(function(y, m) {
|
|
45995
45991
|
v[y] = s._titleEls[m], d[y] = s._detailEls[m];
|
|
45996
45992
|
}).execute(), l.each(function(y) {
|
|
45997
|
-
var m = l.getItemModel(y), _ = l.get(u, y), x = new
|
|
45993
|
+
var m = l.getItemModel(y), _ = l.get(u, y), x = new Mt(), S = a(_e(_, [h, f], [0, 1], !0)), w = m.getModel("title");
|
|
45998
45994
|
if (w.get("show")) {
|
|
45999
45995
|
var A = w.get("offsetCenter"), T = o.cx + st(A[0], o.r), C = o.cy + st(A[1], o.r), b = v[y];
|
|
46000
45996
|
b.attr({
|
|
@@ -46447,7 +46443,7 @@ var sq = 0.3, lq = (
|
|
|
46447
46443
|
H(e, n);
|
|
46448
46444
|
function e() {
|
|
46449
46445
|
var t = n !== null && n.apply(this, arguments) || this;
|
|
46450
|
-
return t.type = e.type, t._dataGroup = new
|
|
46446
|
+
return t.type = e.type, t._dataGroup = new Mt(), t._initialized = !1, t;
|
|
46451
46447
|
}
|
|
46452
46448
|
return e.prototype.init = function() {
|
|
46453
46449
|
this.group.add(this._dataGroup);
|
|
@@ -46917,7 +46913,7 @@ var c0 = E, jk = Math.min, Kk = Math.max, GE = Math.floor, Tq = Math.ceil, zE =
|
|
|
46917
46913
|
var r = this._axesLayout[t];
|
|
46918
46914
|
return Ai([e, 0], r.transform);
|
|
46919
46915
|
}, n.prototype.getAxisLayout = function(e) {
|
|
46920
|
-
return
|
|
46916
|
+
return It(this._axesLayout[e]);
|
|
46921
46917
|
}, n.prototype.getSlidedAxisExpandWindow = function(e) {
|
|
46922
46918
|
var t = this._makeLayoutInfo(), r = t.pixelDimIndex, i = t.axisExpandWindow.slice(), a = i[1] - i[0], o = [0, t.axisExpandWidth * (t.axisCount - 1)];
|
|
46923
46919
|
if (!this.containPoint(e))
|
|
@@ -46992,7 +46988,7 @@ var Dq = {
|
|
|
46992
46988
|
// So do not transfer decal directly.
|
|
46993
46989
|
])(this.getModel("areaSelectStyle"));
|
|
46994
46990
|
}, e.prototype.setActiveIntervals = function(t) {
|
|
46995
|
-
var r = this.activeIntervals =
|
|
46991
|
+
var r = this.activeIntervals = It(t);
|
|
46996
46992
|
if (r)
|
|
46997
46993
|
for (var i = r.length - 1; i >= 0; i--)
|
|
46998
46994
|
qn(r[i]);
|
|
@@ -47044,7 +47040,7 @@ var pl = !0, uc = Math.min, Zu = Math.max, Lq = Math.pow, Pq = 1e4, Oq = 6, Rq =
|
|
|
47044
47040
|
H(e, n);
|
|
47045
47041
|
function e(t) {
|
|
47046
47042
|
var r = n.call(this) || this;
|
|
47047
|
-
return r._track = [], r._covers = [], r._handlers = {}, process.env.NODE_ENV !== "production" && At(t), r._zr = t, r.group = new
|
|
47043
|
+
return r._track = [], r._covers = [], r._handlers = {}, process.env.NODE_ENV !== "production" && At(t), r._zr = t, r.group = new Mt(), r._uid = "brushController_" + Fq++, E(Yq, function(i, a) {
|
|
47048
47044
|
this._handlers[a] = pt(i, this);
|
|
47049
47045
|
}, r), r;
|
|
47050
47046
|
}
|
|
@@ -47054,7 +47050,7 @@ var pl = !0, uc = Math.min, Zu = Math.max, Lq = Math.pow, Pq = 1e4, Oq = 6, Rq =
|
|
|
47054
47050
|
var r = this._zr;
|
|
47055
47051
|
this._enableGlobalPan || IK(r, BE, this._uid), E(this._handlers, function(i, a) {
|
|
47056
47052
|
r.on(a, i);
|
|
47057
|
-
}), this._brushType = t.brushType, this._brushOption = Ft(
|
|
47053
|
+
}), this._brushType = t.brushType, this._brushOption = Ft(It(VE), t, !0);
|
|
47058
47054
|
}, e.prototype._doDisableBrush = function() {
|
|
47059
47055
|
var t = this._zr;
|
|
47060
47056
|
EK(t, BE, this._uid), E(this._handlers, function(r, i) {
|
|
@@ -47064,7 +47060,7 @@ var pl = !0, uc = Math.min, Zu = Math.max, Lq = Math.pow, Pq = 1e4, Oq = 6, Rq =
|
|
|
47064
47060
|
if (t && t.length) {
|
|
47065
47061
|
var r = this._panels = {};
|
|
47066
47062
|
E(t, function(i) {
|
|
47067
|
-
r[i.panelId] =
|
|
47063
|
+
r[i.panelId] = It(i);
|
|
47068
47064
|
});
|
|
47069
47065
|
} else
|
|
47070
47066
|
this._panels = null;
|
|
@@ -47081,7 +47077,7 @@ var pl = !0, uc = Math.min, Zu = Math.max, Lq = Math.pow, Pq = 1e4, Oq = 6, Rq =
|
|
|
47081
47077
|
}), this._transform = r.getLocalTransform(), this;
|
|
47082
47078
|
}, e.prototype.updateCovers = function(t) {
|
|
47083
47079
|
process.env.NODE_ENV !== "production" && At(this._mounted), t = Q(t, function(c) {
|
|
47084
|
-
return Ft(
|
|
47080
|
+
return Ft(It(VE), c, !0);
|
|
47085
47081
|
});
|
|
47086
47082
|
var r = "\0-brush-index-", i = this._covers, a = this._covers = [], o = this, s = this._creatingCover;
|
|
47087
47083
|
return new za(i, t, u, l).add(h).update(h).remove(f).execute(), this;
|
|
@@ -47159,7 +47155,7 @@ function O1(n) {
|
|
|
47159
47155
|
}
|
|
47160
47156
|
function gl(n, e) {
|
|
47161
47157
|
var t = Q(n._covers, function(r) {
|
|
47162
|
-
var i = r.__brushOption, a =
|
|
47158
|
+
var i = r.__brushOption, a = It(i.range);
|
|
47163
47159
|
return {
|
|
47164
47160
|
brushType: i.brushType,
|
|
47165
47161
|
panelId: i.panelId,
|
|
@@ -47184,7 +47180,7 @@ function eF(n) {
|
|
|
47184
47180
|
return e < 0 && (e = 0), [n[0], n[e]];
|
|
47185
47181
|
}
|
|
47186
47182
|
function rF(n, e, t, r) {
|
|
47187
|
-
var i = new
|
|
47183
|
+
var i = new Mt();
|
|
47188
47184
|
return i.add(new oe({
|
|
47189
47185
|
name: "main",
|
|
47190
47186
|
style: ww(t),
|
|
@@ -47290,7 +47286,7 @@ function aF(n, e, t) {
|
|
|
47290
47286
|
}
|
|
47291
47287
|
function Aw(n, e, t) {
|
|
47292
47288
|
var r = tF(n, e);
|
|
47293
|
-
return r && r !== pl ? r.clipPath(t, n._transform) :
|
|
47289
|
+
return r && r !== pl ? r.clipPath(t, n._transform) : It(t);
|
|
47294
47290
|
}
|
|
47295
47291
|
function Hq(n) {
|
|
47296
47292
|
var e = uc(n[0][0], n[1][0]), t = uc(n[0][1], n[1][1]), r = Zu(n[0][0], n[1][0]), i = Zu(n[0][1], n[1][1]);
|
|
@@ -47328,7 +47324,7 @@ function oF(n, e, t, r) {
|
|
|
47328
47324
|
if (n._track.push(t.slice()), Gq(n) || i) {
|
|
47329
47325
|
if (a && !i) {
|
|
47330
47326
|
o.brushMode === "single" && O1(n);
|
|
47331
|
-
var l =
|
|
47327
|
+
var l = It(o);
|
|
47332
47328
|
l.brushType = WE(l.brushType, a), l.panelId = a === pl ? null : a.panelId, i = n._creatingCover = Jk(n, l), n._covers.push(i);
|
|
47333
47329
|
}
|
|
47334
47330
|
if (i) {
|
|
@@ -47406,7 +47402,7 @@ var Bg = {
|
|
|
47406
47402
|
},
|
|
47407
47403
|
polygon: {
|
|
47408
47404
|
createCover: function(n, e) {
|
|
47409
|
-
var t = new
|
|
47405
|
+
var t = new Mt();
|
|
47410
47406
|
return t.add(new hn({
|
|
47411
47407
|
name: "main",
|
|
47412
47408
|
style: ww(e),
|
|
@@ -47501,7 +47497,7 @@ var Zq = ["axisLine", "axisTickLabel", "axisName"], Xq = (
|
|
|
47501
47497
|
if (!jq(t, r, a)) {
|
|
47502
47498
|
this.axisModel = t, this.api = i, this.group.removeAll();
|
|
47503
47499
|
var o = this._axisGroup;
|
|
47504
|
-
if (this._axisGroup = new
|
|
47500
|
+
if (this._axisGroup = new Mt(), this.group.add(this._axisGroup), !!t.get("show")) {
|
|
47505
47501
|
var s = Jq(t, r), l = s.coordinateSystem, u = t.getAreaSelectStyle(), h = u.width, f = t.axis.dim, c = l.getAxisLayout(f), v = X({
|
|
47506
47502
|
strokeContainThreshold: h
|
|
47507
47503
|
}, c), d = new rn(t, v);
|
|
@@ -47640,7 +47636,7 @@ var e$ = (
|
|
|
47640
47636
|
return e.prototype.render = function(t, r, i) {
|
|
47641
47637
|
var a = this, o = t.getGraph(), s = this.group, l = t.layoutInfo, u = l.width, h = l.height, f = t.getData(), c = t.getData("edge"), v = t.get("orient");
|
|
47642
47638
|
this._model = t, s.removeAll(), s.x = l.x, s.y = l.y, o.eachEdge(function(d) {
|
|
47643
|
-
var p = new r$(), g =
|
|
47639
|
+
var p = new r$(), g = Dt(p);
|
|
47644
47640
|
g.dataIndex = d.dataIndex, g.seriesIndex = t.seriesIndex, g.dataType = "edge";
|
|
47645
47641
|
var y = d.getModel(), m = y.getModel("lineStyle"), _ = m.get("curveness"), x = d.node1.getLayout(), S = d.node1.getModel(), w = S.get("localX"), A = S.get("localY"), T = d.node2.getLayout(), C = d.node2.getModel(), b = C.get("localX"), I = C.get("localY"), M = d.getLayout(), L, P, D, O, R, N, k, z;
|
|
47646
47642
|
p.shape.extent = Math.max(1, M.dy), p.shape.orient = v, v === "vertical" ? (L = (w != null ? w * u : x.x) + M.sy, P = (A != null ? A * h : x.y) + x.dy, D = (b != null ? b * u : T.x) + M.ty, O = I != null ? I * h : T.y, R = L, N = P * (1 - _) + O * _, k = D, z = P * _ + O * (1 - _)) : (L = (w != null ? w * u : x.x) + x.dx, P = (A != null ? A * h : x.y) + M.sy, D = b != null ? b * u : T.x, O = (I != null ? I * h : T.y) + M.ty, R = L * (1 - _) + D * _, N = P, k = L * _ + D * (1 - _), z = O), p.setShape({
|
|
@@ -47701,7 +47697,7 @@ var e$ = (
|
|
|
47701
47697
|
},
|
|
47702
47698
|
labelDataIndex: d.dataIndex,
|
|
47703
47699
|
defaultText: d.id
|
|
47704
|
-
}), S.disableLabelAnimation = !0, S.setStyle("fill", d.getVisual("color")), S.setStyle("decal", d.getVisual("style").decal), Nr(S, g), s.add(S), f.setItemGraphicEl(d.dataIndex, S),
|
|
47700
|
+
}), S.disableLabelAnimation = !0, S.setStyle("fill", d.getVisual("color")), S.setStyle("decal", d.getVisual("style").decal), Nr(S, g), s.add(S), f.setItemGraphicEl(d.dataIndex, S), Dt(S).dataType = "node";
|
|
47705
47701
|
var w = _.get("focus");
|
|
47706
47702
|
He(S, w === "adjacency" ? d.getAdjacentDataIndices() : w === "trajectory" ? d.getTrajectoryDataIndices() : w, _.get("blurScope"), _.get("disabled"));
|
|
47707
47703
|
}), f.eachItemGraphicEl(function(d, p) {
|
|
@@ -48816,7 +48812,7 @@ function JE(n, e, t, r, i, a) {
|
|
|
48816
48812
|
return t > r ? o = -1 : t < r ? o = 1 : o = a ? 0 : e > 0 ? n.get(i, e - 1) <= r ? 1 : -1 : 1, o;
|
|
48817
48813
|
}
|
|
48818
48814
|
function Q$(n, e) {
|
|
48819
|
-
var t = n.getBaseAxis(), r, i = t.type === "category" ? t.getBandWidth() : (r = t.getExtent(), Math.abs(r[1] - r[0]) / e.count()), a = st(
|
|
48815
|
+
var t = n.getBaseAxis(), r, i = t.type === "category" ? t.getBandWidth() : (r = t.getExtent(), Math.abs(r[1] - r[0]) / e.count()), a = st(Lt(n.get("barMaxWidth"), i), i), o = st(Lt(n.get("barMinWidth"), 1), i), s = n.get("barWidth");
|
|
48820
48816
|
return s != null ? st(s, i) : Math.max(Math.min(i / 2, a), o);
|
|
48821
48817
|
}
|
|
48822
48818
|
function q$(n) {
|
|
@@ -48840,7 +48836,7 @@ var $$ = (
|
|
|
48840
48836
|
function(n) {
|
|
48841
48837
|
H(e, n);
|
|
48842
48838
|
function e(t, r) {
|
|
48843
|
-
var i = n.call(this) || this, a = new Mc(t, r), o = new
|
|
48839
|
+
var i = n.call(this) || this, a = new Mc(t, r), o = new Mt();
|
|
48844
48840
|
return i.add(a), i.add(o), i.updateData(t, r), i;
|
|
48845
48841
|
}
|
|
48846
48842
|
return e.prototype.stopEffectAnimation = function() {
|
|
@@ -48900,7 +48896,7 @@ var $$ = (
|
|
|
48900
48896
|
}, e.prototype.fadeOut = function(t) {
|
|
48901
48897
|
t && t();
|
|
48902
48898
|
}, e;
|
|
48903
|
-
}(
|
|
48899
|
+
}(Mt)
|
|
48904
48900
|
), ttt = (
|
|
48905
48901
|
/** @class */
|
|
48906
48902
|
function(n) {
|
|
@@ -49048,7 +49044,7 @@ var gF = (
|
|
|
49048
49044
|
var i = t.getItemModel(r).getModel("effect");
|
|
49049
49045
|
this._updateEffectAnimation(t, i, r);
|
|
49050
49046
|
}, e;
|
|
49051
|
-
}(
|
|
49047
|
+
}(Mt)
|
|
49052
49048
|
), yF = (
|
|
49053
49049
|
/** @class */
|
|
49054
49050
|
function(n) {
|
|
@@ -49084,7 +49080,7 @@ var gF = (
|
|
|
49084
49080
|
var i = this.childAt(0);
|
|
49085
49081
|
i.setShape("points", t.getItemLayout(r));
|
|
49086
49082
|
}, e;
|
|
49087
|
-
}(
|
|
49083
|
+
}(Mt)
|
|
49088
49084
|
), ntt = (
|
|
49089
49085
|
/** @class */
|
|
49090
49086
|
function(n) {
|
|
@@ -49225,7 +49221,7 @@ var gF = (
|
|
|
49225
49221
|
/** @class */
|
|
49226
49222
|
function() {
|
|
49227
49223
|
function n() {
|
|
49228
|
-
this.group = new
|
|
49224
|
+
this.group = new Mt();
|
|
49229
49225
|
}
|
|
49230
49226
|
return n.prototype.updateData = function(e) {
|
|
49231
49227
|
this._clear();
|
|
@@ -49267,7 +49263,7 @@ var gF = (
|
|
|
49267
49263
|
}), e.useStyle(i.getModel("lineStyle").getLineStyle()), e.style.strokeNoScale = !0;
|
|
49268
49264
|
var a = t.getVisual("style");
|
|
49269
49265
|
a && a.stroke && e.setStyle("stroke", a.stroke), e.setStyle("fill", null);
|
|
49270
|
-
var o =
|
|
49266
|
+
var o = Dt(e);
|
|
49271
49267
|
o.seriesIndex = i.seriesIndex, e.on("mousemove", function(s) {
|
|
49272
49268
|
o.dataIndex = null;
|
|
49273
49269
|
var l = e.hoverDataIdx;
|
|
@@ -49810,7 +49806,7 @@ var xtt = ["itemStyle", "borderWidth"], tM = [{
|
|
|
49810
49806
|
}, e.prototype.remove = function(t, r) {
|
|
49811
49807
|
var i = this.group, a = this._data;
|
|
49812
49808
|
t.get("animation") ? a && a.eachItemGraphicEl(function(o) {
|
|
49813
|
-
iM(a,
|
|
49809
|
+
iM(a, Dt(o).dataIndex, t, o);
|
|
49814
49810
|
}) : i.removeAll();
|
|
49815
49811
|
}, e.type = "pictorialBar", e;
|
|
49816
49812
|
}(be)
|
|
@@ -49995,7 +49991,7 @@ function Itt() {
|
|
|
49995
49991
|
return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation");
|
|
49996
49992
|
}
|
|
49997
49993
|
function nM(n, e, t, r) {
|
|
49998
|
-
var i = new
|
|
49994
|
+
var i = new Mt(), a = new Mt();
|
|
49999
49995
|
return i.add(a), i.__pictorialBundle = a, a.x = t.bundlePosition[0], a.y = t.bundlePosition[1], t.symbolRepeat ? xF(i, e, t) : SF(i, e, t), wF(i, t, r), AF(i, e, t, r), i.__pictorialShapeStr = TF(n, t), i.__pictorialSymbolMeta = t, i;
|
|
50000
49996
|
}
|
|
50001
49997
|
function Ett(n, e, t) {
|
|
@@ -50136,7 +50132,7 @@ var Ltt = (
|
|
|
50136
50132
|
}
|
|
50137
50133
|
var L, P = a.getItemLayout(A[0]), D = t.getModel("label"), O = D.get("margin"), R = t.getModel("emphasis");
|
|
50138
50134
|
if (g === "add") {
|
|
50139
|
-
var N = d[y] = new
|
|
50135
|
+
var N = d[y] = new Mt();
|
|
50140
50136
|
L = new JN({
|
|
50141
50137
|
shape: {
|
|
50142
50138
|
points: x,
|
|
@@ -50374,7 +50370,7 @@ var Ftt = 2, Gtt = 4, lM = (
|
|
|
50374
50370
|
var o = n.call(this) || this;
|
|
50375
50371
|
o.z2 = Ftt, o.textConfig = {
|
|
50376
50372
|
inside: !0
|
|
50377
|
-
},
|
|
50373
|
+
}, Dt(o).seriesIndex = r.seriesIndex;
|
|
50378
50374
|
var s = new ue({
|
|
50379
50375
|
z2: Gtt,
|
|
50380
50376
|
silent: t.getModel().get(["label", "silent"])
|
|
@@ -50384,7 +50380,7 @@ var Ftt = 2, Gtt = 4, lM = (
|
|
|
50384
50380
|
return e.prototype.updateData = function(t, r, i, a, o) {
|
|
50385
50381
|
this.node = r, r.piece = this, i = i || this._seriesModel, a = a || this._ecModel;
|
|
50386
50382
|
var s = this;
|
|
50387
|
-
|
|
50383
|
+
Dt(s).dataIndex = r.dataIndex;
|
|
50388
50384
|
var l = r.getModel(), u = l.getModel("emphasis"), h = r.getLayout(), f = X({}, h);
|
|
50389
50385
|
f.label = null;
|
|
50390
50386
|
var c = r.getVisual("style");
|
|
@@ -51365,7 +51361,7 @@ function Lw(n) {
|
|
|
51365
51361
|
else if (e === "text")
|
|
51366
51362
|
t = new ue({});
|
|
51367
51363
|
else if (e === "group")
|
|
51368
|
-
t = new
|
|
51364
|
+
t = new Mt();
|
|
51369
51365
|
else {
|
|
51370
51366
|
if (e === "compoundPath")
|
|
51371
51367
|
throw new Error('"compoundPath" is not supported yet.');
|
|
@@ -51495,7 +51491,7 @@ function wM(n, e, t, r) {
|
|
|
51495
51491
|
var z = {
|
|
51496
51492
|
inheritColor: vt(R) ? R : "#000"
|
|
51497
51493
|
}, F = _(D, bo), G = Re(F, null, z, !1, !0);
|
|
51498
|
-
G.text = F.getShallow("show") ?
|
|
51494
|
+
G.text = F.getShallow("show") ? Lt(n.getFormattedLabel(D, bo), Yu(e, D)) : null;
|
|
51499
51495
|
var U = rp(F, z, !1);
|
|
51500
51496
|
return C(P, k), k = dM(k, G, U), P && T(k, P), k.legacy = !0, k;
|
|
51501
51497
|
}
|
|
@@ -51685,7 +51681,7 @@ function Eet(n) {
|
|
|
51685
51681
|
function Met(n) {
|
|
51686
51682
|
n.registerChartView(met), n.registerSeriesModel(jtt);
|
|
51687
51683
|
}
|
|
51688
|
-
var Ls = se(), bM =
|
|
51684
|
+
var Ls = se(), bM = It, T0 = pt, Nw = (
|
|
51689
51685
|
/** @class */
|
|
51690
51686
|
function() {
|
|
51691
51687
|
function n() {
|
|
@@ -51707,7 +51703,7 @@ var Ls = se(), bM = Et, T0 = pt, Nw = (
|
|
|
51707
51703
|
h !== this._lastGraphicKey && this.clear(r), this._lastGraphicKey = h;
|
|
51708
51704
|
var f = this._moveAnimation = this.determineAnimation(e, t);
|
|
51709
51705
|
if (!s)
|
|
51710
|
-
s = this._group = new
|
|
51706
|
+
s = this._group = new Mt(), this.createPointerEl(s, u, e, t), this.createLabelEl(s, u, e, t), r.getZr().add(s);
|
|
51711
51707
|
else {
|
|
51712
51708
|
var c = Rt(IM, t, f);
|
|
51713
51709
|
this.updatePointerEl(s, u, c), this.updateLabelEl(s, u, c, t);
|
|
@@ -52742,7 +52738,7 @@ var lrt = (
|
|
|
52742
52738
|
return e.prototype.render = function(t, r) {
|
|
52743
52739
|
if (this.group.removeAll(), !!t.get("show")) {
|
|
52744
52740
|
var i = t.axis, a = i.polar, o = a.getRadiusAxis().getExtent(), s = i.getTicksCoords(), l = i.getMinorTicksCoords(), u = Q(i.getViewLabels(), function(h) {
|
|
52745
|
-
h =
|
|
52741
|
+
h = It(h);
|
|
52746
52742
|
var f = i.scale, c = f.type === "ordinal" ? f.getRawOrdinalNumber(h.tickValue) : h.tickValue;
|
|
52747
52743
|
return h.coord = i.dataToCoord(c), h;
|
|
52748
52744
|
});
|
|
@@ -52826,7 +52822,7 @@ var lrt = (
|
|
|
52826
52822
|
});
|
|
52827
52823
|
if (n.add(w), h) {
|
|
52828
52824
|
var A = rn.makeAxisEventDataBase(e);
|
|
52829
|
-
A.targetType = "axisLabel", A.value = f.rawLabel,
|
|
52825
|
+
A.targetType = "axisLabel", A.value = f.rawLabel, Dt(w).eventData = A;
|
|
52830
52826
|
}
|
|
52831
52827
|
}, this);
|
|
52832
52828
|
},
|
|
@@ -52900,7 +52896,7 @@ var lrt = (
|
|
|
52900
52896
|
}
|
|
52901
52897
|
return e.prototype.render = function(t, r) {
|
|
52902
52898
|
if (this.group.removeAll(), !!t.get("show")) {
|
|
52903
|
-
var i = this._axisGroup, a = this._axisGroup = new
|
|
52899
|
+
var i = this._axisGroup, a = this._axisGroup = new Mt();
|
|
52904
52900
|
this.group.add(a);
|
|
52905
52901
|
var o = t.axis, s = o.polar, l = s.getAngleAxis(), u = o.getTicksCoords(), h = o.getMinorTicksCoords(), f = l.getExtent()[0], c = o.getExtent(), v = drt(s, t, f), d = new rn(t, v);
|
|
52906
52902
|
E(hrt, d.add, d), a.add(d.getGroup()), Tc(i, a, t), E(frt, function(p) {
|
|
@@ -53153,7 +53149,7 @@ var Srt = ["axisLine", "axisTickLabel", "axisName"], wrt = ["splitArea", "splitL
|
|
|
53153
53149
|
var o = this.group;
|
|
53154
53150
|
o.removeAll();
|
|
53155
53151
|
var s = this._axisGroup;
|
|
53156
|
-
this._axisGroup = new
|
|
53152
|
+
this._axisGroup = new Mt();
|
|
53157
53153
|
var l = V1(t), u = new rn(t, l);
|
|
53158
53154
|
E(Srt, u.add, u), o.add(this._axisGroup), o.add(u.getGroup()), E(wrt, function(h) {
|
|
53159
53155
|
t.get([h, "show"]) && Trt[h](this, this.group, this._axisGroup, t);
|
|
@@ -53950,7 +53946,7 @@ var Hrt = (
|
|
|
53950
53946
|
path: null,
|
|
53951
53947
|
compoundPath: null,
|
|
53952
53948
|
// Supported in graphic component.
|
|
53953
|
-
group:
|
|
53949
|
+
group: Mt,
|
|
53954
53950
|
image: Er,
|
|
53955
53951
|
text: ue
|
|
53956
53952
|
}, Zn = se(), Wrt = (
|
|
@@ -54089,7 +54085,7 @@ function XM(n, e, t, r) {
|
|
|
54089
54085
|
["z2", 0]
|
|
54090
54086
|
], function(i) {
|
|
54091
54087
|
var a = i[0];
|
|
54092
|
-
gt(e, a) ? n[a] =
|
|
54088
|
+
gt(e, a) ? n[a] = Lt(e[a], i[1]) : n[a] == null && (n[a] = i[1]);
|
|
54093
54089
|
}), E(ne(e), function(i) {
|
|
54094
54090
|
if (i.indexOf("on") === 0) {
|
|
54095
54091
|
var a = e[i];
|
|
@@ -54103,8 +54099,8 @@ function Yrt(n) {
|
|
|
54103
54099
|
}), n;
|
|
54104
54100
|
}
|
|
54105
54101
|
function Urt(n, e, t) {
|
|
54106
|
-
var r =
|
|
54107
|
-
!n.silent && !n.ignore && !r && (r =
|
|
54102
|
+
var r = Dt(n).eventData;
|
|
54103
|
+
!n.silent && !n.ignore && !r && (r = Dt(n).eventData = {
|
|
54108
54104
|
componentType: "graphic",
|
|
54109
54105
|
componentIndex: e.componentIndex,
|
|
54110
54106
|
name: n.name
|
|
@@ -54414,7 +54410,7 @@ var Jrt = (
|
|
|
54414
54410
|
}, n.prototype.getAxisModel = function() {
|
|
54415
54411
|
return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex);
|
|
54416
54412
|
}, n.prototype.getMinMaxSpan = function() {
|
|
54417
|
-
return
|
|
54413
|
+
return It(this._minMaxSpan);
|
|
54418
54414
|
}, n.prototype.calculateDataWindow = function(e) {
|
|
54419
54415
|
var t = this._dataExtent, r = this.getAxisModel(), i = r.axis.scale, a = this._dataZoomModel.getRangePropMode(), o = [0, 100], s = [], l = [], u;
|
|
54420
54416
|
pu(["start", "end"], function(c, v) {
|
|
@@ -55551,7 +55547,7 @@ var U1 = E, Ent = RY("toolbox-dataZoom_"), Mnt = (
|
|
|
55551
55547
|
}, e.prototype._dispatchZoomAction = function(t) {
|
|
55552
55548
|
var r = [];
|
|
55553
55549
|
U1(t, function(i, a) {
|
|
55554
|
-
r.push(
|
|
55550
|
+
r.push(It(i));
|
|
55555
55551
|
}), r.length && this.api.dispatchAction({
|
|
55556
55552
|
type: "dataZoom",
|
|
55557
55553
|
from: this.uid,
|
|
@@ -55770,7 +55766,7 @@ function sD(n, e, t) {
|
|
|
55770
55766
|
function Hnt(n) {
|
|
55771
55767
|
var e = [], t = n.get("fontSize"), r = n.getTextColor();
|
|
55772
55768
|
r && e.push("color:" + r), e.push("font:" + n.getFont());
|
|
55773
|
-
var i =
|
|
55769
|
+
var i = Lt(n.get("lineHeight"), Math.round(t * 3 / 2));
|
|
55774
55770
|
t && e.push("line-height:" + i + "px");
|
|
55775
55771
|
var a = n.get("textShadowColor"), o = n.get("textShadowBlur") || 0, s = n.get("textShadowOffsetX") || 0, l = n.get("textShadowOffsetY") || 0;
|
|
55776
55772
|
return a && o && e.push("text-shadow:" + s + "px " + l + "px " + o + "px " + a), E(["decoration", "align"], function(u) {
|
|
@@ -56026,7 +56022,7 @@ var Znt = new oe({
|
|
|
56026
56022
|
}, o);
|
|
56027
56023
|
} else if (a.tooltip && a.x != null && a.y != null) {
|
|
56028
56024
|
var h = Znt;
|
|
56029
|
-
h.x = a.x, h.y = a.y, h.update(),
|
|
56025
|
+
h.x = a.x, h.y = a.y, h.update(), Dt(h).tooltipConfig = {
|
|
56030
56026
|
name: null,
|
|
56031
56027
|
option: a.tooltip
|
|
56032
56028
|
}, this._tryShow({
|
|
@@ -56092,15 +56088,15 @@ var Znt = new oe({
|
|
|
56092
56088
|
if (o && o.length)
|
|
56093
56089
|
this._showAxisTooltip(o, t);
|
|
56094
56090
|
else if (i) {
|
|
56095
|
-
var s =
|
|
56091
|
+
var s = Dt(i);
|
|
56096
56092
|
if (s.ssrType === "legend")
|
|
56097
56093
|
return;
|
|
56098
56094
|
this._lastDataByCoordSys = null;
|
|
56099
56095
|
var l, u;
|
|
56100
56096
|
Vs(i, function(h) {
|
|
56101
|
-
if (
|
|
56097
|
+
if (Dt(h).dataIndex != null)
|
|
56102
56098
|
return l = h, !0;
|
|
56103
|
-
if (
|
|
56099
|
+
if (Dt(h).tooltipConfig != null)
|
|
56104
56100
|
return u = h, !0;
|
|
56105
56101
|
}, !0), l ? this._showSeriesItemTooltip(t, l, r) : u ? this._showComponentItemTooltip(t, u, r) : this._hide(r);
|
|
56106
56102
|
} else
|
|
@@ -56152,7 +56148,7 @@ var Znt = new oe({
|
|
|
56152
56148
|
this._updateContentNotChangedOnAxis(t, u) ? this._updatePosition(s, v, o[0], o[1], this._tooltipContent, u) : this._showTooltipContent(s, y, u, Math.random() + "", o[0], o[1], v, null, c);
|
|
56153
56149
|
});
|
|
56154
56150
|
}, e.prototype._showSeriesItemTooltip = function(t, r, i) {
|
|
56155
|
-
var a = this._ecModel, o =
|
|
56151
|
+
var a = this._ecModel, o = Dt(r), s = o.seriesIndex, l = a.getSeriesByIndex(s), u = o.dataModel || l, h = o.dataIndex, f = o.dataType, c = u.getData(f), v = this._renderMode, d = t.positionDefault, p = Yh([c.getItemModel(h), u, l && (l.coordinateSystem || {}).model], this._tooltipModel, d ? {
|
|
56156
56152
|
position: d
|
|
56157
56153
|
} : null), g = p.get("trigger");
|
|
56158
56154
|
if (!(g != null && g !== "item")) {
|
|
@@ -56172,7 +56168,7 @@ var Znt = new oe({
|
|
|
56172
56168
|
});
|
|
56173
56169
|
}
|
|
56174
56170
|
}, e.prototype._showComponentItemTooltip = function(t, r, i) {
|
|
56175
|
-
var a = this._renderMode === "html", o =
|
|
56171
|
+
var a = this._renderMode === "html", o = Dt(r), s = o.tooltipConfig, l = s.option || {}, u = l.encodeHTMLContent;
|
|
56176
56172
|
if (vt(l)) {
|
|
56177
56173
|
var h = l;
|
|
56178
56174
|
l = {
|
|
@@ -56181,7 +56177,7 @@ var Znt = new oe({
|
|
|
56181
56177
|
formatter: h
|
|
56182
56178
|
}, u = !0;
|
|
56183
56179
|
}
|
|
56184
|
-
u && a && l.content && (l =
|
|
56180
|
+
u && a && l.content && (l = It(l), l.content = $r(l.content));
|
|
56185
56181
|
var f = [l], c = this._ecModel.getComponent(o.componentMainType, o.componentIndex);
|
|
56186
56182
|
c && f.push(c), f.push({
|
|
56187
56183
|
formatter: l.content
|
|
@@ -56190,7 +56186,7 @@ var Znt = new oe({
|
|
|
56190
56186
|
position: v
|
|
56191
56187
|
} : null), p = d.get("content"), g = Math.random() + "", y = new dm();
|
|
56192
56188
|
this._showOrMove(d, function() {
|
|
56193
|
-
var m =
|
|
56189
|
+
var m = It(d.get("formatterParams") || {});
|
|
56194
56190
|
this._showTooltipContent(d, p, m, g, t.offsetX, t.offsetY, t.position, r, y);
|
|
56195
56191
|
}), i({
|
|
56196
56192
|
type: "showTip",
|
|
@@ -56335,7 +56331,7 @@ function Qnt(n, e, t) {
|
|
|
56335
56331
|
if (o) {
|
|
56336
56332
|
var s = t.getViewOfComponentModel(o), l;
|
|
56337
56333
|
if (s.group.traverse(function(u) {
|
|
56338
|
-
var h =
|
|
56334
|
+
var h = Dt(u).tooltipConfig;
|
|
56339
56335
|
if (h && h.name === n.name)
|
|
56340
56336
|
return l = u, !0;
|
|
56341
56337
|
}), l)
|
|
@@ -56401,7 +56397,7 @@ function Z1(n, e, t) {
|
|
|
56401
56397
|
type: l,
|
|
56402
56398
|
visual: s
|
|
56403
56399
|
};
|
|
56404
|
-
t && t(u, a), o[l] = new Sr(u), l === "opacity" && (u =
|
|
56400
|
+
t && t(u, a), o[l] = new Sr(u), l === "opacity" && (u = It(u), u.type = "colorAlpha", o.__hidden.__alphaForOpacity = new Sr(u));
|
|
56405
56401
|
}
|
|
56406
56402
|
});
|
|
56407
56403
|
}), r;
|
|
@@ -56418,7 +56414,7 @@ function aG(n, e, t) {
|
|
|
56418
56414
|
E(t, function(i) {
|
|
56419
56415
|
e.hasOwnProperty(i) && dD(e[i]) && (r = !0);
|
|
56420
56416
|
}), r && E(t, function(i) {
|
|
56421
|
-
e.hasOwnProperty(i) && dD(e[i]) ? n[i] =
|
|
56417
|
+
e.hasOwnProperty(i) && dD(e[i]) ? n[i] = It(e[i]) : delete n[i];
|
|
56422
56418
|
});
|
|
56423
56419
|
}
|
|
56424
56420
|
function rit(n, e, t, r, i, a) {
|
|
@@ -56551,7 +56547,7 @@ function ait(n, e, t) {
|
|
|
56551
56547
|
brushId: o.id,
|
|
56552
56548
|
brushIndex: s,
|
|
56553
56549
|
brushName: o.name,
|
|
56554
|
-
areas:
|
|
56550
|
+
areas: It(o.areas),
|
|
56555
56551
|
selected: []
|
|
56556
56552
|
};
|
|
56557
56553
|
r.push(l);
|
|
@@ -56684,12 +56680,12 @@ var hit = (
|
|
|
56684
56680
|
(!t.isEnd || t.removeOnClick) && this.api.dispatchAction({
|
|
56685
56681
|
type: "brush",
|
|
56686
56682
|
brushId: r,
|
|
56687
|
-
areas:
|
|
56683
|
+
areas: It(i),
|
|
56688
56684
|
$from: r
|
|
56689
56685
|
}), t.isEnd && this.api.dispatchAction({
|
|
56690
56686
|
type: "brushEnd",
|
|
56691
56687
|
brushId: r,
|
|
56692
|
-
areas:
|
|
56688
|
+
areas: It(i),
|
|
56693
56689
|
$from: r
|
|
56694
56690
|
});
|
|
56695
56691
|
}, e.type = "brush", e;
|
|
@@ -56876,7 +56872,7 @@ var git = (
|
|
|
56876
56872
|
}
|
|
56877
56873
|
return e.prototype.render = function(t, r, i) {
|
|
56878
56874
|
if (this.group.removeAll(), !!t.get("show")) {
|
|
56879
|
-
var a = this.group, o = t.getModel("textStyle"), s = t.getModel("subtextStyle"), l = t.get("textAlign"), u =
|
|
56875
|
+
var a = this.group, o = t.getModel("textStyle"), s = t.getModel("subtextStyle"), l = t.get("textAlign"), u = Lt(t.get("textBaseline"), t.get("textVerticalAlign")), h = new ue({
|
|
56880
56876
|
style: Re(o, {
|
|
56881
56877
|
text: t.get("text"),
|
|
56882
56878
|
fill: o.getTextColor()
|
|
@@ -56899,7 +56895,7 @@ var git = (
|
|
|
56899
56895
|
ip(d, "_" + t.get("target"));
|
|
56900
56896
|
}), p && v.on("click", function() {
|
|
56901
56897
|
ip(p, "_" + t.get("subtarget"));
|
|
56902
|
-
}),
|
|
56898
|
+
}), Dt(h).eventData = Dt(v).eventData = g ? {
|
|
56903
56899
|
componentType: "title",
|
|
56904
56900
|
componentIndex: t.componentIndex
|
|
56905
56901
|
} : null, a.add(h), c && a.add(v);
|
|
@@ -56965,7 +56961,7 @@ var SD = (
|
|
|
56965
56961
|
var t = this.option, r = t.data || [], i = t.axisType, a = this._names = [], o;
|
|
56966
56962
|
i === "category" ? (o = [], E(r, function(u, h) {
|
|
56967
56963
|
var f = dr(eh(u), ""), c;
|
|
56968
|
-
wt(u) ? (c =
|
|
56964
|
+
wt(u) ? (c = It(u), c.value = h) : c = h, o.push(c), a.push(f);
|
|
56969
56965
|
})) : o = r;
|
|
56970
56966
|
var s = {
|
|
56971
56967
|
category: "ordinal",
|
|
@@ -57251,7 +57247,7 @@ var _it = (
|
|
|
57251
57247
|
var l = new xit("value", o, t.axisExtent, a);
|
|
57252
57248
|
return l.model = r, l;
|
|
57253
57249
|
}, e.prototype._createGroup = function(t) {
|
|
57254
|
-
var r = this[t] = new
|
|
57250
|
+
var r = this[t] = new Mt();
|
|
57255
57251
|
return this.group.add(r), r;
|
|
57256
57252
|
}, e.prototype._renderAxisLine = function(t, r, i, a) {
|
|
57257
57253
|
var o = i.getExtent();
|
|
@@ -57295,7 +57291,7 @@ var _it = (
|
|
|
57295
57291
|
onclick: pt(o._changeTimeline, o, u.value)
|
|
57296
57292
|
}, g = AD(f, c, r, p);
|
|
57297
57293
|
g.ensureState("emphasis").style = v.getItemStyle(), g.ensureState("progress").style = d.getItemStyle(), tl(g);
|
|
57298
|
-
var y =
|
|
57294
|
+
var y = Dt(g);
|
|
57299
57295
|
f.get("tooltip") ? (y.dataIndex = u.value, y.dataModel = a) : y.dataIndex = y.dataModel = null, o._tickSymbols.push(g);
|
|
57300
57296
|
});
|
|
57301
57297
|
}, e.prototype._renderAxisLabel = function(t, r, i, a) {
|
|
@@ -57323,7 +57319,7 @@ var _it = (
|
|
|
57323
57319
|
c(t.nextBtnPosition, "next", pt(this._changeTimeline, this, f ? "-" : "+")), c(t.prevBtnPosition, "prev", pt(this._changeTimeline, this, f ? "+" : "-")), c(t.playPosition, h ? "stop" : "play", pt(this._handlePlayClick, this, !h), !0);
|
|
57324
57320
|
function c(v, d, p, g) {
|
|
57325
57321
|
if (v) {
|
|
57326
|
-
var y = Ii(
|
|
57322
|
+
var y = Ii(Lt(a.get(["controlStyle", d + "BtnSize"]), o), o), m = [0, -y / 2, y, y], _ = Tit(a, d + "Icon", m, {
|
|
57327
57323
|
x: v[0],
|
|
57328
57324
|
y: v[1],
|
|
57329
57325
|
originX: o / 2,
|
|
@@ -57668,7 +57664,7 @@ function fc(n, e) {
|
|
|
57668
57664
|
var t = n.getData(), r = n.coordinateSystem, i = r && r.dimensions;
|
|
57669
57665
|
if (!Dit(e) && !J(e.coord) && J(i)) {
|
|
57670
57666
|
var a = lG(e, t, r, n);
|
|
57671
|
-
if (e =
|
|
57667
|
+
if (e = It(e), e.type && P0[e.type] && a.baseAxis && a.valueAxis) {
|
|
57672
57668
|
var o = Zt(i, a.baseAxis.dim), s = Zt(i, a.valueAxis.dim), l = P0[e.type](t, a.baseDataDim, a.valueDataDim, o, s);
|
|
57673
57669
|
e.coord = l[0], e.value = l[1];
|
|
57674
57670
|
} else
|
|
@@ -57795,7 +57791,7 @@ var Oit = (
|
|
|
57795
57791
|
});
|
|
57796
57792
|
}), h.updateData(f), this.group.add(h.group), f.eachItemGraphicEl(function(c) {
|
|
57797
57793
|
c.traverse(function(v) {
|
|
57798
|
-
|
|
57794
|
+
Dt(v).dataModel = r;
|
|
57799
57795
|
});
|
|
57800
57796
|
}), this.markKeep(h), h.group.silent = r.get("silent") || t.get("silent");
|
|
57801
57797
|
}, e.type = "markPoint", e;
|
|
@@ -57880,7 +57876,7 @@ var kit = (
|
|
|
57880
57876
|
var h = tN(i, u.valueDataDim);
|
|
57881
57877
|
l = Kw(i, h, o);
|
|
57882
57878
|
}
|
|
57883
|
-
var f = s.dim === "x" ? 0 : 1, c = 1 - f, v =
|
|
57879
|
+
var f = s.dim === "x" ? 0 : 1, c = 1 - f, v = It(r), d = {
|
|
57884
57880
|
coord: []
|
|
57885
57881
|
};
|
|
57886
57882
|
v.type = null, v.coord = [], v.coord[c] = -1 / 0, d.coord[c] = 1 / 0;
|
|
@@ -57975,8 +57971,8 @@ var zit = (
|
|
|
57975
57971
|
style: S
|
|
57976
57972
|
});
|
|
57977
57973
|
}), h.updateData(d), f.line.eachItemGraphicEl(function(x) {
|
|
57978
|
-
|
|
57979
|
-
|
|
57974
|
+
Dt(x).dataModel = r, x.traverse(function(S) {
|
|
57975
|
+
Dt(S).dataModel = r;
|
|
57980
57976
|
});
|
|
57981
57977
|
});
|
|
57982
57978
|
function _(x, S, w) {
|
|
@@ -57986,11 +57982,11 @@ var zit = (
|
|
|
57986
57982
|
T.fill == null && (T.fill = bc(l, "color")), x.setItemVisual(S, {
|
|
57987
57983
|
symbolKeepAspect: A.get("symbolKeepAspect"),
|
|
57988
57984
|
// `0` should be considered as a valid value, so use `retrieve2` instead of `||`
|
|
57989
|
-
symbolOffset:
|
|
57990
|
-
symbolRotate:
|
|
57985
|
+
symbolOffset: Lt(A.get("symbolOffset", !0), m[w ? 0 : 1]),
|
|
57986
|
+
symbolRotate: Lt(A.get("symbolRotate", !0), y[w ? 0 : 1]),
|
|
57991
57987
|
// TODO: when 2d array is supported, it should ignore parent
|
|
57992
|
-
symbolSize:
|
|
57993
|
-
symbol:
|
|
57988
|
+
symbolSize: Lt(A.get("symbolSize"), g[w ? 0 : 1]),
|
|
57989
|
+
symbol: Lt(A.get("symbol", !0), p[w ? 0 : 1]),
|
|
57994
57990
|
style: T
|
|
57995
57991
|
});
|
|
57996
57992
|
}
|
|
@@ -58141,7 +58137,7 @@ var DD = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], Uit = (
|
|
|
58141
58137
|
}, this);
|
|
58142
58138
|
}, e.prototype.renderSeries = function(t, r, i, a) {
|
|
58143
58139
|
var o = t.coordinateSystem, s = t.id, l = t.getData(), u = this.markerGroupMap, h = u.get(s) || u.set(s, {
|
|
58144
|
-
group: new
|
|
58140
|
+
group: new Mt()
|
|
58145
58141
|
});
|
|
58146
58142
|
this.group.add(h.group), this.markKeep(h);
|
|
58147
58143
|
var f = Zit(o, t, r);
|
|
@@ -58188,7 +58184,7 @@ var DD = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], Uit = (
|
|
|
58188
58184
|
labelDataIndex: v,
|
|
58189
58185
|
defaultText: f.getName(v) || "",
|
|
58190
58186
|
inheritColor: vt(p.fill) ? Zd(p.fill, 1) : "#000"
|
|
58191
|
-
}), Nr(c, d), He(c, null, null, d.get(["emphasis", "disabled"])),
|
|
58187
|
+
}), Nr(c, d), He(c, null, null, d.get(["emphasis", "disabled"])), Dt(c).dataModel = r;
|
|
58192
58188
|
}), ed(h).data = f, h.group.silent = r.get("silent") || t.get("silent");
|
|
58193
58189
|
}, e.type = "markArea", e;
|
|
58194
58190
|
}(Jw)
|
|
@@ -58417,7 +58413,7 @@ var jit = function(n, e) {
|
|
|
58417
58413
|
}
|
|
58418
58414
|
}, e;
|
|
58419
58415
|
}(te)
|
|
58420
|
-
), ru = Rt, J1 = E, rd =
|
|
58416
|
+
), ru = Rt, J1 = E, rd = Mt, hG = (
|
|
58421
58417
|
/** @class */
|
|
58422
58418
|
function(n) {
|
|
58423
58419
|
H(e, n);
|
|
@@ -58466,7 +58462,7 @@ var jit = function(n, e) {
|
|
|
58466
58462
|
if (y) {
|
|
58467
58463
|
var m = y.getData(), _ = m.getVisual("legendLineStyle") || {}, x = m.getVisual("legendIcon"), S = m.getVisual("style"), w = this._createItem(y, p, d, v, r, t, _, S, x, f, a);
|
|
58468
58464
|
w.on("click", ru(LD, p, null, a, c)).on("mouseover", ru(Q1, y.name, null, a, c)).on("mouseout", ru(q1, y.name, null, a, c)), i.ssr && w.eachChild(function(A) {
|
|
58469
|
-
var T =
|
|
58465
|
+
var T = Dt(A);
|
|
58470
58466
|
T.seriesIndex = y.seriesIndex, T.dataIndex = d, T.ssrType = "legend";
|
|
58471
58467
|
}), h.set(p, !0);
|
|
58472
58468
|
} else
|
|
@@ -58481,7 +58477,7 @@ var jit = function(n, e) {
|
|
|
58481
58477
|
}));
|
|
58482
58478
|
var L = this._createItem(A, p, d, v, r, t, {}, b, I, f, a);
|
|
58483
58479
|
L.on("click", ru(LD, null, p, a, c)).on("mouseover", ru(Q1, null, p, a, c)).on("mouseout", ru(q1, null, p, a, c)), i.ssr && L.eachChild(function(P) {
|
|
58484
|
-
var D =
|
|
58480
|
+
var D = Dt(P);
|
|
58485
58481
|
D.seriesIndex = A.seriesIndex, D.dataIndex = d, D.ssrType = "legend";
|
|
58486
58482
|
}), h.set(p, !0);
|
|
58487
58483
|
}
|
|
@@ -58738,7 +58734,7 @@ function OD(n, e, t) {
|
|
|
58738
58734
|
ignoreSize: !!i
|
|
58739
58735
|
});
|
|
58740
58736
|
}
|
|
58741
|
-
var RD =
|
|
58737
|
+
var RD = Mt, N0 = ["width", "height"], k0 = ["x", "y"], tat = (
|
|
58742
58738
|
/** @class */
|
|
58743
58739
|
function(n) {
|
|
58744
58740
|
H(e, n);
|
|
@@ -58789,7 +58785,7 @@ var RD = Dt, N0 = ["width", "height"], k0 = ["x", "y"], tat = (
|
|
|
58789
58785
|
l,
|
|
58790
58786
|
t.get("selectorItemGap", !0)
|
|
58791
58787
|
);
|
|
58792
|
-
var d = t.get("selectorButtonGap", !0), p = l.getBoundingRect(), g = [-p.x, -p.y], y =
|
|
58788
|
+
var d = t.get("selectorButtonGap", !0), p = l.getBoundingRect(), g = [-p.x, -p.y], y = It(i);
|
|
58793
58789
|
o && (y[h] = i[h] - p[h] - d);
|
|
58794
58790
|
var m = this._layoutContentAndController(t, a, y, u, h, c, v, f);
|
|
58795
58791
|
if (o) {
|
|
@@ -58812,7 +58808,7 @@ var RD = Dt, N0 = ["width", "height"], k0 = ["x", "y"], tat = (
|
|
|
58812
58808
|
);
|
|
58813
58809
|
var v = h.getBoundingRect(), d = c.getBoundingRect(), p = this._showController = v[o] > i[o], g = [-v.x, -v.y];
|
|
58814
58810
|
r || (g[a] = h[u]);
|
|
58815
|
-
var y = [0, 0], m = [-d.x, -d.y], _ =
|
|
58811
|
+
var y = [0, 0], m = [-d.x, -d.y], _ = Lt(t.get("pageButtonGap", !0), t.get("itemGap", !0));
|
|
58816
58812
|
if (p) {
|
|
58817
58813
|
var x = t.get("pageButtonPosition", !0);
|
|
58818
58814
|
x === "end" ? m[a] += i[o] - d[o] : y[a] += d[o] + _;
|
|
@@ -59245,7 +59241,7 @@ var vat = (
|
|
|
59245
59241
|
}, e.prototype._buildView = function() {
|
|
59246
59242
|
var t = this.group;
|
|
59247
59243
|
t.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
|
|
59248
|
-
var r = this._displayables.sliderGroup = new
|
|
59244
|
+
var r = this._displayables.sliderGroup = new Mt();
|
|
59249
59245
|
this._renderBackground(), this._renderHandle(), this._renderDataShadow(), t.add(r), this._positionGroup();
|
|
59250
59246
|
}, e.prototype._resetLocation = function() {
|
|
59251
59247
|
var t = this.dataZoomModel, r = this.api, i = t.get("brushSelect"), a = i ? pat : 0, o = this._findCoordRect(), s = {
|
|
@@ -59346,7 +59342,7 @@ var vat = (
|
|
|
59346
59342
|
this._shadowData = o, this._shadowDim = l, this._shadowSize = [r[0], r[1]];
|
|
59347
59343
|
var S = this.dataZoomModel;
|
|
59348
59344
|
function w(C) {
|
|
59349
|
-
var b = S.getModel(C ? "selectedDataBackground" : "dataBackground"), I = new
|
|
59345
|
+
var b = S.getModel(C ? "selectedDataBackground" : "dataBackground"), I = new Mt(), M = new un({
|
|
59350
59346
|
shape: {
|
|
59351
59347
|
points: u
|
|
59352
59348
|
},
|
|
@@ -59653,7 +59649,7 @@ var gG = {
|
|
|
59653
59649
|
* @public
|
|
59654
59650
|
*/
|
|
59655
59651
|
get: function(n, e, t) {
|
|
59656
|
-
var r =
|
|
59652
|
+
var r = It((wat[n] || {})[e]);
|
|
59657
59653
|
return t && J(r) ? r[r.length - 1] : r;
|
|
59658
59654
|
}
|
|
59659
59655
|
}, wat = {
|
|
@@ -59783,7 +59779,7 @@ var gG = {
|
|
|
59783
59779
|
var m = this.itemSize, _ = f[y];
|
|
59784
59780
|
_ || (_ = f[y] = {
|
|
59785
59781
|
color: s ? d : [d]
|
|
59786
|
-
}), _.symbol == null && (_.symbol = c &&
|
|
59782
|
+
}), _.symbol == null && (_.symbol = c && It(c) || (s ? g : [g])), _.symbolSize == null && (_.symbolSize = v && It(v) || (s ? m[0] : [m[0], m[0]])), _.symbol = zD(_.symbol, function(w) {
|
|
59787
59783
|
return w === "none" ? g : w;
|
|
59788
59784
|
});
|
|
59789
59785
|
var x = _.symbolSize;
|
|
@@ -60056,7 +60052,7 @@ var Yi = _e, Eat = E, YD = Math.min, B0 = Math.max, Mat = 12, Dat = 6, Lat = (
|
|
|
60056
60052
|
}));
|
|
60057
60053
|
}
|
|
60058
60054
|
}, e.prototype._renderBar = function(t) {
|
|
60059
|
-
var r = this.visualMapModel, i = this._shapes, a = r.itemSize, o = this._orient, s = this._useHandle, l = mG(r, this.api, a), u = i.mainGroup = this._createBarGroup(l), h = new
|
|
60055
|
+
var r = this.visualMapModel, i = this._shapes, a = r.itemSize, o = this._orient, s = this._useHandle, l = mG(r, this.api, a), u = i.mainGroup = this._createBarGroup(l), h = new Mt();
|
|
60060
60056
|
u.add(h), h.add(i.outOfRange = UD()), h.add(i.inRange = UD(null, s ? XD(this._orient) : null, pt(this._dragHandle, this, "all", !1), pt(this._dragHandle, this, "all", !0))), h.setClipPath(new oe({
|
|
60061
60057
|
shape: {
|
|
60062
60058
|
x: 0,
|
|
@@ -60209,7 +60205,7 @@ var Yi = _e, Eat = E, YD = Math.min, B0 = Math.max, Mat = 12, Dat = 6, Lat = (
|
|
|
60209
60205
|
return [[i[0] - r[0], t[0]], [i[0], t[0]], [i[0], t[1]], [i[0] - r[1], t[1]]];
|
|
60210
60206
|
}, e.prototype._createBarGroup = function(t) {
|
|
60211
60207
|
var r = this._orient, i = this.visualMapModel.get("inverse");
|
|
60212
|
-
return new
|
|
60208
|
+
return new Mt(r === "horizontal" && !i ? {
|
|
60213
60209
|
scaleX: t === "bottom" ? 1 : -1,
|
|
60214
60210
|
rotation: Math.PI / 2
|
|
60215
60211
|
} : r === "horizontal" && i ? {
|
|
@@ -60317,7 +60313,7 @@ var Yi = _e, Eat = E, YD = Math.min, B0 = Math.max, Mat = 12, Dat = 6, Lat = (
|
|
|
60317
60313
|
}, e.prototype._hoverLinkFromSeriesMouseOver = function(t) {
|
|
60318
60314
|
var r;
|
|
60319
60315
|
if (Vs(t.target, function(l) {
|
|
60320
|
-
var u =
|
|
60316
|
+
var u = Dt(l);
|
|
60321
60317
|
if (u.dataIndex != null)
|
|
60322
60318
|
return r = u, !0;
|
|
60323
60319
|
}, !0), !!r) {
|
|
@@ -60477,8 +60473,8 @@ var Gat = (
|
|
|
60477
60473
|
this._pieceList = [], zat[this._mode].call(this, this._pieceList), this._resetSelected(t, r);
|
|
60478
60474
|
var a = this.option.categories;
|
|
60479
60475
|
this.resetVisual(function(o, s) {
|
|
60480
|
-
i === "categories" ? (o.mappingMethod = "category", o.categories =
|
|
60481
|
-
return l =
|
|
60476
|
+
i === "categories" ? (o.mappingMethod = "category", o.categories = It(a)) : (o.dataExtent = this.getExtent(), o.mappingMethod = "piecewise", o.pieceList = Q(this._pieceList, function(l) {
|
|
60477
|
+
return l = It(l), s !== "inRange" && (l.visual = null), l;
|
|
60482
60478
|
}));
|
|
60483
60479
|
});
|
|
60484
60480
|
}, e.prototype.completeVisualOption = function() {
|
|
@@ -60521,7 +60517,7 @@ var Gat = (
|
|
|
60521
60517
|
var t = this.option;
|
|
60522
60518
|
return t.pieces && t.pieces.length > 0 ? "pieces" : this.option.categories ? "categories" : "splitNumber";
|
|
60523
60519
|
}, e.prototype.setSelected = function(t) {
|
|
60524
|
-
this.option.selected =
|
|
60520
|
+
this.option.selected = It(t);
|
|
60525
60521
|
}, e.prototype.getValueState = function(t) {
|
|
60526
60522
|
var r = Sr.findPieceIndex(t, this._pieceList);
|
|
60527
60523
|
return r != null && this.option.selected[this.getSelectedMapKey(this._pieceList[r])] ? "inRange" : "outOfRange";
|
|
@@ -60682,7 +60678,7 @@ var Bat = (
|
|
|
60682
60678
|
t.removeAll();
|
|
60683
60679
|
var r = this.visualMapModel, i = r.get("textGap"), a = r.textStyleModel, o = a.getFont(), s = a.getTextColor(), l = this._getItemAlign(), u = r.itemSize, h = this._getViewData(), f = h.endsText, c = lr(r.get("showLabel", !0), !f), v = !r.get("selectedMode");
|
|
60684
60680
|
f && this._renderEndsText(t, f[0], u, c, l), E(h.viewPieceList, function(d) {
|
|
60685
|
-
var p = d.piece, g = new
|
|
60681
|
+
var p = d.piece, g = new Mt();
|
|
60686
60682
|
g.onclick = pt(this._onItemClick, this, p), this._enableHoverLink(g, d.indexInModelPieceList);
|
|
60687
60683
|
var y = r.getRepresentValue(p);
|
|
60688
60684
|
if (this._createItemSymbol(g, y, [0, 0, u[0], u[1]], v), c) {
|
|
@@ -60725,7 +60721,7 @@ var Bat = (
|
|
|
60725
60721
|
return (!i || i === "auto") && (i = "left"), i;
|
|
60726
60722
|
}, e.prototype._renderEndsText = function(t, r, i, a, o) {
|
|
60727
60723
|
if (r) {
|
|
60728
|
-
var s = new
|
|
60724
|
+
var s = new Mt(), l = this.visualMapModel.textStyleModel;
|
|
60729
60725
|
s.add(new ue({
|
|
60730
60726
|
style: Re(l, {
|
|
60731
60727
|
x: a ? o === "right" ? i[0] : 0 : i[0] / 2,
|
|
@@ -60762,7 +60758,7 @@ var Bat = (
|
|
|
60762
60758
|
}, e.prototype._onItemClick = function(t) {
|
|
60763
60759
|
var r = this.visualMapModel, i = r.option, a = i.selectedMode;
|
|
60764
60760
|
if (a) {
|
|
60765
|
-
var o =
|
|
60761
|
+
var o = It(i.selected), s = r.getSelectedMapKey(t);
|
|
60766
60762
|
a === "single" || a === !0 ? (o[s] = !0, E(o, function(l, u) {
|
|
60767
60763
|
o[u] = u === s;
|
|
60768
60764
|
})) : o[s] = !o[s], this.api.dispatchAction({
|
|
@@ -60793,7 +60789,7 @@ function Yat(n, e) {
|
|
|
60793
60789
|
var t = n.getModel("aria");
|
|
60794
60790
|
if (!t.get("enabled"))
|
|
60795
60791
|
return;
|
|
60796
|
-
var r =
|
|
60792
|
+
var r = It(Hat);
|
|
60797
60793
|
Ft(r.label, n.getLocaleModel().get("aria"), !1), Ft(t.option, r, !1), i(), a();
|
|
60798
60794
|
function i() {
|
|
60799
60795
|
var u = t.getModel("decal"), h = u.get("show");
|
|
@@ -61187,8 +61183,8 @@ function tx(n) {
|
|
|
61187
61183
|
Su(L, D) && Su(P, O) || i.push(L, P, D, O, D, O);
|
|
61188
61184
|
}
|
|
61189
61185
|
function f(L, P, D, O, R, N) {
|
|
61190
|
-
var k = Math.abs(P - L), z = Math.tan(k / 4) * 4 / 3, F = P < L ? -1 : 1, G = Math.cos(L), U = Math.sin(L), Z = Math.cos(P), rt = Math.sin(P), lt = G * R + D, ut = U * N + O, nt = Z * R + D, tt = rt * N + O, ft = R * z * F,
|
|
61191
|
-
i.push(lt - ft * U, ut +
|
|
61186
|
+
var k = Math.abs(P - L), z = Math.tan(k / 4) * 4 / 3, F = P < L ? -1 : 1, G = Math.cos(L), U = Math.sin(L), Z = Math.cos(P), rt = Math.sin(P), lt = G * R + D, ut = U * N + O, nt = Z * R + D, tt = rt * N + O, ft = R * z * F, q = N * z * F;
|
|
61187
|
+
i.push(lt - ft * U, ut + q * G, nt + ft * rt, tt - q * Z, nt, tt);
|
|
61192
61188
|
}
|
|
61193
61189
|
for (var c, v, d, p, g = 0; g < t; ) {
|
|
61194
61190
|
var y = e[g++], m = g === 1;
|
|
@@ -62258,9 +62254,9 @@ function kot(n, e, t) {
|
|
|
62258
62254
|
l.value.style.fontSize = rt + "px", l.value.style.padding = lt + "px";
|
|
62259
62255
|
let ut = `<div style="font-weight: bold; margin-bottom: 8px;">${F.city || F.name || "城市"}</div>`;
|
|
62260
62256
|
const nt = Array.isArray(F.bar_data) ? F.bar_data : [F.bar_data], tt = Array.isArray(F.bar_names) ? F.bar_names : [F.bar_names || "数据"], ft = Array.isArray(F.bar_units) ? F.bar_units : [F.bar_units || ""];
|
|
62261
|
-
nt.forEach((
|
|
62257
|
+
nt.forEach((q, dt) => {
|
|
62262
62258
|
const Y = tt[dt] || tt[0] || "数据", B = ft[dt] || ft[0] || "";
|
|
62263
|
-
ut += `<div style="margin-bottom: 4px;">${Y}: ${
|
|
62259
|
+
ut += `<div style="margin-bottom: 4px;">${Y}: ${q || 0}${B}</div>`;
|
|
62264
62260
|
}), l.value.innerHTML = ut, l.value.style.display = "block", l.value.style.left = G + "px", l.value.style.top = U + "px";
|
|
62265
62261
|
}, w = () => {
|
|
62266
62262
|
l.value && (l.value.style.display = "none");
|
|
@@ -62349,14 +62345,14 @@ function kot(n, e, t) {
|
|
|
62349
62345
|
map: r.value
|
|
62350
62346
|
});
|
|
62351
62347
|
const nt = () => {
|
|
62352
|
-
const
|
|
62353
|
-
|
|
62348
|
+
const q = i.value.querySelector(".amap-logo"), dt = i.value.querySelector(".amap-copyright");
|
|
62349
|
+
q && (q.style.display = "none"), dt && (dt.style.display = "none");
|
|
62354
62350
|
};
|
|
62355
62351
|
setTimeout(nt, 100), r.value.on("complete", nt);
|
|
62356
62352
|
const tt = () => {
|
|
62357
62353
|
if (!r.value || !c.value) return;
|
|
62358
|
-
const
|
|
62359
|
-
|
|
62354
|
+
const q = r.value.getCenter(), dt = r.value.getZoom();
|
|
62355
|
+
q && c.value && (c.value.center = [q.getLng(), q.getLat()]), dt !== void 0 && c.value && (c.value.zoom = dt);
|
|
62360
62356
|
};
|
|
62361
62357
|
return r.value.on("moveend", tt), r.value.on("zoomend", tt), (async () => {
|
|
62362
62358
|
try {
|
|
@@ -62387,10 +62383,10 @@ function kot(n, e, t) {
|
|
|
62387
62383
|
r.value.add(Tt), h.value.push(Tt);
|
|
62388
62384
|
});
|
|
62389
62385
|
});
|
|
62390
|
-
} catch (
|
|
62391
|
-
console.error("加载山东遮盖层失败:",
|
|
62386
|
+
} catch (q) {
|
|
62387
|
+
console.error("加载山东遮盖层失败:", q);
|
|
62392
62388
|
}
|
|
62393
|
-
})(), s.value = !0, await new Promise((
|
|
62389
|
+
})(), s.value = !0, await new Promise((q) => setTimeout(q, 100)), i.value.style.opacity = "1", { AMap: G, Loca: U, map: r.value, loca: a.value };
|
|
62394
62390
|
} catch (G) {
|
|
62395
62391
|
throw console.error("初始化高德地图失败:", G), G;
|
|
62396
62392
|
}
|
|
@@ -62441,11 +62437,11 @@ function kot(n, e, t) {
|
|
|
62441
62437
|
data: tt
|
|
62442
62438
|
});
|
|
62443
62439
|
o.value.setSource(ft);
|
|
62444
|
-
const
|
|
62440
|
+
const q = U.topColor || U.colorTop, dt = U.sideTopColor || U.colorSideTop, Y = U.sideBottomColor || U.colorSideBottom;
|
|
62445
62441
|
return o.value.setStyle({
|
|
62446
62442
|
unit: U.unit || "meter",
|
|
62447
62443
|
sideNumber: U.sideNumber || 4,
|
|
62448
|
-
topColor: (B, j) =>
|
|
62444
|
+
topColor: (B, j) => q ? typeof q == "function" ? q(B, j) : q : j.properties.color || "#efda18",
|
|
62449
62445
|
sideTopColor: (B, j) => dt ? typeof dt == "function" ? dt(B, j) : dt : j.properties.color || "#efda18",
|
|
62450
62446
|
sideBottomColor: (B, j) => Y ? typeof Y == "function" ? Y(B, j) : Y : (j.properties.color || "#efda18") + "88",
|
|
62451
62447
|
radius: (B, j) => {
|
|
@@ -62974,7 +62970,7 @@ const Got = { id: "popupContent" }, zot = {
|
|
|
62974
62970
|
p,
|
|
62975
62971
|
g,
|
|
62976
62972
|
r.tiandituKey
|
|
62977
|
-
),
|
|
62973
|
+
), q = yt([]), {
|
|
62978
62974
|
fwqLayer: dt,
|
|
62979
62975
|
loadFWQLayer: Y,
|
|
62980
62976
|
removeFWQLayer: B,
|
|
@@ -63014,10 +63010,10 @@ const Got = { id: "popupContent" }, zot = {
|
|
|
63014
63010
|
getCurrentZoom: Ce,
|
|
63015
63011
|
addPointByArr: V,
|
|
63016
63012
|
addLineByArr: W,
|
|
63017
|
-
addHeatmapByArr:
|
|
63013
|
+
addHeatmapByArr: $,
|
|
63018
63014
|
removeLayerByName: ot,
|
|
63019
|
-
findLayerByName:
|
|
63020
|
-
isLayerInMap:
|
|
63015
|
+
findLayerByName: Pt,
|
|
63016
|
+
isLayerInMap: Et,
|
|
63021
63017
|
initEchartsLayer: Wt,
|
|
63022
63018
|
initPictorialBarLayer: Ot,
|
|
63023
63019
|
removeEchartsLayer: Xt,
|
|
@@ -63033,7 +63029,7 @@ const Got = { id: "popupContent" }, zot = {
|
|
|
63033
63029
|
removeShandongDistrictLayer: Dr
|
|
63034
63030
|
} = KP(
|
|
63035
63031
|
{ value: a },
|
|
63036
|
-
|
|
63032
|
+
q,
|
|
63037
63033
|
i,
|
|
63038
63034
|
p,
|
|
63039
63035
|
g,
|
|
@@ -63122,10 +63118,10 @@ const Got = { id: "popupContent" }, zot = {
|
|
|
63122
63118
|
removeEchartsLayer: Xt,
|
|
63123
63119
|
addPointByArr: (Nn, ja, lz = !1) => V(Nn, ja, lz, u),
|
|
63124
63120
|
addLineByArr: (Nn, ja) => W(Nn, ja, h),
|
|
63125
|
-
addHeatmapByArr:
|
|
63121
|
+
addHeatmapByArr: $,
|
|
63126
63122
|
removeLayerByName: ot,
|
|
63127
|
-
findLayerByName:
|
|
63128
|
-
isLayerInMap:
|
|
63123
|
+
findLayerByName: Pt,
|
|
63124
|
+
isLayerInMap: Et,
|
|
63129
63125
|
gongganTextLayerShow: ct,
|
|
63130
63126
|
gongganTextLayerList: St,
|
|
63131
63127
|
sourceWithTextList: ee,
|