mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge branch 'master' into ms-mousetracker
* master: Create FUNDING.yml Bump ini from 1.3.5 to 1.3.7 change log for #1889 fileFormat is no longer hard coded in Zoomify Tile Source # Conflicts: # changelog.txt
This commit is contained in:
commit
9742c4880d
12
.github/FUNDING.yml
vendored
Normal file
12
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: iangilman
|
||||||
|
patreon: iangilman
|
||||||
|
open_collective: # Replace with a single Open Collective username
|
||||||
|
ko_fi: iangilman
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
|
liberapay: # Replace with a single Liberapay username
|
||||||
|
issuehunt: # Replace with a single IssueHunt username
|
||||||
|
otechie: # Replace with a single Otechie username
|
||||||
|
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
@ -10,6 +10,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* Miscellaneous code cleanup (#1840 @msalsbery)
|
* Miscellaneous code cleanup (#1840 @msalsbery)
|
||||||
* You can now specify tileSize for the Zoomify Tile Source (#1868 @abrlam)
|
* You can now specify tileSize for the Zoomify Tile Source (#1868 @abrlam)
|
||||||
* Better use of IIIF "max" and "full" URL parameters (#1871 @MImranAsghar)
|
* Better use of IIIF "max" and "full" URL parameters (#1871 @MImranAsghar)
|
||||||
|
* You can now specify the file format of the tiles in the Zoomify tile source (#1889 @abrlam)
|
||||||
* Improved browser sniffing - detect EDGE and CHROMEEDGE browsers (#1872 @msalsbery)
|
* Improved browser sniffing - detect EDGE and CHROMEEDGE browsers (#1872 @msalsbery)
|
||||||
* Improved DOM event model feature detection (#1872 @msalsbery)
|
* Improved DOM event model feature detection (#1872 @msalsbery)
|
||||||
* Added support for options parameter on addEvent()/removeEvent (to support passive option) (#1872 @msalsbery)
|
* Added support for options parameter on addEvent()/removeEvent (to support passive option) (#1872 @msalsbery)
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -2578,9 +2578,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"ini": {
|
"ini": {
|
||||||
"version": "1.3.5",
|
"version": "1.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz",
|
||||||
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
|
"integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"is-accessor-descriptor": {
|
"is-accessor-descriptor": {
|
||||||
|
@ -48,6 +48,11 @@
|
|||||||
options.tileSize = 256;
|
options.tileSize = 256;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof options.fileFormat === 'undefined'){
|
||||||
|
options.fileFormat = 'jpg';
|
||||||
|
this.fileFormat = options.fileFormat;
|
||||||
|
}
|
||||||
|
|
||||||
var currentImageSize = {
|
var currentImageSize = {
|
||||||
x: options.width,
|
x: options.width,
|
||||||
y: options.height
|
y: options.height
|
||||||
@ -135,7 +140,7 @@
|
|||||||
var result = 0;
|
var result = 0;
|
||||||
var num = this._calculateAbsoluteTileNumber(level, x, y);
|
var num = this._calculateAbsoluteTileNumber(level, x, y);
|
||||||
result = Math.floor(num / 256);
|
result = Math.floor(num / 256);
|
||||||
return this.tilesUrl + 'TileGroup' + result + '/' + level + '-' + x + '-' + y + '.jpg';
|
return this.tilesUrl + 'TileGroup' + result + '/' + level + '-' + x + '-' + y + '.' + this.fileFormat;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user