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