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