|
@@ -5,7 +5,7 @@ export default class ConvertViews extends THREE.EventDispatcher{
|
|
|
super()
|
|
|
this.sourceApp = null
|
|
|
this.targetApp = null
|
|
|
- this.sceneType = null
|
|
|
+ this.sourceType = null
|
|
|
|
|
|
}
|
|
|
|
|
@@ -18,7 +18,7 @@ export default class ConvertViews extends THREE.EventDispatcher{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- init(sourceApp, targetApp, sourceDom, sceneType, cameraData, sourcePano) {
|
|
|
+ init(sourceApp, targetApp, sourceDom, sourceType, cameraData, sourcePano) {
|
|
|
//if (!this.player1.model.panos.list.length || !this.player2.model.panos.list.length) return
|
|
|
|
|
|
if(this.loaded || !targetApp ) return
|
|
@@ -26,10 +26,10 @@ export default class ConvertViews extends THREE.EventDispatcher{
|
|
|
this.sourceApp = sourceApp
|
|
|
this.targetApp = targetApp
|
|
|
this.sourceDom = sourceDom
|
|
|
- this.sceneType = sceneType
|
|
|
+ this.sourceType = source
|
|
|
let viewer = this.viewer = targetApp.viewer
|
|
|
|
|
|
- this.needConvertAxis = sceneType == '4dkk' // Y朝上需要转换
|
|
|
+ this.needConvertAxis = sourceType == '4dkk' // Y朝上需要转换
|
|
|
|
|
|
this.lastCamStatus = viewer.getCameraStatus()
|
|
|
this.computeShift(sourcePano)
|