Merge pull request #308 from yankee42/fixXmlEntities
[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(Event, Dygraph, DygraphInteractionContext)} */
23 Dygraph.startPan;
24
25 /** @type {function(Event, Dygraph, DygraphInteractionContext)} */
26 Dygraph.movePan;
27
28 /** @type {function(Event, Dygraph, DygraphInteractionContext)} */
29 Dygraph.endPan;
30
31 /** @type {function(?string): boolean} */
32 Dygraph.prototype.isZoomed;
33
34 /** @type {function(): string} */
35 Dygraph.prototype.toString;
36
37 /** @type {function(string, string)} */
38 Dygraph.prototype.getOption;
39
40 /** @type {function(): number} */
41 Dygraph.prototype.rollPeriod;
42
43 /** @type {function(): ?Array.<number>} */
44 Dygraph.prototype.xAxisRange;
45
46 /** @type {function(): Array.<number>} */
47 Dygraph.prototype.xAxisExtremes;
48
49 /** @type {function(number): ?Array.<number>} */
50 Dygraph.prototype.yAxisRange;
51
52 /** @type {function(): Array.<Array.<number>>} */
53 Dygraph.prototype.yAxisRanges;
54
55 /** @type {function(?number, ?number, ?number): Array.<?number>} */
56 Dygraph.prototype.toDomCoords
57
58 /** @type {function(?number): ?number} */
59 Dygraph.prototype.toDomXCoord;
60
61 /** @type {function(?number, ?number): ?number} */
62 Dygraph.prototype.toDomYCoord;
63
64 /** @type {function(?number, ?number, ?number): Array.<?number>} */
65 Dygraph.prototype.toDataCoords;
66
67 /** @type {function(?number): ?number} */
68 Dygraph.prototype.toDataXCoord;
69
70 /** @type {function(?number, ?number): ?number} */
71 Dygraph.prototype.toDataYCoord;
72
73 /** @type {function(?number, ?number): ?number} */
74 Dygraph.prototype.toPercentYCoord;
75
76 /** @type {function(?number): ?number} */
77 Dygraph.prototype.toPercentXCoord;
78
79 /** @type {function(): number} */
80 Dygraph.prototype.numColumns;
81
82 /** @type {function(): number} */
83 Dygraph.prototype.numRows;
84
85 /** @type {function(number, number)} */
86 Dygraph.prototype.getValue;
87
88 /** @type {function()} */
89 Dygraph.prototype.destroy;
90
91 /** @type {function()} */
92 Dygraph.prototype.getColors;
93
94 /** @type {function(string)} */
95 Dygraph.prototype.getPropertiesForSeries;
96
97 /** @type {function()} */
98 Dygraph.prototype.resetZoom;
99
100 /** @type {function(): {x, y, w, h}} */
101 Dygraph.prototype.getArea;
102
103 /** @type {function(Object): Array.<number>} */
104 Dygraph.prototype.eventToDomCoords;
105
106 /** @type {function(number, string, boolean): boolean} */
107 Dygraph.prototype.setSelection;
108
109 /** @type {function()} */
110 Dygraph.prototype.clearSelection;
111
112 /** @type {function(): number} */
113 Dygraph.prototype.getSelection;
114
115 /** @type {function(): string} */
116 Dygraph.prototype.getHighlightSeries;
117
118 /** @type {function(): boolean} */
119 Dygraph.prototype.isSeriesLocked;
120
121 /** @type {function(): number} */
122 Dygraph.prototype.numAxes;
123
124 /** @type {function(Object, Boolean=)} */
125 Dygraph.prototype.updateOptions;
126
127 /** @type {function(number, number)} */
128 Dygraph.prototype.resize;
129
130 /** @type {function(number)} */
131 Dygraph.prototype.adjustRoll;
132
133 /** @type {function(): Array.<boolean>} */
134 Dygraph.prototype.visibility;
135
136 /** @type {function(number, boolean)} */
137 Dygraph.prototype.setVisibility;
138
139 /** @type {function(Array.<Object>, boolean)} */
140 Dygraph.prototype.setAnnotations;
141
142 /** @type {function(): Array.<Object>} */
143 Dygraph.prototype.annotations;
144
145 /** @type {function(): ?Array.<string>} */
146 Dygraph.prototype.getLabels;
147
148 /** @type {function(string): ?number} */
149 Dygraph.prototype.indexFromSetName;
150
151 /** @type {function(function(!Dygraph))} */
152 Dygraph.prototype.ready;