mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Cleanup.
This commit is contained in:
parent
873135b492
commit
01303787ce
@ -50,6 +50,7 @@
|
|||||||
$.Navigator = function( options ){
|
$.Navigator = function( options ){
|
||||||
|
|
||||||
var viewer = options.viewer,
|
var viewer = options.viewer,
|
||||||
|
_this = this,
|
||||||
viewerSize,
|
viewerSize,
|
||||||
navigatorSize,
|
navigatorSize,
|
||||||
unneededElement;
|
unneededElement;
|
||||||
@ -217,10 +218,9 @@ $.Navigator = function( options ){
|
|||||||
|
|
||||||
if (options.navigatorRotate)
|
if (options.navigatorRotate)
|
||||||
{
|
{
|
||||||
var _this = this;
|
|
||||||
options.viewer.addHandler("rotate", function (args) {
|
options.viewer.addHandler("rotate", function (args) {
|
||||||
_setTransformRotate(_this.viewer.navigator.displayRegionContainer, args.degrees);
|
_setTransformRotate(_this.displayRegionContainer, args.degrees);
|
||||||
_setTransformRotate(_this.viewer.navigator.displayRegion, -args.degrees);
|
_setTransformRotate(_this.displayRegion, -args.degrees);
|
||||||
_this.viewport.setRotation(args.degrees);
|
_this.viewport.setRotation(args.degrees);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -742,7 +742,7 @@ $.Viewport.prototype = /** @lends OpenSeadragon.Viewport.prototype */{
|
|||||||
* @property {Number} degrees - The number of degrees the rotation was set to.
|
* @property {Number} degrees - The number of degrees the rotation was set to.
|
||||||
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||||
*/
|
*/
|
||||||
if (this.viewer.navigator !== null)
|
if (this.viewer !== null)
|
||||||
{
|
{
|
||||||
this.viewer.raiseEvent('rotate', {"degrees": degrees});
|
this.viewer.raiseEvent('rotate', {"degrees": degrees});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user