Merge pull request #1871 from MImranAsghar/change-v2-iiifsize

Replace v2 iiifSize max with full
This commit is contained in:
Ian Gilman 2020-08-24 17:08:15 -07:00 committed by GitHub
commit 1772cab251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
} }
if ( levelWidth < tileWidth && levelHeight < tileHeight ){ if ( levelWidth < tileWidth && levelHeight < tileHeight ){
if ( this.version === 2 && levelWidth === this.width ) { if ( this.version === 2 && levelWidth === this.width ) {
iiifSize = "max"; iiifSize = "full";
} else if ( this.version === 3 && levelWidth === this.width && levelHeight === this.height ) { } else if ( this.version === 3 && levelWidth === this.width && levelHeight === this.height ) {
iiifSize = "max"; iiifSize = "max";
} else if ( this.version === 3 ) { } else if ( this.version === 3 ) {
@ -420,7 +420,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
iiifSizeW = Math.ceil( iiifTileW * scale ); iiifSizeW = Math.ceil( iiifTileW * scale );
iiifSizeH = Math.ceil( iiifTileH * scale ); iiifSizeH = Math.ceil( iiifTileH * scale );
if ( this.version === 2 && iiifSizeW === this.width ) { if ( this.version === 2 && iiifSizeW === this.width ) {
iiifSize = "max"; iiifSize = "full";
} else if ( this.version === 3 && iiifSizeW === this.width && iiifSizeH === this.height ) { } else if ( this.version === 3 && iiifSizeW === this.width && iiifSizeH === this.height ) {
iiifSize = "max"; iiifSize = "max";
} else if (this.version === 3) { } else if (this.version === 3) {