Add new callback function to view.FitOptions

This commit is contained in:
Frederic Junod
2017-05-01 16:44:55 +02:00
parent 4507fb9368
commit 403214f569
3 changed files with 33 additions and 2 deletions
+12 -1
View File
@@ -7849,7 +7849,8 @@ olx.view;
* maxZoom: (number|undefined),
* minResolution: (number|undefined),
* duration: (number|undefined),
* easing: (undefined|function(number):number)
* easing: (undefined|function(number):number),
* callback: (undefined|function(boolean))
* }}
*/
olx.view.FitOptions;
@@ -7927,6 +7928,16 @@ olx.view.FitOptions.prototype.duration;
olx.view.FitOptions.prototype.easing;
/**
* Optional function called when the view is in it's final position. The callback will be
* called with `true` if the animation series completed on its own or `false`
* if it was cancelled.
* @type {undefined|function(boolean)}
* @api
*/
olx.view.FitOptions.prototype.callback;
/* typedefs for object literals exposed by the library */