You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2022/01/17 08:30:23 UTC
[echarts] 01/01: Merge branch 'master' into next-to-master
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next-to-master
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 841b572ceb37593ec1d9680d0b4ee19e7b138ca1
Merge: 50fd888 6b78d5a
Author: pissang <bm...@gmail.com>
AuthorDate: Mon Jan 17 16:25:44 2022 +0800
Merge branch 'master' into next-to-master
.github/ISSUE_TEMPLATE.md | 10 -
.github/ISSUE_TEMPLATE/bug_report.yml | 101 +++++++
.github/ISSUE_TEMPLATE/config.yml | 6 +
.github/ISSUE_TEMPLATE/feature_request.yml | 39 +++
.github/pull_request_template.md | 6 +-
.github/workflows/ci.yml | 6 +-
.github/workflows/nightly-next.yml | 2 +-
.github/workflows/nightly.yml | 2 +-
.github/workflows/source-release.yml | 10 +-
.github/workflows/stale.yml | 2 +-
NOTICE | 4 +-
README.md | 22 +-
src/animation/universalTransition.ts | 8 +-
src/chart/bar/PictorialBarView.ts | 4 +-
src/chart/pie/labelLayout.ts | 189 ++++++++++---
src/chart/treemap/TreemapSeries.ts | 3 +-
src/component/radar/RadarView.ts | 4 +
src/coord/radar/RadarModel.ts | 5 +
src/i18n/langIT.ts | 142 ++++++++++
src/model/mixin/textStyle.ts | 36 +--
src/preprocessor/helper/compatStyle.ts | 7 +
src/util/shape/sausage.ts | 40 +--
src/util/states.ts | 8 +-
src/view/Chart.ts | 19 +-
test/bar3.html | 6 +-
test/graph-edge-highlight.html | 199 ++++++++++++++
test/lib/testHelper.js | 18 ++
test/pictorial-zero-value-offset.html | 313 ++++++++++++++++++++++
test/pie-label-alignTo-adjust.html | 150 +++++++++++
test/{pie-alignTo.html => pie-label-alignTo.html} | 61 ++++-
test/pie-label-rotate.html | 96 ++++---
test/pie-label.html | 36 +++
test/radar3.html | 21 +-
33 files changed, 1405 insertions(+), 170 deletions(-)
diff --cc src/chart/pie/labelLayout.ts
index c8fa9a4,8d71a4f..9aaf1bf
--- a/src/chart/pie/labelLayout.ts
+++ b/src/chart/pie/labelLayout.ts
@@@ -350,10 -455,11 +455,11 @@@ export default function pieLabelLayout
: (nx > 0 ? 'left' : 'right'));
}
- let labelRotate;
+ const PI = Math.PI;
+ let labelRotate = 0;
const rotate = labelModel.get('rotate');
- if (typeof rotate === 'number') {
+ if (isNumber(rotate)) {
- labelRotate = rotate * (Math.PI / 180);
+ labelRotate = rotate * (PI / 180);
}
else if (labelPosition === 'center') {
labelRotate = 0;
diff --cc src/view/Chart.ts
index 8151096,9edb5e8..bb46399
--- a/src/view/Chart.ts
+++ b/src/view/Chart.ts
@@@ -35,7 -35,7 +35,8 @@@ import
} from '../util/types';
import { SeriesTaskContext, SeriesTask } from '../core/Scheduler';
import SeriesData from '../data/SeriesData';
+import { traverseElements } from '../util/graphic';
+ import { error } from '../util/log';
const inner = modelUtil.makeInner<{
updateMethod: keyof ChartView
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org