Clear graph when numAxes goes from 1 -> 2 in updateOptions
[dygraphs.git] / dygraph-externs.js
index b4b8e5d..e8e2c42 100644 (file)
@@ -1,3 +1,9 @@
+/**
+ * @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
@@ -19,13 +25,22 @@ 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)} */
+/** @type {function(string, string=)} */
 Dygraph.prototype.getOption;
 
 /** @type {function(): number} */
@@ -112,7 +127,7 @@ Dygraph.prototype.isSeriesLocked;
 /** @type {function(): number} */
 Dygraph.prototype.numAxes;
 
-/** @type {function(Object, Boolean=)} */
+/** @type {function(Object, boolean=)} */
 Dygraph.prototype.updateOptions;
 
 /** @type {function(number, number)} */
@@ -127,7 +142,7 @@ Dygraph.prototype.visibility;
 /** @type {function(number, boolean)} */
 Dygraph.prototype.setVisibility;
 
-/** @type {function(Array.<Object>, boolean)} */
+/** @type {function(Array.<Object>, boolean=)} */
 Dygraph.prototype.setAnnotations;
 
 /** @type {function(): Array.<Object>} */