mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Merge branch 'master' of github.com:openseadragon/openseadragon
This commit is contained in:
commit
dec2afabb2
@ -1078,7 +1078,10 @@ $.Viewport.prototype = {
|
|||||||
|
|
||||||
if( this.viewer ){
|
if( this.viewer ){
|
||||||
/**
|
/**
|
||||||
* Raised when the viewer is resized (see {@link OpenSeadragon.Viewport#resize}).
|
* Raised when a viewer resize operation is initiated (see {@link OpenSeadragon.Viewport#resize}).
|
||||||
|
* This event happens before the viewport bounds have been updated.
|
||||||
|
* See also {@link OpenSeadragon.Viewer#after-resize} which reflects
|
||||||
|
* the new viewport bounds following the resize action.
|
||||||
*
|
*
|
||||||
* @event resize
|
* @event resize
|
||||||
* @memberof OpenSeadragon.Viewer
|
* @memberof OpenSeadragon.Viewer
|
||||||
@ -1094,7 +1097,29 @@ $.Viewport.prototype = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.fitBounds( newBounds, true );
|
var output = this.fitBounds( newBounds, true );
|
||||||
|
|
||||||
|
if( this.viewer ){
|
||||||
|
/**
|
||||||
|
* Raised after the viewer is resized (see {@link OpenSeadragon.Viewport#resize}).
|
||||||
|
* See also {@link OpenSeadragon.Viewer#resize} event which happens
|
||||||
|
* before the new bounds have been calculated and applied.
|
||||||
|
*
|
||||||
|
* @event after-resize
|
||||||
|
* @memberof OpenSeadragon.Viewer
|
||||||
|
* @type {object}
|
||||||
|
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised this event.
|
||||||
|
* @property {OpenSeadragon.Point} newContainerSize
|
||||||
|
* @property {Boolean} maintain
|
||||||
|
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||||
|
*/
|
||||||
|
this.viewer.raiseEvent( 'after-resize', {
|
||||||
|
newContainerSize: newContainerSize,
|
||||||
|
maintain: maintain
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
Loading…
Reference in New Issue
Block a user