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.
Files changed (147) hide show
  1. package/custom-elements.json +465 -0
  2. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
  3. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
  4. package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
  5. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
  6. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
  7. package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
  8. package/dist/index.d.ts +2 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +21 -20
  11. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  12. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  13. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  14. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  15. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  16. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  17. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  18. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  19. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  20. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  21. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  22. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  23. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  24. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  25. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  26. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  27. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  28. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  29. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  30. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  31. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  32. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  33. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  34. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  35. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  36. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  37. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  38. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  39. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  40. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  41. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  42. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  43. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  44. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  45. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  46. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  47. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  48. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  49. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  53. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  54. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  55. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  56. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  58. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  59. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  60. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  61. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  62. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  63. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  64. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  65. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  66. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  67. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  68. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  69. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  70. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  71. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  72. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  73. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  74. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  75. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  76. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  77. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  78. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  79. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  80. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  81. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  82. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  83. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  84. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  85. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  86. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  87. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  88. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  89. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  90. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  91. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  92. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  93. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  94. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  95. package/dist/node_modules/echarts/lib/extension.js +10 -10
  96. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  97. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  98. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  99. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  100. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  101. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  102. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  103. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  104. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  105. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  106. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  107. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  108. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  109. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  110. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  111. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  112. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  113. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  114. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  115. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  116. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  117. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  118. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  119. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  120. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  121. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  122. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  123. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  124. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  125. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  126. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  127. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  128. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  129. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  130. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  131. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  132. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  133. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  134. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  135. package/dist/node_modules/zrender/lib/Element.js +35 -35
  136. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  137. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  138. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  139. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  140. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  141. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  142. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  143. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  144. package/dist/react.d.ts +5 -0
  145. package/dist/react.d.ts.map +1 -1
  146. package/dist/react.js +83 -77
  147. package/package.json +5 -1
