Skip to content

Commit

Permalink
whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Hasselberg committed Apr 29, 2011
1 parent 1054b37 commit 8aa3be6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/js/smoothie.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function TimeSeries(options) {
options.resetBounds = options.resetBounds || true; // Enable or disable the resetBounds timer
this.options = options;
this.data = [];

this.maxValue = Number.NaN; // The maximum value ever seen in this time series.
this.minValue = Number.NaN; // The minimum value ever seen in this time series.

Expand Down Expand Up @@ -81,7 +81,7 @@ SmoothieChart.prototype.addTimeSeries = function(timeSeries, options) {
};

SmoothieChart.prototype.removeTimeSeries = function(timeSeries) {
this.seriesSet.splice(this.seriesSet.indexOf(timeSeries), 1);
this.seriesSet.splice(this.seriesSet.indexOf(timeSeries), 1);
};

SmoothieChart.prototype.streamTo = function(canvas, delay) {
Expand All @@ -106,7 +106,7 @@ SmoothieChart.prototype.render = function(canvas, time) {

// Move the origin.
canvasContext.translate(dimensions.left, dimensions.top);

// Create a clipped rectangle - anything we draw will be constrained to this rectangle.
// This prevents the occasional pixels from curves near the edges overrunning and creating
// screen cheese (that phrase should neeed no explanation).
Expand Down Expand Up @@ -177,7 +177,7 @@ SmoothieChart.prototype.render = function(canvas, time) {
if (options.minValue != null)
minValue = options.minValue;
var valueRange = maxValue - minValue;

// For each data set...
for (var d = 0; d < this.seriesSet.length; d++) {
canvasContext.save();
Expand Down Expand Up @@ -257,4 +257,4 @@ SmoothieChart.prototype.render = function(canvas, time) {
}

canvasContext.restore(); // See .save() above.
}
}

0 comments on commit 8aa3be6

Please sign in to comment.