merging remote

This commit is contained in:
Tom 2023-06-07 10:14:58 -04:00
commit 8fe6a5f6e6

View File

@ -397,8 +397,6 @@ export class ThreeJSDrawer extends OpenSeadragon.DrawerBase{
_updateMeshIfNeeded(tiledImage){ _updateMeshIfNeeded(tiledImage){
let tileContainer = this._tiledImageMap[tiledImage[this._uuid]].userData.tileContainer; let tileContainer = this._tiledImageMap[tiledImage[this._uuid]].userData.tileContainer;
let scene = this._tiledImageMap[tiledImage[this._uuid]] let scene = this._tiledImageMap[tiledImage[this._uuid]]
// let levelsInterval = tiledImage._getLevelsInterval();
// let level = levelsInterval.highestLevel;
let level = Math.max(...tiledImage.getTilesToDraw().map(tile => tile.level)); let level = Math.max(...tiledImage.getTilesToDraw().map(tile => tile.level));
if(scene.userData.currentLevel === level){ if(scene.userData.currentLevel === level){