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,27 +1,27 @@
|
|
|
1
1
|
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
-
import
|
|
3
|
-
import r from "
|
|
2
|
+
import t from "../../view/Component.js";
|
|
3
|
+
import { fixValue as n, getAxisPointerModel as r } from "../axisPointer/modelHelper.js";
|
|
4
4
|
//#region node_modules/echarts/lib/component/axis/AxisView.js
|
|
5
|
-
var i = {}, a = function(
|
|
6
|
-
e(a,
|
|
5
|
+
var i = {}, a = function(t) {
|
|
6
|
+
e(a, t);
|
|
7
7
|
function a() {
|
|
8
|
-
var e =
|
|
8
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
9
9
|
return e.type = a.type, e;
|
|
10
10
|
}
|
|
11
|
-
return a.prototype.render = function(e,
|
|
12
|
-
this.axisPointerClass &&
|
|
11
|
+
return a.prototype.render = function(e, r, i, a) {
|
|
12
|
+
this.axisPointerClass && n(e), t.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(e, i, !0);
|
|
13
13
|
}, a.prototype.updateAxisPointer = function(e, t, n, r) {
|
|
14
14
|
this._doUpdateAxisPointerClass(e, n, !1);
|
|
15
15
|
}, a.prototype.remove = function(e, t) {
|
|
16
16
|
var n = this._axisPointer;
|
|
17
17
|
n && n.remove(t);
|
|
18
|
-
}, a.prototype.dispose = function(e,
|
|
19
|
-
this._disposeAxisPointer(
|
|
20
|
-
}, a.prototype._doUpdateAxisPointerClass = function(e, t,
|
|
18
|
+
}, a.prototype.dispose = function(e, n) {
|
|
19
|
+
this._disposeAxisPointer(n), t.prototype.dispose.apply(this, arguments);
|
|
20
|
+
}, a.prototype._doUpdateAxisPointerClass = function(e, t, n) {
|
|
21
21
|
var i = a.getAxisPointerClass(this.axisPointerClass);
|
|
22
22
|
if (i) {
|
|
23
|
-
var o =
|
|
24
|
-
o ? (this._axisPointer ||= new i()).render(e, o, t,
|
|
23
|
+
var o = r(e);
|
|
24
|
+
o ? (this._axisPointer ||= new i()).render(e, o, t, n) : this._disposeAxisPointer(t);
|
|
25
25
|
}
|
|
26
26
|
}, a.prototype._disposeAxisPointer = function(e) {
|
|
27
27
|
this._axisPointer && this._axisPointer.dispose(e), this._axisPointer = null;
|
|
@@ -31,6 +31,6 @@ var i = {}, a = function(r) {
|
|
|
31
31
|
}, a.getAxisPointerClass = function(e) {
|
|
32
32
|
return e && i[e];
|
|
33
33
|
}, a.type = "axis", a;
|
|
34
|
-
}(
|
|
34
|
+
}(t);
|
|
35
35
|
//#endregion
|
|
36
36
|
export { a as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { defaults as t, each as n, isArray as r } from "../../../../zrender/lib/core/util.js";
|
|
3
|
+
import i from "../../../../zrender/lib/graphic/Group.js";
|
|
4
|
+
import a from "../../../../zrender/lib/graphic/shape/Line.js";
|
|
5
|
+
import { groupTransition as o, subPixelOptimizeLine as s } from "../../util/graphic.js";
|
|
6
|
+
import { shouldAxisShow as c } from "../../coord/axisHelper.js";
|
|
7
|
+
import { getAxisBreakHelper as l } from "./axisBreakHelper.js";
|
|
8
|
+
import u from "./AxisView.js";
|
|
9
|
+
import { rectCoordAxisBuildSplitArea as d, rectCoordAxisHandleRemove as f } from "./axisSplitHelper.js";
|
|
10
|
+
//#region node_modules/echarts/lib/component/axis/CartesianAxisView.js
|
|
11
|
+
var p = [
|
|
12
|
+
"splitArea",
|
|
13
|
+
"splitLine",
|
|
14
|
+
"minorSplitLine",
|
|
15
|
+
"breakArea"
|
|
16
|
+
], m = function(t) {
|
|
17
|
+
e(r, t);
|
|
18
|
+
function r() {
|
|
19
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
20
|
+
return e.type = r.type, e.axisPointerClass = "CartesianAxisPointer", e;
|
|
21
|
+
}
|
|
22
|
+
return r.prototype.render = function(e, r, a, s) {
|
|
23
|
+
this.group.removeAll();
|
|
24
|
+
var l = this._axisGroup;
|
|
25
|
+
this._axisGroup = new i(), this.group.add(this._axisGroup), c(e) && (this._axisGroup.add(e.axis.axisBuilder.group), n(p, function(t) {
|
|
26
|
+
e.get([t, "show"]) && h[t](this, this._axisGroup, e, e.getCoordSysModel(), a);
|
|
27
|
+
}, this), s && s.type === "changeAxisOrder" && s.isInitSort || o(l, this._axisGroup, e), t.prototype.render.call(this, e, r, a, s));
|
|
28
|
+
}, r.prototype.remove = function() {
|
|
29
|
+
f(this);
|
|
30
|
+
}, r.type = "cartesianAxis", r;
|
|
31
|
+
}(u), h = {
|
|
32
|
+
splitLine: function(e, n, i, o, c) {
|
|
33
|
+
var l = i.axis;
|
|
34
|
+
if (!l.scale.isBlank()) {
|
|
35
|
+
var u = i.getModel("splitLine"), d = u.getModel("lineStyle"), f = d.get("color"), p = u.get("showMinLine") !== !1, m = u.get("showMaxLine") !== !1;
|
|
36
|
+
f = r(f) ? f : [f];
|
|
37
|
+
for (var h = o.coordinateSystem.getRect(), g = l.isHorizontal(), _ = 0, v = l.getTicksCoords({
|
|
38
|
+
tickModel: u,
|
|
39
|
+
breakTicks: "none",
|
|
40
|
+
pruneByBreak: "preserve_extent_bound"
|
|
41
|
+
}), y = [], b = [], x = d.getLineStyle(), S = 0; S < v.length; S++) {
|
|
42
|
+
var C = l.toGlobalCoord(v[S].coord);
|
|
43
|
+
if (!(S === 0 && !p || S === v.length - 1 && !m)) {
|
|
44
|
+
var w = v[S].tickValue;
|
|
45
|
+
g ? (y[0] = C, y[1] = h.y, b[0] = C, b[1] = h.y + h.height) : (y[0] = h.x, y[1] = C, b[0] = h.x + h.width, b[1] = C);
|
|
46
|
+
var T = _++ % f.length, E = new a({
|
|
47
|
+
anid: w == null ? null : "line_" + w,
|
|
48
|
+
autoBatch: !0,
|
|
49
|
+
shape: {
|
|
50
|
+
x1: y[0],
|
|
51
|
+
y1: y[1],
|
|
52
|
+
x2: b[0],
|
|
53
|
+
y2: b[1]
|
|
54
|
+
},
|
|
55
|
+
style: t({ stroke: f[T] }, x),
|
|
56
|
+
silent: !0
|
|
57
|
+
});
|
|
58
|
+
s(E.shape, x.lineWidth), n.add(E);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
minorSplitLine: function(e, t, n, r, i) {
|
|
64
|
+
var o = n.axis, c = n.getModel("minorSplitLine").getModel("lineStyle"), l = r.coordinateSystem.getRect(), u = o.isHorizontal(), d = o.getMinorTicksCoords();
|
|
65
|
+
if (d.length) for (var f = [], p = [], m = c.getLineStyle(), h = 0; h < d.length; h++) for (var g = 0; g < d[h].length; g++) {
|
|
66
|
+
var _ = o.toGlobalCoord(d[h][g].coord);
|
|
67
|
+
u ? (f[0] = _, f[1] = l.y, p[0] = _, p[1] = l.y + l.height) : (f[0] = l.x, f[1] = _, p[0] = l.x + l.width, p[1] = _);
|
|
68
|
+
var v = new a({
|
|
69
|
+
anid: "minor_line_" + d[h][g].tickValue,
|
|
70
|
+
autoBatch: !0,
|
|
71
|
+
shape: {
|
|
72
|
+
x1: f[0],
|
|
73
|
+
y1: f[1],
|
|
74
|
+
x2: p[0],
|
|
75
|
+
y2: p[1]
|
|
76
|
+
},
|
|
77
|
+
style: m,
|
|
78
|
+
silent: !0
|
|
79
|
+
});
|
|
80
|
+
s(v.shape, m.lineWidth), t.add(v);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
splitArea: function(e, t, n, r, i) {
|
|
84
|
+
d(e, t, n, r);
|
|
85
|
+
},
|
|
86
|
+
breakArea: function(e, t, n, r, i) {
|
|
87
|
+
var a = l(), o = n.axis.scale;
|
|
88
|
+
a && o.type !== "ordinal" && a.rectCoordBuildBreakAxis(t, e, n, r.coordinateSystem.getRect(), i);
|
|
89
|
+
}
|
|
90
|
+
}, g = function(t) {
|
|
91
|
+
e(n, t);
|
|
92
|
+
function n() {
|
|
93
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
94
|
+
return e.type = n.type, e;
|
|
95
|
+
}
|
|
96
|
+
return n.type = "xAxis", n;
|
|
97
|
+
}(m), _ = function(t) {
|
|
98
|
+
e(n, t);
|
|
99
|
+
function n() {
|
|
100
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
101
|
+
return e.type = g.type, e;
|
|
102
|
+
}
|
|
103
|
+
return n.type = "yAxis", n;
|
|
104
|
+
}(m);
|
|
105
|
+
//#endregion
|
|
106
|
+
export { g as CartesianXAxisView, _ as CartesianYAxisView };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createHashMap as e, defaults as t, isArray as n } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import r from "../../../../zrender/lib/graphic/shape/Rect.js";
|
|
3
|
+
import { makeInner as i } from "../../util/model.js";
|
|
4
|
+
//#region node_modules/echarts/lib/component/axis/axisSplitHelper.js
|
|
5
|
+
var a = i();
|
|
6
|
+
function o(i, o, s, c) {
|
|
7
|
+
var l = s.axis;
|
|
8
|
+
if (!l.scale.isBlank()) {
|
|
9
|
+
var u = s.getModel("splitArea"), d = u.getModel("areaStyle"), f = d.get("color"), p = c.coordinateSystem.getRect(), m = l.getTicksCoords({
|
|
10
|
+
tickModel: u,
|
|
11
|
+
breakTicks: "none",
|
|
12
|
+
pruneByBreak: "preserve_extent_bound"
|
|
13
|
+
});
|
|
14
|
+
if (m.length) {
|
|
15
|
+
var h = f.length, g = a(i).splitAreaColors, _ = e(), v = 0;
|
|
16
|
+
if (g) for (var y = 0; y < m.length; y++) {
|
|
17
|
+
var b = g.get(m[y].tickValue);
|
|
18
|
+
if (b != null) {
|
|
19
|
+
v = (b + (h - 1) * y) % h;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
var x = l.toGlobalCoord(m[0].coord), S = d.getAreaStyle();
|
|
24
|
+
f = n(f) ? f : [f];
|
|
25
|
+
for (var y = 1; y < m.length; y++) {
|
|
26
|
+
var C = l.toGlobalCoord(m[y].coord), w = void 0, T = void 0, E = void 0, D = void 0;
|
|
27
|
+
l.isHorizontal() ? (w = x, T = p.y, E = C - w, D = p.height, x = w + E) : (w = p.x, T = x, E = p.width, D = C - T, x = T + D);
|
|
28
|
+
var O = m[y - 1].tickValue;
|
|
29
|
+
O != null && _.set(O, v), o.add(new r({
|
|
30
|
+
anid: O == null ? null : "area_" + O,
|
|
31
|
+
shape: {
|
|
32
|
+
x: w,
|
|
33
|
+
y: T,
|
|
34
|
+
width: E,
|
|
35
|
+
height: D
|
|
36
|
+
},
|
|
37
|
+
style: t({ fill: f[v] }, S),
|
|
38
|
+
autoBatch: !0,
|
|
39
|
+
silent: !0
|
|
40
|
+
})), v = (v + 1) % h;
|
|
41
|
+
}
|
|
42
|
+
a(i).splitAreaColors = _;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function s(e) {
|
|
47
|
+
a(e).splitAreaColors = null;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { o as rectCoordAxisBuildSplitArea, s as rectCoordAxisHandleRemove };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { bind as e, clone as t, curry as n, each as r, isArray as i, isObject as a } from "../../../../zrender/lib/core/util.js";
|
|
2
|
-
import
|
|
3
|
-
import s from "
|
|
4
|
-
import c from "../../../../zrender/lib/graphic/
|
|
2
|
+
import o from "../../../../zrender/lib/graphic/Text.js";
|
|
3
|
+
import { makeInner as s } from "../../util/model.js";
|
|
4
|
+
import c from "../../../../zrender/lib/graphic/Group.js";
|
|
5
5
|
import { updateProps as l } from "../../animation/basicTransition.js";
|
|
6
6
|
import { createIcon as u, graphic_exports as d } from "../../util/graphic.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { calcBandWidth as f } from "../../coord/axisBand.js";
|
|
8
|
+
import { clear as p, createOrUpdate as m } from "../../util/throttle.js";
|
|
9
|
+
import { getAxisInfo as h } from "./modelHelper.js";
|
|
10
|
+
import { stop as g } from "../../../../zrender/lib/core/event.js";
|
|
11
11
|
//#region node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js
|
|
12
|
-
var _ =
|
|
12
|
+
var _ = s(), v = t, y = e, b = function() {
|
|
13
13
|
function e() {
|
|
14
14
|
this._dragging = !1, this.animationThreshold = 15;
|
|
15
15
|
}
|
|
@@ -17,23 +17,23 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
17
17
|
var a = t.get("value"), o = t.get("status");
|
|
18
18
|
if (this._axisModel = e, this._axisPointerModel = t, this._api = r, !(!i && this._lastValue === a && this._lastStatus === o)) {
|
|
19
19
|
this._lastValue = a, this._lastStatus = o;
|
|
20
|
-
var
|
|
20
|
+
var s = this._group, l = this._handle;
|
|
21
21
|
if (!o || o === "hide") {
|
|
22
|
-
|
|
22
|
+
s && s.hide(), l && l.hide();
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
s && s.show(), l && l.show();
|
|
26
26
|
var u = {};
|
|
27
27
|
this.makeElOption(u, a, e, t, r);
|
|
28
28
|
var d = u.graphicKey;
|
|
29
29
|
d !== this._lastGraphicKey && this.clear(r), this._lastGraphicKey = d;
|
|
30
30
|
var f = this._moveAnimation = this.determineAnimation(e, t);
|
|
31
|
-
if (!
|
|
31
|
+
if (!s) s = this._group = new c(), this.createPointerEl(s, u, e, t), this.createLabelEl(s, u, e, t), r.getZr().add(s);
|
|
32
32
|
else {
|
|
33
33
|
var p = n(x, t, f);
|
|
34
|
-
this.updatePointerEl(
|
|
34
|
+
this.updatePointerEl(s, u, p), this.updateLabelEl(s, u, p, t);
|
|
35
35
|
}
|
|
36
|
-
T(
|
|
36
|
+
T(s, t, !0), this._renderHandle(a);
|
|
37
37
|
}
|
|
38
38
|
}, e.prototype.remove = function(e) {
|
|
39
39
|
this.clear(e);
|
|
@@ -44,9 +44,9 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
44
44
|
if (!a && !i) return !1;
|
|
45
45
|
if (n === "auto" || n == null) {
|
|
46
46
|
var o = this.animationThreshold;
|
|
47
|
-
if (i &&
|
|
47
|
+
if (i && f(r).w > o) return !0;
|
|
48
48
|
if (a) {
|
|
49
|
-
var s =
|
|
49
|
+
var s = h(e).seriesDataCount, c = r.getExtent();
|
|
50
50
|
return Math.abs(c[0] - c[1]) / s > o;
|
|
51
51
|
}
|
|
52
52
|
return !1;
|
|
@@ -60,7 +60,7 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
60
60
|
}
|
|
61
61
|
}, e.prototype.createLabelEl = function(e, t, n, r) {
|
|
62
62
|
if (t.label) {
|
|
63
|
-
var i = _(e).labelEl = new
|
|
63
|
+
var i = _(e).labelEl = new o(v(t.label));
|
|
64
64
|
e.add(i), C(i, r);
|
|
65
65
|
}
|
|
66
66
|
}, e.prototype.updatePointerEl = function(e, t, n) {
|
|
@@ -84,7 +84,7 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
84
84
|
cursor: "move",
|
|
85
85
|
draggable: !0,
|
|
86
86
|
onmousemove: function(e) {
|
|
87
|
-
|
|
87
|
+
g(e.event);
|
|
88
88
|
},
|
|
89
89
|
onmousedown: y(this._onHandleDragMove, this, 0, 0),
|
|
90
90
|
drift: y(this._onHandleDragMove, this),
|
|
@@ -100,7 +100,7 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
100
100
|
"shadowOffsetY"
|
|
101
101
|
]));
|
|
102
102
|
var c = a.get("size");
|
|
103
|
-
i(c) || (c = [c, c]), r.scaleX = c[0] / 2, r.scaleY = c[1] / 2,
|
|
103
|
+
i(c) || (c = [c, c]), r.scaleX = c[0] / 2, r.scaleY = c[1] / 2, m(this, "_doDispatchAxisPointer", a.get("throttle") || 0, "fixRate"), this._moveHandleToValue(e, s);
|
|
104
104
|
}
|
|
105
105
|
}, e.prototype._moveHandleToValue = function(e, t) {
|
|
106
106
|
x(this._axisPointerModel, !t && this._moveAnimation, this._handle, w(this.getHandleTransform(e, this._axisModel, this._axisPointerModel)));
|
|
@@ -133,7 +133,7 @@ var _ = o(), v = t, y = e, b = function() {
|
|
|
133
133
|
}, e.prototype.clear = function(e) {
|
|
134
134
|
this._lastValue = null, this._lastStatus = null;
|
|
135
135
|
var t = e.getZr(), n = this._group, r = this._handle;
|
|
136
|
-
t && n && (this._lastGraphicKey = null, n && t.remove(n), r && t.remove(r), this._group = null, this._handle = null, this._payloadInfo = null),
|
|
136
|
+
t && n && (this._lastGraphicKey = null, n && t.remove(n), r && t.remove(r), this._group = null, this._handle = null, this._payloadInfo = null), p(this, "_doDispatchAxisPointer");
|
|
137
137
|
}, e.prototype.doClear = function() {}, e.prototype.buildLabel = function(e, t, n) {
|
|
138
138
|
return n ||= 0, {
|
|
139
139
|
x: e[n],
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import r from "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { mathMax as t, mathMin as n } from "../../util/number.js";
|
|
3
|
+
import { layout as r } from "../../coord/cartesian/cartesianAxisHelper.js";
|
|
4
|
+
import i from "./BaseAxisPointer.js";
|
|
5
|
+
import { buildCartesianSingleLabelElOption as a, buildElStyle as o, calcAxisPointerShadowBandWidth as s, calcAxisPointerShadowEnds as c, getTransformedPosition as l, makeLineShape as u, makeRectShape as d } from "./viewHelper.js";
|
|
6
6
|
//#region node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js
|
|
7
|
-
var f = function(
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
return
|
|
7
|
+
var f = function(i) {
|
|
8
|
+
e(s, i);
|
|
9
|
+
function s() {
|
|
10
|
+
return i !== null && i.apply(this, arguments) || this;
|
|
11
11
|
}
|
|
12
|
-
return
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
var g =
|
|
12
|
+
return s.prototype.makeElOption = function(e, t, n, i, s) {
|
|
13
|
+
var c = n.axis, l = c.grid, u = i.get("type"), d = c.getGlobalExtent(), f = p(l, c).getOtherAxis(c).getGlobalExtent(), h = c.toGlobalCoord(c.dataToCoord(t, !0));
|
|
14
|
+
if (u && u !== "none") {
|
|
15
|
+
var g = o(i), _ = m[u](c, h, d, f, i.get("seriesDataIndices"), i.ecModel);
|
|
16
16
|
_.style = g, e.graphicKey = _.type, e.pointer = _;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var
|
|
18
|
+
a(t, e, r(l.getRect(), n), n, i, s);
|
|
19
|
+
}, s.prototype.getHandleTransform = function(e, t, n) {
|
|
20
|
+
var i = r(t.axis.grid.getRect(), t, { labelInside: !1 });
|
|
21
|
+
i.labelMargin = n.get(["handle", "margin"]);
|
|
22
|
+
var a = l(t.axis, e, i);
|
|
23
23
|
return {
|
|
24
|
-
x:
|
|
25
|
-
y:
|
|
26
|
-
rotation:
|
|
24
|
+
x: a[0],
|
|
25
|
+
y: a[1],
|
|
26
|
+
rotation: i.rotation + (i.labelDirection < 0 ? Math.PI : 0)
|
|
27
27
|
};
|
|
28
|
-
},
|
|
29
|
-
var o = i.axis, s = o.grid, c = o.getGlobalExtent(!0), l = p(s, o).getOtherAxis(o).getGlobalExtent(), u = o.dim === "x" ? 0 : 1, d = [
|
|
30
|
-
d[u] += r[u], d[u] =
|
|
28
|
+
}, s.prototype.updateHandleTransform = function(e, r, i, a) {
|
|
29
|
+
var o = i.axis, s = o.grid, c = o.getGlobalExtent(!0), l = p(s, o).getOtherAxis(o).getGlobalExtent(), u = o.dim === "x" ? 0 : 1, d = [e.x, e.y];
|
|
30
|
+
d[u] += r[u], d[u] = n(c[1], d[u]), d[u] = t(c[0], d[u]);
|
|
31
31
|
var f = (l[1] + l[0]) / 2, m = [f, f];
|
|
32
32
|
return m[u] = d[u], {
|
|
33
33
|
x: d[0],
|
|
34
34
|
y: d[1],
|
|
35
|
-
rotation:
|
|
35
|
+
rotation: e.rotation,
|
|
36
36
|
cursorPoint: m,
|
|
37
37
|
tooltipOption: [{ verticalAlign: "middle" }, { align: "center" }][u]
|
|
38
38
|
};
|
|
39
|
-
},
|
|
40
|
-
}(
|
|
39
|
+
}, s;
|
|
40
|
+
}(i);
|
|
41
41
|
function p(e, t) {
|
|
42
42
|
var n = {};
|
|
43
43
|
return n[t.dim + "AxisIndex"] = t.index, e.getCartesian(n);
|
|
@@ -47,14 +47,14 @@ var m = {
|
|
|
47
47
|
return {
|
|
48
48
|
type: "Line",
|
|
49
49
|
subPixelOptimize: !0,
|
|
50
|
-
shape:
|
|
50
|
+
shape: u([t, r[0]], [t, r[1]], h(e))
|
|
51
51
|
};
|
|
52
52
|
},
|
|
53
53
|
shadow: function(e, t, n, r, i, a) {
|
|
54
|
-
var
|
|
54
|
+
var o = s(e, i, a), l = r[1] - r[0], u = c(t, n, o), f = u[0], p = u[1];
|
|
55
55
|
return {
|
|
56
56
|
type: "Rect",
|
|
57
|
-
shape:
|
|
57
|
+
shape: d([f, r[0]], [p - f, l], h(e))
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { each as e, isFunction as t, isString as n, map as r } from "../../../../zrender/lib/core/util.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { create as i, rotate as a, translate as o } from "../../../../zrender/lib/core/matrix.js";
|
|
3
|
+
import { getBoundingRect as s } from "../../../../zrender/lib/contain/text.js";
|
|
4
|
+
import { mathMax as c, mathMin as l } from "../../util/number.js";
|
|
5
5
|
import { applyTransform as u } from "../../util/graphic.js";
|
|
6
6
|
import { createTextStyle as d } from "../../label/labelStyle.js";
|
|
7
7
|
import { normalizeCssArray as f } from "../../util/format.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { getAxisRawValue as p } from "../../coord/axisHelper.js";
|
|
9
|
+
import { calcBandWidth as m } from "../../coord/axisBand.js";
|
|
10
10
|
import h from "../axis/AxisBuilder.js";
|
|
11
11
|
//#region node_modules/echarts/lib/component/axisPointer/viewHelper.js
|
|
12
12
|
function g(e) {
|
|
@@ -17,7 +17,7 @@ function _(e, t, n, r, i) {
|
|
|
17
17
|
var a = y(n.get("value"), t.axis, t.ecModel, n.get("seriesDataIndices"), {
|
|
18
18
|
precision: n.get(["label", "precision"]),
|
|
19
19
|
formatter: n.get(["label", "formatter"])
|
|
20
|
-
}), o = n.getModel("label"),
|
|
20
|
+
}), o = n.getModel("label"), c = f(o.get("padding") || 0), l = o.getFont(), u = s(a, l), p = i.position, m = u.width + c[1] + c[3], h = u.height + c[0] + c[2], g = i.align;
|
|
21
21
|
g === "right" && (p[0] -= m), g === "center" && (p[0] -= m / 2);
|
|
22
22
|
var _ = i.verticalAlign;
|
|
23
23
|
_ === "bottom" && (p[1] -= h), _ === "middle" && (p[1] -= h / 2), v(p, m, h, r);
|
|
@@ -31,9 +31,9 @@ function _(e, t, n, r, i) {
|
|
|
31
31
|
y: p[1],
|
|
32
32
|
style: d(o, {
|
|
33
33
|
text: a,
|
|
34
|
-
font:
|
|
34
|
+
font: l,
|
|
35
35
|
fill: o.getTextColor(),
|
|
36
|
-
padding:
|
|
36
|
+
padding: c,
|
|
37
37
|
backgroundColor: b
|
|
38
38
|
}),
|
|
39
39
|
z2: 10
|
|
@@ -48,7 +48,7 @@ function y(r, i, a, o, s) {
|
|
|
48
48
|
var c = i.scale.getLabel({ value: r }, { precision: s.precision }), l = s.formatter;
|
|
49
49
|
if (l) {
|
|
50
50
|
var u = {
|
|
51
|
-
value:
|
|
51
|
+
value: p(i, { value: r }),
|
|
52
52
|
axisDimension: i.dim,
|
|
53
53
|
axisIndex: i.index,
|
|
54
54
|
seriesData: []
|
|
@@ -61,8 +61,8 @@ function y(r, i, a, o, s) {
|
|
|
61
61
|
return c;
|
|
62
62
|
}
|
|
63
63
|
function b(e, t, n) {
|
|
64
|
-
var r =
|
|
65
|
-
return
|
|
64
|
+
var r = i();
|
|
65
|
+
return a(r, r, n.rotation), o(r, r, n.position), u([e.dataToCoord(t), (n.labelOffset || 0) + (n.labelDirection || 1) * (n.labelMargin || 0)], r);
|
|
66
66
|
}
|
|
67
67
|
function x(e, t, n, r, i, a) {
|
|
68
68
|
var o = h.innerTextLayout(n.rotation, 0, n.labelDirection);
|
|
@@ -89,7 +89,7 @@ function C(e, t, n) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
function w(e, t, n) {
|
|
92
|
-
return
|
|
92
|
+
return m(e, {
|
|
93
93
|
fromStat: { sers: r(t, function(e) {
|
|
94
94
|
return n.getSeriesByIndex(e.seriesIndex);
|
|
95
95
|
}) },
|
|
@@ -97,7 +97,7 @@ function w(e, t, n) {
|
|
|
97
97
|
}).w;
|
|
98
98
|
}
|
|
99
99
|
function T(e, t, n) {
|
|
100
|
-
return [
|
|
100
|
+
return [c(l(t[0], t[1]), e - n / 2), l(e + n / 2, c(t[0], t[1]))];
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
export { x as buildCartesianSingleLabelElOption, g as buildElStyle, w as calcAxisPointerShadowBandWidth, T as calcAxisPointerShadowEnds, b as getTransformedPosition, y as getValueLabel, S as makeLineShape, C as makeRectShape };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { clone as e, defaults as t, each as n, map as r } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { asc as i, getAcceptableTickPrecision as a, linearMap as o, mathAbs as s, mathCeil as c, mathFloor as l, mathMax as u, mathMin as d, round as f } from "../../util/number.js";
|
|
3
|
+
import { SINGLE_REFERRING as p, ensureExtentAscSimply as m } from "../../util/model.js";
|
|
4
|
+
import { isOrdinalScale as h, isTimeScale as g } from "../../scale/helper.js";
|
|
5
|
+
import { scaleRawExtentInfoCreate as _ } from "../../coord/scaleRawExtentInfo.js";
|
|
6
|
+
import { getAxisMainType as v, isCoordSupported as y } from "./helper.js";
|
|
7
|
+
import b from "../helper/sliderMove.js";
|
|
8
|
+
//#region node_modules/echarts/lib/component/dataZoom/AxisProxy.js
|
|
9
|
+
var x = function() {
|
|
10
|
+
function x(e, t, n, r) {
|
|
11
|
+
this._dimName = e, this._axisIndex = t, this.ecModel = r, this._dataZoomModel = n;
|
|
12
|
+
}
|
|
13
|
+
return x.prototype.hostedBy = function(e) {
|
|
14
|
+
return this._dataZoomModel === e;
|
|
15
|
+
}, x.prototype.getWindow = function() {
|
|
16
|
+
return e(this._window);
|
|
17
|
+
}, x.prototype.getTargetSeriesModels = function() {
|
|
18
|
+
var e = [];
|
|
19
|
+
return this.ecModel.eachSeries(function(t) {
|
|
20
|
+
if (y(t)) {
|
|
21
|
+
var n = v(this._dimName), r = t.getReferringComponents(n, p).models[0];
|
|
22
|
+
r && this._axisIndex === r.componentIndex && e.push(t);
|
|
23
|
+
}
|
|
24
|
+
}, this), e;
|
|
25
|
+
}, x.prototype.getAxisModel = function() {
|
|
26
|
+
return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex);
|
|
27
|
+
}, x.prototype.getMinMaxSpan = function() {
|
|
28
|
+
return e(this._minMaxSpan);
|
|
29
|
+
}, x.prototype.calculateDataWindow = function(e) {
|
|
30
|
+
var t = this._extent, r = this.getAxisModel().axis, p = r.scale, _ = this._dataZoomModel.getRangePropMode(), v = [0, 100], y = [], x = [], S, C = [!1, !1];
|
|
31
|
+
n(["start", "end"], function(n, r) {
|
|
32
|
+
var i = e[n], a = e[n + "Value"];
|
|
33
|
+
_[r] === "percent" ? (i ??= v[r], a = o(i, v, t), C[r] = !0) : (S = !0, a == null ? a = t[r] : (a = p.parse(a), p.sanitize && (a = p.sanitize(a, t))), i = o(a, t, v)), x[r] = a == null || isNaN(a) ? t[r] : a, y[r] = i == null || isNaN(i) ? v[r] : i;
|
|
34
|
+
}), i(x), i(y);
|
|
35
|
+
var w = this._minMaxSpan;
|
|
36
|
+
S ? T(x, y, t, v, !1) : T(y, x, v, t, !0);
|
|
37
|
+
function T(e, t, n, r, i) {
|
|
38
|
+
var a = i ? "Span" : "ValueSpan";
|
|
39
|
+
b(0, e, n, "all", w["min" + a], w["max" + a]);
|
|
40
|
+
for (var s = 0; s < 2; s++) t[s] = o(e[s], n, r, !0), i && (t[s] = t[s], C[s] = !0);
|
|
41
|
+
m(t);
|
|
42
|
+
}
|
|
43
|
+
var E = h(p) || g(p), D = r.getExtent(), O = s(D[1] - D[0]), k = E ? 0 : a(x, O, .5);
|
|
44
|
+
n([[0, c], [1, l]], function(e) {
|
|
45
|
+
var n = e[0], r = e[1];
|
|
46
|
+
!C[n] || !isFinite(k) || (x[n] = f(x[n], k), x[n] = d(t[1], u(t[0], x[n])), y[n] === v[n] && (x[n] = t[n], E && (x[n] = r(x[n]))));
|
|
47
|
+
}), m(x);
|
|
48
|
+
var A = [o(x[0], t, v, !0), o(x[1], t, v, !0)];
|
|
49
|
+
return m(A), {
|
|
50
|
+
value: x,
|
|
51
|
+
percent: y,
|
|
52
|
+
percentInverted: A,
|
|
53
|
+
valuePrecision: k
|
|
54
|
+
};
|
|
55
|
+
}, x.prototype.reset = function(e, n) {
|
|
56
|
+
if (this.hostedBy(e)) {
|
|
57
|
+
var r = this.getAxisModel().axis;
|
|
58
|
+
_(r, 2);
|
|
59
|
+
var i = r.scale.rawExtentInfo;
|
|
60
|
+
this._extent = i.makeNoZoom(), this._updateMinMaxSpan();
|
|
61
|
+
var a = e.settledOption;
|
|
62
|
+
n && (a = t({
|
|
63
|
+
start: n[0],
|
|
64
|
+
end: n[1]
|
|
65
|
+
}, a));
|
|
66
|
+
var o = this._window = this.calculateDataWindow(a), s = o.percent, c = o.value;
|
|
67
|
+
s[0] !== 0 && i.setZoomMM(0, c[0]), s[1] !== 100 && i.setZoomMM(1, c[1]);
|
|
68
|
+
}
|
|
69
|
+
}, x.prototype.filterData = function(e, t) {
|
|
70
|
+
if (!this.hostedBy(e)) return;
|
|
71
|
+
var i = this._dimName, a = this.getTargetSeriesModels(), o = e.get("filterMode"), s = this._window.value;
|
|
72
|
+
if (o === "none") return;
|
|
73
|
+
n(a, function(e) {
|
|
74
|
+
var t = e.getData(), a = t.mapDimensionsAll(i);
|
|
75
|
+
if (a.length) {
|
|
76
|
+
if (o === "weakFilter") {
|
|
77
|
+
var l = t.getStore(), u = r(a, function(e) {
|
|
78
|
+
return t.getDimensionIndex(e);
|
|
79
|
+
}, t);
|
|
80
|
+
t.filterSelf(function(e) {
|
|
81
|
+
for (var t, n, r, i = 0; i < a.length; i++) {
|
|
82
|
+
var o = l.get(u[i], e), c = !isNaN(o), d = o < s[0], f = o > s[1];
|
|
83
|
+
if (c && !d && !f) return !0;
|
|
84
|
+
c && (r = !0), d && (t = !0), f && (n = !0);
|
|
85
|
+
}
|
|
86
|
+
return r && t && n;
|
|
87
|
+
});
|
|
88
|
+
} else n(a, function(n) {
|
|
89
|
+
if (o === "empty") e.setData(t = t.map(n, function(e) {
|
|
90
|
+
return c(e) ? e : NaN;
|
|
91
|
+
}));
|
|
92
|
+
else {
|
|
93
|
+
var r = {};
|
|
94
|
+
r[n] = s, t.selectRange(r);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
n(a, function(e) {
|
|
98
|
+
t.setApproximateExtent(s, e);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
function c(e) {
|
|
103
|
+
return e >= s[0] && e <= s[1];
|
|
104
|
+
}
|
|
105
|
+
}, x.prototype._updateMinMaxSpan = function() {
|
|
106
|
+
var e = this._minMaxSpan = {}, t = this._dataZoomModel, r = this._extent;
|
|
107
|
+
n(["min", "max"], function(n) {
|
|
108
|
+
var i = t.get(n + "Span"), a = t.get(n + "ValueSpan");
|
|
109
|
+
a != null && (a = this.getAxisModel().axis.scale.parse(a)), a == null ? i != null && (a = o(i, [0, 100], r, !0) - r[0]) : i = o(r[0] + a, r, [0, 100], !0), e[n + "Span"] = i, e[n + "ValueSpan"] = a;
|
|
110
|
+
}, this);
|
|
111
|
+
}, x;
|
|
112
|
+
}();
|
|
113
|
+
//#endregion
|
|
114
|
+
export { x as default };
|