diff --git a/jquery.colorhelpers.js b/jquery.colorhelpers.js index 9e6864a..2ce381e 100644 --- a/jquery.colorhelpers.js +++ b/jquery.colorhelpers.js @@ -78,7 +78,7 @@ c = elem.css(css).toLowerCase(); // keep going until we find an element that has color, or // we hit the body - if (c !== '' && c != 'transparent') + if (c !== "" && c != "transparent") break; elem = elem.parent(); } while (!$.nodeName(elem.get(0), "body")); diff --git a/jquery.flot.categories.js b/jquery.flot.categories.js index 3158aaf..e31c241 100644 --- a/jquery.flot.categories.js +++ b/jquery.flot.categories.js @@ -184,7 +184,7 @@ as "categories" on the axis object, e.g. plot.getAxes().xaxis.categories. $.plot.plugins.push({ init: init, options: options, - name: 'categories', - version: '1.0' + name: "categories", + version: "1.0" }); })(jQuery); diff --git a/jquery.flot.crosshair.js b/jquery.flot.crosshair.js index ff81d46..2a8d326 100644 --- a/jquery.flot.crosshair.js +++ b/jquery.flot.crosshair.js @@ -170,7 +170,7 @@ The plugin also adds four public methods: $.plot.plugins.push({ init: init, options: options, - name: 'crosshair', - version: '1.0' + name: "crosshair", + version: "1.0" }); })(jQuery); diff --git a/jquery.flot.errorbars.js b/jquery.flot.errorbars.js index 7298436..0e3af34 100644 --- a/jquery.flot.errorbars.js +++ b/jquery.flot.errorbars.js @@ -67,8 +67,8 @@ shadowSize and lineWidth are derived as well from the points series. series: { points: { errorbars: null, //should be 'x', 'y' or 'xy' - xerr: { err: 'x', show: null, asymmetric: null, upperCap: null, lowerCap: null, color: null, radius: null}, - yerr: { err: 'y', show: null, asymmetric: null, upperCap: null, lowerCap: null, color: null, radius: null} + xerr: { err: "x", show: null, asymmetric: null, upperCap: null, lowerCap: null, color: null, radius: null}, + yerr: { err: "y", show: null, asymmetric: null, upperCap: null, lowerCap: null, color: null, radius: null} } } }; @@ -85,7 +85,7 @@ shadowSize and lineWidth are derived as well from the points series. var errors = series.points.errorbars; // error bars - first X then Y - if (errors == 'x' || errors == 'xy') { + if (errors == "x" || errors == "xy") { // lower / upper error if (series.points.xerr.asymmetric) { format.push({ x: true, number: true, required: true }); @@ -93,7 +93,7 @@ shadowSize and lineWidth are derived as well from the points series. } else format.push({ x: true, number: true, required: true }); } - if (errors == 'y' || errors == 'xy') { + if (errors == "y" || errors == "xy") { // lower / upper error if (series.points.yerr.asymmetric) { format.push({ y: true, number: true, required: true }); @@ -118,25 +118,25 @@ shadowSize and lineWidth are derived as well from the points series. var eb = series.points.errorbars; // error bars - first X - if (eb == 'x' || eb == 'xy') { + if (eb == "x" || eb == "xy") { if (xerr.asymmetric) { exl = points[i + 2]; exu = points[i + 3]; - if (eb == 'xy') + if (eb == "xy") if (yerr.asymmetric){ eyl = points[i + 4]; eyu = points[i + 5]; } else eyl = points[i + 4]; } else { exl = points[i + 2]; - if (eb == 'xy') + if (eb == "xy") if (yerr.asymmetric) { eyl = points[i + 3]; eyu = points[i + 4]; } else eyl = points[i + 3]; } // only Y - } else if (eb == 'y') + } else if (eb == "y") if (yerr.asymmetric) { eyl = points[i + 2]; eyu = points[i + 3]; @@ -206,10 +206,10 @@ shadowSize and lineWidth are derived as well from the points series. lower = [x, y][e] - errRanges[e * err.length]; //points outside of the canvas - if (err[e].err == 'x') + if (err[e].err == "x") if (y > ax[1].max || y < ax[1].min || upper < ax[0].min || lower > ax[0].max) continue; - if (err[e].err == 'y') + if (err[e].err == "y") if (x > ax[0].max || x < ax[0].min || upper < ax[1].min || lower > ax[1].max) continue; @@ -227,7 +227,7 @@ shadowSize and lineWidth are derived as well from the points series. } //sanity check, in case some inverted axis hack is applied to flot - if ((err[e].err == 'x' && invertX) || (err[e].err == 'y' && invertY)) { + if ((err[e].err == "x" && invertX) || (err[e].err == "y" && invertY)) { //swap coordinates var tmp = lower; lower = upper; @@ -280,7 +280,7 @@ shadowSize and lineWidth are derived as well from the points series. lower += offset; // error bar - avoid plotting over circles - if (err.err == 'x'){ + if (err.err == "x"){ if (upper > x + radius) drawPath(ctx, [[upper,y],[Math.max(x + radius,minmax[0]),y]]); else drawUpper = false; if (lower < x - radius) drawPath(ctx, [[Math.min(x - radius,minmax[1]),y],[lower,y]] ); @@ -299,21 +299,21 @@ shadowSize and lineWidth are derived as well from the points series. // upper cap if (drawUpper) { - if (err.upperCap == '-'){ - if (err.err=='x') drawPath(ctx, [[upper,y - radius],[upper,y + radius]] ); + if (err.upperCap == "-"){ + if (err.err=="x") drawPath(ctx, [[upper,y - radius],[upper,y + radius]] ); else drawPath(ctx, [[x - radius,upper],[x + radius,upper]] ); } else if ($.isFunction(err.upperCap)){ - if (err.err=='x') err.upperCap(ctx, upper, y, radius); + if (err.err=="x") err.upperCap(ctx, upper, y, radius); else err.upperCap(ctx, x, upper, radius); } } // lower cap if (drawLower) { - if (err.lowerCap == '-'){ - if (err.err=='x') drawPath(ctx, [[lower,y - radius],[lower,y + radius]] ); + if (err.lowerCap == "-"){ + if (err.err=="x") drawPath(ctx, [[lower,y - radius],[lower,y + radius]] ); else drawPath(ctx, [[x - radius,lower],[x + radius,lower]] ); } else if ($.isFunction(err.lowerCap)){ - if (err.err=='x') err.lowerCap(ctx, lower, y, radius); + if (err.err=="x") err.lowerCap(ctx, lower, y, radius); else err.lowerCap(ctx, x, lower, radius); } } @@ -347,7 +347,7 @@ shadowSize and lineWidth are derived as well from the points series. $.plot.plugins.push({ init: init, options: options, - name: 'errorbars', - version: '1.0' + name: "errorbars", + version: "1.0" }); })(jQuery); diff --git a/jquery.flot.image.js b/jquery.flot.image.js index fbe1b5a..3644841 100644 --- a/jquery.flot.image.js +++ b/jquery.flot.image.js @@ -111,7 +111,7 @@ Google Maps). callback(loaded); }; - $('').load(handler).error(handler).attr('src', url); + $("").load(handler).error(handler).attr("src", url); }); }; @@ -235,7 +235,7 @@ Google Maps). $.plot.plugins.push({ init: init, options: options, - name: 'image', - version: '1.1' + name: "image", + version: "1.1" }); })(jQuery); diff --git a/jquery.flot.js b/jquery.flot.js index f5a6661..b629638 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -238,7 +238,7 @@ Licensed under the MIT license. left: 0, bottom: 0, right: 0, - 'font-size': "smaller", + "font-size": "smaller", color: "#545454" }) .insertAfter(this.element); @@ -338,7 +338,7 @@ Licensed under the MIT license. var element = $("
").html(text) .css({ position: "absolute", - 'max-width': width, + "max-width": width, top: -9999 }) .appendTo(this.getTextLayer(layer)); @@ -434,7 +434,7 @@ Licensed under the MIT license. position.element.css({ top: Math.round(y), left: Math.round(x), - 'text-align': halign // In case the text wraps + "text-align": halign // In case the text wraps }); }; @@ -714,9 +714,9 @@ Licensed under the MIT license. } if (options.xaxis.color == null) - options.xaxis.color = $.color.parse(options.grid.color).scale('a', 0.22).toString(); + options.xaxis.color = $.color.parse(options.grid.color).scale("a", 0.22).toString(); if (options.yaxis.color == null) - options.yaxis.color = $.color.parse(options.grid.color).scale('a', 0.22).toString(); + options.yaxis.color = $.color.parse(options.grid.color).scale("a", 0.22).toString(); if (options.xaxis.tickColor == null) // grid.tickColor for back-compatibility options.xaxis.tickColor = options.grid.tickColor || options.xaxis.color; @@ -726,7 +726,7 @@ Licensed under the MIT license. if (options.grid.borderColor == null) options.grid.borderColor = options.grid.color; if (options.grid.tickColor == null) - options.grid.tickColor = $.color.parse(options.grid.color).scale('a', 0.22).toString(); + options.grid.tickColor = $.color.parse(options.grid.color).scale("a", 0.22).toString(); // Fill in defaults for axis options, including any unspecified // font-spec fields, if a font-spec was provided. @@ -985,7 +985,7 @@ Licensed under the MIT license. } else variation = -variation; } - colors[i] = c.scale('rgb', 1 + variation); + colors[i] = c.scale("rgb", 1 + variation); } // Finalize the series options, filling in their colors @@ -1255,7 +1255,7 @@ Licensed under the MIT license. placeholder.css("padding", 0) // padding messes up the positioning .children(":not(.flot-base,.flot-overlay)").remove(); - if (placeholder.css("position") == 'static') + if (placeholder.css("position") == "static") placeholder.css("position", "relative"); // for positioning labels and overlay surface = new Canvas("flot-base", placeholder); @@ -2681,24 +2681,24 @@ Licensed under the MIT license. if (i % options.legend.noColumns == 0) { if (rowStarted) - fragments.push(''); - fragments.push(''); + fragments.push(""); + fragments.push(""); rowStarted = true; } fragments.push( - '
' + - '' + entry.label + '' + "
" + + "" + entry.label + "" ); } if (rowStarted) - fragments.push(''); + fragments.push(""); if (fragments.length == 0) return; - var table = '' + fragments.join("") + '
'; + var table = "" + fragments.join("") + "
"; if (options.legend.container != null) $(options.legend.container).html(table); else { @@ -2708,14 +2708,14 @@ Licensed under the MIT license. if (m[0] == null) m = [m, m]; if (p.charAt(0) == "n") - pos += 'top:' + (m[1] + plotOffset.top) + 'px;'; + pos += "top:" + (m[1] + plotOffset.top) + "px;"; else if (p.charAt(0) == "s") - pos += 'bottom:' + (m[1] + plotOffset.bottom) + 'px;'; + pos += "bottom:" + (m[1] + plotOffset.bottom) + "px;"; if (p.charAt(1) == "e") - pos += 'right:' + (m[0] + plotOffset.right) + 'px;'; + pos += "right:" + (m[0] + plotOffset.right) + "px;"; else if (p.charAt(1) == "w") - pos += 'left:' + (m[0] + plotOffset.left) + 'px;'; - var legend = $('
' + table.replace('style="', 'style="position:absolute;' + pos +';') + '
').appendTo(placeholder); + pos += "left:" + (m[0] + plotOffset.left) + "px;"; + var legend = $("
" + table.replace("style='", "style='position:absolute;" + pos +";") + "
").appendTo(placeholder); if (options.legend.backgroundOpacity != 0.0) { // put in the transparent background // separately to avoid blended labels and @@ -2726,12 +2726,12 @@ Licensed under the MIT license. if (c && typeof c == "string") c = $.color.parse(c); else - c = $.color.extract(legend, 'background-color'); + c = $.color.extract(legend, "background-color"); c.a = 1; c = c.toString(); } var div = legend.children(); - $('
').prependTo(legend).css('opacity', options.legend.backgroundOpacity); + $("
").prependTo(legend).css("opacity", options.legend.backgroundOpacity); } } } @@ -2972,7 +2972,7 @@ Licensed under the MIT license. function drawPointHighlight(series, point) { var x = point[0], y = point[1], axisx = series.xaxis, axisy = series.yaxis, - highlightColor = (typeof series.highlightColor === "string") ? series.highlightColor : $.color.parse(series.color).scale('a', 0.5).toString(); + highlightColor = (typeof series.highlightColor === "string") ? series.highlightColor : $.color.parse(series.color).scale("a", 0.5).toString(); if (x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max) return; @@ -2994,7 +2994,7 @@ Licensed under the MIT license. } function drawBarHighlight(series, point) { - var highlightColor = (typeof series.highlightColor === "string") ? series.highlightColor : $.color.parse(series.color).scale('a', 0.5).toString(), + var highlightColor = (typeof series.highlightColor === "string") ? series.highlightColor : $.color.parse(series.color).scale("a", 0.5).toString(), fillStyle = highlightColor, barLeft = series.bars.align == "left" ? 0 : -series.bars.barWidth/2; @@ -3019,7 +3019,7 @@ Licensed under the MIT license. if (typeof c != "string") { var co = $.color.parse(defaultColor); if (c.brightness != null) - co = co.scale('rgb', c.brightness); + co = co.scale("rgb", c.brightness); if (c.opacity != null) co.a *= c.opacity; c = co.toString(); diff --git a/jquery.flot.navigate.js b/jquery.flot.navigate.js index 73d3306..aca52ed 100644 --- a/jquery.flot.navigate.js +++ b/jquery.flot.navigate.js @@ -140,16 +140,16 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L return false; } - var prevCursor = 'default', prevPageX = 0, prevPageY = 0, + var prevCursor = "default", prevPageX = 0, prevPageY = 0, panTimeout = null; function onDragStart(e) { if (e.which != 1) // only accept left-click return false; - var c = plot.getPlaceholder().css('cursor'); + var c = plot.getPlaceholder().css("cursor"); if (c) prevCursor = c; - plot.getPlaceholder().css('cursor', plot.getOptions().pan.cursor); + plot.getPlaceholder().css("cursor", plot.getOptions().pan.cursor); prevPageX = e.pageX; prevPageY = e.pageY; } @@ -175,7 +175,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L panTimeout = null; } - plot.getPlaceholder().css('cursor', prevCursor); + plot.getPlaceholder().css("cursor", prevCursor); plot.pan({ left: prevPageX - e.pageX, top: prevPageY - e.pageY }); } @@ -340,7 +340,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L $.plot.plugins.push({ init: init, options: options, - name: 'navigate', - version: '1.3' + name: "navigate", + version: "1.3" }); })(jQuery); diff --git a/jquery.flot.resize.js b/jquery.flot.resize.js index 3276243..d751cf4 100644 --- a/jquery.flot.resize.js +++ b/jquery.flot.resize.js @@ -54,7 +54,7 @@ can just fix the size of their placeholders. $.plot.plugins.push({ init: init, options: options, - name: 'resize', - version: '1.0' + name: "resize", + version: "1.0" }); })(jQuery); diff --git a/jquery.flot.selection.js b/jquery.flot.selection.js index 2d18d29..09e2f08 100644 --- a/jquery.flot.selection.js +++ b/jquery.flot.selection.js @@ -317,10 +317,10 @@ The plugin allso adds the following methods to the plot object: var c = $.color.parse(o.selection.color); - ctx.strokeStyle = c.scale('a', 0.8).toString(); + ctx.strokeStyle = c.scale("a", 0.8).toString(); ctx.lineWidth = 1; ctx.lineJoin = o.selection.shape; - ctx.fillStyle = c.scale('a', 0.4).toString(); + ctx.fillStyle = c.scale("a", 0.4).toString(); var x = Math.min(selection.first.x, selection.second.x) + 0.5, y = Math.min(selection.first.y, selection.second.y) + 0.5, @@ -354,7 +354,7 @@ The plugin allso adds the following methods to the plot object: minSize: 5 // minimum number of pixels } }, - name: 'selection', - version: '1.1' + name: "selection", + version: "1.1" }); })(jQuery); diff --git a/jquery.flot.stack.js b/jquery.flot.stack.js index f75aaff..235d532 100644 --- a/jquery.flot.stack.js +++ b/jquery.flot.stack.js @@ -182,7 +182,7 @@ charts or filled areas). $.plot.plugins.push({ init: init, options: options, - name: 'stack', - version: '1.2' + name: "stack", + version: "1.2" }); })(jQuery); diff --git a/jquery.flot.symbol.js b/jquery.flot.symbol.js index 3263656..f8523ab 100644 --- a/jquery.flot.symbol.js +++ b/jquery.flot.symbol.js @@ -65,7 +65,7 @@ The symbols are accessed as strings through the standard symbol options: $.plot.plugins.push({ init: init, - name: 'symbols', - version: '1.0' + name: "symbols", + version: "1.0" }); })(jQuery); diff --git a/jquery.flot.threshold.js b/jquery.flot.threshold.js index a847d33..f0de51c 100644 --- a/jquery.flot.threshold.js +++ b/jquery.flot.threshold.js @@ -136,7 +136,7 @@ You may need to check for this in hover events. $.plot.plugins.push({ init: init, options: options, - name: 'threshold', - version: '1.2' + name: "threshold", + version: "1.2" }); })(jQuery); diff --git a/jquery.flot.time.js b/jquery.flot.time.js index 4cc8325..f0454f4 100644 --- a/jquery.flot.time.js +++ b/jquery.flot.time.js @@ -69,25 +69,25 @@ API.txt for details. if (escape) { switch (c) { - case 'a': c = "" + dayNames[d.getDay()]; break; - case 'b': c = "" + monthNames[d.getMonth()]; break; - case 'd': c = leftPad(d.getDate()); break; - case 'e': c = leftPad(d.getDate(), " "); break; - case 'h': // For back-compat with 0.7; remove in 1.0 - case 'H': c = leftPad(hours); break; - case 'I': c = leftPad(hours12); break; - case 'l': c = leftPad(hours12, " "); break; - case 'm': c = leftPad(d.getMonth() + 1); break; - case 'M': c = leftPad(d.getMinutes()); break; + case "a": c = "" + dayNames[d.getDay()]; break; + case "b": c = "" + monthNames[d.getMonth()]; break; + case "d": c = leftPad(d.getDate()); break; + case "e": c = leftPad(d.getDate(), " "); break; + case "h": // For back-compat with 0.7; remove in 1.0 + case "H": c = leftPad(hours); break; + case "I": c = leftPad(hours12); break; + case "l": c = leftPad(hours12, " "); break; + case "m": c = leftPad(d.getMonth() + 1); break; + case "M": c = leftPad(d.getMinutes()); break; // quarters not in Open Group's strftime specification - case 'q': + case "q": c = "" + (Math.floor(d.getMonth() / 3) + 1); break; - case 'S': c = leftPad(d.getSeconds()); break; - case 'y': c = leftPad(d.getFullYear() % 100); break; - case 'Y': c = "" + d.getFullYear(); break; - case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break; - case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break; - case 'w': c = "" + d.getDay(); break; + case "S": c = leftPad(d.getSeconds()); break; + case "y": c = leftPad(d.getFullYear() % 100); break; + case "Y": c = "" + d.getFullYear(); break; + case "p": c = (isAM) ? ("" + "am") : ("" + "pm"); break; + case "P": c = (isAM) ? ("" + "AM") : ("" + "PM"); break; + case "w": c = "" + d.getDay(); break; } r.push(c); escape = false; @@ -418,8 +418,8 @@ API.txt for details. $.plot.plugins.push({ init: init, options: options, - name: 'time', - version: '1.0' + name: "time", + version: "1.0" }); // Time-axis support used to be in Flot core, which exposed the