mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-08 02:49:22 +03:00
Update viewer.js
This commit is contained in:
parent
fc972df52e
commit
ec71a4416e
@ -200,12 +200,14 @@ $.Viewer = function( options ) {
|
|||||||
if( this.tileSources.length > 1 ){
|
if( this.tileSources.length > 1 ){
|
||||||
THIS[ this.hash ].sequenced = true;
|
THIS[ this.hash ].sequenced = true;
|
||||||
}
|
}
|
||||||
initialTileSource = this.tileSources[ 0 ];
|
initialTileSource = this.tileSources[ this.initialPage ];
|
||||||
|
this.goToPage( this.initialPage );
|
||||||
} else {
|
} else {
|
||||||
initialTileSource = this.tileSources;
|
initialTileSource = this.tileSources;
|
||||||
|
this.open( initialTileSource );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.open( initialTileSource );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.element = this.element || document.getElementById( this.id );
|
this.element = this.element || document.getElementById( this.id );
|
||||||
@ -1066,7 +1068,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
currentPage: function () {
|
||||||
|
return THIS[ this.hash ].sequence;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @function
|
* @function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user