From c26c7541e66a1245360a65c62bea95b814680d52 Mon Sep 17 00:00:00 2001 From: Brent Walther Date: Tue, 1 Jul 2014 08:49:30 -0700 Subject: [PATCH] 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. --- dygraph-externs.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.7.4