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
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { bind as t, each as n, indexOf as r, isFunction as i, isString as a } from "../../../../zrender/lib/core/util.js";
|
|
3
|
+
import o from "../../../../zrender/lib/core/Point.js";
|
|
4
|
+
import s from "../../../../zrender/lib/graphic/shape/Rect.js";
|
|
5
|
+
import c from "../../../../zrender/lib/graphic/Text.js";
|
|
6
|
+
import { asc as l, linearMap as u, parsePercent as d, round as f } from "../../util/number.js";
|
|
7
|
+
import { deprecateLog as p } from "../../util/log.js";
|
|
8
|
+
import { enableHoverEmphasis as m } from "../../util/states.js";
|
|
9
|
+
import h from "../../../../zrender/lib/graphic/Group.js";
|
|
10
|
+
import g from "../../../../zrender/lib/graphic/shape/Polygon.js";
|
|
11
|
+
import _ from "../../../../zrender/lib/graphic/shape/Polyline.js";
|
|
12
|
+
import { applyTransform as v, getTransform as y, transformDirection as b } from "../../util/graphic.js";
|
|
13
|
+
import { createTextStyle as x } from "../../label/labelStyle.js";
|
|
14
|
+
import { createBoxLayoutReference as S, getLayoutParams as C, getLayoutRect as w } from "../../util/layout.js";
|
|
15
|
+
import T from "../../visual/tokens.js";
|
|
16
|
+
import { createSymbol as E, symbolBuildProxies as D } from "../../util/symbol.js";
|
|
17
|
+
import { isOrdinalScale as O, isTimeScale as k } from "../../scale/helper.js";
|
|
18
|
+
import { clear as A, createOrUpdate as j } from "../../util/throttle.js";
|
|
19
|
+
import { stop as M } from "../../../../zrender/lib/core/event.js";
|
|
20
|
+
import { collectReferCoordSysModelInfo as N, getAlignTo as P, getAxisMainType as F } from "./helper.js";
|
|
21
|
+
import I from "./DataZoomView.js";
|
|
22
|
+
import L from "../helper/sliderMove.js";
|
|
23
|
+
//#region node_modules/echarts/lib/component/dataZoom/SliderZoomView.js
|
|
24
|
+
var R = s, z = 1, B = 30, V = 7, H = "horizontal", U = "vertical", W = 5, G = [
|
|
25
|
+
"line",
|
|
26
|
+
"bar",
|
|
27
|
+
"candlestick",
|
|
28
|
+
"scatter"
|
|
29
|
+
], K = {
|
|
30
|
+
easing: "cubicOut",
|
|
31
|
+
duration: 100,
|
|
32
|
+
delay: 0
|
|
33
|
+
}, q = function(i) {
|
|
34
|
+
e(a, i);
|
|
35
|
+
function a() {
|
|
36
|
+
var e = i !== null && i.apply(this, arguments) || this;
|
|
37
|
+
return e.type = a.type, e._displayables = {}, e;
|
|
38
|
+
}
|
|
39
|
+
return a.prototype.init = function(e, n) {
|
|
40
|
+
this.api = n, this._onBrush = t(this._onBrush, this), this._onBrushEnd = t(this._onBrushEnd, this);
|
|
41
|
+
}, a.prototype.render = function(e, t, n, r) {
|
|
42
|
+
if (i.prototype.render.apply(this, arguments), j(this, "_dispatchZoomAction", e.get("throttle"), "fixRate"), this._orient = e.getOrient(), e.get("show") === !1) {
|
|
43
|
+
this.group.removeAll();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (e.noTarget()) {
|
|
47
|
+
this._clear(), this.group.removeAll();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
(!r || r.type !== "dataZoom" || r.from !== this.uid) && this._buildView(), this._updateView();
|
|
51
|
+
}, a.prototype.dispose = function() {
|
|
52
|
+
this._clear(), i.prototype.dispose.apply(this, arguments);
|
|
53
|
+
}, a.prototype._clear = function() {
|
|
54
|
+
A(this, "_dispatchZoomAction");
|
|
55
|
+
var e = this.api.getZr();
|
|
56
|
+
e.off("mousemove", this._onBrush), e.off("mouseup", this._onBrushEnd);
|
|
57
|
+
}, a.prototype._buildView = function() {
|
|
58
|
+
var e = this.group;
|
|
59
|
+
e.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
|
|
60
|
+
var t = this._displayables.sliderGroup = new h();
|
|
61
|
+
this._renderBackground(), this._renderHandle(), this._renderDataShadow(), e.add(t), this._positionGroup();
|
|
62
|
+
}, a.prototype._resetLocation = function() {
|
|
63
|
+
var e = this.dataZoomModel, t = this.api, r = e.get("brushSelect") ? V : 0, i = S(e, t).refContainer, a = this._findCoordRect(), o = e.get("defaultLocationEdgeGap", !0) || 0, s = this._orient === H ? {
|
|
64
|
+
right: i.width - a.x - a.width,
|
|
65
|
+
top: i.height - B - o - r,
|
|
66
|
+
width: a.width,
|
|
67
|
+
height: B
|
|
68
|
+
} : {
|
|
69
|
+
right: o,
|
|
70
|
+
top: a.y,
|
|
71
|
+
width: B,
|
|
72
|
+
height: a.height
|
|
73
|
+
}, c = C(e.option);
|
|
74
|
+
n([
|
|
75
|
+
"right",
|
|
76
|
+
"top",
|
|
77
|
+
"width",
|
|
78
|
+
"height"
|
|
79
|
+
], function(e) {
|
|
80
|
+
c[e] === "ph" && (c[e] = s[e]);
|
|
81
|
+
});
|
|
82
|
+
var l = w(c, i);
|
|
83
|
+
this._location = {
|
|
84
|
+
x: l.x,
|
|
85
|
+
y: l.y
|
|
86
|
+
}, this._size = [l.width, l.height], this._orient === U && this._size.reverse();
|
|
87
|
+
}, a.prototype._positionGroup = function() {
|
|
88
|
+
var e = this.group, t = this._location, n = this._orient, r = this.dataZoomModel.getFirstTargetAxisModel(), i = r && r.get("inverse"), a = this._displayables.sliderGroup, o = (this._dataShadowInfo || {}).otherAxisInverse;
|
|
89
|
+
a.attr(n === H && !i ? {
|
|
90
|
+
scaleY: o ? 1 : -1,
|
|
91
|
+
scaleX: 1
|
|
92
|
+
} : n === H && i ? {
|
|
93
|
+
scaleY: o ? 1 : -1,
|
|
94
|
+
scaleX: -1
|
|
95
|
+
} : n === U && !i ? {
|
|
96
|
+
scaleY: o ? -1 : 1,
|
|
97
|
+
scaleX: 1,
|
|
98
|
+
rotation: Math.PI / 2
|
|
99
|
+
} : {
|
|
100
|
+
scaleY: o ? -1 : 1,
|
|
101
|
+
scaleX: -1,
|
|
102
|
+
rotation: Math.PI / 2
|
|
103
|
+
});
|
|
104
|
+
var s = e.getBoundingRect([a]), c = isNaN(s.x) ? 0 : s.x, l = isNaN(s.y) ? 0 : s.y;
|
|
105
|
+
e.x = t.x - c, e.y = t.y - l, e.markRedraw();
|
|
106
|
+
}, a.prototype._getViewExtent = function() {
|
|
107
|
+
return [0, this._size[0]];
|
|
108
|
+
}, a.prototype._renderBackground = function() {
|
|
109
|
+
var e = this.dataZoomModel, n = this._size, r = this._displayables.sliderGroup, i = e.get("brushSelect");
|
|
110
|
+
r.add(new R({
|
|
111
|
+
silent: !0,
|
|
112
|
+
shape: {
|
|
113
|
+
x: 0,
|
|
114
|
+
y: 0,
|
|
115
|
+
width: n[0],
|
|
116
|
+
height: n[1]
|
|
117
|
+
},
|
|
118
|
+
style: { fill: e.get("backgroundColor") },
|
|
119
|
+
z2: -40
|
|
120
|
+
}));
|
|
121
|
+
var a = new R({
|
|
122
|
+
shape: {
|
|
123
|
+
x: 0,
|
|
124
|
+
y: 0,
|
|
125
|
+
width: n[0],
|
|
126
|
+
height: n[1]
|
|
127
|
+
},
|
|
128
|
+
style: { fill: "transparent" },
|
|
129
|
+
z2: 0,
|
|
130
|
+
onclick: t(this._onClickPanel, this)
|
|
131
|
+
}), o = this.api.getZr();
|
|
132
|
+
i ? (a.on("mousedown", this._onBrushStart, this), a.cursor = "crosshair", o.on("mousemove", this._onBrush), o.on("mouseup", this._onBrushEnd)) : (o.off("mousemove", this._onBrush), o.off("mouseup", this._onBrushEnd)), r.add(a);
|
|
133
|
+
}, a.prototype._renderDataShadow = function() {
|
|
134
|
+
var e = this._dataShadowInfo = this._prepareDataShadowInfo();
|
|
135
|
+
if (this._displayables.dataShadowSegs = [], !e) return;
|
|
136
|
+
var t = this._size, n = this._shadowSize || [], r = e.series, i = r.getRawData(), a = r.getShadowDim && r.getShadowDim(), o = a && i.getDimensionInfo(a) ? r.getShadowDim() : e.otherDim;
|
|
137
|
+
if (o == null) return;
|
|
138
|
+
var s = this._shadowPolygonPts, c = this._shadowPolylinePts;
|
|
139
|
+
if (i !== this._shadowData || o !== this._shadowDim || t[0] !== n[0] || t[1] !== n[1]) {
|
|
140
|
+
var l = i.getDataExtent(e.thisDim), d = i.getDataExtent(o), f = (d[1] - d[0]) * .3;
|
|
141
|
+
d = [d[0] - f, d[1] + f];
|
|
142
|
+
var p = [0, t[1]], m = [0, t[0]], v = [[t[0], 0], [0, 0]], y = [], b = m[1] / Math.max(1, i.count() - 1), x = t[0] / (l[1] - l[0]), S = e.thisAxis.type === "time", C = -b, w = Math.round(i.count() / t[0]), T;
|
|
143
|
+
i.each([e.thisDim, o], function(e, t, n) {
|
|
144
|
+
if (w > 0 && n % w) {
|
|
145
|
+
S || (C += b);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
C = S ? (+e - l[0]) * x : C + b;
|
|
149
|
+
var r = t == null || isNaN(t) || t === "", i = r ? 0 : u(t, d, p, !0);
|
|
150
|
+
r && !T && n ? (v.push([v[v.length - 1][0], 0]), y.push([y[y.length - 1][0], 0])) : !r && T && (v.push([C, 0]), y.push([C, 0])), r || (v.push([C, i]), y.push([C, i])), T = r;
|
|
151
|
+
}), s = this._shadowPolygonPts = v, c = this._shadowPolylinePts = y;
|
|
152
|
+
}
|
|
153
|
+
this._shadowData = i, this._shadowDim = o, this._shadowSize = [t[0], t[1]];
|
|
154
|
+
var E = this.dataZoomModel;
|
|
155
|
+
function D(e) {
|
|
156
|
+
var t = E.getModel(e ? "selectedDataBackground" : "dataBackground"), n = new h(), r = new g({
|
|
157
|
+
shape: { points: s },
|
|
158
|
+
segmentIgnoreThreshold: 1,
|
|
159
|
+
style: t.getModel("areaStyle").getAreaStyle(),
|
|
160
|
+
silent: !0,
|
|
161
|
+
z2: -20
|
|
162
|
+
}), i = new _({
|
|
163
|
+
shape: { points: c },
|
|
164
|
+
segmentIgnoreThreshold: 1,
|
|
165
|
+
style: t.getModel("lineStyle").getLineStyle(),
|
|
166
|
+
silent: !0,
|
|
167
|
+
z2: -19
|
|
168
|
+
});
|
|
169
|
+
return n.add(r), n.add(i), n;
|
|
170
|
+
}
|
|
171
|
+
for (var O = 0; O < 3; O++) {
|
|
172
|
+
var k = D(O === 1);
|
|
173
|
+
this._displayables.sliderGroup.add(k), this._displayables.dataShadowSegs.push(k);
|
|
174
|
+
}
|
|
175
|
+
}, a.prototype._prepareDataShadowInfo = function() {
|
|
176
|
+
var e = this.dataZoomModel, t = e.get("showDataShadow");
|
|
177
|
+
if (t !== !1) {
|
|
178
|
+
var i, a = this.ecModel;
|
|
179
|
+
return e.eachTargetAxis(function(o, s) {
|
|
180
|
+
n(e.getAxisProxy(o, s).getTargetSeriesModels(), function(e) {
|
|
181
|
+
if (!i && !(t !== !0 && r(G, e.get("type")) < 0)) {
|
|
182
|
+
var n = a.getComponent(F(o), s).axis, c = Y(o), l, u = e.coordinateSystem;
|
|
183
|
+
c != null && u.getOtherAxis && (l = u.getOtherAxis(n).inverse), c = e.getData().mapDimension(c), i = {
|
|
184
|
+
thisAxis: n,
|
|
185
|
+
series: e,
|
|
186
|
+
thisDim: e.getData().mapDimension(o),
|
|
187
|
+
otherDim: c,
|
|
188
|
+
otherAxisInverse: l
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}, this);
|
|
192
|
+
}, this), i;
|
|
193
|
+
}
|
|
194
|
+
}, a.prototype._renderHandle = function() {
|
|
195
|
+
var e = this.group, r = this._displayables, i = r.handles = [null, null], a = r.handleLabels = [null, null], o = this._displayables.sliderGroup, l = this._size, u = this.dataZoomModel, f = this.api, h = u.get("borderRadius") || 0, g = u.get("brushSelect"), _ = r.filler = new R({
|
|
196
|
+
silent: g,
|
|
197
|
+
style: { fill: u.get("fillerColor") },
|
|
198
|
+
textConfig: { position: "inside" }
|
|
199
|
+
});
|
|
200
|
+
o.add(_), o.add(new R({
|
|
201
|
+
silent: !0,
|
|
202
|
+
subPixelOptimize: !0,
|
|
203
|
+
shape: {
|
|
204
|
+
x: 0,
|
|
205
|
+
y: 0,
|
|
206
|
+
width: l[0],
|
|
207
|
+
height: l[1],
|
|
208
|
+
r: h
|
|
209
|
+
},
|
|
210
|
+
style: {
|
|
211
|
+
stroke: u.get("dataBackgroundColor") || u.get("borderColor"),
|
|
212
|
+
lineWidth: z,
|
|
213
|
+
fill: T.color.transparent
|
|
214
|
+
}
|
|
215
|
+
})), n([0, 1], function(n) {
|
|
216
|
+
var r = u.get("handleIcon");
|
|
217
|
+
!D[r] && r.indexOf("path://") < 0 && r.indexOf("image://") < 0 && (r = "path://" + r, process.env.NODE_ENV !== "production" && p("handleIcon now needs 'path://' prefix when using a path string"));
|
|
218
|
+
var s = E(r, -1, 0, 2, 2, null, !0);
|
|
219
|
+
s.attr({
|
|
220
|
+
cursor: X(this._orient),
|
|
221
|
+
draggable: !0,
|
|
222
|
+
drift: t(this._onDragMove, this, n),
|
|
223
|
+
ondragend: t(this._onDragEnd, this),
|
|
224
|
+
onmouseover: t(this._onOverDataInfoTriggerArea, this, !0),
|
|
225
|
+
onmouseout: t(this._onOverDataInfoTriggerArea, this, !1),
|
|
226
|
+
z2: 5
|
|
227
|
+
});
|
|
228
|
+
var l = s.getBoundingRect(), f = u.get("handleSize");
|
|
229
|
+
this._handleHeight = d(f, this._size[1]), this._handleWidth = l.width / l.height * this._handleHeight, s.setStyle(u.getModel("handleStyle").getItemStyle()), s.style.strokeNoScale = !0, s.rectHover = !0, s.ensureState("emphasis").style = u.getModel(["emphasis", "handleStyle"]).getItemStyle(), m(s);
|
|
230
|
+
var h = u.get("handleColor");
|
|
231
|
+
h != null && (s.style.fill = h), o.add(i[n] = s);
|
|
232
|
+
var g = u.getModel("textStyle"), _ = (u.get("handleLabel") || {}).show || !1;
|
|
233
|
+
e.add(a[n] = new c({
|
|
234
|
+
silent: !0,
|
|
235
|
+
invisible: !_,
|
|
236
|
+
style: x(g, {
|
|
237
|
+
x: 0,
|
|
238
|
+
y: 0,
|
|
239
|
+
text: "",
|
|
240
|
+
verticalAlign: "middle",
|
|
241
|
+
align: "center",
|
|
242
|
+
fill: g.getTextColor(),
|
|
243
|
+
font: g.getFont()
|
|
244
|
+
}),
|
|
245
|
+
z2: 10
|
|
246
|
+
}));
|
|
247
|
+
}, this);
|
|
248
|
+
var v = _;
|
|
249
|
+
if (g) {
|
|
250
|
+
var y = d(u.get("moveHandleSize"), l[1]), b = r.moveHandle = new s({
|
|
251
|
+
style: u.getModel("moveHandleStyle").getItemStyle(),
|
|
252
|
+
silent: !0,
|
|
253
|
+
shape: {
|
|
254
|
+
r: [
|
|
255
|
+
0,
|
|
256
|
+
0,
|
|
257
|
+
2,
|
|
258
|
+
2
|
|
259
|
+
],
|
|
260
|
+
y: l[1] - .5,
|
|
261
|
+
height: y
|
|
262
|
+
}
|
|
263
|
+
}), S = y * .8, C = r.moveHandleIcon = E(u.get("moveHandleIcon"), -S / 2, -S / 2, S, S, T.color.neutral00, !0);
|
|
264
|
+
C.silent = !0, C.y = l[1] + y / 2 - .5, b.ensureState("emphasis").style = u.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
|
|
265
|
+
var w = Math.min(l[1] / 2, Math.max(y, 10));
|
|
266
|
+
v = r.moveZone = new s({
|
|
267
|
+
invisible: !0,
|
|
268
|
+
shape: {
|
|
269
|
+
y: l[1] - w,
|
|
270
|
+
height: y + w
|
|
271
|
+
}
|
|
272
|
+
}), v.on("mouseover", function() {
|
|
273
|
+
f.enterEmphasis(b);
|
|
274
|
+
}).on("mouseout", function() {
|
|
275
|
+
f.leaveEmphasis(b);
|
|
276
|
+
}), o.add(b), o.add(C), o.add(v);
|
|
277
|
+
}
|
|
278
|
+
v.attr({
|
|
279
|
+
draggable: !0,
|
|
280
|
+
cursor: "grab",
|
|
281
|
+
drift: t(this._onActualMoveZoneDrift, this),
|
|
282
|
+
ondragstart: t(this._onActualMoveZoneDragStart, this),
|
|
283
|
+
ondragend: t(this._onActualMoveZoneDragEnd, this),
|
|
284
|
+
onmouseover: t(this._onOverDataInfoTriggerArea, this, !0),
|
|
285
|
+
onmouseout: t(this._onOverDataInfoTriggerArea, this, !1)
|
|
286
|
+
});
|
|
287
|
+
}, a.prototype._resetInterval = function() {
|
|
288
|
+
var e = this._range = this.dataZoomModel.getPercentRange(), t = this._getViewExtent();
|
|
289
|
+
this._handleEnds = [u(e[0], [0, 100], t, !0), u(e[1], [0, 100], t, !0)];
|
|
290
|
+
}, a.prototype._updateInterval = function(e, t) {
|
|
291
|
+
var n = this.dataZoomModel, r = this._handleEnds, i = this._getViewExtent(), a = n.findRepresentativeAxisProxy().getMinMaxSpan(), o = [0, 100];
|
|
292
|
+
L(t, r, i, n.get("zoomLock") ? "all" : e, a.minSpan == null ? null : u(a.minSpan, o, i, !0), a.maxSpan == null ? null : u(a.maxSpan, o, i, !0));
|
|
293
|
+
var s = this._range, c = this._range = l([u(r[0], i, o, !0), u(r[1], i, o, !0)]);
|
|
294
|
+
return !s || s[0] !== c[0] || s[1] !== c[1];
|
|
295
|
+
}, a.prototype._updateView = function(e) {
|
|
296
|
+
var t = this._displayables, r = this._handleEnds, i = l(r.slice()), a = this._size;
|
|
297
|
+
n([0, 1], function(e) {
|
|
298
|
+
var n = t.handles[e], i = this._handleHeight;
|
|
299
|
+
n.attr({
|
|
300
|
+
scaleX: i / 2,
|
|
301
|
+
scaleY: i / 2,
|
|
302
|
+
x: r[e] + (e ? -1 : 1),
|
|
303
|
+
y: a[1] / 2 - i / 2
|
|
304
|
+
});
|
|
305
|
+
}, this), t.filler.setShape({
|
|
306
|
+
x: i[0],
|
|
307
|
+
y: 0,
|
|
308
|
+
width: i[1] - i[0],
|
|
309
|
+
height: a[1]
|
|
310
|
+
});
|
|
311
|
+
var o = {
|
|
312
|
+
x: i[0],
|
|
313
|
+
width: i[1] - i[0]
|
|
314
|
+
};
|
|
315
|
+
t.moveHandle && (t.moveHandle.setShape(o), t.moveZone.setShape(o), t.moveZone.getBoundingRect(), t.moveHandleIcon && t.moveHandleIcon.attr("x", o.x + o.width / 2));
|
|
316
|
+
for (var c = t.dataShadowSegs, u = [
|
|
317
|
+
0,
|
|
318
|
+
i[0],
|
|
319
|
+
i[1],
|
|
320
|
+
a[0]
|
|
321
|
+
], d = 0; d < c.length; d++) {
|
|
322
|
+
var f = c[d], p = f.getClipPath();
|
|
323
|
+
p || (p = new s(), f.setClipPath(p)), p.setShape({
|
|
324
|
+
x: u[d],
|
|
325
|
+
y: 0,
|
|
326
|
+
width: u[d + 1] - u[d],
|
|
327
|
+
height: a[1]
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
this._updateDataInfo(e);
|
|
331
|
+
}, a.prototype._updateDataInfo = function(e) {
|
|
332
|
+
var t = this.dataZoomModel, n = this._displayables, r = n.handleLabels, i = this._orient, a = ["", ""];
|
|
333
|
+
if (t.get("showDetail")) {
|
|
334
|
+
var o = t.findRepresentativeAxisProxy(), s = o.getAxisModel().axis.scale;
|
|
335
|
+
if (o) {
|
|
336
|
+
var c = this._range, u;
|
|
337
|
+
if (e) {
|
|
338
|
+
var d = {
|
|
339
|
+
start: c[0],
|
|
340
|
+
end: c[1]
|
|
341
|
+
}, f = P(t, o);
|
|
342
|
+
if (f) {
|
|
343
|
+
var p = f.calculateDataWindow(d).percentInverted;
|
|
344
|
+
d = {
|
|
345
|
+
start: p[0],
|
|
346
|
+
end: p[1]
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
u = o.calculateDataWindow(d);
|
|
350
|
+
} else u = o.getWindow();
|
|
351
|
+
a = [J(t, 0, u, s), J(t, 1, u, s)];
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
var m = l(this._handleEnds.slice());
|
|
355
|
+
h.call(this, 0), h.call(this, 1);
|
|
356
|
+
function h(e) {
|
|
357
|
+
var t = y(n.handles[e].parent, this.group), o = b(e === 0 ? "right" : "left", t), s = this._handleWidth / 2 + W, c = v([m[e] + (e === 0 ? -s : s), this._size[1] / 2], t);
|
|
358
|
+
r[e].setStyle({
|
|
359
|
+
x: c[0],
|
|
360
|
+
y: c[1],
|
|
361
|
+
verticalAlign: i === H ? "middle" : o,
|
|
362
|
+
align: i === H ? o : "center",
|
|
363
|
+
text: a[e]
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}, a.prototype._onOverDataInfoTriggerArea = function(e) {
|
|
367
|
+
this._isOverDataInfoTriggerArea = e, this._showDataInfo(e);
|
|
368
|
+
}, a.prototype._showDataInfo = function(e) {
|
|
369
|
+
var t = (this.dataZoomModel.get("handleLabel") || {}).show || !1, n = this.dataZoomModel.getModel(["emphasis", "handleLabel"]).get("show") || !1, r = e || this._dragging ? n : t, i = this._displayables, a = i.handleLabels;
|
|
370
|
+
a[0].attr("invisible", !r), a[1].attr("invisible", !r), i.moveHandle && this.api[r ? "enterEmphasis" : "leaveEmphasis"](i.moveHandle, 1);
|
|
371
|
+
}, a.prototype._onActualMoveZoneDrift = function(e, t, n) {
|
|
372
|
+
this.api.getZr().setCursorStyle("grabbing"), this._onDragMove("all", e, t, n);
|
|
373
|
+
}, a.prototype._onActualMoveZoneDragStart = function(e) {
|
|
374
|
+
e.target.attr("cursor", "grabbing"), this._showDataInfo(!0);
|
|
375
|
+
}, a.prototype._onActualMoveZoneDragEnd = function(e) {
|
|
376
|
+
e.target.attr("cursor", "grab"), this._onDragEnd();
|
|
377
|
+
}, a.prototype._onDragMove = function(e, t, n, r) {
|
|
378
|
+
this._dragging = !0, M(r.event);
|
|
379
|
+
var i = this._displayables.sliderGroup.getLocalTransform(), a = v([t, n], i, !0), o = this._updateInterval(e, a[0]), s = this.dataZoomModel.get("realtime");
|
|
380
|
+
this._updateView(!s), o && s && this._dispatchZoomAction(!0);
|
|
381
|
+
}, a.prototype._onDragEnd = function() {
|
|
382
|
+
this._dragging = !1, this._isOverDataInfoTriggerArea || this._showDataInfo(!1), !this.dataZoomModel.get("realtime") && this._dispatchZoomAction(!1);
|
|
383
|
+
}, a.prototype._onClickPanel = function(e) {
|
|
384
|
+
var t = this._size, n = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);
|
|
385
|
+
if (!(n[0] < 0 || n[0] > t[0] || n[1] < 0 || n[1] > t[1])) {
|
|
386
|
+
var r = this._handleEnds, i = (r[0] + r[1]) / 2, a = this._updateInterval("all", n[0] - i);
|
|
387
|
+
this._updateView(), a && this._dispatchZoomAction(!1);
|
|
388
|
+
}
|
|
389
|
+
}, a.prototype._onBrushStart = function(e) {
|
|
390
|
+
var t = e.offsetX, n = e.offsetY;
|
|
391
|
+
this._brushStart = new o(t, n), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date();
|
|
392
|
+
}, a.prototype._onBrushEnd = function(e) {
|
|
393
|
+
if (this._brushing) {
|
|
394
|
+
var t = this._displayables.brushRect;
|
|
395
|
+
if (this._brushing = !1, t) {
|
|
396
|
+
t.attr("ignore", !0);
|
|
397
|
+
var n = t.shape;
|
|
398
|
+
if (!(+/* @__PURE__ */ new Date() - this._brushStartTime < 200 && Math.abs(n.width) < 5)) {
|
|
399
|
+
var r = this._getViewExtent(), i = [0, 100], a = this._handleEnds = [n.x, n.x + n.width], o = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
|
|
400
|
+
L(0, a, r, 0, o.minSpan == null ? null : u(o.minSpan, i, r, !0), o.maxSpan == null ? null : u(o.maxSpan, i, r, !0)), this._range = l([u(a[0], r, i, !0), u(a[1], r, i, !0)]), this._updateView(), this._dispatchZoomAction(!1);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}, a.prototype._onBrush = function(e) {
|
|
405
|
+
this._brushing && (M(e.event), this._updateBrushRect(e.offsetX, e.offsetY));
|
|
406
|
+
}, a.prototype._updateBrushRect = function(e, t) {
|
|
407
|
+
var n = this._displayables, r = this.dataZoomModel, i = n.brushRect;
|
|
408
|
+
i || (i = n.brushRect = new R({
|
|
409
|
+
silent: !0,
|
|
410
|
+
style: r.getModel("brushStyle").getItemStyle()
|
|
411
|
+
}), n.sliderGroup.add(i)), i.attr("ignore", !1);
|
|
412
|
+
var a = this._brushStart, o = this._displayables.sliderGroup, s = o.transformCoordToLocal(e, t), c = o.transformCoordToLocal(a.x, a.y), l = this._size;
|
|
413
|
+
s[0] = Math.max(Math.min(l[0], s[0]), 0), i.setShape({
|
|
414
|
+
x: c[0],
|
|
415
|
+
y: 0,
|
|
416
|
+
width: s[0] - c[0],
|
|
417
|
+
height: l[1]
|
|
418
|
+
});
|
|
419
|
+
}, a.prototype._dispatchZoomAction = function(e) {
|
|
420
|
+
var t = this._range;
|
|
421
|
+
this.api.dispatchAction({
|
|
422
|
+
type: "dataZoom",
|
|
423
|
+
from: this.uid,
|
|
424
|
+
dataZoomId: this.dataZoomModel.id,
|
|
425
|
+
animation: e ? K : null,
|
|
426
|
+
start: t[0],
|
|
427
|
+
end: t[1]
|
|
428
|
+
});
|
|
429
|
+
}, a.prototype._findCoordRect = function() {
|
|
430
|
+
var e, t = N(this.dataZoomModel).infoList;
|
|
431
|
+
if (!e && t.length) {
|
|
432
|
+
var n = t[0].model.coordinateSystem;
|
|
433
|
+
e = n.getRect && n.getRect();
|
|
434
|
+
}
|
|
435
|
+
if (!e) {
|
|
436
|
+
var r = this.api.getWidth(), i = this.api.getHeight();
|
|
437
|
+
e = {
|
|
438
|
+
x: r * .2,
|
|
439
|
+
y: i * .2,
|
|
440
|
+
width: r * .6,
|
|
441
|
+
height: i * .6
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return e;
|
|
445
|
+
}, a.type = "dataZoom.slider", a;
|
|
446
|
+
}(I);
|
|
447
|
+
function J(e, t, n, r) {
|
|
448
|
+
var o = e.get("labelFormatter"), s = e.get("labelPrecision");
|
|
449
|
+
(s == null || s === "auto") && (s = n.valuePrecision);
|
|
450
|
+
var c = n.value[t], l = c == null || isNaN(c) ? "" : O(r) || k(r) ? r.getLabel({ value: Math.round(c) }) : isFinite(s) ? f(c, s, !0) : c + "";
|
|
451
|
+
return i(o) ? o(c, l) : a(o) ? o.replace("{value}", l) : l;
|
|
452
|
+
}
|
|
453
|
+
function Y(e) {
|
|
454
|
+
return {
|
|
455
|
+
x: "y",
|
|
456
|
+
y: "x",
|
|
457
|
+
radius: "angle",
|
|
458
|
+
angle: "radius"
|
|
459
|
+
}[e];
|
|
460
|
+
}
|
|
461
|
+
function X(e) {
|
|
462
|
+
return e === "vertical" ? "ns-resize" : "ew-resize";
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
465
|
+
export { q as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { each as e } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { findEffectedDataZooms as t } from "./helper.js";
|
|
3
|
+
//#region node_modules/echarts/lib/component/dataZoom/dataZoomAction.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
n.registerAction("dataZoom", function(n, r) {
|
|
6
|
+
e(t(r, n), function(e) {
|
|
7
|
+
e.setRawRange({
|
|
8
|
+
start: n.start,
|
|
9
|
+
end: n.end,
|
|
10
|
+
startValue: n.startValue,
|
|
11
|
+
endValue: n.endValue
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createHashMap as e, each as t } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { getAlignTo as n, getAxisMainType as r, getAxisProxyFromModel as i, setAxisProxyToModel as a } from "./helper.js";
|
|
3
|
+
import o from "./AxisProxy.js";
|
|
4
|
+
//#region node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js
|
|
5
|
+
var s = {
|
|
6
|
+
dirtyOnOverallProgress: !0,
|
|
7
|
+
getTargetSeries: function(n) {
|
|
8
|
+
function s(e) {
|
|
9
|
+
n.eachComponent("dataZoom", function(t) {
|
|
10
|
+
t.eachTargetAxis(function(i, a) {
|
|
11
|
+
e(i, a, n.getComponent(r(i), a), t);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var c = [];
|
|
16
|
+
s(function(e, t, r, s) {
|
|
17
|
+
if (!i(r)) {
|
|
18
|
+
var l = new o(e, t, s, n);
|
|
19
|
+
c.push(l), a(r, l);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var l = e();
|
|
23
|
+
return t(c, function(e) {
|
|
24
|
+
t(e.getTargetSeriesModels(), function(e) {
|
|
25
|
+
l.set(e.uid, e);
|
|
26
|
+
});
|
|
27
|
+
}), l;
|
|
28
|
+
},
|
|
29
|
+
overallReset: function(e, r) {
|
|
30
|
+
e.eachComponent("dataZoom", function(e) {
|
|
31
|
+
var i = [];
|
|
32
|
+
e.eachTargetAxis(function(t, r) {
|
|
33
|
+
var a = e.getAxisProxy(t, r), o = n(e, a);
|
|
34
|
+
o ? i.push([a, o]) : a.reset(e, null);
|
|
35
|
+
}), t(i, function(t) {
|
|
36
|
+
t[0].reset(e, t[1].getWindow().percentInverted);
|
|
37
|
+
}), e.eachTargetAxis(function(t, n) {
|
|
38
|
+
e.getAxisProxy(t, n).filterData(e, r);
|
|
39
|
+
});
|
|
40
|
+
}), e.eachComponent("dataZoom", function(e) {
|
|
41
|
+
var t = e.findRepresentativeAxisProxy();
|
|
42
|
+
if (t) {
|
|
43
|
+
var n = t.getWindow(), r = n.percent, i = n.value;
|
|
44
|
+
e.setCalculatedRange({
|
|
45
|
+
start: r[0],
|
|
46
|
+
end: r[1],
|
|
47
|
+
startValue: i[0],
|
|
48
|
+
endValue: i[1]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { s as default };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { assert as e, createHashMap as t, indexOf as n } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { makeInner as r } from "../../util/model.js";
|
|
3
|
+
import { getCachePerECPrepare as i } from "../../util/cycleCache.js";
|
|
4
|
+
//#region node_modules/echarts/lib/component/dataZoom/helper.js
|
|
5
|
+
var a = [
|
|
6
|
+
"x",
|
|
7
|
+
"y",
|
|
8
|
+
"radius",
|
|
9
|
+
"angle",
|
|
10
|
+
"single"
|
|
11
|
+
], o = r(), s = [
|
|
12
|
+
"cartesian2d",
|
|
13
|
+
"polar",
|
|
14
|
+
"singleAxis"
|
|
15
|
+
];
|
|
16
|
+
function c(e) {
|
|
17
|
+
return n(s, e.get("coordinateSystem")) >= 0;
|
|
18
|
+
}
|
|
19
|
+
function l(t) {
|
|
20
|
+
return process.env.NODE_ENV !== "production" && e(t), t + "Axis";
|
|
21
|
+
}
|
|
22
|
+
function u(e, n) {
|
|
23
|
+
var r = t(), i = [], a = t();
|
|
24
|
+
e.eachComponent({
|
|
25
|
+
mainType: "dataZoom",
|
|
26
|
+
query: n
|
|
27
|
+
}, function(e) {
|
|
28
|
+
a.get(e.uid) || c(e);
|
|
29
|
+
});
|
|
30
|
+
var o;
|
|
31
|
+
do
|
|
32
|
+
o = !1, e.eachComponent("dataZoom", s);
|
|
33
|
+
while (o);
|
|
34
|
+
function s(e) {
|
|
35
|
+
!a.get(e.uid) && l(e) && (c(e), o = !0);
|
|
36
|
+
}
|
|
37
|
+
function c(e) {
|
|
38
|
+
a.set(e.uid, !0), i.push(e), u(e);
|
|
39
|
+
}
|
|
40
|
+
function l(e) {
|
|
41
|
+
var t = !1;
|
|
42
|
+
return e.eachTargetAxis(function(e, n) {
|
|
43
|
+
var i = r.get(e);
|
|
44
|
+
i && i[n] && (t = !0);
|
|
45
|
+
}), t;
|
|
46
|
+
}
|
|
47
|
+
function u(e) {
|
|
48
|
+
e.eachTargetAxis(function(e, t) {
|
|
49
|
+
(r.get(e) || r.set(e, []))[t] = !0;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return i;
|
|
53
|
+
}
|
|
54
|
+
function d(e) {
|
|
55
|
+
var n = e.ecModel, r = {
|
|
56
|
+
infoList: [],
|
|
57
|
+
infoMap: t()
|
|
58
|
+
};
|
|
59
|
+
return e.eachTargetAxis(function(e, t) {
|
|
60
|
+
var i = n.getComponent(l(e), t);
|
|
61
|
+
if (i) {
|
|
62
|
+
var a = i.getCoordSysModel();
|
|
63
|
+
if (a) {
|
|
64
|
+
var o = a.uid, s = r.infoMap.get(o);
|
|
65
|
+
s || (s = {
|
|
66
|
+
model: a,
|
|
67
|
+
axisModels: []
|
|
68
|
+
}, r.infoList.push(s), r.infoMap.set(o, s)), s.axisModels.push(i);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}), r;
|
|
72
|
+
}
|
|
73
|
+
function f(e) {
|
|
74
|
+
var n = o(i(e));
|
|
75
|
+
return n.axisProxyMap ||= t();
|
|
76
|
+
}
|
|
77
|
+
function p(t) {
|
|
78
|
+
if (t) return process.env.NODE_ENV !== "production" && e(t.ecModel), f(t.ecModel).get(t.uid);
|
|
79
|
+
}
|
|
80
|
+
function m(t, n) {
|
|
81
|
+
process.env.NODE_ENV !== "production" && e(t.ecModel), f(t.ecModel).set(t.uid, n);
|
|
82
|
+
}
|
|
83
|
+
function h(e, t) {
|
|
84
|
+
var n = t.getAxisModel().axis.__alignTo;
|
|
85
|
+
return n && e.getAxisProxy(n.dim, n.model.componentIndex) ? p(n.model) : null;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { a as DATA_ZOOM_AXIS_DIMENSIONS, d as collectReferCoordSysModelInfo, u as findEffectedDataZooms, h as getAlignTo, l as getAxisMainType, p as getAxisProxyFromModel, c as isCoordSupported, m as setAxisProxyToModel };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { makeCallOnlyOnce as e } from "../../util/model.js";
|
|
2
|
+
import t from "./dataZoomProcessor.js";
|
|
3
|
+
import n from "./dataZoomAction.js";
|
|
4
|
+
//#region node_modules/echarts/lib/component/dataZoom/installCommon.js
|
|
5
|
+
var r = e();
|
|
6
|
+
function i(e) {
|
|
7
|
+
r(e, function() {
|
|
8
|
+
e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER, t), n(e), e.registerSubTypeDefaulter("dataZoom", function() {
|
|
9
|
+
return "slider";
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./InsideZoomModel.js";
|
|
2
|
+
import { installDataZoomRoamProcessor as t } from "./roams.js";
|
|
3
|
+
import n from "./InsideZoomView.js";
|
|
4
|
+
import r from "./installCommon.js";
|
|
5
|
+
//#region node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js
|
|
6
|
+
function i(i) {
|
|
7
|
+
r(i), i.registerComponentModel(e), i.registerComponentView(n), t(i);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as install };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./installCommon.js";
|
|
2
|
+
import t from "./SliderZoomModel.js";
|
|
3
|
+
import n from "./SliderZoomView.js";
|
|
4
|
+
//#region node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
r.registerComponentModel(t), r.registerComponentView(n), e(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as install };
|