From: Brent Walther Date: Tue, 1 Jul 2014 15:49:30 +0000 (-0700) Subject: Add panning interaction model functions to dygraph-externs X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=f1c952bc5bc96e75fee5c0687f151c1f58792cea;p=dygraphs.git Add panning interaction model functions to dygraph-externs Add the startPan(), movePan(), and endPan() functions to the externs file. These functions are commonly used when defining custom interaction models and must be defined in order to satisfy the closure compiler. --- diff --git a/dygraph-externs.js b/dygraph-externs.js index b4b8e5d..11f8674 100644 --- a/dygraph-externs.js +++ b/dygraph-externs.js @@ -19,6 +19,15 @@ 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;