tvcharts 0.6.92 → 0.6.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -51,7 +51,7 @@ export * from './lib/export/core.js';
51
51
  // not included in this list.
52
52
  // ----------------------------------------------
53
53
  import { SVGRenderer, CanvasRenderer } from './lib/export/renderers.js';
54
- import { LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, LinesPlotChart, StrategyChart, MineLinesChart, LineFillsChart, CharPlotChart, BoxesChart, LabelsChart, HLinesChart, ArrowsPlotChart, CandlePlotChart, BarPlotChart, FillsChart, BgColorChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart } from './lib/export/charts.js';
54
+ import { LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, LinesPlotChart, StrategyChart, MineLinesChart, MinePolyLinesChart, LineFillsChart, CharPlotChart, BoxesChart, LabelsChart, HLinesChart, ArrowsPlotChart, CandlePlotChart, BarPlotChart, FillsChart, BgColorChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart } from './lib/export/charts.js';
55
55
  import { GridComponent, PolarComponent, GeoComponent, SingleAxisComponent, ParallelComponent, CalendarComponent, GraphicComponent, ToolboxComponent, TooltipComponent, AxisPointerComponent, BrushComponent, TitleComponent, TableComponent, BgRectComponent, LogoComponent, TimelineComponent, MarkPointComponent, MarkLineComponent, MarkAreaComponent, MarkLabelComponent, LegendComponent, DataZoomComponent, DataZoomInsideComponent, DataZoomSliderComponent, VisualMapComponent, VisualMapContinuousComponent, VisualMapPiecewiseComponent, AriaComponent, DatasetComponent, TransformComponent } from './lib/export/components.js';
56
56
  import { UniversalTransition, LabelLayout } from './lib/export/features.js';
57
57
  // -----------------
@@ -72,7 +72,7 @@ use([SVGRenderer]);
72
72
  // type: 'line' // or 'bar', 'pie', ...
73
73
  // }]
74
74
  // });
75
- use([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CharPlotChart, CandlestickChart, EffectScatterChart, LinesChart, LinesPlotChart, StrategyChart, MineLinesChart, LineFillsChart, BoxesChart, LabelsChart, ArrowsPlotChart, CandlePlotChart, BarPlotChart, HLinesChart, BgColorChart, FillsChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]);
75
+ use([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CharPlotChart, CandlestickChart, EffectScatterChart, LinesChart, LinesPlotChart, StrategyChart, MineLinesChart, MinePolyLinesChart, LineFillsChart, BoxesChart, LabelsChart, ArrowsPlotChart, CandlePlotChart, BarPlotChart, HLinesChart, BgColorChart, FillsChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]);
76
76
  // -------------------
77
77
  // Coordinate systems
78
78
  // -------------------
@@ -99,13 +99,14 @@ var bgColorLayout = {
99
99
  var rects = rectsByColor[color] || [];
100
100
  rects.push({
101
101
  x: Math.floor(xPx - leftOffset),
102
- y: startY,
103
- width: width,
104
- height: height
102
+ y: startY
105
103
  });
106
104
  rectsByColor[color] = rects;
107
105
  }
108
- bgColorData.setLayout('rectsByColor', rectsByColor);
106
+ bgColorData.setLayout({
107
+ rectsByColor: rectsByColor,
108
+ height: height
109
+ });
109
110
  }
110
111
  };
111
112
  }
@@ -45,11 +45,13 @@ import { __extends } from "tslib";
45
45
  /**
46
46
  * Line path for bezier and straight line draw
47
47
  */
48
- import * as graphic from "../../util/graphic.js";
48
+ import * as graphic from '../../util/graphic.js';
49
49
  var BgColorShape = /** @class */function () {
50
50
  function BgColorShape() {
51
51
  this.points = [];
52
52
  this.isLine = false;
53
+ this.width = 2;
54
+ this.height = 2;
53
55
  }
54
56
  return BgColorShape;
55
57
  }();
