mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
Respecting hints from jslint
This commit is contained in:
parent
e670ad6e1f
commit
8637388cab
@ -12,7 +12,6 @@
|
||||
* @param {String} tilesUrl
|
||||
*/
|
||||
$.ZoomifyTileSource = function(options) {
|
||||
|
||||
options.tileSize = 256;
|
||||
|
||||
var currentImageSize = {
|
||||
@ -57,12 +56,16 @@
|
||||
//private
|
||||
_calculateAbsoluteTileNumber: function(level, x, y) {
|
||||
var num = 0;
|
||||
var size = {};
|
||||
|
||||
//Sum up all tiles below the level we want the number of tiles
|
||||
for (var z = 0; z < level; z++) {
|
||||
var size = this.gridSize[z];
|
||||
size = this.gridSize[z];
|
||||
num += size.x * size.y;
|
||||
}
|
||||
var size = this.gridSize[level];
|
||||
num += size.x * y + x
|
||||
//Add the tiles of the level
|
||||
size = this.gridSize[level];
|
||||
num += size.x * y + x;
|
||||
return num;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user