mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Moved update-viewport event
This commit is contained in:
parent
08a38a8602
commit
1f13d1f909
@ -173,19 +173,6 @@ function updateViewport( tiledImage ) {
|
|||||||
|
|
||||||
tiledImage.updateAgain = false;
|
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,
|
var tile,
|
||||||
level,
|
level,
|
||||||
best = null,
|
best = null,
|
||||||
|
@ -2715,6 +2715,17 @@ function resizeViewportAndRecenter( viewer, containerSize, oldBounds, oldCenter
|
|||||||
function updateWorld( viewer ) {
|
function updateWorld( viewer ) {
|
||||||
viewer.drawer.clear();
|
viewer.drawer.clear();
|
||||||
viewer.world.update();
|
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', {} );
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -768,7 +768,7 @@ $.Viewport.prototype = /** @lends OpenSeadragon.Viewport.prototype */{
|
|||||||
/**
|
/**
|
||||||
* Raised when rotation has been changed.
|
* Raised when rotation has been changed.
|
||||||
*
|
*
|
||||||
* @event update-viewport
|
* @event rotate
|
||||||
* @memberof OpenSeadragon.Viewer
|
* @memberof OpenSeadragon.Viewer
|
||||||
* @type {object}
|
* @type {object}
|
||||||
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
||||||
|
Loading…
Reference in New Issue
Block a user