Added path to gulpfile.
This commit is contained in:
+19
-35
@@ -1,6 +1,5 @@
|
||||
import { Colors } from '../../utils.js'
|
||||
import { WorkerTileLoader, PIXITileLoader } from "./loader.js"
|
||||
|
||||
import { WorkerTileLoader, PIXITileLoader } from './loader.js'
|
||||
|
||||
/**
|
||||
* A layer of tiles that represents a zoom level of a DeepZoomImage as a grid
|
||||
@@ -18,18 +17,7 @@ import { WorkerTileLoader, PIXITileLoader } from "./loader.js"
|
||||
* @param {number} fadeInTime - time needed to fade in tiles if TweenLite is set
|
||||
**/
|
||||
export class Tiles extends PIXI.Container {
|
||||
constructor(
|
||||
level,
|
||||
view,
|
||||
scale,
|
||||
cols,
|
||||
rows,
|
||||
width,
|
||||
height,
|
||||
tileSize,
|
||||
overlap,
|
||||
fadeInTime = 0.33
|
||||
) {
|
||||
constructor(level, view, scale, cols, rows, width, height, tileSize, overlap, fadeInTime = 0.33) {
|
||||
super()
|
||||
this.debug = false
|
||||
this.showGrid = false
|
||||
@@ -66,8 +54,6 @@ export class Tiles extends PIXI.Container {
|
||||
this.destroyed = false
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Tests whether all tiles are loaded. **/
|
||||
isComplete() {
|
||||
return this.cols * this.rows === this.children.length
|
||||
@@ -106,19 +92,19 @@ export class Tiles extends PIXI.Container {
|
||||
if (this.debug)
|
||||
console.log(
|
||||
'Tiles level: ' +
|
||||
this.level +
|
||||
' scale: ' +
|
||||
this.scale.x +
|
||||
' cols: ' +
|
||||
this.cols +
|
||||
' rows: ' +
|
||||
this.rows +
|
||||
' w: ' +
|
||||
this.pixelWidth +
|
||||
' h: ' +
|
||||
this.pixelHeight +
|
||||
' tsize:' +
|
||||
this.tileSize
|
||||
this.level +
|
||||
' scale: ' +
|
||||
this.scale.x +
|
||||
' cols: ' +
|
||||
this.cols +
|
||||
' rows: ' +
|
||||
this.rows +
|
||||
' w: ' +
|
||||
this.pixelWidth +
|
||||
' h: ' +
|
||||
this.pixelHeight +
|
||||
' tsize:' +
|
||||
this.tileSize
|
||||
)
|
||||
}
|
||||
|
||||
@@ -266,8 +252,8 @@ export class Tiles extends PIXI.Container {
|
||||
}
|
||||
|
||||
/* Destroys the tiles which are not with the bounds of the app to free
|
||||
* memory.
|
||||
**/
|
||||
* memory.
|
||||
**/
|
||||
destroyTiles(quadTrees) {
|
||||
let count = 0
|
||||
for (let [url, tile] of this.available.entries()) {
|
||||
@@ -276,8 +262,7 @@ export class Tiles extends PIXI.Container {
|
||||
count += 1
|
||||
}
|
||||
}
|
||||
if (count && this.debug)
|
||||
console.log('destroyTiles', this.level, count)
|
||||
if (count && this.debug) console.log('destroyTiles', this.level, count)
|
||||
}
|
||||
|
||||
destroyUnneededTiles() {
|
||||
@@ -288,8 +273,7 @@ export class Tiles extends PIXI.Container {
|
||||
count += 1
|
||||
}
|
||||
}
|
||||
if (count && this.debug)
|
||||
console.log('destroyUnneededTiles', this.level, count)
|
||||
if (count && this.debug) console.log('destroyUnneededTiles', this.level, count)
|
||||
}
|
||||
|
||||
highlightInfos() {
|
||||
|
||||
Reference in New Issue
Block a user