Skip to content

Commit cfb3a8a

Browse files
authored
chore: release v5.4.2 (#18374)
1 parent 1e6f6a9 commit cfb3a8a

27 files changed

+1463
-473
lines changed

dist/echarts.common.js

Lines changed: 174 additions & 112 deletions
Large diffs are not rendered by default.

dist/echarts.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.common.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.esm.js

Lines changed: 194 additions & 132 deletions
Large diffs are not rendered by default.

dist/echarts.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.esm.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.js

Lines changed: 194 additions & 132 deletions
Large diffs are not rendered by default.

dist/echarts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.simple.js

Lines changed: 134 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -7131,7 +7131,7 @@
71317131
function registerPainter(name, Ctor) {
71327132
painterCtors[name] = Ctor;
71337133
}
7134-
var version = '5.4.1';
7134+
var version = '5.4.3';
71357135

71367136
var zrender = /*#__PURE__*/Object.freeze({
71377137
__proto__: null,
@@ -9199,16 +9199,19 @@
91999199
}
92009200
}
92019201
}
9202-
function isLatin(ch) {
9202+
function isAlphabeticLetter(ch) {
92039203
var code = ch.charCodeAt(0);
9204-
return code >= 0x21 && code <= 0x17F;
9204+
return code >= 0x20 && code <= 0x24F
9205+
|| code >= 0x370 && code <= 0x10FF
9206+
|| code >= 0x1200 && code <= 0x13FF
9207+
|| code >= 0x1E00 && code <= 0x206F;
92059208
}
92069209
var breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {
92079210
obj[ch] = true;
92089211
return obj;
92099212
}, {});
92109213
function isWordBreakChar(ch) {
9211-
if (isLatin(ch)) {
9214+
if (isAlphabeticLetter(ch)) {
92129215
if (breakCharMap[ch]) {
92139216
return true;
92149217
}
@@ -15790,23 +15793,23 @@
1579015793
*/
1579115794

1579215795
/*
15793-
* Licensed to the Apache Software Foundation (ASF) under one
15794-
* or more contributor license agreements. See the NOTICE file
15795-
* distributed with this work for additional information
15796-
* regarding copyright ownership. The ASF licenses this file
15797-
* to you under the Apache License, Version 2.0 (the
15798-
* "License"); you may not use this file except in compliance
15799-
* with the License. You may obtain a copy of the License at
15800-
*
15801-
* http://www.apache.org/licenses/LICENSE-2.0
15802-
*
15803-
* Unless required by applicable law or agreed to in writing,
15804-
* software distributed under the License is distributed on an
15805-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15806-
* KIND, either express or implied. See the License for the
15807-
* specific language governing permissions and limitations
15808-
* under the License.
15809-
*/
15796+
* Licensed to the Apache Software Foundation (ASF) under one
15797+
* or more contributor license agreements. See the NOTICE file
15798+
* distributed with this work for additional information
15799+
* regarding copyright ownership. The ASF licenses this file
15800+
* to you under the Apache License, Version 2.0 (the
15801+
* "License"); you may not use this file except in compliance
15802+
* with the License. You may obtain a copy of the License at
15803+
*
15804+
* http://www.apache.org/licenses/LICENSE-2.0
15805+
*
15806+
* Unless required by applicable law or agreed to in writing,
15807+
* software distributed under the License is distributed on an
15808+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15809+
* KIND, either express or implied. See the License for the
15810+
* specific language governing permissions and limitations
15811+
* under the License.
15812+
*/
1581015813

1581115814
/**
1581215815
* Language: English.
@@ -19746,11 +19749,7 @@
1974619749

1974719750

1974819751
if (obj) {
19749-
var dimensions_1 = [];
19750-
each(obj, function (value, key) {
19751-
dimensions_1.push(key);
19752-
});
19753-
return dimensions_1;
19752+
return keys(obj);
1975419753
}
1975519754
} // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],
1975619755
// which is reasonable. But dimension name is duplicated.
@@ -21231,7 +21230,7 @@
2123121230
/** @class */
2123221231
function () {
2123321232
function DataStore() {
21234-
this._chunks = []; // It will not be calculated util needed.
21233+
this._chunks = []; // It will not be calculated until needed.
2123521234

2123621235
this._rawExtent = [];
2123721236
this._extent = [];
@@ -21649,7 +21648,7 @@
2164921648
// When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,
2165021649
// we'd better not push both of them to `nearestIndices`, otherwise it is easy to
2165121650
// get more than one item in `nearestIndices` (more specifically, in `tooltip`).
21652-
// So we chose the one that `diff >= 0` in this csae.
21651+
// So we choose the one that `diff >= 0` in this case.
2165321652
// But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them
2165421653
// should be push to `nearestIndices`.
2165521654
if (dist < minDist || dist === minDist && diff >= 0 && minDiff < 0) {
@@ -22001,7 +22000,7 @@
2200122000
maxArea = -1;
2200222001
nextRawIndex = frameStart;
2200322002
var firstNaNIndex = -1;
22004-
var countNaN = 0; // Find a point from current frame that construct a triangel with largest area with previous selected point
22003+
var countNaN = 0; // Find a point from current frame that construct a triangle with largest area with previous selected point
2200522004
// And the average of next frame.
2200622005

2200722006
for (var idx = frameStart; idx < frameEnd; idx++) {
@@ -22797,8 +22796,8 @@
2279722796
var inlineName = multipleSeries ? seriesName : itemName;
2279822797
return createTooltipMarkup('section', {
2279922798
header: seriesName,
22800-
// When series name not specified, do not show a header line with only '-'.
22801-
// This case alway happen in tooltip.trigger: 'item'.
22799+
// When series name is not specified, do not show a header line with only '-'.
22800+
// This case always happens in tooltip.trigger: 'item'.
2280222801
noHeader: multipleSeries || !seriesNameSpecified,
2280322802
sortParam: sortParam,
2280422803
blocks: [createTooltipMarkup('nameValue', {
@@ -23410,7 +23409,7 @@
2341023409
}
2341123410

2341223411
function dataTaskProgress(param, context) {
23413-
// Avoid repead cloneShallow when data just created in reset.
23412+
// Avoid repeat cloneShallow when data just created in reset.
2341423413
if (context.outputData && param.end > context.outputData.count()) {
2341523414
context.model.getRawData().cloneShallow(context.outputData);
2341623415
}
@@ -25167,7 +25166,7 @@
2516725166
}
2516825167
}
2516925168

25170-
// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
25169+
// Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
2517125170

2517225171
function createLegacyDataSelectAction(seriesType, ecRegisterAction) {
2517325172
function getSeriesIndices(ecModel, payload) {
@@ -26787,9 +26786,9 @@
2678726786
return implsStore[name];
2678826787
}
2678926788

26790-
var version$1 = '5.4.1';
26789+
var version$1 = '5.4.2';
2679126790
var dependencies = {
26792-
zrender: '5.4.1'
26791+
zrender: '5.4.3'
2679326792
};
2679426793
var TEST_FRAME_REMAIN_TIME = 1;
2679526794
var PRIORITY_PROCESSOR_SERIES_FILTER = 800; // Some data processors depends on the stack result dimension (to calculate data extent).
@@ -39041,7 +39040,7 @@
3904139040
var polyline = this._polyline;
3904239041
var polygon = this._polygon;
3904339042
var lineGroup = this._lineGroup;
39044-
var hasAnimation = seriesModel.get('animation');
39043+
var hasAnimation = !ecModel.ssr && seriesModel.isAnimationEnabled();
3904539044
var isAreaChart = !areaStyleModel.isEmpty();
3904639045
var valueOrigin = areaStyleModel.get('origin');
3904739046
var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);
@@ -39421,8 +39420,8 @@
3942139420
seriesDuration = seriesDuration(null);
3942239421
}
3942339422

39424-
var seriesDalay = seriesModel.get('animationDelay') || 0;
39425-
var seriesDalayValue = isFunction(seriesDalay) ? seriesDalay(null) : seriesDalay;
39423+
var seriesDelay = seriesModel.get('animationDelay') || 0;
39424+
var seriesDelayValue = isFunction(seriesDelay) ? seriesDelay(null) : seriesDelay;
3942639425
data.eachItemGraphicEl(function (symbol, idx) {
3942739426
var el = symbol;
3942839427

@@ -39467,7 +39466,7 @@
3946739466
ratio = 1 - ratio;
3946839467
}
3946939468

39470-
var delay = isFunction(seriesDalay) ? seriesDalay(idx) : seriesDuration * ratio + seriesDalayValue;
39469+
var delay = isFunction(seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue;
3947139470
var symbolPath = el.getSymbolPath();
3947239471
var text = symbolPath.getTextContent();
3947339472
el.attr({
@@ -39965,22 +39964,75 @@
3996539964

3996639965
if (coordSys && coordSys.clampData) {
3996739966
// PENDING if clamp ?
39968-
var pt_1 = coordSys.dataToPoint(coordSys.clampData(value));
39967+
var clampData_1 = coordSys.clampData(value);
39968+
var pt_1 = coordSys.dataToPoint(clampData_1);
3996939969

3997039970
if (startingAtTick) {
3997139971
each(coordSys.getAxes(), function (axis, idx) {
3997239972
// If axis type is category, use tick coords instead
39973-
if (axis.type === 'category') {
39973+
if (axis.type === 'category' && dims != null) {
3997439974
var tickCoords = axis.getTicksCoords();
39975-
var tickIdx = coordSys.clampData(value)[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index
39975+
var targetTickId = clampData_1[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index
39976+
39977+
var isEnd = dims[idx] === 'x1' || dims[idx] === 'y1';
39978+
39979+
if (isEnd) {
39980+
targetTickId += 1;
39981+
} // The only contains one tick, tickCoords is
39982+
// like [{coord: 0, tickValue: 0}, {coord: 0}]
39983+
// to the length should always be larger than 1
3997639984

39977-
if (dims && (dims[idx] === 'x1' || dims[idx] === 'y1')) {
39978-
tickIdx += 1;
39985+
39986+
if (tickCoords.length < 2) {
39987+
return;
39988+
} else if (tickCoords.length === 2) {
39989+
// The left value and right value of the axis are
39990+
// the same. coord is 0 in both items. Use the max
39991+
// value of the axis as the coord
39992+
pt_1[idx] = axis.toGlobalCoord(axis.getExtent()[isEnd ? 1 : 0]);
39993+
return;
3997939994
}
3998039995

39981-
tickIdx > tickCoords.length - 1 && (tickIdx = tickCoords.length - 1);
39982-
tickIdx < 0 && (tickIdx = 0);
39983-
tickCoords[tickIdx] && (pt_1[idx] = axis.toGlobalCoord(tickCoords[tickIdx].coord));
39996+
var leftCoord = void 0;
39997+
var coord = void 0;
39998+
var stepTickValue = 1;
39999+
40000+
for (var i = 0; i < tickCoords.length; i++) {
40001+
var tickCoord = tickCoords[i].coord; // The last item of tickCoords doesn't contain
40002+
// tickValue
40003+
40004+
var tickValue = i === tickCoords.length - 1 ? tickCoords[i - 1].tickValue + stepTickValue : tickCoords[i].tickValue;
40005+
40006+
if (tickValue === targetTickId) {
40007+
coord = tickCoord;
40008+
break;
40009+
} else if (tickValue < targetTickId) {
40010+
leftCoord = tickCoord;
40011+
} else if (leftCoord != null && tickValue > targetTickId) {
40012+
coord = (tickCoord + leftCoord) / 2;
40013+
break;
40014+
}
40015+
40016+
if (i === 1) {
40017+
// Here we assume the step of category axes is
40018+
// the same
40019+
stepTickValue = tickValue - tickCoords[0].tickValue;
40020+
}
40021+
}
40022+
40023+
if (coord == null) {
40024+
if (!leftCoord) {
40025+
// targetTickId is smaller than all tick ids in the
40026+
// visible area, use the leftmost tick coord
40027+
coord = tickCoords[0].coord;
40028+
} else if (leftCoord) {
40029+
// targetTickId is larger than all tick ids in the
40030+
// visible area, use the rightmost tick coord
40031+
coord = tickCoords[tickCoords.length - 1].coord;
40032+
}
40033+
}
40034+
40035+
pt_1[idx] = axis.toGlobalCoord(coord);
3998440036
}
3998540037
});
3998640038
} else {
@@ -40356,6 +40408,27 @@
4035640408
return distance * Math.cos(angle) * (isEnd ? 1 : -1);
4035740409
}
4035840410

40411+
function getSectorCornerRadius(model, shape, zeroIfNull) {
40412+
var cornerRadius = model.get('borderRadius');
40413+
40414+
if (cornerRadius == null) {
40415+
return zeroIfNull ? {
40416+
cornerRadius: 0
40417+
} : null;
40418+
}
40419+
40420+
if (!isArray(cornerRadius)) {
40421+
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
40422+
}
40423+
40424+
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
40425+
return {
40426+
cornerRadius: map(cornerRadius, function (cr) {
40427+
return parsePercent(cr, dr);
40428+
})
40429+
};
40430+
}
40431+
4035940432
var mathMax$6 = Math.max;
4036040433
var mathMin$6 = Math.min;
4036140434

@@ -40488,6 +40561,8 @@
4048840561

4048940562
if (coord.type === 'cartesian2d') {
4049040563
bgEl.setShape('r', barBorderRadius);
40564+
} else {
40565+
bgEl.setShape('cornerRadius', barBorderRadius);
4049140566
}
4049240567

4049340568
bgEls[dataIndex] = bgEl;
@@ -40560,6 +40635,8 @@
4056040635

4056140636
if (coord.type === 'cartesian2d') {
4056240637
bgEl.setShape('r', barBorderRadius);
40638+
} else {
40639+
bgEl.setShape('cornerRadius', barBorderRadius);
4056340640
}
4056440641

4056540642
bgEls[newIndex] = bgEl;
@@ -40953,7 +41030,7 @@
4095341030
var sectorShape = sector.shape;
4095441031
var animateProperty = isRadial ? 'r' : 'endAngle';
4095541032
var animateTarget = {};
40956-
sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;
41033+
sectorShape[animateProperty] = isRadial ? layout.r0 : layout.startAngle;
4095741034
animateTarget[animateProperty] = layout[animateProperty];
4095841035
(isUpdate ? updateProps : initProps)(sector, {
4095941036
shape: animateTarget // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
@@ -41103,7 +41180,13 @@
4110341180
var style = data.getItemVisual(dataIndex, 'style');
4110441181

4110541182
if (!isPolar) {
41106-
el.setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);
41183+
var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0;
41184+
el.setShape('r', borderRadius);
41185+
} else if (!seriesModel.get('roundCap')) {
41186+
var sectorShape = el.shape;
41187+
var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);
41188+
extend(sectorShape, cornerRadius);
41189+
el.setShape(sectorShape);
4110741190
}
4110841191

4110941192
el.useStyle(style);
@@ -42082,27 +42165,6 @@
4208242165
}
4208342166
}
4208442167

42085-
function getSectorCornerRadius(model, shape, zeroIfNull) {
42086-
var cornerRadius = model.get('borderRadius');
42087-
42088-
if (cornerRadius == null) {
42089-
return zeroIfNull ? {
42090-
cornerRadius: 0
42091-
} : null;
42092-
}
42093-
42094-
if (!isArray(cornerRadius)) {
42095-
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
42096-
}
42097-
42098-
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
42099-
return {
42100-
cornerRadius: map(cornerRadius, function (cr) {
42101-
return parsePercent(cr, dr);
42102-
})
42103-
};
42104-
}
42105-
4210642168
/**
4210742169
* Piece of pie including Sector, Label, LabelLine
4210842170
*/
@@ -44001,7 +44063,7 @@
4400144063
handleAutoShown: function () {
4400244064
return true;
4400344065
}
44004-
}); // FIXME Not use a seperate text group?
44066+
}); // FIXME Not use a separate text group?
4400544067

4400644068
var transformGroup = new Group({
4400744069
x: opt.position[0],
@@ -44509,7 +44571,7 @@
4450944571
// in category axis.
4451044572
// (2) Compatible with previous version, which always use formatted label as
4451144573
// input. But in interval scale the formatted label is like '223,445', which
44512-
// maked user repalce ','. So we modify it to return original val but remain
44574+
// maked user replace ','. So we modify it to return original val but remain
4451344575
// it as 'string' to avoid error in replacing.
4451444576
axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor
4451544577
})

dist/echarts.simple.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.simple.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

i18n/langCS-obj.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
}
164164
}
165165
};
166+
166167
for (var key in localeObj) {
167168
if (localeObj.hasOwnProperty(key)) {
168169
exports[key] = localeObj[key];

i18n/langCS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
}
164164
}
165165
};
166+
166167
echarts.registerLocale('CS', localeObj);
167168

168169
});

0 commit comments

Comments
 (0)