Commit 460049f9 authored by olau@iola.dk's avatar olau@iola.dk

Remove mysterious tabs from the indentation

git-svn-id: https://flot.googlecode.com/svn/trunk@36 1e0a6537-2640-0410-bfb7-f154510ff394
parent 2a63c13c
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
function draw() { function draw() {
drawGrid(); drawGrid();
drawLabels(); drawLabels();
for (var i = 0; i < series.length; i++) { for (var i = 0; i < series.length; i++) {
drawSeries(series[i]); drawSeries(series[i]);
} }
} }
...@@ -569,7 +569,7 @@ ...@@ -569,7 +569,7 @@
ctx.beginPath(); ctx.beginPath();
ctx.moveTo(prevx, prevy); ctx.moveTo(prevx, prevy);
for (var i = 0; i < data.length - 1; ++i) { for (var i = 0; i < data.length - 1; ++i) {
var x1 = data[i][0], y1 = data[i][1], var x1 = data[i][0], y1 = data[i][1],
x2 = data[i+1][0], y2 = data[i+1][1]; x2 = data[i+1][0], y2 = data[i+1][1];
...@@ -645,12 +645,12 @@ ...@@ -645,12 +645,12 @@
return; return;
var bottom = Math.min(Math.max(0, yaxis.min), yaxis.max); var bottom = Math.min(Math.max(0, yaxis.min), yaxis.max);
var top, lastX = 0; var top, lastX = 0;
var first = true; var first = true;
ctx.beginPath(); ctx.beginPath();
for (var i = 0; i < data.length - 1; ++i) { for (var i = 0; i < data.length - 1; ++i) {
var x1 = data[i][0], y1 = data[i][1], var x1 = data[i][0], y1 = data[i][1],
x2 = data[i+1][0], y2 = data[i+1][1]; x2 = data[i+1][0], y2 = data[i+1][1];
...@@ -740,12 +740,12 @@ ...@@ -740,12 +740,12 @@
ctx.lineTo(tHoz(x1old), tVert(top)); ctx.lineTo(tHoz(x1old), tVert(top));
ctx.lineTo(tHoz(x1), tVert(top)); ctx.lineTo(tHoz(x1), tVert(top));
} }
// fill the triangles // fill the triangles
ctx.lineTo(tHoz(x1), tVert(y1)); ctx.lineTo(tHoz(x1), tVert(y1));
ctx.lineTo(tHoz(x2), tVert(y2)); ctx.lineTo(tHoz(x2), tVert(y2));
// fill the other rectangle if it's there // fill the other rectangle if it's there
if (x2 != x2old) { if (x2 != x2old) {
if (y2 <= yaxis.min) if (y2 <= yaxis.min)
top = yaxis.min; top = yaxis.min;
...@@ -761,7 +761,7 @@ ...@@ -761,7 +761,7 @@
/* /*
ctx.beginPath(); ctx.beginPath();
ctx.moveTo(tHoz(data[0][0]), tVert(0)); ctx.moveTo(tHoz(data[0][0]), tVert(0));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
ctx.lineTo(tHoz(data[i][0]), tVert(data[i][1])); ctx.lineTo(tHoz(data[i][0]), tVert(data[i][1]));
} }
ctx.lineTo(tHoz(data[data.length - 1][0]), tVert(0));*/ ctx.lineTo(tHoz(data[data.length - 1][0]), tVert(0));*/
...@@ -800,7 +800,7 @@ ...@@ -800,7 +800,7 @@
function drawSeriesPoints(series) { function drawSeriesPoints(series) {
function plotPoints(data, radius, fill) { function plotPoints(data, radius, fill) {
for (var i = 0; i < data.length; ++i) { for (var i = 0; i < data.length; ++i) {
var x = data[i][0], y = data[i][1]; var x = data[i][0], y = data[i][1];
if (x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max) if (x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max)
continue; continue;
...@@ -814,7 +814,7 @@ ...@@ -814,7 +814,7 @@
} }
function plotPointShadows(data, offset, radius) { function plotPointShadows(data, offset, radius) {
for (var i = 0; i < data.length; ++i) { for (var i = 0; i < data.length; ++i) {
var x = data[i][0], y = data[i][1]; var x = data[i][0], y = data[i][1];
if (x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max) if (x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max)
continue; continue;
...@@ -852,7 +852,7 @@ ...@@ -852,7 +852,7 @@
if (data.length < 2) if (data.length < 2)
return; return;
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
var x = data[i][0], y = data[i][1]; var x = data[i][0], y = data[i][1];
var drawLeft = true, drawTop = true, drawRight = true; var drawLeft = true, drawTop = true, drawRight = true;
var left = x, right = x + barWidth, bottom = 0, top = y; var left = x, right = x + barWidth, bottom = 0, top = y;
...@@ -1014,11 +1014,11 @@ ...@@ -1014,11 +1014,11 @@
function onMouseMove(ev) { function onMouseMove(ev) {
// FIXME: temp. work-around until jQuery bug 1871 is fixed // FIXME: temp. work-around until jQuery bug 1871 is fixed
var e = ev || window.event; var e = ev || window.event;
if (e.pageX == null && e.clientX != null) { if (e.pageX == null && e.clientX != null) {
var de = document.documentElement, b = document.body; var de = document.documentElement, b = document.body;
lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0); lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0);
lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTop || 0); lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTop || 0);
} }
else { else {
lastMousePos.pageX = e.pageX; lastMousePos.pageX = e.pageX;
lastMousePos.pageY = e.pageY; lastMousePos.pageY = e.pageY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment