Skip to content

Commit

Permalink
Removed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
buejoh authored and compwright committed Jan 23, 2017
1 parent d24ffaa commit 6b4826a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/types/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = function(Chart) {
draw: function() {
var view = this._view;
var ctx = this.chartInstance.chart.ctx;

if (!view.clip) {
return;
}
Expand Down Expand Up @@ -198,7 +198,7 @@ module.exports = function(Chart) {
var dy = this.getY(x),
dx = this.getX(y);
return (
(!isFinite(dy) || Math.abs(y - dy) < epsilon) &&
(!isFinite(dy) || Math.abs(y - dy) < epsilon) &&
(!isFinite(dx) || Math.abs(x - dx) < epsilon)
);
};
Expand All @@ -216,23 +216,23 @@ module.exports = function(Chart) {
ret.y = view.y1 + ya;
ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
break;

// bottom align
case view.mode == verticalKeyword && view.labelPosition == "bottom":
ya = height + padHeight + view.labelYAdjust;
xa = (width / 2) + view.labelXAdjust;
ret.y = view.y2 - ya;
ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
break;

// left align
case view.mode == horizontalKeyword && view.labelPosition == "left":
xa = padWidth + view.labelXAdjust;
ya = -(height / 2) + view.labelYAdjust;
ret.x = view.x1 + xa;
ret.y = line.getY(ret.x) + ya;
break;

// right align
case view.mode == horizontalKeyword && view.labelPosition == "right":
xa = width + padWidth + view.labelXAdjust;
Expand Down

0 comments on commit 6b4826a

Please sign in to comment.