Merge pull request #309 from hulkholden/hidpi
[dygraphs.git] / dygraph-types.js
1 // This file contains typedefs and externs that are needed by the Closure Compiler.
2
3 /**
4 * @typedef {{
5 * px: number,
6 * py: number,
7 * isZooming: boolean,
8 * isPanning: boolean,
9 * is2DPan: boolean,
10 * cancelNextDblclick: boolean,
11 * initializeMouseDown:
12 * function(!Event, !Dygraph, !DygraphInteractionContext)
13 * }}
14 */
15 var DygraphInteractionContext;
16
17 /**
18 * Point structure.
19 *
20 * xval_* and yval_* are the original unscaled data values,
21 * while x_* and y_* are scaled to the range (0.0-1.0) for plotting.
22 * yval_stacked is the cumulative Y value used for stacking graphs,
23 * and bottom/top/minus/plus are used for error bar graphs.
24 *
25 * @typedef {{
26 * idx: number,
27 * name: string,
28 * x: ?number,
29 * xval: ?number,
30 * y_bottom: ?number,
31 * y: ?number,
32 * y_stacked: ?number,
33 * y_top: ?number,
34 * yval_minus: ?number,
35 * yval: ?number,
36 * yval_plus: ?number,
37 * yval_stacked
38 * }}
39 */
40 Dygraph.PointType;