Merge branch 'master' of gitea.iwm-tuebingen.de:IWMBrowser/iwmlib

This commit is contained in:
Manfred Knobloch 2019-06-03 11:39:54 +02:00
commit 2d1a6b1b7f
3 changed files with 8 additions and 11 deletions

View File

@ -635,7 +635,7 @@ export class DeepZoomImage extends PIXI.Container {
}
worldBounds() {
let viewBounds = this.app.scene.getBounds()
let viewBounds = this.app.scene.bounds // UO: Never use getBounds()
// Using getBounds extends visible scope after loading tiles and leads
// to excessive loading
if (this.world != null) {
@ -1076,15 +1076,12 @@ export class DeepZoomImage extends PIXI.Container {
*/
deactivate() {
this.destroyAllTiles()
Object.keys(this.tileLayers).forEach(key => {
this.destroyTiles(key)
})
this.tileContainer.destroy({ children: true })
printTileCacheInfos()
}
throwFinished() {
console.log("throwFinished")
//console.log("throwFinished")
let key = this.currentLevel.toString()
let currentTiles = this.tileLayers[key]
if (typeof currentTiles == 'undefined') {

View File

@ -139,7 +139,7 @@ export default class Tile extends PIXI.Sprite {
* @param {*} options Part of the PIXI API, but ignored in the implementation
* @memberof Tile
*/
destroy(options, debug = true) {
destroy(options, debug = false) {
let count = this.unregister()
if (keepTextures > 0) {

View File

@ -1,6 +1,6 @@
{
"name": "iwmlib",
"version": "1.0.10",
"version": "1.0.12",
"description": "An Open Source library for multi-touch, WebGL powered applications.",
"main": "index.js",
"directories": {