提交 37fc6202 编写于 作者: K kener

axis对齐优化 #294

上级 ab4aa4c0
......@@ -56,33 +56,37 @@ define(function (require) {
case 'left' :
axShape.style = {
xStart : this.grid.getX() - halfLineWidth,
yStart : this.grid.getYend() + halfLineWidth,
yStart : this.grid.getYend(),
xEnd : this.grid.getX() - halfLineWidth,
yEnd : this.grid.getY() - halfLineWidth
yEnd : this.grid.getY(),
lineCap : 'round'
};
break;
case 'right' :
axShape.style = {
xStart : this.grid.getXend() + halfLineWidth,
yStart : this.grid.getYend() + halfLineWidth,
yStart : this.grid.getYend(),
xEnd : this.grid.getXend() + halfLineWidth,
yEnd : this.grid.getY() - halfLineWidth
yEnd : this.grid.getY(),
lineCap : 'round'
};
break;
case 'bottom' :
axShape.style = {
xStart : this.grid.getX() - halfLineWidth,
xStart : this.grid.getX(),
yStart : this.grid.getYend() + halfLineWidth,
xEnd : this.grid.getXend() + halfLineWidth,
yEnd : this.grid.getYend() + halfLineWidth
xEnd : this.grid.getXend(),
yEnd : this.grid.getYend() + halfLineWidth,
lineCap : 'round'
};
break;
case 'top' :
axShape.style = {
xStart : this.grid.getX() - halfLineWidth,
xStart : this.grid.getX(),
yStart : this.grid.getY() - halfLineWidth,
xEnd : this.grid.getXend() + halfLineWidth,
yEnd : this.grid.getY() - halfLineWidth
xEnd : this.grid.getXend(),
yEnd : this.grid.getY() - halfLineWidth,
lineCap : 'round'
};
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册