You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/01/02 14:25:02 UTC
[incubator-echarts] branch feat/symbol-clip updated: fix(symbol):
remove previous symbol clip first.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch feat/symbol-clip
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/feat/symbol-clip by this push:
new 6fd021c fix(symbol): remove previous symbol clip first.
6fd021c is described below
commit 6fd021c2cf04e89a48a5fbd2ef175b01a2ba6a96
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Sat Jan 2 22:22:31 2021 +0800
fix(symbol): remove previous symbol clip first.
---
src/chart/helper/Symbol.ts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/chart/helper/Symbol.ts b/src/chart/helper/Symbol.ts
index d0ebeb0..e27ec12 100644
--- a/src/chart/helper/Symbol.ts
+++ b/src/chart/helper/Symbol.ts
@@ -329,6 +329,7 @@ class Symbol extends graphic.Group {
this._sizeY = symbolSize[1] / 2;
// symbol clip
+ symbolPath.removeClipPath();
const symbolClip = data.getItemVisual(idx, 'symbolClip');
if (symbolClip) {
const clipPath = makeSymbolClipPath(symbolClip, symbolSize);
@@ -340,9 +341,6 @@ class Symbol extends graphic.Group {
symbolPath.getTextContent() && (symbolPath.getTextContent().ignoreClip = true);
}
}
- else {
- symbolPath.removeClipPath();
- }
// Do not execute util needed.
function getLabelDefaultText(idx: number) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org