@ovalbee/reportifact 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/Chart-Cmh3H_Wv.js +5634 -0
- package/dist/Chart-jF5jqxGZ.cjs +1 -0
- package/dist/ImageGallery-CPZM1tc_.cjs +1 -0
- package/dist/ImageGallery-DQzba-4p.js +163 -0
- package/dist/MetricCallout-C7SUQTrj.js +39 -0
- package/dist/MetricCallout-CxhVOiqg.cjs +1 -0
- package/dist/MetricCards-DW-_QLhI.cjs +1 -0
- package/dist/MetricCards-JR4hUW4_.js +61 -0
- package/dist/MetricsTable-CH8vIbWG.cjs +1 -0
- package/dist/MetricsTable-OXsVygq0.js +98 -0
- package/dist/Reportifact.vue.d.ts +3 -2
- package/dist/ReportifactWidgetHost-DIlz4TxO.js +13 -0
- package/dist/ReportifactWidgetHost-xDT1ykZc.cjs +1 -0
- package/dist/Timeline-DSGSvRjj.js +295 -0
- package/dist/Timeline-P3CpGmBD.cjs +1 -0
- package/dist/WidgetWrapper-AmnP99H8.js +62 -0
- package/dist/WidgetWrapper-C0lc1m0V.cjs +1 -0
- package/dist/components/TableOfContents.vue.d.ts +3 -4
- package/dist/dist-DBIuOmpr.cjs +27 -0
- package/dist/dist-DEKe39T1.js +23629 -0
- package/dist/markdownTable-BCLRoyPL.cjs +2 -0
- package/dist/markdownTable-DHdS_81b.js +40 -0
- package/dist/middleware.cjs +1 -1
- package/dist/middleware.js +146 -175
- package/dist/portable/ReportifactWidgetHost.vue.d.ts +7 -11
- package/dist/portable/contracts.d.ts +6 -1
- package/dist/portable/usePortableSource.d.ts +18 -0
- package/dist/reportifact.cjs +63 -64
- package/dist/reportifact.d.ts +1 -1
- package/dist/reportifact.js +4909 -5223
- package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
- package/dist/style.css +2 -13
- package/dist/usePortableSource--y_qMDXB.js +55 -0
- package/dist/usePortableSource-CN5URH4d.cjs +1 -0
- package/dist/utils/tfeventsParser.cjs +1 -1
- package/dist/utils/tfeventsParser.js +298 -327
- package/dist/widgets/Card.vue.d.ts +2 -1
- package/dist/widgets/Chart.vue.d.ts +7 -9
- package/dist/widgets/HelpTooltip.vue.d.ts +2 -1
- package/dist/widgets/ImageGallery.vue.d.ts +7 -10
- package/dist/widgets/Markdown.vue.d.ts +3 -2
- package/dist/widgets/MetricCallout.vue.d.ts +5 -8
- package/dist/widgets/MetricCards.vue.d.ts +5 -5
- package/dist/widgets/MetricTable.vue.d.ts +2 -1
- package/dist/widgets/MetricsTable.vue.d.ts +7 -9
- package/dist/widgets/ModelClassComparison.vue.d.ts +3 -2
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +3 -2
- package/dist/widgets/Notice.vue.d.ts +2 -1
- package/dist/widgets/ReportifactWidget.vue.d.ts +3 -4
- package/dist/widgets/Scope.vue.d.ts +2 -3
- package/dist/widgets/Table.vue.d.ts +3 -2
- package/dist/widgets/Tensorboard.vue.d.ts +3 -2
- package/dist/widgets/Timeline.vue.d.ts +7 -9
- package/dist/widgets/WidgetWrapper.vue.d.ts +22 -18
- package/dist/widgets/chart-config/range.d.ts +2 -0
- package/dist/widgets/chart-config/shared.d.ts +25 -0
- package/dist/widgets/chart-config/types.d.ts +12 -3
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.d.ts +3 -3
- package/dist/widgets/chart.js +2 -5
- package/dist/widgets/chartSizing.d.ts +10 -0
- package/dist/widgets/contracts.cjs +1 -1
- package/dist/widgets/contracts.d.ts +1 -1
- package/dist/widgets/contracts.js +0 -1
- package/dist/widgets/host.cjs +1 -1
- package/dist/widgets/host.d.ts +3 -3
- package/dist/widgets/host.js +2 -5
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.d.ts +3 -3
- package/dist/widgets/image-gallery.js +2 -5
- package/dist/widgets/markdownTable.d.ts +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.d.ts +3 -3
- package/dist/widgets/metric-callout.js +2 -5
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.d.ts +3 -3
- package/dist/widgets/metric-cards.js +2 -5
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.d.ts +3 -3
- package/dist/widgets/metrics-table.js +2 -5
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.d.ts +3 -3
- package/dist/widgets/timeline.js +2 -5
- package/package.json +5 -10
- package/dist/Chart.vue_vue_type_style_index_0_lang-Bp14Es_r.js +0 -5946
- package/dist/Chart.vue_vue_type_style_index_0_lang-Dj7m6i3v.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +0 -191
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +0 -49
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +0 -33
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +0 -132
- package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +0 -1
- package/dist/ReportifactWidgetHost-BjKBwCWI.js +0 -17
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BTA6fIp9.js +0 -2640
- package/dist/Timeline.vue_vue_type_style_index_0_lang-CZ8Y2pXG.cjs +0 -2
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +0 -59
- package/dist/entries/figure.d.ts +0 -1
- package/dist/index-3DTuh2Dr.cjs +0 -47
- package/dist/index-DevYhXSC.js +0 -22104
- package/dist/markdownTable-B5207r3E.js +0 -32
- package/dist/markdownTable-Cbn1Du3L.cjs +0 -2
- package/dist/portable/ReportifactFigure.vue.d.ts +0 -40
- package/dist/useFetch-BfOAq-Kg.cjs +0 -1
- package/dist/useFetch-CHQm_TmB.js +0 -35
- package/dist/widgets/figure.cjs +0 -1
- package/dist/widgets/figure.d.ts +0 -6
- package/dist/widgets/figure.js +0 -84
|
@@ -1,2640 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Cr, ref as Ge, onMounted as Rr, onUnmounted as Dr, computed as le, watch as Tr, createBlock as Mt, openBlock as He, withCtx as bt, createElementVNode as ce, normalizeStyle as At, createCommentVNode as Lr, createElementBlock as Pr, Fragment as Ir, renderList as Or, normalizeClass as zr, toDisplayString as Zr, unref as Nr } from "vue";
|
|
2
|
-
import { m as ue, r as Vr, n as kr, a as rt, _ as Q, b as D, c as Pe, e as de, d as be, i as wt, s as Ie, E as Br, f as lt, t as Ye, g as Re, h as Fr, j as Et, k as Ct, l as ut, o as Be, p as Gr, q as Hr, T as Yr, u as Wr, S as Ur, v as Ee, w as ct, x as or, y as C, z as $r, A as ft, B as H, C as N, D as Xr, F as ge, G as Ae, H as Kr, I as vt, J as me, K as ir, P as sr, L as jr, M as qr, N as Jr, O as Qr, Q as ea, R as ta, U as ra, V as aa, W as na, X as oa, Y as ia, Z as sa, $ as Rt, a0 as at, a1 as la, a2 as Dt, a3 as Tt, a4 as Lt, a5 as k, a6 as Pt, a7 as ua, a8 as lr, a9 as nt, aa as We, ab as It, ac as ca, ad as fa, ae as va, af as ha, ag as da, ah as pa, ai as oe, aj as ga, ak as Ot, al as ma, am as ot, an as ya, ao as _a, ap as zt, aq as O, ar as ve, as as we, at as Ue, au as ur, av as cr, aw as Sa, ax as xa, ay as fr, az as Ma, aA as ba, aB as Aa, aC as wa, aD as Ea, aE as Ca, aF as Ra, aG as vr, aH as hr, aI as Zt, aJ as Da, aK as Ta, aL as La, aM as Pa, aN as Te, aO as Ia, aP as Oa, aQ as Nt, aR as Vt, aS as za, aT as Za, aU as Na, aV as kt, aW as Va, aX as ka, aY as Ba, aZ as Fa, a_ as it, a$ as Ga, b0 as Ha, b1 as Ya, b2 as Wa, b3 as Ua, b4 as $a, b5 as Xa } from "./index-DevYhXSC.js";
|
|
3
|
-
import { u as Ka } from "./useFetch-CHQm_TmB.js";
|
|
4
|
-
import { _ as ja } from "./WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js";
|
|
5
|
-
var qa = ue();
|
|
6
|
-
function Bt(r, t) {
|
|
7
|
-
return !!qa(r)[t];
|
|
8
|
-
}
|
|
9
|
-
Vr({
|
|
10
|
-
type: "takeGlobalCursor",
|
|
11
|
-
event: "globalCursorTaken",
|
|
12
|
-
update: "update"
|
|
13
|
-
}, kr);
|
|
14
|
-
var Ja = {
|
|
15
|
-
axisPointer: 1,
|
|
16
|
-
tooltip: 1,
|
|
17
|
-
brush: 1
|
|
18
|
-
};
|
|
19
|
-
function Qa(r, t, e) {
|
|
20
|
-
var a = t.getComponentByElement(r.topTarget);
|
|
21
|
-
if (!a || a === e || Ja.hasOwnProperty(a.mainType))
|
|
22
|
-
return !1;
|
|
23
|
-
var o = a.coordinateSystem;
|
|
24
|
-
if (!o || o.model === e)
|
|
25
|
-
return !1;
|
|
26
|
-
var n = rt(a), i = rt(e);
|
|
27
|
-
return !((n.zlevel - i.zlevel || n.z - i.z) <= 0);
|
|
28
|
-
}
|
|
29
|
-
var en = (
|
|
30
|
-
/** @class */
|
|
31
|
-
(function(r) {
|
|
32
|
-
Q(t, r);
|
|
33
|
-
function t(e) {
|
|
34
|
-
var a = r.call(this) || this;
|
|
35
|
-
a._zr = e;
|
|
36
|
-
var o = D(a._mousedownHandler, a), n = D(a._mousemoveHandler, a), i = D(a._mouseupHandler, a), s = D(a._mousewheelHandler, a), l = D(a._pinchHandler, a);
|
|
37
|
-
return a.enable = function(u, c) {
|
|
38
|
-
var f = c.zInfo, v = rt(f.component), h = v.z, g = v.zlevel, b = {
|
|
39
|
-
component: f.component,
|
|
40
|
-
z: h,
|
|
41
|
-
zlevel: g,
|
|
42
|
-
// By default roam controller is the lowest z2 comparing to other elememts in a component.
|
|
43
|
-
z2: Pe(f.z2, -1 / 0)
|
|
44
|
-
}, M = de({}, c.triggerInfo);
|
|
45
|
-
this._opt = be(de({}, c), {
|
|
46
|
-
zoomOnMouseWheel: !0,
|
|
47
|
-
moveOnMouseMove: !0,
|
|
48
|
-
// By default, wheel do not trigger move.
|
|
49
|
-
moveOnMouseWheel: !1,
|
|
50
|
-
preventDefaultMouseMove: !0,
|
|
51
|
-
zInfoParsed: b,
|
|
52
|
-
triggerInfo: M,
|
|
53
|
-
cursorGrab: "grab",
|
|
54
|
-
cursorGrabbing: "grabbing"
|
|
55
|
-
}), u == null && (u = !0), (!this._enabled || this._controlType !== u) && (this.disable(), this._enabled = !0, (u === !0 || u === "move" || u === "pan") && (_e(e, "mousedown", o, b), _e(e, "mousemove", n, b), _e(e, "mouseup", i, b)), (u === !0 || u === "scale" || u === "zoom") && (_e(e, "mousewheel", s, b), _e(e, "pinch", l, b)));
|
|
56
|
-
}, a.disable = function() {
|
|
57
|
-
this._enabled && (this._enabled = !1, Se(e, "mousedown", o), Se(e, "mousemove", n), Se(e, "mouseup", i), Se(e, "mousewheel", s), Se(e, "pinch", l));
|
|
58
|
-
}, a;
|
|
59
|
-
}
|
|
60
|
-
return t.prototype.isDragging = function() {
|
|
61
|
-
return this._dragging;
|
|
62
|
-
}, t.prototype.isPinching = function() {
|
|
63
|
-
return this._pinching;
|
|
64
|
-
}, t.prototype._checkPointer = function(e, a, o) {
|
|
65
|
-
var n = this._opt, i = n.zInfoParsed;
|
|
66
|
-
if (Qa(e, n.api, i.component))
|
|
67
|
-
return !1;
|
|
68
|
-
var s = n.triggerInfo, l = s.roamTrigger, u = !1;
|
|
69
|
-
return l === "global" && (u = !0), u || (u = s.isInSelf(e, a, o)), u && s.isInClip && !s.isInClip(e, a, o) && (u = !1), u;
|
|
70
|
-
}, t.prototype._decideCursorStyle = function(e, a, o, n) {
|
|
71
|
-
var i = e.target;
|
|
72
|
-
if (!i && this._checkPointer(e, a, o))
|
|
73
|
-
return this._opt.cursorGrab;
|
|
74
|
-
if (n)
|
|
75
|
-
return i && i.cursor || "default";
|
|
76
|
-
}, t.prototype.dispose = function() {
|
|
77
|
-
this.disable();
|
|
78
|
-
}, t.prototype._mousedownHandler = function(e) {
|
|
79
|
-
if (!(wt(e) || ye(e))) {
|
|
80
|
-
for (var a = e.target; a; ) {
|
|
81
|
-
if (a.draggable)
|
|
82
|
-
return;
|
|
83
|
-
a = a.__hostTarget || a.parent;
|
|
84
|
-
}
|
|
85
|
-
var o = e.offsetX, n = e.offsetY;
|
|
86
|
-
this._checkPointer(e, o, n) && (this._x = o, this._y = n, this._dragging = !0);
|
|
87
|
-
}
|
|
88
|
-
}, t.prototype._mousemoveHandler = function(e) {
|
|
89
|
-
var a = this._zr;
|
|
90
|
-
if (!(e.gestureEvent === "pinch" || Bt(a, "globalPan") || ye(e))) {
|
|
91
|
-
var o = e.offsetX, n = e.offsetY;
|
|
92
|
-
if (!this._dragging || !Le("moveOnMouseMove", e, this._opt)) {
|
|
93
|
-
var i = this._decideCursorStyle(e, o, n, !1);
|
|
94
|
-
i && a.setCursorStyle(i);
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
a.setCursorStyle(this._opt.cursorGrabbing);
|
|
98
|
-
var s = this._x, l = this._y, u = o - s, c = n - l;
|
|
99
|
-
this._x = o, this._y = n, this._opt.preventDefaultMouseMove && Ie(e.event), e.__ecRoamConsumed = !0, Ft(this, "pan", "moveOnMouseMove", e, {
|
|
100
|
-
dx: u,
|
|
101
|
-
dy: c,
|
|
102
|
-
oldX: s,
|
|
103
|
-
oldY: l,
|
|
104
|
-
newX: o,
|
|
105
|
-
newY: n,
|
|
106
|
-
isAvailableBehavior: null
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}, t.prototype._mouseupHandler = function(e) {
|
|
110
|
-
if (!ye(e)) {
|
|
111
|
-
var a = this._zr;
|
|
112
|
-
if (!wt(e)) {
|
|
113
|
-
this._dragging = !1;
|
|
114
|
-
var o = this._decideCursorStyle(e, e.offsetX, e.offsetY, !0);
|
|
115
|
-
o && a.setCursorStyle(o);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}, t.prototype._mousewheelHandler = function(e) {
|
|
119
|
-
if (!ye(e)) {
|
|
120
|
-
var a = Le("zoomOnMouseWheel", e, this._opt), o = Le("moveOnMouseWheel", e, this._opt), n = e.wheelDelta, i = Math.abs(n), s = e.offsetX, l = e.offsetY;
|
|
121
|
-
if (!(n === 0 || !a && !o)) {
|
|
122
|
-
if (a) {
|
|
123
|
-
var u = i > 3 ? 1.4 : i > 1 ? 1.2 : 1.1, c = n > 0 ? u : 1 / u;
|
|
124
|
-
this._checkTriggerMoveZoom(this, "zoom", "zoomOnMouseWheel", e, {
|
|
125
|
-
scale: c,
|
|
126
|
-
originX: s,
|
|
127
|
-
originY: l,
|
|
128
|
-
isAvailableBehavior: null
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
if (o) {
|
|
132
|
-
var f = Math.abs(n), v = (n > 0 ? 1 : -1) * (f > 3 ? 0.4 : f > 1 ? 0.15 : 0.05);
|
|
133
|
-
this._checkTriggerMoveZoom(this, "scrollMove", "moveOnMouseWheel", e, {
|
|
134
|
-
scrollDelta: v,
|
|
135
|
-
originX: s,
|
|
136
|
-
originY: l,
|
|
137
|
-
isAvailableBehavior: null
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, t.prototype._pinchHandler = function(e) {
|
|
143
|
-
if (!(Bt(this._zr, "globalPan") || ye(e))) {
|
|
144
|
-
var a = e.pinchScale > 1 ? 1.1 : 1 / 1.1;
|
|
145
|
-
this._checkTriggerMoveZoom(this, "zoom", null, e, {
|
|
146
|
-
scale: a,
|
|
147
|
-
originX: e.pinchX,
|
|
148
|
-
originY: e.pinchY,
|
|
149
|
-
isAvailableBehavior: null
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}, t.prototype._checkTriggerMoveZoom = function(e, a, o, n, i) {
|
|
153
|
-
e._checkPointer(n, i.originX, i.originY) && (Ie(n.event), n.__ecRoamConsumed = !0, Ft(e, a, o, n, i));
|
|
154
|
-
}, t;
|
|
155
|
-
})(Br)
|
|
156
|
-
);
|
|
157
|
-
function ye(r) {
|
|
158
|
-
return r.__ecRoamConsumed;
|
|
159
|
-
}
|
|
160
|
-
var tn = ue();
|
|
161
|
-
function Fe(r) {
|
|
162
|
-
var t = tn(r);
|
|
163
|
-
return t.roam = t.roam || {}, t.uniform = t.uniform || {}, t;
|
|
164
|
-
}
|
|
165
|
-
function _e(r, t, e, a) {
|
|
166
|
-
for (var o = Fe(r), n = o.roam, i = n[t] = n[t] || [], s = 0; s < i.length; s++) {
|
|
167
|
-
var l = i[s].zInfoParsed;
|
|
168
|
-
if ((l.zlevel - a.zlevel || l.z - a.z || l.z2 - a.z2) <= 0)
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
i.splice(s, 0, {
|
|
172
|
-
listener: e,
|
|
173
|
-
zInfoParsed: a
|
|
174
|
-
}), rn(r, t);
|
|
175
|
-
}
|
|
176
|
-
function Se(r, t, e) {
|
|
177
|
-
for (var a = Fe(r), o = a.roam[t] || [], n = 0; n < o.length; n++)
|
|
178
|
-
if (o[n].listener === e) {
|
|
179
|
-
o.splice(n, 1), o.length || an(r, t);
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
function rn(r, t) {
|
|
184
|
-
var e = Fe(r);
|
|
185
|
-
e.uniform[t] || r.on(t, e.uniform[t] = function(a) {
|
|
186
|
-
var o = e.roam[t];
|
|
187
|
-
if (o)
|
|
188
|
-
for (var n = 0; n < o.length; n++)
|
|
189
|
-
o[n].listener(a);
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
function an(r, t) {
|
|
193
|
-
var e = Fe(r), a = e.uniform;
|
|
194
|
-
a[t] && (r.off(t, a[t]), a[t] = null);
|
|
195
|
-
}
|
|
196
|
-
function Ft(r, t, e, a, o) {
|
|
197
|
-
o.isAvailableBehavior = D(Le, null, e, a), r.trigger(t, o);
|
|
198
|
-
}
|
|
199
|
-
function Le(r, t, e) {
|
|
200
|
-
var a = e[r];
|
|
201
|
-
return !r || a && (!lt(a) || t.event[a + "Key"]);
|
|
202
|
-
}
|
|
203
|
-
var nn = 0, Gt = 1, on = 2;
|
|
204
|
-
var sn = "view";
|
|
205
|
-
(function(r) {
|
|
206
|
-
Q(t, r);
|
|
207
|
-
function t(e, a, o) {
|
|
208
|
-
var n = r.call(this) || this;
|
|
209
|
-
n.type = sn, n.dimensions = ["x", "y"];
|
|
210
|
-
var i = n;
|
|
211
|
-
i.invertY = e, i.lgCt = a, i.lgGeo = o;
|
|
212
|
-
var s = i.trans = [];
|
|
213
|
-
return s[nn] = Ye(), s[Gt] = Ye(), s[on] = Ye(), i.mtRaw = Re(), i.mtRawInv = Re(), i.mtOverall = Re(), i.mtOverallInv = Re(), i.zoom = 1, n;
|
|
214
|
-
}
|
|
215
|
-
return t.prototype.getBoundingRect = function() {
|
|
216
|
-
return un(null, this);
|
|
217
|
-
}, t.prototype.getViewRect = function() {
|
|
218
|
-
return cn(null, this);
|
|
219
|
-
}, t.prototype.getRoamTransform = function() {
|
|
220
|
-
return Fr(this.trans[Gt]);
|
|
221
|
-
}, t.prototype.dataToPoint = function(e, a, o) {
|
|
222
|
-
var n = a ? this.mtRaw : this.mtOverall;
|
|
223
|
-
return o = o || [], n ? Et(o, e, n) : Ct(o, e);
|
|
224
|
-
}, t.prototype.pointToData = function(e, a, o) {
|
|
225
|
-
o = o || [];
|
|
226
|
-
var n = this.mtOverallInv;
|
|
227
|
-
return n ? Et(o, e, n) : Ct(o, e);
|
|
228
|
-
}, t.prototype.convertToPixel = function(e, a, o) {
|
|
229
|
-
var n = Ht(a);
|
|
230
|
-
return n === this ? n.dataToPoint(o) : null;
|
|
231
|
-
}, t.prototype.convertFromPixel = function(e, a, o) {
|
|
232
|
-
var n = Ht(a);
|
|
233
|
-
return n === this ? n.pointToData(o) : null;
|
|
234
|
-
}, t.prototype.containPoint = function(e) {
|
|
235
|
-
var a = this;
|
|
236
|
-
return ut(De, a.dataRect), Gr(De, De, a.mtOverall), Hr(De, e[0], e[1]);
|
|
237
|
-
}, t.dimensions = ["x", "y"], t;
|
|
238
|
-
})(Yr);
|
|
239
|
-
var De = Be();
|
|
240
|
-
function ln(r) {
|
|
241
|
-
return r.zoom;
|
|
242
|
-
}
|
|
243
|
-
function un(r, t) {
|
|
244
|
-
return ut(Be(), t.dataRect);
|
|
245
|
-
}
|
|
246
|
-
function cn(r, t) {
|
|
247
|
-
return ut(Be(), t.viewRect);
|
|
248
|
-
}
|
|
249
|
-
Be();
|
|
250
|
-
function Ht(r) {
|
|
251
|
-
var t = r.seriesModel;
|
|
252
|
-
return t ? t.coordinateSystem : null;
|
|
253
|
-
}
|
|
254
|
-
var Yt = {
|
|
255
|
-
color: "fill",
|
|
256
|
-
borderColor: "stroke"
|
|
257
|
-
}, fn = {
|
|
258
|
-
symbol: 1,
|
|
259
|
-
symbolSize: 1,
|
|
260
|
-
symbolKeepAspect: 1,
|
|
261
|
-
legendIcon: 1,
|
|
262
|
-
visualMeta: 1,
|
|
263
|
-
liftZ: 1,
|
|
264
|
-
decal: 1
|
|
265
|
-
}, ee = ue(), vn = (
|
|
266
|
-
/** @class */
|
|
267
|
-
(function(r) {
|
|
268
|
-
Q(t, r);
|
|
269
|
-
function t() {
|
|
270
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
271
|
-
return e.type = t.type, e;
|
|
272
|
-
}
|
|
273
|
-
return t.prototype.optionUpdated = function() {
|
|
274
|
-
this.currentZLevel = this.get("zlevel", !0), this.currentZ = this.get("z", !0);
|
|
275
|
-
}, t.prototype.getInitialData = function(e, a) {
|
|
276
|
-
return Wr(null, this);
|
|
277
|
-
}, t.prototype.getDataParams = function(e, a, o) {
|
|
278
|
-
var n = r.prototype.getDataParams.call(this, e, a);
|
|
279
|
-
return o && (n.info = ee(o).info), n;
|
|
280
|
-
}, t.type = "series.custom", t.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar", "matrix"], t.defaultOption = {
|
|
281
|
-
coordinateSystem: "cartesian2d",
|
|
282
|
-
// zlevel: 0,
|
|
283
|
-
z: 2,
|
|
284
|
-
legendHoverLink: !0,
|
|
285
|
-
// Custom series will not clip by default.
|
|
286
|
-
// Some case will use custom series to draw label
|
|
287
|
-
// For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight
|
|
288
|
-
clip: !1
|
|
289
|
-
// Cartesian coordinate system
|
|
290
|
-
// xAxisIndex: 0,
|
|
291
|
-
// yAxisIndex: 0,
|
|
292
|
-
// Polar coordinate system
|
|
293
|
-
// polarIndex: 0,
|
|
294
|
-
// Geo coordinate system
|
|
295
|
-
// geoIndex: 0,
|
|
296
|
-
}, t;
|
|
297
|
-
})(Ur)
|
|
298
|
-
);
|
|
299
|
-
function hn(r, t) {
|
|
300
|
-
return t = t || [0, 0], Ee(["x", "y"], function(e, a) {
|
|
301
|
-
var o = this.getAxis(e), n = t[a], i = r[a] / 2;
|
|
302
|
-
return o.type === "category" ? ct(o).w : Math.abs(o.dataToCoord(n - i) - o.dataToCoord(n + i));
|
|
303
|
-
}, this);
|
|
304
|
-
}
|
|
305
|
-
function dn(r) {
|
|
306
|
-
var t = r.master.getRect();
|
|
307
|
-
return {
|
|
308
|
-
coordSys: {
|
|
309
|
-
// The name exposed to user is always 'cartesian2d' but not 'grid'.
|
|
310
|
-
type: "cartesian2d",
|
|
311
|
-
x: t.x,
|
|
312
|
-
y: t.y,
|
|
313
|
-
width: t.width,
|
|
314
|
-
height: t.height
|
|
315
|
-
},
|
|
316
|
-
api: {
|
|
317
|
-
coord: function(e) {
|
|
318
|
-
return r.dataToPoint(e);
|
|
319
|
-
},
|
|
320
|
-
size: D(hn, r)
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
function pn(r, t) {
|
|
325
|
-
return t = t || [0, 0], Ee([0, 1], function(e) {
|
|
326
|
-
var a = t[e], o = r[e] / 2, n = [], i = [];
|
|
327
|
-
return n[e] = a - o, i[e] = a + o, n[1 - e] = i[1 - e] = t[1 - e], Math.abs(this.dataToPoint(n)[e] - this.dataToPoint(i)[e]);
|
|
328
|
-
}, this);
|
|
329
|
-
}
|
|
330
|
-
function gn(r) {
|
|
331
|
-
var t = r.view, e = t.getBoundingRect();
|
|
332
|
-
return {
|
|
333
|
-
coordSys: {
|
|
334
|
-
type: "geo",
|
|
335
|
-
x: e.x,
|
|
336
|
-
y: e.y,
|
|
337
|
-
width: e.width,
|
|
338
|
-
height: e.height,
|
|
339
|
-
zoom: ln(t)
|
|
340
|
-
},
|
|
341
|
-
api: {
|
|
342
|
-
coord: function(a) {
|
|
343
|
-
return r.dataToPoint(a);
|
|
344
|
-
},
|
|
345
|
-
size: D(pn, r)
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function mn(r, t) {
|
|
350
|
-
var e = this.getAxis(), a = t instanceof Array ? t[0] : t, o = (r instanceof Array ? r[0] : r) / 2;
|
|
351
|
-
return e.type === "category" ? ct(e).w : Math.abs(e.dataToCoord(a - o) - e.dataToCoord(a + o));
|
|
352
|
-
}
|
|
353
|
-
function yn(r) {
|
|
354
|
-
var t = r.getRect();
|
|
355
|
-
return {
|
|
356
|
-
coordSys: {
|
|
357
|
-
type: "singleAxis",
|
|
358
|
-
x: t.x,
|
|
359
|
-
y: t.y,
|
|
360
|
-
width: t.width,
|
|
361
|
-
height: t.height
|
|
362
|
-
},
|
|
363
|
-
api: {
|
|
364
|
-
coord: function(e) {
|
|
365
|
-
return r.dataToPoint(e);
|
|
366
|
-
},
|
|
367
|
-
size: D(mn, r)
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
function _n(r, t) {
|
|
372
|
-
return t = t || [0, 0], Ee(["Radius", "Angle"], function(e, a) {
|
|
373
|
-
var o = "get" + e + "Axis", n = this[o](), i = t[a], s = r[a] / 2, l = n.type === "category" ? ct(n).w : Math.abs(n.dataToCoord(i - s) - n.dataToCoord(i + s));
|
|
374
|
-
return e === "Angle" && (l = l * Math.PI / 180), l;
|
|
375
|
-
}, this);
|
|
376
|
-
}
|
|
377
|
-
function Sn(r) {
|
|
378
|
-
var t = r.getRadiusAxis(), e = r.getAngleAxis(), a = t.getExtent();
|
|
379
|
-
return a[0] > a[1] && a.reverse(), {
|
|
380
|
-
coordSys: {
|
|
381
|
-
type: "polar",
|
|
382
|
-
cx: r.cx,
|
|
383
|
-
cy: r.cy,
|
|
384
|
-
r: a[1],
|
|
385
|
-
r0: a[0]
|
|
386
|
-
},
|
|
387
|
-
api: {
|
|
388
|
-
coord: function(o) {
|
|
389
|
-
var n = t.dataToRadius(o[0]), i = e.dataToAngle(o[1]), s = r.coordToPoint([n, i]);
|
|
390
|
-
return s.push(n, i * Math.PI / 180), s;
|
|
391
|
-
},
|
|
392
|
-
size: D(_n, r)
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
function xn(r) {
|
|
397
|
-
var t = r.getRect(), e = r.getRangeInfo();
|
|
398
|
-
return {
|
|
399
|
-
coordSys: {
|
|
400
|
-
type: "calendar",
|
|
401
|
-
x: t.x,
|
|
402
|
-
y: t.y,
|
|
403
|
-
width: t.width,
|
|
404
|
-
height: t.height,
|
|
405
|
-
cellWidth: r.getCellWidth(),
|
|
406
|
-
cellHeight: r.getCellHeight(),
|
|
407
|
-
rangeInfo: {
|
|
408
|
-
start: e.start,
|
|
409
|
-
end: e.end,
|
|
410
|
-
weeks: e.weeks,
|
|
411
|
-
dayCount: e.allDay
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
api: {
|
|
415
|
-
coord: function(a, o) {
|
|
416
|
-
return r.dataToPoint(a, o);
|
|
417
|
-
},
|
|
418
|
-
layout: function(a, o) {
|
|
419
|
-
return r.dataToLayout(a, o);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
function Mn(r) {
|
|
425
|
-
var t = r.getRect();
|
|
426
|
-
return {
|
|
427
|
-
coordSys: {
|
|
428
|
-
type: "matrix",
|
|
429
|
-
x: t.x,
|
|
430
|
-
y: t.y,
|
|
431
|
-
width: t.width,
|
|
432
|
-
height: t.height
|
|
433
|
-
},
|
|
434
|
-
api: {
|
|
435
|
-
coord: function(e, a) {
|
|
436
|
-
return r.dataToPoint(e, a);
|
|
437
|
-
},
|
|
438
|
-
layout: function(e, a) {
|
|
439
|
-
return r.dataToLayout(e, a);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
var dr = {
|
|
445
|
-
position: ["x", "y"],
|
|
446
|
-
scale: ["scaleX", "scaleY"],
|
|
447
|
-
origin: ["originX", "originY"]
|
|
448
|
-
}, Wt = ge(dr), Oe = Xr(Ae, function(r, t) {
|
|
449
|
-
return r[t] = 1, r;
|
|
450
|
-
}, {}), Ut = Ae.join(", "), ze = ["", "style", "shape", "extra"], pe = ue();
|
|
451
|
-
function ht(r, t, e, a, o) {
|
|
452
|
-
var n = r + "Animation", i = or(r, a, o) || {}, s = pe(t).userDuring;
|
|
453
|
-
return i.duration > 0 && (i.during = s ? D(Dn, {
|
|
454
|
-
el: t,
|
|
455
|
-
userDuring: s
|
|
456
|
-
}) : null, i.setToFinal = !0, i.scope = r), de(i, e[n]), i;
|
|
457
|
-
}
|
|
458
|
-
function bn(r, t, e, a) {
|
|
459
|
-
a = a || {};
|
|
460
|
-
var o = a.dataIndex, n = a.isInit, i = a.clearStyle, s = e.isAnimationEnabled(), l = pe(r), u = t.style;
|
|
461
|
-
l.userDuring = t.during;
|
|
462
|
-
var c = {}, f = {};
|
|
463
|
-
if (Ln(r, t, f), r.type === "compound")
|
|
464
|
-
for (var v = r.shape.paths, h = t.shape.paths, g = 0; g < h.length; g++) {
|
|
465
|
-
var b = h[g];
|
|
466
|
-
$e("shape", b, v[g]);
|
|
467
|
-
}
|
|
468
|
-
else
|
|
469
|
-
$e("shape", t, f), $e("extra", t, f);
|
|
470
|
-
if (!n && s && (Tn(r, t, c), $t("shape", r, t, c), $t("extra", r, t, c), Pn(r, t, u, c)), f.style = u, wn(r, f, i), Cn(r, t), s)
|
|
471
|
-
if (n) {
|
|
472
|
-
var M = {};
|
|
473
|
-
C(ze, function(E) {
|
|
474
|
-
var R = E ? t[E] : t;
|
|
475
|
-
R && R.enterFrom && (E && (M[E] = M[E] || {}), de(E ? M[E] : M, R.enterFrom));
|
|
476
|
-
});
|
|
477
|
-
var A = ht("enter", r, t, e, o);
|
|
478
|
-
A.duration > 0 && r.animateFrom(M, A);
|
|
479
|
-
} else
|
|
480
|
-
En(r, t, o || 0, e, c);
|
|
481
|
-
An(r, t), u ? r.dirty() : r.markRedraw();
|
|
482
|
-
}
|
|
483
|
-
function An(r, t) {
|
|
484
|
-
for (var e = pe(r).leaveToProps, a = 0; a < ze.length; a++) {
|
|
485
|
-
var o = ze[a], n = o ? t[o] : t;
|
|
486
|
-
n && n.leaveTo && (e || (e = pe(r).leaveToProps = {}), o && (e[o] = e[o] || {}), de(o ? e[o] : e, n.leaveTo));
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function dt(r, t, e, a) {
|
|
490
|
-
if (r) {
|
|
491
|
-
var o = r.parent, n = pe(r).leaveToProps;
|
|
492
|
-
if (n) {
|
|
493
|
-
var i = ht("update", r, t, e, 0);
|
|
494
|
-
i.done = function() {
|
|
495
|
-
o && o.remove(r);
|
|
496
|
-
}, r.animateTo(n, i);
|
|
497
|
-
} else
|
|
498
|
-
o && o.remove(r);
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
function he(r) {
|
|
502
|
-
return r === "all";
|
|
503
|
-
}
|
|
504
|
-
function wn(r, t, e) {
|
|
505
|
-
var a = t.style;
|
|
506
|
-
if (!r.isGroup && a) {
|
|
507
|
-
if (e) {
|
|
508
|
-
r.useStyle({});
|
|
509
|
-
for (var o = r.animators, n = 0; n < o.length; n++) {
|
|
510
|
-
var i = o[n];
|
|
511
|
-
i.targetName === "style" && i.changeTarget(r.style);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
r.setStyle(a);
|
|
515
|
-
}
|
|
516
|
-
t && (t.style = null, t && r.attr(t), t.style = a);
|
|
517
|
-
}
|
|
518
|
-
function En(r, t, e, a, o) {
|
|
519
|
-
if (o) {
|
|
520
|
-
var n = ht("update", r, t, a, e);
|
|
521
|
-
n.duration > 0 && r.animateFrom(o, n);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
function Cn(r, t) {
|
|
525
|
-
N(t, "silent") && (r.silent = t.silent), N(t, "ignore") && (r.ignore = t.ignore), r instanceof ir && N(t, "invisible") && (r.invisible = t.invisible), r instanceof sr && N(t, "autoBatch") && (r.autoBatch = t.autoBatch);
|
|
526
|
-
}
|
|
527
|
-
var J = {}, Rn = {
|
|
528
|
-
// Usually other props do not need to be changed in animation during.
|
|
529
|
-
setTransform: function(r, t) {
|
|
530
|
-
return process.env.NODE_ENV !== "production" && H(N(Oe, r), "Only " + Ut + " available in `setTransform`."), J.el[r] = t, this;
|
|
531
|
-
},
|
|
532
|
-
getTransform: function(r) {
|
|
533
|
-
return process.env.NODE_ENV !== "production" && H(N(Oe, r), "Only " + Ut + " available in `getTransform`."), J.el[r];
|
|
534
|
-
},
|
|
535
|
-
setShape: function(r, t) {
|
|
536
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
537
|
-
var e = J.el, a = e.shape || (e.shape = {});
|
|
538
|
-
return a[r] = t, e.dirtyShape && e.dirtyShape(), this;
|
|
539
|
-
},
|
|
540
|
-
getShape: function(r) {
|
|
541
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
542
|
-
var t = J.el.shape;
|
|
543
|
-
if (t)
|
|
544
|
-
return t[r];
|
|
545
|
-
},
|
|
546
|
-
setStyle: function(r, t) {
|
|
547
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
548
|
-
var e = J.el, a = e.style;
|
|
549
|
-
return a && (process.env.NODE_ENV !== "production" && $r(t) && ft("style." + r + " must not be assigned with NaN."), a[r] = t, e.dirtyStyle && e.dirtyStyle()), this;
|
|
550
|
-
},
|
|
551
|
-
getStyle: function(r) {
|
|
552
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
553
|
-
var t = J.el.style;
|
|
554
|
-
if (t)
|
|
555
|
-
return t[r];
|
|
556
|
-
},
|
|
557
|
-
setExtra: function(r, t) {
|
|
558
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
559
|
-
var e = J.el.extra || (J.el.extra = {});
|
|
560
|
-
return e[r] = t, this;
|
|
561
|
-
},
|
|
562
|
-
getExtra: function(r) {
|
|
563
|
-
process.env.NODE_ENV !== "production" && fe(r);
|
|
564
|
-
var t = J.el.extra;
|
|
565
|
-
if (t)
|
|
566
|
-
return t[r];
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
function fe(r) {
|
|
570
|
-
if (process.env.NODE_ENV !== "production" && (r === "transition" || r === "enterFrom" || r === "leaveTo"))
|
|
571
|
-
throw new Error('key must not be "' + r + '"');
|
|
572
|
-
}
|
|
573
|
-
function Dn() {
|
|
574
|
-
var r = this, t = r.el;
|
|
575
|
-
if (t) {
|
|
576
|
-
var e = pe(t).userDuring, a = r.userDuring;
|
|
577
|
-
if (e !== a) {
|
|
578
|
-
r.el = r.userDuring = null;
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
J.el = t, a(Rn);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
function $t(r, t, e, a) {
|
|
585
|
-
var o = e[r];
|
|
586
|
-
if (o) {
|
|
587
|
-
var n = t[r], i;
|
|
588
|
-
if (n) {
|
|
589
|
-
var s = e.transition, l = o.transition;
|
|
590
|
-
if (l)
|
|
591
|
-
if (!i && (i = a[r] = {}), he(l))
|
|
592
|
-
de(i, n);
|
|
593
|
-
else
|
|
594
|
-
for (var u = vt(l), c = 0; c < u.length; c++) {
|
|
595
|
-
var f = u[c], v = n[f];
|
|
596
|
-
i[f] = v;
|
|
597
|
-
}
|
|
598
|
-
else if (he(s) || me(s, r) >= 0) {
|
|
599
|
-
!i && (i = a[r] = {});
|
|
600
|
-
for (var h = ge(n), c = 0; c < h.length; c++) {
|
|
601
|
-
var f = h[c], v = n[f];
|
|
602
|
-
In(o[f], v) && (i[f] = v);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
function $e(r, t, e) {
|
|
609
|
-
var a = t[r];
|
|
610
|
-
if (a)
|
|
611
|
-
for (var o = e[r] = {}, n = ge(a), i = 0; i < n.length; i++) {
|
|
612
|
-
var s = n[i];
|
|
613
|
-
o[s] = Kr(a[s]);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function Tn(r, t, e) {
|
|
617
|
-
for (var a = t.transition, o = he(a) ? Ae : vt(a || []), n = 0; n < o.length; n++) {
|
|
618
|
-
var i = o[n];
|
|
619
|
-
if (!(i === "style" || i === "shape" || i === "extra")) {
|
|
620
|
-
var s = r[i];
|
|
621
|
-
process.env.NODE_ENV !== "production" && pr(i, "el.transition"), e[i] = s;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
function Ln(r, t, e) {
|
|
626
|
-
for (var a = 0; a < Wt.length; a++) {
|
|
627
|
-
var o = Wt[a], n = dr[o], i = t[o];
|
|
628
|
-
i && (e[n[0]] = i[0], e[n[1]] = i[1]);
|
|
629
|
-
}
|
|
630
|
-
for (var a = 0; a < Ae.length; a++) {
|
|
631
|
-
var s = Ae[a];
|
|
632
|
-
t[s] != null && (e[s] = t[s]);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function Pn(r, t, e, a) {
|
|
636
|
-
if (e) {
|
|
637
|
-
var o = r.style, n;
|
|
638
|
-
if (o) {
|
|
639
|
-
var i = e.transition, s = t.transition;
|
|
640
|
-
if (i && !he(i)) {
|
|
641
|
-
var l = vt(i);
|
|
642
|
-
!n && (n = a.style = {});
|
|
643
|
-
for (var u = 0; u < l.length; u++) {
|
|
644
|
-
var c = l[u], f = o[c];
|
|
645
|
-
n[c] = f;
|
|
646
|
-
}
|
|
647
|
-
} else if (r.getAnimationStyleProps && (he(s) || he(i) || me(s, "style") >= 0)) {
|
|
648
|
-
var v = r.getAnimationStyleProps(), h = v ? v.style : null;
|
|
649
|
-
if (h) {
|
|
650
|
-
!n && (n = a.style = {});
|
|
651
|
-
for (var g = ge(e), u = 0; u < g.length; u++) {
|
|
652
|
-
var c = g[u];
|
|
653
|
-
if (h[c]) {
|
|
654
|
-
var f = o[c];
|
|
655
|
-
n[c] = f;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
function In(r, t) {
|
|
664
|
-
return jr(r) ? r !== t : r != null && isFinite(r);
|
|
665
|
-
}
|
|
666
|
-
var pr;
|
|
667
|
-
process.env.NODE_ENV !== "production" && (pr = function(r, t) {
|
|
668
|
-
N(Oe, r) || ft("Prop `" + r + "` is not a permitted in `" + t + "`. Only `" + ge(Oe).join("`, `") + "` are permitted.");
|
|
669
|
-
});
|
|
670
|
-
var gr = ue(), On = ["percent", "easing", "shape", "style", "extra"];
|
|
671
|
-
function zn(r) {
|
|
672
|
-
r.stopAnimation("keyframe"), r.attr(gr(r));
|
|
673
|
-
}
|
|
674
|
-
function mr(r, t, e) {
|
|
675
|
-
if (!(!e.isAnimationEnabled() || !t)) {
|
|
676
|
-
if (qr(t)) {
|
|
677
|
-
C(t, function(s) {
|
|
678
|
-
mr(r, s, e);
|
|
679
|
-
});
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
var a = t.keyframes, o = t.duration;
|
|
683
|
-
if (e && o == null) {
|
|
684
|
-
var n = or("enter", e, 0);
|
|
685
|
-
o = n && n.duration;
|
|
686
|
-
}
|
|
687
|
-
if (!(!a || !o)) {
|
|
688
|
-
var i = gr(r);
|
|
689
|
-
C(ze, function(s) {
|
|
690
|
-
if (!(s && !r[s])) {
|
|
691
|
-
var l, u = !1;
|
|
692
|
-
a.sort(function(c, f) {
|
|
693
|
-
return c.percent - f.percent;
|
|
694
|
-
}), C(a, function(c) {
|
|
695
|
-
var f = r.animators, v = s ? c[s] : c;
|
|
696
|
-
if (process.env.NODE_ENV !== "production" && c.percent >= 1 && (u = !0), !!v) {
|
|
697
|
-
var h = ge(v);
|
|
698
|
-
if (s || (h = Jr(h, function(M) {
|
|
699
|
-
return me(On, M) < 0;
|
|
700
|
-
})), !!h.length) {
|
|
701
|
-
l || (l = r.animate(s, t.loop, !0), l.scope = "keyframe");
|
|
702
|
-
for (var g = 0; g < f.length; g++)
|
|
703
|
-
f[g] !== l && f[g].targetName === l.targetName && f[g].stopTracks(h);
|
|
704
|
-
s && (i[s] = i[s] || {});
|
|
705
|
-
var b = s ? i[s] : i;
|
|
706
|
-
C(h, function(M) {
|
|
707
|
-
b[M] = ((s ? r[s] : r) || {})[M];
|
|
708
|
-
}), l.whenWithKeys(o * c.percent, v, h, c.easing);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}), l && (process.env.NODE_ENV !== "production" && (u || ft("End frame with percent: 1 is missing in the keyframeAnimation.", !0)), l.delay(t.delay || 0).duration(o).start(t.easing));
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
var te = "emphasis", ae = "normal", pt = "blur", gt = "select", ie = [ae, te, pt, gt], Xe = {
|
|
718
|
-
normal: ["itemStyle"],
|
|
719
|
-
emphasis: [te, "itemStyle"],
|
|
720
|
-
blur: [pt, "itemStyle"],
|
|
721
|
-
select: [gt, "itemStyle"]
|
|
722
|
-
}, Ke = {
|
|
723
|
-
normal: ["label"],
|
|
724
|
-
emphasis: [te, "label"],
|
|
725
|
-
blur: [pt, "label"],
|
|
726
|
-
select: [gt, "label"]
|
|
727
|
-
}, Zn = ["x", "y"], Nn = "e\0\0", U = {
|
|
728
|
-
normal: {},
|
|
729
|
-
emphasis: {},
|
|
730
|
-
blur: {},
|
|
731
|
-
select: {}
|
|
732
|
-
}, Xt = {
|
|
733
|
-
cartesian2d: dn,
|
|
734
|
-
geo: gn,
|
|
735
|
-
single: yn,
|
|
736
|
-
polar: Sn,
|
|
737
|
-
calendar: xn,
|
|
738
|
-
matrix: Mn
|
|
739
|
-
};
|
|
740
|
-
function Ze(r) {
|
|
741
|
-
return r instanceof sr;
|
|
742
|
-
}
|
|
743
|
-
function st(r) {
|
|
744
|
-
return r instanceof ir;
|
|
745
|
-
}
|
|
746
|
-
function Vn(r, t) {
|
|
747
|
-
t.copyTransform(r), st(t) && st(r) && (t.setStyle(r.style), t.z = r.z, t.z2 = r.z2, t.zlevel = r.zlevel, t.invisible = r.invisible, t.ignore = r.ignore, Ze(t) && Ze(r) && t.setShape(r.shape));
|
|
748
|
-
}
|
|
749
|
-
var kn = (
|
|
750
|
-
/** @class */
|
|
751
|
-
(function(r) {
|
|
752
|
-
Q(t, r);
|
|
753
|
-
function t() {
|
|
754
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
755
|
-
return e.type = t.type, e;
|
|
756
|
-
}
|
|
757
|
-
return t.prototype.render = function(e, a, o, n) {
|
|
758
|
-
this._progressiveEls = null;
|
|
759
|
-
var i = this._data, s = e.getData(), l = this.group, u = Kt(e, s, a, o);
|
|
760
|
-
i || l.removeAll(), s.diff(i).add(function(f) {
|
|
761
|
-
je(o, null, f, u(f, n), e, l, s);
|
|
762
|
-
}).remove(function(f) {
|
|
763
|
-
var v = i.getItemGraphicEl(f);
|
|
764
|
-
v && dt(v, ee(v).option, e);
|
|
765
|
-
}).update(function(f, v) {
|
|
766
|
-
var h = i.getItemGraphicEl(v);
|
|
767
|
-
je(o, h, f, u(f, n), e, l, s);
|
|
768
|
-
}).execute();
|
|
769
|
-
var c = e.get("clip", !0) ? Qr(e.coordinateSystem, !1, e) : null;
|
|
770
|
-
c ? l.setClipPath(c) : l.removeClipPath(), this._data = s;
|
|
771
|
-
}, t.prototype.incrementalPrepareRender = function(e, a, o) {
|
|
772
|
-
this.group.removeAll(), this._data = null;
|
|
773
|
-
}, t.prototype.incrementalRender = function(e, a, o, n, i) {
|
|
774
|
-
var s = a.getData(), l = Kt(a, s, o, n), u = this._progressiveEls = [];
|
|
775
|
-
function c(h) {
|
|
776
|
-
h.isGroup || (h.incremental = na(a), h.ensureState("emphasis").hoverLayer = oa);
|
|
777
|
-
}
|
|
778
|
-
for (var f = e.start; f < e.end; f++) {
|
|
779
|
-
var v = je(null, null, f, l(f, i), a, this.group, s);
|
|
780
|
-
v && (v.traverse(c), u.push(v));
|
|
781
|
-
}
|
|
782
|
-
}, t.prototype.eachRendered = function(e) {
|
|
783
|
-
ea(this._progressiveEls || this.group, e);
|
|
784
|
-
}, t.prototype.filterForExposedEvent = function(e, a, o, n) {
|
|
785
|
-
var i = a.element;
|
|
786
|
-
if (i == null || o.name === i)
|
|
787
|
-
return !0;
|
|
788
|
-
for (; (o = o.__hostTarget || o.parent) && o !== this.group; )
|
|
789
|
-
if (o.name === i)
|
|
790
|
-
return !0;
|
|
791
|
-
return !1;
|
|
792
|
-
}, t.type = "custom", t;
|
|
793
|
-
})(ta)
|
|
794
|
-
);
|
|
795
|
-
function mt(r) {
|
|
796
|
-
var t = r.type, e;
|
|
797
|
-
if (t === "path") {
|
|
798
|
-
var a = r.shape, o = a.width != null && a.height != null ? {
|
|
799
|
-
x: a.x || 0,
|
|
800
|
-
y: a.y || 0,
|
|
801
|
-
width: a.width,
|
|
802
|
-
height: a.height
|
|
803
|
-
} : null, n = Sr(a);
|
|
804
|
-
e = Pt(n, null, o, a.layout || "center"), ee(e).customPathData = n;
|
|
805
|
-
} else if (t === "image")
|
|
806
|
-
e = new ua({}), ee(e).customImagePath = r.style.image;
|
|
807
|
-
else if (t === "text")
|
|
808
|
-
e = new lr({});
|
|
809
|
-
else if (t === "group")
|
|
810
|
-
e = new nt();
|
|
811
|
-
else if (t === "compoundPath") {
|
|
812
|
-
var a = r.shape;
|
|
813
|
-
if (!a || !a.paths) {
|
|
814
|
-
var i = "";
|
|
815
|
-
process.env.NODE_ENV !== "production" && (i = "shape.paths must be specified in compoundPath"), We(i);
|
|
816
|
-
}
|
|
817
|
-
var s = Ee(a.paths, function(c) {
|
|
818
|
-
if (c.type === "path")
|
|
819
|
-
return Pt(c.shape.pathData, c, null);
|
|
820
|
-
var f = It(c.type);
|
|
821
|
-
if (!f) {
|
|
822
|
-
var v = "";
|
|
823
|
-
process.env.NODE_ENV !== "production" && (v = 'graphic type "' + t + '" can not be found.'), We(v);
|
|
824
|
-
}
|
|
825
|
-
return new f();
|
|
826
|
-
});
|
|
827
|
-
e = new ca({
|
|
828
|
-
shape: {
|
|
829
|
-
paths: s
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
} else {
|
|
833
|
-
var l = It(t);
|
|
834
|
-
if (!l) {
|
|
835
|
-
var i = "";
|
|
836
|
-
process.env.NODE_ENV !== "production" && (i = 'graphic type "' + t + '" can not be found.'), We(i);
|
|
837
|
-
}
|
|
838
|
-
e = new l();
|
|
839
|
-
}
|
|
840
|
-
return ee(e).customGraphicType = t, e.name = r.name, e.z2EmphasisLift = 1, e.z2SelectLift = 1, e;
|
|
841
|
-
}
|
|
842
|
-
function yt(r, t, e, a, o, n, i) {
|
|
843
|
-
zn(t);
|
|
844
|
-
var s = o && o.normal.cfg;
|
|
845
|
-
s && t.setTextConfig(s), a && a.transition == null && (a.transition = Zn);
|
|
846
|
-
var l = a && a.style;
|
|
847
|
-
if (l) {
|
|
848
|
-
if (t.type === "text") {
|
|
849
|
-
var u = l;
|
|
850
|
-
N(u, "textFill") && (u.fill = u.textFill), N(u, "textStroke") && (u.stroke = u.textStroke);
|
|
851
|
-
}
|
|
852
|
-
var c = void 0, f = Ze(t) ? l.decal : null;
|
|
853
|
-
r && f && (f.dirty = !0, c = fa(f, r)), l.__decalPattern = c;
|
|
854
|
-
}
|
|
855
|
-
if (st(t) && l) {
|
|
856
|
-
var c = l.__decalPattern;
|
|
857
|
-
c && (l.decal = c);
|
|
858
|
-
}
|
|
859
|
-
bn(t, a, n, {
|
|
860
|
-
dataIndex: e,
|
|
861
|
-
isInit: i,
|
|
862
|
-
clearStyle: !0
|
|
863
|
-
}), mr(t, a.keyframeAnimation, n);
|
|
864
|
-
}
|
|
865
|
-
function yr(r, t, e, a, o) {
|
|
866
|
-
var n = t.isGroup ? null : t, i = o && o[r].cfg;
|
|
867
|
-
if (n) {
|
|
868
|
-
var s = n.ensureState(r);
|
|
869
|
-
if (a === !1) {
|
|
870
|
-
var l = n.getState(r);
|
|
871
|
-
l && (l.style = null);
|
|
872
|
-
} else
|
|
873
|
-
s.style = a || null;
|
|
874
|
-
i && (s.textConfig = i), va(n);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
function Bn(r, t, e) {
|
|
878
|
-
if (!r.isGroup) {
|
|
879
|
-
var a = r, o = e.currentZ, n = e.currentZLevel;
|
|
880
|
-
a.z = o, a.zlevel = n;
|
|
881
|
-
var i = t.z2;
|
|
882
|
-
i != null && (a.z2 = i || 0);
|
|
883
|
-
for (var s = 0; s < ie.length; s++)
|
|
884
|
-
Fn(a, t, ie[s]);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
function Fn(r, t, e) {
|
|
888
|
-
var a = e === ae, o = a ? t : Ne(t, e), n = o ? o.z2 : null, i;
|
|
889
|
-
n != null && (i = a ? r : r.ensureState(e), i.z2 = n || 0);
|
|
890
|
-
}
|
|
891
|
-
function Kt(r, t, e, a) {
|
|
892
|
-
var o = r.get("renderItem");
|
|
893
|
-
if (typeof o == "string") {
|
|
894
|
-
var n = ra(o);
|
|
895
|
-
n ? o = n : process.env.NODE_ENV !== "production" && console.warn("Custom series renderItem '" + o + `' not found.
|
|
896
|
-
Call 'echarts.registerCustomSeries' to register it.`);
|
|
897
|
-
}
|
|
898
|
-
var i = r.coordinateSystem, s = {};
|
|
899
|
-
i && (process.env.NODE_ENV !== "production" && (H(o, "series.render is required."), H(i.prepareCustoms || Xt[i.type], "This coordSys does not support custom series.")), s = i.prepareCustoms ? i.prepareCustoms(i) : Xt[i.type](i));
|
|
900
|
-
for (var l = be({
|
|
901
|
-
getWidth: a.getWidth,
|
|
902
|
-
getHeight: a.getHeight,
|
|
903
|
-
getZr: a.getZr,
|
|
904
|
-
getDevicePixelRatio: a.getDevicePixelRatio,
|
|
905
|
-
value: x,
|
|
906
|
-
style: F,
|
|
907
|
-
ordinalRawValue: L,
|
|
908
|
-
styleEmphasis: $,
|
|
909
|
-
visual: re,
|
|
910
|
-
barLayout: se,
|
|
911
|
-
currentSeriesIndices: Y,
|
|
912
|
-
font: q
|
|
913
|
-
}, s.api || {}), u = {
|
|
914
|
-
// The life cycle of context: current round of rendering.
|
|
915
|
-
// The global life cycle is probably not necessary, because
|
|
916
|
-
// user can store global status by themselves.
|
|
917
|
-
context: {},
|
|
918
|
-
seriesId: r.id,
|
|
919
|
-
seriesName: r.name,
|
|
920
|
-
seriesIndex: r.seriesIndex,
|
|
921
|
-
coordSys: s.coordSys,
|
|
922
|
-
dataInsideLength: t.count(),
|
|
923
|
-
encode: Gn(r.getData()),
|
|
924
|
-
itemPayload: r.get("itemPayload") || {}
|
|
925
|
-
}, c, f, v = {}, h = {}, g = {}, b = {}, M = 0; M < ie.length; M++) {
|
|
926
|
-
var A = ie[M];
|
|
927
|
-
g[A] = r.getModel(Xe[A]), b[A] = r.getModel(Ke[A]);
|
|
928
|
-
}
|
|
929
|
-
function E(p) {
|
|
930
|
-
return p === c ? f || (f = t.getItemModel(p)) : t.getItemModel(p);
|
|
931
|
-
}
|
|
932
|
-
function R(p, d) {
|
|
933
|
-
return t.hasItemOption ? p === c ? v[d] || (v[d] = E(p).getModel(Xe[d])) : E(p).getModel(Xe[d]) : g[d];
|
|
934
|
-
}
|
|
935
|
-
function y(p, d) {
|
|
936
|
-
return t.hasItemOption ? p === c ? h[d] || (h[d] = E(p).getModel(Ke[d])) : E(p).getModel(Ke[d]) : b[d];
|
|
937
|
-
}
|
|
938
|
-
return function(p, d) {
|
|
939
|
-
return c = p, f = null, v = {}, h = {}, o && o(be({
|
|
940
|
-
dataIndexInside: p,
|
|
941
|
-
dataIndex: t.getRawIndex(p),
|
|
942
|
-
// Can be used for optimization when zoom or roam.
|
|
943
|
-
actionType: d ? d.type : null
|
|
944
|
-
}, u), l);
|
|
945
|
-
};
|
|
946
|
-
function x(p, d) {
|
|
947
|
-
return d == null && (d = c), t.getStore().get(t.getDimensionIndex(p || 0), d);
|
|
948
|
-
}
|
|
949
|
-
function L(p, d) {
|
|
950
|
-
d == null && (d = c), p = p || 0;
|
|
951
|
-
var T = t.getDimensionInfo(p);
|
|
952
|
-
if (!T) {
|
|
953
|
-
var B = t.getDimensionIndex(p);
|
|
954
|
-
return B >= 0 ? t.getStore().get(B, d) : void 0;
|
|
955
|
-
}
|
|
956
|
-
var K = t.get(T.name, d), z = T && T.ordinalMeta;
|
|
957
|
-
return z ? z.categories[K] : K;
|
|
958
|
-
}
|
|
959
|
-
function F(p, d) {
|
|
960
|
-
process.env.NODE_ENV !== "production" && Rt("api.style", "Please write literal style directly instead."), d == null && (d = c);
|
|
961
|
-
var T = t.getItemVisual(d, "style"), B = T && T.fill, K = T && T.opacity, z = R(d, ae).getItemStyle();
|
|
962
|
-
B != null && (z.fill = B), K != null && (z.opacity = K);
|
|
963
|
-
var _ = {
|
|
964
|
-
inheritColor: lt(B) ? B : k.color.neutral99
|
|
965
|
-
}, S = y(d, ae), w = at(S, null, _, !1, !0);
|
|
966
|
-
w.text = S.getShallow("show") ? Pe(r.getFormattedLabel(d, ae), Dt(t, d)) : null;
|
|
967
|
-
var m = Tt(S, _, !1);
|
|
968
|
-
return X(p, z), z = Lt(z, w, m), p && I(z, p), z.legacy = !0, z;
|
|
969
|
-
}
|
|
970
|
-
function $(p, d) {
|
|
971
|
-
process.env.NODE_ENV !== "production" && Rt("api.styleEmphasis", "Please write literal style directly instead."), d == null && (d = c);
|
|
972
|
-
var T = R(d, te).getItemStyle(), B = y(d, te), K = at(B, null, null, !0, !0);
|
|
973
|
-
K.text = B.getShallow("show") ? la(r.getFormattedLabel(d, te), r.getFormattedLabel(d, ae), Dt(t, d)) : null;
|
|
974
|
-
var z = Tt(B, null, !0);
|
|
975
|
-
return X(p, T), T = Lt(T, K, z), p && I(T, p), T.legacy = !0, T;
|
|
976
|
-
}
|
|
977
|
-
function I(p, d) {
|
|
978
|
-
for (var T in d)
|
|
979
|
-
N(d, T) && (p[T] = d[T]);
|
|
980
|
-
}
|
|
981
|
-
function X(p, d) {
|
|
982
|
-
p && (p.textFill && (d.textFill = p.textFill), p.textPosition && (d.textPosition = p.textPosition));
|
|
983
|
-
}
|
|
984
|
-
function re(p, d) {
|
|
985
|
-
if (d == null && (d = c), N(Yt, p)) {
|
|
986
|
-
var T = t.getItemVisual(d, "style");
|
|
987
|
-
return T ? T[Yt[p]] : null;
|
|
988
|
-
}
|
|
989
|
-
if (N(fn, p))
|
|
990
|
-
return t.getItemVisual(d, p);
|
|
991
|
-
}
|
|
992
|
-
function se(p) {
|
|
993
|
-
if (i.type === "cartesian2d") {
|
|
994
|
-
var d = i.getBaseAxis();
|
|
995
|
-
return sa(be({
|
|
996
|
-
axis: d
|
|
997
|
-
}, p));
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
function Y() {
|
|
1001
|
-
return e.getCurrentSeriesIndices();
|
|
1002
|
-
}
|
|
1003
|
-
function q(p) {
|
|
1004
|
-
return ia(p, e);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
function Gn(r) {
|
|
1008
|
-
var t = {};
|
|
1009
|
-
return C(r.dimensions, function(e) {
|
|
1010
|
-
var a = r.getDimensionInfo(e);
|
|
1011
|
-
if (!a.isExtraCoord) {
|
|
1012
|
-
var o = a.coordDim, n = t[o] = t[o] || [];
|
|
1013
|
-
n[a.coordDimIndex] = r.getDimensionIndex(e);
|
|
1014
|
-
}
|
|
1015
|
-
}), t;
|
|
1016
|
-
}
|
|
1017
|
-
function je(r, t, e, a, o, n, i) {
|
|
1018
|
-
if (!a) {
|
|
1019
|
-
n.remove(t);
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
var s = _t(r, t, e, a, o, n);
|
|
1023
|
-
return s && i.setItemGraphicEl(e, s), s && aa(s, a.focus, a.blurScope, a.emphasisDisabled), s;
|
|
1024
|
-
}
|
|
1025
|
-
function _t(r, t, e, a, o, n) {
|
|
1026
|
-
process.env.NODE_ENV !== "production" && H(a, "should not have an null/undefined element setting");
|
|
1027
|
-
var i = -1, s = t;
|
|
1028
|
-
t && _r(t, a, o) && (i = me(n.childrenRef(), t), t = null);
|
|
1029
|
-
var l = !t, u = t;
|
|
1030
|
-
u ? u.clearStates() : (u = mt(a), s && Vn(s, u)), a.morph === !1 ? u.disableMorphing = !0 : u.disableMorphing && (u.disableMorphing = !1), a.tooltipDisabled && (u.tooltipDisabled = !0), U.normal.cfg = U.normal.conOpt = U.emphasis.cfg = U.emphasis.conOpt = U.blur.cfg = U.blur.conOpt = U.select.cfg = U.select.conOpt = null, U.isLegacy = !1, Yn(u, e, a, o, l, U), Hn(u, e, a, o, l), yt(r, u, e, a, U, o, l), N(a, "info") && (ee(u).info = a.info);
|
|
1031
|
-
for (var c = 0; c < ie.length; c++) {
|
|
1032
|
-
var f = ie[c];
|
|
1033
|
-
if (f !== ae) {
|
|
1034
|
-
var v = Ne(a, f), h = St(a, v, f);
|
|
1035
|
-
yr(f, u, v, h, U);
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
return Bn(u, a, o), a.type === "group" && Wn(r, u, e, a, o), i >= 0 ? n.replaceAt(u, i) : n.add(u), u;
|
|
1039
|
-
}
|
|
1040
|
-
function _r(r, t, e) {
|
|
1041
|
-
var a = ee(r), o = t.type, n = t.shape, i = t.style;
|
|
1042
|
-
return (
|
|
1043
|
-
// Always create new if universal transition is enabled.
|
|
1044
|
-
// Because we do transition after render. It needs to know what old element is. Replacement will loose it.
|
|
1045
|
-
e.isUniversalTransitionEnabled() || o != null && o !== a.customGraphicType || o === "path" && Kn(n) && Sr(n) !== a.customPathData || o === "image" && N(i, "image") && i.image !== a.customImagePath
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
function Hn(r, t, e, a, o) {
|
|
1049
|
-
var n = e.clipPath;
|
|
1050
|
-
if (n === !1)
|
|
1051
|
-
r && r.getClipPath() && r.removeClipPath();
|
|
1052
|
-
else if (n) {
|
|
1053
|
-
var i = r.getClipPath();
|
|
1054
|
-
i && _r(i, n, a) && (i = null), i || (i = mt(n), process.env.NODE_ENV !== "production" && H(Ze(i), "Only any type of `path` can be used in `clipPath`, rather than " + i.type + "."), r.setClipPath(i)), yt(null, i, t, n, null, a, o);
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
function Yn(r, t, e, a, o, n) {
|
|
1058
|
-
if (!(r.isGroup || r.type === "compoundPath")) {
|
|
1059
|
-
jt(e, null, n), jt(e, te, n);
|
|
1060
|
-
var i = n.normal.conOpt, s = n.emphasis.conOpt, l = n.blur.conOpt, u = n.select.conOpt;
|
|
1061
|
-
if (i != null || s != null || u != null || l != null) {
|
|
1062
|
-
var c = r.getTextContent();
|
|
1063
|
-
if (i === !1)
|
|
1064
|
-
c && r.removeTextContent();
|
|
1065
|
-
else {
|
|
1066
|
-
i = n.normal.conOpt = i || {
|
|
1067
|
-
type: "text"
|
|
1068
|
-
}, c ? c.clearStates() : (c = mt(i), r.setTextContent(c)), yt(null, c, t, i, null, a, o);
|
|
1069
|
-
for (var f = i && i.style, v = 0; v < ie.length; v++) {
|
|
1070
|
-
var h = ie[v];
|
|
1071
|
-
if (h !== ae) {
|
|
1072
|
-
var g = n[h].conOpt;
|
|
1073
|
-
yr(h, c, g, St(i, g, h), null);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
f ? c.dirty() : c.markRedraw();
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
function jt(r, t, e) {
|
|
1082
|
-
var a = t ? Ne(r, t) : r, o = t ? St(r, a, te) : r.style, n = r.type, i = a ? a.textConfig : null, s = r.textContent, l = s ? t ? Ne(s, t) : s : null;
|
|
1083
|
-
if (o && // Because emphasis style has little info to detect legacy,
|
|
1084
|
-
// if normal is legacy, emphasis is trade as legacy.
|
|
1085
|
-
(e.isLegacy || ha(o, n, !!i, !!l))) {
|
|
1086
|
-
e.isLegacy = !0;
|
|
1087
|
-
var u = da(o, n, !t);
|
|
1088
|
-
!i && u.textConfig && (i = u.textConfig), !l && u.textContent && (l = u.textContent);
|
|
1089
|
-
}
|
|
1090
|
-
if (!t && l) {
|
|
1091
|
-
var c = l;
|
|
1092
|
-
!c.type && (c.type = "text"), process.env.NODE_ENV !== "production" && H(c.type === "text", 'textContent.type must be "text"');
|
|
1093
|
-
}
|
|
1094
|
-
var f = t ? e[t] : e.normal;
|
|
1095
|
-
f.cfg = i, f.conOpt = l;
|
|
1096
|
-
}
|
|
1097
|
-
function Ne(r, t) {
|
|
1098
|
-
return t ? r ? r[t] : null : r;
|
|
1099
|
-
}
|
|
1100
|
-
function St(r, t, e) {
|
|
1101
|
-
var a = t && t.style;
|
|
1102
|
-
return a == null && e === te && r && (a = r.styleEmphasis), a;
|
|
1103
|
-
}
|
|
1104
|
-
function Wn(r, t, e, a, o) {
|
|
1105
|
-
var n = a.children, i = n ? n.length : 0, s = a.$mergeChildren, l = s === "byName" || a.diffChildrenByName, u = s === !1;
|
|
1106
|
-
if (!(!i && !l && !u)) {
|
|
1107
|
-
if (l) {
|
|
1108
|
-
$n({
|
|
1109
|
-
api: r,
|
|
1110
|
-
oldChildren: t.children() || [],
|
|
1111
|
-
newChildren: n || [],
|
|
1112
|
-
dataIndex: e,
|
|
1113
|
-
seriesModel: o,
|
|
1114
|
-
group: t
|
|
1115
|
-
});
|
|
1116
|
-
return;
|
|
1117
|
-
}
|
|
1118
|
-
u && t.removeAll();
|
|
1119
|
-
for (var c = 0; c < i; c++) {
|
|
1120
|
-
var f = n[c], v = t.childAt(c);
|
|
1121
|
-
f ? (f.ignore == null && (f.ignore = !1), _t(r, v, e, f, o, t)) : (process.env.NODE_ENV !== "production" && H(v, "renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."), v.ignore = !0);
|
|
1122
|
-
}
|
|
1123
|
-
for (var h = t.childCount() - 1; h >= c; h--) {
|
|
1124
|
-
var g = t.childAt(h);
|
|
1125
|
-
Un(t, g, o);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
function Un(r, t, e) {
|
|
1130
|
-
t && dt(t, ee(r).option, e);
|
|
1131
|
-
}
|
|
1132
|
-
function $n(r) {
|
|
1133
|
-
new pa(r.oldChildren, r.newChildren, qt, qt, r).add(Jt).update(Jt).remove(Xn).execute();
|
|
1134
|
-
}
|
|
1135
|
-
function qt(r, t) {
|
|
1136
|
-
var e = r && r.name;
|
|
1137
|
-
return e ?? Nn + t;
|
|
1138
|
-
}
|
|
1139
|
-
function Jt(r, t) {
|
|
1140
|
-
var e = this.context, a = r != null ? e.newChildren[r] : null, o = t != null ? e.oldChildren[t] : null;
|
|
1141
|
-
_t(e.api, o, e.dataIndex, a, e.seriesModel, e.group);
|
|
1142
|
-
}
|
|
1143
|
-
function Xn(r) {
|
|
1144
|
-
var t = this.context, e = t.oldChildren[r];
|
|
1145
|
-
e && dt(e, ee(e).option, t.seriesModel);
|
|
1146
|
-
}
|
|
1147
|
-
function Sr(r) {
|
|
1148
|
-
return r && (r.pathData || r.d);
|
|
1149
|
-
}
|
|
1150
|
-
function Kn(r) {
|
|
1151
|
-
return r && (N(r, "pathData") || N(r, "d"));
|
|
1152
|
-
}
|
|
1153
|
-
function jn(r) {
|
|
1154
|
-
r.registerChartView(kn), r.registerSeriesModel(vn);
|
|
1155
|
-
}
|
|
1156
|
-
var Qt = ["x", "y", "radius", "angle", "single"], qn = ue(), Jn = ["cartesian2d", "polar", "singleAxis"];
|
|
1157
|
-
function Qn(r) {
|
|
1158
|
-
var t = r.get("coordinateSystem");
|
|
1159
|
-
return me(Jn, t) >= 0;
|
|
1160
|
-
}
|
|
1161
|
-
function ne(r) {
|
|
1162
|
-
return process.env.NODE_ENV !== "production" && H(r), r + "Axis";
|
|
1163
|
-
}
|
|
1164
|
-
function eo(r, t) {
|
|
1165
|
-
var e = oe(), a = [], o = oe();
|
|
1166
|
-
r.eachComponent({
|
|
1167
|
-
mainType: "dataZoom",
|
|
1168
|
-
query: t
|
|
1169
|
-
}, function(c) {
|
|
1170
|
-
o.get(c.uid) || s(c);
|
|
1171
|
-
});
|
|
1172
|
-
var n;
|
|
1173
|
-
do
|
|
1174
|
-
n = !1, r.eachComponent("dataZoom", i);
|
|
1175
|
-
while (n);
|
|
1176
|
-
function i(c) {
|
|
1177
|
-
!o.get(c.uid) && l(c) && (s(c), n = !0);
|
|
1178
|
-
}
|
|
1179
|
-
function s(c) {
|
|
1180
|
-
o.set(c.uid, !0), a.push(c), u(c);
|
|
1181
|
-
}
|
|
1182
|
-
function l(c) {
|
|
1183
|
-
var f = !1;
|
|
1184
|
-
return c.eachTargetAxis(function(v, h) {
|
|
1185
|
-
var g = e.get(v);
|
|
1186
|
-
g && g[h] && (f = !0);
|
|
1187
|
-
}), f;
|
|
1188
|
-
}
|
|
1189
|
-
function u(c) {
|
|
1190
|
-
c.eachTargetAxis(function(f, v) {
|
|
1191
|
-
(e.get(f) || e.set(f, []))[v] = !0;
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
return a;
|
|
1195
|
-
}
|
|
1196
|
-
function xr(r) {
|
|
1197
|
-
var t = r.ecModel, e = {
|
|
1198
|
-
infoList: [],
|
|
1199
|
-
infoMap: oe()
|
|
1200
|
-
};
|
|
1201
|
-
return r.eachTargetAxis(function(a, o) {
|
|
1202
|
-
var n = t.getComponent(ne(a), o);
|
|
1203
|
-
if (n) {
|
|
1204
|
-
var i = n.getCoordSysModel();
|
|
1205
|
-
if (i) {
|
|
1206
|
-
var s = i.uid, l = e.infoMap.get(s);
|
|
1207
|
-
l || (l = {
|
|
1208
|
-
model: i,
|
|
1209
|
-
axisModels: []
|
|
1210
|
-
}, e.infoList.push(l), e.infoMap.set(s, l)), l.axisModels.push(n);
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}), e;
|
|
1214
|
-
}
|
|
1215
|
-
function Mr(r) {
|
|
1216
|
-
var t = qn(ga(r));
|
|
1217
|
-
return t.axisProxyMap || (t.axisProxyMap = oe());
|
|
1218
|
-
}
|
|
1219
|
-
function Ve(r) {
|
|
1220
|
-
if (r)
|
|
1221
|
-
return process.env.NODE_ENV !== "production" && H(r.ecModel), Mr(r.ecModel).get(r.uid);
|
|
1222
|
-
}
|
|
1223
|
-
function to(r, t) {
|
|
1224
|
-
process.env.NODE_ENV !== "production" && H(r.ecModel), Mr(r.ecModel).set(r.uid, t);
|
|
1225
|
-
}
|
|
1226
|
-
function br(r, t) {
|
|
1227
|
-
var e = t.getAxisModel().axis.__alignTo;
|
|
1228
|
-
return e && r.getAxisProxy(e.dim, e.model.componentIndex) ? Ve(e.model) : null;
|
|
1229
|
-
}
|
|
1230
|
-
var qe = (
|
|
1231
|
-
/** @class */
|
|
1232
|
-
(function() {
|
|
1233
|
-
function r() {
|
|
1234
|
-
this.indexList = [], this.indexMap = [];
|
|
1235
|
-
}
|
|
1236
|
-
return r.prototype.add = function(t) {
|
|
1237
|
-
this.indexMap[t] || (this.indexList.push(t), this.indexMap[t] = !0);
|
|
1238
|
-
}, r;
|
|
1239
|
-
})()
|
|
1240
|
-
), ke = (
|
|
1241
|
-
/** @class */
|
|
1242
|
-
(function(r) {
|
|
1243
|
-
Q(t, r);
|
|
1244
|
-
function t() {
|
|
1245
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1246
|
-
return e.type = t.type, e._autoThrottle = !0, e._noTarget = !0, e._rangePropMode = ["percent", "percent"], e;
|
|
1247
|
-
}
|
|
1248
|
-
return t.prototype.init = function(e, a, o) {
|
|
1249
|
-
var n = er(e);
|
|
1250
|
-
this.settledOption = n, this.mergeDefaultAndTheme(e, o), this._doInit(n);
|
|
1251
|
-
}, t.prototype.mergeOption = function(e) {
|
|
1252
|
-
var a = er(e);
|
|
1253
|
-
Ot(this.option, e, !0), Ot(this.settledOption, a, !0), this._doInit(a);
|
|
1254
|
-
}, t.prototype._doInit = function(e) {
|
|
1255
|
-
var a = this.option;
|
|
1256
|
-
this._setDefaultThrottle(e), this._updateRangeUse(e);
|
|
1257
|
-
var o = this.settledOption;
|
|
1258
|
-
C([["start", "startValue"], ["end", "endValue"]], function(n, i) {
|
|
1259
|
-
this._rangePropMode[i] === "value" && (a[n[0]] = o[n[0]] = null);
|
|
1260
|
-
}, this), this._resetTarget();
|
|
1261
|
-
}, t.prototype._resetTarget = function() {
|
|
1262
|
-
var e = this.get("orient", !0), a = this._targetAxisInfoMap = oe(), o = this._fillSpecifiedTargetAxis(a);
|
|
1263
|
-
o ? this._orient = e || this._makeAutoOrientByTargetAxis() : (this._orient = e || "horizontal", this._fillAutoTargetAxisByOrient(a, this._orient)), this._noTarget = !0, a.each(function(n) {
|
|
1264
|
-
n.indexList.length && (this._noTarget = !1);
|
|
1265
|
-
}, this);
|
|
1266
|
-
}, t.prototype._fillSpecifiedTargetAxis = function(e) {
|
|
1267
|
-
var a = !1;
|
|
1268
|
-
return C(Qt, function(o) {
|
|
1269
|
-
var n = this.getReferringComponents(ne(o), ma);
|
|
1270
|
-
if (n.specified) {
|
|
1271
|
-
a = !0;
|
|
1272
|
-
var i = new qe();
|
|
1273
|
-
C(n.models, function(s) {
|
|
1274
|
-
i.add(s.componentIndex);
|
|
1275
|
-
}), e.set(o, i);
|
|
1276
|
-
}
|
|
1277
|
-
}, this), a;
|
|
1278
|
-
}, t.prototype._fillAutoTargetAxisByOrient = function(e, a) {
|
|
1279
|
-
var o = this.ecModel, n = !0;
|
|
1280
|
-
if (n) {
|
|
1281
|
-
var i = a === "vertical" ? "y" : "x", s = o.findComponents({
|
|
1282
|
-
mainType: i + "Axis"
|
|
1283
|
-
});
|
|
1284
|
-
l(s, i);
|
|
1285
|
-
}
|
|
1286
|
-
if (n) {
|
|
1287
|
-
var s = o.findComponents({
|
|
1288
|
-
mainType: "singleAxis",
|
|
1289
|
-
filter: function(c) {
|
|
1290
|
-
return c.get("orient", !0) === a;
|
|
1291
|
-
}
|
|
1292
|
-
});
|
|
1293
|
-
l(s, "single");
|
|
1294
|
-
}
|
|
1295
|
-
function l(u, c) {
|
|
1296
|
-
var f = u[0];
|
|
1297
|
-
if (f) {
|
|
1298
|
-
var v = new qe();
|
|
1299
|
-
if (v.add(f.componentIndex), e.set(c, v), n = !1, c === "x" || c === "y") {
|
|
1300
|
-
var h = f.getReferringComponents("grid", ot).models[0];
|
|
1301
|
-
h && C(u, function(g) {
|
|
1302
|
-
f.componentIndex !== g.componentIndex && h === g.getReferringComponents("grid", ot).models[0] && v.add(g.componentIndex);
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
n && C(Qt, function(u) {
|
|
1308
|
-
if (n) {
|
|
1309
|
-
var c = o.findComponents({
|
|
1310
|
-
mainType: ne(u),
|
|
1311
|
-
filter: function(v) {
|
|
1312
|
-
return v.get("type", !0) === "category";
|
|
1313
|
-
}
|
|
1314
|
-
});
|
|
1315
|
-
if (c[0]) {
|
|
1316
|
-
var f = new qe();
|
|
1317
|
-
f.add(c[0].componentIndex), e.set(u, f), n = !1;
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
}, this);
|
|
1321
|
-
}, t.prototype._makeAutoOrientByTargetAxis = function() {
|
|
1322
|
-
var e;
|
|
1323
|
-
return this.eachTargetAxis(function(a) {
|
|
1324
|
-
!e && (e = a);
|
|
1325
|
-
}, this), e === "y" ? "vertical" : "horizontal";
|
|
1326
|
-
}, t.prototype._setDefaultThrottle = function(e) {
|
|
1327
|
-
if (e.hasOwnProperty("throttle") && (this._autoThrottle = !1), this._autoThrottle) {
|
|
1328
|
-
var a = this.ecModel.option;
|
|
1329
|
-
this.option.throttle = a.animation && a.animationDurationUpdate > 0 ? 100 : 20;
|
|
1330
|
-
}
|
|
1331
|
-
}, t.prototype._updateRangeUse = function(e) {
|
|
1332
|
-
var a = this._rangePropMode, o = this.get("rangeMode");
|
|
1333
|
-
C([["start", "startValue"], ["end", "endValue"]], function(n, i) {
|
|
1334
|
-
var s = e[n[0]] != null, l = e[n[1]] != null;
|
|
1335
|
-
s && !l ? a[i] = "percent" : !s && l ? a[i] = "value" : o ? a[i] = o[i] : s && (a[i] = "percent");
|
|
1336
|
-
});
|
|
1337
|
-
}, t.prototype.noTarget = function() {
|
|
1338
|
-
return this._noTarget;
|
|
1339
|
-
}, t.prototype.getFirstTargetAxisModel = function() {
|
|
1340
|
-
var e;
|
|
1341
|
-
return this.eachTargetAxis(function(a, o) {
|
|
1342
|
-
e == null && (e = this.ecModel.getComponent(ne(a), o));
|
|
1343
|
-
}, this), e;
|
|
1344
|
-
}, t.prototype.eachTargetAxis = function(e, a) {
|
|
1345
|
-
this._targetAxisInfoMap.each(function(o, n) {
|
|
1346
|
-
C(o.indexList, function(i) {
|
|
1347
|
-
e.call(a, n, i);
|
|
1348
|
-
});
|
|
1349
|
-
});
|
|
1350
|
-
}, t.prototype.getAxisProxy = function(e, a) {
|
|
1351
|
-
return Ve(this.getAxisModel(e, a));
|
|
1352
|
-
}, t.prototype.getAxisModel = function(e, a) {
|
|
1353
|
-
process.env.NODE_ENV !== "production" && H(e && a != null);
|
|
1354
|
-
var o = this._targetAxisInfoMap.get(e);
|
|
1355
|
-
if (o && o.indexMap[a])
|
|
1356
|
-
return this.ecModel.getComponent(ne(e), a);
|
|
1357
|
-
}, t.prototype.setRawRange = function(e) {
|
|
1358
|
-
var a = this.option, o = this.settledOption;
|
|
1359
|
-
C([["start", "startValue"], ["end", "endValue"]], function(n) {
|
|
1360
|
-
(e[n[0]] != null || e[n[1]] != null) && (a[n[0]] = o[n[0]] = e[n[0]], a[n[1]] = o[n[1]] = e[n[1]]);
|
|
1361
|
-
}, this), this._updateRangeUse(e);
|
|
1362
|
-
}, t.prototype.setCalculatedRange = function(e) {
|
|
1363
|
-
var a = this.option;
|
|
1364
|
-
C(["start", "startValue", "end", "endValue"], function(o) {
|
|
1365
|
-
a[o] = e[o];
|
|
1366
|
-
});
|
|
1367
|
-
}, t.prototype.getPercentRange = function() {
|
|
1368
|
-
var e = this.findRepresentativeAxisProxy();
|
|
1369
|
-
if (e)
|
|
1370
|
-
return e.getWindow().percent;
|
|
1371
|
-
}, t.prototype.getValueRange = function(e, a) {
|
|
1372
|
-
if (e == null && a == null) {
|
|
1373
|
-
var o = this.findRepresentativeAxisProxy();
|
|
1374
|
-
if (o)
|
|
1375
|
-
return o.getWindow().value;
|
|
1376
|
-
} else
|
|
1377
|
-
return this.getAxisProxy(e, a).getWindow().value;
|
|
1378
|
-
}, t.prototype.findRepresentativeAxisProxy = function(e) {
|
|
1379
|
-
if (e)
|
|
1380
|
-
return Ve(e);
|
|
1381
|
-
for (var a, o = this._targetAxisInfoMap.keys(), n = 0; n < o.length; n++)
|
|
1382
|
-
for (var i = o[n], s = this._targetAxisInfoMap.get(i), l = 0; l < s.indexList.length; l++) {
|
|
1383
|
-
var u = this.getAxisProxy(i, s.indexList[l]);
|
|
1384
|
-
if (u.hostedBy(this))
|
|
1385
|
-
return u;
|
|
1386
|
-
a || (a = u);
|
|
1387
|
-
}
|
|
1388
|
-
return a;
|
|
1389
|
-
}, t.prototype.getRangePropMode = function() {
|
|
1390
|
-
return this._rangePropMode.slice();
|
|
1391
|
-
}, t.prototype.getOrient = function() {
|
|
1392
|
-
return process.env.NODE_ENV !== "production" && H(this._orient), this._orient;
|
|
1393
|
-
}, t.type = "dataZoom", t.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"], t.defaultOption = {
|
|
1394
|
-
// zlevel: 0,
|
|
1395
|
-
z: 4,
|
|
1396
|
-
filterMode: "filter",
|
|
1397
|
-
start: 0,
|
|
1398
|
-
end: 100
|
|
1399
|
-
}, t;
|
|
1400
|
-
})(ya)
|
|
1401
|
-
);
|
|
1402
|
-
function er(r) {
|
|
1403
|
-
var t = {};
|
|
1404
|
-
return C(["start", "end", "startValue", "endValue", "throttle"], function(e) {
|
|
1405
|
-
r.hasOwnProperty(e) && (t[e] = r[e]);
|
|
1406
|
-
}), t;
|
|
1407
|
-
}
|
|
1408
|
-
var Ar = (
|
|
1409
|
-
/** @class */
|
|
1410
|
-
(function(r) {
|
|
1411
|
-
Q(t, r);
|
|
1412
|
-
function t() {
|
|
1413
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1414
|
-
return e.type = t.type, e;
|
|
1415
|
-
}
|
|
1416
|
-
return t.prototype.render = function(e, a, o, n) {
|
|
1417
|
-
this.dataZoomModel = e, this.ecModel = a, this.api = o;
|
|
1418
|
-
}, t.type = "dataZoom", t;
|
|
1419
|
-
})(_a)
|
|
1420
|
-
), ro = (
|
|
1421
|
-
/** @class */
|
|
1422
|
-
(function() {
|
|
1423
|
-
function r(t, e, a, o) {
|
|
1424
|
-
this._dimName = t, this._axisIndex = e, this.ecModel = o, this._dataZoomModel = a;
|
|
1425
|
-
}
|
|
1426
|
-
return r.prototype.hostedBy = function(t) {
|
|
1427
|
-
return this._dataZoomModel === t;
|
|
1428
|
-
}, r.prototype.getWindow = function() {
|
|
1429
|
-
return zt(this._window);
|
|
1430
|
-
}, r.prototype.getTargetSeriesModels = function() {
|
|
1431
|
-
var t = [];
|
|
1432
|
-
return this.ecModel.eachSeries(function(e) {
|
|
1433
|
-
if (Qn(e)) {
|
|
1434
|
-
var a = ne(this._dimName), o = e.getReferringComponents(a, ot).models[0];
|
|
1435
|
-
o && this._axisIndex === o.componentIndex && t.push(e);
|
|
1436
|
-
}
|
|
1437
|
-
}, this), t;
|
|
1438
|
-
}, r.prototype.getAxisModel = function() {
|
|
1439
|
-
return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex);
|
|
1440
|
-
}, r.prototype.getMinMaxSpan = function() {
|
|
1441
|
-
return zt(this._minMaxSpan);
|
|
1442
|
-
}, r.prototype.calculateDataWindow = function(t) {
|
|
1443
|
-
var e = this._extent, a = this.getAxisModel().axis, o = a.scale, n = this._dataZoomModel, i = n.getRangePropMode(), s = [0, 100], l = [], u = [], c, f = [!1, !1];
|
|
1444
|
-
C(["start", "end"], function(R, y) {
|
|
1445
|
-
var x = t[R], L = t[R + "Value"];
|
|
1446
|
-
i[y] === "percent" ? (x == null && (x = s[y]), L = O(x, s, e), f[y] = !0) : (c = !0, L == null ? L = e[y] : (L = o.parse(L), o.sanitize && (L = o.sanitize(L, e))), x = O(L, e, s)), u[y] = L == null || isNaN(L) ? e[y] : L, l[y] = x == null || isNaN(x) ? s[y] : x;
|
|
1447
|
-
}), ve(u), ve(l);
|
|
1448
|
-
var v = this._minMaxSpan;
|
|
1449
|
-
c ? h(u, l, e, s, !1) : h(l, u, s, e, !0);
|
|
1450
|
-
function h(R, y, x, L, F) {
|
|
1451
|
-
var $ = F ? "Span" : "ValueSpan";
|
|
1452
|
-
we(0, R, x, "all", v["min" + $], v["max" + $]);
|
|
1453
|
-
for (var I = 0; I < 2; I++)
|
|
1454
|
-
y[I] = O(R[I], x, L, !0), F && (y[I] = y[I], f[I] = !0);
|
|
1455
|
-
Ue(y);
|
|
1456
|
-
}
|
|
1457
|
-
var g = ur(o) || cr(o), b = a.getExtent(), M = Sa(b[1] - b[0]), A = g ? 0 : xa(u, M, 0.5);
|
|
1458
|
-
C([[0, Aa], [1, wa]], function(R) {
|
|
1459
|
-
var y = R[0], x = R[1];
|
|
1460
|
-
!f[y] || !isFinite(A) || (u[y] = fr(u[y], A), u[y] = Ma(e[1], ba(e[0], u[y])), l[y] === s[y] && (u[y] = e[y], g && (u[y] = x(u[y]))));
|
|
1461
|
-
}), Ue(u);
|
|
1462
|
-
var E = [O(u[0], e, s, !0), O(u[1], e, s, !0)];
|
|
1463
|
-
return Ue(E), {
|
|
1464
|
-
value: u,
|
|
1465
|
-
percent: l,
|
|
1466
|
-
percentInverted: E,
|
|
1467
|
-
valuePrecision: A
|
|
1468
|
-
};
|
|
1469
|
-
}, r.prototype.reset = function(t, e) {
|
|
1470
|
-
if (this.hostedBy(t)) {
|
|
1471
|
-
var a = this.getAxisModel().axis;
|
|
1472
|
-
Ea(a, Ca);
|
|
1473
|
-
var o = a.scale.rawExtentInfo;
|
|
1474
|
-
this._extent = o.makeNoZoom(), this._updateMinMaxSpan();
|
|
1475
|
-
var n = t.settledOption;
|
|
1476
|
-
e && (n = be({
|
|
1477
|
-
start: e[0],
|
|
1478
|
-
end: e[1]
|
|
1479
|
-
}, n));
|
|
1480
|
-
var i = this._window = this.calculateDataWindow(n), s = i.percent, l = i.value;
|
|
1481
|
-
s[0] !== 0 && o.setZoomMM(0, l[0]), s[1] !== 100 && o.setZoomMM(1, l[1]);
|
|
1482
|
-
}
|
|
1483
|
-
}, r.prototype.filterData = function(t, e) {
|
|
1484
|
-
if (!this.hostedBy(t))
|
|
1485
|
-
return;
|
|
1486
|
-
var a = this._dimName, o = this.getTargetSeriesModels(), n = t.get("filterMode"), i = this._window.value;
|
|
1487
|
-
if (n === "none")
|
|
1488
|
-
return;
|
|
1489
|
-
C(o, function(l) {
|
|
1490
|
-
var u = l.getData(), c = u.mapDimensionsAll(a);
|
|
1491
|
-
if (c.length) {
|
|
1492
|
-
if (n === "weakFilter") {
|
|
1493
|
-
var f = u.getStore(), v = Ee(c, function(h) {
|
|
1494
|
-
return u.getDimensionIndex(h);
|
|
1495
|
-
}, u);
|
|
1496
|
-
u.filterSelf(function(h) {
|
|
1497
|
-
for (var g, b, M, A = 0; A < c.length; A++) {
|
|
1498
|
-
var E = f.get(v[A], h), R = !isNaN(E), y = E < i[0], x = E > i[1];
|
|
1499
|
-
if (R && !y && !x)
|
|
1500
|
-
return !0;
|
|
1501
|
-
R && (M = !0), y && (g = !0), x && (b = !0);
|
|
1502
|
-
}
|
|
1503
|
-
return M && g && b;
|
|
1504
|
-
});
|
|
1505
|
-
} else
|
|
1506
|
-
C(c, function(h) {
|
|
1507
|
-
if (n === "empty")
|
|
1508
|
-
l.setData(u = u.map(h, function(b) {
|
|
1509
|
-
return s(b) ? b : NaN;
|
|
1510
|
-
}));
|
|
1511
|
-
else {
|
|
1512
|
-
var g = {};
|
|
1513
|
-
g[h] = i, u.selectRange(g);
|
|
1514
|
-
}
|
|
1515
|
-
});
|
|
1516
|
-
C(c, function(h) {
|
|
1517
|
-
u.setApproximateExtent(i, h);
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
});
|
|
1521
|
-
function s(l) {
|
|
1522
|
-
return l >= i[0] && l <= i[1];
|
|
1523
|
-
}
|
|
1524
|
-
}, r.prototype._updateMinMaxSpan = function() {
|
|
1525
|
-
var t = this._minMaxSpan = {}, e = this._dataZoomModel, a = this._extent;
|
|
1526
|
-
C(["min", "max"], function(o) {
|
|
1527
|
-
var n = e.get(o + "Span"), i = e.get(o + "ValueSpan");
|
|
1528
|
-
i != null && (i = this.getAxisModel().axis.scale.parse(i)), i != null ? n = O(a[0] + i, a, [0, 100], !0) : n != null && (i = O(n, [0, 100], a, !0) - a[0]), t[o + "Span"] = n, t[o + "ValueSpan"] = i;
|
|
1529
|
-
}, this);
|
|
1530
|
-
}, r;
|
|
1531
|
-
})()
|
|
1532
|
-
), ao = {
|
|
1533
|
-
dirtyOnOverallProgress: !0,
|
|
1534
|
-
// `dataZoomProcessor` will only be performed in needed series. Consider if
|
|
1535
|
-
// there is a line series and a pie series, it is better not to update the
|
|
1536
|
-
// line series if only pie series is needed to be updated.
|
|
1537
|
-
getTargetSeries: function(r) {
|
|
1538
|
-
function t(o) {
|
|
1539
|
-
r.eachComponent("dataZoom", function(n) {
|
|
1540
|
-
n.eachTargetAxis(function(i, s) {
|
|
1541
|
-
var l = r.getComponent(ne(i), s);
|
|
1542
|
-
o(i, s, l, n);
|
|
1543
|
-
});
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
var e = [];
|
|
1547
|
-
t(function(o, n, i, s) {
|
|
1548
|
-
if (!Ve(i)) {
|
|
1549
|
-
var l = new ro(o, n, s, r);
|
|
1550
|
-
e.push(l), to(i, l);
|
|
1551
|
-
}
|
|
1552
|
-
});
|
|
1553
|
-
var a = oe();
|
|
1554
|
-
return C(e, function(o) {
|
|
1555
|
-
C(o.getTargetSeriesModels(), function(n) {
|
|
1556
|
-
a.set(n.uid, n);
|
|
1557
|
-
});
|
|
1558
|
-
}), a;
|
|
1559
|
-
},
|
|
1560
|
-
// Consider appendData, where filter should be performed. Because data process is
|
|
1561
|
-
// in block mode currently, it is not need to worry about that the overallProgress
|
|
1562
|
-
// execute every frame.
|
|
1563
|
-
overallReset: function(r, t) {
|
|
1564
|
-
r.eachComponent("dataZoom", function(e) {
|
|
1565
|
-
var a = [];
|
|
1566
|
-
e.eachTargetAxis(function(o, n) {
|
|
1567
|
-
var i = e.getAxisProxy(o, n), s = br(e, i);
|
|
1568
|
-
s ? a.push([i, s]) : i.reset(e, null);
|
|
1569
|
-
}), C(a, function(o) {
|
|
1570
|
-
o[0].reset(e, o[1].getWindow().percentInverted);
|
|
1571
|
-
}), e.eachTargetAxis(function(o, n) {
|
|
1572
|
-
e.getAxisProxy(o, n).filterData(e, t);
|
|
1573
|
-
});
|
|
1574
|
-
}), r.eachComponent("dataZoom", function(e) {
|
|
1575
|
-
var a = e.findRepresentativeAxisProxy();
|
|
1576
|
-
if (a) {
|
|
1577
|
-
var o = a.getWindow(), n = o.percent, i = o.value;
|
|
1578
|
-
e.setCalculatedRange({
|
|
1579
|
-
start: n[0],
|
|
1580
|
-
end: n[1],
|
|
1581
|
-
startValue: i[0],
|
|
1582
|
-
endValue: i[1]
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
function no(r) {
|
|
1589
|
-
r.registerAction("dataZoom", function(t, e) {
|
|
1590
|
-
var a = eo(e, t);
|
|
1591
|
-
C(a, function(o) {
|
|
1592
|
-
o.setRawRange({
|
|
1593
|
-
start: t.start,
|
|
1594
|
-
end: t.end,
|
|
1595
|
-
startValue: t.startValue,
|
|
1596
|
-
endValue: t.endValue
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
var oo = Ra();
|
|
1602
|
-
function wr(r) {
|
|
1603
|
-
oo(r, function() {
|
|
1604
|
-
r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER, ao), no(r), r.registerSubTypeDefaulter("dataZoom", function() {
|
|
1605
|
-
return "slider";
|
|
1606
|
-
});
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
var io = (
|
|
1610
|
-
/** @class */
|
|
1611
|
-
(function(r) {
|
|
1612
|
-
Q(t, r);
|
|
1613
|
-
function t() {
|
|
1614
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1615
|
-
return e.type = t.type, e;
|
|
1616
|
-
}
|
|
1617
|
-
return t.type = "dataZoom.inside", t.defaultOption = vr(ke.defaultOption, {
|
|
1618
|
-
disabled: !1,
|
|
1619
|
-
zoomLock: !1,
|
|
1620
|
-
zoomOnMouseWheel: !0,
|
|
1621
|
-
moveOnMouseMove: !0,
|
|
1622
|
-
moveOnMouseWheel: !1,
|
|
1623
|
-
preventDefaultMouseMove: !0
|
|
1624
|
-
}), t;
|
|
1625
|
-
})(ke)
|
|
1626
|
-
), xt = ue();
|
|
1627
|
-
function so(r, t, e) {
|
|
1628
|
-
xt(r).coordSysRecordMap.each(function(a) {
|
|
1629
|
-
var o = a.dataZoomInfoMap.get(t.uid);
|
|
1630
|
-
o && (o.getRange = e);
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
function lo(r, t) {
|
|
1634
|
-
for (var e = xt(r).coordSysRecordMap, a = e.keys(), o = 0; o < a.length; o++) {
|
|
1635
|
-
var n = a[o], i = e.get(n), s = i.dataZoomInfoMap;
|
|
1636
|
-
if (s) {
|
|
1637
|
-
var l = t.uid, u = s.get(l);
|
|
1638
|
-
u && (s.removeKey(l), s.keys().length || Er(e, i));
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
function Er(r, t) {
|
|
1643
|
-
if (t) {
|
|
1644
|
-
r.removeKey(t.model.uid);
|
|
1645
|
-
var e = t.controller;
|
|
1646
|
-
e && e.dispose();
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
function uo(r, t) {
|
|
1650
|
-
var e = {
|
|
1651
|
-
model: t,
|
|
1652
|
-
containsPoint: Zt(fo, t),
|
|
1653
|
-
dispatchAction: Zt(co, r),
|
|
1654
|
-
dataZoomInfoMap: null,
|
|
1655
|
-
controller: null
|
|
1656
|
-
}, a = e.controller = new en(r.getZr());
|
|
1657
|
-
return C(["pan", "zoom", "scrollMove"], function(o) {
|
|
1658
|
-
a.on(o, function(n) {
|
|
1659
|
-
var i = [];
|
|
1660
|
-
e.dataZoomInfoMap.each(function(s) {
|
|
1661
|
-
if (n.isAvailableBehavior(s.model.option)) {
|
|
1662
|
-
var l = (s.getRange || {})[o], u = l && l(s.dzReferCoordSysInfo, e.model.mainType, e.controller, n);
|
|
1663
|
-
!s.model.get("disabled", !0) && u && i.push({
|
|
1664
|
-
dataZoomId: s.model.id,
|
|
1665
|
-
start: u[0],
|
|
1666
|
-
end: u[1]
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
}), i.length && e.dispatchAction(i);
|
|
1670
|
-
});
|
|
1671
|
-
}), e;
|
|
1672
|
-
}
|
|
1673
|
-
function co(r, t) {
|
|
1674
|
-
r.isDisposed() || r.dispatchAction({
|
|
1675
|
-
type: "dataZoom",
|
|
1676
|
-
animation: {
|
|
1677
|
-
easing: "cubicOut",
|
|
1678
|
-
duration: 100
|
|
1679
|
-
},
|
|
1680
|
-
batch: t
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
function fo(r, t, e, a) {
|
|
1684
|
-
return r.coordinateSystem.containPoint([e, a]);
|
|
1685
|
-
}
|
|
1686
|
-
function vo(r, t, e) {
|
|
1687
|
-
var a, o = "type_", n = {
|
|
1688
|
-
type_true: 2,
|
|
1689
|
-
type_move: 1,
|
|
1690
|
-
type_false: 0,
|
|
1691
|
-
type_undefined: -1
|
|
1692
|
-
}, i = !0, s, l;
|
|
1693
|
-
return r.each(function(u) {
|
|
1694
|
-
var c = u.model, f = c.get("disabled", !0) ? !1 : c.get("zoomLock", !0) ? "move" : !0;
|
|
1695
|
-
n[o + f] > n[o + a] && (a = f), i = i && c.get("preventDefaultMouseMove", !0), s = Pe(c.get("cursorGrab", !0), s), l = Pe(c.get("cursorGrabbing", !0), l);
|
|
1696
|
-
}), {
|
|
1697
|
-
controlType: a,
|
|
1698
|
-
opt: {
|
|
1699
|
-
// RoamController will enable all of these functionalities,
|
|
1700
|
-
// and the final behavior is determined by its event listener
|
|
1701
|
-
// provided by each inside zoom.
|
|
1702
|
-
zoomOnMouseWheel: !0,
|
|
1703
|
-
moveOnMouseMove: !0,
|
|
1704
|
-
moveOnMouseWheel: !0,
|
|
1705
|
-
preventDefaultMouseMove: !!i,
|
|
1706
|
-
api: e,
|
|
1707
|
-
zInfo: {
|
|
1708
|
-
component: t.model
|
|
1709
|
-
},
|
|
1710
|
-
triggerInfo: {
|
|
1711
|
-
roamTrigger: null,
|
|
1712
|
-
isInSelf: t.containsPoint
|
|
1713
|
-
},
|
|
1714
|
-
cursorGrab: s,
|
|
1715
|
-
cursorGrabbing: l
|
|
1716
|
-
}
|
|
1717
|
-
};
|
|
1718
|
-
}
|
|
1719
|
-
function ho(r) {
|
|
1720
|
-
r.registerUpdateLifecycle("coordsys:aftercreate", function(t, e) {
|
|
1721
|
-
var a = xt(e), o = a.coordSysRecordMap || (a.coordSysRecordMap = oe());
|
|
1722
|
-
o.each(function(n) {
|
|
1723
|
-
n.dataZoomInfoMap = null;
|
|
1724
|
-
}), t.eachComponent({
|
|
1725
|
-
mainType: "dataZoom",
|
|
1726
|
-
subType: "inside"
|
|
1727
|
-
}, function(n) {
|
|
1728
|
-
var i = xr(n);
|
|
1729
|
-
C(i.infoList, function(s) {
|
|
1730
|
-
var l = s.model.uid, u = o.get(l) || o.set(l, uo(e, s.model)), c = u.dataZoomInfoMap || (u.dataZoomInfoMap = oe());
|
|
1731
|
-
c.set(n.uid, {
|
|
1732
|
-
dzReferCoordSysInfo: s,
|
|
1733
|
-
model: n,
|
|
1734
|
-
getRange: null
|
|
1735
|
-
});
|
|
1736
|
-
});
|
|
1737
|
-
}), o.each(function(n) {
|
|
1738
|
-
var i = n.controller, s, l = n.dataZoomInfoMap;
|
|
1739
|
-
if (l) {
|
|
1740
|
-
var u = l.keys()[0];
|
|
1741
|
-
u != null && (s = l.get(u));
|
|
1742
|
-
}
|
|
1743
|
-
if (!s) {
|
|
1744
|
-
Er(o, n);
|
|
1745
|
-
return;
|
|
1746
|
-
}
|
|
1747
|
-
var c = vo(l, n, e);
|
|
1748
|
-
i.enable(c.controlType, c.opt), hr(n, "dispatchAction", s.model.get("throttle", !0), "fixRate");
|
|
1749
|
-
});
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
var po = (
|
|
1753
|
-
/** @class */
|
|
1754
|
-
(function(r) {
|
|
1755
|
-
Q(t, r);
|
|
1756
|
-
function t() {
|
|
1757
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1758
|
-
return e.type = "dataZoom.inside", e;
|
|
1759
|
-
}
|
|
1760
|
-
return t.prototype.render = function(e, a, o) {
|
|
1761
|
-
if (r.prototype.render.apply(this, arguments), e.noTarget()) {
|
|
1762
|
-
this._clear();
|
|
1763
|
-
return;
|
|
1764
|
-
}
|
|
1765
|
-
this.range = e.getPercentRange(), so(o, e, {
|
|
1766
|
-
pan: D(Je.pan, this),
|
|
1767
|
-
zoom: D(Je.zoom, this),
|
|
1768
|
-
scrollMove: D(Je.scrollMove, this)
|
|
1769
|
-
});
|
|
1770
|
-
}, t.prototype.dispose = function() {
|
|
1771
|
-
this._clear(), r.prototype.dispose.apply(this, arguments);
|
|
1772
|
-
}, t.prototype._clear = function() {
|
|
1773
|
-
lo(this.api, this.dataZoomModel), this.range = null;
|
|
1774
|
-
}, t.type = "dataZoom.inside", t;
|
|
1775
|
-
})(Ar)
|
|
1776
|
-
), Je = {
|
|
1777
|
-
zoom: function(r, t, e, a) {
|
|
1778
|
-
var o = this.range, n = o.slice(), i = r.axisModels[0];
|
|
1779
|
-
if (i) {
|
|
1780
|
-
var s = Qe[t](null, [a.originX, a.originY], i, e, r), l = (s.signal > 0 ? s.pixelStart + s.pixelLength - s.pixel : s.pixel - s.pixelStart) / s.pixelLength * (n[1] - n[0]) + n[0], u = Math.max(1 / a.scale, 0);
|
|
1781
|
-
n[0] = (n[0] - l) * u + l, n[1] = (n[1] - l) * u + l;
|
|
1782
|
-
var c = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
|
|
1783
|
-
if (we(0, n, [0, 100], 0, c.minSpan, c.maxSpan), this.range = n, o[0] !== n[0] || o[1] !== n[1])
|
|
1784
|
-
return n;
|
|
1785
|
-
}
|
|
1786
|
-
},
|
|
1787
|
-
pan: tr(function(r, t, e, a, o, n) {
|
|
1788
|
-
var i = Qe[a]([n.oldX, n.oldY], [n.newX, n.newY], t, o, e);
|
|
1789
|
-
return i.signal * (r[1] - r[0]) * i.pixel / i.pixelLength;
|
|
1790
|
-
}),
|
|
1791
|
-
scrollMove: tr(function(r, t, e, a, o, n) {
|
|
1792
|
-
var i = Qe[a]([0, 0], [n.scrollDelta, n.scrollDelta], t, o, e);
|
|
1793
|
-
return i.signal * (r[1] - r[0]) * n.scrollDelta;
|
|
1794
|
-
})
|
|
1795
|
-
};
|
|
1796
|
-
function tr(r) {
|
|
1797
|
-
return function(t, e, a, o) {
|
|
1798
|
-
var n = this.range, i = n.slice(), s = t.axisModels[0];
|
|
1799
|
-
if (s) {
|
|
1800
|
-
var l = r(i, s, t, e, a, o);
|
|
1801
|
-
if (we(l, i, [0, 100], "all"), this.range = i, n[0] !== i[0] || n[1] !== i[1])
|
|
1802
|
-
return i;
|
|
1803
|
-
}
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
var Qe = {
|
|
1807
|
-
grid: function(r, t, e, a, o) {
|
|
1808
|
-
var n = e.axis, i = {}, s = o.model.coordinateSystem.getRect();
|
|
1809
|
-
return r = r || [0, 0], n.dim === "x" ? (i.pixel = t[0] - r[0], i.pixelLength = s.width, i.pixelStart = s.x, i.signal = n.inverse ? 1 : -1) : (i.pixel = t[1] - r[1], i.pixelLength = s.height, i.pixelStart = s.y, i.signal = n.inverse ? -1 : 1), i;
|
|
1810
|
-
},
|
|
1811
|
-
polar: function(r, t, e, a, o) {
|
|
1812
|
-
var n = e.axis, i = {}, s = o.model.coordinateSystem, l = s.getRadiusAxis().getExtent(), u = s.getAngleAxis().getExtent();
|
|
1813
|
-
return r = r ? s.pointToCoord(r) : [0, 0], t = s.pointToCoord(t), e.mainType === "radiusAxis" ? (i.pixel = t[0] - r[0], i.pixelLength = l[1] - l[0], i.pixelStart = l[0], i.signal = n.inverse ? 1 : -1) : (i.pixel = t[1] - r[1], i.pixelLength = u[1] - u[0], i.pixelStart = u[0], i.signal = n.inverse ? -1 : 1), i;
|
|
1814
|
-
},
|
|
1815
|
-
singleAxis: function(r, t, e, a, o) {
|
|
1816
|
-
var n = e.axis, i = o.model.coordinateSystem.getRect(), s = {};
|
|
1817
|
-
return r = r || [0, 0], n.orient === "horizontal" ? (s.pixel = t[0] - r[0], s.pixelLength = i.width, s.pixelStart = i.x, s.signal = n.inverse ? 1 : -1) : (s.pixel = t[1] - r[1], s.pixelLength = i.height, s.pixelStart = i.y, s.signal = n.inverse ? -1 : 1), s;
|
|
1818
|
-
}
|
|
1819
|
-
};
|
|
1820
|
-
function go(r) {
|
|
1821
|
-
wr(r), r.registerComponentModel(io), r.registerComponentView(po), ho(r);
|
|
1822
|
-
}
|
|
1823
|
-
var mo = (
|
|
1824
|
-
/** @class */
|
|
1825
|
-
(function(r) {
|
|
1826
|
-
Q(t, r);
|
|
1827
|
-
function t() {
|
|
1828
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1829
|
-
return e.type = t.type, e;
|
|
1830
|
-
}
|
|
1831
|
-
return t.type = "dataZoom.slider", t.layoutMode = "box", t.defaultOption = vr(ke.defaultOption, {
|
|
1832
|
-
show: !0,
|
|
1833
|
-
// deault value can only be drived in view stage.
|
|
1834
|
-
right: "ph",
|
|
1835
|
-
top: "ph",
|
|
1836
|
-
width: "ph",
|
|
1837
|
-
height: "ph",
|
|
1838
|
-
left: null,
|
|
1839
|
-
bottom: null,
|
|
1840
|
-
borderColor: k.color.accent10,
|
|
1841
|
-
borderRadius: 0,
|
|
1842
|
-
backgroundColor: k.color.transparent,
|
|
1843
|
-
// dataBackgroundColor: '#ddd',
|
|
1844
|
-
dataBackground: {
|
|
1845
|
-
lineStyle: {
|
|
1846
|
-
color: k.color.accent30,
|
|
1847
|
-
width: 0.5
|
|
1848
|
-
},
|
|
1849
|
-
areaStyle: {
|
|
1850
|
-
color: k.color.accent20,
|
|
1851
|
-
opacity: 0.2
|
|
1852
|
-
}
|
|
1853
|
-
},
|
|
1854
|
-
selectedDataBackground: {
|
|
1855
|
-
lineStyle: {
|
|
1856
|
-
color: k.color.accent40,
|
|
1857
|
-
width: 0.5
|
|
1858
|
-
},
|
|
1859
|
-
areaStyle: {
|
|
1860
|
-
color: k.color.accent20,
|
|
1861
|
-
opacity: 0.3
|
|
1862
|
-
}
|
|
1863
|
-
},
|
|
1864
|
-
// Color of selected window.
|
|
1865
|
-
fillerColor: "rgba(135,175,274,0.2)",
|
|
1866
|
-
handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
|
|
1867
|
-
// Percent of the slider height
|
|
1868
|
-
handleSize: "100%",
|
|
1869
|
-
handleStyle: {
|
|
1870
|
-
color: k.color.neutral00,
|
|
1871
|
-
borderColor: k.color.accent20
|
|
1872
|
-
},
|
|
1873
|
-
moveHandleSize: 7,
|
|
1874
|
-
moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
|
|
1875
|
-
moveHandleStyle: {
|
|
1876
|
-
color: k.color.accent40,
|
|
1877
|
-
opacity: 0.5
|
|
1878
|
-
},
|
|
1879
|
-
showDetail: !0,
|
|
1880
|
-
showDataShadow: "auto",
|
|
1881
|
-
realtime: !0,
|
|
1882
|
-
zoomLock: !1,
|
|
1883
|
-
textStyle: {
|
|
1884
|
-
color: k.color.tertiary
|
|
1885
|
-
},
|
|
1886
|
-
brushSelect: !0,
|
|
1887
|
-
brushStyle: {
|
|
1888
|
-
color: k.color.accent30,
|
|
1889
|
-
opacity: 0.3
|
|
1890
|
-
},
|
|
1891
|
-
emphasis: {
|
|
1892
|
-
handleLabel: {
|
|
1893
|
-
show: !0
|
|
1894
|
-
},
|
|
1895
|
-
handleStyle: {
|
|
1896
|
-
borderColor: k.color.accent40
|
|
1897
|
-
},
|
|
1898
|
-
moveHandleStyle: {
|
|
1899
|
-
opacity: 0.8
|
|
1900
|
-
}
|
|
1901
|
-
},
|
|
1902
|
-
defaultLocationEdgeGap: 15
|
|
1903
|
-
}), t;
|
|
1904
|
-
})(ke)
|
|
1905
|
-
), xe = Te, yo = 1, et = 30, _o = 7, Me = "horizontal", rr = "vertical", So = 5, xo = ["line", "bar", "candlestick", "scatter"], Mo = {
|
|
1906
|
-
easing: "cubicOut",
|
|
1907
|
-
duration: 100,
|
|
1908
|
-
delay: 0
|
|
1909
|
-
}, bo = (
|
|
1910
|
-
/** @class */
|
|
1911
|
-
(function(r) {
|
|
1912
|
-
Q(t, r);
|
|
1913
|
-
function t() {
|
|
1914
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
1915
|
-
return e.type = t.type, e._displayables = {}, e;
|
|
1916
|
-
}
|
|
1917
|
-
return t.prototype.init = function(e, a) {
|
|
1918
|
-
this.api = a, this._onBrush = D(this._onBrush, this), this._onBrushEnd = D(this._onBrushEnd, this);
|
|
1919
|
-
}, t.prototype.render = function(e, a, o, n) {
|
|
1920
|
-
if (r.prototype.render.apply(this, arguments), hr(this, "_dispatchZoomAction", e.get("throttle"), "fixRate"), this._orient = e.getOrient(), e.get("show") === !1) {
|
|
1921
|
-
this.group.removeAll();
|
|
1922
|
-
return;
|
|
1923
|
-
}
|
|
1924
|
-
if (e.noTarget()) {
|
|
1925
|
-
this._clear(), this.group.removeAll();
|
|
1926
|
-
return;
|
|
1927
|
-
}
|
|
1928
|
-
(!n || n.type !== "dataZoom" || n.from !== this.uid) && this._buildView(), this._updateView();
|
|
1929
|
-
}, t.prototype.dispose = function() {
|
|
1930
|
-
this._clear(), r.prototype.dispose.apply(this, arguments);
|
|
1931
|
-
}, t.prototype._clear = function() {
|
|
1932
|
-
Da(this, "_dispatchZoomAction");
|
|
1933
|
-
var e = this.api.getZr();
|
|
1934
|
-
e.off("mousemove", this._onBrush), e.off("mouseup", this._onBrushEnd);
|
|
1935
|
-
}, t.prototype._buildView = function() {
|
|
1936
|
-
var e = this.group;
|
|
1937
|
-
e.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
|
|
1938
|
-
var a = this._displayables.sliderGroup = new nt();
|
|
1939
|
-
this._renderBackground(), this._renderHandle(), this._renderDataShadow(), e.add(a), this._positionGroup();
|
|
1940
|
-
}, t.prototype._resetLocation = function() {
|
|
1941
|
-
var e = this.dataZoomModel, a = this.api, o = e.get("brushSelect"), n = o ? _o : 0, i = Ta(e, a).refContainer, s = this._findCoordRect(), l = e.get("defaultLocationEdgeGap", !0) || 0, u = this._orient === Me ? {
|
|
1942
|
-
// Why using 'right', because right should be used in vertical,
|
|
1943
|
-
// and it is better to be consistent for dealing with position param merge.
|
|
1944
|
-
right: i.width - s.x - s.width,
|
|
1945
|
-
top: i.height - et - l - n,
|
|
1946
|
-
width: s.width,
|
|
1947
|
-
height: et
|
|
1948
|
-
} : {
|
|
1949
|
-
right: l,
|
|
1950
|
-
top: s.y,
|
|
1951
|
-
width: et,
|
|
1952
|
-
height: s.height
|
|
1953
|
-
}, c = La(e.option);
|
|
1954
|
-
C(["right", "top", "width", "height"], function(v) {
|
|
1955
|
-
c[v] === "ph" && (c[v] = u[v]);
|
|
1956
|
-
});
|
|
1957
|
-
var f = Pa(c, i);
|
|
1958
|
-
this._location = {
|
|
1959
|
-
x: f.x,
|
|
1960
|
-
y: f.y
|
|
1961
|
-
}, this._size = [f.width, f.height], this._orient === rr && this._size.reverse();
|
|
1962
|
-
}, t.prototype._positionGroup = function() {
|
|
1963
|
-
var e = this.group, a = this._location, o = this._orient, n = this.dataZoomModel.getFirstTargetAxisModel(), i = n && n.get("inverse"), s = this._displayables.sliderGroup, l = (this._dataShadowInfo || {}).otherAxisInverse;
|
|
1964
|
-
s.attr(o === Me && !i ? {
|
|
1965
|
-
scaleY: l ? 1 : -1,
|
|
1966
|
-
scaleX: 1
|
|
1967
|
-
} : o === Me && i ? {
|
|
1968
|
-
scaleY: l ? 1 : -1,
|
|
1969
|
-
scaleX: -1
|
|
1970
|
-
} : o === rr && !i ? {
|
|
1971
|
-
scaleY: l ? -1 : 1,
|
|
1972
|
-
scaleX: 1,
|
|
1973
|
-
rotation: Math.PI / 2
|
|
1974
|
-
} : {
|
|
1975
|
-
scaleY: l ? -1 : 1,
|
|
1976
|
-
scaleX: -1,
|
|
1977
|
-
rotation: Math.PI / 2
|
|
1978
|
-
});
|
|
1979
|
-
var u = e.getBoundingRect([s]), c = isNaN(u.x) ? 0 : u.x, f = isNaN(u.y) ? 0 : u.y;
|
|
1980
|
-
e.x = a.x - c, e.y = a.y - f, e.markRedraw();
|
|
1981
|
-
}, t.prototype._getViewExtent = function() {
|
|
1982
|
-
return [0, this._size[0]];
|
|
1983
|
-
}, t.prototype._renderBackground = function() {
|
|
1984
|
-
var e = this.dataZoomModel, a = this._size, o = this._displayables.sliderGroup, n = e.get("brushSelect");
|
|
1985
|
-
o.add(new xe({
|
|
1986
|
-
silent: !0,
|
|
1987
|
-
shape: {
|
|
1988
|
-
x: 0,
|
|
1989
|
-
y: 0,
|
|
1990
|
-
width: a[0],
|
|
1991
|
-
height: a[1]
|
|
1992
|
-
},
|
|
1993
|
-
style: {
|
|
1994
|
-
fill: e.get("backgroundColor")
|
|
1995
|
-
},
|
|
1996
|
-
z2: -40
|
|
1997
|
-
}));
|
|
1998
|
-
var i = new xe({
|
|
1999
|
-
shape: {
|
|
2000
|
-
x: 0,
|
|
2001
|
-
y: 0,
|
|
2002
|
-
width: a[0],
|
|
2003
|
-
height: a[1]
|
|
2004
|
-
},
|
|
2005
|
-
style: {
|
|
2006
|
-
fill: "transparent"
|
|
2007
|
-
},
|
|
2008
|
-
z2: 0,
|
|
2009
|
-
onclick: D(this._onClickPanel, this)
|
|
2010
|
-
}), s = this.api.getZr();
|
|
2011
|
-
n ? (i.on("mousedown", this._onBrushStart, this), i.cursor = "crosshair", s.on("mousemove", this._onBrush), s.on("mouseup", this._onBrushEnd)) : (s.off("mousemove", this._onBrush), s.off("mouseup", this._onBrushEnd)), o.add(i);
|
|
2012
|
-
}, t.prototype._renderDataShadow = function() {
|
|
2013
|
-
var e = this._dataShadowInfo = this._prepareDataShadowInfo();
|
|
2014
|
-
if (this._displayables.dataShadowSegs = [], !e)
|
|
2015
|
-
return;
|
|
2016
|
-
var a = this._size, o = this._shadowSize || [], n = e.series, i = n.getRawData(), s = n.getShadowDim && n.getShadowDim(), l = s && i.getDimensionInfo(s) ? n.getShadowDim() : e.otherDim;
|
|
2017
|
-
if (l == null)
|
|
2018
|
-
return;
|
|
2019
|
-
var u = this._shadowPolygonPts, c = this._shadowPolylinePts;
|
|
2020
|
-
if (i !== this._shadowData || l !== this._shadowDim || a[0] !== o[0] || a[1] !== o[1]) {
|
|
2021
|
-
var f = i.getDataExtent(e.thisDim), v = i.getDataExtent(l), h = (v[1] - v[0]) * 0.3;
|
|
2022
|
-
v = [v[0] - h, v[1] + h];
|
|
2023
|
-
var g = [0, a[1]], b = [0, a[0]], M = [[a[0], 0], [0, 0]], A = [], E = b[1] / Math.max(1, i.count() - 1), R = a[0] / (f[1] - f[0]), y = e.thisAxis.type === "time", x = -E, L = Math.round(i.count() / a[0]), F;
|
|
2024
|
-
i.each([e.thisDim, l], function(se, Y, q) {
|
|
2025
|
-
if (L > 0 && q % L) {
|
|
2026
|
-
y || (x += E);
|
|
2027
|
-
return;
|
|
2028
|
-
}
|
|
2029
|
-
x = y ? (+se - f[0]) * R : x + E;
|
|
2030
|
-
var p = Y == null || isNaN(Y) || Y === "", d = p ? 0 : O(Y, v, g, !0);
|
|
2031
|
-
p && !F && q ? (M.push([M[M.length - 1][0], 0]), A.push([A[A.length - 1][0], 0])) : !p && F && (M.push([x, 0]), A.push([x, 0])), p || (M.push([x, d]), A.push([x, d])), F = p;
|
|
2032
|
-
}), u = this._shadowPolygonPts = M, c = this._shadowPolylinePts = A;
|
|
2033
|
-
}
|
|
2034
|
-
this._shadowData = i, this._shadowDim = l, this._shadowSize = [a[0], a[1]];
|
|
2035
|
-
var $ = this.dataZoomModel;
|
|
2036
|
-
function I(se) {
|
|
2037
|
-
var Y = $.getModel(se ? "selectedDataBackground" : "dataBackground"), q = new nt(), p = new ka({
|
|
2038
|
-
shape: {
|
|
2039
|
-
points: u
|
|
2040
|
-
},
|
|
2041
|
-
segmentIgnoreThreshold: 1,
|
|
2042
|
-
style: Y.getModel("areaStyle").getAreaStyle(),
|
|
2043
|
-
silent: !0,
|
|
2044
|
-
z2: -20
|
|
2045
|
-
}), d = new Ba({
|
|
2046
|
-
shape: {
|
|
2047
|
-
points: c
|
|
2048
|
-
},
|
|
2049
|
-
segmentIgnoreThreshold: 1,
|
|
2050
|
-
style: Y.getModel("lineStyle").getLineStyle(),
|
|
2051
|
-
silent: !0,
|
|
2052
|
-
z2: -19
|
|
2053
|
-
});
|
|
2054
|
-
return q.add(p), q.add(d), q;
|
|
2055
|
-
}
|
|
2056
|
-
for (var X = 0; X < 3; X++) {
|
|
2057
|
-
var re = I(X === 1);
|
|
2058
|
-
this._displayables.sliderGroup.add(re), this._displayables.dataShadowSegs.push(re);
|
|
2059
|
-
}
|
|
2060
|
-
}, t.prototype._prepareDataShadowInfo = function() {
|
|
2061
|
-
var e = this.dataZoomModel, a = e.get("showDataShadow");
|
|
2062
|
-
if (a !== !1) {
|
|
2063
|
-
var o, n = this.ecModel;
|
|
2064
|
-
return e.eachTargetAxis(function(i, s) {
|
|
2065
|
-
var l = e.getAxisProxy(i, s).getTargetSeriesModels();
|
|
2066
|
-
C(l, function(u) {
|
|
2067
|
-
if (!o && !(a !== !0 && me(xo, u.get("type")) < 0)) {
|
|
2068
|
-
var c = n.getComponent(ne(i), s).axis, f = Ao(i), v, h = u.coordinateSystem;
|
|
2069
|
-
f != null && h.getOtherAxis && (v = h.getOtherAxis(c).inverse), f = u.getData().mapDimension(f);
|
|
2070
|
-
var g = u.getData().mapDimension(i);
|
|
2071
|
-
o = {
|
|
2072
|
-
thisAxis: c,
|
|
2073
|
-
series: u,
|
|
2074
|
-
thisDim: g,
|
|
2075
|
-
otherDim: f,
|
|
2076
|
-
otherAxisInverse: v
|
|
2077
|
-
};
|
|
2078
|
-
}
|
|
2079
|
-
}, this);
|
|
2080
|
-
}, this), o;
|
|
2081
|
-
}
|
|
2082
|
-
}, t.prototype._renderHandle = function() {
|
|
2083
|
-
var e = this.group, a = this._displayables, o = a.handles = [null, null], n = a.handleLabels = [null, null], i = this._displayables.sliderGroup, s = this._size, l = this.dataZoomModel, u = this.api, c = l.get("borderRadius") || 0, f = l.get("brushSelect"), v = a.filler = new xe({
|
|
2084
|
-
silent: f,
|
|
2085
|
-
style: {
|
|
2086
|
-
fill: l.get("fillerColor")
|
|
2087
|
-
},
|
|
2088
|
-
textConfig: {
|
|
2089
|
-
position: "inside"
|
|
2090
|
-
}
|
|
2091
|
-
});
|
|
2092
|
-
i.add(v), i.add(new xe({
|
|
2093
|
-
silent: !0,
|
|
2094
|
-
subPixelOptimize: !0,
|
|
2095
|
-
shape: {
|
|
2096
|
-
x: 0,
|
|
2097
|
-
y: 0,
|
|
2098
|
-
width: s[0],
|
|
2099
|
-
height: s[1],
|
|
2100
|
-
r: c
|
|
2101
|
-
},
|
|
2102
|
-
style: {
|
|
2103
|
-
// deprecated option
|
|
2104
|
-
stroke: l.get("dataBackgroundColor") || l.get("borderColor"),
|
|
2105
|
-
lineWidth: yo,
|
|
2106
|
-
fill: k.color.transparent
|
|
2107
|
-
}
|
|
2108
|
-
})), C([0, 1], function(R) {
|
|
2109
|
-
var y = l.get("handleIcon");
|
|
2110
|
-
!Ia[y] && y.indexOf("path://") < 0 && y.indexOf("image://") < 0 && (y = "path://" + y, process.env.NODE_ENV !== "production" && Oa("handleIcon now needs 'path://' prefix when using a path string"));
|
|
2111
|
-
var x = Nt(y, -1, 0, 2, 2, null, !0);
|
|
2112
|
-
x.attr({
|
|
2113
|
-
cursor: wo(this._orient),
|
|
2114
|
-
draggable: !0,
|
|
2115
|
-
drift: D(this._onDragMove, this, R),
|
|
2116
|
-
ondragend: D(this._onDragEnd, this),
|
|
2117
|
-
onmouseover: D(this._onOverDataInfoTriggerArea, this, !0),
|
|
2118
|
-
onmouseout: D(this._onOverDataInfoTriggerArea, this, !1),
|
|
2119
|
-
z2: 5
|
|
2120
|
-
});
|
|
2121
|
-
var L = x.getBoundingRect(), F = l.get("handleSize");
|
|
2122
|
-
this._handleHeight = Vt(F, this._size[1]), this._handleWidth = L.width / L.height * this._handleHeight, x.setStyle(l.getModel("handleStyle").getItemStyle()), x.style.strokeNoScale = !0, x.rectHover = !0, x.ensureState("emphasis").style = l.getModel(["emphasis", "handleStyle"]).getItemStyle(), za(x);
|
|
2123
|
-
var $ = l.get("handleColor");
|
|
2124
|
-
$ != null && (x.style.fill = $), i.add(o[R] = x);
|
|
2125
|
-
var I = l.getModel("textStyle"), X = l.get("handleLabel") || {}, re = X.show || !1;
|
|
2126
|
-
e.add(n[R] = new lr({
|
|
2127
|
-
silent: !0,
|
|
2128
|
-
invisible: !re,
|
|
2129
|
-
style: at(I, {
|
|
2130
|
-
x: 0,
|
|
2131
|
-
y: 0,
|
|
2132
|
-
text: "",
|
|
2133
|
-
verticalAlign: "middle",
|
|
2134
|
-
align: "center",
|
|
2135
|
-
fill: I.getTextColor(),
|
|
2136
|
-
font: I.getFont()
|
|
2137
|
-
}),
|
|
2138
|
-
z2: 10
|
|
2139
|
-
}));
|
|
2140
|
-
}, this);
|
|
2141
|
-
var h = v;
|
|
2142
|
-
if (f) {
|
|
2143
|
-
var g = Vt(l.get("moveHandleSize"), s[1]), b = a.moveHandle = new Te({
|
|
2144
|
-
style: l.getModel("moveHandleStyle").getItemStyle(),
|
|
2145
|
-
silent: !0,
|
|
2146
|
-
shape: {
|
|
2147
|
-
r: [0, 0, 2, 2],
|
|
2148
|
-
y: s[1] - 0.5,
|
|
2149
|
-
height: g
|
|
2150
|
-
}
|
|
2151
|
-
}), M = g * 0.8, A = a.moveHandleIcon = Nt(l.get("moveHandleIcon"), -M / 2, -M / 2, M, M, k.color.neutral00, !0);
|
|
2152
|
-
A.silent = !0, A.y = s[1] + g / 2 - 0.5, b.ensureState("emphasis").style = l.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
|
|
2153
|
-
var E = Math.min(s[1] / 2, Math.max(g, 10));
|
|
2154
|
-
h = a.moveZone = new Te({
|
|
2155
|
-
invisible: !0,
|
|
2156
|
-
shape: {
|
|
2157
|
-
y: s[1] - E,
|
|
2158
|
-
height: g + E
|
|
2159
|
-
}
|
|
2160
|
-
}), h.on("mouseover", function() {
|
|
2161
|
-
u.enterEmphasis(b);
|
|
2162
|
-
}).on("mouseout", function() {
|
|
2163
|
-
u.leaveEmphasis(b);
|
|
2164
|
-
}), i.add(b), i.add(A), i.add(h);
|
|
2165
|
-
}
|
|
2166
|
-
h.attr({
|
|
2167
|
-
draggable: !0,
|
|
2168
|
-
cursor: "grab",
|
|
2169
|
-
drift: D(this._onActualMoveZoneDrift, this),
|
|
2170
|
-
ondragstart: D(this._onActualMoveZoneDragStart, this),
|
|
2171
|
-
ondragend: D(this._onActualMoveZoneDragEnd, this),
|
|
2172
|
-
onmouseover: D(this._onOverDataInfoTriggerArea, this, !0),
|
|
2173
|
-
onmouseout: D(this._onOverDataInfoTriggerArea, this, !1)
|
|
2174
|
-
});
|
|
2175
|
-
}, t.prototype._resetInterval = function() {
|
|
2176
|
-
var e = this._range = this.dataZoomModel.getPercentRange(), a = this._getViewExtent();
|
|
2177
|
-
this._handleEnds = [O(e[0], [0, 100], a, !0), O(e[1], [0, 100], a, !0)];
|
|
2178
|
-
}, t.prototype._updateInterval = function(e, a) {
|
|
2179
|
-
var o = this.dataZoomModel, n = this._handleEnds, i = this._getViewExtent(), s = o.findRepresentativeAxisProxy().getMinMaxSpan(), l = [0, 100];
|
|
2180
|
-
we(a, n, i, o.get("zoomLock") ? "all" : e, s.minSpan != null ? O(s.minSpan, l, i, !0) : null, s.maxSpan != null ? O(s.maxSpan, l, i, !0) : null);
|
|
2181
|
-
var u = this._range, c = this._range = ve([O(n[0], i, l, !0), O(n[1], i, l, !0)]);
|
|
2182
|
-
return !u || u[0] !== c[0] || u[1] !== c[1];
|
|
2183
|
-
}, t.prototype._updateView = function(e) {
|
|
2184
|
-
var a = this._displayables, o = this._handleEnds, n = ve(o.slice()), i = this._size;
|
|
2185
|
-
C([0, 1], function(h) {
|
|
2186
|
-
var g = a.handles[h], b = this._handleHeight;
|
|
2187
|
-
g.attr({
|
|
2188
|
-
scaleX: b / 2,
|
|
2189
|
-
scaleY: b / 2,
|
|
2190
|
-
// This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.
|
|
2191
|
-
// NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.
|
|
2192
|
-
x: o[h] + (h ? -1 : 1),
|
|
2193
|
-
y: i[1] / 2 - b / 2
|
|
2194
|
-
});
|
|
2195
|
-
}, this), a.filler.setShape({
|
|
2196
|
-
x: n[0],
|
|
2197
|
-
y: 0,
|
|
2198
|
-
width: n[1] - n[0],
|
|
2199
|
-
height: i[1]
|
|
2200
|
-
});
|
|
2201
|
-
var s = {
|
|
2202
|
-
x: n[0],
|
|
2203
|
-
width: n[1] - n[0]
|
|
2204
|
-
};
|
|
2205
|
-
a.moveHandle && (a.moveHandle.setShape(s), a.moveZone.setShape(s), a.moveZone.getBoundingRect(), a.moveHandleIcon && a.moveHandleIcon.attr("x", s.x + s.width / 2));
|
|
2206
|
-
for (var l = a.dataShadowSegs, u = [0, n[0], n[1], i[0]], c = 0; c < l.length; c++) {
|
|
2207
|
-
var f = l[c], v = f.getClipPath();
|
|
2208
|
-
v || (v = new Te(), f.setClipPath(v)), v.setShape({
|
|
2209
|
-
x: u[c],
|
|
2210
|
-
y: 0,
|
|
2211
|
-
width: u[c + 1] - u[c],
|
|
2212
|
-
height: i[1]
|
|
2213
|
-
});
|
|
2214
|
-
}
|
|
2215
|
-
this._updateDataInfo(e);
|
|
2216
|
-
}, t.prototype._updateDataInfo = function(e) {
|
|
2217
|
-
var a = this.dataZoomModel, o = this._displayables, n = o.handleLabels, i = this._orient, s = ["", ""];
|
|
2218
|
-
if (a.get("showDetail")) {
|
|
2219
|
-
var l = a.findRepresentativeAxisProxy(), u = l.getAxisModel().axis.scale;
|
|
2220
|
-
if (l) {
|
|
2221
|
-
var c = this._range, f;
|
|
2222
|
-
if (e) {
|
|
2223
|
-
var v = {
|
|
2224
|
-
start: c[0],
|
|
2225
|
-
end: c[1]
|
|
2226
|
-
}, h = br(a, l);
|
|
2227
|
-
if (h) {
|
|
2228
|
-
var g = h.calculateDataWindow(v).percentInverted;
|
|
2229
|
-
v = {
|
|
2230
|
-
start: g[0],
|
|
2231
|
-
end: g[1]
|
|
2232
|
-
};
|
|
2233
|
-
}
|
|
2234
|
-
f = l.calculateDataWindow(v);
|
|
2235
|
-
} else
|
|
2236
|
-
f = l.getWindow();
|
|
2237
|
-
s = [ar(a, 0, f, u), ar(a, 1, f, u)];
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
var b = ve(this._handleEnds.slice());
|
|
2241
|
-
M.call(this, 0), M.call(this, 1);
|
|
2242
|
-
function M(A) {
|
|
2243
|
-
var E = Za(o.handles[A].parent, this.group), R = Na(A === 0 ? "right" : "left", E), y = this._handleWidth / 2 + So, x = kt([b[A] + (A === 0 ? -y : y), this._size[1] / 2], E);
|
|
2244
|
-
n[A].setStyle({
|
|
2245
|
-
x: x[0],
|
|
2246
|
-
y: x[1],
|
|
2247
|
-
verticalAlign: i === Me ? "middle" : R,
|
|
2248
|
-
align: i === Me ? R : "center",
|
|
2249
|
-
text: s[A]
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
}, t.prototype._onOverDataInfoTriggerArea = function(e) {
|
|
2253
|
-
this._isOverDataInfoTriggerArea = e, this._showDataInfo(e);
|
|
2254
|
-
}, t.prototype._showDataInfo = function(e) {
|
|
2255
|
-
var a = this.dataZoomModel.get("handleLabel") || {}, o = a.show || !1, n = this.dataZoomModel.getModel(["emphasis", "handleLabel"]), i = n.get("show") || !1, s = e || this._dragging ? i : o, l = this._displayables, u = l.handleLabels;
|
|
2256
|
-
u[0].attr("invisible", !s), u[1].attr("invisible", !s), l.moveHandle && this.api[s ? "enterEmphasis" : "leaveEmphasis"](l.moveHandle, 1);
|
|
2257
|
-
}, t.prototype._onActualMoveZoneDrift = function(e, a, o) {
|
|
2258
|
-
this.api.getZr().setCursorStyle("grabbing"), this._onDragMove("all", e, a, o);
|
|
2259
|
-
}, t.prototype._onActualMoveZoneDragStart = function(e) {
|
|
2260
|
-
e.target.attr("cursor", "grabbing"), this._showDataInfo(!0);
|
|
2261
|
-
}, t.prototype._onActualMoveZoneDragEnd = function(e) {
|
|
2262
|
-
e.target.attr("cursor", "grab"), this._onDragEnd();
|
|
2263
|
-
}, t.prototype._onDragMove = function(e, a, o, n) {
|
|
2264
|
-
this._dragging = !0, Ie(n.event);
|
|
2265
|
-
var i = this._displayables.sliderGroup.getLocalTransform(), s = kt([a, o], i, !0), l = this._updateInterval(e, s[0]), u = this.dataZoomModel.get("realtime");
|
|
2266
|
-
this._updateView(!u), l && u && this._dispatchZoomAction(!0);
|
|
2267
|
-
}, t.prototype._onDragEnd = function() {
|
|
2268
|
-
this._dragging = !1, this._isOverDataInfoTriggerArea || this._showDataInfo(!1);
|
|
2269
|
-
var e = this.dataZoomModel.get("realtime");
|
|
2270
|
-
!e && this._dispatchZoomAction(!1);
|
|
2271
|
-
}, t.prototype._onClickPanel = function(e) {
|
|
2272
|
-
var a = this._size, o = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);
|
|
2273
|
-
if (!(o[0] < 0 || o[0] > a[0] || o[1] < 0 || o[1] > a[1])) {
|
|
2274
|
-
var n = this._handleEnds, i = (n[0] + n[1]) / 2, s = this._updateInterval("all", o[0] - i);
|
|
2275
|
-
this._updateView(), s && this._dispatchZoomAction(!1);
|
|
2276
|
-
}
|
|
2277
|
-
}, t.prototype._onBrushStart = function(e) {
|
|
2278
|
-
var a = e.offsetX, o = e.offsetY;
|
|
2279
|
-
this._brushStart = new Va(a, o), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date();
|
|
2280
|
-
}, t.prototype._onBrushEnd = function(e) {
|
|
2281
|
-
if (this._brushing) {
|
|
2282
|
-
var a = this._displayables.brushRect;
|
|
2283
|
-
if (this._brushing = !1, !!a) {
|
|
2284
|
-
a.attr("ignore", !0);
|
|
2285
|
-
var o = a.shape, n = +/* @__PURE__ */ new Date();
|
|
2286
|
-
if (!(n - this._brushStartTime < 200 && Math.abs(o.width) < 5)) {
|
|
2287
|
-
var i = this._getViewExtent(), s = [0, 100], l = this._handleEnds = [o.x, o.x + o.width], u = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
|
|
2288
|
-
we(0, l, i, 0, u.minSpan != null ? O(u.minSpan, s, i, !0) : null, u.maxSpan != null ? O(u.maxSpan, s, i, !0) : null), this._range = ve([O(l[0], i, s, !0), O(l[1], i, s, !0)]), this._updateView(), this._dispatchZoomAction(!1);
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
}, t.prototype._onBrush = function(e) {
|
|
2293
|
-
this._brushing && (Ie(e.event), this._updateBrushRect(e.offsetX, e.offsetY));
|
|
2294
|
-
}, t.prototype._updateBrushRect = function(e, a) {
|
|
2295
|
-
var o = this._displayables, n = this.dataZoomModel, i = o.brushRect;
|
|
2296
|
-
i || (i = o.brushRect = new xe({
|
|
2297
|
-
silent: !0,
|
|
2298
|
-
style: n.getModel("brushStyle").getItemStyle()
|
|
2299
|
-
}), o.sliderGroup.add(i)), i.attr("ignore", !1);
|
|
2300
|
-
var s = this._brushStart, l = this._displayables.sliderGroup, u = l.transformCoordToLocal(e, a), c = l.transformCoordToLocal(s.x, s.y), f = this._size;
|
|
2301
|
-
u[0] = Math.max(Math.min(f[0], u[0]), 0), i.setShape({
|
|
2302
|
-
x: c[0],
|
|
2303
|
-
y: 0,
|
|
2304
|
-
width: u[0] - c[0],
|
|
2305
|
-
height: f[1]
|
|
2306
|
-
});
|
|
2307
|
-
}, t.prototype._dispatchZoomAction = function(e) {
|
|
2308
|
-
var a = this._range;
|
|
2309
|
-
this.api.dispatchAction({
|
|
2310
|
-
type: "dataZoom",
|
|
2311
|
-
from: this.uid,
|
|
2312
|
-
dataZoomId: this.dataZoomModel.id,
|
|
2313
|
-
animation: e ? Mo : null,
|
|
2314
|
-
start: a[0],
|
|
2315
|
-
end: a[1]
|
|
2316
|
-
});
|
|
2317
|
-
}, t.prototype._findCoordRect = function() {
|
|
2318
|
-
var e, a = xr(this.dataZoomModel).infoList;
|
|
2319
|
-
if (!e && a.length) {
|
|
2320
|
-
var o = a[0].model.coordinateSystem;
|
|
2321
|
-
e = o.getRect && o.getRect();
|
|
2322
|
-
}
|
|
2323
|
-
if (!e) {
|
|
2324
|
-
var n = this.api.getWidth(), i = this.api.getHeight();
|
|
2325
|
-
e = {
|
|
2326
|
-
x: n * 0.2,
|
|
2327
|
-
y: i * 0.2,
|
|
2328
|
-
width: n * 0.6,
|
|
2329
|
-
height: i * 0.6
|
|
2330
|
-
};
|
|
2331
|
-
}
|
|
2332
|
-
return e;
|
|
2333
|
-
}, t.type = "dataZoom.slider", t;
|
|
2334
|
-
})(Ar)
|
|
2335
|
-
);
|
|
2336
|
-
function ar(r, t, e, a) {
|
|
2337
|
-
var o = r.get("labelFormatter"), n = r.get("labelPrecision");
|
|
2338
|
-
(n == null || n === "auto") && (n = e.valuePrecision);
|
|
2339
|
-
var i = e.value[t], s = i == null || isNaN(i) ? "" : ur(a) || cr(a) ? a.getLabel({
|
|
2340
|
-
value: Math.round(i)
|
|
2341
|
-
}) : isFinite(n) ? fr(i, n, !0) : i + "";
|
|
2342
|
-
return Fa(o) ? o(i, s) : lt(o) ? o.replace("{value}", s) : s;
|
|
2343
|
-
}
|
|
2344
|
-
function Ao(r) {
|
|
2345
|
-
var t = {
|
|
2346
|
-
x: "y",
|
|
2347
|
-
y: "x",
|
|
2348
|
-
radius: "angle",
|
|
2349
|
-
angle: "radius"
|
|
2350
|
-
};
|
|
2351
|
-
return t[r];
|
|
2352
|
-
}
|
|
2353
|
-
function wo(r) {
|
|
2354
|
-
return r === "vertical" ? "ns-resize" : "ew-resize";
|
|
2355
|
-
}
|
|
2356
|
-
function Eo(r) {
|
|
2357
|
-
r.registerComponentModel(mo), r.registerComponentView(bo), wr(r);
|
|
2358
|
-
}
|
|
2359
|
-
function Co(r) {
|
|
2360
|
-
it(go), it(Eo);
|
|
2361
|
-
}
|
|
2362
|
-
const Ro = { class: "reportifact-timeline-toolbar" }, Do = ["onClick"], nr = "#ef4444", tt = "Cuts", To = 22, zo = /* @__PURE__ */ Cr({
|
|
2363
|
-
__name: "Timeline",
|
|
2364
|
-
props: {
|
|
2365
|
-
url: { default: void 0 },
|
|
2366
|
-
src: { default: void 0 },
|
|
2367
|
-
data: { default: void 0 },
|
|
2368
|
-
options: { default: void 0 }
|
|
2369
|
-
},
|
|
2370
|
-
emits: ["row-click"],
|
|
2371
|
-
setup(r, { expose: t, emit: e }) {
|
|
2372
|
-
var B, K, z;
|
|
2373
|
-
it([
|
|
2374
|
-
Ha,
|
|
2375
|
-
jn,
|
|
2376
|
-
Ya,
|
|
2377
|
-
Wa,
|
|
2378
|
-
Ua,
|
|
2379
|
-
$a,
|
|
2380
|
-
Co
|
|
2381
|
-
]);
|
|
2382
|
-
const a = [
|
|
2383
|
-
"#3b82f6",
|
|
2384
|
-
// blue
|
|
2385
|
-
"#f59e0b",
|
|
2386
|
-
// amber
|
|
2387
|
-
"#10b981",
|
|
2388
|
-
// emerald
|
|
2389
|
-
"#8b5cf6",
|
|
2390
|
-
// violet
|
|
2391
|
-
"#0ea5e9",
|
|
2392
|
-
// sky
|
|
2393
|
-
"#64748b",
|
|
2394
|
-
// slate
|
|
2395
|
-
"#ec4899",
|
|
2396
|
-
// pink
|
|
2397
|
-
"#14b8a6"
|
|
2398
|
-
// teal
|
|
2399
|
-
], o = [
|
|
2400
|
-
{ value: "seconds", label: "sec" },
|
|
2401
|
-
{ value: "clock", label: "mm:ss" }
|
|
2402
|
-
], n = Ge(!1);
|
|
2403
|
-
let i = null;
|
|
2404
|
-
Rr(() => {
|
|
2405
|
-
n.value = document.documentElement.classList.contains("dark"), i = new MutationObserver(() => {
|
|
2406
|
-
n.value = document.documentElement.classList.contains("dark");
|
|
2407
|
-
}), i.observe(document.documentElement, { attributes: !0, attributeFilter: ["class"] });
|
|
2408
|
-
}), Dr(() => {
|
|
2409
|
-
i == null || i.disconnect();
|
|
2410
|
-
});
|
|
2411
|
-
const s = r, l = e, u = Ge([]), c = le(() => s.data === void 0 ? s.src ?? s.url ?? "" : ""), f = Ge(((B = s.options) == null ? void 0 : B.timeFormat) === "clock" ? "clock" : "seconds"), v = ((K = s.options) == null ? void 0 : K.zoom) === !0 || ((z = s.options) == null ? void 0 : z.zoom) === "true", { loading: h, error: g, fetchData: b } = Ka(c, {
|
|
2412
|
-
async onSuccess(_) {
|
|
2413
|
-
E(await _.json());
|
|
2414
|
-
}
|
|
2415
|
-
}), M = le(() => s.data === void 0 && h.value), A = le(() => s.data !== void 0 ? null : s.src || s.url ? g.value : "Resource not found in asset");
|
|
2416
|
-
function E(_) {
|
|
2417
|
-
const S = Array.isArray(_) ? _ : typeof _ == "object" && _ !== null && "rows" in _ ? _.rows : [];
|
|
2418
|
-
u.value = R(S);
|
|
2419
|
-
}
|
|
2420
|
-
Tr(
|
|
2421
|
-
() => s.data,
|
|
2422
|
-
(_) => {
|
|
2423
|
-
_ !== void 0 && E(_);
|
|
2424
|
-
},
|
|
2425
|
-
{ immediate: !0, deep: !0 }
|
|
2426
|
-
);
|
|
2427
|
-
function R(_) {
|
|
2428
|
-
if (!Array.isArray(_)) return [];
|
|
2429
|
-
const S = [];
|
|
2430
|
-
for (const w of _) {
|
|
2431
|
-
if (typeof w != "object" || w === null) continue;
|
|
2432
|
-
const m = w, G = Number(m.end);
|
|
2433
|
-
if (typeof m.name != "string" || !Number.isFinite(G)) continue;
|
|
2434
|
-
const V = Number(m.start), W = Array.isArray(m.cuts) ? m.cuts.map(Number).filter(Number.isFinite).sort((Z, P) => Z - P) : [];
|
|
2435
|
-
S.push({
|
|
2436
|
-
id: typeof m.id == "string" ? m.id : void 0,
|
|
2437
|
-
name: m.name,
|
|
2438
|
-
group: typeof m.group == "string" && m.group ? m.group : void 0,
|
|
2439
|
-
color: typeof m.color == "string" && m.color ? m.color : void 0,
|
|
2440
|
-
start: Number.isFinite(V) ? V : 0,
|
|
2441
|
-
end: G,
|
|
2442
|
-
cuts: W,
|
|
2443
|
-
click: typeof m.click == "object" && m.click !== null ? m.click : void 0
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
return S;
|
|
2447
|
-
}
|
|
2448
|
-
const y = le(
|
|
2449
|
-
() => `${Math.max(280, u.value.length * To + (v ? 150 : 126))}px`
|
|
2450
|
-
), x = le(() => u.value.reduce((_, S) => Math.max(_, S.end), 0));
|
|
2451
|
-
function L(_, S, w) {
|
|
2452
|
-
const m = Math.max(0, Math.round(_));
|
|
2453
|
-
if (S === "seconds") return `${m}s`;
|
|
2454
|
-
const G = Math.floor(m / 3600), V = Math.floor(m % 3600 / 60), W = m % 60, Z = (P) => String(P).padStart(2, "0");
|
|
2455
|
-
return w >= 3600 ? `${Z(G)}:${Z(V)}:${Z(W)}` : `${Z(V)}:${Z(W)}`;
|
|
2456
|
-
}
|
|
2457
|
-
const F = le(() => {
|
|
2458
|
-
const _ = [];
|
|
2459
|
-
for (const S of u.value) {
|
|
2460
|
-
const w = S.group ?? "";
|
|
2461
|
-
_.includes(w) || _.push(w);
|
|
2462
|
-
}
|
|
2463
|
-
return _;
|
|
2464
|
-
});
|
|
2465
|
-
function $(_) {
|
|
2466
|
-
const S = F.value.indexOf(_);
|
|
2467
|
-
return a[Math.max(0, S) % a.length];
|
|
2468
|
-
}
|
|
2469
|
-
function I(_, S) {
|
|
2470
|
-
return Xa(S, _.coordSys);
|
|
2471
|
-
}
|
|
2472
|
-
function X(_) {
|
|
2473
|
-
return Math.min(_.size([0, 1])[1] * 0.6, 14);
|
|
2474
|
-
}
|
|
2475
|
-
function re(_, S) {
|
|
2476
|
-
const w = S.value(0), m = S.coord([S.value(1), w]), G = S.coord([S.value(2), w]), V = X(S), W = I(_, {
|
|
2477
|
-
x: m[0],
|
|
2478
|
-
y: m[1] - V / 2,
|
|
2479
|
-
width: Math.max(G[0] - m[0], 1),
|
|
2480
|
-
height: V
|
|
2481
|
-
});
|
|
2482
|
-
if (!W) return;
|
|
2483
|
-
const Z = u.value[w];
|
|
2484
|
-
return {
|
|
2485
|
-
type: "rect",
|
|
2486
|
-
shape: { ...W, r: 2 },
|
|
2487
|
-
style: { fill: (Z == null ? void 0 : Z.color) ?? S.visual("color") }
|
|
2488
|
-
};
|
|
2489
|
-
}
|
|
2490
|
-
function se(_, S) {
|
|
2491
|
-
const w = S.value(0), m = S.coord([S.value(1), w]), G = X(S) + 4, V = I(_, {
|
|
2492
|
-
x: m[0] - 1,
|
|
2493
|
-
y: m[1] - G / 2,
|
|
2494
|
-
width: 2,
|
|
2495
|
-
height: G
|
|
2496
|
-
});
|
|
2497
|
-
if (V)
|
|
2498
|
-
return {
|
|
2499
|
-
type: "rect",
|
|
2500
|
-
shape: V,
|
|
2501
|
-
style: { fill: nr }
|
|
2502
|
-
};
|
|
2503
|
-
}
|
|
2504
|
-
function Y(_) {
|
|
2505
|
-
return typeof _ == "object" && _ !== null && "rowIndex" in _;
|
|
2506
|
-
}
|
|
2507
|
-
function q(_, S) {
|
|
2508
|
-
var P;
|
|
2509
|
-
const w = _;
|
|
2510
|
-
if (!Y(w.data)) return "";
|
|
2511
|
-
const m = u.value[w.data.rowIndex];
|
|
2512
|
-
if (!m) return "";
|
|
2513
|
-
if (w.seriesName === tt) {
|
|
2514
|
-
const j = w.data.value[1];
|
|
2515
|
-
return `${m.name}<br/>cut @ <strong>${S(j)}</strong>`;
|
|
2516
|
-
}
|
|
2517
|
-
const G = S(m.end - (m.start ?? 0)), V = `${S(m.start ?? 0)} – ${S(m.end)}`, W = m.group ? `${m.group} · ` : "", Z = (P = m.cuts) != null && P.length ? `${m.cuts.length} cuts: ${m.cuts.map((j) => S(j)).join(", ")}` : "no cuts";
|
|
2518
|
-
return `<strong>${m.name}</strong><br/>${W}${G} (${V})<br/>${Z}`;
|
|
2519
|
-
}
|
|
2520
|
-
const p = le(() => {
|
|
2521
|
-
var Z;
|
|
2522
|
-
if (!u.value.length) return null;
|
|
2523
|
-
const _ = f.value, S = x.value || 1, w = (P) => L(P, _, S), m = F.value.map((P) => ({
|
|
2524
|
-
name: P || "videos",
|
|
2525
|
-
type: "custom",
|
|
2526
|
-
renderItem: re,
|
|
2527
|
-
itemStyle: { color: $(P) },
|
|
2528
|
-
encode: { x: [1, 2], y: 0 },
|
|
2529
|
-
data: u.value.map((j, Ce) => ({
|
|
2530
|
-
value: [Ce, j.start ?? 0, j.end],
|
|
2531
|
-
rowIndex: Ce
|
|
2532
|
-
})).filter((j) => (u.value[j.rowIndex].group ?? "") === P)
|
|
2533
|
-
})), G = u.value.flatMap(
|
|
2534
|
-
(P, j) => (P.cuts ?? []).map((Ce) => ({ value: [j, Ce], rowIndex: j }))
|
|
2535
|
-
), V = {
|
|
2536
|
-
name: tt,
|
|
2537
|
-
type: "custom",
|
|
2538
|
-
renderItem: se,
|
|
2539
|
-
itemStyle: { color: nr },
|
|
2540
|
-
encode: { x: 1, y: 0 },
|
|
2541
|
-
z: 10,
|
|
2542
|
-
data: G
|
|
2543
|
-
}, W = typeof ((Z = s.options) == null ? void 0 : Z.title) == "string" ? s.options.title : "";
|
|
2544
|
-
return {
|
|
2545
|
-
animationDurationUpdate: 0,
|
|
2546
|
-
backgroundColor: "transparent",
|
|
2547
|
-
title: W ? { text: W, left: 0, top: 0, textStyle: { fontSize: 14 } } : void 0,
|
|
2548
|
-
// The mode toolbar sits at the top-right corner, keep the legend centered.
|
|
2549
|
-
legend: {
|
|
2550
|
-
top: 0,
|
|
2551
|
-
left: "center",
|
|
2552
|
-
data: [...m.map((P) => P.name), tt]
|
|
2553
|
-
},
|
|
2554
|
-
tooltip: {
|
|
2555
|
-
trigger: "item",
|
|
2556
|
-
textStyle: { fontSize: 12 },
|
|
2557
|
-
formatter: (P) => q(P, w)
|
|
2558
|
-
},
|
|
2559
|
-
grid: { left: 8, right: 16, top: 32, bottom: v ? 44 : 24, containLabel: !0 },
|
|
2560
|
-
xAxis: {
|
|
2561
|
-
type: "value",
|
|
2562
|
-
min: 0,
|
|
2563
|
-
max: S,
|
|
2564
|
-
axisLabel: { fontSize: 10, formatter: w }
|
|
2565
|
-
},
|
|
2566
|
-
yAxis: {
|
|
2567
|
-
type: "category",
|
|
2568
|
-
inverse: !0,
|
|
2569
|
-
data: u.value.map((P) => P.name),
|
|
2570
|
-
axisLabel: { fontSize: 10, width: 180, overflow: "truncate" }
|
|
2571
|
-
},
|
|
2572
|
-
dataZoom: v ? [
|
|
2573
|
-
{ type: "inside", xAxisIndex: 0 },
|
|
2574
|
-
{
|
|
2575
|
-
type: "slider",
|
|
2576
|
-
xAxisIndex: 0,
|
|
2577
|
-
height: 16,
|
|
2578
|
-
bottom: 8,
|
|
2579
|
-
labelFormatter: w
|
|
2580
|
-
}
|
|
2581
|
-
] : void 0,
|
|
2582
|
-
series: [...m, V]
|
|
2583
|
-
};
|
|
2584
|
-
});
|
|
2585
|
-
function d(_) {
|
|
2586
|
-
var m;
|
|
2587
|
-
const S = _;
|
|
2588
|
-
if (!Y(S.data)) return;
|
|
2589
|
-
const w = (m = u.value[S.data.rowIndex]) == null ? void 0 : m.click;
|
|
2590
|
-
w && l("row-click", w);
|
|
2591
|
-
}
|
|
2592
|
-
function T() {
|
|
2593
|
-
s.data !== void 0 ? E(s.data) : b();
|
|
2594
|
-
}
|
|
2595
|
-
return t({ refresh: T }), (_, S) => (He(), Mt(ja, {
|
|
2596
|
-
loading: !u.value.length && M.value,
|
|
2597
|
-
error: A.value
|
|
2598
|
-
}, {
|
|
2599
|
-
skeleton: bt(() => [
|
|
2600
|
-
ce("div", {
|
|
2601
|
-
class: "reportifact-chart-skeleton",
|
|
2602
|
-
style: At({ "--reportifact-chart-height": y.value })
|
|
2603
|
-
}, [...S[0] || (S[0] = [
|
|
2604
|
-
ce("div", {
|
|
2605
|
-
class: "reportifact-skeleton-line",
|
|
2606
|
-
style: { width: "200px", height: "24px", "margin-bottom": "16px" }
|
|
2607
|
-
}, null, -1),
|
|
2608
|
-
ce("div", { class: "reportifact-skeleton-line reportifact-chart-skeleton-body" }, null, -1)
|
|
2609
|
-
])], 4)
|
|
2610
|
-
]),
|
|
2611
|
-
default: bt(() => [
|
|
2612
|
-
ce("div", {
|
|
2613
|
-
class: "reportifact-timeline-container",
|
|
2614
|
-
style: At({ "--reportifact-chart-height": y.value })
|
|
2615
|
-
}, [
|
|
2616
|
-
ce("div", Ro, [
|
|
2617
|
-
(He(), Pr(Ir, null, Or(o, (w) => ce("button", {
|
|
2618
|
-
key: w.value,
|
|
2619
|
-
type: "button",
|
|
2620
|
-
class: zr(["reportifact-timeline-mode", { "is-active": f.value === w.value }]),
|
|
2621
|
-
onClick: (m) => f.value = w.value
|
|
2622
|
-
}, Zr(w.label), 11, Do)), 64))
|
|
2623
|
-
]),
|
|
2624
|
-
p.value ? (He(), Mt(Nr(Ga), {
|
|
2625
|
-
key: 0,
|
|
2626
|
-
option: p.value,
|
|
2627
|
-
theme: n.value ? "dark" : void 0,
|
|
2628
|
-
autoresize: !0,
|
|
2629
|
-
class: "reportifact-chart",
|
|
2630
|
-
onClick: d
|
|
2631
|
-
}, null, 8, ["option", "theme"])) : Lr("", !0)
|
|
2632
|
-
], 4)
|
|
2633
|
-
]),
|
|
2634
|
-
_: 1
|
|
2635
|
-
}, 8, ["loading", "error"]));
|
|
2636
|
-
}
|
|
2637
|
-
});
|
|
2638
|
-
export {
|
|
2639
|
-
zo as _
|
|
2640
|
-
};
|