| 1 | // This file: |
| 2 | // - declares symbols that are provided outisde of dygraphs (e.g. by excanvas) |
| 3 | // - defines custom types used internally |
| 4 | |
| 5 | |
| 6 | /** |
| 7 | * @constructor |
| 8 | */ |
| 9 | function G_vmlCanvasManager() {} |
| 10 | |
| 11 | /** |
| 12 | * @param {!HTMLCanvasElement} canvas |
| 13 | */ |
| 14 | G_vmlCanvasManager.initElement = function(canvas) {}; |
| 15 | |
| 16 | // For IE |
| 17 | /** |
| 18 | * @param {string} type |
| 19 | * @param {Function} fn |
| 20 | */ |
| 21 | Element.prototype.detachEvent = function(type, fn) {}; |
| 22 | |
| 23 | |
| 24 | /** |
| 25 | * @typedef {function( |
| 26 | * (number|Date), |
| 27 | * number, |
| 28 | * function(string):*, |
| 29 | * (Dygraph|undefined) |
| 30 | * ):string} |
| 31 | */ |
| 32 | var AxisLabelFormatter; |
| 33 | |
| 34 | |
| 35 | /** |
| 36 | * @typedef {function(number,function(string),Dygraph):string} |
| 37 | */ |
| 38 | var ValueFormatter; |
| 39 | |
| 40 | |
| 41 | /** |
| 42 | * @typedef {Array.<Array.<string|number|Array.<number>>>} |
| 43 | */ |
| 44 | var DygraphDataArray; |
| 45 | |
| 46 | /** |
| 47 | * @constructor |
| 48 | */ |
| 49 | function GVizDataTable() {} |