mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
removed duplicate definition of Drawer.prototype._compareTiles
This commit is contained in:
parent
0041e32cbb
commit
c8b4197f79
@ -3446,21 +3446,6 @@ $.Drawer = function(source, viewport, elmt) {
|
||||
|
||||
$.Drawer.prototype = {
|
||||
|
||||
_compareTiles: function(prevBest, tile) {
|
||||
if (!prevBest) {
|
||||
return tile;
|
||||
}
|
||||
|
||||
if (tile.visibility > prevBest.visibility) {
|
||||
return tile;
|
||||
} else if (tile.visibility == prevBest.visibility) {
|
||||
if (tile.distance < prevBest.distance) {
|
||||
return tile;
|
||||
}
|
||||
}
|
||||
|
||||
return prevBest;
|
||||
},
|
||||
_getNumTiles: function(level) {
|
||||
if (!this.cacheNumTiles[level]) {
|
||||
this.cacheNumTiles[level] = this.source.getNumTiles(level);
|
||||
|
@ -74,21 +74,6 @@ $.Drawer = function(source, viewport, elmt) {
|
||||
|
||||
$.Drawer.prototype = {
|
||||
|
||||
_compareTiles: function(prevBest, tile) {
|
||||
if (!prevBest) {
|
||||
return tile;
|
||||
}
|
||||
|
||||
if (tile.visibility > prevBest.visibility) {
|
||||
return tile;
|
||||
} else if (tile.visibility == prevBest.visibility) {
|
||||
if (tile.distance < prevBest.distance) {
|
||||
return tile;
|
||||
}
|
||||
}
|
||||
|
||||
return prevBest;
|
||||
},
|
||||
_getNumTiles: function(level) {
|
||||
if (!this.cacheNumTiles[level]) {
|
||||
this.cacheNumTiles[level] = this.source.getNumTiles(level);
|
||||
|
Loading…
x
Reference in New Issue
Block a user