Bandaid fix for change in Zoomify.js/CustomTile signature
The recent addition of tilePixelRatio to the Zoomify.js/CustomTile constructor broke parameter binding in IIIF.js/IIIF. The fix mirrors the change in the Zoomify.js/Zoomify constructor
This commit is contained in:
@@ -75,6 +75,7 @@ class IIIF extends TileImage {
|
|||||||
const width = size[0];
|
const width = size[0];
|
||||||
const height = size[1];
|
const height = size[1];
|
||||||
const tileSize = options.tileSize;
|
const tileSize = options.tileSize;
|
||||||
|
const tilePixelRatio = options.tilePixelRatio || 1;
|
||||||
const format = options.format || 'jpg';
|
const format = options.format || 'jpg';
|
||||||
const quality = options.quality || (options.version == Versions.VERSION1 ? 'native' : 'default');
|
const quality = options.quality || (options.version == Versions.VERSION1 ? 'native' : 'default');
|
||||||
let resolutions = options.resolutions || [];
|
let resolutions = options.resolutions || [];
|
||||||
@@ -259,8 +260,8 @@ class IIIF extends TileImage {
|
|||||||
}
|
}
|
||||||
return baseUrl + regionParam + '/' + sizeParam + '/0/' + quality + '.' + format;
|
return baseUrl + regionParam + '/' + sizeParam + '/0/' + quality + '.' + format;
|
||||||
};
|
};
|
||||||
|
|
||||||
const IiifTileClass = CustomTile.bind(null, tileGrid);
|
const IiifTileClass = CustomTile.bind(null, tilePixelRatio, tileGrid);
|
||||||
|
|
||||||
super({
|
super({
|
||||||
attributions: options.attributions,
|
attributions: options.attributions,
|
||||||
|
|||||||
Reference in New Issue
Block a user