Compare commits

..

6 Commits

Author SHA1 Message Date
Ian Gilman
0474d64ba1 Changelog for #2201 2022-09-28 14:00:46 -07:00
Ian Gilman
38bc89f455 Merge branch 'master' of github.com:openseadragon/openseadragon 2022-09-28 13:57:06 -07:00
Ian Gilman
9ec91891e6
Merge pull request #2201 from joedf/fix-2193
Fix "Viewer.buttons is deprecated" warning issue
2022-09-28 13:54:41 -07:00
Joe DF
6d74b684ec implement @iangilman 's fix 2022-09-17 17:10:03 +02:00
Joe DF
7497b83525 based on @pearcetm 's fix 2022-09-10 21:31:15 -04:00
Ian Gilman
f88a1f0603 Changelog for #2136 2022-08-23 14:17:39 -07:00
2 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,8 @@ OPENSEADRAGON CHANGELOG
3.2.0: (in progress) 3.2.0: (in progress)
* NEW BEHAVIOR: Setting the viewport rotation now animates by default (pass false for the new immediately parameter to disable) (#2136 @jonasengelmann)
* DEPRECATION: Don't access the viewport's degrees property directly anymore; instead use setRotation and getRotation (#2136 @jonasengelmann)
* Improved the constraints that keep the image in the viewer, specifically when zoomed out a lot (#2160 @joedf) * Improved the constraints that keep the image in the viewer, specifically when zoomed out a lot (#2160 @joedf)
* You can now provide an element for the navigator (as an alternative to an ID) (#1303 @cameronbaney, #2166 #2175 @joedf) * You can now provide an element for the navigator (as an alternative to an ID) (#1303 @cameronbaney, #2166 #2175 @joedf)
* Now supporting IIIF "id" and "identifier" in addition to "@id" (#2173 @ahankinson) * Now supporting IIIF "id" and "identifier" in addition to "@id" (#2173 @ahankinson)
@ -10,6 +12,7 @@ OPENSEADRAGON CHANGELOG
* Fixed: Cropping tiled images with polygons was broken (#2183 @altert) * Fixed: Cropping tiled images with polygons was broken (#2183 @altert)
* Fixed: Disabling buttons only changed their appearance, but they were still clickable (#2187 @pearcetm) * Fixed: Disabling buttons only changed their appearance, but they were still clickable (#2187 @pearcetm)
* Fixed: ImageTileSource produced an error having to do with getTileHashKey (#2190 @Aiosa) * Fixed: ImageTileSource produced an error having to do with getTileHashKey (#2190 @Aiosa)
* Fixed: On startup you would get an unnecessary "Viewer.buttons is deprecated" warning (#2201 @joedf)
3.1.0: 3.1.0:

View File

@ -1101,8 +1101,13 @@ function OpenSeadragon( options ){
if ( options !== null || options !== undefined ) { if ( options !== null || options !== undefined ) {
// Extend the base object // Extend the base object
for ( name in options ) { for ( name in options ) {
src = target[ name ]; var descriptor = Object.getOwnPropertyDescriptor(options, name);
copy = options[ name ]; if (descriptor.get || descriptor.set) {
Object.defineProperty(target, name, descriptor);
continue;
}
copy = descriptor.value;
// Prevent never-ending loop // Prevent never-ending loop
if ( target === copy ) { if ( target === copy ) {
@ -1111,6 +1116,8 @@ function OpenSeadragon( options ){
// Recurse if we're merging plain objects or arrays // Recurse if we're merging plain objects or arrays
if ( deep && copy && ( OpenSeadragon.isPlainObject( copy ) || ( copyIsArray = OpenSeadragon.isArray( copy ) ) ) ) { if ( deep && copy && ( OpenSeadragon.isPlainObject( copy ) || ( copyIsArray = OpenSeadragon.isArray( copy ) ) ) ) {
src = target[ name ];
if ( copyIsArray ) { if ( copyIsArray ) {
copyIsArray = false; copyIsArray = false;
clone = src && OpenSeadragon.isArray( src ) ? src : []; clone = src && OpenSeadragon.isArray( src ) ? src : [];