tvcharts 0.9.47 → 0.9.48

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 (29) hide show
  1. package/lib/chart/baseLine/BaseLineLayout.js +85 -0
  2. package/lib/chart/baseLine/BaseLineSeries.js +94 -0
  3. package/lib/chart/baseLine/BaseLineView.js +274 -0
  4. package/lib/chart/baseLine/PolyLineFillPath.js +91 -0
  5. package/lib/chart/baseLine/PolyLinePath.js +80 -0
  6. package/lib/chart/baseLine/install.js +64 -0
  7. package/lib/chart/playbackOrder/PlaybackOrderView.js +11 -6
  8. package/lib/component/alarm/AlarmView.js +11 -8
  9. package/lib/component/marker/MarkLabelView.js +14 -2
  10. package/lib/component/playback/PlaybackOrderView.js +21 -14
  11. package/lib/component/playback/PlaybackSelectView.js +15 -10
  12. package/lib/export/charts.js +1 -0
  13. package/lib/model/Global.js +1 -0
  14. package/package.json +1 -1
  15. package/types/dist/charts.d.ts +1 -1
  16. package/types/dist/components.d.ts +1 -1
  17. package/types/dist/renderers.d.ts +1 -1
  18. package/types/dist/shared.d.ts +6 -4
  19. package/types/src/chart/baseLine/BaseLineLayout.d.ts +3 -0
  20. package/types/src/chart/baseLine/BaseLineSeries.d.ts +63 -0
  21. package/types/src/chart/baseLine/BaseLineView.d.ts +26 -0
  22. package/types/src/chart/baseLine/PolyLineFillPath.d.ts +20 -0
  23. package/types/src/chart/baseLine/PolyLinePath.d.ts +19 -0
  24. package/types/src/chart/baseLine/install.d.ts +2 -0
  25. package/types/src/chart/playbackOrder/PlaybackOrderView.d.ts +5 -0
  26. package/types/src/component/alarm/AlarmView.d.ts +3 -0
  27. package/types/src/component/playback/PlaybackOrderView.d.ts +7 -0
  28. package/types/src/component/playback/PlaybackSelectView.d.ts +5 -0
  29. package/types/src/export/charts.d.ts +1 -0
