dc05172e49d18d898a8302d4d27f3490e2d9ccff
[dygraphs.git] / dygraph-externs.js
1 /**
2 * @param {Object} dict
3 * @return {!Array.<string>}
4 */
5 function printStackTrace(dict) {}
6
7
8 /**
9 * @constructor
10 */
11 function G_vmlCanvasManager() {}
12
13 /**
14 * @param {!HTMLCanvasElement} canvas
15 */
16 G_vmlCanvasManager.initElement = function(canvas) {};
17
18 // For IE
19 /**
20 * @param {string} type
21 * @param {Object} fn
22 */
23 Element.prototype.detachEvent = function(type, fn) {};
24
25
26 // TODO(danvk): move the Dygraph definitions out of here once I closure-ify dygraphs.js
27
28 /**
29 * @constructor
30 */
31 function Dygraph() {}
32
33 /** @type {Array.<{elem:Element,type:string,fn:function(!Event):(boolean|undefined|null)}>} */
34 Dygraph.prototype.registeredEvents_;
35
36 /** @type {Object} */
37 Dygraph.DEFAULT_ATTRS;
38
39 /**
40 * @typedef {function(
41 * (number|Date),
42 * number,
43 * function(string):*,
44 * (Dygraph|undefined)
45 * ):string}
46 */
47 Dygraph.AxisLabelFormatter;