mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Update jsdoc, replace Object.assign with $.extend
This commit is contained in:
parent
54721608a4
commit
1ccefd9f6a
@ -2457,6 +2457,17 @@ function OpenSeadragon( options ){
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates supported image formats with user-specified values.
|
* Updates supported image formats with user-specified values.
|
||||||
|
* Preexisting formats that are not being updated are left unchanged.
|
||||||
|
* By default, the defined formats are
|
||||||
|
* <pre><code>{
|
||||||
|
* bmp: false,
|
||||||
|
* jpeg: true,
|
||||||
|
* jpg: true,
|
||||||
|
* png: true,
|
||||||
|
* tif: false,
|
||||||
|
* wdp: false
|
||||||
|
* }
|
||||||
|
* </code></pre>
|
||||||
* @function
|
* @function
|
||||||
* @example
|
* @example
|
||||||
* // sets webp as supported and png as unsupported
|
* // sets webp as supported and png as unsupported
|
||||||
@ -2466,7 +2477,7 @@ function OpenSeadragon( options ){
|
|||||||
*/
|
*/
|
||||||
setImageFormatsSupported: function(formats) {
|
setImageFormatsSupported: function(formats) {
|
||||||
// eslint-disable-next-line no-use-before-define
|
// eslint-disable-next-line no-use-before-define
|
||||||
Object.assign(FILEFORMATS, formats);
|
$.extend(FILEFORMATS, formats);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user