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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import x from "
|
|
1
|
+
import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { assert as t, clone as n, createHashMap as r, each as i, extend as a, filter as o, isArray as s, isFunction as c, isObject as l, isString as u, merge as d, mixin as f } from "../../../zrender/lib/core/util.js";
|
|
3
|
+
import { error as p, warn as m } from "../util/log.js";
|
|
4
|
+
import { convertOptionIdName as h, isComponentIdInternal as g, mappingToExists as _, normalizeToArray as v, setComponentTypeToKeyInfo as y } from "../util/model.js";
|
|
5
|
+
import b from "./Model.js";
|
|
6
|
+
import { resetSourceDefaulter as x } from "../data/helper/sourceHelper.js";
|
|
7
7
|
import S from "./Component.js";
|
|
8
8
|
import { PaletteMixin as C } from "./mixin/palette.js";
|
|
9
9
|
import w from "./globalDefault.js";
|
|
@@ -60,104 +60,104 @@ var E, D, O, k = "\0_ec_inner", A = 1, j = {
|
|
|
60
60
|
custom: "CustomChart"
|
|
61
61
|
}, N = {};
|
|
62
62
|
function P(e) {
|
|
63
|
-
|
|
63
|
+
i(e, function(e, t) {
|
|
64
64
|
if (!S.hasClass(t)) {
|
|
65
65
|
var n = j[t];
|
|
66
|
-
n && !N[n] && (
|
|
66
|
+
n && !N[n] && (p("Component " + t + " is used but not imported.\nimport { " + n + " } from 'echarts/components';\necharts.use([" + n + "]);"), N[n] = !0);
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
var F = function(
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
return
|
|
70
|
+
var F = function(s) {
|
|
71
|
+
e(f, s);
|
|
72
|
+
function f() {
|
|
73
|
+
return s !== null && s.apply(this, arguments) || this;
|
|
74
74
|
}
|
|
75
|
-
return
|
|
76
|
-
r ||= {}, this.option = null, this._theme = new
|
|
77
|
-
},
|
|
78
|
-
process.env.NODE_ENV !== "production" && (e
|
|
75
|
+
return f.prototype.init = function(e, t, n, r, i, a) {
|
|
76
|
+
r ||= {}, this.option = null, this._theme = new b(r), this._locale = new b(i), this._optionManager = a;
|
|
77
|
+
}, f.prototype.setOption = function(e, n, r) {
|
|
78
|
+
process.env.NODE_ENV !== "production" && (t(e != null, "option is null/undefined"), t(e[k] !== A, "please use chart.getOption()"));
|
|
79
79
|
var i = B(n);
|
|
80
|
-
this._optionManager.setOption(
|
|
81
|
-
},
|
|
80
|
+
this._optionManager.setOption(e, r, i), this._resetOption(null, i);
|
|
81
|
+
}, f.prototype.resetOption = function(e, t) {
|
|
82
82
|
return this._resetOption(e, B(t));
|
|
83
|
-
},
|
|
84
|
-
var n = !1,
|
|
83
|
+
}, f.prototype._resetOption = function(e, t) {
|
|
84
|
+
var n = !1, r = this._optionManager;
|
|
85
85
|
if (!e || e === "recreate") {
|
|
86
|
-
var a =
|
|
86
|
+
var a = r.mountOption(e === "recreate");
|
|
87
87
|
process.env.NODE_ENV !== "production" && P(a), !this.option || e === "recreate" ? O(this, a) : (this.restoreData(), this._mergeOption(a, t)), n = !0;
|
|
88
88
|
}
|
|
89
89
|
if ((e === "timeline" || e === "media") && this.restoreData(), !e || e === "recreate" || e === "timeline") {
|
|
90
|
-
var o =
|
|
90
|
+
var o = r.getTimelineOption(this);
|
|
91
91
|
o && (n = !0, this._mergeOption(o, t));
|
|
92
92
|
}
|
|
93
93
|
if (!e || e === "recreate" || e === "media") {
|
|
94
|
-
var s =
|
|
95
|
-
s.length &&
|
|
94
|
+
var s = r.getMediaOption(this);
|
|
95
|
+
s.length && i(s, function(e) {
|
|
96
96
|
n = !0, this._mergeOption(e, t);
|
|
97
97
|
}, this);
|
|
98
98
|
}
|
|
99
99
|
return n;
|
|
100
|
-
},
|
|
100
|
+
}, f.prototype.mergeOption = function(e) {
|
|
101
101
|
this._mergeOption(e, null);
|
|
102
|
-
},
|
|
103
|
-
var o = this.option, s = this._componentsMap, c = this._componentsCount, l = [],
|
|
104
|
-
|
|
105
|
-
e != null && (S.hasClass(
|
|
106
|
-
}),
|
|
107
|
-
S.hasClass(t) && !
|
|
102
|
+
}, f.prototype._mergeOption = function(e, t) {
|
|
103
|
+
var o = this.option, s = this._componentsMap, c = this._componentsCount, l = [], u = r(), f = t && t.replaceMergeMainTypeMap;
|
|
104
|
+
x(this), i(e, function(e, t) {
|
|
105
|
+
e != null && (S.hasClass(t) ? t && (l.push(t), u.set(t, !0)) : o[t] = o[t] == null ? n(e) : d(o[t], e, !0));
|
|
106
|
+
}), f && f.each(function(e, t) {
|
|
107
|
+
S.hasClass(t) && !u.get(t) && (l.push(t), u.set(t, !0));
|
|
108
108
|
}), S.topologicalTravel(l, S.getAllClassMainTypes(), h, this);
|
|
109
109
|
function h(t) {
|
|
110
|
-
var n = T(this, t,
|
|
111
|
-
|
|
112
|
-
var u = [], d = [], h = 0,
|
|
113
|
-
|
|
114
|
-
var r = e.existing,
|
|
115
|
-
if (!
|
|
110
|
+
var n = T(this, t, v(e[t])), r = s.get(t), l = _(r, n, r ? f && f.get(t) ? "replaceMerge" : "normalMerge" : "replaceAll");
|
|
111
|
+
y(l, t, S), o[t] = null, s.set(t, null), c.set(t, 0);
|
|
112
|
+
var u = [], d = [], h = 0, g, b;
|
|
113
|
+
i(l, function(e, n) {
|
|
114
|
+
var r = e.existing, i = e.newOption;
|
|
115
|
+
if (!i) r && (r.mergeOption({}, this), r.optionUpdated({}, !1));
|
|
116
116
|
else {
|
|
117
117
|
var o = t === "series", s = S.getClass(t, e.keyInfo.subType, !o);
|
|
118
118
|
if (!s) {
|
|
119
119
|
if (process.env.NODE_ENV !== "production") {
|
|
120
120
|
var c = e.keyInfo.subType, l = M[c];
|
|
121
|
-
N[c] || (N[c] = !0,
|
|
121
|
+
N[c] || (N[c] = !0, p(l ? "Series " + c + " is used but not imported.\nimport { " + l + " } from 'echarts/charts';\necharts.use([" + l + "]);" : "Unknown series " + c));
|
|
122
122
|
}
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
if (t === "tooltip") {
|
|
126
|
-
if (
|
|
127
|
-
process.env.NODE_ENV !== "production" && (b ||= (
|
|
126
|
+
if (g) {
|
|
127
|
+
process.env.NODE_ENV !== "production" && (b ||= (m("Currently only one tooltip component is allowed."), !0));
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
g = !0;
|
|
131
131
|
}
|
|
132
|
-
if (r && r.constructor === s) r.name = e.keyInfo.name, r.mergeOption(
|
|
132
|
+
if (r && r.constructor === s) r.name = e.keyInfo.name, r.mergeOption(i, this), r.optionUpdated(i, !1);
|
|
133
133
|
else {
|
|
134
|
-
var
|
|
135
|
-
r = new s(
|
|
134
|
+
var f = a({ componentIndex: n }, e.keyInfo);
|
|
135
|
+
r = new s(i, this, this, f), a(r, f), e.brandNew && (r.__requireNewView = !0), r.init(i, this, this), r.optionUpdated(null, !0);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
r ? (u.push(r.option), d.push(r), h++) : (u.push(void 0), d.push(void 0));
|
|
139
139
|
}, this), o[t] = u, s.set(t, d), c.set(t, h), t === "series" && E(this);
|
|
140
140
|
}
|
|
141
141
|
this._seriesIndices || E(this);
|
|
142
|
-
},
|
|
143
|
-
var e =
|
|
144
|
-
return
|
|
142
|
+
}, f.prototype.getOption = function() {
|
|
143
|
+
var e = n(this.option);
|
|
144
|
+
return i(e, function(t, n) {
|
|
145
145
|
if (S.hasClass(n)) {
|
|
146
|
-
for (var r =
|
|
146
|
+
for (var r = v(t), i = r.length, a = !1, o = i - 1; o >= 0; o--) r[o] && !g(r[o]) ? a = !0 : (r[o] = null, !a && i--);
|
|
147
147
|
r.length = i, e[n] = r;
|
|
148
148
|
}
|
|
149
149
|
}), delete e[k], e;
|
|
150
|
-
},
|
|
151
|
-
this._theme = new
|
|
152
|
-
},
|
|
150
|
+
}, f.prototype.setTheme = function(e) {
|
|
151
|
+
this._theme = new b(e), this._resetOption("recreate", null);
|
|
152
|
+
}, f.prototype.getTheme = function() {
|
|
153
153
|
return this._theme;
|
|
154
|
-
},
|
|
154
|
+
}, f.prototype.getLocaleModel = function() {
|
|
155
155
|
return this._locale;
|
|
156
|
-
},
|
|
156
|
+
}, f.prototype.setUpdatePayload = function(e) {
|
|
157
157
|
this._payload = e;
|
|
158
|
-
},
|
|
158
|
+
}, f.prototype.getUpdatePayload = function() {
|
|
159
159
|
return this._payload;
|
|
160
|
-
},
|
|
160
|
+
}, f.prototype.getComponent = function(e, t) {
|
|
161
161
|
var n = this._componentsMap.get(e);
|
|
162
162
|
if (n) {
|
|
163
163
|
var r = n[t || 0];
|
|
@@ -166,20 +166,20 @@ var F = function(o) {
|
|
|
166
166
|
for (var i = 0; i < n.length; i++) if (n[i]) return n[i];
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, f.prototype.queryComponents = function(e) {
|
|
170
170
|
var t = e.mainType;
|
|
171
171
|
if (!t) return [];
|
|
172
|
-
var n = e.index,
|
|
172
|
+
var n = e.index, r = e.id, a = e.name, s = this._componentsMap.get(t);
|
|
173
173
|
if (!s || !s.length) return [];
|
|
174
174
|
var c;
|
|
175
|
-
return n == null ? c =
|
|
175
|
+
return n == null ? c = r == null ? a == null ? o(s, function(e) {
|
|
176
176
|
return !!e;
|
|
177
|
-
}) : R("name",
|
|
177
|
+
}) : R("name", a, s) : R("id", r, s) : (c = [], i(v(n), function(e) {
|
|
178
178
|
s[e] && c.push(s[e]);
|
|
179
179
|
})), z(c, e);
|
|
180
|
-
},
|
|
180
|
+
}, f.prototype.findComponents = function(e) {
|
|
181
181
|
var t = e.query, n = e.mainType, r = i(t);
|
|
182
|
-
return
|
|
182
|
+
return a(z(r ? this.queryComponents(r) : o(this._componentsMap.get(n), function(e) {
|
|
183
183
|
return !!e;
|
|
184
184
|
}), e));
|
|
185
185
|
function i(e) {
|
|
@@ -191,12 +191,12 @@ var F = function(o) {
|
|
|
191
191
|
name: e[i]
|
|
192
192
|
} : null;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return e.filter ?
|
|
194
|
+
function a(t) {
|
|
195
|
+
return e.filter ? o(t, e.filter) : t;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, f.prototype.eachComponent = function(e, t, n) {
|
|
198
198
|
var r = this._componentsMap;
|
|
199
|
-
if (
|
|
199
|
+
if (c(e)) {
|
|
200
200
|
var i = t, a = e;
|
|
201
201
|
r.each(function(e, t) {
|
|
202
202
|
for (var n = 0; e && n < e.length; n++) {
|
|
@@ -204,117 +204,117 @@ var F = function(o) {
|
|
|
204
204
|
r && a.call(i, t, r, r.componentIndex);
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
} else for (var o =
|
|
208
|
-
var d = o[
|
|
207
|
+
} else for (var o = u(e) ? r.get(e) : l(e) ? this.findComponents(e) : null, s = 0; o && s < o.length; s++) {
|
|
208
|
+
var d = o[s];
|
|
209
209
|
d && t.call(n, d, d.componentIndex);
|
|
210
210
|
}
|
|
211
|
-
},
|
|
212
|
-
var t =
|
|
213
|
-
return
|
|
211
|
+
}, f.prototype.getSeriesByName = function(e) {
|
|
212
|
+
var t = h(e, null);
|
|
213
|
+
return o(this._componentsMap.get("series"), function(e) {
|
|
214
214
|
return !!e && t != null && e.name === t;
|
|
215
215
|
});
|
|
216
|
-
},
|
|
216
|
+
}, f.prototype.getSeriesByIndex = function(e) {
|
|
217
217
|
return this._componentsMap.get("series")[e];
|
|
218
|
-
},
|
|
219
|
-
return
|
|
218
|
+
}, f.prototype.getSeriesByType = function(e) {
|
|
219
|
+
return o(this._componentsMap.get("series"), function(t) {
|
|
220
220
|
return !!t && t.subType === e;
|
|
221
221
|
});
|
|
222
|
-
},
|
|
223
|
-
return
|
|
222
|
+
}, f.prototype.getSeries = function() {
|
|
223
|
+
return o(this._componentsMap.get("series"), function(e) {
|
|
224
224
|
return !!e;
|
|
225
225
|
});
|
|
226
|
-
},
|
|
226
|
+
}, f.prototype.getSeriesCount = function() {
|
|
227
227
|
return this._componentsCount.get("series");
|
|
228
|
-
},
|
|
229
|
-
D(this),
|
|
228
|
+
}, f.prototype.eachSeries = function(e, t) {
|
|
229
|
+
D(this), i(this._seriesIndices, function(n) {
|
|
230
230
|
var r = this._componentsMap.get("series")[n];
|
|
231
231
|
e.call(t, r, n);
|
|
232
232
|
}, this);
|
|
233
|
-
},
|
|
234
|
-
|
|
233
|
+
}, f.prototype.eachRawSeries = function(e, t) {
|
|
234
|
+
i(this._componentsMap.get("series"), function(n) {
|
|
235
235
|
n && e.call(t, n, n.componentIndex);
|
|
236
236
|
});
|
|
237
|
-
},
|
|
238
|
-
D(this),
|
|
237
|
+
}, f.prototype.eachSeriesByType = function(e, t, n) {
|
|
238
|
+
D(this), i(this._seriesIndices, function(r) {
|
|
239
239
|
var i = this._componentsMap.get("series")[r];
|
|
240
240
|
i.subType === e && t.call(n, i, r);
|
|
241
241
|
}, this);
|
|
242
|
-
},
|
|
243
|
-
return
|
|
244
|
-
},
|
|
242
|
+
}, f.prototype.eachRawSeriesByType = function(e, t, n) {
|
|
243
|
+
return i(this.getSeriesByType(e), t, n);
|
|
244
|
+
}, f.prototype.isSeriesFiltered = function(e) {
|
|
245
245
|
return D(this), this._seriesIndicesMap.get(e.componentIndex) == null;
|
|
246
|
-
},
|
|
246
|
+
}, f.prototype.getCurrentSeriesIndices = function() {
|
|
247
247
|
return (this._seriesIndices || []).slice();
|
|
248
|
-
},
|
|
248
|
+
}, f.prototype.filterSeries = function(e, t) {
|
|
249
249
|
D(this);
|
|
250
|
-
var
|
|
251
|
-
|
|
252
|
-
var
|
|
253
|
-
e.call(t,
|
|
254
|
-
}, this), this._seriesIndices =
|
|
255
|
-
},
|
|
250
|
+
var n = [];
|
|
251
|
+
i(this._seriesIndices, function(r) {
|
|
252
|
+
var i = this._componentsMap.get("series")[r];
|
|
253
|
+
e.call(t, i, r) && n.push(r);
|
|
254
|
+
}, this), this._seriesIndices = n, this._seriesIndicesMap = r(n);
|
|
255
|
+
}, f.prototype.restoreData = function(e) {
|
|
256
256
|
E(this);
|
|
257
257
|
var t = this._componentsMap, n = [];
|
|
258
258
|
t.each(function(e, t) {
|
|
259
259
|
S.hasClass(t) && n.push(t);
|
|
260
260
|
}), S.topologicalTravel(n, S.getAllClassMainTypes(), function(n) {
|
|
261
|
-
|
|
261
|
+
i(t.get(n), function(t) {
|
|
262
262
|
t && (n !== "series" || !I(t, e)) && t.restoreData();
|
|
263
263
|
});
|
|
264
264
|
});
|
|
265
|
-
},
|
|
265
|
+
}, f.internalField = function() {
|
|
266
266
|
E = function(e) {
|
|
267
267
|
var t = e._seriesIndices = [];
|
|
268
|
-
|
|
268
|
+
i(e._componentsMap.get("series"), function(e) {
|
|
269
269
|
e && t.push(e.componentIndex);
|
|
270
|
-
}), e._seriesIndicesMap =
|
|
270
|
+
}), e._seriesIndicesMap = r(t);
|
|
271
271
|
}, D = function(e) {
|
|
272
272
|
if (process.env.NODE_ENV !== "production" && !e._seriesIndices) throw Error("Option should contains series.");
|
|
273
273
|
}, O = function(e, t) {
|
|
274
|
-
e.option = {}, e.option[k] = A, e._componentsMap =
|
|
275
|
-
var
|
|
276
|
-
|
|
274
|
+
e.option = {}, e.option[k] = A, e._componentsMap = r({ series: [] }), e._componentsCount = r();
|
|
275
|
+
var n = t.aria;
|
|
276
|
+
l(n) && n.enabled == null && (n.enabled = !0), L(t, e._theme.option), d(t, w, !1), e._mergeOption(t, null);
|
|
277
277
|
};
|
|
278
|
-
}(),
|
|
279
|
-
}(
|
|
278
|
+
}(), f;
|
|
279
|
+
}(b);
|
|
280
280
|
function I(e, t) {
|
|
281
281
|
if (t) {
|
|
282
282
|
var n = t.seriesIndex, r = t.seriesId, i = t.seriesName;
|
|
283
283
|
return n != null && e.componentIndex !== n || r != null && e.id !== r || i != null && e.name !== i;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
function L(e,
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
286
|
+
function L(e, t) {
|
|
287
|
+
var r = e.color && !e.colorLayer;
|
|
288
|
+
i(t, function(t, i) {
|
|
289
|
+
i === "colorLayer" && r || i === "color" && e.color || S.hasClass(i) || (typeof t == "object" ? e[i] = e[i] ? d(e[i], t, !1) : n(t) : e[i] ?? (e[i] = t));
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
function R(e, t,
|
|
293
|
-
if (
|
|
294
|
-
var
|
|
295
|
-
return
|
|
296
|
-
e != null &&
|
|
297
|
-
}),
|
|
298
|
-
return t &&
|
|
292
|
+
function R(e, t, n) {
|
|
293
|
+
if (s(t)) {
|
|
294
|
+
var a = r();
|
|
295
|
+
return i(t, function(e) {
|
|
296
|
+
e != null && h(e, null) != null && a.set(e, !0);
|
|
297
|
+
}), o(n, function(t) {
|
|
298
|
+
return t && a.get(t[e]);
|
|
299
299
|
});
|
|
300
300
|
} else {
|
|
301
|
-
var c =
|
|
302
|
-
return
|
|
301
|
+
var c = h(t, null);
|
|
302
|
+
return o(n, function(t) {
|
|
303
303
|
return t && c != null && t[e] === c;
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
function z(e, t) {
|
|
308
|
-
return t.hasOwnProperty("subType") ?
|
|
308
|
+
return t.hasOwnProperty("subType") ? o(e, function(e) {
|
|
309
309
|
return e && e.subType === t.subType;
|
|
310
310
|
}) : e;
|
|
311
311
|
}
|
|
312
|
-
function B(
|
|
313
|
-
var
|
|
314
|
-
return
|
|
315
|
-
process.env.NODE_ENV !== "production" &&
|
|
316
|
-
}), { replaceMergeMainTypeMap:
|
|
312
|
+
function B(e) {
|
|
313
|
+
var n = r();
|
|
314
|
+
return e && i(v(e.replaceMerge), function(e) {
|
|
315
|
+
process.env.NODE_ENV !== "production" && t(S.hasClass(e), "\"" + e + "\" is not valid component main type in \"replaceMerge\""), n.set(e, !0);
|
|
316
|
+
}), { replaceMergeMainTypeMap: n };
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
f(F, C);
|
|
319
319
|
//#endregion
|
|
320
320
|
export { F as default };
|