reke-ui 0.5.3 → 0.5.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/custom-elements.json +465 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -20
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
- package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
- package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
- package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
- package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
- package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
- package/dist/node_modules/echarts/lib/extension.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
- package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
- package/dist/node_modules/echarts/lib/layout/points.js +37 -0
- package/dist/node_modules/echarts/lib/loading/default.js +6 -6
- package/dist/node_modules/echarts/lib/model/Component.js +39 -39
- package/dist/node_modules/echarts/lib/model/Global.js +122 -122
- package/dist/node_modules/echarts/lib/model/Series.js +78 -78
- package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
- package/dist/node_modules/echarts/lib/scale/break.js +10 -2
- package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
- package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
- package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
- package/dist/node_modules/echarts/lib/util/component.js +16 -16
- package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
- package/dist/node_modules/echarts/lib/util/decal.js +11 -11
- package/dist/node_modules/echarts/lib/util/format.js +1 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
- package/dist/node_modules/echarts/lib/util/layout.js +23 -23
- package/dist/node_modules/echarts/lib/util/model.js +128 -68
- package/dist/node_modules/echarts/lib/util/number.js +55 -37
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
- package/dist/node_modules/echarts/lib/util/states.js +96 -82
- package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
- package/dist/node_modules/echarts/lib/util/time.js +154 -18
- package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
- package/dist/node_modules/echarts/lib/view/Component.js +7 -7
- package/dist/node_modules/echarts/lib/visual/style.js +5 -5
- package/dist/node_modules/zrender/lib/Element.js +35 -35
- package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
- package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
- package/dist/node_modules/zrender/lib/core/event.js +4 -1
- package/dist/node_modules/zrender/lib/core/util.js +69 -64
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
- package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
- package/dist/node_modules/zrender/lib/tool/color.js +60 -41
- package/dist/react.d.ts +5 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +83 -77
- package/package.json +5 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import ce from "
|
|
12
|
-
import { getECData as
|
|
13
|
-
import { isElementRemoved as D } from "../animation/basicTransition.js";
|
|
14
|
-
import { retrieveZInfo as le, traverseUpdateZ as ue } from "../util/graphic.js";
|
|
1
|
+
import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { platformApi as t } from "../../../zrender/lib/core/platform.js";
|
|
3
|
+
import { assert as n, bind as r, clone as i, createHashMap as a, defaults as o, each as s, extend as c, indexOf as l, isDom as u, isFunction as d, isObject as f, isString as p, map as m, noop as h, retrieve2 as g, setAsPrimitive as _ } from "../../../zrender/lib/core/util.js";
|
|
4
|
+
import v from "../../../zrender/lib/core/env.js";
|
|
5
|
+
import { parseClassType as y } from "../util/clazz.js";
|
|
6
|
+
import b from "../../../zrender/lib/core/Eventful.js";
|
|
7
|
+
import ee from "../../../zrender/lib/graphic/Path.js";
|
|
8
|
+
import te from "../../../zrender/lib/graphic/Image.js";
|
|
9
|
+
import ne from "../../../zrender/lib/graphic/shape/Rect.js";
|
|
10
|
+
import { deprecateLog as x, deprecateReplaceLog as S, error as C, warn as w } from "../util/log.js";
|
|
11
|
+
import { convertOptionIdName as re, getAttribute as ie, makeQueryConditionKindA as ae, normalizeToArray as oe, parseFinder as se, preParseFinder as ce, setAttribute as le } from "../util/model.js";
|
|
12
|
+
import { getECData as T } from "../util/innerStore.js";
|
|
15
13
|
import "../util/types.js";
|
|
16
|
-
import
|
|
17
|
-
import { DOWNPLAY_ACTION_TYPE as
|
|
18
|
-
import {
|
|
19
|
-
import Le from "../
|
|
20
|
-
import
|
|
21
|
-
import Be from "./
|
|
14
|
+
import ue from "./ExtensionAPI.js";
|
|
15
|
+
import { DOWNPLAY_ACTION_TYPE as E, HIGHLIGHT_ACTION_TYPE as de, SELECT_ACTION_TYPE as fe, SELECT_CHANGED_EVENT_TYPE as pe, TOGGLE_SELECT_ACTION_TYPE as me, UNSELECT_ACTION_TYPE as he, allLeaveBlur as ge, blurComponent as _e, blurSeriesFromHighlightPayload as ve, enterBlur as ye, enterEmphasis as be, enterSelect as xe, findComponentHighDownDispatchers as Se, getAllSelectedIndices as Ce, handleGlobalMouseOutForHighDown as we, handleGlobalMouseOverForHighDown as Te, isHighDownDispatcher as Ee, isHighDownPayload as De, isSelectChangePayload as Oe, leaveBlur as ke, leaveEmphasis as Ae, leaveSelect as je, savePathStates as Me, toggleSelectionFromPayload as Ne, updateSeriesElementSelection as Pe } from "../util/states.js";
|
|
16
|
+
import { isElementRemoved as Fe } from "../animation/basicTransition.js";
|
|
17
|
+
import { retrieveZInfo as Ie, traverseUpdateZ as Le } from "../util/graphic.js";
|
|
18
|
+
import Re from "./CoordinateSystem.js";
|
|
19
|
+
import { SYSTEM_LANG as ze, createLocaleObject as Be } from "./locale.js";
|
|
22
20
|
import { registerExternalTransform as Ve } from "../data/helper/transform.js";
|
|
23
21
|
import He from "../model/Series.js";
|
|
24
|
-
import Ue from "../view/
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import qe from "
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import Ze from "
|
|
31
|
-
import Qe from "../model/
|
|
32
|
-
import $e from "../
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import at from "
|
|
37
|
-
import ot from "../
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
22
|
+
import Ue from "../view/Chart.js";
|
|
23
|
+
import { resetCachePerECFullUpdate as We, resetCachePerECPrepare as Ge } from "../util/cycleCache.js";
|
|
24
|
+
import { throttle as Ke } from "../util/throttle.js";
|
|
25
|
+
import { handleLegacySelectEvents as qe } from "../legacy/dataSelectAction.js";
|
|
26
|
+
import Je from "../view/Component.js";
|
|
27
|
+
import Ye from "../../../zrender/lib/core/timsort.js";
|
|
28
|
+
import { init as Xe, registerSSRDataGetter as Ze } from "../../../zrender/lib/zrender.js";
|
|
29
|
+
import Qe from "../model/globalDefault.js";
|
|
30
|
+
import $e from "../model/Global.js";
|
|
31
|
+
import et from "../model/OptionManager.js";
|
|
32
|
+
import tt from "../preprocessor/backwardCompat.js";
|
|
33
|
+
import { dataStackStageHandler as nt } from "../processor/dataStack.js";
|
|
34
|
+
import { dataColorPaletteTask as rt, dataStyleTask as it, seriesStyleTask as at } from "../visual/style.js";
|
|
35
|
+
import ot from "../loading/default.js";
|
|
36
|
+
import st from "./Scheduler.js";
|
|
37
|
+
import ct from "../theme/dark.js";
|
|
38
|
+
import { ECEventProcessor as lt } from "../util/ECEventProcessor.js";
|
|
39
|
+
import { dataSymbolTask as ut, seriesSymbolTask as dt } from "../visual/symbol.js";
|
|
40
|
+
import { getItemVisualFromData as ft, getVisualFromData as pt } from "../visual/helper.js";
|
|
41
|
+
import { findEventDispatcher as D } from "../util/event.js";
|
|
42
|
+
import O from "./lifecycle.js";
|
|
43
|
+
import { getImpl as mt } from "./impl.js";
|
|
44
|
+
import { decalVisualStageHandler as ht } from "../visual/decal.js";
|
|
45
45
|
//#region node_modules/echarts/lib/core/echarts.js
|
|
46
|
-
var
|
|
46
|
+
var gt = 1, _t = 800, vt = 900, yt = 920, bt = 1e3, xt = 2e3, St = 5e3, Ct = 1e3, wt = 1100, k = 2e3, Tt = 3e3, Et = 4e3, A = 4500, Dt = 4600, Ot = 5e3, kt = 6e3, At = 7e3, jt = {
|
|
47
47
|
PROCESSOR: {
|
|
48
|
-
SERIES_FILTER:
|
|
49
|
-
AXIS_STATISTICS:
|
|
50
|
-
FILTER:
|
|
51
|
-
STATISTIC:
|
|
52
|
-
STATISTICS:
|
|
48
|
+
SERIES_FILTER: _t,
|
|
49
|
+
AXIS_STATISTICS: yt,
|
|
50
|
+
FILTER: bt,
|
|
51
|
+
STATISTIC: St,
|
|
52
|
+
STATISTICS: St
|
|
53
53
|
},
|
|
54
54
|
VISUAL: {
|
|
55
|
-
LAYOUT:
|
|
56
|
-
PROGRESSIVE_LAYOUT:
|
|
57
|
-
GLOBAL:
|
|
58
|
-
CHART:
|
|
59
|
-
POST_CHART_LAYOUT:
|
|
60
|
-
COMPONENT:
|
|
61
|
-
BRUSH:
|
|
62
|
-
CHART_ITEM:
|
|
63
|
-
ARIA:
|
|
64
|
-
DECAL:
|
|
55
|
+
LAYOUT: Ct,
|
|
56
|
+
PROGRESSIVE_LAYOUT: wt,
|
|
57
|
+
GLOBAL: k,
|
|
58
|
+
CHART: Tt,
|
|
59
|
+
POST_CHART_LAYOUT: Dt,
|
|
60
|
+
COMPONENT: Et,
|
|
61
|
+
BRUSH: Ot,
|
|
62
|
+
CHART_ITEM: A,
|
|
63
|
+
ARIA: kt,
|
|
64
|
+
DECAL: At
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, j = "__flagInMainProcess", M = "__mainProcessVersion", N = "__pendingUpdate", Mt = "__needsUpdateStatus", Nt = /^[a-zA-Z0-9_]+$/, P = "__connectUpdateStatus", Pt = 0, Ft = 1, It = 2;
|
|
67
67
|
function Lt(e) {
|
|
68
68
|
return function() {
|
|
69
69
|
var t = [...arguments];
|
|
@@ -81,83 +81,83 @@ function Rt(e) {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
function zt(e, t, n) {
|
|
84
|
-
return n[0] = n[0] && n[0].toLowerCase(),
|
|
84
|
+
return n[0] = n[0] && n[0].toLowerCase(), b.prototype[t].apply(e, n);
|
|
85
85
|
}
|
|
86
|
-
var Bt = function(
|
|
87
|
-
|
|
88
|
-
function
|
|
89
|
-
return
|
|
86
|
+
var Bt = function(t) {
|
|
87
|
+
e(n, t);
|
|
88
|
+
function n() {
|
|
89
|
+
return t !== null && t.apply(this, arguments) || this;
|
|
90
90
|
}
|
|
91
|
-
return
|
|
92
|
-
}(
|
|
91
|
+
return n;
|
|
92
|
+
}(b), Vt = Bt.prototype;
|
|
93
93
|
Vt.on = Rt("on"), Vt.off = Rt("off");
|
|
94
|
-
var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = function(
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
var o = "canvas", s = "auto",
|
|
100
|
-
if (
|
|
101
|
-
var u =
|
|
102
|
-
u && (o =
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
var t =
|
|
94
|
+
var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = function(l) {
|
|
95
|
+
e(u, l);
|
|
96
|
+
function u(e, t, n) {
|
|
97
|
+
var i = l.call(this, new lt()) || this;
|
|
98
|
+
i._chartsViews = [], i._chartsMap = {}, i._componentsViews = [], i._componentsMap = {}, i._pendingActions = [], n ||= {}, i.__v_skip = !0, i._dom = e;
|
|
99
|
+
var o = "canvas", s = "auto", c = !1;
|
|
100
|
+
if (i[M] = 1, process.env.NODE_ENV !== "production") {
|
|
101
|
+
var u = v.hasGlobalWindow ? window : global;
|
|
102
|
+
u && (o = g(u.__ECHARTS__DEFAULT__RENDERER__, o), s = g(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), c = g(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, c));
|
|
103
|
+
}
|
|
104
|
+
n.ssr && Ze(function(e) {
|
|
105
|
+
var t = T(e), n = t.dataIndex;
|
|
106
106
|
if (n != null) {
|
|
107
|
-
var r =
|
|
107
|
+
var r = a();
|
|
108
108
|
return r.set("series_index", t.seriesIndex), r.set("data_index", n), t.ssrType && r.set("ssr_type", t.ssrType), r;
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
var d =
|
|
112
|
-
renderer:
|
|
113
|
-
devicePixelRatio:
|
|
114
|
-
width:
|
|
115
|
-
height:
|
|
116
|
-
ssr:
|
|
117
|
-
useDirtyRect:
|
|
118
|
-
useCoarsePointer:
|
|
119
|
-
pointerSize:
|
|
111
|
+
var d = i._zr = Xe(e, {
|
|
112
|
+
renderer: n.renderer || o,
|
|
113
|
+
devicePixelRatio: n.devicePixelRatio,
|
|
114
|
+
width: n.width,
|
|
115
|
+
height: n.height,
|
|
116
|
+
ssr: n.ssr,
|
|
117
|
+
useDirtyRect: g(n.useDirtyRect, c),
|
|
118
|
+
useCoarsePointer: g(n.useCoarsePointer, s),
|
|
119
|
+
pointerSize: n.pointerSize
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
var f =
|
|
121
|
+
i._ssr = n.ssr, i._throttledZrFlush = Ke(r(d.flush, d), 17), i._updateTheme(t), i._locale = Be(n.locale || ze), i._coordSysMgr = new Re();
|
|
122
|
+
var f = i._api = Kt(i);
|
|
123
123
|
function p(e, t) {
|
|
124
124
|
return e.__prio - t.__prio;
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return Ye(X, p), Ye($t, p), i._scheduler = new st(i, f, $t, X), i._messageCenter = new Bt(), i._initEvents(), i.resize = r(i.resize, i), d.animation.on("frame", i._onframe, i), Ut(d, i), Wt(d, i), _(i), i;
|
|
127
127
|
}
|
|
128
|
-
return
|
|
128
|
+
return u.prototype._onframe = function() {
|
|
129
129
|
if (!this._disposed) {
|
|
130
|
-
var
|
|
131
|
-
if (Jt(this), this[
|
|
132
|
-
var i = this[
|
|
133
|
-
this[
|
|
130
|
+
var e = this._scheduler, n = this._model, r = this._api;
|
|
131
|
+
if (Jt(this), this[N]) {
|
|
132
|
+
var i = this[N].silent;
|
|
133
|
+
this[j] = !0, K(this);
|
|
134
134
|
try {
|
|
135
|
-
F(this), L.update.call(this, null, this[
|
|
135
|
+
F(this), L.update.call(this, null, this[N].updateParams);
|
|
136
136
|
} catch (e) {
|
|
137
|
-
throw this[
|
|
137
|
+
throw this[j] = !1, this[N] = null, e;
|
|
138
138
|
}
|
|
139
|
-
this._zr.flush(), this[
|
|
140
|
-
} else if (
|
|
141
|
-
var a =
|
|
139
|
+
this._zr.flush(), this[j] = !1, this[N] = null, V.call(this, i), H.call(this, i);
|
|
140
|
+
} else if (e.unfinished) {
|
|
141
|
+
var a = gt;
|
|
142
142
|
do {
|
|
143
|
-
|
|
144
|
-
var o =
|
|
145
|
-
|
|
146
|
-
} while (a > 0 &&
|
|
147
|
-
|
|
143
|
+
e.unfinished = !1;
|
|
144
|
+
var o = t.getTime();
|
|
145
|
+
e.performSeriesTasks(n), e.performDataProcessorTasks(n), z(this, n), e.performVisualTasks(n), W(this, this._model, r, "remain", {}), a -= t.getTime() - o;
|
|
146
|
+
} while (a > 0 && e.unfinished);
|
|
147
|
+
e.unfinished || this._zr.flush();
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, u.prototype.getDom = function() {
|
|
151
151
|
return this._dom;
|
|
152
|
-
},
|
|
152
|
+
}, u.prototype.getId = function() {
|
|
153
153
|
return this.id;
|
|
154
|
-
},
|
|
154
|
+
}, u.prototype.getZr = function() {
|
|
155
155
|
return this._zr;
|
|
156
|
-
},
|
|
156
|
+
}, u.prototype.isSSR = function() {
|
|
157
157
|
return this._ssr;
|
|
158
|
-
},
|
|
159
|
-
if (this[
|
|
160
|
-
process.env.NODE_ENV !== "production" &&
|
|
158
|
+
}, u.prototype.setOption = function(e, t, n) {
|
|
159
|
+
if (this[j]) {
|
|
160
|
+
process.env.NODE_ENV !== "production" && C("`setOption` should not be called during main process.");
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
if (this._disposed) {
|
|
@@ -165,8 +165,8 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
var r, i, a;
|
|
168
|
-
if (
|
|
169
|
-
var o = new
|
|
168
|
+
if (f(t) && (n = t.lazyUpdate, r = t.silent, i = t.replaceMerge, a = t.transition, t = t.notMerge), this[j] = !0, K(this), !this._model || t) {
|
|
169
|
+
var o = new et(this._api), s = this._theme, c = this._model = new $e();
|
|
170
170
|
c.scheduler = this._scheduler, c.ssr = this._ssr, c.init(null, null, null, s, this._locale, o);
|
|
171
171
|
}
|
|
172
172
|
this._model.setOption(e, { replaceMerge: i }, en);
|
|
@@ -174,21 +174,21 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
174
174
|
seriesTransition: a,
|
|
175
175
|
optionChanged: !0
|
|
176
176
|
};
|
|
177
|
-
if (n) this[
|
|
177
|
+
if (n) this[N] = {
|
|
178
178
|
silent: r,
|
|
179
179
|
updateParams: l
|
|
180
|
-
}, this[
|
|
180
|
+
}, this[j] = !1, this.getZr().wakeUp();
|
|
181
181
|
else {
|
|
182
182
|
try {
|
|
183
183
|
F(this), L.update.call(this, null, l);
|
|
184
184
|
} catch (e) {
|
|
185
|
-
throw this[
|
|
185
|
+
throw this[N] = null, this[j] = !1, e;
|
|
186
186
|
}
|
|
187
|
-
this._ssr || this._zr.flush(), this[
|
|
187
|
+
this._ssr || this._zr.flush(), this[N] = null, this[j] = !1, V.call(this, r), H.call(this, r);
|
|
188
188
|
}
|
|
189
|
-
},
|
|
190
|
-
if (this[
|
|
191
|
-
process.env.NODE_ENV !== "production" &&
|
|
189
|
+
}, u.prototype.setTheme = function(e, t) {
|
|
190
|
+
if (this[j]) {
|
|
191
|
+
process.env.NODE_ENV !== "production" && C("`setTheme` should not be called during main process.");
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
if (this._disposed) {
|
|
@@ -198,29 +198,29 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
198
198
|
var n = this._model;
|
|
199
199
|
if (n) {
|
|
200
200
|
var r = t && t.silent, i = null;
|
|
201
|
-
this[
|
|
201
|
+
this[N] && (r ??= this[N].silent, i = this[N].updateParams, this[N] = null), this[j] = !0, K(this);
|
|
202
202
|
try {
|
|
203
203
|
this._updateTheme(e), n.setTheme(this._theme), F(this), L.update.call(this, { type: "setTheme" }, i);
|
|
204
204
|
} catch (e) {
|
|
205
|
-
throw this[
|
|
205
|
+
throw this[j] = !1, e;
|
|
206
206
|
}
|
|
207
|
-
this[
|
|
207
|
+
this[j] = !1, V.call(this, r), H.call(this, r);
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
},
|
|
209
|
+
}, u.prototype._updateTheme = function(e) {
|
|
210
|
+
p(e) && (e = tn[e]), e && (e = i(e), e && tt(e, !0), this._theme = e);
|
|
211
|
+
}, u.prototype.getModel = function() {
|
|
212
212
|
return this._model;
|
|
213
|
-
},
|
|
213
|
+
}, u.prototype.getOption = function() {
|
|
214
214
|
return this._model && this._model.getOption();
|
|
215
|
-
},
|
|
215
|
+
}, u.prototype.getWidth = function() {
|
|
216
216
|
return this._zr.getWidth();
|
|
217
|
-
},
|
|
217
|
+
}, u.prototype.getHeight = function() {
|
|
218
218
|
return this._zr.getHeight();
|
|
219
|
-
},
|
|
220
|
-
return this._zr.painter.dpr ||
|
|
221
|
-
},
|
|
222
|
-
return process.env.NODE_ENV !== "production" &&
|
|
223
|
-
},
|
|
219
|
+
}, u.prototype.getDevicePixelRatio = function() {
|
|
220
|
+
return this._zr.painter.dpr || v.hasGlobalWindow && window.devicePixelRatio || 1;
|
|
221
|
+
}, u.prototype.getRenderedCanvas = function(e) {
|
|
222
|
+
return process.env.NODE_ENV !== "production" && S("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(e);
|
|
223
|
+
}, u.prototype.renderToCanvas = function(e) {
|
|
224
224
|
e ||= {};
|
|
225
225
|
var t = this._zr.painter;
|
|
226
226
|
if (process.env.NODE_ENV !== "production" && t.type !== "canvas") throw Error("renderToCanvas can only be used in the canvas renderer.");
|
|
@@ -228,125 +228,125 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
228
228
|
backgroundColor: e.backgroundColor || this._model.get("backgroundColor"),
|
|
229
229
|
pixelRatio: e.pixelRatio || this.getDevicePixelRatio()
|
|
230
230
|
});
|
|
231
|
-
},
|
|
231
|
+
}, u.prototype.renderToSVGString = function(e) {
|
|
232
232
|
e ||= {};
|
|
233
233
|
var t = this._zr.painter;
|
|
234
234
|
if (process.env.NODE_ENV !== "production" && t.type !== "svg") throw Error("renderToSVGString can only be used in the svg renderer.");
|
|
235
235
|
return t.renderToString({ useViewBox: e.useViewBox });
|
|
236
|
-
},
|
|
236
|
+
}, u.prototype.getSvgDataURL = function() {
|
|
237
237
|
var e = this._zr;
|
|
238
|
-
return
|
|
238
|
+
return s(e.storage.getDisplayList(), function(e) {
|
|
239
239
|
e.stopAnimation(null, !0);
|
|
240
240
|
}), e.painter.toDataURL();
|
|
241
|
-
},
|
|
241
|
+
}, u.prototype.getDataURL = function(e) {
|
|
242
242
|
if (this._disposed) {
|
|
243
243
|
q(this.id);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
e ||= {};
|
|
247
247
|
var t = e.excludeComponents, n = this._model, r = [], i = this;
|
|
248
|
-
|
|
248
|
+
s(t, function(e) {
|
|
249
249
|
n.eachComponent({ mainType: e }, function(e) {
|
|
250
250
|
var t = i._componentsMap[e.__viewId];
|
|
251
251
|
t.group.ignore || (r.push(t), t.group.ignore = !0);
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
var a = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(e).toDataURL("image/" + (e && e.type || "png"));
|
|
255
|
-
return
|
|
255
|
+
return s(r, function(e) {
|
|
256
256
|
e.group.ignore = !1;
|
|
257
257
|
}), a;
|
|
258
|
-
},
|
|
258
|
+
}, u.prototype.getConnectedDataURL = function(e) {
|
|
259
259
|
if (this._disposed) {
|
|
260
260
|
q(this.id);
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
|
-
var n =
|
|
264
|
-
if (rn[
|
|
265
|
-
var l = c, u = c, d = -c, f = -c, p = [], m =
|
|
266
|
-
|
|
267
|
-
if (
|
|
268
|
-
var c = n ?
|
|
269
|
-
l = a(m.left, l), u = a(m.top, u), d =
|
|
263
|
+
var n = e.type === "svg", r = this.group, a = Math.min, o = Math.max, c = Infinity;
|
|
264
|
+
if (rn[r]) {
|
|
265
|
+
var l = c, u = c, d = -c, f = -c, p = [], m = e && e.pixelRatio || this.getDevicePixelRatio();
|
|
266
|
+
s(Z, function(t, s) {
|
|
267
|
+
if (t.group === r) {
|
|
268
|
+
var c = n ? t.getZr().painter.getSvgDom().innerHTML : t.renderToCanvas(i(e)), m = t.getDom().getBoundingClientRect();
|
|
269
|
+
l = a(m.left, l), u = a(m.top, u), d = o(m.right, d), f = o(m.bottom, f), p.push({
|
|
270
270
|
dom: c,
|
|
271
271
|
left: m.left,
|
|
272
272
|
top: m.top
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
}), l *= m, u *= m, d *= m, f *= m;
|
|
276
|
-
var h = d - l, g = f - u, _ =
|
|
276
|
+
var h = d - l, g = f - u, _ = t.createCanvas(), v = Xe(_, { renderer: n ? "svg" : "canvas" });
|
|
277
277
|
if (v.resize({
|
|
278
278
|
width: h,
|
|
279
279
|
height: g
|
|
280
280
|
}), n) {
|
|
281
281
|
var y = "";
|
|
282
|
-
return
|
|
282
|
+
return s(p, function(e) {
|
|
283
283
|
var t = e.left - l, n = e.top - u;
|
|
284
284
|
y += "<g transform=\"translate(" + t + "," + n + ")\">" + e.dom + "</g>";
|
|
285
|
-
}), v.painter.getSvgRoot().innerHTML = y,
|
|
286
|
-
} else return
|
|
285
|
+
}), v.painter.getSvgRoot().innerHTML = y, e.connectedBackgroundColor && v.painter.setBackgroundColor(e.connectedBackgroundColor), v.refreshImmediately(), v.painter.toDataURL();
|
|
286
|
+
} else return e.connectedBackgroundColor && v.add(new ne({
|
|
287
287
|
shape: {
|
|
288
288
|
x: 0,
|
|
289
289
|
y: 0,
|
|
290
290
|
width: h,
|
|
291
291
|
height: g
|
|
292
292
|
},
|
|
293
|
-
style: { fill:
|
|
294
|
-
})),
|
|
295
|
-
var t = new
|
|
293
|
+
style: { fill: e.connectedBackgroundColor }
|
|
294
|
+
})), s(p, function(e) {
|
|
295
|
+
var t = new te({ style: {
|
|
296
296
|
x: e.left * m - l,
|
|
297
297
|
y: e.top * m - u,
|
|
298
298
|
image: e.dom
|
|
299
299
|
} });
|
|
300
300
|
v.add(t);
|
|
301
|
-
}), v.refreshImmediately(), _.toDataURL("image/" + (
|
|
302
|
-
} else return this.getDataURL(
|
|
303
|
-
},
|
|
301
|
+
}), v.refreshImmediately(), _.toDataURL("image/" + (e && e.type || "png"));
|
|
302
|
+
} else return this.getDataURL(e);
|
|
303
|
+
}, u.prototype.convertToPixel = function(e, t, n) {
|
|
304
304
|
return R(this, "convertToPixel", e, t, n);
|
|
305
|
-
},
|
|
305
|
+
}, u.prototype.convertToLayout = function(e, t, n) {
|
|
306
306
|
return R(this, "convertToLayout", e, t, n);
|
|
307
|
-
},
|
|
307
|
+
}, u.prototype.convertFromPixel = function(e, t, n) {
|
|
308
308
|
return R(this, "convertFromPixel", e, t, n);
|
|
309
|
-
},
|
|
309
|
+
}, u.prototype.containPixel = function(e, t) {
|
|
310
310
|
if (this._disposed) {
|
|
311
311
|
q(this.id);
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
var n = this._model, r;
|
|
315
|
-
return
|
|
316
|
-
n.indexOf("Models") >= 0 &&
|
|
315
|
+
return s(se(n, e), function(e, n) {
|
|
316
|
+
n.indexOf("Models") >= 0 && s(e, function(e) {
|
|
317
317
|
var i = e.coordinateSystem;
|
|
318
318
|
if (i && i.containPoint) r ||= !!i.containPoint(t);
|
|
319
319
|
else if (n === "seriesModels") {
|
|
320
320
|
var a = this._chartsMap[e.__viewId];
|
|
321
|
-
a && a.containPoint ? r ||= a.containPoint(t, e) : process.env.NODE_ENV !== "production" &&
|
|
322
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
321
|
+
a && a.containPoint ? r ||= a.containPoint(t, e) : process.env.NODE_ENV !== "production" && w(n + ": " + (a ? "The found component do not support containPoint." : "No view mapping to the found component."));
|
|
322
|
+
} else process.env.NODE_ENV !== "production" && w(n + ": containPoint is not supported");
|
|
323
323
|
}, this);
|
|
324
324
|
}, this), !!r;
|
|
325
|
-
},
|
|
326
|
-
var n = this._model, r =
|
|
327
|
-
process.env.NODE_ENV !== "production" && (i ||
|
|
325
|
+
}, u.prototype.getVisual = function(e, t) {
|
|
326
|
+
var n = this._model, r = se(n, e, { defaultMainType: "series" }), i = r.seriesModel;
|
|
327
|
+
process.env.NODE_ENV !== "production" && (i || w("There is no specified series model"));
|
|
328
328
|
var a = i.getData(), o = r.hasOwnProperty("dataIndexInside") ? r.dataIndexInside : r.hasOwnProperty("dataIndex") ? a.indexOfRawIndex(r.dataIndex) : null;
|
|
329
|
-
return o == null ?
|
|
330
|
-
},
|
|
329
|
+
return o == null ? pt(a, t) : ft(a, o, t);
|
|
330
|
+
}, u.prototype.getViewOfComponentModel = function(e) {
|
|
331
331
|
return this._componentsMap[e.__viewId];
|
|
332
|
-
},
|
|
332
|
+
}, u.prototype.getViewOfSeriesModel = function(e) {
|
|
333
333
|
return this._chartsMap[e.__viewId];
|
|
334
|
-
},
|
|
334
|
+
}, u.prototype._initEvents = function() {
|
|
335
335
|
var e = this;
|
|
336
|
-
|
|
336
|
+
s(Zt, function(t) {
|
|
337
337
|
var n = function(n) {
|
|
338
338
|
var r = e.getModel(), i = n.target, a, o = t === "globalout";
|
|
339
|
-
if (o ? a = {} : i &&
|
|
340
|
-
var t =
|
|
339
|
+
if (o ? a = {} : i && D(i, function(e) {
|
|
340
|
+
var t = T(e);
|
|
341
341
|
if (t && t.dataIndex != null) {
|
|
342
342
|
var n = t.dataModel || r.getSeriesByIndex(t.seriesIndex);
|
|
343
343
|
return a = n && n.getDataParams(t.dataIndex, t.dataType, i) || {}, !0;
|
|
344
|
-
} else if (t.eventData) return a =
|
|
344
|
+
} else if (t.eventData) return a = c({}, t.eventData), !0;
|
|
345
345
|
}, !0), a) {
|
|
346
|
-
var
|
|
347
|
-
(
|
|
348
|
-
var u =
|
|
349
|
-
process.env.NODE_ENV !== "production" && !o && !(u && d) &&
|
|
346
|
+
var s = a.componentType, l = a.componentIndex;
|
|
347
|
+
(s === "markLine" || s === "markPoint" || s === "markArea") && (s = "series", l = a.seriesIndex);
|
|
348
|
+
var u = s && l != null && r.getComponent(s, l), d = u && e[u.mainType === "series" ? "_chartsMap" : "_componentsMap"][u.__viewId];
|
|
349
|
+
process.env.NODE_ENV !== "production" && !o && !(u && d) && w("model or view can not be found by params"), a.event = n, a.type = t, e._$eventProcessor.eventInfo = {
|
|
350
350
|
targetEl: i,
|
|
351
351
|
packedEvent: a,
|
|
352
352
|
model: u,
|
|
@@ -357,34 +357,34 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
357
357
|
n.zrEventfulCallAtLast = !0, e._zr.on(t, n, e);
|
|
358
358
|
});
|
|
359
359
|
var t = this._messageCenter;
|
|
360
|
-
|
|
360
|
+
s(Qt, function(n, r) {
|
|
361
361
|
t.on(r, function(t) {
|
|
362
362
|
e.trigger(r, t);
|
|
363
363
|
});
|
|
364
|
-
}),
|
|
365
|
-
},
|
|
364
|
+
}), qe(t, this, this._api);
|
|
365
|
+
}, u.prototype.isDisposed = function() {
|
|
366
366
|
return this._disposed;
|
|
367
|
-
},
|
|
367
|
+
}, u.prototype.clear = function() {
|
|
368
368
|
if (this._disposed) {
|
|
369
369
|
q(this.id);
|
|
370
370
|
return;
|
|
371
371
|
}
|
|
372
372
|
this.setOption({ series: [] }, !0);
|
|
373
|
-
},
|
|
373
|
+
}, u.prototype.dispose = function() {
|
|
374
374
|
if (this._disposed) {
|
|
375
375
|
q(this.id);
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
this._disposed = !0, this.getDom() &&
|
|
378
|
+
this._disposed = !0, this.getDom() && le(this.getDom(), on, "");
|
|
379
379
|
var e = this, t = e._api, n = e._model;
|
|
380
|
-
|
|
380
|
+
s(e._componentsViews, function(e) {
|
|
381
381
|
e.dispose(n, t);
|
|
382
|
-
}),
|
|
382
|
+
}), s(e._chartsViews, function(e) {
|
|
383
383
|
e.dispose(n, t);
|
|
384
384
|
}), e._zr.dispose(), e._dom = e._model = e._chartsMap = e._componentsMap = e._chartsViews = e._componentsViews = e._scheduler = e._api = e._zr = e._throttledZrFlush = e._theme = e._coordSysMgr = e._messageCenter = null, delete Z[e.id];
|
|
385
|
-
},
|
|
386
|
-
if (this[
|
|
387
|
-
process.env.NODE_ENV !== "production" &&
|
|
385
|
+
}, u.prototype.resize = function(e) {
|
|
386
|
+
if (this[j]) {
|
|
387
|
+
process.env.NODE_ENV !== "production" && C("`resize` should not be called during main process.");
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
if (this._disposed) {
|
|
@@ -395,69 +395,69 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
395
395
|
var t = this._model;
|
|
396
396
|
if (this._loadingFX && this._loadingFX.resize(), t) {
|
|
397
397
|
var n = t.resetOption("media"), r = e && e.silent;
|
|
398
|
-
this[
|
|
398
|
+
this[N] && (r ??= this[N].silent, n = !0, this[N] = null), this[j] = !0, K(this);
|
|
399
399
|
try {
|
|
400
400
|
n && F(this), L.update.call(this, {
|
|
401
401
|
type: "resize",
|
|
402
|
-
animation:
|
|
402
|
+
animation: c({ duration: 0 }, e && e.animation)
|
|
403
403
|
});
|
|
404
404
|
} catch (e) {
|
|
405
|
-
throw this[
|
|
405
|
+
throw this[j] = !1, e;
|
|
406
406
|
}
|
|
407
|
-
this[
|
|
407
|
+
this[j] = !1, V.call(this, r), H.call(this, r);
|
|
408
408
|
}
|
|
409
|
-
},
|
|
409
|
+
}, u.prototype.showLoading = function(e, t) {
|
|
410
410
|
if (this._disposed) {
|
|
411
411
|
q(this.id);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
if (
|
|
415
|
-
process.env.NODE_ENV !== "production" &&
|
|
414
|
+
if (f(e) && (t = e, e = ""), e ||= "default", this.hideLoading(), !nn[e]) {
|
|
415
|
+
process.env.NODE_ENV !== "production" && w("Loading effects " + e + " not exists.");
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
418
418
|
var n = nn[e](this._api, t), r = this._zr;
|
|
419
419
|
this._loadingFX = n, r.add(n);
|
|
420
|
-
},
|
|
420
|
+
}, u.prototype.hideLoading = function() {
|
|
421
421
|
if (this._disposed) {
|
|
422
422
|
q(this.id);
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null;
|
|
426
|
-
},
|
|
427
|
-
var t =
|
|
426
|
+
}, u.prototype.makeActionFromEvent = function(e) {
|
|
427
|
+
var t = c({}, e);
|
|
428
428
|
return t.type = Y[e.type], t;
|
|
429
|
-
},
|
|
429
|
+
}, u.prototype.dispatchAction = function(e, t) {
|
|
430
430
|
if (this._disposed) {
|
|
431
431
|
q(this.id);
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
-
if (
|
|
435
|
-
if (this[
|
|
434
|
+
if (f(t) || (t = { silent: !!t }), J[e.type] && this._model) {
|
|
435
|
+
if (this[j]) {
|
|
436
436
|
this._pendingActions.push(e);
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
439
|
var n = t.silent;
|
|
440
440
|
B.call(this, e, n);
|
|
441
441
|
var r = t.flush;
|
|
442
|
-
r ? this._zr.flush() : r !== !1 &&
|
|
442
|
+
r ? this._zr.flush() : r !== !1 && v.browser.weChat && this._throttledZrFlush(), V.call(this, n), H.call(this, n);
|
|
443
443
|
}
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
444
|
+
}, u.prototype.updateLabelLayout = function() {
|
|
445
|
+
O.trigger("series:layoutlabels", this._model, this._api, { updatedSeries: [] });
|
|
446
|
+
}, u.prototype.appendData = function(e) {
|
|
447
447
|
if (this._disposed) {
|
|
448
448
|
q(this.id);
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
452
|
-
process.env.NODE_ENV !== "production" &&
|
|
453
|
-
},
|
|
451
|
+
var t = e.seriesIndex, r = this.getModel().getSeriesByIndex(t);
|
|
452
|
+
process.env.NODE_ENV !== "production" && n(e.data && r), r.appendData(e), this._scheduler.unfinished = !0, this.getZr().wakeUp();
|
|
453
|
+
}, u.internalField = function() {
|
|
454
454
|
F = function(e) {
|
|
455
|
-
|
|
455
|
+
Ge(e._model);
|
|
456
456
|
var t = e._scheduler;
|
|
457
457
|
t.restorePipelines(e._zr, e._model), t.prepareStageTasks(), Ht(e, !0), Ht(e, !1), t.plan();
|
|
458
|
-
}, Ht = function(e,
|
|
459
|
-
for (var r = e._model, i = e._scheduler, a =
|
|
460
|
-
|
|
458
|
+
}, Ht = function(e, t) {
|
|
459
|
+
for (var r = e._model, i = e._scheduler, a = t ? e._componentsViews : e._chartsViews, o = t ? e._componentsMap : e._chartsMap, s = e._zr, c = e._api, l = 0; l < a.length; l++) a[l].__alive = !1;
|
|
460
|
+
t ? r.eachComponent(function(e, t) {
|
|
461
461
|
e !== "series" && u(t);
|
|
462
462
|
}) : r.eachSeries(u);
|
|
463
463
|
function u(e) {
|
|
@@ -465,72 +465,72 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
465
465
|
e.__requireNewView = !1;
|
|
466
466
|
var u = "_ec_" + e.id + "_" + e.type, d = !l && o[u];
|
|
467
467
|
if (!d) {
|
|
468
|
-
var f =
|
|
469
|
-
process.env.NODE_ENV !== "production" &&
|
|
468
|
+
var f = y(e.type), p = t ? Je.getClass(f.main, f.sub) : Ue.getClass(f.sub);
|
|
469
|
+
process.env.NODE_ENV !== "production" && n(p, f.sub + " does not exist."), d = new p(), d.init(r, c), o[u] = d, a.push(d), s.add(d.group);
|
|
470
470
|
}
|
|
471
471
|
e.__viewId = d.__id = u, d.__alive = !0, d.__model = e, d.group.__ecComponentInfo = {
|
|
472
472
|
mainType: e.mainType,
|
|
473
473
|
index: e.componentIndex
|
|
474
|
-
}, !
|
|
474
|
+
}, !t && i.prepareView(d, e, r, c);
|
|
475
475
|
}
|
|
476
476
|
for (var l = 0; l < a.length;) {
|
|
477
477
|
var d = a[l];
|
|
478
|
-
d.__alive ? l++ : (!
|
|
478
|
+
d.__alive ? l++ : (!t && d.renderTask.dispose(), s.remove(d.group), d.dispose(r, c), a.splice(l, 1), o[d.__id] === d && delete o[d.__id], d.__id = d.group.__ecComponentInfo = null);
|
|
479
479
|
}
|
|
480
|
-
}, I = function(e, t, n, r,
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
483
|
-
|
|
480
|
+
}, I = function(e, t, n, r, i) {
|
|
481
|
+
var o = e._model;
|
|
482
|
+
if (o.setUpdatePayload(n), !r) {
|
|
483
|
+
s([].concat(e._componentsViews, e._chartsViews), d);
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
var c =
|
|
487
|
-
l != null && (u =
|
|
488
|
-
var t =
|
|
486
|
+
var c = ae(n, r, i), l = n.excludeSeriesId, u;
|
|
487
|
+
l != null && (u = a(), s(oe(l), function(e) {
|
|
488
|
+
var t = re(e, null);
|
|
489
489
|
t != null && u.set(t, !0);
|
|
490
|
-
})),
|
|
491
|
-
if (!(u && u.get(t.id) != null)) if (
|
|
490
|
+
})), o && o.eachComponent(c, function(t) {
|
|
491
|
+
if (!(u && u.get(t.id) != null)) if (De(n)) if (t instanceof He) n.type === "highlight" && !n.notBlur && !t.get(["emphasis", "disabled"]) && ve(t, n, e._api);
|
|
492
492
|
else {
|
|
493
|
-
var r =
|
|
494
|
-
n.type === "highlight" && i && !n.notBlur &&
|
|
495
|
-
n.type === "highlight" ?
|
|
493
|
+
var r = Se(t.mainType, t.componentIndex, n.name, e._api), i = r.focusSelf, a = r.dispatchers;
|
|
494
|
+
n.type === "highlight" && i && !n.notBlur && _e(t.mainType, t.componentIndex, e._api), a && s(a, function(e) {
|
|
495
|
+
n.type === "highlight" ? be(e) : Ae(e);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
else
|
|
499
|
-
}, e),
|
|
498
|
+
else Oe(n) && t instanceof He && (Ne(t, n, e._api), Pe(t), G(e));
|
|
499
|
+
}, e), o && o.eachComponent(c, function(t) {
|
|
500
500
|
u && u.get(t.id) != null || d(e[r === "series" ? "_chartsMap" : "_componentsMap"][t.__viewId]);
|
|
501
501
|
}, e);
|
|
502
502
|
function d(r) {
|
|
503
|
-
r && r.__alive && r[t] && r[t](r.__model,
|
|
503
|
+
r && r.__alive && r[t] && r[t](r.__model, o, e._api, n);
|
|
504
504
|
}
|
|
505
505
|
}, L = {
|
|
506
506
|
prepareAndUpdate: function(e) {
|
|
507
507
|
F(this), L.update.call(this, e, e && { optionChanged: e.newOption != null });
|
|
508
508
|
},
|
|
509
509
|
update: function(e, t) {
|
|
510
|
-
var
|
|
511
|
-
if (
|
|
512
|
-
|
|
513
|
-
var c =
|
|
510
|
+
var n = this._model, i = this._api, a = this._zr, o = this._coordSysMgr, s = this._scheduler;
|
|
511
|
+
if (n) {
|
|
512
|
+
We(n), n.setUpdatePayload(e), s.restoreData(n, e), s.performSeriesTasks(n), o.create(n, i), O.trigger("coordsys:aftercreate", n, i), s.performDataProcessorTasks(n, e), z(this, n), o.update(n, i), r(n), s.performVisualTasks(n, e);
|
|
513
|
+
var c = n.get("backgroundColor") || "transparent";
|
|
514
514
|
a.setBackgroundColor(c);
|
|
515
|
-
var l =
|
|
516
|
-
l != null && l !== "auto" && a.setDarkMode(l), U(this,
|
|
515
|
+
var l = n.get("darkMode");
|
|
516
|
+
l != null && l !== "auto" && a.setDarkMode(l), U(this, n, i, e, t), O.trigger("afterupdate", n, i);
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
519
|
updateTransform: function(e) {
|
|
520
520
|
var t = this, n = t._model, r = t._api;
|
|
521
521
|
if (n) {
|
|
522
522
|
n.setUpdatePayload(e);
|
|
523
|
-
var
|
|
524
|
-
n.eachComponent(function(
|
|
525
|
-
if (
|
|
523
|
+
var i = [];
|
|
524
|
+
n.eachComponent(function(a, o) {
|
|
525
|
+
if (a !== "series") {
|
|
526
526
|
var s = t.getViewOfComponentModel(o);
|
|
527
527
|
if (s && s.__alive) if (s.updateTransform) {
|
|
528
528
|
var c = s.updateTransform(o, n, r, e);
|
|
529
|
-
c && c.update &&
|
|
530
|
-
} else
|
|
529
|
+
c && c.update && i.push(s);
|
|
530
|
+
} else i.push(s);
|
|
531
531
|
}
|
|
532
532
|
});
|
|
533
|
-
var o =
|
|
533
|
+
var o = a();
|
|
534
534
|
n.eachSeries(function(i) {
|
|
535
535
|
var a = t._chartsMap[i.__viewId], s = i.pipelineContext;
|
|
536
536
|
if (a.updateTransform && !s.progressiveRender) {
|
|
@@ -540,80 +540,80 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
540
540
|
}), t._scheduler.performVisualTasks(n, e, {
|
|
541
541
|
setDirty: !0,
|
|
542
542
|
dirtyMap: o
|
|
543
|
-
}), W(t, n, r, e, {}, o),
|
|
543
|
+
}), W(t, n, r, e, {}, o), O.trigger("afterupdate", n, r);
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
546
|
updateView: function(e) {
|
|
547
547
|
var t = this._model;
|
|
548
|
-
t && (t.setUpdatePayload(e),
|
|
548
|
+
t && (t.setUpdatePayload(e), Ue.markUpdateMethod(e, "updateView"), r(t), this._scheduler.performVisualTasks(t, e, { setDirty: !0 }), U(this, t, this._api, e, {}), O.trigger("afterupdate", t, this._api));
|
|
549
549
|
},
|
|
550
550
|
updateVisual: function(e) {
|
|
551
|
-
var t = this,
|
|
552
|
-
|
|
551
|
+
var t = this, n = this._model;
|
|
552
|
+
n && (n.setUpdatePayload(e), n.eachSeries(function(e) {
|
|
553
553
|
e.getData().clearAllVisual();
|
|
554
|
-
}),
|
|
554
|
+
}), Ue.markUpdateMethod(e, "updateVisual"), r(n), this._scheduler.performVisualTasks(n, e, {
|
|
555
555
|
visualType: "visual",
|
|
556
556
|
setDirty: !0
|
|
557
|
-
}),
|
|
558
|
-
if (
|
|
557
|
+
}), n.eachComponent(function(r, i) {
|
|
558
|
+
if (r !== "series") {
|
|
559
559
|
var a = t.getViewOfComponentModel(i);
|
|
560
|
-
a && a.__alive && a.updateVisual(i,
|
|
560
|
+
a && a.__alive && a.updateVisual(i, n, t._api, e);
|
|
561
561
|
}
|
|
562
|
-
}),
|
|
563
|
-
t._chartsMap[
|
|
564
|
-
}),
|
|
562
|
+
}), n.eachSeries(function(r) {
|
|
563
|
+
t._chartsMap[r.__viewId].updateVisual(r, n, t._api, e);
|
|
564
|
+
}), O.trigger("afterupdate", n, this._api));
|
|
565
565
|
},
|
|
566
566
|
updateLayout: function(e) {
|
|
567
567
|
L.update.call(this, e);
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
|
-
function
|
|
570
|
+
function t(e, t, n, r, i) {
|
|
571
571
|
if (e._disposed) {
|
|
572
572
|
q(e.id);
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
for (var a = e._model, o = e._coordSysMgr.getCoordinateSystems(), s, c =
|
|
575
|
+
for (var a = e._model, o = e._coordSysMgr.getCoordinateSystems(), s, c = se(a, n), l = 0; l < o.length; l++) {
|
|
576
576
|
var u = o[l];
|
|
577
577
|
if (u[t] && (s = u[t](a, c, r, i)) != null) return s;
|
|
578
578
|
}
|
|
579
|
-
process.env.NODE_ENV !== "production" &&
|
|
579
|
+
process.env.NODE_ENV !== "production" && w("No coordinate system that supports " + t + " found by the given finder.");
|
|
580
580
|
}
|
|
581
|
-
R =
|
|
581
|
+
R = t, z = function(e, t) {
|
|
582
582
|
var n = e._chartsMap, r = e._scheduler;
|
|
583
583
|
t.eachSeries(function(e) {
|
|
584
584
|
r.updateStreamModes(e, n[e.__viewId]);
|
|
585
585
|
});
|
|
586
|
-
}, B = function(e,
|
|
587
|
-
var r = this, i = this.getModel(),
|
|
588
|
-
this[
|
|
586
|
+
}, B = function(e, t) {
|
|
587
|
+
var r = this, i = this.getModel(), a = e.type, l = e.escapeConnect, u = J[a], d = (u.update || "update").split(":"), p = d.pop(), h = d[0] != null && y(d[0]);
|
|
588
|
+
this[j] = !0, K(this);
|
|
589
589
|
var g = [e], _ = !1;
|
|
590
|
-
e.batch && (_ = !0, g =
|
|
591
|
-
return t =
|
|
590
|
+
e.batch && (_ = !0, g = m(e.batch, function(t) {
|
|
591
|
+
return t = o(c({}, t), e), t.batch = null, t;
|
|
592
592
|
}));
|
|
593
|
-
var v = [],
|
|
594
|
-
if (
|
|
593
|
+
var v = [], b, ee = [], te = u.nonRefinedEventType, ne = Oe(e), x = De(e);
|
|
594
|
+
if (x && ge(this._api), s(g, function(t) {
|
|
595
595
|
var n = u.action(t, i, r._api);
|
|
596
|
-
if (u.refineEvent ?
|
|
597
|
-
var a =
|
|
598
|
-
I(r,
|
|
599
|
-
} else
|
|
600
|
-
}),
|
|
601
|
-
this[
|
|
596
|
+
if (u.refineEvent ? ee.push(n) : b = n, b ||= c({}, t), b.type = te, v.push(b), x) {
|
|
597
|
+
var a = ce(e), o = a.queryOptionMap, s = a.mainTypeSpecified ? o.keys()[0] : "series";
|
|
598
|
+
I(r, p, t, s), G(r);
|
|
599
|
+
} else ne ? (I(r, p, t, "series"), G(r)) : h && I(r, p, t, h.main, h.sub);
|
|
600
|
+
}), p !== "none" && !x && !ne && !h) try {
|
|
601
|
+
this[N] ? (F(this), L.update.call(this, e), this[N] = null) : L[p].call(this, e);
|
|
602
602
|
} catch (e) {
|
|
603
|
-
throw this[
|
|
603
|
+
throw this[j] = !1, e;
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
type:
|
|
605
|
+
if (b = _ ? {
|
|
606
|
+
type: te,
|
|
607
607
|
escapeConnect: l,
|
|
608
608
|
batch: v
|
|
609
|
-
} : v[0], this[
|
|
610
|
-
var
|
|
609
|
+
} : v[0], this[j] = !1, !t) {
|
|
610
|
+
var S = void 0;
|
|
611
611
|
if (u.refineEvent) {
|
|
612
|
-
var
|
|
613
|
-
|
|
612
|
+
var C = u.refineEvent(ee, e, i, this._api).eventContent;
|
|
613
|
+
n(f(C)), S = o({ type: u.refinedEventType }, C), S.fromAction = e.type, S.fromActionPayload = e, S.escapeConnect = !0;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
|
|
615
|
+
var w = this._messageCenter;
|
|
616
|
+
w.trigger(b.type, b), S && w.trigger(S.type, S);
|
|
617
617
|
}
|
|
618
618
|
}, V = function(e) {
|
|
619
619
|
for (var t = this._pendingActions; t.length;) {
|
|
@@ -624,21 +624,21 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
624
624
|
!e && this.trigger("updated");
|
|
625
625
|
}, Ut = function(e, t) {
|
|
626
626
|
e.on("rendered", function(n) {
|
|
627
|
-
t.trigger("rendered", n), e.animation.isFinished() && !t[
|
|
627
|
+
t.trigger("rendered", n), e.animation.isFinished() && !t[N] && !t._scheduler.unfinished && !t._pendingActions.length ? t.trigger("finished") : e.refresh();
|
|
628
628
|
});
|
|
629
629
|
}, Wt = function(e, t) {
|
|
630
630
|
e.on("mouseover", function(e) {
|
|
631
|
-
var n = e.target, r =
|
|
632
|
-
r && (Ee(r, e, t._api), G(t));
|
|
633
|
-
}).on("mouseout", function(e) {
|
|
634
|
-
var n = e.target, r = k(n, De);
|
|
631
|
+
var n = e.target, r = D(n, Ee);
|
|
635
632
|
r && (Te(r, e, t._api), G(t));
|
|
633
|
+
}).on("mouseout", function(e) {
|
|
634
|
+
var n = e.target, r = D(n, Ee);
|
|
635
|
+
r && (we(r, e, t._api), G(t));
|
|
636
636
|
}).on("click", function(e) {
|
|
637
|
-
var n = e.target, r =
|
|
638
|
-
return
|
|
637
|
+
var n = e.target, r = D(n, function(e) {
|
|
638
|
+
return T(e).dataIndex != null;
|
|
639
639
|
}, !0);
|
|
640
640
|
if (r) {
|
|
641
|
-
var i = r.selected ? "unselect" : "select", a =
|
|
641
|
+
var i = r.selected ? "unselect" : "select", a = T(r);
|
|
642
642
|
t._api.dispatchAction({
|
|
643
643
|
type: i,
|
|
644
644
|
dataType: a.dataType,
|
|
@@ -649,12 +649,12 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
};
|
|
652
|
-
function
|
|
652
|
+
function r(e) {
|
|
653
653
|
e.clearColorPalette(), e.eachSeries(function(e) {
|
|
654
654
|
e.clearColorPalette();
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function i(e) {
|
|
658
658
|
var t = [], n = [], r = !1;
|
|
659
659
|
if (e.eachComponent(function(e, i) {
|
|
660
660
|
var a = i.get("zlevel") || 0, o = i.get("z") || 0, s = i.getZLevelKey();
|
|
@@ -666,63 +666,63 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
666
666
|
key: s
|
|
667
667
|
});
|
|
668
668
|
}), r) {
|
|
669
|
-
var i = t.concat(n), a,
|
|
670
|
-
|
|
669
|
+
var i = t.concat(n), a, o;
|
|
670
|
+
Ye(i, function(e, t) {
|
|
671
671
|
return e.zlevel === t.zlevel ? e.z - t.z : e.zlevel - t.zlevel;
|
|
672
|
-
}),
|
|
672
|
+
}), s(i, function(t) {
|
|
673
673
|
var n = e.getComponent(t.type, t.idx), r = t.zlevel, i = t.key;
|
|
674
|
-
a != null && (r = Math.max(a, r)), i ? (r === a && i !==
|
|
674
|
+
a != null && (r = Math.max(a, r)), i ? (r === a && i !== o && r++, o = i) : o &&= (r === a && r++, ""), a = r, n.setZLevel(r);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
U = function(e, t, n,
|
|
679
|
-
|
|
678
|
+
U = function(e, t, n, r, a) {
|
|
679
|
+
i(t), Gt(e, t, n, r, a), s(e._chartsViews, function(e) {
|
|
680
680
|
e.__alive = !1;
|
|
681
|
-
}), W(e, t, n,
|
|
681
|
+
}), W(e, t, n, r, a), s(e._chartsViews, function(e) {
|
|
682
682
|
e.__alive || e.remove(t, n);
|
|
683
683
|
});
|
|
684
684
|
}, Gt = function(e, t, n, r, i, a) {
|
|
685
|
-
|
|
685
|
+
s(a || e._componentsViews, function(e) {
|
|
686
686
|
var i = e.__model;
|
|
687
|
-
|
|
687
|
+
h(i, e), e.render(i, t, n, r), p(i, e), _(i, e);
|
|
688
688
|
});
|
|
689
689
|
}, W = function(e, t, n, r, i, a) {
|
|
690
690
|
var o = e._scheduler;
|
|
691
|
-
i =
|
|
692
|
-
var
|
|
691
|
+
i = c(i || {}, { updatedSeries: t.getSeries() }), O.trigger("series:beforeupdate", t, n, i);
|
|
692
|
+
var s = !1;
|
|
693
693
|
t.eachSeries(function(t) {
|
|
694
694
|
var n = e._chartsMap[t.__viewId];
|
|
695
695
|
n.__alive = !0;
|
|
696
696
|
var i = n.renderTask;
|
|
697
|
-
o.updatePayload(i, r),
|
|
698
|
-
}), o.unfinished =
|
|
697
|
+
o.updatePayload(i, r), h(t, n), a && a.get(t.uid) && i.dirty(), i.perform(o.getPerformArgs(i)) && (s = !0), n.group.silent = !!t.get("silent"), d(t, n), Pe(t);
|
|
698
|
+
}), o.unfinished = s || o.unfinished, O.trigger("series:layoutlabels", t, n, i), O.trigger("series:transition", t, n, i), t.eachSeries(function(t) {
|
|
699
699
|
var n = e._chartsMap[t.__viewId];
|
|
700
|
-
|
|
701
|
-
}),
|
|
700
|
+
p(t, n), _(t, n);
|
|
701
|
+
}), u(e, t), O.trigger("series:afterupdate", t, n, i);
|
|
702
702
|
}, G = function(e) {
|
|
703
|
-
e[
|
|
703
|
+
e[Mt] = !0, e.getZr().wakeUp();
|
|
704
704
|
}, K = function(e) {
|
|
705
|
-
e[
|
|
705
|
+
e[M] = (e[M] + 1) % 1e6;
|
|
706
706
|
}, Jt = function(e) {
|
|
707
|
-
e[
|
|
708
|
-
|
|
709
|
-
}), e[
|
|
707
|
+
e[Mt] && (e.getZr().storage.traverse(function(e) {
|
|
708
|
+
Fe(e) || l(e);
|
|
709
|
+
}), e[Mt] = !1);
|
|
710
710
|
};
|
|
711
|
-
function
|
|
711
|
+
function l(e) {
|
|
712
712
|
for (var t = [], n = e.currentStates, r = 0; r < n.length; r++) {
|
|
713
713
|
var i = n[r];
|
|
714
714
|
i === "emphasis" || i === "blur" || i === "select" || t.push(i);
|
|
715
715
|
}
|
|
716
716
|
e.selected && e.states.select && t.push("select"), e.hoverState === 2 && e.states.emphasis ? t.push("emphasis") : e.hoverState === 1 && e.states.blur && t.push("blur"), e.useStates(t);
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function u(e, t) {
|
|
719
719
|
var n = e._zr;
|
|
720
720
|
if (n.painter.type === "canvas") {
|
|
721
721
|
var r = n.storage, i = 0;
|
|
722
722
|
r.traverse(function(e) {
|
|
723
723
|
e.isGroup || i++;
|
|
724
724
|
});
|
|
725
|
-
var a = i >
|
|
725
|
+
var a = i > g(t.get("hoverLayerThreshold"), Qe.hoverLayerThreshold) && !v.node && !v.worker;
|
|
726
726
|
(e._usingTHL || a) && (t.eachSeries(function(t) {
|
|
727
727
|
if (!t.preventUsingHoverLayer) {
|
|
728
728
|
var n = e._chartsMap[t.__viewId];
|
|
@@ -734,29 +734,29 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
734
734
|
}), e._usingTHL = a);
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function d(e, t) {
|
|
738
738
|
var n = e.get("blendMode") || null;
|
|
739
739
|
t.eachRendered(function(e) {
|
|
740
740
|
e.isGroup || (e.style.blend = n);
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function p(e, t) {
|
|
744
744
|
if (!e.preventAutoZ) {
|
|
745
|
-
var n =
|
|
745
|
+
var n = Ie(e);
|
|
746
746
|
t.eachRendered(function(e) {
|
|
747
|
-
return
|
|
747
|
+
return Le(e, n.z, n.zlevel), !0;
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function h(e, t) {
|
|
752
752
|
t.eachRendered(function(e) {
|
|
753
|
-
if (!
|
|
753
|
+
if (!Fe(e)) {
|
|
754
754
|
var t = e.getTextContent(), n = e.getTextGuideLine();
|
|
755
755
|
e.stateTransition &&= null, t && t.stateTransition && (t.stateTransition = null), n && n.stateTransition && (n.stateTransition = null), e.hasState() ? (e.prevStates = e.currentStates, e.clearStates()) : e.prevStates &&= null;
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function _(e, t) {
|
|
760
760
|
var n = e.getModel("stateAnimation"), r = e.isAnimationEnabled(), i = n.get("duration"), a = i > 0 ? {
|
|
761
761
|
duration: i,
|
|
762
762
|
delay: n.get("delay"),
|
|
@@ -764,8 +764,8 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
764
764
|
} : null;
|
|
765
765
|
t.eachRendered(function(e) {
|
|
766
766
|
if (e.states && e.states.emphasis) {
|
|
767
|
-
if (
|
|
768
|
-
if (e instanceof
|
|
767
|
+
if (Fe(e)) return;
|
|
768
|
+
if (e instanceof ee && Me(e), e.__dirty) {
|
|
769
769
|
var t = e.prevStates;
|
|
770
770
|
t && e.useStates(t);
|
|
771
771
|
}
|
|
@@ -774,74 +774,74 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
|
|
|
774
774
|
var n = e.getTextContent(), i = e.getTextGuideLine();
|
|
775
775
|
n && (n.stateTransition = a), i && (i.stateTransition = a);
|
|
776
776
|
}
|
|
777
|
-
e.__dirty &&
|
|
777
|
+
e.__dirty && l(e);
|
|
778
778
|
}
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
|
-
Kt = function(
|
|
782
|
-
return new (function(
|
|
783
|
-
|
|
784
|
-
function
|
|
785
|
-
return
|
|
781
|
+
Kt = function(t) {
|
|
782
|
+
return new (function(n) {
|
|
783
|
+
e(r, n);
|
|
784
|
+
function r() {
|
|
785
|
+
return n !== null && n.apply(this, arguments) || this;
|
|
786
786
|
}
|
|
787
|
-
return
|
|
788
|
-
return
|
|
789
|
-
},
|
|
790
|
-
for (;
|
|
791
|
-
var n =
|
|
792
|
-
if (n != null) return
|
|
793
|
-
|
|
787
|
+
return r.prototype.getCoordinateSystems = function() {
|
|
788
|
+
return t._coordSysMgr.getCoordinateSystems();
|
|
789
|
+
}, r.prototype.getComponentByElement = function(e) {
|
|
790
|
+
for (; e;) {
|
|
791
|
+
var n = e.__ecComponentInfo;
|
|
792
|
+
if (n != null) return t._model.getComponent(n.mainType, n.index);
|
|
793
|
+
e = e.parent;
|
|
794
794
|
}
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
},
|
|
802
|
-
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
},
|
|
808
|
-
return
|
|
809
|
-
},
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
return
|
|
813
|
-
},
|
|
814
|
-
return
|
|
815
|
-
},
|
|
816
|
-
return
|
|
817
|
-
},
|
|
818
|
-
}(
|
|
795
|
+
}, r.prototype.enterEmphasis = function(e, n) {
|
|
796
|
+
be(e, n), G(t);
|
|
797
|
+
}, r.prototype.leaveEmphasis = function(e, n) {
|
|
798
|
+
Ae(e, n), G(t);
|
|
799
|
+
}, r.prototype.enterBlur = function(e) {
|
|
800
|
+
ye(e), G(t);
|
|
801
|
+
}, r.prototype.leaveBlur = function(e) {
|
|
802
|
+
ke(e), G(t);
|
|
803
|
+
}, r.prototype.enterSelect = function(e) {
|
|
804
|
+
xe(e), G(t);
|
|
805
|
+
}, r.prototype.leaveSelect = function(e) {
|
|
806
|
+
je(e), G(t);
|
|
807
|
+
}, r.prototype.getModel = function() {
|
|
808
|
+
return t.getModel();
|
|
809
|
+
}, r.prototype.getViewOfComponentModel = function(e) {
|
|
810
|
+
return t.getViewOfComponentModel(e);
|
|
811
|
+
}, r.prototype.getViewOfSeriesModel = function(e) {
|
|
812
|
+
return t.getViewOfSeriesModel(e);
|
|
813
|
+
}, r.prototype.getECUpdateCycleVersion = function() {
|
|
814
|
+
return t[M];
|
|
815
|
+
}, r.prototype.usingTHL = function() {
|
|
816
|
+
return t._usingTHL;
|
|
817
|
+
}, r;
|
|
818
|
+
}(ue))(t);
|
|
819
819
|
}, qt = function(e) {
|
|
820
820
|
function t(e, t) {
|
|
821
821
|
for (var n = 0; n < e.length; n++) {
|
|
822
822
|
var r = e[n];
|
|
823
|
-
r[
|
|
823
|
+
r[P] = t;
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
s(Y, function(n, r) {
|
|
827
827
|
e._messageCenter.on(r, function(n) {
|
|
828
|
-
if (rn[e.group] && e[
|
|
828
|
+
if (rn[e.group] && e[P] !== Pt) {
|
|
829
829
|
if (n && n.escapeConnect) return;
|
|
830
830
|
var r = e.makeActionFromEvent(n), i = [];
|
|
831
|
-
|
|
831
|
+
s(Z, function(t) {
|
|
832
832
|
t !== e && t.group === e.group && i.push(t);
|
|
833
|
-
}), t(i, Pt),
|
|
834
|
-
e[
|
|
833
|
+
}), t(i, Pt), s(i, function(e) {
|
|
834
|
+
e[P] !== Ft && e.dispatchAction(r);
|
|
835
835
|
}), t(i, It);
|
|
836
836
|
}
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
};
|
|
840
|
-
}(),
|
|
841
|
-
}(
|
|
840
|
+
}(), u;
|
|
841
|
+
}(b), Xt = Yt.prototype;
|
|
842
842
|
Xt.on = Lt("on"), Xt.off = Lt("off"), Xt.one = function(e, t, n) {
|
|
843
843
|
var r = this;
|
|
844
|
-
|
|
844
|
+
x("ECharts#one is deprecated.");
|
|
845
845
|
function i() {
|
|
846
846
|
var n = [...arguments];
|
|
847
847
|
t && t.apply && t.apply(this, n), r.off(e, i);
|
|
@@ -860,7 +860,7 @@ var Zt = [
|
|
|
860
860
|
"contextmenu"
|
|
861
861
|
];
|
|
862
862
|
function q(e) {
|
|
863
|
-
process.env.NODE_ENV !== "production" &&
|
|
863
|
+
process.env.NODE_ENV !== "production" && w("Instance " + e + " has been disposed");
|
|
864
864
|
}
|
|
865
865
|
var J = {}, Y = {}, Qt = {}, $t = [], en = [], X = [], tn = {}, nn = {}, Z = {}, rn = {}, an = /* @__PURE__ */ new Date() - 0;
|
|
866
866
|
/* @__PURE__ */ new Date() - 0;
|
|
@@ -870,23 +870,23 @@ function sn(e, t, n) {
|
|
|
870
870
|
if (r) {
|
|
871
871
|
if (process.env.NODE_ENV !== "production" && !e) throw Error("Initialize failed: invalid dom.");
|
|
872
872
|
var i = cn(e);
|
|
873
|
-
if (i) return process.env.NODE_ENV !== "production" &&
|
|
874
|
-
process.env.NODE_ENV !== "production" &&
|
|
873
|
+
if (i) return process.env.NODE_ENV !== "production" && w("There is a chart instance already initialized on the dom."), i;
|
|
874
|
+
process.env.NODE_ENV !== "production" && u(e) && e.nodeName.toUpperCase() !== "CANVAS" && (!e.clientWidth && (!n || n.width == null) || !e.clientHeight && (!n || n.height == null)) && w("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
|
|
875
875
|
}
|
|
876
876
|
var a = new Yt(e, t, n);
|
|
877
|
-
return a.id = "ec_" + an++, Z[a.id] = a, r &&
|
|
877
|
+
return a.id = "ec_" + an++, Z[a.id] = a, r && le(e, on, a.id), qt(a), O.trigger("afterinit", a), a;
|
|
878
878
|
}
|
|
879
879
|
function cn(e) {
|
|
880
|
-
return Z[
|
|
880
|
+
return Z[ie(e, on)];
|
|
881
881
|
}
|
|
882
882
|
function ln(e, t) {
|
|
883
883
|
tn[e] = t;
|
|
884
884
|
}
|
|
885
885
|
function un(e) {
|
|
886
|
-
|
|
886
|
+
l(en, e) < 0 && en.push(e);
|
|
887
887
|
}
|
|
888
888
|
function dn(e, t) {
|
|
889
|
-
vn($t, e, t,
|
|
889
|
+
vn($t, e, t, xt);
|
|
890
890
|
}
|
|
891
891
|
function fn(e) {
|
|
892
892
|
mn("afterinit", e);
|
|
@@ -895,92 +895,92 @@ function pn(e) {
|
|
|
895
895
|
mn("afterupdate", e);
|
|
896
896
|
}
|
|
897
897
|
function mn(e, t) {
|
|
898
|
-
|
|
898
|
+
O.on(e, t);
|
|
899
899
|
}
|
|
900
|
-
function Q(e,
|
|
900
|
+
function Q(e, t, r) {
|
|
901
901
|
var i, a, o, s, c;
|
|
902
|
-
|
|
902
|
+
d(t) && (r = t, t = ""), f(e) ? (i = e.type, a = e.event, s = e.update, c = e.publishNonRefinedEvent, r ||= e.action, o = e.refineEvent) : (i = e, a = t);
|
|
903
903
|
function l(e) {
|
|
904
904
|
return e.toLowerCase();
|
|
905
905
|
}
|
|
906
906
|
a = l(a || i);
|
|
907
|
-
var
|
|
908
|
-
J[i] || (
|
|
907
|
+
var u = o ? l(i) : a;
|
|
908
|
+
J[i] || (n(Nt.test(i) && Nt.test(a)), o && n(a !== i), J[i] = {
|
|
909
909
|
actionType: i,
|
|
910
910
|
refinedEventType: a,
|
|
911
|
-
nonRefinedEventType:
|
|
911
|
+
nonRefinedEventType: u,
|
|
912
912
|
update: s,
|
|
913
913
|
action: r,
|
|
914
914
|
refineEvent: o
|
|
915
|
-
}, Qt[a] = 1, o && c && (Qt[
|
|
915
|
+
}, Qt[a] = 1, o && c && (Qt[u] = 1), process.env.NODE_ENV !== "production" && Y[u] && C(u + " must not be shared; use \"refineEvent\" if you intend to share an event name."), Y[u] = i);
|
|
916
916
|
}
|
|
917
917
|
function hn(e, t) {
|
|
918
|
-
|
|
918
|
+
Re.register(e, t);
|
|
919
919
|
}
|
|
920
920
|
function gn(e, t) {
|
|
921
|
-
vn(X, e, t,
|
|
921
|
+
vn(X, e, t, Ct, "layout", !0);
|
|
922
922
|
}
|
|
923
923
|
function $(e, t) {
|
|
924
|
-
vn(X, e, t,
|
|
924
|
+
vn(X, e, t, Tt, "visual", !0);
|
|
925
925
|
}
|
|
926
926
|
var _n = [];
|
|
927
|
-
function vn(e,
|
|
928
|
-
if ((
|
|
929
|
-
if (isNaN(
|
|
930
|
-
|
|
931
|
-
|
|
927
|
+
function vn(e, t, r, i, a, o) {
|
|
928
|
+
if ((d(t) || f(t)) && (r = t, t = i), process.env.NODE_ENV !== "production") {
|
|
929
|
+
if (isNaN(t) || t == null) throw Error("Illegal priority");
|
|
930
|
+
s(e, function(e) {
|
|
931
|
+
n(e.__raw !== r);
|
|
932
932
|
});
|
|
933
933
|
}
|
|
934
|
-
if (!(
|
|
934
|
+
if (!(l(_n, r) >= 0)) {
|
|
935
935
|
_n.push(r);
|
|
936
|
-
var
|
|
937
|
-
|
|
936
|
+
var c = st.wrapStageHandler(r, a);
|
|
937
|
+
c.__prio = t, c.__raw = r, e.push(c), process.env.NODE_ENV !== "production" && o && n(!c.dirtyOnOverallProgress, "dirtyOnOverallProgress is not allowed in " + a + " stage; otherwise progressive rendering is disabled on all series.");
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
function yn(e, t) {
|
|
941
941
|
nn[e] = t;
|
|
942
942
|
}
|
|
943
943
|
function bn(e, t, n) {
|
|
944
|
-
var r =
|
|
944
|
+
var r = mt("registerMap");
|
|
945
945
|
r && r(e, t, n);
|
|
946
946
|
}
|
|
947
947
|
var xn = Ve;
|
|
948
|
-
$(
|
|
948
|
+
$(k, at), $(A, it), $(A, rt), $(k, dt), $(A, ut), $(At, ht), un(tt), dn(vt, nt), yn("default", ot), Q({
|
|
949
|
+
type: de,
|
|
950
|
+
event: de,
|
|
951
|
+
update: de
|
|
952
|
+
}, h), Q({
|
|
953
|
+
type: E,
|
|
954
|
+
event: E,
|
|
955
|
+
update: E
|
|
956
|
+
}, h), Q({
|
|
949
957
|
type: fe,
|
|
950
|
-
event:
|
|
951
|
-
update: fe
|
|
952
|
-
|
|
953
|
-
type: O,
|
|
954
|
-
event: O,
|
|
955
|
-
update: O
|
|
956
|
-
}, m), Q({
|
|
957
|
-
type: pe,
|
|
958
|
-
event: me,
|
|
959
|
-
update: pe,
|
|
960
|
-
action: m,
|
|
958
|
+
event: pe,
|
|
959
|
+
update: fe,
|
|
960
|
+
action: h,
|
|
961
961
|
refineEvent: Sn,
|
|
962
962
|
publishNonRefinedEvent: !0
|
|
963
963
|
}), Q({
|
|
964
|
-
type:
|
|
965
|
-
event:
|
|
966
|
-
update:
|
|
967
|
-
action:
|
|
964
|
+
type: he,
|
|
965
|
+
event: pe,
|
|
966
|
+
update: he,
|
|
967
|
+
action: h,
|
|
968
968
|
refineEvent: Sn,
|
|
969
969
|
publishNonRefinedEvent: !0
|
|
970
970
|
}), Q({
|
|
971
|
-
type:
|
|
972
|
-
event:
|
|
973
|
-
update:
|
|
974
|
-
action:
|
|
971
|
+
type: me,
|
|
972
|
+
event: pe,
|
|
973
|
+
update: me,
|
|
974
|
+
action: h,
|
|
975
975
|
refineEvent: Sn,
|
|
976
976
|
publishNonRefinedEvent: !0
|
|
977
977
|
});
|
|
978
978
|
function Sn(e, t, n, r) {
|
|
979
979
|
return { eventContent: {
|
|
980
|
-
selected:
|
|
980
|
+
selected: Ce(n),
|
|
981
981
|
isFromClick: t.isFromClick || !1
|
|
982
982
|
} };
|
|
983
983
|
}
|
|
984
|
-
ln("default", {}), ln("dark",
|
|
984
|
+
ln("default", {}), ln("dark", ct);
|
|
985
985
|
//#endregion
|
|
986
|
-
export {
|
|
986
|
+
export { jt as PRIORITY, sn as init, Q as registerAction, hn as registerCoordinateSystem, gn as registerLayout, yn as registerLoading, bn as registerMap, fn as registerPostInit, pn as registerPostUpdate, un as registerPreprocessor, dn as registerProcessor, xn as registerTransform, mn as registerUpdateLifecycle, $ as registerVisual };
|