tvcharts 0.6.62 → 0.6.63

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, 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, LineFillsChart, CharPlotChart, BoxesChart, LabelsChart, HLinesChart, ArrowsPlotChart, 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, 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, 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, LineFillsChart, BoxesChart, LabelsChart, ArrowsPlotChart, HLinesChart, BgColorChart, FillsChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]);
76
76
  // -------------------
77
77
  // Coordinate systems
78
78
  // -------------------
@@ -0,0 +1,124 @@
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 * as graphic from '../../util/graphic.js';
47
+ import { createSymbol } from '../../util/symbol.js';
48
+ import { each } from 'tvrender/lib/core/util.js';
49
+ import ArrowSymbolPath from './ArrowSymbolPath.js';
50
+ var ArrowsPlotView = /** @class */function (_super) {
51
+ __extends(ArrowsPlotView, _super);
52
+ function ArrowsPlotView() {
53
+ var _this = _super !== null && _super.apply(this, arguments) || this;
54
+ _this.type = ArrowsPlotView.type;
55
+ return _this;
56
+ }
57
+ ArrowsPlotView.prototype.render = function (seriesModel, ecModel, api) {
58
+ var data = seriesModel.getData();
59
+ this._renderArrows(data, seriesModel);
60
+ this._finished = true;
61
+ };
62
+ ArrowsPlotView.prototype._renderArrows = function (data, seriesModel) {
63
+ if (!this._symbolGroup) {
64
+ this._symbolGroup = new graphic.Group();
65
+ this.group.add(this._symbolGroup);
66
+ } else {
67
+ this._symbolGroup.removeAll();
68
+ }
69
+ var symbolGroup = this._symbolGroup;
70
+ var bandWidth = seriesModel.coordinateSystem.getAxesByScale('ordinal')[0].scale.barSpace;
71
+ var maxheight = seriesModel.get('maxheight');
72
+ var minheight = seriesModel.get('minheight');
73
+ var upArrowsByColor = data.getLayout('upArrowsByColor');
74
+ var maxValue = data.getLayout('maxValue');
75
+ each(upArrowsByColor, function (item, color) {
76
+ var el = new ArrowSymbolPath({
77
+ shape: {
78
+ points: item,
79
+ barWidth: bandWidth,
80
+ minHeight: minheight,
81
+ valueLength: maxheight / maxValue
82
+ },
83
+ style: {
84
+ fill: color
85
+ }
86
+ });
87
+ el.symbolProxy = createSymbol('arrowUp', 0, 0, 0, 0);
88
+ symbolGroup.add(el);
89
+ });
90
+ var downArrowsByColor = data.getLayout('downArrowsByColor');
91
+ var minValue = data.getLayout('minValue');
92
+ each(downArrowsByColor, function (item, color) {
93
+ var el = new ArrowSymbolPath({
94
+ shape: {
95
+ points: item,
96
+ barWidth: bandWidth,
97
+ minHeight: minheight,
98
+ valueLength: maxheight / minValue
99
+ },
100
+ style: {
101
+ fill: color
102
+ }
103
+ });
104
+ el.symbolProxy = createSymbol('arrowDown', 0, 0, 0, 0);
105
+ symbolGroup.add(el);
106
+ });
107
+ };
108
+ ArrowsPlotView.prototype._getClipShape = function (seriesModel) {
109
+ if (!seriesModel.get('clip', true)) {
110
+ return;
111
+ }
112
+ var coordSys = seriesModel.coordinateSystem;
113
+ // PENDING make `0.1` configurable, for example, `clipTolerance`?
114
+ return coordSys && coordSys.getArea && coordSys.getArea(.1);
115
+ };
116
+ ArrowsPlotView.prototype.remove = function (ecModel, api) {
117
+ this._symbolGroup && this._symbolGroup.removeAll();
118
+ this._symbolGroup = null;
119
+ };
120
+ ArrowsPlotView.prototype.dispose = function () {};
121
+ ArrowsPlotView.type = 'arrowsPlot';
122
+ return ArrowsPlotView;
123
+ }(ChartView);
124
+ export default ArrowsPlotView;
@@ -0,0 +1,70 @@
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
+ import { __extends } from "tslib";
27
+ import * as graphic from '../../util/graphic.js';
28
+ var ArrowSymbolPathShape = /** @class */function () {
29
+ function ArrowSymbolPathShape() {}
30
+ return ArrowSymbolPathShape;
31
+ }();
32
+ var ArrowSymbolPath = /** @class */function (_super) {
33
+ __extends(ArrowSymbolPath, _super);
34
+ // private _ctx: CanvasRenderingContext2D;
35
+ function ArrowSymbolPath(opts) {
36
+ return _super.call(this, opts) || this;
37
+ }
38
+ ArrowSymbolPath.prototype.getDefaultShape = function () {
39
+ return new ArrowSymbolPathShape();
40
+ };
41
+ ArrowSymbolPath.prototype.buildPath = function (path, shape) {
42
+ var points = shape.points,
43
+ barWidth = shape.barWidth,
44
+ valueLength = shape.valueLength,
45
+ minHeight = shape.minHeight;
46
+ var symbolProxy = this.symbolProxy;
47
+ var symbolProxyShape = symbolProxy.shape;
48
+ var isUp = symbolProxyShape.symbolType === 'arrowUp';
49
+ var w = barWidth * 0.7;
50
+ // const rectHeight = Math.max(Math.floor((28 - w) / 3), 0);
51
+ var triangleWidth = Math.floor(w * 0.3);
52
+ var triangleHeight = w / 2;
53
+ for (var i = 0; i < points.length; i++) {
54
+ var _a = points[i],
55
+ x = _a.x,
56
+ y = _a.y,
57
+ value = _a.value;
58
+ var height = Math.max(Math.round(value * valueLength), minHeight, triangleHeight);
59
+ symbolProxyShape.x = x;
60
+ symbolProxyShape.y = y + (isUp ? height / 2 + 10 : -height / 2 - 10);
61
+ symbolProxyShape.width = w;
62
+ symbolProxyShape.height = height;
63
+ symbolProxyShape.triangleWidth = triangleWidth;
64
+ symbolProxyShape.triangleHeight = triangleHeight;
65
+ symbolProxy.buildPath(path, symbolProxyShape, true);
66
+ }
67
+ };
68
+ return ArrowSymbolPath;
69
+ }(graphic.Path);
70
+ export default ArrowSymbolPath;
@@ -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
+ /* global Float32Array */
45
+ import createRenderPlanner from '../helper/createRenderPlanner.js';
46
+ import { map } from 'tvrender/lib/core/util.js';
47
+ var ArrowsPlotLayout = {
48
+ seriesType: 'arrowsPlot',
49
+ plan: createRenderPlanner(),
50
+ reset: function (seriesModel) {
51
+ var data = seriesModel.getData();
52
+ var coordSys = seriesModel.coordinateSystem;
53
+ // const pipelineContext = seriesModel.pipelineContext;
54
+ if (!coordSys) {
55
+ return;
56
+ }
57
+ // const bandWidth = coordSys.getAxesByScale('ordinal')[0].scale.barSpace;
58
+ var dims = map(coordSys.dimensions, function (dim) {
59
+ return data.mapDimension(dim);
60
+ }).slice(0, 2);
61
+ // const dimLen = dims.length;
62
+ var store = data.getStore();
63
+ var dimIdx0 = data.getDimensionIndex(dims[0]);
64
+ var dimIdx1 = data.getDimensionIndex(dims[1]);
65
+ var xOffset = seriesModel.get('offset') || 0;
66
+ var showLast = seriesModel.get('showLast');
67
+ return {
68
+ progress: function (params, arrowsPlotData) {
69
+ var upArrowsByColor = {};
70
+ var downArrowsByColor = {};
71
+ var maxValue = 0;
72
+ var minValue = 0;
73
+ var lastIndex = data.count(true) - 1;
74
+ var tmpIn = [];
75
+ for (var i = params.start; i < params.end; i++) {
76
+ if (showLast && lastIndex - data.getRawIndex(i) >= showLast) {
77
+ continue;
78
+ }
79
+ tmpIn[0] = store.get(dimIdx0, i) + xOffset;
80
+ tmpIn[1] = store.get(dimIdx1, i);
81
+ if (isNaN(tmpIn[1])) {
82
+ continue;
83
+ }
84
+ var itemModel = data.getItemModel(i);
85
+ var _a = itemModel.get('itemStyle'),
86
+ upColor = _a.upColor,
87
+ downColor = _a.downColor,
88
+ value = _a.value;
89
+ var point = coordSys.dataToPoint(tmpIn);
90
+ if (value > 0) {
91
+ var upArrows = upArrowsByColor[upColor] || [];
92
+ upArrows.push({
93
+ x: point[0],
94
+ y: point[1],
95
+ value: value
96
+ });
97
+ upArrowsByColor[upColor] = upArrows;
98
+ maxValue = Math.max(maxValue, value);
99
+ } else {
100
+ var downArrows = downArrowsByColor[downColor] || [];
101
+ downArrows.push({
102
+ x: point[0],
103
+ y: point[1],
104
+ value: value
105
+ });
106
+ downArrowsByColor[downColor] = downArrows;
107
+ minValue = Math.min(minValue, value);
108
+ }
109
+ downArrowsByColor[downColor];
110
+ }
111
+ arrowsPlotData.setLayout({
112
+ upArrowsByColor: upArrowsByColor,
113
+ downArrowsByColor: downArrowsByColor,
114
+ maxValue: maxValue,
115
+ minValue: minValue
116
+ });
117
+ // console.log('%c [ points ]-83', 'font-size:13px; background:pink; color:#bf2c9f;', points)
118
+ }
119
+ };
120
+ }
121
+ };
122
+
123
+ export default ArrowsPlotLayout;
@@ -0,0 +1,102 @@
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 ArrowsPlotSeriesModel = /** @class */function (_super) {
48
+ __extends(ArrowsPlotSeriesModel, _super);
49
+ function ArrowsPlotSeriesModel() {
50
+ var _this = _super !== null && _super.apply(this, arguments) || this;
51
+ _this.type = ArrowsPlotSeriesModel.type;
52
+ return _this;
53
+ }
54
+ // hasSymbolVisual = true;
55
+ ArrowsPlotSeriesModel.prototype.getInitialData = function (option, ecModel) {
56
+ return createSeriesData(null, this, {
57
+ useEncodeDefaulter: true
58
+ });
59
+ };
60
+ ArrowsPlotSeriesModel.prototype.getProgressive = function () {
61
+ var progressive = this.option.progressive;
62
+ if (progressive == null) {
63
+ // PENDING
64
+ return this.option.large ? 5e3 : this.get('progressive');
65
+ }
66
+ return progressive;
67
+ };
68
+ ArrowsPlotSeriesModel.prototype.getProgressiveThreshold = function () {
69
+ var progressiveThreshold = this.option.progressiveThreshold;
70
+ if (progressiveThreshold == null) {
71
+ // PENDING
72
+ return this.option.large ? 1e4 : this.get('progressiveThreshold');
73
+ }
74
+ return progressiveThreshold;
75
+ };
76
+ ArrowsPlotSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
77
+ return selectors.point(data.getItemLayout(dataIndex));
78
+ };
79
+ ArrowsPlotSeriesModel.prototype.getZLevelKey = function () {
80
+ // Each progressive series has individual key.
81
+ return this.getData().count() > this.getProgressiveThreshold() ? this.id : '';
82
+ };
83
+ ArrowsPlotSeriesModel.type = 'series.arrowsPlot';
84
+ ArrowsPlotSeriesModel.dependencies = ['grid', 'polar'];
85
+ ArrowsPlotSeriesModel.defaultOption = {
86
+ coordinateSystem: 'cartesian2d',
87
+ // zlevel: 0,
88
+ z: 2,
89
+ large: false,
90
+ // Available when large is true
91
+ largeThreshold: 2000,
92
+ // cursor: null,
93
+ emphasis: {
94
+ scale: true
95
+ },
96
+ // If clip the overflow graphics
97
+ // Works on cartesian / polar series
98
+ clip: true
99
+ };
100
+ return ArrowsPlotSeriesModel;
101
+ }(SeriesModel);
102
+ export default ArrowsPlotSeriesModel;
@@ -0,0 +1,53 @@
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 ArrowsPlotSeriesModel from './ArrowsPlotSeries.js';
45
+ import ArrowsPlotView from './ArrowPlotView.js';
46
+ // import layoutPoints from '../../layout/points.js';
47
+ import ArrowsPlotLayout from './ArrowsPlotLayout.js';
48
+ export function install(registers) {
49
+ // In case developer forget to include grid component
50
+ registers.registerSeriesModel(ArrowsPlotSeriesModel);
51
+ registers.registerChartView(ArrowsPlotView);
52
+ registers.registerLayout(ArrowsPlotLayout);
53
+ }
@@ -69,6 +69,7 @@ export { install as MineLinesChart } from '../chart/mineLines/install.js';
69
69
  export { install as LineFillsChart } from '../chart/lineFills/install.js';
