Lines Matching refs:tile

331                 var tile = {  class in PanoJS.prepareTiles
341 tileCol.push(tile);
371 var tile = this.tiles[c][r];
373 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
374 tile.posy = (tile.yIndex * this.tileSize) + this.y + motion.y;
378 if (tile.posx > this.width) {
382 tile.xIndex -= this.tiles.length;
383 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
384 } while (tile.posx > this.width);
386 if (tile.posx + this.tileSize < 0) {
393 while (tile.posx < -this.tileSize) {
394 tile.xIndex += this.tiles.length;
395 tile.posx = (tile.xIndex * this.tileSize) + this.x + motion.x;
398 if (tile.posx > this.width) {
403 if (tile.posy > this.height) {
407 tile.yIndex -= this.tiles[c].length;
408 tile.posy = (tile.yIndex * this.tileSize) + this.y + motion.y;
409 } while (tile.posy > this.height);
411 if (tile.posy + this.tileSize < 0) {
418 while (tile.posy < -this.tileSize) {
419 tile.yIndex += this.tiles[c].length;
420 tile.posy = (tile.yIndex * this.tileSize) + this.y + motion.y;
423 if (tile.posy > this.height) {
430 this.assignTileImage(tile, true);
431 tile.element.style.top = tile.posy + 'px';
432 tile.element.style.left = tile.posx + 'px';
437 this.assignTileImage(tile);
441 tile.element.style.top = tile.posy + 'px';
442 tile.element.style.left = tile.posx + 'px';
461 assignTileImage: function (tile, forceBlankImage) { argument
468 var left = tile.xIndex < 0;
469 var high = tile.yIndex < 0;
470 var right = tile.xIndex >= Math.ceil(this.scaleSize.x / this.tileSize);
471 var low = tile.yIndex >= Math.ceil(this.scaleSize.y / this.tileSize);
478 tileImgId = 'blank:' + tile.qx + ':' + tile.qy;
482 … tileImgId = src = this.tileUrlProvider.assembleUrl(tile.xIndex, tile.yIndex, this.zoomLevel);
486 if (tile.element != null &&
487 tile.element.parentNode != null &&
488 tile.element.relativeSrc != src) {
489 this.well.removeChild(tile.element);
507 tile.element = this.well.appendChild(tileImg);
511 var loadingImgId = 'loading:' + tile.qx + ':' + tile.qy;
520 tile.element = well.appendChild(loadingImg);
527 tile.element = tileImg;