cleanup
[dygraphs.git] / dygraph-externs.js
... / ...
CommitLineData
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 */
17function Dygraph(div, file, attrs) {}
18
19/** @type {string} */
20Dygraph.NAME;
21
22/** @type {string} */
23Dygraph.VERSION;
24
25/** @type {function(): string} */
26Dygraph.toString;
27
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
37/** @type {function(?string): boolean} */
38Dygraph.prototype.isZoomed;
39
40/** @type {function(): string} */
41Dygraph.prototype.toString;
42
43/** @type {function(string, string)} */
44Dygraph.prototype.getOption;
45
46/** @type {function(): number} */
47Dygraph.prototype.rollPeriod;
48
49/** @type {function(): ?Array.<number>} */
50Dygraph.prototype.xAxisRange;
51
52/** @type {function(): Array.<number>} */
53Dygraph.prototype.xAxisExtremes;
54
55/** @type {function(number): ?Array.<number>} */
56Dygraph.prototype.yAxisRange;
57
58/** @type {function(): Array.<Array.<number>>} */
59Dygraph.prototype.yAxisRanges;
60
61/** @type {function(?number, ?number, ?number): Array.<?number>} */
62Dygraph.prototype.toDomCoords
63
64/** @type {function(?number): ?number} */
65Dygraph.prototype.toDomXCoord;
66
67/** @type {function(?number, ?number): ?number} */
68Dygraph.prototype.toDomYCoord;
69
70/** @type {function(?number, ?number, ?number): Array.<?number>} */
71Dygraph.prototype.toDataCoords;
72
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;
120
121/** @type {function(): string} */
122Dygraph.prototype.getHighlightSeries;
123
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;
156
157/** @type {function(function(!Dygraph))} */
158Dygraph.prototype.ready;