mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
Added "fully-loaded" event to TiledImage
This commit is contained in:
parent
09afedb42f
commit
f1cdf90653
@ -815,8 +815,19 @@ function updateViewport( tiledImage ) {
|
|||||||
// Load the new 'best' tile
|
// Load the new 'best' tile
|
||||||
if (best && !best.context2D) {
|
if (best && !best.context2D) {
|
||||||
loadTile( tiledImage, best, currentTime );
|
loadTile( tiledImage, best, currentTime );
|
||||||
|
} else {
|
||||||
|
/**
|
||||||
|
* Fired every time the TiledImage is drawn when all the necessary tiles for the
|
||||||
|
* current view have been fully loaded.
|
||||||
|
*
|
||||||
|
* @event fully-loaded
|
||||||
|
* @memberof OpenSeadragon.TiledImage
|
||||||
|
* @type {object}
|
||||||
|
* @property {OpenSeadragon.TiledImage} eventSource - A reference to the TiledImage which raised the event.
|
||||||
|
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||||
|
*/
|
||||||
|
tiledImage.raiseEvent('fully-loaded');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user