echarts 4.8.0 → 4.9.0
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/.DS_Store +0 -0
- package/.gitattributes +3 -0
- package/.github/workflows/nodejs.yml +3 -1
- package/.huskyrc +5 -0
- package/README.md +1 -1
- package/asset/.DS_Store +0 -0
- package/build/.DS_Store +0 -0
- package/dist/echarts-en.common.js +284 -93
- package/dist/echarts-en.common.min.js +1 -1
- package/dist/echarts-en.js +816 -284
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +1 -1
- package/dist/echarts-en.simple.js +60 -26
- package/dist/echarts-en.simple.min.js +1 -1
- package/dist/echarts.common.js +284 -93
- package/dist/echarts.common.min.js +1 -1
- package/dist/echarts.js +816 -284
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +1 -1
- package/dist/echarts.simple.js +60 -26
- package/dist/echarts.simple.min.js +1 -1
- package/dist/extension/bmap.js +33 -345
- package/dist/extension/bmap.js.map +1 -1
- package/dist/extension/bmap.min.js +1 -1
- package/dist/extension/dataTool.js.map +1 -1
- package/extension/.DS_Store +0 -0
- package/extension/bmap/BMapCoordSys.js +14 -4
- package/extension/bmap/BMapModel.js +4 -0
- package/extension/bmap/BMapView.js +18 -14
- package/extension-src/bmap/BMapCoordSys.js +14 -4
- package/extension-src/bmap/BMapModel.js +6 -1
- package/extension-src/bmap/BMapView.js +16 -10
- package/lib/chart/bar/BarView.js +49 -16
- package/lib/chart/bar/PictorialBarSeries.js +1 -1
- package/lib/chart/funnel/FunnelSeries.js +1 -0
- package/lib/chart/funnel/funnelLayout.js +162 -46
- package/lib/chart/graph/GraphSeries.js +12 -2
- package/lib/chart/graph/circularLayoutHelper.js +8 -2
- package/lib/chart/graph/forceLayout.js +6 -1
- package/lib/chart/graph/simpleLayout.js +1 -1
- package/lib/chart/graph/simpleLayoutHelper.js +10 -4
- package/lib/chart/helper/Line.js +35 -9
- package/lib/chart/helper/Symbol.js +1 -1
- package/lib/chart/helper/multipleGraphEdgeHelper.js +258 -0
- package/lib/chart/lines/LinesSeries.js +0 -2
- package/lib/chart/map/MapSeries.js +3 -2
- package/lib/chart/radar/RadarSeries.js +4 -3
- package/lib/chart/radar/RadarView.js +3 -1
- package/lib/chart/sunburst/SunburstPiece.js +4 -1
- package/lib/chart/sunburst/SunburstSeries.js +17 -5
- package/lib/chart/themeRiver/ThemeRiverSeries.js +21 -30
- package/lib/chart/tree/TreeSeries.js +1 -1
- package/lib/chart/tree/TreeView.js +4 -4
- package/lib/chart/treemap/TreemapSeries.js +14 -5
- package/lib/chart/treemap/treemapLayout.js +1 -1
- package/lib/chart/treemap/treemapVisual.js +9 -15
- package/lib/component/axisPointer/axisTrigger.js +1 -1
- package/lib/component/legend/ScrollableLegendView.js +1 -1
- package/lib/component/marker/MarkAreaView.js +53 -15
- package/lib/component/marker/MarkLineView.js +3 -0
- package/lib/component/marker/MarkPointView.js +8 -1
- package/lib/component/marker/MarkerModel.js +3 -2
- package/lib/component/timeline/SliderTimelineView.js +7 -1
- package/lib/component/title.js +1 -1
- package/lib/component/toolbox/feature/DataView.js +23 -8
- package/lib/component/toolbox/feature/DataZoom.js +6 -6
- package/lib/component/toolbox/feature/SaveAsImage.js +2 -1
- package/lib/component/tooltip/TooltipContent.js +42 -8
- package/lib/component/tooltip/TooltipRichContent.js +56 -8
- package/lib/component/tooltip/TooltipView.js +4 -4
- package/lib/component/visualMap/VisualMapModel.js +1 -1
- package/lib/coord/axisDefault.js +1 -1
- package/lib/coord/axisHelper.js +2 -2
- package/lib/coord/geo/GeoModel.js +2 -1
- package/lib/data/Graph.js +1 -6
- package/lib/data/List.js +1 -1
- package/lib/data/Tree.js +4 -31
- package/lib/echarts.js +2 -2
- package/lib/layout/barPolar.js +1 -1
- package/lib/processor/dataSample.js +1 -1
- package/lib/stream/Scheduler.js +1 -1
- package/lib/visual/VisualMapping.js +1 -1
- package/map/.DS_Store +0 -0
- package/map/js/.DS_Store +0 -0
- package/map/js/province/.DS_Store +0 -0
- package/map/json/.DS_Store +0 -0
- package/package.json +3 -2
- package/src/.DS_Store +0 -0
- package/src/chart/.DS_Store +0 -0
- package/src/chart/bar/BarView.js +50 -16
- package/src/chart/bar/PictorialBarSeries.js +2 -2
- package/src/chart/funnel/FunnelSeries.js +1 -0
- package/src/chart/funnel/funnelLayout.js +179 -53
- package/src/chart/graph/GraphSeries.js +9 -3
- package/src/chart/graph/circularLayoutHelper.js +8 -2
- package/src/chart/graph/forceLayout.js +7 -1
- package/src/chart/graph/simpleLayout.js +1 -1
- package/src/chart/graph/simpleLayoutHelper.js +12 -5
- package/src/chart/helper/Line.js +38 -11
- package/src/chart/helper/Symbol.js +2 -2
- package/src/chart/helper/createGraphFromNodeEdge.js +2 -1
- package/src/chart/helper/multipleGraphEdgeHelper.js +229 -0
- package/src/chart/lines/LinesSeries.js +1 -3
- package/src/chart/map/MapSeries.js +3 -2
- package/src/chart/radar/RadarSeries.js +4 -3
- package/src/chart/radar/RadarView.js +4 -2
- package/src/chart/sunburst/SunburstPiece.js +5 -1
- package/src/chart/sunburst/SunburstSeries.js +16 -8
- package/src/chart/themeRiver/ThemeRiverSeries.js +21 -27
- package/src/chart/tree/TreeSeries.js +1 -1
- package/src/chart/tree/TreeView.js +3 -3
- package/src/chart/treemap/TreemapSeries.js +11 -3
- package/src/chart/treemap/treemapLayout.js +2 -2
- package/src/chart/treemap/treemapVisual.js +8 -25
- package/src/component/axisPointer/axisTrigger.js +1 -1
- package/src/component/legend/ScrollableLegendView.js +1 -1
- package/src/component/marker/MarkAreaView.js +53 -15
- package/src/component/marker/MarkLineView.js +3 -1
- package/src/component/marker/MarkPointView.js +7 -1
- package/src/component/marker/MarkerModel.js +3 -2
- package/src/component/timeline/SliderTimelineView.js +9 -6
- package/src/component/title.js +2 -2
- package/src/component/toolbox/.DS_Store +0 -0
- package/src/component/toolbox/feature/DataView.js +20 -8
- package/src/component/toolbox/feature/DataZoom.js +6 -6
- package/src/component/toolbox/feature/SaveAsImage.js +2 -1
- package/src/component/tooltip/TooltipContent.js +36 -7
- package/src/component/tooltip/TooltipRichContent.js +52 -9
- package/src/component/tooltip/TooltipView.js +4 -4
- package/src/component/visualMap/VisualMapModel.js +1 -1
- package/src/coord/axisDefault.js +1 -1
- package/src/coord/axisHelper.js +4 -2
- package/src/coord/geo/GeoModel.js +3 -6
- package/src/data/Graph.js +0 -5
- package/src/data/List.js +1 -1
- package/src/data/Tree.js +4 -32
- package/src/echarts.js +2 -2
- package/src/layout/barPolar.js +4 -2
- package/src/model/.DS_Store +0 -0
- package/src/preprocessor/.DS_Store +0 -0
- package/src/processor/dataSample.js +1 -1
- package/src/stream/Scheduler.js +1 -1
- package/src/util/.DS_Store +0 -0
- package/src/visual/VisualMapping.js +1 -1
- package/theme/.DS_Store +0 -0
|
@@ -20,6 +20,15 @@
|
|
|
20
20
|
import * as zrUtil from 'zrender/src/core/util';
|
|
21
21
|
// import Group from 'zrender/src/container/Group';
|
|
22
22
|
import Text from 'zrender/src/graphic/Text';
|
|
23
|
+
import * as graphicUtil from '../../util/graphic';
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
function makeStyleCoord(out, zr, zrX, zrY) {
|
|
27
|
+
out[0] = zrX;
|
|
28
|
+
out[1] = zrY;
|
|
29
|
+
out[2] = out[0] / zr.getWidth(); // The ratio of left to width
|
|
30
|
+
out[3] = out[1] / zr.getHeight(); // The ratio of top to height
|
|
31
|
+
}
|
|
23
32
|
|
|
24
33
|
/**
|
|
25
34
|
* @alias module:echarts/component/tooltip/TooltipRichContent
|
|
@@ -27,7 +36,11 @@ import Text from 'zrender/src/graphic/Text';
|
|
|
27
36
|
*/
|
|
28
37
|
function TooltipRichContent(api) {
|
|
29
38
|
|
|
30
|
-
this._zr = api.getZr();
|
|
39
|
+
var zr = this._zr = api.getZr();
|
|
40
|
+
|
|
41
|
+
this._styleCoord = [0, 0, 0, 0]; // [left, top, left/width, top/height]
|
|
42
|
+
|
|
43
|
+
makeStyleCoord(this._styleCoord, zr, api.getWidth() / 2, api.getHeight() / 2);
|
|
31
44
|
|
|
32
45
|
this._show = false;
|
|
33
46
|
|
|
@@ -50,8 +63,21 @@ TooltipRichContent.prototype = {
|
|
|
50
63
|
/**
|
|
51
64
|
* Update when tooltip is rendered
|
|
52
65
|
*/
|
|
53
|
-
update: function () {
|
|
54
|
-
|
|
66
|
+
update: function (tooltipModel) {
|
|
67
|
+
var alwaysShowContent = tooltipModel.get('alwaysShowContent');
|
|
68
|
+
alwaysShowContent && this._moveTooltipIfResized();
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* when `alwaysShowContent` is true,
|
|
73
|
+
* we should move the tooltip after chart resized
|
|
74
|
+
*/
|
|
75
|
+
_moveTooltipIfResized: function () {
|
|
76
|
+
var ratioX = this._styleCoord[2]; // The ratio of left to width
|
|
77
|
+
var ratioY = this._styleCoord[3]; // The ratio of top to height
|
|
78
|
+
var realX = ratioX * this._zr.getWidth();
|
|
79
|
+
var realY = ratioY * this._zr.getHeight();
|
|
80
|
+
this.moveTo(realX, realY);
|
|
55
81
|
},
|
|
56
82
|
|
|
57
83
|
show: function (tooltipModel) {
|
|
@@ -106,16 +132,23 @@ TooltipRichContent.prototype = {
|
|
|
106
132
|
startId = text.indexOf('{marker');
|
|
107
133
|
}
|
|
108
134
|
|
|
135
|
+
var textStyleModel = tooltipModel.getModel('textStyle');
|
|
136
|
+
var fontSize = textStyleModel.get('fontSize');
|
|
137
|
+
var lineHeight = tooltipModel.get('textLineHeight');
|
|
138
|
+
if (lineHeight == null) {
|
|
139
|
+
lineHeight = Math.round(fontSize * 3 / 2);
|
|
140
|
+
}
|
|
141
|
+
|
|
109
142
|
this.el = new Text({
|
|
110
|
-
style: {
|
|
143
|
+
style: graphicUtil.setTextStyle({}, textStyleModel, {
|
|
111
144
|
rich: markers,
|
|
112
145
|
text: content,
|
|
113
|
-
textLineHeight: 20,
|
|
114
146
|
textBackgroundColor: tooltipModel.get('backgroundColor'),
|
|
115
147
|
textBorderRadius: tooltipModel.get('borderRadius'),
|
|
116
148
|
textFill: tooltipModel.get('textStyle.color'),
|
|
117
|
-
textPadding: tooltipModel.get('padding')
|
|
118
|
-
|
|
149
|
+
textPadding: tooltipModel.get('padding'),
|
|
150
|
+
textLineHeight: lineHeight
|
|
151
|
+
}),
|
|
119
152
|
z: tooltipModel.get('z')
|
|
120
153
|
});
|
|
121
154
|
this._zr.add(this.el);
|
|
@@ -150,7 +183,9 @@ TooltipRichContent.prototype = {
|
|
|
150
183
|
|
|
151
184
|
moveTo: function (x, y) {
|
|
152
185
|
if (this.el) {
|
|
153
|
-
this.
|
|
186
|
+
var styleCoord = this._styleCoord;
|
|
187
|
+
makeStyleCoord(styleCoord, this._zr, x, y);
|
|
188
|
+
this.el.attr('position', [styleCoord[0], styleCoord[1]]);
|
|
154
189
|
}
|
|
155
190
|
},
|
|
156
191
|
|
|
@@ -165,7 +200,7 @@ TooltipRichContent.prototype = {
|
|
|
165
200
|
if (this._show && !(this._inContent && this._enterable)) {
|
|
166
201
|
if (time) {
|
|
167
202
|
this._hideDelay = time;
|
|
168
|
-
// Set show false to avoid invoke hideLater
|
|
203
|
+
// Set show false to avoid invoke hideLater multiple times
|
|
169
204
|
this._show = false;
|
|
170
205
|
this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time);
|
|
171
206
|
}
|
|
@@ -179,6 +214,14 @@ TooltipRichContent.prototype = {
|
|
|
179
214
|
return this._show;
|
|
180
215
|
},
|
|
181
216
|
|
|
217
|
+
dispose: function () {
|
|
218
|
+
clearTimeout(this._hideTimeout);
|
|
219
|
+
|
|
220
|
+
if (this.el) {
|
|
221
|
+
this._zr.remove(this.el);
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
|
|
182
225
|
getOuterSize: function () {
|
|
183
226
|
var size = this.getSize();
|
|
184
227
|
return {
|
|
@@ -109,7 +109,7 @@ export default echarts.extendComponentView({
|
|
|
109
109
|
this._alwaysShowContent = tooltipModel.get('alwaysShowContent');
|
|
110
110
|
|
|
111
111
|
var tooltipContent = this._tooltipContent;
|
|
112
|
-
tooltipContent.update();
|
|
112
|
+
tooltipContent.update(tooltipModel);
|
|
113
113
|
tooltipContent.setEnterable(tooltipModel.get('enterable'));
|
|
114
114
|
|
|
115
115
|
this._initGlobalListener();
|
|
@@ -339,7 +339,7 @@ export default echarts.extendComponentView({
|
|
|
339
339
|
_showOrMove: function (tooltipModel, cb) {
|
|
340
340
|
// showDelay is used in this case: tooltip.enterable is set
|
|
341
341
|
// as true. User intent to move mouse into tooltip and click
|
|
342
|
-
// something. `showDelay` makes it
|
|
342
|
+
// something. `showDelay` makes it easier to enter the content
|
|
343
343
|
// but tooltip do not move immediately.
|
|
344
344
|
var delay = tooltipModel.get('showDelay');
|
|
345
345
|
cb = zrUtil.bind(cb, this);
|
|
@@ -424,7 +424,7 @@ export default echarts.extendComponentView({
|
|
|
424
424
|
|
|
425
425
|
// Default tooltip content
|
|
426
426
|
// FIXME
|
|
427
|
-
// (1)
|
|
427
|
+
// (1) should be the first data which has name?
|
|
428
428
|
// (2) themeRiver, firstDataIndex is array, and first line is unnecessary.
|
|
429
429
|
var firstLine = valueLabel;
|
|
430
430
|
if (renderMode !== 'html') {
|
|
@@ -540,7 +540,7 @@ export default echarts.extendComponentView({
|
|
|
540
540
|
var asyncTicket = Math.random();
|
|
541
541
|
|
|
542
542
|
// Do not check whether `trigger` is 'none' here, because `trigger`
|
|
543
|
-
// only works on
|
|
543
|
+
// only works on coordinate system. In fact, we have not found case
|
|
544
544
|
// that requires setting `trigger` nothing on component yet.
|
|
545
545
|
|
|
546
546
|
this._showOrMove(subTooltipModel, function () {
|
|
@@ -395,7 +395,7 @@ var VisualMapModel = echarts.extendComponentModel({
|
|
|
395
395
|
// Originally we use visualMap.color as the default color, but setOption at
|
|
396
396
|
// the second time the default color will be erased. So we change to use
|
|
397
397
|
// constant DEFAULT_COLOR.
|
|
398
|
-
// If user do not want the
|
|
398
|
+
// If user do not want the default color, set inRange: {color: null}.
|
|
399
399
|
base.inRange = base.inRange || {color: ecModel.get('gradientColor')};
|
|
400
400
|
|
|
401
401
|
// If using shortcut like: {inRange: 'symbol'}, complete default value.
|
package/src/coord/axisDefault.js
CHANGED
|
@@ -30,7 +30,7 @@ var defaultOption = {
|
|
|
30
30
|
name: '',
|
|
31
31
|
// 'start' | 'middle' | 'end'
|
|
32
32
|
nameLocation: 'end',
|
|
33
|
-
// By degree. By
|
|
33
|
+
// By degree. By default auto rotate by nameLocation.
|
|
34
34
|
nameRotate: null,
|
|
35
35
|
nameTruncate: {
|
|
36
36
|
maxWidth: null,
|
package/src/coord/axisHelper.js
CHANGED
|
@@ -387,8 +387,10 @@ function rotateTextRect(textRect, rotate) {
|
|
|
387
387
|
var boundingBox = textRect.plain();
|
|
388
388
|
var beforeWidth = boundingBox.width;
|
|
389
389
|
var beforeHeight = boundingBox.height;
|
|
390
|
-
var afterWidth = beforeWidth * Math.
|
|
391
|
-
|
|
390
|
+
var afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians))
|
|
391
|
+
+ Math.abs(beforeHeight * Math.sin(rotateRadians));
|
|
392
|
+
var afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians))
|
|
393
|
+
+ Math.abs(beforeHeight * Math.cos(rotateRadians));
|
|
392
394
|
var rotatedRect = new BoundingRect(boundingBox.x, boundingBox.y, afterWidth, afterHeight);
|
|
393
395
|
|
|
394
396
|
return rotatedRect;
|
|
@@ -147,12 +147,9 @@ var GeoModel = ComponentModel.extend({
|
|
|
147
147
|
* @return {string}
|
|
148
148
|
*/
|
|
149
149
|
getFormattedLabel: function (name, status) {
|
|
150
|
+
status = status || 'normal';
|
|
150
151
|
var regionModel = this.getRegionModel(name);
|
|
151
|
-
var formatter = regionModel.get(
|
|
152
|
-
'label'
|
|
153
|
-
+ (status === 'normal' ? '.' : status + '.')
|
|
154
|
-
+ 'formatter'
|
|
155
|
-
);
|
|
152
|
+
var formatter = regionModel.get((status === 'normal' ? '' : status + '.') + 'label.formatter');
|
|
156
153
|
var params = {
|
|
157
154
|
name: name
|
|
158
155
|
};
|
|
@@ -176,4 +173,4 @@ var GeoModel = ComponentModel.extend({
|
|
|
176
173
|
|
|
177
174
|
zrUtil.mixin(GeoModel, selectableMixin);
|
|
178
175
|
|
|
179
|
-
export default GeoModel;
|
|
176
|
+
export default GeoModel;
|
package/src/data/Graph.js
CHANGED
package/src/data/List.js
CHANGED
|
@@ -406,7 +406,7 @@ listProto.mapDimension = function (coordDim, idx) {
|
|
|
406
406
|
* Initialize from data
|
|
407
407
|
* @param {Array.<Object|number|Array>} data source or data or data provider.
|
|
408
408
|
* @param {Array.<string>} [nameLIst] The name of a datum is used on data diff and
|
|
409
|
-
*
|
|
409
|
+
* default label/tooltip.
|
|
410
410
|
* A name can be specified in encode.itemName,
|
|
411
411
|
* or dataItem.name (only for series option data),
|
|
412
412
|
* or provided in nameList from outside.
|
package/src/data/Tree.js
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
import * as zrUtil from 'zrender/src/core/util';
|
|
27
|
-
import Model from '../model/Model';
|
|
28
27
|
import linkList from './helper/linkList';
|
|
29
28
|
import List from './List';
|
|
30
29
|
import createDimensions from './helper/createDimensions';
|
|
@@ -247,22 +246,7 @@ TreeNode.prototype = {
|
|
|
247
246
|
}
|
|
248
247
|
var hostTree = this.hostTree;
|
|
249
248
|
var itemModel = hostTree.data.getItemModel(this.dataIndex);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
// FIXME: refactor levelModel to "beforeLink", and remove levelModel here.
|
|
253
|
-
if (levelModel) {
|
|
254
|
-
return itemModel.getModel(path, levelModel.getModel(path));
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
return itemModel.getModel(path);
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* @return {module:echarts/model/Model}
|
|
263
|
-
*/
|
|
264
|
-
getLevelModel: function () {
|
|
265
|
-
return (this.hostTree.levelModels || [])[this.depth];
|
|
249
|
+
return itemModel.getModel(path);
|
|
266
250
|
},
|
|
267
251
|
|
|
268
252
|
/**
|
|
@@ -334,9 +318,8 @@ TreeNode.prototype = {
|
|
|
334
318
|
* @constructor
|
|
335
319
|
* @alias module:echarts/data/Tree
|
|
336
320
|
* @param {module:echarts/model/Model} hostModel
|
|
337
|
-
* @param {Array.<Object>} levelOptions
|
|
338
321
|
*/
|
|
339
|
-
function Tree(hostModel
|
|
322
|
+
function Tree(hostModel) {
|
|
340
323
|
/**
|
|
341
324
|
* @type {module:echarts/data/Tree~TreeNode}
|
|
342
325
|
* @readOnly
|
|
@@ -363,15 +346,6 @@ function Tree(hostModel, levelOptions) {
|
|
|
363
346
|
*/
|
|
364
347
|
this.hostModel = hostModel;
|
|
365
348
|
|
|
366
|
-
/**
|
|
367
|
-
* @private
|
|
368
|
-
* @readOnly
|
|
369
|
-
* @type {Array.<module:echarts/model/Model}
|
|
370
|
-
*/
|
|
371
|
-
this.levelModels = zrUtil.map(levelOptions || [], function (levelDefine) {
|
|
372
|
-
return new Model(levelDefine, hostModel, hostModel.ecModel);
|
|
373
|
-
});
|
|
374
|
-
|
|
375
349
|
}
|
|
376
350
|
|
|
377
351
|
Tree.prototype = {
|
|
@@ -461,13 +435,11 @@ Tree.prototype = {
|
|
|
461
435
|
* @static
|
|
462
436
|
* @param {Object} dataRoot Root node.
|
|
463
437
|
* @param {module:echarts/model/Model} hostModel
|
|
464
|
-
* @param {Object} treeOptions
|
|
465
|
-
* @param {Array.<Object>} treeOptions.levels
|
|
466
438
|
* @return module:echarts/data/Tree
|
|
467
439
|
*/
|
|
468
|
-
Tree.createTree = function (dataRoot, hostModel,
|
|
440
|
+
Tree.createTree = function (dataRoot, hostModel, beforeLink) {
|
|
469
441
|
|
|
470
|
-
var tree = new Tree(hostModel
|
|
442
|
+
var tree = new Tree(hostModel);
|
|
471
443
|
var listData = [];
|
|
472
444
|
var dimMax = 1;
|
|
473
445
|
|
package/src/echarts.js
CHANGED
|
@@ -51,10 +51,10 @@ var isFunction = zrUtil.isFunction;
|
|
|
51
51
|
var isObject = zrUtil.isObject;
|
|
52
52
|
var parseClassType = ComponentModel.parseClassType;
|
|
53
53
|
|
|
54
|
-
export var version = '4.
|
|
54
|
+
export var version = '4.9.0';
|
|
55
55
|
|
|
56
56
|
export var dependencies = {
|
|
57
|
-
zrender: '4.3.
|
|
57
|
+
zrender: '4.3.2'
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
var TEST_FRAME_REMAIN_TIME = 1;
|
package/src/layout/barPolar.js
CHANGED
|
@@ -82,8 +82,9 @@ function barLayoutPolar(seriesType, ecModel, api) {
|
|
|
82
82
|
var clampLayout = baseAxis.dim !== 'radius'
|
|
83
83
|
|| !seriesModel.get('roundCap', true);
|
|
84
84
|
|
|
85
|
-
var valueAxisStart = valueAxis.
|
|
86
|
-
|
|
85
|
+
var valueAxisStart = valueAxis.dim === 'radius'
|
|
86
|
+
? valueAxis.dataToRadius(0)
|
|
87
|
+
: valueAxis.dataToAngle(0);
|
|
87
88
|
for (var idx = 0, len = data.count(); idx < len; idx++) {
|
|
88
89
|
var value = data.get(valueDim, idx);
|
|
89
90
|
var baseValue = data.get(baseDim, idx);
|
|
@@ -95,6 +96,7 @@ function barLayoutPolar(seriesType, ecModel, api) {
|
|
|
95
96
|
// stackResultDimension directly.
|
|
96
97
|
// Only ordinal axis can be stacked.
|
|
97
98
|
if (stacked) {
|
|
99
|
+
|
|
98
100
|
if (!lastStackCoords[stackId][baseValue]) {
|
|
99
101
|
lastStackCoords[stackId][baseValue] = {
|
|
100
102
|
p: valueAxisStart, // Positive stack
|
|
Binary file
|
|
Binary file
|
|
@@ -83,7 +83,7 @@ export default function (seriesType) {
|
|
|
83
83
|
var valueAxis = coordSys.getOtherAxis(baseAxis);
|
|
84
84
|
var extent = baseAxis.getExtent();
|
|
85
85
|
// Coordinste system has been resized
|
|
86
|
-
var size = extent[1] - extent[0];
|
|
86
|
+
var size = Math.abs(extent[1] - extent[0]);
|
|
87
87
|
var rate = Math.round(data.count() / size);
|
|
88
88
|
if (rate > 1) {
|
|
89
89
|
var sampler;
|
package/src/stream/Scheduler.js
CHANGED
|
@@ -65,7 +65,7 @@ var proto = Scheduler.prototype;
|
|
|
65
65
|
* @param {Object} payload
|
|
66
66
|
*/
|
|
67
67
|
proto.restoreData = function (ecModel, payload) {
|
|
68
|
-
// TODO: Only
|
|
68
|
+
// TODO: Only restore needed series and components, but not all components.
|
|
69
69
|
// Currently `restoreData` of all of the series and component will be called.
|
|
70
70
|
// But some independent components like `title`, `legend`, `graphic`, `toolbox`,
|
|
71
71
|
// `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,
|
|
Binary file
|
|
@@ -49,7 +49,7 @@ var CATEGORY_DEFAULT_VISUAL_INDEX = -1;
|
|
|
49
49
|
* visual data can be array or object
|
|
50
50
|
* (like: {cate1: '#222', none: '#fff'})
|
|
51
51
|
* or primary types (which represents
|
|
52
|
-
*
|
|
52
|
+
* default category visual), otherwise visual
|
|
53
53
|
* can be array or primary (which will be
|
|
54
54
|
* normalized to array).
|
|
55
55
|
*
|
package/theme/.DS_Store
ADDED
|
Binary file
|