mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge branch 'master' into ms-gesturesettings
* master: Added changelog for #1954 and bumped upcoming version to 3.0.0 Update jsdoc, replace Object.assign with $.extend Create setImageFormatsSupported function # Conflicts: # changelog.txt
This commit is contained in:
commit
f99c9a8a4f
@ -1,7 +1,7 @@
|
|||||||
OPENSEADRAGON CHANGELOG
|
OPENSEADRAGON CHANGELOG
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
2.5.0: (In progress)
|
3.0.0: (In progress)
|
||||||
|
|
||||||
* BREAKING CHANGE: Dropped support for older browsers (IE < 11) (#1872 #1949 #1951 @msalsbery, #1950 @rmontroy)
|
* BREAKING CHANGE: Dropped support for older browsers (IE < 11) (#1872 #1949 #1951 @msalsbery, #1950 @rmontroy)
|
||||||
* BREAKING CHANGE: Removed deprecated OpenSeadragon.getEvent function (#1949 @msalsbery)
|
* BREAKING CHANGE: Removed deprecated OpenSeadragon.getEvent function (#1949 @msalsbery)
|
||||||
@ -38,6 +38,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* Added preventDefault option to MouseTracker.contextMenuHandler and Viewer 'canvas-contextmenu' event args (#1951 @msalsbery)
|
* Added preventDefault option to MouseTracker.contextMenuHandler and Viewer 'canvas-contextmenu' event args (#1951 @msalsbery)
|
||||||
* MouseTracker: Added preProcessEventHandler for keydown, keyup, keypress, focus, blur Events (#1951 @msalsbery)
|
* MouseTracker: Added preProcessEventHandler for keydown, keyup, keypress, focus, blur Events (#1951 @msalsbery)
|
||||||
* Fixed preventDefaultAction functionality in viewer events (#1953 @msalsbery)
|
* Fixed preventDefaultAction functionality in viewer events (#1953 @msalsbery)
|
||||||
|
* Added setImageFormatsSupported function (#1954 @pandaxtc)
|
||||||
* Added dragToPan to the GestureSettings class, implemented in Viewer (#1956 @msalsbery)
|
* Added dragToPan to the GestureSettings class, implemented in Viewer (#1956 @msalsbery)
|
||||||
|
|
||||||
2.4.2:
|
2.4.2:
|
||||||
|
@ -2464,6 +2464,31 @@ function OpenSeadragon( options ){
|
|||||||
extension = extension ? extension : "";
|
extension = extension ? extension : "";
|
||||||
// eslint-disable-next-line no-use-before-define
|
// eslint-disable-next-line no-use-before-define
|
||||||
return !!FILEFORMATS[ extension.toLowerCase() ];
|
return !!FILEFORMATS[ extension.toLowerCase() ];
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
||||||
|
* @example
|
||||||
|
* // sets webp as supported and png as unsupported
|
||||||
|
* setImageFormatsSupported({webp: true, png: false});
|
||||||
|
* @param {Object} formats An object containing format extensions as
|
||||||
|
* keys and booleans as values.
|
||||||
|
*/
|
||||||
|
setImageFormatsSupported: function(formats) {
|
||||||
|
// eslint-disable-next-line no-use-before-define
|
||||||
|
$.extend(FILEFORMATS, formats);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user