Execute custom shapes closure
[dygraphs.git] / dygraph-externs.js
1 // TODO(danvk): move the Dygraph definitions out of here once I closure-ify dygraphs.js
2 /**
3 * @param {!HTMLDivElement|string} div
4 * @param {DygraphDataArray|
5 * GVizDataTable|
6 * string|
7 * function():(DygraphDataArray|GVizDataTable|string)} file
8 * @param {Object} attrs
9 * @constructor
10 */
11 function Dygraph(div, file, attrs) {}
12
13 /** @type {string} */
14 Dygraph.NAME;
15
16 /** @type {string} */
17 Dygraph.VERSION;
18
19 /** @type {function(): string} */
20 Dygraph.toString;
21
22 /** @type {function(?string): boolean} */
23 Dygraph.prototype.isZoomed;
24
25 /** @type {function(): string} */
26 Dygraph.prototype.toString;
27
28 /** @type {function(string, string)} */
29 Dygraph.prototype.getOption;
30
31 /** @type {function(): number} */
32 Dygraph.prototype.rollPeriod;
33
34 /** @type {function(): ?Array.<number>} */
35 Dygraph.prototype.xAxisRange;
36
37 /** @type {function(): Array.<number>} */
38 Dygraph.prototype.xAxisExtremes;
39
40 /** @type {function(number): ?Array.<number>} */
41 Dygraph.prototype.yAxisRange;
42
43 /** @type {function(): Array.<Array.<number>>} */
44 Dygraph.prototype.yAxisRanges;
45
46 /** @type {function(?number, ?number, ?number): Array.<?number>} */
47 Dygraph.prototype.toDomCoords
48
49 /** @type {function(?number): ?number} */
50 Dygraph.prototype.toDomXCoord;
51
52 /** @type {function(?number, ?number): ?number} */
53 Dygraph.prototype.toDomYCoord;
54
55 /** @type {function(?number, ?number, ?number): Array.<?number>} */
56 Dygraph.prototype.toDataCoords;
57
58 /** @type {function(?number): ?number} */
59 Dygraph.prototype.toDataXCoord;
60
61 /** @type {function(?number, ?number): ?number} */
62 Dygraph.prototype.toDataYCoord;
63
64 /** @type {function(?number, ?number): ?number} */
65 Dygraph.prototype.toPercentYCoord;
66
67 /** @type {function(?number): ?number} */
68 Dygraph.prototype.toPercentXCoord;
69
70 /** @type {function(): number} */
71 Dygraph.prototype.numColumns;
72
73 /** @type {function(): number} */
74 Dygraph.prototype.numRows;
75
76 /** @type {function(number, number)} */
77 Dygraph.prototype.getValue;
78
79 /** @type {function()} */
80 Dygraph.prototype.destroy;
81
82 /** @type {function()} */
83 Dygraph.prototype.getColors;
84
85 /** @type {function(string)} */
86 Dygraph.prototype.getPropertiesForSeries;
87
88 /** @type {function()} */
89 Dygraph.prototype.resetZoom;
90
91 /** @type {function(): {x, y, w, h}} */
92 Dygraph.prototype.getArea;
93
94 /** @type {function(Object): Array.<number>} */
95 Dygraph.prototype.eventToDomCoords;
96
97 /** @type {function(number, string, boolean): boolean} */
98 Dygraph.prototype.setSelection;
99
100 /** @type {function()} */
101 Dygraph.prototype.clearSelection;
102
103 /** @type {function(): number} */
104 Dygraph.prototype.getSelection;
105
106 /** @type {function(): string} */
107 Dygraph.prototype.getHighlightSeries;
108
109 /** @type {function(): boolean} */
110 Dygraph.prototype.isSeriesLocked;
111
112 /** @type {function(): number} */
113 Dygraph.prototype.numAxes;
114
115 /** @type {function(Object, Boolean=)} */
116 Dygraph.prototype.updateOptions;
117
118 /** @type {function(number, number)} */
119 Dygraph.prototype.resize;
120
121 /** @type {function(number)} */
122 Dygraph.prototype.adjustRoll;
123
124 /** @type {function(): Array.<boolean>} */
125 Dygraph.prototype.visibility;
126
127 /** @type {function(number, boolean)} */
128 Dygraph.prototype.setVisibility;
129
130 /** @type {function(Array.<Object>, boolean)} */
131 Dygraph.prototype.setAnnotations;
132
133 /** @type {function(): Array.<Object>} */
134 Dygraph.prototype.annotations;
135
136 /** @type {function(): ?Array.<string>} */
137 Dygraph.prototype.getLabels;
138
139 /** @type {function(string): ?number} */
140 Dygraph.prototype.indexFromSetName;
141
142 /** @type {function(function(!Dygraph))} */
143 Dygraph.prototype.ready;