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