Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v5.4.2 #18374

Merged
merged 3 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 174 additions & 112 deletions dist/echarts.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts.common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/echarts.common.min.js

Large diffs are not rendered by default.

326 changes: 194 additions & 132 deletions dist/echarts.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/echarts.esm.min.js

Large diffs are not rendered by default.

326 changes: 194 additions & 132 deletions dist/echarts.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/echarts.min.js

Large diffs are not rendered by default.

206 changes: 134 additions & 72 deletions dist/echarts.simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -7131,7 +7131,7 @@
function registerPainter(name, Ctor) {
painterCtors[name] = Ctor;
}
var version = '5.4.1';
var version = '5.4.3';

var zrender = /*#__PURE__*/Object.freeze({
__proto__: null,
Expand Down Expand Up @@ -9199,16 +9199,19 @@
}
}
}
function isLatin(ch) {
function isAlphabeticLetter(ch) {
var code = ch.charCodeAt(0);
return code >= 0x21 && code <= 0x17F;
return code >= 0x20 && code <= 0x24F
|| code >= 0x370 && code <= 0x10FF
|| code >= 0x1200 && code <= 0x13FF
|| code >= 0x1E00 && code <= 0x206F;
}
var breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {
obj[ch] = true;
return obj;
}, {});
function isWordBreakChar(ch) {
if (isLatin(ch)) {
if (isAlphabeticLetter(ch)) {
if (breakCharMap[ch]) {
return true;
}
Expand Down Expand Up @@ -15790,23 +15793,23 @@
*/

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
* Language: English.
Expand Down Expand Up @@ -19746,11 +19749,7 @@


if (obj) {
var dimensions_1 = [];
each(obj, function (value, key) {
dimensions_1.push(key);
});
return dimensions_1;
return keys(obj);
}
} // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],
// which is reasonable. But dimension name is duplicated.
Expand Down Expand Up @@ -21231,7 +21230,7 @@
/** @class */
function () {
function DataStore() {
this._chunks = []; // It will not be calculated util needed.
this._chunks = []; // It will not be calculated until needed.

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

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

function dataTaskProgress(param, context) {
// Avoid repead cloneShallow when data just created in reset.
// Avoid repeat cloneShallow when data just created in reset.
if (context.outputData && param.end > context.outputData.count()) {
context.model.getRawData().cloneShallow(context.outputData);
}
Expand Down Expand Up @@ -25167,7 +25166,7 @@
}
}

// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
// Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect

function createLegacyDataSelectAction(seriesType, ecRegisterAction) {
function getSeriesIndices(ecModel, payload) {
Expand Down Expand Up @@ -26787,9 +26786,9 @@
return implsStore[name];
}

var version$1 = '5.4.1';
var version$1 = '5.4.2';
var dependencies = {
zrender: '5.4.1'
zrender: '5.4.3'
};
var TEST_FRAME_REMAIN_TIME = 1;
var PRIORITY_PROCESSOR_SERIES_FILTER = 800; // Some data processors depends on the stack result dimension (to calculate data extent).
Expand Down Expand Up @@ -39041,7 +39040,7 @@
var polyline = this._polyline;
var polygon = this._polygon;
var lineGroup = this._lineGroup;
var hasAnimation = seriesModel.get('animation');
var hasAnimation = !ecModel.ssr && seriesModel.isAnimationEnabled();
var isAreaChart = !areaStyleModel.isEmpty();
var valueOrigin = areaStyleModel.get('origin');
var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);
Expand Down Expand Up @@ -39421,8 +39420,8 @@
seriesDuration = seriesDuration(null);
}

var seriesDalay = seriesModel.get('animationDelay') || 0;
var seriesDalayValue = isFunction(seriesDalay) ? seriesDalay(null) : seriesDalay;
var seriesDelay = seriesModel.get('animationDelay') || 0;
var seriesDelayValue = isFunction(seriesDelay) ? seriesDelay(null) : seriesDelay;
data.eachItemGraphicEl(function (symbol, idx) {
var el = symbol;

Expand Down Expand Up @@ -39467,7 +39466,7 @@
ratio = 1 - ratio;
}

var delay = isFunction(seriesDalay) ? seriesDalay(idx) : seriesDuration * ratio + seriesDalayValue;
var delay = isFunction(seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue;
var symbolPath = el.getSymbolPath();
var text = symbolPath.getTextContent();
el.attr({
Expand Down Expand Up @@ -39965,22 +39964,75 @@

if (coordSys && coordSys.clampData) {
// PENDING if clamp ?
var pt_1 = coordSys.dataToPoint(coordSys.clampData(value));
var clampData_1 = coordSys.clampData(value);
var pt_1 = coordSys.dataToPoint(clampData_1);

if (startingAtTick) {
each(coordSys.getAxes(), function (axis, idx) {
// If axis type is category, use tick coords instead
if (axis.type === 'category') {
if (axis.type === 'category' && dims != null) {
var tickCoords = axis.getTicksCoords();
var tickIdx = coordSys.clampData(value)[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index
var targetTickId = clampData_1[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index

var isEnd = dims[idx] === 'x1' || dims[idx] === 'y1';

if (isEnd) {
targetTickId += 1;
} // The only contains one tick, tickCoords is
// like [{coord: 0, tickValue: 0}, {coord: 0}]
// to the length should always be larger than 1

if (dims && (dims[idx] === 'x1' || dims[idx] === 'y1')) {
tickIdx += 1;

if (tickCoords.length < 2) {
return;
} else if (tickCoords.length === 2) {
// The left value and right value of the axis are
// the same. coord is 0 in both items. Use the max
// value of the axis as the coord
pt_1[idx] = axis.toGlobalCoord(axis.getExtent()[isEnd ? 1 : 0]);
return;
}

tickIdx > tickCoords.length - 1 && (tickIdx = tickCoords.length - 1);
tickIdx < 0 && (tickIdx = 0);
tickCoords[tickIdx] && (pt_1[idx] = axis.toGlobalCoord(tickCoords[tickIdx].coord));
var leftCoord = void 0;
var coord = void 0;
var stepTickValue = 1;

for (var i = 0; i < tickCoords.length; i++) {
var tickCoord = tickCoords[i].coord; // The last item of tickCoords doesn't contain
// tickValue

var tickValue = i === tickCoords.length - 1 ? tickCoords[i - 1].tickValue + stepTickValue : tickCoords[i].tickValue;

if (tickValue === targetTickId) {
coord = tickCoord;
break;
} else if (tickValue < targetTickId) {
leftCoord = tickCoord;
} else if (leftCoord != null && tickValue > targetTickId) {
coord = (tickCoord + leftCoord) / 2;
break;
}

if (i === 1) {
// Here we assume the step of category axes is
// the same
stepTickValue = tickValue - tickCoords[0].tickValue;
}
}

if (coord == null) {
if (!leftCoord) {
// targetTickId is smaller than all tick ids in the
// visible area, use the leftmost tick coord
coord = tickCoords[0].coord;
} else if (leftCoord) {
// targetTickId is larger than all tick ids in the
// visible area, use the rightmost tick coord
coord = tickCoords[tickCoords.length - 1].coord;
}
}

pt_1[idx] = axis.toGlobalCoord(coord);
}
});
} else {
Expand Down Expand Up @@ -40356,6 +40408,27 @@
return distance * Math.cos(angle) * (isEnd ? 1 : -1);
}

function getSectorCornerRadius(model, shape, zeroIfNull) {
var cornerRadius = model.get('borderRadius');

if (cornerRadius == null) {
return zeroIfNull ? {
cornerRadius: 0
} : null;
}

if (!isArray(cornerRadius)) {
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
}

var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
return {
cornerRadius: map(cornerRadius, function (cr) {
return parsePercent(cr, dr);
})
};
}

var mathMax$6 = Math.max;
var mathMin$6 = Math.min;

Expand Down Expand Up @@ -40488,6 +40561,8 @@

if (coord.type === 'cartesian2d') {
bgEl.setShape('r', barBorderRadius);
} else {
bgEl.setShape('cornerRadius', barBorderRadius);
}

bgEls[dataIndex] = bgEl;
Expand Down Expand Up @@ -40560,6 +40635,8 @@

if (coord.type === 'cartesian2d') {
bgEl.setShape('r', barBorderRadius);
} else {
bgEl.setShape('cornerRadius', barBorderRadius);
}

bgEls[newIndex] = bgEl;
Expand Down Expand Up @@ -40953,7 +41030,7 @@
var sectorShape = sector.shape;
var animateProperty = isRadial ? 'r' : 'endAngle';
var animateTarget = {};
sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;
sectorShape[animateProperty] = isRadial ? layout.r0 : layout.startAngle;
animateTarget[animateProperty] = layout[animateProperty];
(isUpdate ? updateProps : initProps)(sector, {
shape: animateTarget // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
Expand Down Expand Up @@ -41103,7 +41180,13 @@
var style = data.getItemVisual(dataIndex, 'style');

if (!isPolar) {
el.setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);
var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0;
el.setShape('r', borderRadius);
} else if (!seriesModel.get('roundCap')) {
var sectorShape = el.shape;
var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);
extend(sectorShape, cornerRadius);
el.setShape(sectorShape);
}

el.useStyle(style);
Expand Down Expand Up @@ -42082,27 +42165,6 @@
}
}

function getSectorCornerRadius(model, shape, zeroIfNull) {
var cornerRadius = model.get('borderRadius');

if (cornerRadius == null) {
return zeroIfNull ? {
cornerRadius: 0
} : null;
}

if (!isArray(cornerRadius)) {
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
}

var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
return {
cornerRadius: map(cornerRadius, function (cr) {
return parsePercent(cr, dr);
})
};
}

/**
* Piece of pie including Sector, Label, LabelLine
*/
Expand Down Expand Up @@ -44001,7 +44063,7 @@
handleAutoShown: function () {
return true;
}
}); // FIXME Not use a seperate text group?
}); // FIXME Not use a separate text group?

var transformGroup = new Group({
x: opt.position[0],
Expand Down Expand Up @@ -44509,7 +44571,7 @@
// in category axis.
// (2) Compatible with previous version, which always use formatted label as
// input. But in interval scale the formatted label is like '223,445', which
// maked user repalce ','. So we modify it to return original val but remain
// maked user replace ','. So we modify it to return original val but remain
// it as 'string' to avoid error in replacing.
axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor
})
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts.simple.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/echarts.simple.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions i18n/langCS-obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
}
}
};

for (var key in localeObj) {
if (localeObj.hasOwnProperty(key)) {
exports[key] = localeObj[key];
Expand Down
1 change: 1 addition & 0 deletions i18n/langCS.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
}
}
};

echarts.registerLocale('CS', localeObj);

});
Loading