Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0c013fe
feat(axis): custom axis tick/label positions. close #13627
dvdkon Nov 17, 2020
aaa2a48
feat: barSeries.startValue added
jiawulin001 May 21, 2022
7eae814
extra testcases added
jiawulin001 Jun 13, 2022
323eca7
feat: rewrite changes to make dataZoom work
jiawulin001 Jun 14, 2022
0d3a289
fix: fix the build bug caused by changes
jiawulin001 Jun 14, 2022
f74ede1
fix: fix the build bug caused by changes
jiawulin001 Jun 14, 2022
0e862ce
Merge branch 'issue#17077' of https://github.com/jiawulin001/echarts …
jiawulin001 Jun 14, 2022
57b8c97
feat(treemap): add scaleLimit to limit the zooming. close #14599
Feb 23, 2023
8921fec
feat(treemap): add scaleLimit to limit the zooming. close #14599
Apr 11, 2023
9f1d4fb
fix: prototype _onZoom not effect
Apr 20, 2023
0c5d5e7
feat(treemap):remove coordinateSystem
Apr 21, 2023
4f0bb65
feat(treemap): add scaleLimit with controllerHost
Apr 21, 2023
b0f77e8
feat(treemap): onZoom without controllerHost
Apr 21, 2023
4dbfcfa
fix: custom onZoom
Apr 25, 2023
9168031
feat(treemap): reset zoom when chart restore
May 4, 2023
952fa45
chore: merge
Ovilia May 10, 2024
0c90824
fix: fix failed test cases and improve code
Ovilia May 10, 2024
a4db0d4
Merge pull request #17078 from jiawulin001/issue#17077
Ovilia May 21, 2024
4b2d52f
Merge pull request #18304 from liuyizhou/fix-14599
Ovilia Jun 11, 2024
7faa2e1
test(treemap): update test case for #18304
Ovilia Jun 11, 2024
0ee9498
test(treemap): record test visual action for #18304
Ovilia Jun 11, 2024
71541f8
fix: In users' .d.ts `import('echarts/types/dist/shared')` can not vi…
100pah Jun 13, 2024
a209486
Merge branch 'master' into fix/ts-type-visibility
100pah Jun 13, 2024
b61f6c0
Merge pull request #20030 from apache/fix/ts-type-visibility
Ovilia Jun 14, 2024
0ab5f72
Merge pull request #20020 from apache/feat-treemap-test
pissang Jun 17, 2024
a282471
Merge pull request #19919 from apache/dvdkon-fix-13627
pissang Jun 17, 2024
9557620
Merge pull request #20037 from apache/master
pissang Jun 17, 2024
ca9ed74
chore: release 5.6.0
pissang Jun 17, 2024
486f24f
change version from 5.6.0 to 5.5.1
pissang Jun 18, 2024
4c015dd
chore(deps-dev): bump ws from 7.5.7 to 7.5.10
dependabot[bot] Jun 18, 2024
ad947d6
fix(tooltip): fix tooltip XSS issue when legend name is HTML string
plainheart Jun 18, 2024
9d2bab0
Merge pull request #20044 from apache/dependabot/npm_and_yarn/ws-7.5.10
plainheart Jun 18, 2024
c1727a6
refactor(tooltip): add `encodeHTMLContent` option to specify whether …
plainheart Jun 19, 2024
6221076
test(tooltip): update test case for tooltip xss
plainheart Jun 19, 2024
efa3e5a
Merge pull request #20045 from apache/fix/tooltip-xss
plainheart Jun 19, 2024
34889d9
build release
pissang Jun 19, 2024
2caf684
Merge pull request #20039 from apache/release-dev
pissang Jun 19, 2024
d3d974f
feat: add role region to div tag when aria: true
ViniciusCestarii Jun 19, 2024
562889e
chore(workflow): use forked workflow deps for timely update & fix typo
plainheart Jun 20, 2024
40c2870
Merge pull request #20051 from apache/wokflow-deps
Ovilia Jun 20, 2024
b15b918
fix: change ARIA role from region to img for accessibility
ViniciusCestarii Jun 20, 2024
64539fe
refactor: move dom.setAttribute('role', 'img') to reduce duplication
ViniciusCestarii Jun 21, 2024
32eeb07
Merge pull request #20050 from ViniciusCestarii/aria-role
Ovilia Jun 24, 2024
a6d0463
Merge pull request #20084 from apache/release
plainheart Jun 27, 2024
369cb03
fix(custom): grid area clipping in custom series #19993 (#20043)
fandi-1205 Jun 28, 2024
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
7 changes: 3 additions & 4 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
return jobsRes.data.jobs.some((job) => job.name.includes('build') && job.conclusion === 'success');

