mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge branch 'master' into collections
fixed Conflicts: changelog.txt src/viewer.js
This commit is contained in:
commit
0fd94bb048
@ -1,7 +1,7 @@
|
||||
OPENSEADRAGON CHANGELOG
|
||||
=======================
|
||||
|
||||
2.0.0: (in progress)
|
||||
1.3.0: (in progress)
|
||||
|
||||
* True multi-image mode (#450)
|
||||
* BREAKING CHANGE: Passing an array for the tileSources option is no longer enough to trigger sequence mode; you have to set the sequenceMode option to true as well
|
||||
@ -40,7 +40,11 @@ OPENSEADRAGON CHANGELOG
|
||||
* Overlays appear in the DOM immediately on open or addOverlay (#507)
|
||||
* imageLoaderLimit now works (#544)
|
||||
|
||||
1.2.0: (in progress)
|
||||
1.2.1: (in progress)
|
||||
|
||||
* Added preserveOverlays option (#561)
|
||||
|
||||
1.2.0:
|
||||
|
||||
* New combined IIIF TileSource for 1.0 through 2.0 (#441)
|
||||
* BREAKING CHANGE: Removed IIIF1_1TileSource (now that IIIFTileSource supports all versions)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "OpenSeadragon",
|
||||
"version": "1.1.1",
|
||||
"version": "1.2.0",
|
||||
"description": "Provides a smooth, zoomable user interface for HTML/Javascript.",
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
|
@ -517,6 +517,12 @@
|
||||
* viewport to 'home' position. If preserveViewport is set to true, then the viewport
|
||||
* position is preserved when navigating between images in the sequence.
|
||||
*
|
||||
* @property {Boolean} [preserveOverlays=false]
|
||||
* If the viewer has been configured with a sequence of tile sources, then
|
||||
* normally navigating to through each image resets the overlays.
|
||||
* If preserveOverlays is set to true, then the overlays
|
||||
* are preserved when navigating between images in the sequence.
|
||||
*
|
||||
* @property {Boolean} [showReferenceStrip=false]
|
||||
* If sequenceMode is true, then display a scrolling strip of image thumbnails for
|
||||
* navigating through the images.
|
||||
@ -952,6 +958,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
showSequenceControl: true, //SEQUENCE
|
||||
sequenceControlAnchor: null, //SEQUENCE
|
||||
preserveViewport: false, //SEQUENCE
|
||||
preserveOverlays: false, //SEQUENCE
|
||||
navPrevNextWrap: false, //SEQUENCE
|
||||
showNavigationControl: true, //ZOOM/HOME/FULL/ROTATION
|
||||
navigationControlAnchor: null, //ZOOM/HOME/FULL/ROTATION
|
||||
|
@ -622,9 +622,11 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
}
|
||||
|
||||
// Global overlays
|
||||
if( _this.overlays && !_this.preserveOverlays ){
|
||||
for ( var i = 0; i < _this.overlays.length; i++ ) {
|
||||
_this.currentOverlays[ i ] = getOverlayObject( _this, _this.overlays[ i ] );
|
||||
}
|
||||
}
|
||||
|
||||
_this._drawOverlays();
|
||||
|
||||
@ -734,8 +736,11 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
this.navigator.close();
|
||||
}
|
||||
|
||||
if( ! this.preserveOverlays)
|
||||
{
|
||||
this.clearOverlays();
|
||||
this.overlaysContainer.innerHTML = "";
|
||||
}
|
||||
|
||||
THIS[ this.hash ].animating = false;
|
||||
this.world.removeAll();
|
||||
|
Loading…
Reference in New Issue
Block a user