X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-types.js;fp=src%2Fdygraph-types.js;h=4434758eb86e271b612ce8eaacae5e3a16f1a6dd;hb=07cae5dd0adbcee97689ffa6099a6b0e8665011b;hp=0000000000000000000000000000000000000000;hpb=8db6393ec8cac592f323724e43a2a7122a84614f;p=dygraphs.git diff --git a/src/dygraph-types.js b/src/dygraph-types.js new file mode 100644 index 0000000..4434758 --- /dev/null +++ b/src/dygraph-types.js @@ -0,0 +1,46 @@ +/** + * @license + * Copyright 2006 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +// This file contains typedefs and externs that are needed by the Closure Compiler. + +/** + * @typedef {{ + * px: number, + * py: number, + * isZooming: boolean, + * isPanning: boolean, + * is2DPan: boolean, + * cancelNextDblclick: boolean, + * initializeMouseDown: + * function(!Event, !Dygraph, !DygraphInteractionContext) + * }} + */ +var DygraphInteractionContext; + +/** + * Point structure. + * + * xval_* and yval_* are the original unscaled data values, + * while x_* and y_* are scaled to the range (0.0-1.0) for plotting. + * yval_stacked is the cumulative Y value used for stacking graphs, + * and bottom/top/minus/plus are used for error bar graphs. + * + * @typedef {{ + * idx: number, + * name: string, + * x: ?number, + * xval: ?number, + * y_bottom: ?number, + * y: ?number, + * y_stacked: ?number, + * y_top: ?number, + * yval_minus: ?number, + * yval: ?number, + * yval_plus: ?number, + * yval_stacked + * }} + */ +Dygraph.PointType;