outputs:
SHOULD_DEPOLY: ${{ steps.check-build-success.outputs.result }}
SHOULD_DEPLOY: ${{ steps.check-build-success.outputs.result }}

deploy:
needs: [on-success]
if: ${{ needs.on-success.outputs.SHOULD_DEPOLY == 'true' }}
if: ${{ needs.on-success.outputs.SHOULD_DEPLOY == 'true' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -38,7 +38,7 @@ jobs:
mkdir .actions
cd .actions
git clone --depth=1 https://github.com/dawidd6/action-download-artifact.git
git clone --depth=1 https://github.com/actions-cool/maintain-one-comment.git
git clone --depth=1 https://github.com/plainheart/maintain-one-comment.git

- name: Fetch PR dist files
uses: ./.actions/action-download-artifact
Expand Down Expand Up @@ -70,7 +70,6 @@ jobs:
COMMIT_SHA_SHORT: ${{ steps.pr-metadata.outputs.COMMIT_SHA_SHORT }}
with:
body: |
<!-- ECHARTS_PR_PREVIEW -->
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-${{ env.PR_NUMBER }}@${{ env.COMMIT_SHA_SHORT }}
body-include: '<!-- ECHARTS_PR_PREVIEW -->'
number: ${{ env.PR_NUMBER }}
2 changes: 1 addition & 1 deletion .github/workflows/teardown-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install action dependencies
run: git clone --depth=1 https://github.com/actions-cool/maintain-one-comment.git
run: git clone --depth=1 https://github.com/plainheart/maintain-one-comment.git

- name: Delete PR preview comment
uses: ./maintain-one-comment
Expand Down
114 changes: 95 additions & 19 deletions dist/echarts.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
else {
text = text || '';
font = font || DEFAULT_FONT;
var res = /(\d+)px/.exec(font);
var res = /((?:\d+)?\.?\d*)px/.exec(font);
var fontSize = res && +res[1] || DEFAULT_FONT_SIZE;
var width = 0;
if (font.indexOf('mono') >= 0) {
Expand Down Expand Up @@ -7370,7 +7370,7 @@
function registerSSRDataGetter(getter) {
ssrDataGetter = getter;
}
var version = '5.5.0';
var version = '5.6.0';

var zrender = /*#__PURE__*/Object.freeze({
__proto__: null,
Expand Down Expand Up @@ -14837,6 +14837,7 @@
name: itemName,
option: defaults({
content: itemName,
encodeHTMLContent: true,
formatterParams: formatterParams
}, itemTooltipOptionObj)
};
Expand Down Expand Up @@ -16102,13 +16103,15 @@
var m = date[minutesGetterName(isUTC)]();
var s = date[secondsGetterName(isUTC)]();
var S = date[millisecondsGetterName(isUTC)]();
var a = H >= 12 ? 'pm' : 'am';
var A = a.toUpperCase();
var localeModel = lang instanceof Model ? lang : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();
var timeModel = localeModel.getModel('time');
var month = timeModel.get('month');
var monthAbbr = timeModel.get('monthAbbr');
var dayOfWeek = timeModel.get('dayOfWeek');
var dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');
return (template || '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, pad(y % 100 + '', 2)).replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + '');
return (template || '').replace(/{a}/g, a + '').replace(/{A}/g, A + '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, pad(y % 100 + '', 2)).replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + '');
}
function leveledFormat(tick, idx, formatter, lang, isUTC) {
var template = null;
Expand Down Expand Up @@ -17443,8 +17446,8 @@
function detectValue(val) {
var beStr = isString(val);
// Consider usage convenience, '1', '2' will be treated as "number".
// `isFinit('')` get `true`.
if (val != null && isFinite(val) && val !== '') {
// `Number('')` (or any whitespace) is `0`.
if (val != null && Number.isFinite(Number(val)) && val !== '') {
return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;
} else if (beStr && val !== '-') {
return BE_ORDINAL.Must;
Expand Down Expand Up @@ -20203,7 +20206,7 @@
return value == null || value === '' ? NaN
// If string (like '-'), using '+' parse to NaN
// If object, also parse to NaN
: +value;
: Number(value);
}
var valueParserMap = createHashMap({
'number': function (val) {
Expand Down Expand Up @@ -22463,7 +22466,7 @@
var task = getCurrentTask(this);
if (task) {
var data = task.context.data;
return dataType == null ? data : data.getLinkedData(dataType);
return dataType == null || !data.getLinkedData ? data : data.getLinkedData(dataType);
} else {
// When series is not alive (that may happen when click toolbox
// restore or setOption with not merge mode), series data may
Expand Down Expand Up @@ -25937,9 +25940,9 @@
return implsStore[name];
}

var version$1 = '5.5.0';
var version$1 = '5.5.1';
var dependencies = {
zrender: '5.5.0'
zrender: '5.6.0'
};
var TEST_FRAME_REMAIN_TIME = 1;
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
Expand Down Expand Up @@ -31280,11 +31283,11 @@
var value = store.get(stacked ? stackedDimIdx : valueDimIdx, dataIndex);
var baseValue = store.get(baseDimIdx, dataIndex);
var baseCoord = valueAxisStart;
var startValue = void 0;
var stackStartValue = void 0;
// Because of the barMinHeight, we can not use the value in
// stackResultDimension directly.
if (stacked) {
startValue = +value - store.get(valueDimIdx, dataIndex);
stackStartValue = +value - store.get(valueDimIdx, dataIndex);
}
var x = void 0;
var y = void 0;
Expand All @@ -31293,7 +31296,7 @@
if (isValueAxisH) {
var coord = cartesian.dataToPoint([value, baseValue]);
if (stacked) {
var startCoord = cartesian.dataToPoint([startValue, baseValue]);
var startCoord = cartesian.dataToPoint([stackStartValue, baseValue]);
baseCoord = startCoord[0];
}
x = baseCoord;
Expand All @@ -31306,7 +31309,7 @@
} else {
var coord = cartesian.dataToPoint([baseValue, value]);
if (stacked) {
var startCoord = cartesian.dataToPoint([baseValue, startValue]);
var startCoord = cartesian.dataToPoint([baseValue, stackStartValue]);
baseCoord = startCoord[1];
}
x = coord[0] + columnOffset;
Expand Down Expand Up @@ -31359,7 +31362,11 @@
}
// See cases in `test/bar-start.html` and `#7412`, `#8747`.
function getValueAxisStart(baseAxis, valueAxis) {
return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));
var startValue = valueAxis.model.get('startValue');
if (!startValue) {
startValue = 0;
}
return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? startValue > 0 ? startValue : 1 : startValue));
}

// FIXME 公用?
Expand Down Expand Up @@ -31951,7 +31958,11 @@
this._dataMax = dataExtent[1];
var isOrdinal = this._isOrdinal = scale.type === 'ordinal';
this._needCrossZero = scale.type === 'interval' && model.getNeedCrossZero && model.getNeedCrossZero();
var modelMinRaw = this._modelMinRaw = model.get('min', true);
var axisMinValue = model.get('min', true);
if (axisMinValue == null) {
axisMinValue = model.get('startValue', true);
}
var modelMinRaw = this._modelMinRaw = axisMinValue;
if (isFunction(modelMinRaw)) {
// This callback always provides users the full data extent (before data is filtered).
this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({
Expand Down Expand Up @@ -33002,7 +33013,36 @@
});

var inner$5 = makeInner();
function tickValuesToNumbers(axis, values) {
var nums = map(values, function (val) {
return axis.scale.parse(val);
});
if (axis.type === 'time' && nums.length > 0) {
// Time axis needs duplicate first/last tick (see TimeScale.getTicks())
// The first and last tick/label don't get drawn
nums.sort();
nums.unshift(nums[0]);
nums.push(nums[nums.length - 1]);
}
return nums;
}
function createAxisLabels(axis) {
var custom = axis.getLabelModel().get('customValues');
if (custom) {
var labelFormatter_1 = makeLabelFormatter(axis);
return {
labels: tickValuesToNumbers(axis, custom).map(function (numval) {
var tick = {
value: numval
};
return {
formattedLabel: labelFormatter_1(tick),
rawLabel: axis.scale.getLabel(tick),
tickValue: numval
};
})
};
}
// Only ordinal scale support tick interval
return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis);
}
Expand All @@ -33015,6 +33055,12 @@
* }
*/
function createAxisTicks(axis, tickModel) {
var custom = axis.getTickModel().get('customValues');
if (custom) {
return {
ticks: tickValuesToNumbers(axis, custom)
};
}
// Only ordinal scale support tick interval
return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : {
ticks: map(axis.scale.getTicks(), function (tick) {
Expand Down Expand Up @@ -40359,6 +40405,10 @@
var halfPadAngle = dir * padAngle / 2;
normalizeArcAngles(angles, !clockwise);
startAngle = angles[0], endAngle = angles[1];
var layoutData = getSeriesLayoutData(seriesModel);
layoutData.startAngle = startAngle;
layoutData.endAngle = endAngle;
layoutData.clockwise = clockwise;
var angleRange = Math.abs(endAngle - startAngle);
// In the case some sector angle is smaller than minAngle
var restAngle = angleRange;
Expand Down Expand Up @@ -40467,6 +40517,7 @@
}
});
}
var getSeriesLayoutData = makeInner();

/*
* Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -41147,8 +41198,9 @@
}
// when all data are filtered, show lightgray empty circle
if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {
var layoutData = getSeriesLayoutData(seriesModel);
var sector = new Sector({
shape: getBasicPieLayout(seriesModel, api)
shape: extend(getBasicPieLayout(seriesModel, api), layoutData)
});
sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());
this._emptyCircleSector = sector;
Expand Down Expand Up @@ -47990,7 +48042,6 @@
return featureName.indexOf('my') === 0;
}

/* global window, document */
var SaveAsImage = /** @class */function (_super) {
__extends(SaveAsImage, _super);
function SaveAsImage() {
Expand All @@ -48010,7 +48061,7 @@
});
var browser = env.browser;
// Chrome, Firefox, New Edge
if (isFunction(MouseEvent) && (browser.newEdge || !browser.ie && !browser.edge)) {
if (typeof MouseEvent === 'function' && (browser.newEdge || !browser.ie && !browser.edge)) {
var $a = document.createElement('a');
$a.download = title + '.' + type;
$a.target = '_blank';
Expand Down Expand Up @@ -51105,16 +51156,27 @@
});
};
TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
var isHTMLRenderMode = this._renderMode === 'html';
var ecData = getECData(el);
var tooltipConfig = ecData.tooltipConfig;
var tooltipOpt = tooltipConfig.option || {};
var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
if (isString(tooltipOpt)) {
var content = tooltipOpt;
tooltipOpt = {
content: content,
// Fixed formatter
formatter: content
};
// when `tooltipConfig.option` is a string rather than an object,
// we can't know if the content needs to be encoded
// for the sake of security, encode it by default.
encodeHTMLContent = true;
}
if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
// clone might be unnecessary?
tooltipOpt = clone(tooltipOpt);
tooltipOpt.content = encodeHTML(tooltipOpt.content);
}
var tooltipModelCascade = [tooltipOpt];
var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);
Expand Down Expand Up @@ -51787,6 +51849,16 @@
MarkerModel.prototype.setData = function (data) {
this._data = data;
};
MarkerModel.prototype.getDataParams = function (dataIndex, dataType) {
var params = DataFormatMixin.prototype.getDataParams.call(this, dataIndex, dataType);
var hostSeries = this.__hostSeries;
if (hostSeries) {
params.seriesId = hostSeries.id;
params.seriesName = hostSeries.name;
params.seriesType = hostSeries.subType;
}
return params;
};
MarkerModel.getMarkerModelFromSeries = function (seriesModel,
// Support three types of markers. Strict check.
componentType) {
Expand Down Expand Up @@ -56267,13 +56339,17 @@
}
}
function setLabel() {
var dom = api.getZr().dom;
// TODO: support for SSR
if (!dom) {
return;
}
var labelLocale = ecModel.getLocaleModel().get('aria');
var labelModel = ariaModel.getModel('label');
labelModel.option = defaults(labelModel.option, labelLocale);
if (!labelModel.get('enabled')) {
return;
}
var dom = api.getZr().dom;
if (labelModel.get('description')) {
dom.setAttribute('aria-label', labelModel.get('description'));
return;
Expand Down
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.

Loading