forked from danvk/dygraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dygraph-externs.js
84 lines (67 loc) · 1.43 KB
/
dygraph-externs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
* @param {Object} dict
* @return {!Array.<string>}
*/
function printStackTrace(dict) {}
/**
* @constructor
*/
function G_vmlCanvasManager() {}
/**
* @param {!HTMLCanvasElement} canvas
*/
G_vmlCanvasManager.initElement = function(canvas) {};
// For IE
/**
* @param {string} type
* @param {Object} fn
*/
Element.prototype.detachEvent = function(type, fn) {};
/**
* @typedef {function(
* (number|Date),
* number,
* function(string):*,
* (Dygraph|undefined)
* ):string}
*/
var AxisLabelFormatter;
/**
* @typedef {function(number,function(string),Dygraph):string}
*/
var ValueFormatter;
/**
* @typedef {Array.<Array.<string|number|Array.<number>>>}
*/
var DygraphDataArray;
/**
* @constructor
*/
function GVizDataTable() {}
// TODO(danvk): move the Dygraph definitions out of here once I closure-ify dygraphs.js
/**
* @param {!HTMLDivElement|string} div
* @param {DygraphDataArray|
* GVizDataTable|
* string|
* function():(DygraphDataArray|GVizDataTable|string)} file
* @param {Object} attrs
* @constructor
*/
function Dygraph(div, file, attrs) {}
/**
* @constructor
*/
function DygraphLayout() {}
/**
* @type {Array}
*/
DygraphLayout.prototype.datasets;
/**
* @type {DygraphLayout}
*/
Dygraph.prototype.layout_;
/** @type {Array.<{elem:Element,type:string,fn:function(!Event):(boolean|undefined|null)}>} */
Dygraph.prototype.registeredEvents_;
/** @type {Object} */
Dygraph.DEFAULT_ATTRS;