You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2019/10/22 03:09:25 UTC
[incubator-echarts] 01/01: refactor(polar): fix circular dependence
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch fix-11393
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 95f3e48193951b9053e4ee9cbe9bfae75c7d6a05
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Oct 22 11:08:36 2019 +0800
refactor(polar): fix circular dependence
---
src/chart/bar/BarView.js | 3 ++-
src/util/graphic.js | 3 ---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/chart/bar/BarView.js b/src/chart/bar/BarView.js
index a04dc7f..56373a6 100644
--- a/src/chart/bar/BarView.js
+++ b/src/chart/bar/BarView.js
@@ -27,6 +27,7 @@ import barItemStyle from './barItemStyle';
import Path from 'zrender/src/graphic/Path';
import {throttle} from '../../util/throttle';
import {createClipPath} from '../helper/createClipPathFromCoordSys';
+import {Sausage} from '../../util/symbol';
var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'barBorderWidth'];
var _eventPos = [0, 0];
@@ -334,7 +335,7 @@ var elementCreator = {
// or less than startAngle.
var clockwise = layout.startAngle < layout.endAngle;
- var ShapeClass = (!isRadial && roundCap) ? graphic.Sausage : graphic.Sector;
+ var ShapeClass = (!isRadial && roundCap) ? Sausage : graphic.Sector;
var sector = new ShapeClass({
shape: zrUtil.defaults({clockwise: clockwise}, layout)
diff --git a/src/util/graphic.js b/src/util/graphic.js
index 569d8a6..df4efc1 100644
--- a/src/util/graphic.js
+++ b/src/util/graphic.js
@@ -42,7 +42,6 @@ import RadialGradient from 'zrender/src/graphic/RadialGradient';
import BoundingRect from 'zrender/src/core/BoundingRect';
import IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';
import * as subPixelOptimizeUtil from 'zrender/src/graphic/helper/subPixelOptimize';
-import {Sausage} from './symbol';
var mathMax = Math.max;
@@ -1433,7 +1432,6 @@ function nearZero(val) {
// by users, although we do not recommend that.
registerShape('circle', Circle);
registerShape('sector', Sector);
-registerShape('sausage', Sausage);
registerShape('ring', Ring);
registerShape('polygon', Polygon);
registerShape('polyline', Polyline);
@@ -1448,7 +1446,6 @@ export {
Text,
Circle,
Sector,
- Sausage,
Ring,
Polygon,
Polyline,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org