From bf14323b12b43ee23d9f5888f957d9ce26d370cc Mon Sep 17 00:00:00 2001 From: yufeng04 <740135965@qq.com> Date: Fri, 2 Apr 2021 17:16:50 +0800 Subject: [PATCH] gauge has decal & the symbolStyle will not be reused --- src/chart/gauge/GaugeView.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/chart/gauge/GaugeView.ts b/src/chart/gauge/GaugeView.ts index 489456e81..10687f5b9 100644 --- a/src/chart/gauge/GaugeView.ts +++ b/src/chart/gauge/GaugeView.ts @@ -493,18 +493,8 @@ class GaugeView extends ChartView { }, symbolStyle)); } else { - if (pointer.__isEmptyBrush) { - // fill and stroke will be swapped if it's empty. - // So we cloned a new style to avoid it affecting the original style in visual storage. - // TODO Better implementation. No empty logic! - pointer.useStyle(extend({}, symbolStyle)); - } - else { - pointer.useStyle(symbolStyle); - } + pointer.useStyle(symbolStyle); if (pointer.type !== 'pointer') { - // Disable decal because symbol scale will been applied on the decal. - pointer.style.decal = null; pointer.setColor(visualColor); pointer.style.strokeNoScale = true; } -- GitLab