Skip to content

Commit

Permalink
fixed apache#1079
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Dec 24, 2014
1 parent 2cb5b58 commit c92b766
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chart/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,11 @@ define(function (require) {
? zrColor.lift(barShape.style.color, -0.3)
: barShape.style.color
);
//亚像素优化
barShape.style.x = Math.floor(barShape.style.x);
barShape.style.y = Math.floor(barShape.style.y);
barShape.style.height = Math.ceil(barShape.style.height);
barShape.style.width = Math.ceil(barShape.style.width);
// 考虑线宽的显示优化
if (normalBorderWidth > 0
&& barShape.style.height > normalBorderWidth
Expand Down

0 comments on commit c92b766

Please sign in to comment.