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