Dygraph.LOG_SCALE = 10;
Dygraph.LN_TEN = Math.log(Dygraph.LOG_SCALE);
-/**
- * @private
- */
+/** @private (shut up, jsdoc!) */
Dygraph.log10 = function(x) {
return Math.log(x) / Dygraph.LN_TEN;
}
}
};
-/**
- * @private
- */
+/** @private (shut up, jsdoc!) */
Dygraph.prototype.info = function(message) {
this.log(Dygraph.INFO, message);
};
-/**
- * @private
- */
+/** @private (shut up, jsdoc!) */
Dygraph.prototype.warn = function(message) {
this.log(Dygraph.WARNING, message);
};
-/**
- * @private
- */
+/** @private (shut up, jsdoc!) */
Dygraph.prototype.error = function(message) {
this.log(Dygraph.ERROR, message);
};
// http://blog.firetree.net/2005/07/04/javascript-find-position/
// http://www.quirksmode.org/js/findpos.html
-/**
- * @private
- */
+/** @private */
Dygraph.findPosX = function(obj) {
var curleft = 0;
if(obj.offsetParent)
};
-/**
- * @private
- */
+/** @private */
Dygraph.findPosY = function(obj) {
var curtop = 0;
if(obj.offsetParent)
this.attrs_.xAxisLabelFormatter = Dygraph.dateAxisFormatter;
} else {
// TODO(danvk): use Dygraph.numberFormatter here?
+ /** @private (shut up, jsdoc!) */
this.attrs_.xValueFormatter = function(x) { return x; };
+ /** @private (shut up, jsdoc!) */
this.attrs_.xValueParser = function(x) { return parseFloat(x); };
this.attrs_.xTicker = Dygraph.numericTicks;
this.attrs_.xAxisLabelFormatter = this.attrs_.xValueFormatter;
return parsedData;
} else {
// Some intelligent defaults for a numeric x-axis.
+ /** @private (shut up, jsdoc!) */
this.attrs_.xValueFormatter = function(x) { return x; };
this.attrs_.xTicker = Dygraph.numericTicks;
return data;
# Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there.
rm -rf jsdoc
+echo Generating JSDoc...
java -jar jsdoc-toolkit/jsrun.jar \
jsdoc-toolkit/app/run.js \
- -a -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
- dygraph.js
+ -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
+ dygraph.js > /tmp/dygraphs-jsdocerrors.txt
+
+if [ -n /tmp/dygraphs-jsdocerrors.txt ]; then
+ echo Please fix any jsdoc errors/warnings before sending patches.
+fi
+
+echo Done