70
70
  export { install as BoxesChart } from '../chart/boxes/install.js';
71
71
  export { install as CharPlotChart } from '../chart/charPlot/install.js';
72
+ export { install as ArrowsPlotChart } from '../chart/arrowsPlot/install.js';
72
73
  export { install as LabelsChart } from '../chart/labels/install.js';
73
74
  export { install as HLinesChart } from '../chart/hlines/install.js';
74
75
  export { install as FillsChart } from '../chart/fills/install.js';
@@ -130,6 +130,7 @@ var BUILTIN_CHARTS_MAP = {
130
130
  labels: 'LabelsChart',
131
131
  hlines: 'HLinesChart',
132
132
  fills: 'FillsChart',
133
+ arrowsPlot: 'ArrowsPlotChart',
133
134
  bgcolor: 'BgColorChart',
134
135
  heatmap: 'HeatmapChart',
135
136
  pictorialBar: 'PictorialBarChart',
@@ -605,7 +605,7 @@ export function getSeriesPointData(ecModel, payload) {
605
605
  if (fill) {
606
606
  color = fill;
607
607
  }
608
- } else if (['linesPlot', 'labels', 'charPlot'].includes(seriesModel.subType)) {
608
+ } else if (['linesPlot', 'labels', 'charPlot', 'arrowsPlot'].includes(seriesModel.subType)) {
609
609
  var isLinesPlot = seriesModel.subType === 'linesPlot';
610
610
  var dataItem = data.getItemModel(index, isRaw);
611
611
  var fill = dataItem.get([isLinesPlot ? 'lineStyle' : 'itemStyle', 'color']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.6.62",
3
+ "version": "0.6.63",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1 +1 @@
1
- export { install$1 as BarChart, BarSeriesOption, install$26 as BgColorChart, install$21 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$14 as CandlestickChart, CandlestickSeriesOption, install$22 as CharPlotChart, install$31 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$25 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$24 as HLinesChart, install$27 as HeatmapChart, HeatmapSeriesOption, install$23 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$28 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$30 as SunburstChart, SunburstSeriesOption, install$29 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption } from './shared';
1
+ export { install$23 as ArrowsPlotChart, install$1 as BarChart, BarSeriesOption, install$27 as BgColorChart, install$21 as BoxesChart, install$13 as BoxplotChart, BoxplotSeriesOption, install$14 as CandlestickChart, CandlestickSeriesOption, install$22 as CharPlotChart, install$32 as CustomChart, CustomSeriesOption, install$15 as EffectScatterChart, EffectScatterSeriesOption, install$26 as FillsChart, install$10 as FunnelChart, FunnelSeriesOption, install$9 as GaugeChart, GaugeSeriesOption, install$8 as GraphChart, GraphSeriesOption, install$25 as HLinesChart, install$28 as HeatmapChart, HeatmapSeriesOption, install$24 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$29 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$31 as SunburstChart, SunburstSeriesOption, install$30 as ThemeRiverChart, ThemeRiverSeriesOption, install$6 as TreeChart, TreeSeriesOption, install$7 as TreemapChart, TreemapSeriesOption } from './shared';
@@ -1 +1 @@
1
- export { install$61 as AriaComponent, AriaOption as AriaComponentOption, install$43 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$44 as BrushComponent, BrushOption as BrushComponentOption, install$39 as CalendarComponent, CalendarOption as CalendarComponentOption, install$55 as DataZoomComponent, DataZoomComponentOption, install$56 as DataZoomInsideComponent, install$57 as DataZoomSliderComponent, install$63 as DatasetComponent, DatasetOption as DatasetComponentOption, install$36 as GeoComponent, GeoOption as GeoComponentOption, install$40 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$33 as GridComponent, GridOption as GridComponentOption, install$32 as GridSimpleComponent, install$52 as LegendComponent, LegendComponentOption, install$54 as LegendPlainComponent, install$53 as LegendScrollComponent, install$50 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$51 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$49 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$48 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$38 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$34 as PolarComponent, PolarOption as PolarComponentOption, install$35 as RadarComponent, RadarOption as RadarComponentOption, install$37 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$46 as TableComponent, install$47 as TimelineComponent, TimelineOption as TimelineComponentOption, install$45 as TitleComponent, TitleOption as TitleComponentOption, install$41 as ToolboxComponent, ToolboxComponentOption, install$42 as TooltipComponent, TooltipOption as TooltipComponentOption, install$62 as TransformComponent, install$58 as VisualMapComponent, VisualMapComponentOption, install$59 as VisualMapContinuousComponent, install$60 as VisualMapPiecewiseComponent } from './shared';
1
+ export { install$62 as AriaComponent, AriaOption as AriaComponentOption, install$44 as AxisPointerComponent, AxisPointerOption as AxisPointerComponentOption, install$45 as BrushComponent, BrushOption as BrushComponentOption, install$40 as CalendarComponent, CalendarOption as CalendarComponentOption, install$56 as DataZoomComponent, DataZoomComponentOption, install$57 as DataZoomInsideComponent, install$58 as DataZoomSliderComponent, install$64 as DatasetComponent, DatasetOption as DatasetComponentOption, install$37 as GeoComponent, GeoOption as GeoComponentOption, install$41 as GraphicComponent, GraphicComponentLooseOption as GraphicComponentOption, install$34 as GridComponent, GridOption as GridComponentOption, install$33 as GridSimpleComponent, install$53 as LegendComponent, LegendComponentOption, install$55 as LegendPlainComponent, install$54 as LegendScrollComponent, install$51 as MarkAreaComponent, MarkAreaOption as MarkAreaComponentOption, install$52 as MarkLabelComponent, MarkLabelOption as MarkLabelComponentOption, install$50 as MarkLineComponent, MarkLineOption as MarkLineComponentOption, install$49 as MarkPointComponent, MarkPointOption as MarkPointComponentOption, install$39 as ParallelComponent, ParallelCoordinateSystemOption as ParallelComponentOption, install$35 as PolarComponent, PolarOption as PolarComponentOption, install$36 as RadarComponent, RadarOption as RadarComponentOption, install$38 as SingleAxisComponent, SingleAxisOption as SingleAxisComponentOption, install$47 as TableComponent, install$48 as TimelineComponent, TimelineOption as TimelineComponentOption, install$46 as TitleComponent, TitleOption as TitleComponentOption, install$42 as ToolboxComponent, ToolboxComponentOption, install$43 as TooltipComponent, TooltipOption as TooltipComponentOption, install$63 as TransformComponent, install$59 as VisualMapComponent, VisualMapComponentOption, install$60 as VisualMapContinuousComponent, install$61 as VisualMapPiecewiseComponent } from './shared';
@@ -1 +1 @@
1
- export { install$65 as CanvasRenderer, install$64 as SVGRenderer } from './shared';
1
+ export { install$66 as CanvasRenderer, install$65 as SVGRenderer } from './shared';
@@ -9161,6 +9161,8 @@ declare function install$v(registers: EChartsExtensionInstallRegisters): void;
9161
9161
 
9162
9162
  declare function install$w(registers: EChartsExtensionInstallRegisters): void;
9163
9163
 
9164
+ declare function install$x(registers: EChartsExtensionInstallRegisters): void;
9165
+
9164
9166
  interface RadarIndicatorOption {
9165
9167
  name?: string;
9166
9168
  /**
@@ -9393,7 +9395,7 @@ interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptio
9393
9395
  */
9394
9396
  borderRadius?: number | number[];
9395
9397
  }
9396
- declare function install$x(registers: EChartsExtensionInstallRegisters): void;
9398
+ declare function install$y(registers: EChartsExtensionInstallRegisters): void;
9397
9399
 
9398
9400
  interface TimelineControlStyle extends ItemStyleOption {
9399
9401
  show?: boolean;
@@ -11420,8 +11422,6 @@ interface EChartsOption extends ECBasicOption {
11420
11422
  baseOption?: EChartsOption;
11421
11423
  }
11422
11424
 
11423
- declare function install$y(registers: EChartsExtensionInstallRegisters): void;
11424
-
11425
11425
  declare function install$z(registers: EChartsExtensionInstallRegisters): void;
11426
11426
 
11427
11427
  declare function install$A(registers: EChartsExtensionInstallRegisters): void;
@@ -11484,8 +11484,10 @@ declare function install$10(registers: EChartsExtensionInstallRegisters): void;
11484
11484
 
11485
11485
  declare function install$11(registers: EChartsExtensionInstallRegisters): void;
11486
11486
 
11487
+ declare function install$12(registers: EChartsExtensionInstallRegisters): void;
11488
+
11487
11489
  declare function installUniversalTransition(registers: EChartsExtensionInstallRegisters): void;
11488
11490
 
11489
11491
  declare function installLabelLayout(registers: EChartsExtensionInstallRegisters): void;
11490
11492
 
11491
- 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, dataTool, dependencies, disConnect, disconnect, 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$y as install$32, install$z as install$33, install$A 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$x as install$45, install$L as install$46, install$M as install$47, install$N 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 as install$63, install$10 as install$64, install$11 as install$65, install$8 as install$7, 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 };
11493
+ 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, dataTool, dependencies, disConnect, disconnect, 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$z as install$33, install$A 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$y as install$46, install$M as install$47, install$N 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 as install$64, install$11 as install$65, install$12 as install$66, install$8 as install$7, 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 };
@@ -0,0 +1,21 @@
1
+ import SymbolDraw from '../helper/SymbolDraw.js';
2
+ import LargeSymbolDraw from '../helper/LargeSymbolDraw.js';
3
+ import ChartView from '../../view/Chart.js';
4
+ import ArrowsPlotModel from './ArrowsPlotSeries.js';
5
+ import GlobalModel from '../../model/Global.js';
6
+ import ExtensionAPI from '../../core/ExtensionAPI.js';
7
+ import SeriesData from '../../data/SeriesData.js';
8
+ declare class ArrowsPlotView extends ChartView {
9
+ static readonly type = "arrowsPlot";
10
+ type: string;
11
+ _finished: boolean;
12
+ _isLargeDraw: boolean;
13
+ _symbolDraw: SymbolDraw | LargeSymbolDraw;
14
+ private _symbolGroup;
15
+ render(seriesModel: ArrowsPlotModel, ecModel: GlobalModel, api: ExtensionAPI): void;
16
+ _renderArrows(data: SeriesData, seriesModel: ArrowsPlotModel): void;
17
+ _getClipShape(seriesModel: ArrowsPlotModel): import("../../coord/CoordinateSystem").CoordinateSystemClipArea;
18
+ remove(ecModel: GlobalModel, api: ExtensionAPI): void;
19
+ dispose(): void;
20
+ }
21
+ export default ArrowsPlotView;
@@ -0,0 +1,26 @@
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 ArrowSymbolPathShape {
6
+ points: {
7
+ x: number;
8
+ y: number;
9
+ value: number;
10
+ }[];
11
+ valueLength: number;
12
+ minHeight: number;
13
+ barWidth: number;
14
+ }
15
+ declare type ArrowSymbolPathProps = PathProps & {
16
+ shape?: Partial<ArrowSymbolPathShape>;
17
+ };
18
+ declare type ECSymbol = ReturnType<typeof createSymbol>;
19
+ declare class ArrowSymbolPath extends graphic.Path<ArrowSymbolPathProps> {
20
+ shape: ArrowSymbolPathShape;
21
+ symbolProxy: ECSymbol;
22
+ constructor(opts?: ArrowSymbolPathProps);
23
+ getDefaultShape(): ArrowSymbolPathShape;
24
+ buildPath(path: PathProxy, shape: ArrowSymbolPathShape): void;
25
+ }
26
+ export default ArrowSymbolPath;
@@ -0,0 +1,3 @@
1
+ import { StageHandler } from '../../util/types.js';
2
+ declare const ArrowsPlotLayout: StageHandler;
3
+ export default ArrowsPlotLayout;
@@ -0,0 +1,48 @@
1
+ import SeriesModel from '../../model/Series.js';
2
+ import { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, OptionDataValue, SeriesLargeOptionMixin, SeriesStackOptionMixin, SymbolOptionMixin, StatesOptionMixin, OptionDataItemObject, SeriesEncodeOptionMixin, CallbackDataParams, DefaultEmphasisFocus } from '../../util/types.js';
3
+ import GlobalModel from '../../model/Global.js';
4
+ import SeriesData from '../../data/SeriesData.js';
5
+ import { BrushCommonSelectorsForSeries } from '../../component/brush/selector.js';
6
+ interface ArrowsPlotStateOption {
7
+ showValue?: boolean | number;
8
+ maxheight?: number;
9
+ minheight?: number;
10
+ }
11
+ interface ArrowsPlotStatesOptionMixin {
12
+ emphasis?: {
13
+ focus?: DefaultEmphasisFocus;
14
+ scale?: boolean | number;
15
+ };
16
+ }
17
+ export interface IArrowType {
18
+ value: number;
19
+ x: number;
20
+ y: number;
21
+ }
22
+ export interface ArrowsPlotDataItemOption extends SymbolOptionMixin, ArrowsPlotStateOption, StatesOptionMixin<ArrowsPlotStateOption, ArrowsPlotStatesOptionMixin>, OptionDataItemObject<OptionDataValue> {
23
+ id: string;
24
+ itemStyle: {
25
+ upColor?: string;
26
+ downColor?: string;
27
+ value: number;
28
+ };
29
+ }
30
+ export interface ArrowsPlotSeriesOption extends SeriesOption<ArrowsPlotStateOption, ArrowsPlotStatesOptionMixin>, ArrowsPlotStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SeriesLargeOptionMixin, SeriesStackOptionMixin, SymbolOptionMixin<CallbackDataParams>, SeriesEncodeOptionMixin {
31
+ type?: 'arrowsPlot';
32
+ coordinateSystem?: string;
33
+ cursor?: string;
34
+ clip?: boolean;
35
+ data?: ArrowsPlotDataItemOption[];
36
+ }
37
+ declare class ArrowsPlotSeriesModel extends SeriesModel<ArrowsPlotSeriesOption> {
38
+ static readonly type = "series.arrowsPlot";
39
+ type: string;
40
+ static readonly dependencies: string[];
41
+ getInitialData(option: ArrowsPlotSeriesOption, ecModel: GlobalModel): SeriesData;
42
+ getProgressive(): number | false;
43
+ getProgressiveThreshold(): number;
44
+ brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean;
45
+ getZLevelKey(): string;
46
+ static defaultOption: ArrowsPlotSeriesOption;
47
+ }
48
+ export default ArrowsPlotSeriesModel;
@@ -0,0 +1,2 @@
1
+ import { EChartsExtensionInstallRegisters } from '../../extension.js';
2
+ export declare function install(registers: EChartsExtensionInstallRegisters): void;
@@ -21,6 +21,7 @@ export { install as MineLinesChart } from '../chart/mineLines/install.js';
21
21
  export { install as LineFillsChart } from '../chart/lineFills/install.js';
22
22
  export { install as BoxesChart } from '../chart/boxes/install.js';
23
23
  export { install as CharPlotChart } from '../chart/charPlot/install.js';
24
+ export { install as ArrowsPlotChart } from '../chart/arrowsPlot/install.js';
24
25
  export { install as LabelsChart } from '../chart/labels/install.js';
25
26
  export { install as HLinesChart } from '../chart/hlines/install.js';
26
27
  export { install as FillsChart } from '../chart/fills/install.js';