@@ -0,0 +1,85 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ /* global Float32Array */
45
+ import createRenderPlanner from '../helper/createRenderPlanner.js';
46
+ import { createFloat32Array } from '../../util/vendor.js';
47
+ import { map } from 'tvrender/lib/core/util.js';
48
+ var baseLineLayout = {
49
+ seriesType: 'baseLine',
50
+ plan: createRenderPlanner(),
51
+ reset: function (seriesModel) {
52
+ var data = seriesModel.getData();
53
+ var coordSys = seriesModel.coordinateSystem;
54
+ if (!coordSys) {
55
+ return;
56
+ }
57
+ // const dims = map(coordSys.dimensions, function (dim) {
58
+ // return data.mapDimension(dim);
59
+ // });
60
+ var dims = map(coordSys.dimensions, function (dim) {
61
+ return data.mapDimension(dim);
62
+ });
63
+ var store = data.getStore();
64
+ var dimIdx0 = data.getDimensionIndex(dims[0]);
65
+ var dimIdx1 = data.getDimensionIndex(dims[1]);
66
+ return {
67
+ progress: function (params, data) {
68
+ var segCount = params.end - params.start;
69
+ var points = createFloat32Array(segCount * 2);
70
+ var tmpIn = [];
71
+ var tmpOut = [];
72
+ for (var i = params.start, offset = 0; i < params.end; i++) {
73
+ tmpIn[0] = store.get(dimIdx0, i);
74
+ tmpIn[1] = store.get(dimIdx1, i);
75
+ // Let coordinate system to handle the NaN data.
76
+ var point = coordSys.dataToPoint(tmpIn, null, tmpOut);
77
+ points[offset++] = point[0];
78
+ points[offset++] = point[1];
79
+ }
80
+ data.setLayout('points', points);
81
+ }
82
+ };
83
+ }
84
+ };
85
+ export default baseLineLayout;
@@ -0,0 +1,94 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ import { __extends } from "tslib";
45
+ import createSeriesData from '../helper/createSeriesData.js';
46
+ import SeriesModel from '../../model/Series.js';
47
+ var BaseLineSeriesModel = /** @class */function (_super) {
48
+ __extends(BaseLineSeriesModel, _super);
49
+ function BaseLineSeriesModel() {
50
+ var _this = _super !== null && _super.apply(this, arguments) || this;
51
+ _this.type = BaseLineSeriesModel.type;
52
+ _this.ignoreStyleOnData = true;
53
+ return _this;
54
+ }
55
+ BaseLineSeriesModel.prototype.getInitialData = function (option) {
56
+ if (process.env.NODE_ENV !== 'production') {
57
+ var coordSys = option.coordinateSystem;
58
+ if (coordSys !== 'cartesian2d') {
59
+ throw new Error('BaseLine not support coordinateSystem besides cartesian');
60
+ }
61
+ }
62
+ return createSeriesData(null, this, {
63
+ useEncodeDefaulter: true
64
+ });
65
+ };
66
+ BaseLineSeriesModel.type = 'series.baseLine';
67
+ BaseLineSeriesModel.dependencies = ['grid', 'polar'];
68
+ BaseLineSeriesModel.defaultOption = {
69
+ // zlevel: 0,
70
+ z: 3,
71
+ coordinateSystem: 'cartesian2d',
72
+ itemStyle: {
73
+ topColor: "#089981",
74
+ topLineWidth: 2,
75
+ topFill1: "rgba(8, 153, 129, 0.28)",
76
+ topFill2: "rgba(8, 153, 129, 0.05)",
77
+ bottomColor: "#F23645",
78
+ bottomLineWidth: 2,
79
+ bottomFill1: "rgba(242, 54, 69, 0.05)",
80
+ bottomFill2: "rgba(242, 54, 69, 0.28)"
81
+ },
82
+ baseLinePadding: [0, 0],
83
+ clip: true,
84
+ base: 50,
85
+ emphasis: {
86
+ scale: true,
87
+ emphasisState: {
88
+ zlevel: 1
89
+ }
90
+ }
91
+ };
92
+ return BaseLineSeriesModel;
93
+ }(SeriesModel);
94
+ export default BaseLineSeriesModel;
@@ -0,0 +1,274 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ import { __extends } from "tslib";
45
+ import ChartView from '../../view/Chart.js';
46
+ import PolyLinePath from './PolyLinePath.js';
47
+ import PolyLineFillPath from './PolyLineFillPath.js';
48
+ import * as eventTool from 'tvrender/lib/core/event.js';
49
+ import * as graphic from '../../util/graphic.js';
50
+ import { getECData } from '../../util/innerStore.js';
51
+ import { toggleHoverEmphasis } from '../../util/states.js';
52
+ var BaseLineView = /** @class */function (_super) {
53
+ __extends(BaseLineView, _super);
54
+ function BaseLineView() {
55
+ var _this = _super !== null && _super.apply(this, arguments) || this;
56
+ _this.type = BaseLineView.type;
57
+ _this._eventMounted = false;
58
+ _this._isMouseDown = false;
59
+ _this.onMouseDown = _this._onMouseDown.bind(_this);
60
+ _this.onMouseMove = _this._onMouseMove.bind(_this);
61
+ _this.onMouseUp = _this._onMouseUp.bind(_this);
62
+ return _this;
63
+ }
64
+ // init() {
65
+ // // this._onMouseDown = this._onMouseDown.bind(this);
66
+ // }
67
+ BaseLineView.prototype.render = function (seriesModel, ecModel, api) {
68
+ this.api = api;
69
+ this._renderNormal(seriesModel, ecModel, api);
70
+ };
71
+ BaseLineView.prototype.initEvent = function (seriesModel, ecModel, api) {
72
+ if (this._eventMounted) {
73
+ return;
74
+ }
75
+ this._eventMounted = true;
76
+ // this._onMouseDown = this._onMouseDown.bind(this);
77
+ var zr = api.getZr();
78
+ zr.on('mousemove', this.onMouseMove);
79
+ zr.on('mouseup', this.onMouseUp);
80
+ };
81
+ BaseLineView.prototype.removeEvent = function (api) {
82
+ if (!this._eventMounted) {
83
+ return;
84
+ }
85
+ this._eventMounted = false;
86
+ this._isMouseDown = false;
87
+ var zr = api.getZr();
88
+ zr.off('mousemove', this.onMouseMove);
89
+ zr.off('mouseup', this.onMouseUp);
90
+ };
91
+ BaseLineView.prototype._renderNormal = function (seriesModel, ecModel, api) {
92
+ var data = seriesModel.getData();
93
+ var baseDragDisabled = seriesModel.get('baseDragDisabled');
94
+ if (!baseDragDisabled) {
95
+ this.initEvent(seriesModel, ecModel, api);
96
+ }
97
+ // const oldData = this._data;
98
+ var group = this.group;
99
+ group.removeAll();
100
+ // const info = seriesModel.get('info');
101
+ var emphasisState = seriesModel.get('emphasis').emphasisState;
102
+ var groupId = seriesModel.get('groupId');
103
+ var base = seriesModel.get('base');
104
+ var _a = seriesModel.get('baseLinePadding'),
105
+ left = _a[0],
106
+ right = _a[1];
107
+ var itemStyle = seriesModel.get('itemStyle');
108
+ var lineStyle = seriesModel.get('lineStyle');
109
+ this._base = base;
110
+ var topFill1 = itemStyle.topFill1,
111
+ topColor = itemStyle.topColor,
112
+ topFill2 = itemStyle.topFill2,
113
+ topLineWidth = itemStyle.topLineWidth,
114
+ bottomColor = itemStyle.bottomColor,
115
+ bottomFill1 = itemStyle.bottomFill1,
116
+ bottomFill2 = itemStyle.bottomFill2,
117
+ bottomLineWidth = itemStyle.bottomLineWidth;
118
+ var points = data.getLayout('points');
119
+ var height = api.getHeight();
120
+ var width = api.getWidth();
121
+ var colorStopsInRange = [];
122
+ var baseOffset = base / 100;
123
+ var baseY = Math.floor(height * baseOffset) + 0.5;
124
+ colorStopsInRange.push({
125
+ offset: 0,
126
+ color: topFill1
127
+ });
128
+ colorStopsInRange.push({
129
+ offset: baseOffset,
130
+ color: topFill2
131
+ });
132
+ colorStopsInRange.push({
133
+ offset: baseOffset,
134
+ color: bottomFill1
135
+ });
136
+ colorStopsInRange.push({
137
+ offset: 1,
138
+ color: bottomFill2
139
+ });
140
+ var gradient = new graphic.LinearGradient(0, 0, 0, height, colorStopsInRange, true);
141
+ var polyLineFillEl = new PolyLineFillPath({
142
+ shape: {
143
+ points: points,
144
+ baseY: baseY
145
+ },
146
+ style: {
147
+ fill: gradient,
148
+ stroke: 'none'
149
+ }
150
+ });
151
+ polyLineFillEl.states.emphasis = emphasisState;
152
+ group.add(polyLineFillEl);
153
+ var lineEl = new graphic.Line({
154
+ shape: {
155
+ x1: left,
156
+ x2: width - right,
157
+ y1: baseY,
158
+ y2: baseY
159
+ },
160
+ style: {
161
+ lineWidth: lineStyle.width,
162
+ lineDash: lineStyle.type,
163
+ stroke: lineStyle.color
164
+ },
165
+ onmousedown: baseDragDisabled ? void 0 : this.onMouseDown,
166
+ cursor: baseDragDisabled ? void 0 : 'ns-resize'
167
+ });
168
+ lineEl.states.emphasis = emphasisState;
169
+ group.add(lineEl);
170
+ var topPolylineEl = new PolyLinePath({
171
+ shape: {
172
+ points: points
173
+ },
174
+ style: {
175
+ fill: 'none',
176
+ stroke: topColor,
177
+ lineWidth: topLineWidth
178
+ },
179
+ clipPath: new graphic.Rect({
180
+ shape: {
181
+ x: 0,
182
+ y: 0,
183
+ width: width,
184
+ height: baseY
185
+ }
186
+ })
187
+ });
188
+ topPolylineEl.states.emphasis = emphasisState;
189
+ group.add(topPolylineEl);
190
+ var bottomPolylineEl = new PolyLinePath({
191
+ shape: {
192
+ points: points
193
+ },
194
+ style: {
195
+ fill: 'none',
196
+ stroke: bottomColor,
197
+ lineWidth: bottomLineWidth
198
+ },
199
+ clipPath: new graphic.Rect({
200
+ shape: {
201
+ x: 0,
202
+ y: baseY,
203
+ width: width,
204
+ height: height - baseY
205
+ }
206
+ })
207
+ });
208
+ bottomPolylineEl.states.emphasis = emphasisState;
209
+ group.add(bottomPolylineEl);
210
+ // const clipPath = seriesModel.get('clip', true)
211
+ // ? createClipPath(seriesModel.coordinateSystem, false, seriesModel)
212
+ // : null;
213
+ // if (clipPath) {
214
+ // this.group.setClipPath(clipPath);
215
+ // }
216
+ // else {
217
+ // this.group.removeClipPath();
218
+ // }
219
+ toggleHoverEmphasis(this.group, null, null, false);
220
+ getECData(this.group).groupId = groupId;
221
+ };
222
+ BaseLineView.prototype.remove = function (ecModel, api) {
223
+ this.removeEvent(api);
224
+ this._clear();
225
+ };
226
+ BaseLineView.prototype._onMouseDown = function (e) {
227
+ this._isMouseDown = true;
228
+ e.cancelBubble = true;
229
+ eventTool.stop(e.event);
230
+ return true;
231
+ };
232
+ BaseLineView.prototype._onMouseMove = function (e) {
233
+ if (!this._isMouseDown) {
234
+ return;
235
+ }
236
+ var api = this.api;
237
+ var offsetY = e.offsetY;
238
+ var height = api.getHeight();
239
+ var newBaseY = offsetY / height * 100;
240
+ api.dispatchAction({
241
+ type: 'changeBaseLineBase',
242
+ base: Math.min(Math.max(0, newBaseY), 100),
243
+ seriesIndex: 0
244
+ });
245
+ };
246
+ BaseLineView.prototype._onMouseUp = function (e) {
247
+ if (this._isMouseDown) {
248
+ this._isMouseDown = false;
249
+ var api = this.api;
250
+ // api.trigger('changeBaseLineBase', {
251
+ // base: Math.round(this._base),
252
+ // status: 'finished'
253
+ // });
254
+ api.dispatchAction({
255
+ type: 'changeBaseLineBase',
256
+ base: this._base,
257
+ finished: true
258
+ });
259
+ }
260
+ };
261
+ BaseLineView.prototype._clear = function () {
262
+ this.group.removeAll();
263
+ this.api = null;
264
+ // this._data = null;
265
+ };
266
+
267
+ BaseLineView.prototype.destroyed = function (ecModel, api) {
268
+ this.removeEvent(api);
269
+ this._clear();
270
+ };
271
+ BaseLineView.type = 'baseLine';
272
+ return BaseLineView;
273
+ }(ChartView);
274
+ export default BaseLineView;
@@ -0,0 +1,91 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ import { __extends } from "tslib";
45
+ /* global Float32Array */
46
+ // TODO Batch by color
47
+ import * as graphic from '../../util/graphic.js';
48
+ var LargePolyLinePathShape = /** @class */function () {
49
+ function LargePolyLinePathShape() {}
50
+ return LargePolyLinePathShape;
51
+ }();
52
+ var PolyLinePath = /** @class */function (_super) {
53
+ __extends(PolyLinePath, _super);
54
+ // private _ctx: CanvasRenderingContext2D;
55
+ function PolyLinePath(opts) {
56
+ return _super.call(this, opts) || this;
57
+ }
58
+ PolyLinePath.prototype.getDefaultShape = function () {
59
+ return new LargePolyLinePathShape();
60
+ };
61
+ PolyLinePath.prototype.buildPath = function (path, shape) {
62
+ var isMove = true;
63
+ var points = shape.points,
64
+ baseY = shape.baseY;
65
+ var startX = 0;
66
+ var endX = 0;
67
+ for (var i = 0; i < points.length;) {
68
+ var x = points[i++];
69
+ var y = points[i++];
70
+ if (isNaN(x) || isNaN(y)) {
71
+ continue;
72
+ }
73
+ if (!startX) {
74
+ startX = x;
75
+ } else {
76
+ endX = x;
77
+ }
78
+ if (isMove) {
79
+ isMove = false;
80
+ path.moveTo(x, y);
81
+ continue;
82
+ }
83
+ path.lineTo(x, y);
84
+ }
85
+ path.lineTo(endX, baseY);
86
+ path.lineTo(startX, baseY);
87
+ path.closePath();
88
+ };
89
+ return PolyLinePath;
90
+ }(graphic.Path);
91
+ export default PolyLinePath;
@@ -0,0 +1,80 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ import { __extends } from "tslib";
45
+ /* global Float32Array */
46
+ // TODO Batch by color
47
+ import * as graphic from '../../util/graphic.js';
48
+ var LargePolyLinePathShape = /** @class */function () {
49
+ function LargePolyLinePathShape() {}
50
+ return LargePolyLinePathShape;
51
+ }();
52
+ var PolyLinePath = /** @class */function (_super) {
53
+ __extends(PolyLinePath, _super);
54
+ // private _ctx: CanvasRenderingContext2D;
55
+ function PolyLinePath(opts) {
56
+ return _super.call(this, opts) || this;
57
+ }
58
+ PolyLinePath.prototype.getDefaultShape = function () {
59
+ return new LargePolyLinePathShape();
60
+ };
61
+ PolyLinePath.prototype.buildPath = function (path, shape) {
62
+ var points = shape.points;
63
+ var isMove = true;
64
+ for (var i = 0; i < points.length;) {
65
+ var x = points[i++];
66
+ var y = points[i++];
67
+ if (isNaN(x) || isNaN(y)) {
68
+ continue;
69
+ }
70
+ if (isMove) {
71
+ isMove = false;
72
+ path.moveTo(x, y);
73
+ continue;
74
+ }
75
+ path.lineTo(x, y);
76
+ }
77
+ };
78
+ return PolyLinePath;
79
+ }(graphic.Path);
80
+ export default PolyLinePath;
@@ -0,0 +1,64 @@
1
+
2
+ /*
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+ /**
23
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
24
+ */
25
+
26
+ /*
27
+ * Licensed to the Apache Software Foundation (ASF) under one
28
+ * or more contributor license agreements. See the NOTICE file
29
+ * distributed with this work for additional information
30
+ * regarding copyright ownership. The ASF licenses this file
31
+ * to you under the Apache License, Version 2.0 (the
32
+ * "License"); you may not use this file except in compliance
33
+ * with the License. You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing,
38
+ * software distributed under the License is distributed on an
39
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
+ * KIND, either express or implied. See the License for the
41
+ * specific language governing permissions and limitations
42
+ * under the License.
43
+ */
44
+ import BaseLineSeries from './BaseLineSeries.js';
45
+ import BaseLineView from './BaseLineView.js';
46
+ import BaseLineLayout from './BaseLineLayout.js';
47
+ export function install(registers) {
48
+ registers.registerChartView(BaseLineView);
49
+ registers.registerSeriesModel(BaseLineSeries);
50
+ registers.registerLayout(BaseLineLayout);
51
+ registers.registerAction({
52
+ type: 'changeBaseLineBase',
53
+ event: 'changeBaseLineBase',
54
+ update: 'updateView'
55
+ }, function (payload, ecModel, api) {
56
+ ecModel.eachComponent({
57
+ mainType: 'series',
58
+ subType: 'baseLine',
59
+ query: payload
60
+ }, function (seriesModel) {
61
+ seriesModel.option.base = payload.base;
62
+ });
63
+ });
64
+ }
@@ -58,6 +58,11 @@ var PlaybackOrderView = /** @class */function (_super) {
58
58
  function PlaybackOrderView() {
59
59
  var _this = _super !== null && _super.apply(this, arguments) || this;
60
60
  _this.type = PlaybackOrderView.type;
61
+ _this.onClickGlobal = _this._clickGlobal.bind(_this);
62
+ _this.onMouseover = _this._mouseover.bind(_this);
63
+ _this.onMouseout = _this._mouseout.bind(_this);
64
+ _this.onMouseClick = _this._mouseClick.bind(_this);
65
+ _this.onMouseDown = _this._mouseDown.bind(_this);
61
66
  return _this;
62
67
  }
63
68
  // init(ecModel: GlobalModel, api: ExtensionAPI) {
@@ -69,7 +74,7 @@ var PlaybackOrderView = /** @class */function (_super) {
69
74
  this._renderHover();
70
75
  if (!this.htmlContent) {
71
76
  this.htmlContent = new PlaybackHtmlContent(api);
72
- api.getZr().on('mousedown', this._clickGlobal, this);
77
+ api.getZr().on('mousedown', this.onClickGlobal);
73
78
  }
74
79
  this._isSmallSize = seriesModel.get('isMobile') && api.getWidth() <= 600;
75
80
  var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
@@ -233,10 +238,10 @@ var PlaybackOrderView = /** @class */function (_super) {
233
238
  if (!this._symbolGroup) {
234
239
  this._symbolGroup = new graphic.Group();
235
240
  this.group.add(this._symbolGroup);
236
- this.group.on('mouseover', this._mouseover, this);
237
- this.group.on('mouseout', this._mouseout, this);
238
- this.group.on('click', this._mouseClick, this);
239
- this.group.on('mousedown', this._mouseDown, this);
241
+ this.group.on('mouseover', this.onMouseover);
242
+ this.group.on('mouseout', this.onMouseout);
243
+ this.group.on('click', this.onMouseClick);
244
+ this.group.on('mousedown', this.onMouseDown);
240
245
  } else {
241
246
  this._symbolGroup.removeAll();
242
247
  }
@@ -313,7 +318,7 @@ var PlaybackOrderView = /** @class */function (_super) {
313
318
  PlaybackOrderView.prototype.dispose = function (ecModel, api) {
314
319
  this.remove(ecModel, api);
315
320
  this.htmlContent.dispose();
316
- api.getZr().off('mousedown', this._clickGlobal);
321
+ api.getZr().off('mousedown', this.onClickGlobal);
317
322
  this.htmlContent = null;
318
323
  // this._lineGroup.removeAll();
319
324
  };
@@ -63,6 +63,9 @@ var AlarmView = /** @class */function (_super) {
63
63
  function AlarmView() {
64
64
  var _this = _super !== null && _super.apply(this, arguments) || this;
65
65
  _this.type = AlarmView.type;
66
+ _this.onMouseMove = _this._onMouseMove.bind(_this);
67
+ _this.onMouseUp = _this._onMouseUp.bind(_this);
68
+ _this.onMouseDown = _this._onMouseDown.bind(_this);
66
69
  return _this;
67
70
  // private _onElClick(e: any, id: string): void {
68
71
  // this.model.setSelectedId(id);
@@ -73,10 +76,10 @@ var AlarmView = /** @class */function (_super) {
73
76
  this.ecModel = ecModel;
74
77
  this.api = api;
75
78
  var zr = api.getZr();
76
- zr.on('mousemove', this._onMouseMove, this);
77
- zr.on('mouseup', this._onMouseUp, this);
78
- zr.on('click', this._onMouseUp, this);
79
- zr.on('mousedown', this._onMouseDown, this);
79
+ zr.on('mousemove', this.onMouseMove);
80
+ zr.on('mouseup', this.onMouseUp);
81
+ zr.on('click', this.onMouseUp);
82
+ zr.on('mousedown', this.onMouseDown);
80
83
  };
81
84
  AlarmView.prototype.render = function (alarmModel, ecModel, api, payload) {
82
85
  this.model = alarmModel;
@@ -306,10 +309,10 @@ var AlarmView = /** @class */function (_super) {
306
309
  };
307
310
  AlarmView.prototype.dispose = function () {
308
311
  var zr = this.api.getZr();
309
- zr.off('mousemove', this._onMouseMove);
310
- zr.off('mouseup', this._onMouseUp);
311
- zr.off('click', this._onMouseUp);
312
- zr.off('mousedown', this._onMouseDown);
312
+ zr.off('mousemove', this.onMouseMove);
313
+ zr.off('mouseup', this.onMouseUp);
314
+ zr.off('click', this.onMouseUp);
315
+ zr.off('mousedown', this.onMouseDown);
313
316
  this.ecModel = null;
314
317
  this.api = null;
315
318
  this.group.removeAll();
@@ -108,6 +108,7 @@ var markerTypeCalculator = {
108
108
  };
109
109
  }
110
110
  var fill = (_a = seriesData.getItemVisual(lastIndex, 'style')) === null || _a === void 0 ? void 0 : _a.fill;
111
+ var value = seriesData.getByRawIndex(item.valueDim, lastIndex);
111
112
  var seriesType = seriesModel.subType;
112
113
  if (isCandle(seriesType)) {
113
114
  var dataItem = seriesData.getItemModel(lastIndex, true);
@@ -134,9 +135,14 @@ var markerTypeCalculator = {
134
135
  } else if (seriesType === 'hlcArea') {
135
136
  var dataItem = seriesData.getItemModel(lastIndex, true);
136
137
  fill = dataItem.get('itemStyle').cColor;
138
+ } else if (seriesType === 'baseLine') {
139
+ var base = seriesModel.get('base');
140
+ var itemStyle = seriesModel.get('itemStyle');
141
+ var y = seriesModel.coordinateSystem.dataToPoint([0, value])[1];
142
+ fill = base * height / 100 >= y ? itemStyle.topColor : itemStyle.bottomColor;
137
143
  }
138
144
  return {
139
- value: seriesData.getByRawIndex(item.valueDim, lastIndex),
145
+ value: value,
140
146
  labelTextStyle: {
141
147
  fill: typeof fill === 'string' ? contrastColor(fill) : '#ffffff',
142
148
  // stroke: fill,
@@ -160,6 +166,7 @@ var markerTypeCalculator = {
160
166
  var seriesType = seriesModel.subType;
161
167
  var lastItem = seriesData.count() - 1;
162
168
  var fill = (_a = seriesData.getItemVisual(lastItem, 'style')) === null || _a === void 0 ? void 0 : _a.fill;
169
+ var value = seriesData.getByRawIndex(item.valueDim, lastIndex);
163
170
  if (isPlot(seriesType)) {
164
171
  var isLinesPlot = linePlotTypes.includes(seriesType);
165
172
  var dataItem = seriesData.getItemModel(lastItem);
@@ -183,9 +190,14 @@ var markerTypeCalculator = {
183
190
  } else if (seriesType === 'hlcArea') {
184
191
  var dataItem = seriesData.getItemModel(lastIndex, true);
185
192
  fill = dataItem.get('itemStyle').cColor;
193
+ } else if (seriesType === 'baseLine') {
194
+ var base = seriesModel.get('base');
195
+ var itemStyle = seriesModel.get('itemStyle');
196
+ var y = seriesModel.coordinateSystem.dataToPoint([0, value])[1];
197
+ fill = base * height / 100 >= y ? itemStyle.topColor : itemStyle.bottomColor;
186
198
  }
187
199
  return {
188
- value: seriesData.getByRawIndex(item.valueDim, lastIndex),
200
+ value: value,
189
201
  labelTextStyle: {
190
202
  fill: fill || DefaultColor,
191
203
  // stroke: fill,
@@ -73,6 +73,13 @@ var PlaybackOrderView = /** @class */function (_super) {
73
73
  _this.selected = false;
74
74
  _this.dragType = '';
75
75
  _this.dragGroupType = '';
76
+ _this.onOrderMouseover = _this.orderMouseover.bind(_this);
77
+ _this.onOrderMouseout = _this.orderMouseout.bind(_this);
78
+ _this.onOrderMousedown = _this.orderMousedown.bind(_this);
79
+ _this.onOrderClick = _this.orderClick.bind(_this);
80
+ _this.onZrMouseDown = _this.zrMouseDown.bind(_this);
81
+ _this.onZrMouseMove = _this.zrMouseMove.bind(_this);
82
+ _this.onZrMouseUp = _this.zrMouseUp.bind(_this);
76
83
  return _this;
77
84
  }
78
85
  PlaybackOrderView.prototype.init = function (ecModel, api) {
@@ -91,14 +98,14 @@ var PlaybackOrderView = /** @class */function (_super) {
91
98
  if (!this.eventMount) {
92
99
  this.ecModel = ecModel;
93
100
  this.api = api;
94
- this.group.on('mousemove', this.orderMouseover, this);
95
- this.group.on('mouseout', this.orderMouseout, this);
96
- this.group.on('mousedown', this.orderMousedown, this);
97
- this.group.on('click', this.orderClick, this);
101
+ this.group.on('mousemove', this.onOrderMouseover);
102
+ this.group.on('mouseout', this.onOrderMouseout);
103
+ this.group.on('mousedown', this.onOrderMousedown);
104
+ this.group.on('click', this.onOrderClick);
98
105
  var zr = api.getZr();
99
- zr.on('mousedown', this.zrMouseDown, this);
100
- zr.on('mousemove', this.zrMouseMove, this);
101
- zr.on('mouseup', this.zrMouseUp, this);
106
+ zr.on('mousedown', this.onZrMouseDown);
107
+ zr.on('mousemove', this.onZrMouseMove);
108
+ zr.on('mouseup', this.onZrMouseUp);
102
109
  this.eventMount = true;
103
110
  }
104
111
  this.playbackOrderModel = playbackOrderModel;
@@ -1410,14 +1417,14 @@ var PlaybackOrderView = /** @class */function (_super) {
1410
1417
  this.orderGroupEls = null;
1411
1418
  this.yAxisModel = null;
1412
1419
  this.playbackOrderModel = null;
1413
- this.group.off('mouseover', this.orderMouseover);
1414
- this.group.off('mouseout', this.orderMouseout);
1415
- this.group.off('mousedown', this.orderMousedown);
1416
- this.group.off('click', this.orderClick);
1420
+ this.group.off('mouseover', this.onOrderMouseover);
1421
+ this.group.off('mouseout', this.onOrderMouseout);
1422
+ this.group.off('mousedown', this.onOrderMousedown);
1423
+ this.group.off('click', this.onOrderClick);
1417
1424
  var zr = this.api.getZr();
1418
- zr.off('mousedown', this.zrMouseDown);
1419
- zr.off('mousemove', this.zrMouseMove);
1420
- zr.off('mouseup', this.zrMouseUp);
1425
+ zr.off('mousedown', this.onZrMouseDown);
1426
+ zr.off('mousemove', this.onZrMouseMove);
1427
+ zr.off('mouseup', this.onZrMouseUp);
1421
1428
  this.group.removeAll();
1422
1429
  zr.refresh();
1423
1430
  this.eventMount = false;
@@ -50,6 +50,11 @@ var PlaybackSelectView = /** @class */function (_super) {
50
50
  _this.isDown = false;
51
51
  _this.isMountEvent = false;
52
52
  _this.mouseIndex = 0;
53
+ _this.onMouseMove = _this._onMouseMove.bind(_this);
54
+ _this.onClick = _this._onClick.bind(_this);
55
+ _this.onGlobalout = _this._globalout.bind(_this);
56
+ _this.onMousedown = _this._onMousedown.bind(_this);
57
+ _this.onMouseUp = _this._onMouseUp.bind(_this);
53
58
  return _this;
54
59
  }
55
60
  PlaybackSelectView.prototype.init = function (ecModel, api) {
@@ -246,11 +251,11 @@ var PlaybackSelectView = /** @class */function (_super) {
246
251
  return;
247
252
  }
248
253
  var zr = this.api.getZr();
249
- zr.on('mousemove', this._onMouseMove, this);
250
- zr.on('click', this._onClick, this);
251
- zr.on('globalout', this._globalout, this);
252
- zr.on('mousedown', this._onMousedown, this);
253
- zr.on('mouseup', this._onMouseUp, this);
254
+ zr.on('mousemove', this.onMouseMove);
255
+ zr.on('click', this.onClick);
256
+ zr.on('globalout', this.onGlobalout);
257
+ zr.on('mousedown', this.onMousedown);
258
+ zr.on('mouseup', this.onMouseUp);
254
259
  // zr.on('mousewheel', this._onMousewheel, this);
255
260
  this.isMountEvent = true;
256
261
  };
@@ -259,11 +264,11 @@ var PlaybackSelectView = /** @class */function (_super) {
259
264
  return;
260
265
  }
261
266
  var zr = this.api.getZr();
262
- zr.off('mousemove', this._onMouseMove);
263
- zr.off('click', this._onClick);
264
- zr.off('globalout', this._globalout);
265
- zr.off('mousedown', this._onMousedown);
266
- zr.off('mouseup', this._onMouseUp);
267
+ zr.off('mousemove', this.onMouseMove);
268
+ zr.off('click', this.onClick);
269
+ zr.off('globalout', this.onGlobalout);
270
+ zr.off('mousedown', this.onMousedown);
271
+ zr.off('mouseup', this.onMouseUp);
267
272
  // zr.off('mousewheel', this._onMousewheel);
268
273
  this.isMountEvent = false;
269
274
  };
@@ -74,6 +74,7 @@ export { install as CharPlotChart } from '../chart/charPlot/install.js';
74
74
  export { install as CandlePlotChart } from '../chart/candlePlot/install.js';
75
75
  export { install as CandleVolumeChart } from '../chart/candleVolume/install.js';
76
76
  export { install as SymbolLineChart } from '../chart/symbolLine/install.js';
77
+ export { install as BaseLineChart } from '../chart/baseLine/install.js';
77
78
  export { install as HeikinAshiChart } from '../chart/heikinAshi/install.js';
78
79
  export { install as HlcAreaChart } from '../chart/hlcArea/install.js';
79
80
  export { install as VolPathChart } from '../chart/volPath/install.js';
@@ -145,6 +145,7 @@ var BUILTIN_CHARTS_MAP = {
145
145
  candlePlot: 'CandlePlotChart',
146
146
  candleVolume: 'CandleVolumeChart',
147
147
  symbolLine: 'SymbolLineChart',
148
+ baseLine: 'BaseLineChart',
148
149
  hlcArea: 'HlcAreaChart',
149
150
  heikinAshi: 'HeikinAshiChart',
150
151
  volPath: 'VolPathChart',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.9.47",
3
+ "version": "0.9.48",
4
4
  "main": "dist/echarts.js",
5
5
  "module": "index.js",
6
6
  "jsdelivr": "dist/echarts.min.js",
@@ -1 +1 @@
1
- export { install$34 as ArrowsPlotChart, install$1 as BarChart, install$33 as BarPlotChart, BarSeriesOption, install$38 as BgColorChart, install$23 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$25 as CandlePlotChart, install$26 as CandleVolumeChart, install$14 as CandlestickChart, CandlestickSeriesOption, install$24 as CharPlotChart, install$43 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$37 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$36 as HLinesChart, install$39 as HeatmapChart, HeatmapSeriesOption, install$28 as HeikinAshiChart, install$29 as HlcAreaChart, install$35 as LabelsChart, install as LineChart, install$22 as LineFillsChart, LineSeriesOption, install$16 as LinesChart, install$17 as LinesPlotChart, LinesPlotSeriesOption, LinesSeriesOption, install$5 as MapChart, MapSeriesOption, install$20 as MineLinesChart, install$21 as MinePolyLinesChart, install$11 as ParallelChart, ParallelSeriesOption, install$40 as PictorialBarChart, PictorialBarSeriesOption, install$2 as PieChart, PieSeriesOption, install$19 as PlaybackOrderChart, install$4 as RadarChart, RadarSeriesOption, install$12 as SankeyChart, SankeySeriesOption, install$3 as ScatterChart, ScatterSeriesOption, install$18 as StrategyChart, StrategySeriesOption, install$42 as SunburstChart, SunburstSeriesOption, install$27 as SymbolLineChart, install$41 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption, install$30 as VolPathChart, install$31 as VolPathRectChart, install$32 as VolPathTableChart } from './shared';
1
+ export { install$35 as ArrowsPlotChart, install$1 as BarChart, install$34 as BarPlotChart, BarSeriesOption, install$28 as BaseLineChart, install$39 as BgColorChart, install$23 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$25 as CandlePlotChart, install$26 as CandleVolumeChart, install$14 as CandlestickChart, CandlestickSeriesOption, install$24 as CharPlotChart, install$44 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$38 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$37 as HLinesChart, install$40 as HeatmapChart, HeatmapSeriesOption, install$29 as HeikinAshiChart, install$30 as HlcAreaChart, install$36 as LabelsChart, install as LineChart, install$22 as LineFillsChart, LineSeriesOption, install$16 as LinesChart, install$17 as LinesPlotChart, LinesPlotSeriesOption, LinesSeriesOption, install$5 as MapChart, MapSeriesOption, install$20 as MineLinesChart, install$21 as MinePolyLinesChart, install$11 as ParallelChart, ParallelSeriesOption, install$41 as PictorialBarChart, PictorialBarSeriesOption, install$2 as PieChart, PieSeriesOption, install$19 as PlaybackOrderChart, install$4 as RadarChart, RadarSeriesOption, install$12 as SankeyChart, SankeySeriesOption, install$3 as ScatterChart, ScatterSeriesOption, install$18 as StrategyChart, StrategySeriesOption, install$43 as SunburstChart, SunburstSeriesOption, install$27 as SymbolLineChart, install$42 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption, install$31 as VolPathChart, install$32 as VolPathRectChart, install$33 as VolPathTableChart } from './shared';
@@ -1 +1 @@
1
- export { install$62 as AlarmComponent, install$81 as AriaComponent, AriaOption as AriaComponentOption, install$55 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$63 as BgRectComponent, install$56 as BrushComponent, BrushOption as BrushComponentOption, install$51 as CalendarComponent, CalendarOption as CalendarComponentOption, install$60 as CursorPointerComponent, install$75 as DataZoomComponent, DataZoomComponentOption, install$76 as DataZoomInsideComponent, install$77 as DataZoomSliderComponent, install$83 as DatasetComponent, DatasetOption as DatasetComponentOption, install$58 as EventsComponent, install$48 as GeoComponent, GeoOption as GeoComponentOption, install$52 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$45 as GridComponent, GridOption as GridComponentOption, install$44 as GridSimpleComponent, install$72 as LegendComponent, LegendComponentOption, install$74 as LegendPlainComponent, install$73 as LegendScrollComponent, install$71 as LimitTipComponent, install$65 as LogoComponent, install$69 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$70 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$68 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$67 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$50 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$64 as PlaybackComponent, install$46 as PolarComponent, PolarOption as PolarComponentOption, install$47 as RadarComponent, RadarOption as RadarComponentOption, install$49 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$61 as TableComponent, install$66 as TimelineComponent, TimelineOption as TimelineComponentOption, install$57 as TitleComponent, TitleOption as TitleComponentOption, install$53 as ToolboxComponent, ToolboxComponentOption, install$54 as TooltipComponent, TooltipOption as TooltipComponentOption, install$59 as TradeDayComponent, install$82 as TransformComponent, install$78 as VisualMapComponent, VisualMapComponentOption, install$79 as VisualMapContinuousComponent, install$80 as VisualMapPiecewiseComponent } from './shared';
1
+ export { install$63 as AlarmComponent, install$82 as AriaComponent, AriaOption as AriaComponentOption, install$56 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$64 as BgRectComponent, install$57 as BrushComponent, BrushOption as BrushComponentOption, install$52 as CalendarComponent, CalendarOption as CalendarComponentOption, install$61 as CursorPointerComponent, install$76 as DataZoomComponent, DataZoomComponentOption, install$77 as DataZoomInsideComponent, install$78 as DataZoomSliderComponent, install$84 as DatasetComponent, DatasetOption as DatasetComponentOption, install$59 as EventsComponent, install$49 as GeoComponent, GeoOption as GeoComponentOption, install$53 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$46 as GridComponent, GridOption as GridComponentOption, install$45 as GridSimpleComponent, install$73 as LegendComponent, LegendComponentOption, install$75 as LegendPlainComponent, install$74 as LegendScrollComponent, install$72 as LimitTipComponent, install$66 as LogoComponent, install$70 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$71 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$69 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$68 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$51 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$65 as PlaybackComponent, install$47 as PolarComponent, PolarOption as PolarComponentOption, install$48 as RadarComponent, RadarOption as RadarComponentOption, install$50 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$62 as TableComponent, install$67 as TimelineComponent, TimelineOption as TimelineComponentOption, install$58 as TitleComponent, TitleOption as TitleComponentOption, install$54 as ToolboxComponent, ToolboxComponentOption, install$55 as TooltipComponent, TooltipOption as TooltipComponentOption, install$60 as TradeDayComponent, install$83 as TransformComponent, install$79 as VisualMapComponent, VisualMapComponentOption, install$80 as VisualMapContinuousComponent, install$81 as VisualMapPiecewiseComponent } from './shared';
@@ -1 +1 @@
1
- export { install$85 as CanvasRenderer, install$84 as SVGRenderer } from './shared';
1
+ export { install$86 as CanvasRenderer, install$85 as SVGRenderer } from './shared';
@@ -9335,6 +9335,8 @@ declare function install$H(registers: EChartsExtensionInstallRegisters): void;
9335
9335
 
9336
9336
  declare function install$I(registers: EChartsExtensionInstallRegisters): void;
9337
9337
 
9338
+ declare function install$J(registers: EChartsExtensionInstallRegisters): void;
9339
+
9338
9340
  interface RadarIndicatorOption {
9339
9341
  name?: string;
9340
9342
  /**
@@ -9567,7 +9569,7 @@ interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptio
9567
9569
  */
9568
9570
  borderRadius?: number | number[];
9569
9571
  }
9570
- declare function install$J(registers: EChartsExtensionInstallRegisters): void;
9572
+ declare function install$K(registers: EChartsExtensionInstallRegisters): void;
9571
9573
 
9572
9574
  interface TimelineControlStyle extends ItemStyleOption {
9573
9575
  show?: boolean;
@@ -11562,8 +11564,6 @@ interface EChartsOption extends ECBasicOption {
11562
11564
  baseOption?: EChartsOption;
11563
11565
  }
11564
11566
 
11565
- declare function install$K(registers: EChartsExtensionInstallRegisters): void;
11566
-
11567
11567
  declare function install$L(registers: EChartsExtensionInstallRegisters): void;
11568
11568
 
11569
11569
  declare function install$M(registers: EChartsExtensionInstallRegisters): void;
@@ -11642,8 +11642,10 @@ declare function install$1k(registers: EChartsExtensionInstallRegisters): void;
11642
11642
 
11643
11643
  declare function install$1l(registers: EChartsExtensionInstallRegisters): void;
11644
11644
 
11645
+ declare function install$1m(registers: EChartsExtensionInstallRegisters): void;
11646
+
11645
11647
  declare function installUniversalTransition(registers: EChartsExtensionInstallRegisters): void;
11646
11648
 
11647
11649
  declare function installLabelLayout(registers: EChartsExtensionInstallRegisters): void;
11648
11650
 
11649
- export { AngleAxisOption, AnimationDelayCallback, AnimationDelayCallbackParam, AnimationDurationCallback, AriaOption, Axis, AxisPointerOption, BarSeriesOption$1 as BarSeriesOption, BoxplotSeriesOption$1 as BoxplotSeriesOption, BrushOption, CalendarOption, CallbackDataParams, CandlestickSeriesOption$1 as CandlestickSeriesOption, ChartView, ComponentModel, ComponentView, ComposeOption, ContinousVisualMapOption, CustomSeriesOption$1 as CustomSeriesOption, CustomSeriesRenderItem, CustomSeriesRenderItemAPI, CustomSeriesRenderItemParams, CustomSeriesRenderItemReturn, DataZoomComponentOption, DatasetOption, DownplayPayload, ECBasicOption, ECElementEvent, EChartsInitOpts, EChartsOption, EChartsType, EffectScatterSeriesOption$1 as EffectScatterSeriesOption, ElementEvent, FunnelSeriesOption$1 as FunnelSeriesOption, GaugeSeriesOption$1 as GaugeSeriesOption, GeoOption, GraphSeriesOption$1 as GraphSeriesOption, GraphicComponentLooseOption, GridOption, HeatmapSeriesOption$1 as HeatmapSeriesOption, HighlightPayload, ImagePatternObject, InsideDataZoomOption, LabelFormatterCallback, LabelLayoutOptionCallback, LabelLayoutOptionCallbackParams, LegendComponentOption, LegendOption, LineSeriesOption$1 as LineSeriesOption, LinearGradientObject, LinesPlotSeriesOption$1 as LinesPlotSeriesOption, LinesSeriesOption$1 as LinesSeriesOption, MapSeriesOption$1 as MapSeriesOption, MarkAreaOption, MarkLabelOption, MarkLineOption, MarkPointOption, MineLinesSeriesOption$1 as MineLinesSeriesOption, Model, PRIORITY, ParallelCoordinateSystemOption, ParallelSeriesOption$1 as ParallelSeriesOption, PatternObject, Payload, PictorialBarSeriesOption$1 as PictorialBarSeriesOption, PieSeriesOption$1 as PieSeriesOption, PiecewiseVisualMapOption, PolarOption, RadarOption, RadarSeriesOption$1 as RadarSeriesOption, RadialGradientObject, RadiusAxisOption, RegisteredSeriesOption, ResizeOpts, SVGPatternObject, SankeySeriesOption$1 as SankeySeriesOption, ScatterSeriesOption$1 as ScatterSeriesOption, ScrollableLegendOption, SelectChangedPayload, SeriesData, SeriesModel, SeriesOption$1 as SeriesOption, SetOptionOpts, SetOptionTransitionOpt, SetOptionTransitionOptItem, SingleAxisOption, SliderDataZoomOption, StrategySeriesOption$1 as StrategySeriesOption, SunburstSeriesOption$1 as SunburstSeriesOption, ThemeRiverSeriesOption$1 as ThemeRiverSeriesOption, TimelineOption, TitleOption, ToolboxComponentOption, TooltipFormatterCallback, TooltipOption, TooltipPositionCallback, TooltipPositionCallbackParams, TopLevelFormatterParams, TreeSeriesOption$1 as TreeSeriesOption, TreemapSeriesOption$1 as TreemapSeriesOption, VisualMapComponentOption, XAXisOption, YAXisOption, ZRColor, brushSingle, colorToRgba, color_d, connect, connectLayoutAction, connectLayouts, contrastColor, dataTool, dependencies, disConnect, disconnect, disconnectLayoutAction, disconnectLayouts, dispose$1 as dispose, env, extendChartView, extendComponentModel, extendComponentView, extendSeriesModel, format_d, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, graphic_d, helper_d, init$1 as init, install$1 as install, install$2 as install$1, install$b as install$10, install$c as install$11, install$d as install$12, install$e as install$13, install$f as install$14, install$g as install$15, install$h as install$16, install$i as install$17, install$j as install$18, install$k as install$19, install$3 as install$2, install$l as install$20, install$m as install$21, install$n as install$22, install$o as install$23, install$p as install$24, install$q as install$25, install$r as install$26, install$s as install$27, install$t as install$28, install$u as install$29, install$4 as install$3, install$v as install$30, install$w as install$31, install$x as install$32, install$y as install$33, install$z as install$34, install$A as install$35, install$B as install$36, install$C as install$37, install$D as install$38, install$E as install$39, install$5 as install$4, install$F as install$40, install$G as install$41, install$H as install$42, install$I as install$43, install$K as install$44, install$L as install$45, install$M as install$46, install$N as install$47, install$O as install$48, install$P as install$49, install$6 as install$5, install$Q as install$50, install$R as install$51, install$S as install$52, install$T as install$53, install$U as install$54, install$V as install$55, install$W as install$56, install$J as install$57, install$X as install$58, install$Y as install$59, install$7 as install$6, install$Z as install$60, install$_ as install$61, install$$ as install$62, install$10 as install$63, install$11 as install$64, install$12 as install$65, install$13 as install$66, install$14 as install$67, install$15 as install$68, install$16 as install$69, install$8 as install$7, install$17 as install$70, install$18 as install$71, install$19 as install$72, install$1a as install$73, install$1b as install$74, install$1c as install$75, install$1d as install$76, install$1e as install$77, install$1f as install$78, install$1g as install$79, install$9 as install$8, install$1h as install$80, install$1i as install$81, install$1j as install$82, install as install$83, install$1k as install$84, install$1l as install$85, install$a as install$9, installLabelLayout, installUniversalTransition, matrix_d, number_d, parseGeoJSON, registerAction, registerCoordinateSystem, registerLayout, registerLoading, registerLocale, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, setPlatformAPI, throttle, time_d, use, util_d, util_d$1, vector_d, version$1 as version, zrender_d };
11651
+ export { AngleAxisOption, AnimationDelayCallback, AnimationDelayCallbackParam, AnimationDurationCallback, AriaOption, Axis, AxisPointerOption, BarSeriesOption$1 as BarSeriesOption, BoxplotSeriesOption$1 as BoxplotSeriesOption, BrushOption, CalendarOption, CallbackDataParams, CandlestickSeriesOption$1 as CandlestickSeriesOption, ChartView, ComponentModel, ComponentView, ComposeOption, ContinousVisualMapOption, CustomSeriesOption$1 as CustomSeriesOption, CustomSeriesRenderItem, CustomSeriesRenderItemAPI, CustomSeriesRenderItemParams, CustomSeriesRenderItemReturn, DataZoomComponentOption, DatasetOption, DownplayPayload, ECBasicOption, ECElementEvent, EChartsInitOpts, EChartsOption, EChartsType, EffectScatterSeriesOption$1 as EffectScatterSeriesOption, ElementEvent, FunnelSeriesOption$1 as FunnelSeriesOption, GaugeSeriesOption$1 as GaugeSeriesOption, GeoOption, GraphSeriesOption$1 as GraphSeriesOption, GraphicComponentLooseOption, GridOption, HeatmapSeriesOption$1 as HeatmapSeriesOption, HighlightPayload, ImagePatternObject, InsideDataZoomOption, LabelFormatterCallback, LabelLayoutOptionCallback, LabelLayoutOptionCallbackParams, LegendComponentOption, LegendOption, LineSeriesOption$1 as LineSeriesOption, LinearGradientObject, LinesPlotSeriesOption$1 as LinesPlotSeriesOption, LinesSeriesOption$1 as LinesSeriesOption, MapSeriesOption$1 as MapSeriesOption, MarkAreaOption, MarkLabelOption, MarkLineOption, MarkPointOption, MineLinesSeriesOption$1 as MineLinesSeriesOption, Model, PRIORITY, ParallelCoordinateSystemOption, ParallelSeriesOption$1 as ParallelSeriesOption, PatternObject, Payload, PictorialBarSeriesOption$1 as PictorialBarSeriesOption, PieSeriesOption$1 as PieSeriesOption, PiecewiseVisualMapOption, PolarOption, RadarOption, RadarSeriesOption$1 as RadarSeriesOption, RadialGradientObject, RadiusAxisOption, RegisteredSeriesOption, ResizeOpts, SVGPatternObject, SankeySeriesOption$1 as SankeySeriesOption, ScatterSeriesOption$1 as ScatterSeriesOption, ScrollableLegendOption, SelectChangedPayload, SeriesData, SeriesModel, SeriesOption$1 as SeriesOption, SetOptionOpts, SetOptionTransitionOpt, SetOptionTransitionOptItem, SingleAxisOption, SliderDataZoomOption, StrategySeriesOption$1 as StrategySeriesOption, SunburstSeriesOption$1 as SunburstSeriesOption, ThemeRiverSeriesOption$1 as ThemeRiverSeriesOption, TimelineOption, TitleOption, ToolboxComponentOption, TooltipFormatterCallback, TooltipOption, TooltipPositionCallback, TooltipPositionCallbackParams, TopLevelFormatterParams, TreeSeriesOption$1 as TreeSeriesOption, TreemapSeriesOption$1 as TreemapSeriesOption, VisualMapComponentOption, XAXisOption, YAXisOption, ZRColor, brushSingle, colorToRgba, color_d, connect, connectLayoutAction, connectLayouts, contrastColor, dataTool, dependencies, disConnect, disconnect, disconnectLayoutAction, disconnectLayouts, dispose$1 as dispose, env, extendChartView, extendComponentModel, extendComponentView, extendSeriesModel, format_d, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, graphic_d, helper_d, init$1 as init, install$1 as install, install$2 as install$1, install$b as install$10, install$c as install$11, install$d as install$12, install$e as install$13, install$f as install$14, install$g as install$15, install$h as install$16, install$i as install$17, install$j as install$18, install$k as install$19, install$3 as install$2, install$l as install$20, install$m as install$21, install$n as install$22, install$o as install$23, install$p as install$24, install$q as install$25, install$r as install$26, install$s as install$27, install$t as install$28, install$u as install$29, install$4 as install$3, install$v as install$30, install$w as install$31, install$x as install$32, install$y as install$33, install$z as install$34, install$A as install$35, install$B as install$36, install$C as install$37, install$D as install$38, install$E as install$39, install$5 as install$4, install$F as install$40, install$G as install$41, install$H as install$42, install$I as install$43, install$J as install$44, install$L as install$45, install$M as install$46, install$N as install$47, install$O as install$48, install$P as install$49, install$6 as install$5, install$Q as install$50, install$R as install$51, install$S as install$52, install$T as install$53, install$U as install$54, install$V as install$55, install$W as install$56, install$X as install$57, install$K as install$58, install$Y as install$59, install$7 as install$6, install$Z as install$60, install$_ as install$61, install$$ as install$62, install$10 as install$63, install$11 as install$64, install$12 as install$65, install$13 as install$66, install$14 as install$67, install$15 as install$68, install$16 as install$69, install$8 as install$7, install$17 as install$70, install$18 as install$71, install$19 as install$72, install$1a as install$73, install$1b as install$74, install$1c as install$75, install$1d as install$76, install$1e as install$77, install$1f as install$78, install$1g as install$79, install$9 as install$8, install$1h as install$80, install$1i as install$81, install$1j as install$82, install$1k as install$83, install as install$84, install$1l as install$85, install$1m as install$86, install$a as install$9, installLabelLayout, installUniversalTransition, matrix_d, number_d, parseGeoJSON, registerAction, registerCoordinateSystem, registerLayout, registerLoading, registerLocale, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, setPlatformAPI, throttle, time_d, use, util_d, util_d$1, vector_d, version$1 as version, zrender_d };
@@ -0,0 +1,3 @@
1
+ import { StageHandler } from '../../util/types.js';
2
+ declare const baseLineLayout: StageHandler;
3
+ export default baseLineLayout;
@@ -0,0 +1,63 @@
1
+ import SeriesModel from '../../model/Series.js';
2
+ import { SeriesOnCartesianOptionMixin, SeriesOption, SeriesLabelOption, LineStyleOption, ItemStyleOption, AreaStyleOption, OptionDataValue, SymbolOptionMixin, SeriesSamplingOptionMixin, StatesOptionMixin, SeriesEncodeOptionMixin, CallbackDataParams, DefaultEmphasisFocus } from '../../util/types.js';
3
+ import SeriesData from '../../data/SeriesData.js';
4
+ import type Cartesian2D from '../../coord/cartesian/Cartesian2D.js';
5
+ import type Polar from '../../coord/polar/Polar.js';
6
+ import { PathState } from 'tvrender/lib/graphic/Path.js';
7
+ declare type BaseLineDataValue = OptionDataValue | OptionDataValue[];
8
+ interface BaseLineStateOptionMixin {
9
+ emphasis?: {
10
+ focus?: DefaultEmphasisFocus;
11
+ scale?: boolean | number;
12
+ emphasisState?: PathState;
13
+ };
14
+ }
15
+ interface BaseLineItemStyleOption extends ItemStyleOption {
16
+ topColor: string;
17
+ topLineWidth: number;
18
+ topFill1: string;
19
+ topFill2: string;
20
+ bottomColor: string;
21
+ bottomLineWidth: number;
22
+ bottomFill1: string;
23
+ bottomFill2: string;
24
+ }
25
+ export interface BaseLineStateOption<TCbParams = never> {
26
+ itemStyle?: BaseLineItemStyleOption;
27
+ label?: SeriesLabelOption;
28
+ endLabel?: BaseLineEndLabelOption;
29
+ }
30
+ export interface BaseLineDataItemOption extends SymbolOptionMixin, BaseLineStateOption, StatesOptionMixin<BaseLineStateOption, BaseLineStateOptionMixin> {
31
+ name?: string;
32
+ value?: BaseLineDataValue;
33
+ }
34
+ export interface BaseLineEndLabelOption extends SeriesLabelOption {
35
+ valueAnimation?: boolean;
36
+ }
37
+ export interface BaseLineSeriesOption extends SeriesOption<BaseLineStateOption<CallbackDataParams>, BaseLineStateOptionMixin & {
38
+ emphasis?: {
39
+ lineStyle?: Omit<LineStyleOption, 'width'> & {
40
+ width?: LineStyleOption['width'] | 'bolder';
41
+ };
42
+ areaStyle?: AreaStyleOption;
43
+ };
44
+ }>, BaseLineStateOption<CallbackDataParams>, SeriesOnCartesianOptionMixin, SeriesSamplingOptionMixin, SeriesEncodeOptionMixin {
45
+ type?: 'baseLine';
46
+ base: number;
47
+ baseDragDisabled?: boolean;
48
+ coordinateSystem?: 'cartesian2d';
49
+ clip?: boolean;
50
+ lineStyle?: LineStyleOption;
51
+ baseLinePadding: [number, number];
52
+ data?: (BaseLineDataValue | BaseLineDataItemOption)[];
53
+ }
54
+ declare class BaseLineSeriesModel extends SeriesModel<BaseLineSeriesOption> {
55
+ static readonly type = "series.baseLine";
56
+ type: string;
57
+ static readonly dependencies: string[];
58
+ coordinateSystem: Cartesian2D | Polar;
59
+ ignoreStyleOnData: boolean;
60
+ getInitialData(option: BaseLineSeriesOption): SeriesData;
61
+ static defaultOption: BaseLineSeriesOption;
62
+ }
63
+ export default BaseLineSeriesModel;
@@ -0,0 +1,26 @@
1
+ import ChartView from '../../view/Chart.js';
2
+ import GlobalModel from '../../model/Global.js';
3
+ import ExtensionAPI from '../../core/ExtensionAPI.js';
4
+ import BaseLineSeriesModel from './BaseLineSeries.js';
5
+ declare class BaseLineView extends ChartView {
6
+ static readonly type = "baseLine";
7
+ readonly type = "baseLine";
8
+ _eventMounted: boolean;
9
+ _isMouseDown: boolean;
10
+ api: ExtensionAPI;
11
+ _base: number;
12
+ onMouseDown: (e: any) => boolean;
13
+ onMouseMove: (e: any) => void;
14
+ onMouseUp: (e: any) => void;
15
+ render(seriesModel: BaseLineSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;
16
+ initEvent(seriesModel: BaseLineSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;
17
+ removeEvent(api: ExtensionAPI): void;
18
+ _renderNormal(seriesModel: BaseLineSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;
19
+ remove(ecModel: GlobalModel, api: ExtensionAPI): void;
20
+ _onMouseDown(e: any): boolean;
21
+ _onMouseMove(e: any): void;
22
+ _onMouseUp(e: any): void;
23
+ _clear(): void;
24
+ destroyed(ecModel: GlobalModel, api: ExtensionAPI): void;
25
+ }
26
+ export default BaseLineView;
@@ -0,0 +1,20 @@
1
+ import * as graphic from '../../util/graphic.js';
2
+ import { createSymbol } from '../../util/symbol.js';
3
+ import { PathProps } from 'tvrender/lib/graphic/Path.js';
4
+ import PathProxy from 'tvrender/lib/core/PathProxy.js';
5
+ declare class LargePolyLinePathShape {
6
+ points: number[];
7
+ baseY: number;
8
+ }
9
+ declare type LargePolyLinePathProps = PathProps & {
10
+ shape?: Partial<LargePolyLinePathShape>;
11
+ };
12
+ declare type ECSymbol = ReturnType<typeof createSymbol>;
13
+ declare class PolyLinePath extends graphic.Path<LargePolyLinePathProps> {
14
+ shape: LargePolyLinePathShape;
15
+ symbolProxy: ECSymbol;
16
+ constructor(opts?: LargePolyLinePathProps);
17
+ getDefaultShape(): LargePolyLinePathShape;
18
+ buildPath(path: PathProxy, shape: LargePolyLinePathShape): void;
19
+ }
20
+ export default PolyLinePath;
@@ -0,0 +1,19 @@
1
+ import * as graphic from '../../util/graphic.js';
2
+ import { createSymbol } from '../../util/symbol.js';
3
+ import { PathProps } from 'tvrender/lib/graphic/Path.js';
4
+ import PathProxy from 'tvrender/lib/core/PathProxy.js';
5
+ declare class LargePolyLinePathShape {
6
+ points: number[];
7
+ }
8
+ declare type LargePolyLinePathProps = PathProps & {
9
+ shape?: Partial<LargePolyLinePathShape>;
10
+ };
11
+ declare type ECSymbol = ReturnType<typeof createSymbol>;
12
+ declare class PolyLinePath extends graphic.Path<LargePolyLinePathProps> {
13
+ shape: LargePolyLinePathShape;
14
+ symbolProxy: ECSymbol;
15
+ constructor(opts?: LargePolyLinePathProps);
16
+ getDefaultShape(): LargePolyLinePathShape;
17
+ buildPath(path: PathProxy, shape: LargePolyLinePathShape): void;
18
+ }
19
+ export default PolyLinePath;
@@ -0,0 +1,2 @@
1
+ import { EChartsExtensionInstallRegisters } from '../../extension.js';
2
+ export declare function install(registers: EChartsExtensionInstallRegisters): void;
@@ -14,6 +14,11 @@ declare class PlaybackOrderView extends ChartView {
14
14
  seriesModel: PlaybackOrderSeriesModel;
15
15
  private _isSmallSize;
16
16
  private api;
17
+ onClickGlobal: () => void;
18
+ onMouseover: (e: any) => void;
19
+ onMouseout: () => void;
20
+ onMouseClick: (e: any) => void;
21
+ onMouseDown: (e: any) => void;
17
22
  render(seriesModel: PlaybackOrderSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;
18
23
  _renderHover(): void;
19
24
  _clickGlobal(): void;
@@ -19,6 +19,9 @@ declare class AlarmView extends ComponentView {
19
19
  downStop: boolean;
20
20
  elMap: zrUtil.HashMap<Group, string>;
21
21
  alarmMap: zrUtil.HashMap<AlarmParam, string>;
22
+ onMouseMove: (e: any) => void;
23
+ onMouseUp: () => void;
24
+ onMouseDown: (e: any) => void;
22
25
  init(ecModel: GlobalModel, api: ExtensionAPI): void;
23
26
  render(alarmModel: AlarmModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void;
24
27
  updateVisual(alarmModel: AlarmModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void;
@@ -63,6 +63,13 @@ export declare class PlaybackOrderView extends ComponentView {
63
63
  private eventMount;
64
64
  private mousemoveTPSL;
65
65
  private _timer;
66
+ onOrderMouseover: (e: any) => void;
67
+ onOrderMouseout: (e: any) => void;
68
+ onOrderMousedown: (e: any) => void;
69
+ onOrderClick: (e: any) => void;
70
+ onZrMouseDown: (e: any) => void;
71
+ onZrMouseMove: (e: any) => void;
72
+ onZrMouseUp: () => void;
66
73
  init(ecModel: GlobalModel, api: ExtensionAPI): void;
67
74
  render(playbackOrderModel: PlaybackOrderModel, ecModel: GlobalModel, api: ExtensionAPI): void;
68
75
  sendMessage(type: string): void;
@@ -15,6 +15,11 @@ export declare class PlaybackSelectView extends ComponentView {
15
15
  private isMobile;
16
16
  private isMountEvent;
17
17
  private mouseIndex;
18
+ onMouseMove: (e: any) => void;
19
+ onClick: (e: any) => void;
20
+ onGlobalout: () => void;
21
+ onMousedown: (e: any) => void;
22
+ onMouseUp: (e: any) => void;
18
23
  ecModel: GlobalModel;
19
24
  api: ExtensionAPI;
20
25
  playbackSelectModel: PlaybackSelectModel;
@@ -26,6 +26,7 @@ export { install as CharPlotChart } from '../chart/charPlot/install.js';
26
26
  export { install as CandlePlotChart } from '../chart/candlePlot/install.js';
27
27
  export { install as CandleVolumeChart } from '../chart/candleVolume/install.js';
28
28
  export { install as SymbolLineChart } from '../chart/symbolLine/install.js';
29
+ export { install as BaseLineChart } from '../chart/baseLine/install.js';
29
30
  export { install as HeikinAshiChart } from '../chart/heikinAshi/install.js';
30
31
  export { install as HlcAreaChart } from '../chart/hlcArea/install.js';
31
32
  export { install as VolPathChart } from '../chart/volPath/install.js';