Commit | Line | Data |
---|---|---|
0eeb0c2a PH |
1 | /** |
2 | * @license | |
3 | * Copyright 2006 Dan Vanderkam (danvdk@gmail.com) | |
4 | * MIT-licensed (http://opensource.org/licenses/MIT) | |
5 | */ | |
6 | ||
0e7874c7 | 7 | // TODO(danvk): move the Dygraph definitions out of here once I closure-ify dygraphs.js |
f11283de | 8 | /** |
0e7874c7 DV |
9 | * @param {!HTMLDivElement|string} div |
10 | * @param {DygraphDataArray| | |
11 | * GVizDataTable| | |
12 | * string| | |
13 | * function():(DygraphDataArray|GVizDataTable|string)} file | |
14 | * @param {Object} attrs | |
15 | * @constructor | |
f11283de | 16 | */ |
0e7874c7 | 17 | function Dygraph(div, file, attrs) {} |
f11283de | 18 | |
0e7874c7 DV |
19 | /** @type {string} */ |
20 | Dygraph.NAME; | |
f11283de | 21 | |
0e7874c7 DV |
22 | /** @type {string} */ |
23 | Dygraph.VERSION; | |
f11283de | 24 | |
0e7874c7 DV |
25 | /** @type {function(): string} */ |
26 | Dygraph.toString; | |
f11283de | 27 | |
c26c7541 BW |
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 | ||
0e7874c7 DV |
37 | /** @type {function(?string): boolean} */ |
38 | Dygraph.prototype.isZoomed; | |
f11283de | 39 | |
0e7874c7 DV |
40 | /** @type {function(): string} */ |
41 | Dygraph.prototype.toString; | |
f11283de | 42 | |
0e7874c7 DV |
43 | /** @type {function(string, string)} */ |
44 | Dygraph.prototype.getOption; | |
d67a4279 | 45 | |
0e7874c7 DV |
46 | /** @type {function(): number} */ |
47 | Dygraph.prototype.rollPeriod; | |
d67a4279 | 48 | |
0e7874c7 DV |
49 | /** @type {function(): ?Array.<number>} */ |
50 | Dygraph.prototype.xAxisRange; | |
d67a4279 | 51 | |
0e7874c7 DV |
52 | /** @type {function(): Array.<number>} */ |
53 | Dygraph.prototype.xAxisExtremes; | |
d67a4279 | 54 | |
0e7874c7 DV |
55 | /** @type {function(number): ?Array.<number>} */ |
56 | Dygraph.prototype.yAxisRange; | |
d67a4279 | 57 | |
0e7874c7 DV |
58 | /** @type {function(): Array.<Array.<number>>} */ |
59 | Dygraph.prototype.yAxisRanges; | |
d67a4279 | 60 | |
0e7874c7 DV |
61 | /** @type {function(?number, ?number, ?number): Array.<?number>} */ |
62 | Dygraph.prototype.toDomCoords | |
f11283de | 63 | |
0e7874c7 DV |
64 | /** @type {function(?number): ?number} */ |
65 | Dygraph.prototype.toDomXCoord; | |
d67a4279 | 66 | |
0e7874c7 DV |
67 | /** @type {function(?number, ?number): ?number} */ |
68 | Dygraph.prototype.toDomYCoord; | |
d67a4279 | 69 | |
0e7874c7 DV |
70 | /** @type {function(?number, ?number, ?number): Array.<?number>} */ |
71 | Dygraph.prototype.toDataCoords; | |
3f265488 | 72 | |
0e7874c7 DV |
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; | |
f11283de | 120 | |
3f265488 LB |
121 | /** @type {function(): string} */ |
122 | Dygraph.prototype.getHighlightSeries; | |
123 | ||
0e7874c7 DV |
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; | |
b2867ee1 | 156 | |
0e7874c7 DV |
157 | /** @type {function(function(!Dygraph))} */ |
158 | Dygraph.prototype.ready; |