Moved update-viewport event

This commit is contained in:
Ian Gilman 2014-08-19 15:43:36 -07:00
parent 08a38a8602
commit 1f13d1f909
3 changed files with 12 additions and 14 deletions

View File

@ -173,19 +173,6 @@ function updateViewport( tiledImage ) {
tiledImage.updateAgain = false;
if( tiledImage.viewer ){
/**
* <em>- Needs documentation -</em>
*
* @event update-viewport
* @memberof OpenSeadragon.Viewer
* @type {object}
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
* @property {?Object} userData - Arbitrary subscriber-defined object.
*/
tiledImage.viewer.raiseEvent( 'update-viewport', {} );
}
var tile,
level,
best = null,

View File

@ -2715,6 +2715,17 @@ function resizeViewportAndRecenter( viewer, containerSize, oldBounds, oldCenter
function updateWorld( viewer ) {
viewer.drawer.clear();
viewer.world.update();
/**
* <em>- Needs documentation -</em>
*
* @event update-viewport
* @memberof OpenSeadragon.Viewer
* @type {object}
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
* @property {?Object} userData - Arbitrary subscriber-defined object.
*/
viewer.raiseEvent( 'update-viewport', {} );
}
///////////////////////////////////////////////////////////////////////////////

View File

@ -768,7 +768,7 @@ $.Viewport.prototype = /** @lends OpenSeadragon.Viewport.prototype */{
/**
* Raised when rotation has been changed.
*
* @event update-viewport
* @event rotate
* @memberof OpenSeadragon.Viewer
* @type {object}
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.