@@ -57,13 +59,13 @@ var BgColorPath = /** @class */function (_super) {
57
59
  __extends(BgColorPath, _super);
58
60
  function BgColorPath(opts) {
59
61
  var _this = _super.call(this, opts) || this;
60
- _this.type = "BarPlot";
62
+ _this.type = 'BarPlot';
61
63
  return _this;
62
64
  }
63
65
  BgColorPath.prototype.getDefaultStyle = function () {
64
66
  return {
65
- stroke: "transparent",
66
- fill: "#000"
67
+ stroke: 'transparent',
68
+ fill: '#000'
67
69
  };
68
70
  };
69
71
  BgColorPath.prototype.getDefaultShape = function () {
@@ -71,13 +73,14 @@ var BgColorPath = /** @class */function (_super) {
71
73
  };
72
74
  BgColorPath.prototype.buildPath = function (ctx, shape) {
73
75
  var points = shape.points,
74
- isLine = shape.isLine;
76
+ isLine = shape.isLine,
77
+ width = shape.width,
78
+ height = shape.height;
75
79
  if (isLine) {
76
80
  for (var index = 0; index < points.length; index++) {
77
81
  var point = points[index];
78
82
  var x = point.x,
79
- y = point.y,
80
- height = point.height;
83
+ y = point.y;
81
84
  ctx.moveTo(x, y);
82
85
  ctx.lineTo(x, y + height);
83
86
  }
@@ -85,9 +88,7 @@ var BgColorPath = /** @class */function (_super) {
85
88
  for (var index = 0; index < points.length; index++) {
86
89
  var point = points[index];
87
90
  var x = point.x,
88
- y = point.y,
89
- width = point.width,
90
- height = point.height;
91
+ y = point.y;
91
92
  ctx.rect(x, y, width, height);
92
93
  }
93
94
  }
@@ -43,11 +43,11 @@
43
43
  */
44
44
  import { __extends } from "tslib";
45
45
  // FIXME step not support polar
46
- import { each } from "tvrender/lib/core/util.js";
47
- import ChartView from "../../view/Chart.js";
48
- import * as graphic from "../../util/graphic.js";
49
- import { createClipPath } from "../helper/createClipPathFromCoordSys.js";
50
- import BgColorPath from "./BgColorPath.js";
46
+ import { each } from 'tvrender/lib/core/util.js';
47
+ import ChartView from '../../view/Chart.js';
48
+ import * as graphic from '../../util/graphic.js';
49
+ import { createClipPath } from '../helper/createClipPathFromCoordSys.js';
50
+ import BgColorPath from './BgColorPath.js';
51
51
  var BgColorView = /** @class */function (_super) {
52
52
  __extends(BgColorView, _super);
53
53
  function BgColorView() {
@@ -61,7 +61,8 @@ var BgColorView = /** @class */function (_super) {
61
61
  // }
62
62
  BgColorView.prototype.render = function (seriesModel, ecModel, api) {
63
63
  var data = seriesModel.getData();
64
- var rectsByColor = data.getLayout("rectsByColor");
64
+ var rectsByColor = data.getLayout('rectsByColor');
65
+ var height = data.getLayout('height');
65
66
  if (!this._bgColorGroup) {
66
67
  this._bgColorGroup = new graphic.Group();
67
68
  this.group.add(this._bgColorGroup);
@@ -69,23 +70,25 @@ var BgColorView = /** @class */function (_super) {
69
70
  this._bgColorGroup.removeAll();
70
71
  }
71
72
  var bgColorGroup = this._bgColorGroup;
72
- var width = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace);
73
- var isLine = width <= 8;
73
+ var width = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
74
+ var isLine = width <= 2;
74
75
  each(rectsByColor, function (rects, color) {
75
76
  var el = new BgColorPath({
76
77
  shape: {
77
78
  points: rects,
78
- isLine: isLine
79
+ isLine: isLine,
80
+ width: width,
81
+ height: height
79
82
  },
80
83
  style: {
81
84
  fill: isLine ? null : color,
82
- stroke: isLine ? color : "transparent",
85
+ stroke: isLine ? color : 'transparent',
83
86
  lineWidth: isLine ? width : void 0
84
87
  }
85
88
  });
86
89
  bgColorGroup.add(el);
87
90
  });
88
- var clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
91
+ var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
89
92
  if (clipPath) {
90
93
  this.group.setClipPath(clipPath);
91
94
  } else {
@@ -104,7 +107,7 @@ var BgColorView = /** @class */function (_super) {
104
107
  BgColorView.prototype.dispose = function (ecModel, api) {
105
108
  this.remove(ecModel, api);
106
109
  };
107
- BgColorView.type = "bgcolor";
110
+ BgColorView.type = 'bgcolor';
108
111
  return BgColorView;
109
112
  }(ChartView);
110
113
  export default BgColorView;
@@ -0,0 +1,100 @@
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 { error } from '../../util/log.js';
47
+ import { each } from 'tvrender/lib/core/util.js';
48
+ var MinePolyLinesLayout = {
49
+ seriesType: 'minePolyLines',
50
+ plan: createRenderPlanner(),
51
+ reset: function (seriesModel) {
52
+ var coordSys = seriesModel.coordinateSystem;
53
+ if (!coordSys) {
54
+ if (process.env.NODE_ENV !== 'production') {
55
+ error('The lines series must have a coordinate system.');
56
+ }
57
+ return;
58
+ }
59
+ var data = seriesModel.getData();
60
+ return {
61
+ progress: function (params, minePolyLinesData) {
62
+ // const store = minePolyLinesData.getStore();
63
+ var linesPointById = {};
64
+ var _loop_1 = function (i) {
65
+ var itemModel = data.getItemModel(i);
66
+ var _a = itemModel.get('itemStyle'),
67
+ width = _a.width,
68
+ color = _a.color,
69
+ lineStyle = _a.lineStyle,
70
+ _b = _a.fill,
71
+ fill = _b === void 0 ? 'none' : _b,
72
+ _c = _a.closed,
73
+ closed_1 = _c === void 0 ? false : _c,
74
+ _d = _a.curved,
75
+ curved = _d === void 0 ? false : _d;
76
+ if (!color) {
77
+ return "continue";
78
+ }
79
+ var key = color + ":" + width + ":" + lineStyle + ":" + fill + ":" + closed_1 + ":" + curved;
80
+ var linePoints = linesPointById[key] || [];
81
+ var points = itemModel.get('points');
82
+ var itemPoints = [];
83
+ each(points, function (item) {
84
+ var point = coordSys.dataToPoint(item);
85
+ itemPoints.push(point);
86
+ });
87
+ linePoints.push(itemPoints);
88
+ linesPointById[key] = linePoints;
89
+ };
90
+ for (var i = params.start; i < params.end; i++) {
91
+ _loop_1(i);
92
+ }
93
+ data.setLayout({
94
+ linesPointById: linesPointById
95
+ });
96
+ }
97
+ };
98
+ }
99
+ };
100
+ export default MinePolyLinesLayout;
@@ -0,0 +1,123 @@
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 Uint32Array, Float64Array, Float32Array */
46
+ import SeriesModel from '../../model/Series.js';
47
+ import createSeriesData from '../helper/createSeriesData.js';
48
+ import * as zrUtil from 'tvrender/lib/core/util.js';
49
+ var MinePolyLinesSeriesModel = /** @class */function (_super) {
50
+ __extends(MinePolyLinesSeriesModel, _super);
51
+ function MinePolyLinesSeriesModel() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+ _this.type = MinePolyLinesSeriesModel.type;
54
+ _this.xFilterMode = 'weakFilter';
55
+ _this.dataIndexById = {};
56
+ return _this;
57
+ }
58
+ MinePolyLinesSeriesModel.prototype.getInitialData = function (option) {
59
+ if (process.env.NODE_ENV !== 'production') {
60
+ var coordSys = option.coordinateSystem;
61
+ if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {
62
+ throw new Error('MinePolyLines not support coordinateSystem besides cartesian and polar');
63
+ }
64
+ }
65
+ this.computedDataIndexById(option);
66
+ return createSeriesData(null, this, {
67
+ useEncodeDefaulter: true
68
+ });
69
+ };
70
+ MinePolyLinesSeriesModel.prototype.getZLevelKey = function () {
71
+ // Each progressive series has individual key.
72
+ return this.getData().count() > this.getProgressiveThreshold() ? this.id : '';
73
+ };
74
+ MinePolyLinesSeriesModel.prototype.computedDataIndexById = function (option) {
75
+ var dataIndexById = {};
76
+ zrUtil.each(option.data, function (item, index) {
77
+ dataIndexById[item.id] = index;
78
+ });
79
+ this.dataIndexById = dataIndexById;
80
+ };
81
+ MinePolyLinesSeriesModel.prototype.getResetData = function (data) {
82
+ var dataIndexById = this.dataIndexById;
83
+ var that = this;
84
+ zrUtil.each(data, function (item) {
85
+ var index = dataIndexById[item.id];
86
+ if (typeof index === 'number') {
87
+ that.option.data[index] = item;
88
+ } else {
89
+ that.option.data.push(item);
90
+ }
91
+ });
92
+ this.option.data = this.option.data.filter(function (item) {
93
+ return !item.isDelete;
94
+ }).slice(-this.option.limit);
95
+ this.computedDataIndexById(this.option);
96
+ return this.option.data;
97
+ };
98
+ MinePolyLinesSeriesModel.type = 'series.minePolyLines';
99
+ MinePolyLinesSeriesModel.dependencies = ['grid', 'polar'];
100
+ MinePolyLinesSeriesModel.defaultOption = {
101
+ coordinateSystem: 'cartesian2d',
102
+ // zlevel: 0,
103
+ z: 2,
104
+ z2: 0,
105
+ legendHoverLink: true,
106
+ // Cartesian coordinate system
107
+ xAxisIndex: 0,
108
+ yAxisIndex: 0,
109
+ dimensions: ['x1', 'x2', 'y1', 'y2'],
110
+ encode: {
111
+ x: ['x1', 'x2'],
112
+ y: ['y1', 'y2']
113
+ },
114
+ large: true,
115
+ // Available when large is true
116
+ largeThreshold: 600,
117
+ clip: true,
118
+ statusLineInvisible: true,
119
+ limit: 50
120
+ };
121
+ return MinePolyLinesSeriesModel;
122
+ }(SeriesModel);
123
+ export default MinePolyLinesSeriesModel;
@@ -0,0 +1,131 @@
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 * as graphic from '../../util/graphic.js';
46
+ import { createClipPath } from '../helper/createClipPathFromCoordSys.js';
47
+ import ChartView from '../../view/Chart.js';
48
+ import { each } from 'tvrender/lib/core/util.js';
49
+ import PolyLinesPath from './PolyLinesPath.js';
50
+ function getLineDashByLineStyle(lineStyle) {
51
+ if (lineStyle === 'style_dashed') {
52
+ return [8, 8];
53
+ } else if (lineStyle === 'style_dotted') {
54
+ return [4, 4];
55
+ }
56
+ return 'solid';
57
+ }
58
+ var MinePolyLinesView = /** @class */function (_super) {
59
+ __extends(MinePolyLinesView, _super);
60
+ function MinePolyLinesView() {
61
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62
+ _this.type = MinePolyLinesView.type;
63
+ return _this;
64
+ }
65
+ MinePolyLinesView.prototype.init = function () {};
66
+ MinePolyLinesView.prototype.render = function (seriesModel, ecModel, api) {
67
+ var data = seriesModel.getData();
68
+ this._renderLines(data, seriesModel, api);
69
+ var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
70
+ if (clipPath) {
71
+ this.group.setClipPath(clipPath);
72
+ } else {
73
+ this.group.removeClipPath();
74
+ }
75
+ };
76
+ MinePolyLinesView.prototype._getClipShape = function (seriesModel) {
77
+ if (!seriesModel.get('clip', true)) {
78
+ return;
79
+ }
80
+ var coordSys = seriesModel.coordinateSystem;
81
+ // PENDING make `0.1` configurable, for example, `clipTolerance`?
82
+ return coordSys && coordSys.getArea && coordSys.getArea(.1);
83
+ };
84
+ MinePolyLinesView.prototype._renderLines = function (data, seriesModel, api) {
85
+ if (!this._linesGroup) {
86
+ this._linesGroup = new graphic.Group();
87
+ this.group.add(this._linesGroup);
88
+ } else {
89
+ this._linesGroup.removeAll();
90
+ }
91
+ var linesGroup = this._linesGroup;
92
+ var z2 = seriesModel.get('z2');
93
+ var linesPointById = data.getLayout('linesPointById');
94
+ each(linesPointById, function (item, key) {
95
+ var _a = key.split(':'),
96
+ color = _a[0],
97
+ width = _a[1],
98
+ lineStyle = _a[2],
99
+ fill = _a[3],
100
+ closed = _a[4],
101
+ curved = _a[5];
102
+ var el = new PolyLinesPath({
103
+ shape: {
104
+ points: item,
105
+ closed: closed === 'true',
106
+ curved: curved === 'true'
107
+ },
108
+ style: {
109
+ fill: fill,
110
+ stroke: color,
111
+ lineWidth: +width,
112
+ lineDash: getLineDashByLineStyle(lineStyle)
113
+ },
114
+ z2: z2
115
+ });
116
+ linesGroup.add(el);
117
+ });
118
+ };
119
+ MinePolyLinesView.prototype.remove = function (ecModel, api) {
120
+ this._linesGroup && this._linesGroup.removeAll();
121
+ this._linesGroup = null;
122
+ };
123
+ MinePolyLinesView.prototype.dispose = function (ecModel, api) {
124
+ this.remove(ecModel, api);
125
+ // this._lineGroup.removeAll();
126
+ };
127
+
128
+ MinePolyLinesView.type = 'minePolyLines';
129
+ return MinePolyLinesView;
130
+ }(ChartView);
131
+ export default MinePolyLinesView;
@@ -0,0 +1,90 @@
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
+ import smoothBezier from 'tvrender/lib/graphic/helper/smoothBezier.js';
49
+ // const BOOST_SIZE_THRESHOLD = 4;
50
+ var PolyLinesPathShape = /** @class */function () {
51
+ function PolyLinesPathShape() {}
52
+ return PolyLinesPathShape;
53
+ }();
54
+ var PolyLinesPath = /** @class */function (_super) {
55
+ __extends(PolyLinesPath, _super);
56
+ // private _ctx: CanvasRenderingContext2D;
57
+ function PolyLinesPath(opts) {
58
+ return _super.call(this, opts) || this;
59
+ }
60
+ PolyLinesPath.prototype.getDefaultShape = function () {
61
+ return new PolyLinesPathShape();
62
+ };
63
+ PolyLinesPath.prototype.buildPath = function (ctx, shape) {
64
+ var points = shape.points,
65
+ closed = shape.closed,
66
+ curved = shape.curved;
67
+ for (var index = 0; index < points.length; index++) {
68
+ var polyPoints = points[index];
69
+ if (curved) {
70
+ var controlPoints = smoothBezier(polyPoints, 0.8, closed);
71
+ ctx.moveTo(polyPoints[0][0], polyPoints[0][1]);
72
+ var len = polyPoints.length;
73
+ for (var i = 0; i < (closed ? len : len - 1); i++) {
74
+ var cp1 = controlPoints[i * 2];
75
+ var cp2 = controlPoints[i * 2 + 1];
76
+ var p = polyPoints[(i + 1) % len];
77
+ ctx.bezierCurveTo(cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]);
78
+ }
79
+ } else {
80
+ ctx.moveTo(polyPoints[0][0], polyPoints[0][1]);
81
+ for (var i = 1, l = polyPoints.length; i < l; i++) {
82
+ ctx.lineTo(polyPoints[i][0], polyPoints[i][1]);
83
+ }
84
+ }
85
+ closed && ctx.closePath();
86
+ }
87
+ };
88
+ return PolyLinesPath;
89
+ }(graphic.Path);
90
+ export default PolyLinesPath;
@@ -0,0 +1,51 @@
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 MinePolyLinesView from './MinePolyLinesView.js';
45
+ import MineLinesSeriesModel from './MinePolyLinesSeries.js';
46
+ import MinePolyLinesLayout from './MinePolyLinesLayout.js';
47
+ export function install(registers) {
48
+ registers.registerChartView(MinePolyLinesView);
49
+ registers.registerSeriesModel(MineLinesSeriesModel);
50
+ registers.registerLayout(MinePolyLinesLayout);
51
+ }
@@ -246,8 +246,9 @@ export function fixValue(axisModel) {
246
246
  var option = axisPointerModel.option;
247
247
  var status = axisPointerModel.get('status');
248
248
  var value = axisPointerModel.get('value');
249
+ var isPercentage = scale.type === 'percentage';
249
250
  // Parse init value for category and time axis.
250
- if (value != null) {
251
+ if (value != null && !isPercentage) {
251
252
  value = scale.parse(value);
252
253
  }
253
254
  var useHandle = isHandleTrigger(axisPointerModel);
@@ -256,19 +257,21 @@ export function fixValue(axisModel) {
256
257
  if (status == null) {
257
258
  option.status = useHandle ? 'show' : 'hide';
258
259
  }
259
- var extent = scale.getExtent().slice();
260
- extent[0] > extent[1] && extent.reverse();
261
- if (
262
- // Pick a value on axis when initializing.
263
- value == null
264
- // If both `handle` and `dataZoom` are used, value may be out of axis extent,
265
- // where we should re-pick a value to keep `handle` displaying normally.
266
- || value > extent[1]) {
267
- // Make handle displayed on the end of the axis when init, which looks better.
268
- value = extent[1];
269
- }
270
- if (value < extent[0]) {
271
- value = extent[0];
260
+ if (!isPercentage) {
261
+ var extent = scale.getExtent().slice();
262
+ extent[0] > extent[1] && extent.reverse();
263
+ if (
264
+ // Pick a value on axis when initializing.
265
+ value == null
266
+ // If both `handle` and `dataZoom` are used, value may be out of axis extent,
267
+ // where we should re-pick a value to keep `handle` displaying normally.
268
+ || value > extent[1]) {
269
+ // Make handle displayed on the end of the axis when init, which looks better.
270
+ value = extent[1];
271
+ }
272
+ if (value < extent[0]) {
273
+ value = extent[0];
274
+ }
272
275
  }
273
276
  option.value = value;
274
277
  if (useHandle) {
@@ -369,7 +369,7 @@ var Grid = /** @class */function () {
369
369
  }, this);
370
370
  function unionExtent(data, axis) {
371
371
  var axisDims = getDataDimensionsOnAxis(data, axis.dim);
372
- var baseDim = axisDims.includes("close") ? 'close' : 'y';
372
+ var baseDim = axisDims.includes('close') ? 'close' : 'y';
373
373
  var baseValue = data.get(baseDim, 0);
374
374
  each(axisDims, function (dim) {
375
375
  axis.scale.unionExtentFromData(data, dim, baseValue);
@@ -66,6 +66,7 @@ export { install as LinesChart } from '../chart/lines/install.js';
66
66
  export { install as LinesPlotChart } from '../chart/linesPlot/install.js';
67
67
  export { install as StrategyChart } from '../chart/strategy/install.js';
68
68
  export { install as MineLinesChart } from '../chart/mineLines/install.js';
69
+ export { install as MinePolyLinesChart } from '../chart/minePolyLines/install.js';
69
70
  export { install as LineFillsChart } from '../chart/lineFills/install.js';
70
71
  export { install as BoxesChart } from '../chart/boxes/install.js';
71
72
  export { install as CharPlotChart } from '../chart/charPlot/install.js';
@@ -126,6 +126,7 @@ var BUILTIN_CHARTS_MAP = {
126
126
  linesPlot: 'LinesPlotChart',
127
127
  strategy: 'StrategyChart',
128
128
  mineLines: 'MineLinesChart',
129
+ minePolyLines: 'MinePolyLinesChart',
129
130
  lineFills: 'LineFillsChart',
130
131
  charPlot: 'CharPlotChart',
131
132
  boxes: 'BoxesChart',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.6.92",
3
+ "version": "0.6.94",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1 +1 @@
1
- export { install$25 as ArrowsPlotChart, install$1 as BarChart, install$24 as BarPlotChart, BarSeriesOption, install$29 as BgColorChart, install$21 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$23 as CandlePlotChart, install$14 as CandlestickChart, CandlestickSeriesOption, install$22 as CharPlotChart, install$34 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$28 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$27 as HLinesChart, install$30 as HeatmapChart, HeatmapSeriesOption, install$26 as LabelsChart, install as LineChart, install$20 as LineFillsChart, LineSeriesOption, install$16 as LinesChart, install$17 as LinesPlotChart, LinesPlotSeriesOption, LinesSeriesOption, install$5 as MapChart, MapSeriesOption, install$19 as MineLinesChart, install$11 as ParallelChart, ParallelSeriesOption, install$31 as PictorialBarChart, PictorialBarSeriesOption, install$2 as PieChart, PieSeriesOption, install$4 as RadarChart, RadarSeriesOption, install$12 as SankeyChart, SankeySeriesOption, install$3 as ScatterChart, ScatterSeriesOption, install$18 as StrategyChart, StrategySeriesOption, install$33 as SunburstChart, SunburstSeriesOption, install$32 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption } from './shared';
1
+ export { install$26 as ArrowsPlotChart, install$1 as BarChart, install$25 as BarPlotChart, BarSeriesOption, install$30 as BgColorChart, install$22 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$24 as CandlePlotChart, install$14 as CandlestickChart, CandlestickSeriesOption, install$23 as CharPlotChart, install$35 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$29 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$28 as HLinesChart, install$31 as HeatmapChart, HeatmapSeriesOption, install$27 as LabelsChart, install as LineChart, install$21 as LineFillsChart, LineSeriesOption, install$16 as LinesChart, install$17 as LinesPlotChart, LinesPlotSeriesOption, LinesSeriesOption, install$5 as MapChart, MapSeriesOption, install$19 as MineLinesChart, install$20 as MinePolyLinesChart, install$11 as ParallelChart, ParallelSeriesOption, install$32 as PictorialBarChart, PictorialBarSeriesOption, install$2 as PieChart, PieSeriesOption, install$4 as RadarChart, RadarSeriesOption, install$12 as SankeyChart, SankeySeriesOption, install$3 as ScatterChart, ScatterSeriesOption, install$18 as StrategyChart, StrategySeriesOption, install$34 as SunburstChart, SunburstSeriesOption, install$33 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption } from './shared';
@@ -1 +1 @@
1
- export { install$66 as AriaComponent, AriaOption as AriaComponentOption, install$46 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$50 as BgRectComponent, install$47 as BrushComponent, BrushOption as BrushComponentOption, install$42 as CalendarComponent, CalendarOption as CalendarComponentOption, install$60 as DataZoomComponent, DataZoomComponentOption, install$61 as DataZoomInsideComponent, install$62 as DataZoomSliderComponent, install$68 as DatasetComponent, DatasetOption as DatasetComponentOption, install$39 as GeoComponent, GeoOption as GeoComponentOption, install$43 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$36 as GridComponent, GridOption as GridComponentOption, install$35 as GridSimpleComponent, install$57 as LegendComponent, LegendComponentOption, install$59 as LegendPlainComponent, install$58 as LegendScrollComponent, install$51 as LogoComponent, install$55 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$56 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$54 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$53 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$41 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$37 as PolarComponent, PolarOption as PolarComponentOption, install$38 as RadarComponent, RadarOption as RadarComponentOption, install$40 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$49 as TableComponent, install$52 as TimelineComponent, TimelineOption as TimelineComponentOption, install$48 as TitleComponent, TitleOption as TitleComponentOption, install$44 as ToolboxComponent, ToolboxComponentOption, install$45 as TooltipComponent, TooltipOption as TooltipComponentOption, install$67 as TransformComponent, install$63 as VisualMapComponent, VisualMapComponentOption, install$64 as VisualMapContinuousComponent, install$65 as VisualMapPiecewiseComponent } from './shared';
1
+ export { install$67 as AriaComponent, AriaOption as AriaComponentOption, install$47 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$51 as BgRectComponent, install$48 as BrushComponent, BrushOption as BrushComponentOption, install$43 as CalendarComponent, CalendarOption as CalendarComponentOption, install$61 as DataZoomComponent, DataZoomComponentOption, install$62 as DataZoomInsideComponent, install$63 as DataZoomSliderComponent, install$69 as DatasetComponent, DatasetOption as DatasetComponentOption, install$40 as GeoComponent, GeoOption as GeoComponentOption, install$44 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$37 as GridComponent, GridOption as GridComponentOption, install$36 as GridSimpleComponent, install$58 as LegendComponent, LegendComponentOption, install$60 as LegendPlainComponent, install$59 as LegendScrollComponent, install$52 as LogoComponent, install$56 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$57 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$55 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$54 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$42 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$38 as PolarComponent, PolarOption as PolarComponentOption, install$39 as RadarComponent, RadarOption as RadarComponentOption, install$41 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$50 as TableComponent, install$53 as TimelineComponent, TimelineOption as TimelineComponentOption, install$49 as TitleComponent, TitleOption as TitleComponentOption, install$45 as ToolboxComponent, ToolboxComponentOption, install$46 as TooltipComponent, TooltipOption as TooltipComponentOption, install$68 as TransformComponent, install$64 as VisualMapComponent, VisualMapComponentOption, install$65 as VisualMapContinuousComponent, install$66 as VisualMapPiecewiseComponent } from './shared';
@@ -1 +1 @@
1
- export { install$70 as CanvasRenderer, install$69 as SVGRenderer } from './shared';
1
+ export { install$71 as CanvasRenderer, install$70 as SVGRenderer } from './shared';
@@ -9235,6 +9235,8 @@ declare function install$y(registers: EChartsExtensionInstallRegisters): void;
9235
9235
 
9236
9236
  declare function install$z(registers: EChartsExtensionInstallRegisters): void;
9237
9237
 
9238
+ declare function install$A(registers: EChartsExtensionInstallRegisters): void;
9239
+
9238
9240
  interface RadarIndicatorOption {
9239
9241
  name?: string;
9240
9242
  /**
@@ -9467,7 +9469,7 @@ interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptio
9467
9469
  */
9468
9470
  borderRadius?: number | number[];
9469
9471
  }
9470
- declare function install$A(registers: EChartsExtensionInstallRegisters): void;
9472
+ declare function install$B(registers: EChartsExtensionInstallRegisters): void;
9471
9473
 
9472
9474
  interface TimelineControlStyle extends ItemStyleOption {
9473
9475
  show?: boolean;
@@ -11468,8 +11470,6 @@ interface EChartsOption extends ECBasicOption {
11468
11470
  baseOption?: EChartsOption;
11469
11471
  }
11470
11472
 
11471
- declare function install$B(registers: EChartsExtensionInstallRegisters): void;
11472
-
11473
11473
  declare function install$C(registers: EChartsExtensionInstallRegisters): void;
11474
11474
 
11475
11475
  declare function install$D(registers: EChartsExtensionInstallRegisters): void;
@@ -11536,8 +11536,10 @@ declare function install$15(registers: EChartsExtensionInstallRegisters): void;
11536
11536
 
11537
11537
  declare function install$16(registers: EChartsExtensionInstallRegisters): void;
11538
11538
 
11539
+ declare function install$17(registers: EChartsExtensionInstallRegisters): void;
11540
+
11539
11541
  declare function installUniversalTransition(registers: EChartsExtensionInstallRegisters): void;
11540
11542
 
11541
11543
  declare function installLabelLayout(registers: EChartsExtensionInstallRegisters): void;
11542
11544
 
11543
- 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, color_d, connect, connectLayouts, dataTool, dependencies, disConnect, disconnect, 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$B as install$35, install$C as install$36, install$D as install$37, install$E as install$38, install$F as install$39, install$5 as install$4, install$G as install$40, install$H as install$41, install$I as install$42, install$J as install$43, install$K as install$44, install$L as install$45, install$M as install$46, install$N as install$47, install$A as install$48, install$O as install$49, install$6 as install$5, install$P as install$50, install$Q as install$51, install$R as install$52, install$S as install$53, install$T as install$54, install$U as install$55, install$V as install$56, install$W 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 as install$68, install$15 as install$69, install$8 as install$7, install$16 as install$70, install$9 as install$8, 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 };
11545
+ 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, color_d, connect, connectLayouts, dataTool, dependencies, disConnect, disconnect, 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$C as install$36, install$D as install$37, install$E as install$38, install$F as install$39, install$5 as install$4, install$G as install$40, install$H as install$41, install$I as install$42, install$J 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$B as install$49, install$6 as install$5, install$P as install$50, install$Q as install$51, install$R as install$52, install$S as install$53, install$T as install$54, install$U as install$55, install$V as install$56, install$W 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 as install$69, install$8 as install$7, install$16 as install$70, install$17 as install$71, install$9 as install$8, 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 };
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * Line path for bezier and straight line draw
3
3
  */
4
- import * as graphic from "../../util/graphic.js";
5
- import { PathProps } from "tvrender/lib/graphic/Path.js";
4
+ import * as graphic from '../../util/graphic.js';
5
+ import { PathProps } from 'tvrender/lib/graphic/Path.js';
6
6
  declare class BgColorShape {
7
7
  points: {
8
8
  x: number;
9
9
  y: number;
10
- width: number;
11
- height: number;
12
10
  }[];
13
11
  isLine: boolean;
12
+ width: number;
13
+ height: number;
14
14
  }
15
15
  interface BgColorProps extends PathProps {
16
16
  shape: BgColorShape;
@@ -1,8 +1,8 @@
1
- import ChartView from "../../view/Chart.js";
2
- import HLinesSeriesModel from "./BgColorSeries.js";
3
- import type GlobalModel from "../../model/Global.js";
4
- import type ExtensionAPI from "../../core/ExtensionAPI.js";
5
- import Element from "tvrender/lib/Element.js";
1
+ import ChartView from '../../view/Chart.js';
2
+ import HLinesSeriesModel from './BgColorSeries.js';
3
+ import type GlobalModel from '../../model/Global.js';
4
+ import type ExtensionAPI from '../../core/ExtensionAPI.js';
5
+ import Element from 'tvrender/lib/Element.js';
6
6
  declare class BgColorView extends ChartView {
7
7
  static readonly type = "bgcolor";
8
8
  readonly type = "bgcolor";
@@ -0,0 +1,3 @@
1
+ import { StageHandler } from '../../util/types.js';
2
+ declare const MinePolyLinesLayout: StageHandler;
3
+ export default MinePolyLinesLayout;
@@ -0,0 +1,53 @@
1
+ import SeriesModel from '../../model/Series.js';
2
+ import SeriesData from '../../data/SeriesData.js';
3
+ import { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin, LineStyleOption, OptionDataValue, StatesOptionMixin, DefaultStatesMixinEmphasis, SeriesEncodeOptionMixin } from '../../util/types.js';
4
+ declare type LinesValue = OptionDataValue | OptionDataValue[];
5
+ interface LinesStatesMixin {
6
+ emphasis?: DefaultStatesMixinEmphasis;
7
+ }
8
+ export declare type ILineStyle = 'style_dashed' | 'style_dotted' | 'style_solid';
9
+ export interface LinesStateOption {
10
+ id: string;
11
+ itemStyle?: {
12
+ color?: string;
13
+ lineStyle: ILineStyle;
14
+ width: number;
15
+ fill?: string;
16
+ closed?: boolean;
17
+ curved?: boolean;
18
+ };
19
+ points: [number, number][];
20
+ }
21
+ export interface MinePolyLinesDataItemOption extends LinesStateOption, StatesOptionMixin<LinesStateOption, LinesStatesMixin & {
22
+ emphasis?: {
23
+ lineStyle?: Omit<LineStyleOption, 'width'> & {
24
+ width?: LineStyleOption['width'] | 'bolder';
25
+ };
26
+ };
27
+ }> {
28
+ name?: string;
29
+ value?: LinesValue;
30
+ }
31
+ export interface MinePolyLinesSeriesOption extends SeriesOption<LinesStateOption, LinesStatesMixin>, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesEncodeOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {
32
+ type?: 'minePolyLines';
33
+ coordinateSystem?: string;
34
+ clip?: boolean;
35
+ data?: MinePolyLinesDataItemOption[];
36
+ offset?: number;
37
+ format?: (value: string) => string;
38
+ z2?: number;
39
+ limit?: number;
40
+ }
41
+ declare class MinePolyLinesSeriesModel extends SeriesModel<MinePolyLinesSeriesOption> {
42
+ static readonly type = "series.minePolyLines";
43
+ readonly type = "series.minePolyLines";
44
+ xFilterMode: "weakFilter";
45
+ static readonly dependencies: string[];
46
+ dataIndexById: Record<string, number>;
47
+ getInitialData(option: MinePolyLinesSeriesOption): SeriesData;
48
+ getZLevelKey(): string;
49
+ computedDataIndexById(option: MinePolyLinesSeriesOption): void;
50
+ getResetData(data: ArrayLike<any>): ArrayLike<any>;
51
+ static defaultOption: MinePolyLinesSeriesOption;
52
+ }
53
+ export default MinePolyLinesSeriesModel;
@@ -0,0 +1,17 @@
1
+ import ChartView from '../../view/Chart.js';
2
+ import MinePolyLinesSeriesModel from './MinePolyLinesSeries.js';
3
+ import GlobalModel from '../../model/Global.js';
4
+ import ExtensionAPI from '../../core/ExtensionAPI.js';
5
+ import SeriesData from '../../data/SeriesData.js';
6
+ declare class MinePolyLinesView extends ChartView {
7
+ static readonly type = "minePolyLines";
8
+ readonly type = "minePolyLines";
9
+ private _linesGroup;
10
+ init(): void;
11
+ render(seriesModel: MinePolyLinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;
12
+ _getClipShape(seriesModel: MinePolyLinesSeriesModel): import("../../coord/CoordinateSystem").CoordinateSystemClipArea;
13
+ _renderLines(data: SeriesData, seriesModel: MinePolyLinesSeriesModel, api: ExtensionAPI): void;
14
+ remove(ecModel: GlobalModel, api: ExtensionAPI): void;
15
+ dispose(ecModel: GlobalModel, api: ExtensionAPI): void;
16
+ }
17
+ export default MinePolyLinesView;
@@ -0,0 +1,18 @@
1
+ import * as graphic from '../../util/graphic.js';
2
+ import { PathProps } from 'tvrender/lib/graphic/Path.js';
3
+ import PathProxy from 'tvrender/lib/core/PathProxy.js';
4
+ declare class PolyLinesPathShape {
5
+ points: number[][][];
6
+ closed: boolean;
7
+ curved: boolean;
8
+ }
9
+ declare type PolyLinesPathProps = PathProps & {
10
+ shape?: Partial<PolyLinesPathShape>;
11
+ };
12
+ declare class PolyLinesPath extends graphic.Path<PolyLinesPathProps> {
13
+ shape: PolyLinesPathShape;
14
+ constructor(opts?: PolyLinesPathProps);
15
+ getDefaultShape(): PolyLinesPathShape;
16
+ buildPath(ctx: PathProxy, shape: PolyLinesPathShape): void;
17
+ }
18
+ export default PolyLinesPath;
@@ -0,0 +1,2 @@
1
+ import { EChartsExtensionInstallRegisters } from '../../extension.js';
2
+ export declare function install(registers: EChartsExtensionInstallRegisters): void;
@@ -18,6 +18,7 @@ export { install as LinesChart } from '../chart/lines/install.js';
18
18
  export { install as LinesPlotChart } from '../chart/linesPlot/install.js';
19
19
  export { install as StrategyChart } from '../chart/strategy/install.js';
20
20
  export { install as MineLinesChart } from '../chart/mineLines/install.js';
21
+ export { install as MinePolyLinesChart } from '../chart/minePolyLines/install.js';
21
22
  export { install as LineFillsChart } from '../chart/lineFills/install.js';
22
23
  export { install as BoxesChart } from '../chart/boxes/install.js';
23
24
  export { install as CharPlotChart } from '../chart/charPlot/install.js';