projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kberg review
[dygraphs.git]
/
dygraph-utils.js
diff --git
a/dygraph-utils.js
b/dygraph-utils.js
index
d6dfae5
..
04a5d3a
100644
(file)
--- a/
dygraph-utils.js
+++ b/
dygraph-utils.js
@@
-1012,7
+1012,7
@@
Dygraph.Circles = {
ctx.arc(canvasx, canvasy, radius, 0, 2 * Math.PI, false);
ctx.fill();
}
ctx.arc(canvasx, canvasy, radius, 0, 2 * Math.PI, false);
ctx.fill();
}
- // For more shapes, include extras/s
tar
s.js
+ // For more shapes, include extras/s
hape
s.js
};
/**
};
/**
@@
-1170,19
+1170,19
@@
Dygraph.setDateSameTZ = function(d, parts) {
/**
* Converts any valid CSS color (hex, rgb(), named color) to an RGB tuple.
*
/**
* Converts any valid CSS color (hex, rgb(), named color) to an RGB tuple.
*
- * @param {!string} color
_s
tr Any valid CSS color string.
+ * @param {!string} color
S
tr Any valid CSS color string.
* @return {{r:number,g:number,b:number}} Parsed RGB tuple.
* @private
*/
* @return {{r:number,g:number,b:number}} Parsed RGB tuple.
* @private
*/
-Dygraph.toRGB_ = function(color
_s
tr) {
+Dygraph.toRGB_ = function(color
S
tr) {
// TODO(danvk): cache color parses to avoid repeated DOM manipulation.
var div = document.createElement('div');
// TODO(danvk): cache color parses to avoid repeated DOM manipulation.
var div = document.createElement('div');
- div.style.backgroundColor = color
_s
tr;
+ div.style.backgroundColor = color
S
tr;
div.style.visibility = 'hidden';
document.body.appendChild(div);
div.style.visibility = 'hidden';
document.body.appendChild(div);
- var rgb
_s
tr = window.getComputedStyle(div).backgroundColor;
+ var rgb
S
tr = window.getComputedStyle(div).backgroundColor;
document.body.removeChild(div);
document.body.removeChild(div);
- var bits = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(rgb
_s
tr);
+ var bits = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(rgb
S
tr);
return {
r: parseInt(bits[1], 10),
g: parseInt(bits[2], 10),
return {
r: parseInt(bits[1], 10),
g: parseInt(bits[2], 10),