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:29 UTC
[incubator-echarts] 01/01: fix(heatmap): Remove seams in heatmap
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