mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
add formatHints options
This commit is contained in:
parent
f8022385f7
commit
81e030e653
@ -69,6 +69,11 @@
|
|||||||
* the XHR's withCredentials (for accessing secure data).
|
* the XHR's withCredentials (for accessing secure data).
|
||||||
* @param {Object} [options.ajaxHeaders]
|
* @param {Object} [options.ajaxHeaders]
|
||||||
* A set of headers to include in AJAX requests.
|
* A set of headers to include in AJAX requests.
|
||||||
|
* @param {Object} [options.formatHints]
|
||||||
|
* An array of extensions to use for image URLs, by descending order of
|
||||||
|
* preference. The extensions are tested against the supported formats,
|
||||||
|
* in case none of the extension values is supported, the default (jpg)
|
||||||
|
* will be used.
|
||||||
* @param {Number} [options.width]
|
* @param {Number} [options.width]
|
||||||
* Width of the source image at max resolution in pixels.
|
* Width of the source image at max resolution in pixels.
|
||||||
* @param {Number} [options.height]
|
* @param {Number} [options.height]
|
||||||
@ -218,6 +223,7 @@ $.TileSource = function( width, height, tileSize, tileOverlap, minLevel, maxLeve
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tileOverlap = options.tileOverlap ? options.tileOverlap : 0;
|
this.tileOverlap = options.tileOverlap ? options.tileOverlap : 0;
|
||||||
|
this.formatHints = options.formatHints;
|
||||||
this.minLevel = options.minLevel ? options.minLevel : 0;
|
this.minLevel = options.minLevel ? options.minLevel : 0;
|
||||||
this.maxLevel = ( undefined !== options.maxLevel && null !== options.maxLevel ) ?
|
this.maxLevel = ( undefined !== options.maxLevel && null !== options.maxLevel ) ?
|
||||||
options.maxLevel : (
|
options.maxLevel : (
|
||||||
|
Loading…
Reference in New Issue
Block a user