X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=19360c94d047f4bd4a79040c6c74aefc4f4a567c;hb=refs%2Fheads%2Ftyped-options;hp=1600cb28ddda8eeb048f9630b487486eee984868;hpb=b0963cdbacfdda608252d4154d54cf2e390e30e1;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 1600cb2..19360c9 100644 --- a/dygraph.js +++ b/dygraph.js @@ -669,6 +669,7 @@ Dygraph.prototype.getOption = function(name, opt_seriesName) { }; /** + * Like getOption(), but specifically returns a number. * This is a convenience function for working with the Closure Compiler. * @param {string} name The name of the option (e.g. 'strokeWidth') * @param {string=} opt_seriesName Series name to get per-series values. @@ -680,6 +681,7 @@ Dygraph.prototype.getNumericOption = function(name, opt_seriesName) { }; /** + * Like getOption(), but specifically returns a string. * This is a convenience function for working with the Closure Compiler. * @param {string} name The name of the option (e.g. 'strokeWidth') * @param {string=} opt_seriesName Series name to get per-series values. @@ -691,6 +693,7 @@ Dygraph.prototype.getStringOption = function(name, opt_seriesName) { }; /** + * Like getOption(), but specifically returns a boolean. * This is a convenience function for working with the Closure Compiler. * @param {string} name The name of the option (e.g. 'strokeWidth') * @param {string=} opt_seriesName Series name to get per-series values. @@ -702,6 +705,7 @@ Dygraph.prototype.getBooleanOption = function(name, opt_seriesName) { }; /** + * Like getOption(), but specifically returns a function. * This is a convenience function for working with the Closure Compiler. * @param {string} name The name of the option (e.g. 'strokeWidth') * @param {string=} opt_seriesName Series name to get per-series values.