Merge remote-tracking branch 'origin/master' into jsdoc3-documentation

This commit is contained in:
Mark Salsbery 2013-11-19 11:24:54 -08:00
commit 9065b5e1db
13 changed files with 41 additions and 12 deletions

View File

@ -54,6 +54,7 @@ OPENSEADRAGON CHANGELOG
* Viewer.innerTracker.dragHandler: preventDefaultAction == true prevents viewer panning with mouse/touch
* Viewer.innerTracker.scrollHandler: preventDefaultAction == true prevents viewer zooming on mousewheel/pinch
* Fixed: IE8 error with custom buttons - "Object doesn't support this action" (#279)
* Support IIIF servers that don't report tile dimensions (#286)
0.9.131:

View File

@ -3,17 +3,17 @@
"version": "0.9.131",
"description": "Provides a smooth, zoomable user interface for HTML/Javascript.",
"devDependencies": {
"grunt": "~0.4.0",
"grunt-contrib-compress": "~0.5.0",
"grunt-contrib-concat": "~0.1.2",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-qunit": "~0.2.0",
"grunt-contrib-connect": "~0.1.2",
"grunt-contrib-watch": "~0.2.0",
"grunt-contrib-clean": "~0.4.0",
"grunt": "~0.4.1",
"grunt-contrib-compress": "~0.5.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-qunit": "~0.3.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-clean": "~0.5.0",
"grunt-git-describe": "~2.0.0",
"grunt-text-replace": "~0.3.2"
"grunt-text-replace": "~0.3.9"
},
"scripts": {
"test": "grunt test"

View File

@ -51,7 +51,12 @@ $.IIIF1_1TileSource = function( options ){
throw new Error('IIIF required parameters not provided.');
}
options.tileSize = this.tile_width;
if ( !(this.tile_width && this.tile_height) ) {
// use the short dimension if there aren't tile sizes provided.
options.tileSize = Math.min(this.height, this.width);
} else {
options.tileSize = this.tile_width;
}
if (! options.maxLevel ) {
var mf = -1;
@ -82,7 +87,6 @@ $.extend( $.IIIF1_1TileSource.prototype, $.TileSource.prototype, /** @lends Open
"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0" == data.profile ||
"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1" == data.profile ||
"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2" == data.profile ||
"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level3" == data.profile ||
"http://library.stanford.edu/iiif/image-api/1.1/compliance.html" == data.profile
);
},

View File

@ -0,0 +1,19 @@
{
"profile": "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",
"height": 850,
"width": 1024,
"qualities": [
"native",
"color",
"grey",
"bitonal"
],
"formats": [
"jpg",
"png",
"gif"
],
"@context": "http://library.stanford.edu/iiif/image-api/1.1/context.json",
"@id": "http://localhost:8000/test/data/iiif_no_tiles"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

View File

@ -80,4 +80,9 @@
testOpen('iiif1_1.json');
});
// ----------
asyncTest('IIIF No Tiles', function() {
testOpen('iiif_no_tiles.json');
});
})();