projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a703cbd
)
Fixed wrong space usage in if clauses.
author
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Wed, 19 Jun 2013 08:10:24 +0000
(10:10 +0200)
committer
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Wed, 19 Jun 2013 08:10:24 +0000
(10:10 +0200)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
7556a7e
..
1ee711c
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1412,7
+1412,7
@@
Dygraph.prototype.drawZoomRect_ = function(direction, startX, endX, startY,
if (prevDirection == Dygraph.HORIZONTAL) {
ctx.clearRect(Math.min(startX, prevEndX), this.layout_.getPlotArea().y,
Math.abs(startX - prevEndX), this.layout_.getPlotArea().h);
if (prevDirection == Dygraph.HORIZONTAL) {
ctx.clearRect(Math.min(startX, prevEndX), this.layout_.getPlotArea().y,
Math.abs(startX - prevEndX), this.layout_.getPlotArea().h);
- } else if (prevDirection == Dygraph.VERTICAL){
+ } else if (prevDirection == Dygraph.VERTICAL)
{
ctx.clearRect(this.layout_.getPlotArea().x, Math.min(startY, prevEndY),
this.layout_.getPlotArea().w, Math.abs(startY - prevEndY));
}
ctx.clearRect(this.layout_.getPlotArea().x, Math.min(startY, prevEndY),
this.layout_.getPlotArea().w, Math.abs(startY - prevEndY));
}
@@
-1860,7
+1860,7
@@
Dygraph.prototype.mouseMove_ = function(event) {
* @private
*/
Dygraph.prototype.getLeftBoundary_ = function(setIdx) {
* @private
*/
Dygraph.prototype.getLeftBoundary_ = function(setIdx) {
- if
(this.boundaryIds_[setIdx])
{
+ if
(this.boundaryIds_[setIdx])
{
return this.boundaryIds_[setIdx][0];
} else {
for (var i = 0; i < this.boundaryIds_.length; i++) {
return this.boundaryIds_[setIdx][0];
} else {
for (var i = 0; i < this.boundaryIds_.length; i++) {
@@
-2212,7
+2212,7
@@
Dygraph.prototype.predraw_ = function() {
this.plotter_.clear();
}
this.plotter_.clear();
}
- if(!this.is_initial_draw_) {
+ if
(!this.is_initial_draw_) {
this.canvas_ctx_.restore();
this.hidden_ctx_.restore();
}
this.canvas_ctx_.restore();
this.hidden_ctx_.restore();
}
@@
-2840,7
+2840,7
@@
Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
}
}
- if(independentTicks) {
+ if
(independentTicks) {
axis.independentTicks = independentTicks;
var opts = this.optionsViewForAxis_('y' + (i ? '2' : ''));
var ticker = opts('ticker');
axis.independentTicks = independentTicks;
var opts = this.optionsViewForAxis_('y' + (i ? '2' : ''));
var ticker = opts('ticker');
@@
-3027,7
+3027,7
@@
Dygraph.prototype.rollingAverage = function(originalData, rollPeriod) {
} else {
// Calculate the rolling average for the first rollPeriod - 1 points where
// there is not enough data to roll over the full number of points
} else {
// Calculate the rolling average for the first rollPeriod - 1 points where
// there is not enough data to roll over the full number of points
- if (!this.attr_("errorBars")){
+ if (!this.attr_("errorBars"))
{
if (rollPeriod == 1) {
return originalData;
}
if (rollPeriod == 1) {
return originalData;
}