@@ -0,0 +1,189 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { assert as t, createHashMap as n, each as r, merge as i } from "../../../../zrender/lib/core/util.js";
3
+ import { MULTIPLE_REFERRING as a, SINGLE_REFERRING as o } from "../../util/model.js";
4
+ import s from "../../model/Component.js";
5
+ import { DATA_ZOOM_AXIS_DIMENSIONS as c, getAxisMainType as l, getAxisProxyFromModel as u } from "./helper.js";
6
+ //#region node_modules/echarts/lib/component/dataZoom/DataZoomModel.js
7
+ var d = function() {
8
+ function e() {
9
+ this.indexList = [], this.indexMap = [];
10
+ }
11
+ return e.prototype.add = function(e) {
12
+ this.indexMap[e] || (this.indexList.push(e), this.indexMap[e] = !0);
13
+ }, e;
14
+ }(), f = function(s) {
15
+ e(f, s);
16
+ function f() {
17
+ var e = s !== null && s.apply(this, arguments) || this;
18
+ return e.type = f.type, e._autoThrottle = !0, e._noTarget = !0, e._rangePropMode = ["percent", "percent"], e;
19
+ }
20
+ return f.prototype.init = function(e, t, n) {
21
+ var r = p(e);
22
+ this.settledOption = r, this.mergeDefaultAndTheme(e, n), this._doInit(r);
23
+ }, f.prototype.mergeOption = function(e) {
24
+ var t = p(e);
25
+ i(this.option, e, !0), i(this.settledOption, t, !0), this._doInit(t);
26
+ }, f.prototype._doInit = function(e) {
27
+ var t = this.option;
28
+ this._setDefaultThrottle(e), this._updateRangeUse(e);
29
+ var n = this.settledOption;
30
+ r([["start", "startValue"], ["end", "endValue"]], function(e, r) {
31
+ this._rangePropMode[r] === "value" && (t[e[0]] = n[e[0]] = null);
32
+ }, this), this._resetTarget();
33
+ }, f.prototype._resetTarget = function() {
34
+ var e = this.get("orient", !0), t = this._targetAxisInfoMap = n();
35
+ this._fillSpecifiedTargetAxis(t) ? this._orient = e || this._makeAutoOrientByTargetAxis() : (this._orient = e || "horizontal", this._fillAutoTargetAxisByOrient(t, this._orient)), this._noTarget = !0, t.each(function(e) {
36
+ e.indexList.length && (this._noTarget = !1);
37
+ }, this);
38
+ }, f.prototype._fillSpecifiedTargetAxis = function(e) {
39
+ var t = !1;
40
+ return r(c, function(n) {
41
+ var i = this.getReferringComponents(l(n), a);
42
+ if (i.specified) {
43
+ t = !0;
44
+ var o = new d();
45
+ r(i.models, function(e) {
46
+ o.add(e.componentIndex);
47
+ }), e.set(n, o);
48
+ }
49
+ }, this), t;
50
+ }, f.prototype._fillAutoTargetAxisByOrient = function(e, t) {
51
+ var n = this.ecModel, i = !0;
52
+ if (i) {
53
+ var a = t === "vertical" ? "y" : "x", s = n.findComponents({ mainType: a + "Axis" });
54
+ u(s, a);
55
+ }
56
+ if (i) {
57
+ var s = n.findComponents({
58
+ mainType: "singleAxis",
59
+ filter: function(e) {
60
+ return e.get("orient", !0) === t;
61
+ }
62
+ });
63
+ u(s, "single");
64
+ }
65
+ function u(t, n) {
66
+ var a = t[0];
67
+ if (a) {
68
+ var s = new d();
69
+ if (s.add(a.componentIndex), e.set(n, s), i = !1, n === "x" || n === "y") {
70
+ var c = a.getReferringComponents("grid", o).models[0];
71
+ c && r(t, function(e) {
72
+ a.componentIndex !== e.componentIndex && c === e.getReferringComponents("grid", o).models[0] && s.add(e.componentIndex);
73
+ });
74
+ }
75
+ }
76
+ }
77
+ i && r(c, function(t) {
78
+ if (i) {
79
+ var r = n.findComponents({
80
+ mainType: l(t),
81
+ filter: function(e) {
82
+ return e.get("type", !0) === "category";
83
+ }
84
+ });
85
+ if (r[0]) {
86
+ var a = new d();
87
+ a.add(r[0].componentIndex), e.set(t, a), i = !1;
88
+ }
89
+ }
90
+ }, this);
91
+ }, f.prototype._makeAutoOrientByTargetAxis = function() {
92
+ var e;
93
+ return this.eachTargetAxis(function(t) {
94
+ !e && (e = t);
95
+ }, this), e === "y" ? "vertical" : "horizontal";
96
+ }, f.prototype._setDefaultThrottle = function(e) {
97
+ if (e.hasOwnProperty("throttle") && (this._autoThrottle = !1), this._autoThrottle) {
98
+ var t = this.ecModel.option;
99
+ this.option.throttle = t.animation && t.animationDurationUpdate > 0 ? 100 : 20;
100
+ }
101
+ }, f.prototype._updateRangeUse = function(e) {
102
+ var t = this._rangePropMode, n = this.get("rangeMode");
103
+ r([["start", "startValue"], ["end", "endValue"]], function(r, i) {
104
+ var a = e[r[0]] != null, o = e[r[1]] != null;
105
+ a && !o ? t[i] = "percent" : !a && o ? t[i] = "value" : n ? t[i] = n[i] : a && (t[i] = "percent");
106
+ });
107
+ }, f.prototype.noTarget = function() {
108
+ return this._noTarget;
109
+ }, f.prototype.getFirstTargetAxisModel = function() {
110
+ var e;
111
+ return this.eachTargetAxis(function(t, n) {
112
+ e ??= this.ecModel.getComponent(l(t), n);
113
+ }, this), e;
114
+ }, f.prototype.eachTargetAxis = function(e, t) {
115
+ this._targetAxisInfoMap.each(function(n, i) {
116
+ r(n.indexList, function(n) {
117
+ e.call(t, i, n);
118
+ });
119
+ });
120
+ }, f.prototype.getAxisProxy = function(e, t) {
121
+ return u(this.getAxisModel(e, t));
122
+ }, f.prototype.getAxisModel = function(e, n) {
123
+ process.env.NODE_ENV !== "production" && t(e && n != null);
124
+ var r = this._targetAxisInfoMap.get(e);
125
+ if (r && r.indexMap[n]) return this.ecModel.getComponent(l(e), n);
126
+ }, f.prototype.setRawRange = function(e) {
127
+ var t = this.option, n = this.settledOption;
128
+ r([["start", "startValue"], ["end", "endValue"]], function(r) {
129
+ (e[r[0]] != null || e[r[1]] != null) && (t[r[0]] = n[r[0]] = e[r[0]], t[r[1]] = n[r[1]] = e[r[1]]);
130
+ }, this), this._updateRangeUse(e);
131
+ }, f.prototype.setCalculatedRange = function(e) {
132
+ var t = this.option;
133
+ r([
134
+ "start",
135
+ "startValue",
136
+ "end",
137
+ "endValue"
138
+ ], function(n) {
139
+ t[n] = e[n];
140
+ });
141
+ }, f.prototype.getPercentRange = function() {
142
+ var e = this.findRepresentativeAxisProxy();
143
+ if (e) return e.getWindow().percent;
144
+ }, f.prototype.getValueRange = function(e, t) {
145
+ if (e == null && t == null) {
146
+ var n = this.findRepresentativeAxisProxy();
147
+ if (n) return n.getWindow().value;
148
+ } else return this.getAxisProxy(e, t).getWindow().value;
149
+ }, f.prototype.findRepresentativeAxisProxy = function(e) {
150
+ if (e) return u(e);
151
+ for (var t, n = this._targetAxisInfoMap.keys(), r = 0; r < n.length; r++) for (var i = n[r], a = this._targetAxisInfoMap.get(i), o = 0; o < a.indexList.length; o++) {
152
+ var s = this.getAxisProxy(i, a.indexList[o]);
153
+ if (s.hostedBy(this)) return s;
154
+ t ||= s;
155
+ }
156
+ return t;
157
+ }, f.prototype.getRangePropMode = function() {
158
+ return this._rangePropMode.slice();
159
+ }, f.prototype.getOrient = function() {
160
+ return process.env.NODE_ENV !== "production" && t(this._orient), this._orient;
161
+ }, f.type = "dataZoom", f.dependencies = [
162
+ "xAxis",
163
+ "yAxis",
164
+ "radiusAxis",
165
+ "angleAxis",
166
+ "singleAxis",
167
+ "series",
168
+ "toolbox"
169
+ ], f.defaultOption = {
170
+ z: 4,
171
+ filterMode: "filter",
172
+ start: 0,
173
+ end: 100
174
+ }, f;
175
+ }(s);
176
+ function p(e) {
177
+ var t = {};
178
+ return r([
179
+ "start",
180
+ "end",
181
+ "startValue",
182
+ "endValue",
183
+ "throttle"
184
+ ], function(n) {
185
+ e.hasOwnProperty(n) && (t[n] = e[n]);
186
+ }), t;
187
+ }
188
+ //#endregion
189
+ export { f as default };
@@ -0,0 +1,15 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../../view/Component.js";
3
+ //#region node_modules/echarts/lib/component/dataZoom/DataZoomView.js
4
+ var n = function(t) {
5
+ e(n, t);
6
+ function n() {
7
+ var e = t !== null && t.apply(this, arguments) || this;
8
+ return e.type = n.type, e;
9
+ }
10
+ return n.prototype.render = function(e, t, n, r) {
11
+ this.dataZoomModel = e, this.ecModel = t, this.api = n;
12
+ }, n.type = "dataZoom", n;
13
+ }(t);
14
+ //#endregion
15
+ export { n as default };
@@ -0,0 +1,21 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { inheritDefaultOption as t } from "../../util/component.js";
3
+ import n from "./DataZoomModel.js";
4
+ //#region node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js
5
+ var r = function(r) {
6
+ e(i, r);
7
+ function i() {
8
+ var e = r !== null && r.apply(this, arguments) || this;
9
+ return e.type = i.type, e;
10
+ }
11
+ return i.type = "dataZoom.inside", i.defaultOption = t(n.defaultOption, {
12
+ disabled: !1,
13
+ zoomLock: !1,
14
+ zoomOnMouseWheel: !0,
15
+ moveOnMouseMove: !0,
16
+ moveOnMouseWheel: !1,
17
+ preventDefaultMouseMove: !0
18
+ }), i;
19
+ }(n);
20
+ //#endregion
21
+ export { r as default };
@@ -0,0 +1,67 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { bind as t } from "../../../../zrender/lib/core/util.js";
3
+ import n from "./DataZoomView.js";
4
+ import r from "../helper/sliderMove.js";
5
+ import { disposeCoordSysRecordIfNeeded as i, setViewInfoToCoordSysRecord as a } from "./roams.js";
6
+ //#region node_modules/echarts/lib/component/dataZoom/InsideZoomView.js
7
+ var o = function(n) {
8
+ e(r, n);
9
+ function r() {
10
+ var e = n !== null && n.apply(this, arguments) || this;
11
+ return e.type = "dataZoom.inside", e;
12
+ }
13
+ return r.prototype.render = function(e, r, i) {
14
+ if (n.prototype.render.apply(this, arguments), e.noTarget()) {
15
+ this._clear();
16
+ return;
17
+ }
18
+ this.range = e.getPercentRange(), a(i, e, {
19
+ pan: t(s.pan, this),
20
+ zoom: t(s.zoom, this),
21
+ scrollMove: t(s.scrollMove, this)
22
+ });
23
+ }, r.prototype.dispose = function() {
24
+ this._clear(), n.prototype.dispose.apply(this, arguments);
25
+ }, r.prototype._clear = function() {
26
+ i(this.api, this.dataZoomModel), this.range = null;
27
+ }, r.type = "dataZoom.inside", r;
28
+ }(n), s = {
29
+ zoom: function(e, t, n, i) {
30
+ var a = this.range, o = a.slice(), s = e.axisModels[0];
31
+ if (s) {
32
+ var c = l[t](null, [i.originX, i.originY], s, n, e), u = (c.signal > 0 ? c.pixelStart + c.pixelLength - c.pixel : c.pixel - c.pixelStart) / c.pixelLength * (o[1] - o[0]) + o[0], d = Math.max(1 / i.scale, 0);
33
+ o[0] = (o[0] - u) * d + u, o[1] = (o[1] - u) * d + u;
34
+ var f = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
35
+ if (r(0, o, [0, 100], 0, f.minSpan, f.maxSpan), this.range = o, a[0] !== o[0] || a[1] !== o[1]) return o;
36
+ }
37
+ },
38
+ pan: c(function(e, t, n, r, i, a) {
39
+ var o = l[r]([a.oldX, a.oldY], [a.newX, a.newY], t, i, n);
40
+ return o.signal * (e[1] - e[0]) * o.pixel / o.pixelLength;
41
+ }),
42
+ scrollMove: c(function(e, t, n, r, i, a) {
43
+ return l[r]([0, 0], [a.scrollDelta, a.scrollDelta], t, i, n).signal * (e[1] - e[0]) * a.scrollDelta;
44
+ })
45
+ };
46
+ function c(e) {
47
+ return function(t, n, i, a) {
48
+ var o = this.range, s = o.slice(), c = t.axisModels[0];
49
+ if (c && (r(e(s, c, t, n, i, a), s, [0, 100], "all"), this.range = s, o[0] !== s[0] || o[1] !== s[1])) return s;
50
+ };
51
+ }
52
+ var l = {
53
+ grid: function(e, t, n, r, i) {
54
+ var a = n.axis, o = {}, s = i.model.coordinateSystem.getRect();
55
+ return e ||= [0, 0], a.dim === "x" ? (o.pixel = t[0] - e[0], o.pixelLength = s.width, o.pixelStart = s.x, o.signal = a.inverse ? 1 : -1) : (o.pixel = t[1] - e[1], o.pixelLength = s.height, o.pixelStart = s.y, o.signal = a.inverse ? -1 : 1), o;
56
+ },
57
+ polar: function(e, t, n, r, i) {
58
+ var a = n.axis, o = {}, s = i.model.coordinateSystem, c = s.getRadiusAxis().getExtent(), l = s.getAngleAxis().getExtent();
59
+ return e = e ? s.pointToCoord(e) : [0, 0], t = s.pointToCoord(t), n.mainType === "radiusAxis" ? (o.pixel = t[0] - e[0], o.pixelLength = c[1] - c[0], o.pixelStart = c[0], o.signal = a.inverse ? 1 : -1) : (o.pixel = t[1] - e[1], o.pixelLength = l[1] - l[0], o.pixelStart = l[0], o.signal = a.inverse ? -1 : 1), o;
60
+ },
61
+ singleAxis: function(e, t, n, r, i) {
62
+ var a = n.axis, o = i.model.coordinateSystem.getRect(), s = {};
63
+ return e ||= [0, 0], a.orient === "horizontal" ? (s.pixel = t[0] - e[0], s.pixelLength = o.width, s.pixelStart = o.x, s.signal = a.inverse ? 1 : -1) : (s.pixel = t[1] - e[1], s.pixelLength = o.height, s.pixelStart = o.y, s.signal = a.inverse ? -1 : 1), s;
64
+ }
65
+ };
66
+ //#endregion
67
+ export { o as default };
@@ -0,0 +1,75 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { inheritDefaultOption as t } from "../../util/component.js";
3
+ import n from "../../visual/tokens.js";
4
+ import r from "./DataZoomModel.js";
5
+ //#region node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js
6
+ var i = function(i) {
7
+ e(a, i);
8
+ function a() {
9
+ var e = i !== null && i.apply(this, arguments) || this;
10
+ return e.type = a.type, e;
11
+ }
12
+ return a.type = "dataZoom.slider", a.layoutMode = "box", a.defaultOption = t(r.defaultOption, {
13
+ show: !0,
14
+ right: "ph",
15
+ top: "ph",
16
+ width: "ph",
17
+ height: "ph",
18
+ left: null,
19
+ bottom: null,
20
+ borderColor: n.color.accent10,
21
+ borderRadius: 0,
22
+ backgroundColor: n.color.transparent,
23
+ dataBackground: {
24
+ lineStyle: {
25
+ color: n.color.accent30,
26
+ width: .5
27
+ },
28
+ areaStyle: {
29
+ color: n.color.accent20,
30
+ opacity: .2
31
+ }
32
+ },
33
+ selectedDataBackground: {
34
+ lineStyle: {
35
+ color: n.color.accent40,
36
+ width: .5
37
+ },
38
+ areaStyle: {
39
+ color: n.color.accent20,
40
+ opacity: .3
41
+ }
42
+ },
43
+ fillerColor: "rgba(135,175,274,0.2)",
44
+ handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
45
+ handleSize: "100%",
46
+ handleStyle: {
47
+ color: n.color.neutral00,
48
+ borderColor: n.color.accent20
49
+ },
50
+ moveHandleSize: 7,
51
+ moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
52
+ moveHandleStyle: {
53
+ color: n.color.accent40,
54
+ opacity: .5
55
+ },
56
+ showDetail: !0,
57
+ showDataShadow: "auto",
58
+ realtime: !0,
59
+ zoomLock: !1,
60
+ textStyle: { color: n.color.tertiary },
61
+ brushSelect: !0,
62
+ brushStyle: {
63
+ color: n.color.accent30,
64
+ opacity: .3
65
+ },
66
+ emphasis: {
67
+ handleLabel: { show: !0 },
68
+ handleStyle: { borderColor: n.color.accent40 },
69
+ moveHandleStyle: { opacity: .8 }
70
+ },
71
+ defaultLocationEdgeGap: 15
72
+ }), a;
73
+ }(r);
74
+ //#endregion
75
+ export { i as default };