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