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 2019/11/21 04:42:28 UTC

[incubator-echarts] branch fix-heatmap-seam created (now 67074e5)

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

shenyi pushed a change to branch fix-heatmap-seam
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


      at 67074e5  fix(heatmap): Remove seams in heatmap

This branch includes the following new commits:

     new 67074e5  fix(heatmap): Remove seams in heatmap

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-echarts] 01/01: fix(heatmap): Remove seams in heatmap

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

View the commit online:
https://github.com/apache/incubator-echarts/commit/67074e5c946e8501d59435b3a3ececee0c0d5120

commit 67074e5c946e8501d59435b3a3ececee0c0d5120
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Nov 21 12:41:55 2019 +0800

    fix(heatmap): Remove seams in heatmap
---
 src/chart/heatmap/HeatmapView.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/chart/heatmap/HeatmapView.js b/src/chart/heatmap/HeatmapView.js
index 62a013a..be99ac4 100644
--- a/src/chart/heatmap/HeatmapView.js
+++ b/src/chart/heatmap/HeatmapView.js
@@ -185,10 +185,10 @@ export default echarts.extendChartView({
 
                 rect = new graphic.Rect({
                     shape: {
-                        x: point[0] - width / 2,
-                        y: point[1] - height / 2,
-                        width: width,
-                        height: height
+                        x: Math.floor(point[0] - width / 2),
+                        y: Math.floor(point[1] - height / 2),
+                        width: Math.ceil(width),
+                        height: Math.ceil(height)
                     },
                     style: {
                         fill: data.getItemVisual(idx, 'color'),


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