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 2020/04/10 06:15:38 UTC

[incubator-echarts] branch master updated: fix(line): fix line clip bug in chromium

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 39dc974  fix(line): fix line clip bug in chromium
     new 4d06b72  Merge pull request #12393 from zhanfang/master
39dc974 is described below

commit 39dc974da647fc624e436f3e52154aebbe688327
Author: zhanfang <zh...@baidu.com>
AuthorDate: Tue Apr 7 20:48:33 2020 +0800

    fix(line): fix line clip bug in chromium
---
 src/chart/helper/createClipPathFromCoordSys.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/chart/helper/createClipPathFromCoordSys.js b/src/chart/helper/createClipPathFromCoordSys.js
index feabeb2..42f9380 100644
--- a/src/chart/helper/createClipPathFromCoordSys.js
+++ b/src/chart/helper/createClipPathFromCoordSys.js
@@ -35,6 +35,10 @@ function createGridClipPath(cartesian, hasAnimation, seriesModel) {
     width += lineWidth;
     height += lineWidth;
 
+    // fix: https://github.com/apache/incubator-echarts/issues/11369
+    x = Math.floor(x);
+    width = Math.round(width);
+
     var clipPath = new graphic.Rect({
         shape: {
             x: x,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org