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