|
@@ -1,6 +1,12 @@
|
|
/* 许钟文修改的 标记 xzw
|
|
/* 许钟文修改的 标记 xzw
|
|
另外 所有"matter"字样已被我删除 原因:删除matterport信息
|
|
另外 所有"matter"字样已被我删除 原因:删除matterport信息
|
|
*/
|
|
*/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
!function() {
|
|
!function() {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -3380,16 +3386,43 @@ window.Modernizr = function(n, e, t) {
|
|
this.currentScale = this.absoluteScale
|
|
this.currentScale = this.absoluteScale
|
|
}
|
|
}
|
|
,
|
|
,
|
|
- n.prototype.getDefaultAbsoluteScale = function(modelSize) {
|
|
|
|
- var t = Math.max(modelSize.x, modelSize.z)
|
|
|
|
- , i = Math.min(modelSize.x, modelSize.z)
|
|
|
|
- , n = Math.max(t, i * this.camera.aspect)
|
|
|
|
- , r = Math.max(i, t * this.camera.aspect);
|
|
|
|
- var absoluteScale = (h.aspectRatio() < 1 ? r : n) / 2 / o.orthoBase * 1.2
|
|
|
|
|
|
+ n.prototype.getDefaultAbsoluteScale = function(modelSize, ratio) {
|
|
|
|
+ let defaultRatio = 1.2 , absoluteScale
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(_settings.floorPlanAngle){//指定了角度的话,就和browser.aspectRatio()无关,总使用纵向
|
|
|
|
+ var angle = parseFloat(_settings.floorPlanAngle)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ modelSize = modelSize.clone().applyEuler(new THREE.Euler(0, angle, 0))
|
|
|
|
+
|
|
|
|
+ var n = Math.max(Math.abs(modelSize.x), Math.abs(modelSize.z) * this.camera.aspect) //视口宽高比 >= 1 情况下,模型所占最大视口尺寸
|
|
|
|
+
|
|
|
|
+ var screenSize = Math.min($("#player").width(), $("#player").height())
|
|
|
|
+ var maxSize = 800;//模型最大占据像素
|
|
|
|
+ ratio = ratio != void 0 ? ratio : Math.max(screenSize * defaultRatio / maxSize, defaultRatio) ;
|
|
|
|
+
|
|
|
|
+ absoluteScale = n / 2 / o.orthoBase * ratio; //根据模型所占最大视口尺寸调整缩放
|
|
|
|
+ }else{
|
|
|
|
+ var t = Math.max(modelSize.x, modelSize.z)
|
|
|
|
+ , i = Math.min(modelSize.x, modelSize.z)
|
|
|
|
+ , n = Math.max(t, i * this.camera.aspect)
|
|
|
|
+ , r = Math.max(i, t * this.camera.aspect);
|
|
|
|
+ absoluteScale = (h.aspectRatio() < 1 ? r : n) / 2 / o.orthoBase * defaultRatio
|
|
|
|
+ }
|
|
return absoluteScale
|
|
return absoluteScale
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
+ /* n.prototype.rotateToView = function(e, t) {
|
|
|
|
+ var i = 0
|
|
|
|
+ , n = h.aspectRatio() < 1
|
|
|
|
+ , r = e.x < e.z;
|
|
|
|
+ n === r ? t.z > 0 && (i = Math.PI) : i = t.x > 0 ? Math.PI / 2 : -Math.PI / 2,
|
|
|
|
+ this.rotateLeft(i),
|
|
|
|
+ this.update(0)
|
|
|
|
+ },
|
|
|
|
+ */
|
|
n.prototype.rotateToView = function(modelSize, direction) {
|
|
n.prototype.rotateToView = function(modelSize, direction) {
|
|
let i = 0, n = h.aspectRatio() < 1 //是否模型尺寸显“细长”
|
|
let i = 0, n = h.aspectRatio() < 1 //是否模型尺寸显“细长”
|
|
|
|
|
|
@@ -3431,6 +3464,8 @@ window.Modernizr = function(n, e, t) {
|
|
this.update(0);
|
|
this.update(0);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
,
|
|
,
|
|
n.prototype.pan = function(e, t) {
|
|
n.prototype.pan = function(e, t) {
|
|
this.camera.updateMatrix(),
|
|
this.camera.updateMatrix(),
|
|
@@ -3646,9 +3681,10 @@ window.Modernizr = function(n, e, t) {
|
|
, n = Math.atan2(Math.sqrt(this.offset.x * this.offset.x + this.offset.z * this.offset.z), this.offset.y);
|
|
, n = Math.atan2(Math.sqrt(this.offset.x * this.offset.x + this.offset.z * this.offset.z), this.offset.y);
|
|
this.autoRotate && this.rotateLeft(this.getAutoRotationAngle()),
|
|
this.autoRotate && this.rotateLeft(this.getAutoRotationAngle()),
|
|
i += this.thetaDelta,
|
|
i += this.thetaDelta,
|
|
- n += this.phiDelta,
|
|
|
|
|
|
+ n += this.phiDelta,
|
|
n = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, n)),
|
|
n = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, n)),
|
|
n = Math.max(f, Math.min(Math.PI - f, n));
|
|
n = Math.max(f, Math.min(Math.PI - f, n));
|
|
|
|
+ this.lon = i, this.lat = n//add
|
|
var r = this.updateZoom();
|
|
var r = this.updateZoom();
|
|
r = Math.max(this.minDistance, Math.min(this.maxDistance, r)),
|
|
r = Math.max(this.minDistance, Math.min(this.maxDistance, r)),
|
|
this.target.add(this.panVector),
|
|
this.target.add(this.panVector),
|
|
@@ -4137,6 +4173,7 @@ window.Modernizr = function(n, e, t) {
|
|
case c.LEFT:
|
|
case c.LEFT:
|
|
this.startRotationFrom(e.clientX, e.clientY)
|
|
this.startRotationFrom(e.clientX, e.clientY)
|
|
}
|
|
}
|
|
|
|
+ SoundManager.pause('tour') // 周恩光 点击场景时停止语音
|
|
this.emit(u.InputStart, "mouse")
|
|
this.emit(u.InputStart, "mouse")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4497,6 +4534,25 @@ window.Modernizr = function(n, e, t) {
|
|
this.updateModel(),
|
|
this.updateModel(),
|
|
this.resetAll(),
|
|
this.resetAll(),
|
|
this.bindEvents()
|
|
this.bindEvents()
|
|
|
|
+
|
|
|
|
+ // 周恩光 查询pano对应的导览片段
|
|
|
|
+ if(!this.panoIdMap) {
|
|
|
|
+ this.panoIdMap = new Map()
|
|
|
|
+ this.model.heroLocations.forEach( (value, index) => {
|
|
|
|
+ // value.heroLocations.forEach( hl => {
|
|
|
|
+ if(value.heroLocations){
|
|
|
|
+ let hl = value.heroLocations[0]
|
|
|
|
+ let arr = this.panoIdMap.get(hl.panoId)
|
|
|
|
+ if(arr){
|
|
|
|
+ this.panoIdMap.set(hl.panoId, [...arr, index])
|
|
|
|
+ } else {
|
|
|
|
+ this.panoIdMap.set(hl.panoId, [index])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
,
|
|
,
|
|
n.prototype.resetAll = function() {
|
|
n.prototype.resetAll = function() {
|
|
@@ -4750,8 +4806,17 @@ window.Modernizr = function(n, e, t) {
|
|
//音频
|
|
//音频
|
|
|
|
|
|
var musicInfo = this.model.heroLocations[this.destinationItem[0]].musicInfo
|
|
var musicInfo = this.model.heroLocations[this.destinationItem[0]].musicInfo
|
|
- if(musicInfo && musicInfo.music){
|
|
|
|
- let src = musicInfo.music.includes(g_Prefix.slice(-10)) ? musicInfo.music : g_Prefix + musicInfo.music;
|
|
|
|
|
|
+ // 手动导览不播放音频
|
|
|
|
+ if(musicInfo && musicInfo.music && !e){
|
|
|
|
+
|
|
|
|
+ let musicType = localStorage.getItem('xunirole') || 'male'
|
|
|
|
+
|
|
|
|
+ let isMale = musicType.indexOf('female') < 0
|
|
|
|
+
|
|
|
|
+ let fixMusic = isMale?musicInfo.music:(musicInfo.fmusic||musicInfo.music)
|
|
|
|
+
|
|
|
|
+ // let src = musicInfo.music.includes(g_Prefix.slice(-10)) ? musicInfo.music : g_Prefix + musicInfo.music;
|
|
|
|
+ let src = fixMusic
|
|
let audioObj = SoundManager.list.find(e=>e.name == 'tour')
|
|
let audioObj = SoundManager.list.find(e=>e.name == 'tour')
|
|
let audioSrc1 = common.getFileNameFromUrl(audioObj.src);
|
|
let audioSrc1 = common.getFileNameFromUrl(audioObj.src);
|
|
let audioSrc2 = common.getFileNameFromUrl(src)
|
|
let audioSrc2 = common.getFileNameFromUrl(src)
|
|
@@ -4770,6 +4835,9 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ let oldPos = this.player.position.clone();
|
|
|
|
+ let oldPano = this.player.currentPano
|
|
|
|
|
|
if (this.onTheBus = !0,
|
|
if (this.onTheBus = !0,
|
|
this.emit("update.controls"),
|
|
this.emit("update.controls"),
|
|
@@ -4786,15 +4854,18 @@ window.Modernizr = function(n, e, t) {
|
|
if (this.player.flying || this.player.isWarping())
|
|
if (this.player.flying || this.player.isWarping())
|
|
A.warn("Cannot go to new destination while player is flying or warping.");
|
|
A.warn("Cannot go to new destination while player is flying or warping.");
|
|
else {
|
|
else {
|
|
|
|
+
|
|
var r = this.model.getHeroDescriptorByIndex(this.destinationItem)
|
|
var r = this.model.getHeroDescriptorByIndex(this.destinationItem)
|
|
, o = null
|
|
, o = null
|
|
, a1 = null;
|
|
, a1 = null;
|
|
- if (r.isPano()) {
|
|
|
|
|
|
+ // console.error(this.destinationItem)
|
|
|
|
+ if (r.isPano && r.isPano()) {
|
|
|
|
|
|
//var s = 0 === this.destinationItem || e ? u.BLACK : this.nextWarpStyle;
|
|
//var s = 0 === this.destinationItem || e ? u.BLACK : this.nextWarpStyle;
|
|
//var walk = window.DATA.black ? 'black' : 'walk';
|
|
//var walk = window.DATA.black ? 'black' : 'walk';
|
|
- //若是点击item,直接瞬间过渡。
|
|
|
|
- var s = e ? 'black' : this.getMomentTour(this.destinationItem)
|
|
|
|
|
|
+ //若是点击item,直接瞬间过渡。
|
|
|
|
+ var s = e ? 'black' : this.getMomentTour(this.destinationItem) //window.DATA.momentTour || "walk";
|
|
|
|
+ if(this.destinationItem[0] == 0 && this.destinationItem[1] == 0) s = 'black' // 周恩光加 返回最初导览点是瞬间过渡
|
|
a1 = this.player.warpToPanoByHeroIndex.bind(this.player, this.destinationItem, v.Show, m.Slow, s, true, i, this.actionComplete.bind(this)),
|
|
a1 = this.player.warpToPanoByHeroIndex.bind(this.player, this.destinationItem, v.Show, m.Slow, s, true, i, this.actionComplete.bind(this)),
|
|
o = this.arrivedAtDestination.bind(this, !0)
|
|
o = this.arrivedAtDestination.bind(this, !0)
|
|
|
|
|
|
@@ -4814,6 +4885,9 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
.bind(this), o),
|
|
.bind(this), o),
|
|
this.emit("update.controls")
|
|
this.emit("update.controls")
|
|
|
|
+ // 周恩光加 更新右侧导览当前位置
|
|
|
|
+ let pano = this.model.panos.index[r.panoId]
|
|
|
|
+ pano && this.player.emit("flying.ended", pano.position, oldPos, pano, oldPano)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
,
|
|
,
|
|
@@ -4825,8 +4899,15 @@ window.Modernizr = function(n, e, t) {
|
|
this.emit("update.controls"),
|
|
this.emit("update.controls"),
|
|
this.tourIsPlaying)
|
|
this.tourIsPlaying)
|
|
return this.atEndOfTour() && !this.endlessLoop ? (this.tourInProgress = !1,
|
|
return this.atEndOfTour() && !this.endlessLoop ? (this.tourInProgress = !1,
|
|
- this.stopTour(true),
|
|
|
|
- this.emit(p.TourEnd),
|
|
|
|
|
|
+ void this.awaitCompletion(function() {
|
|
|
|
+ this.transitionStage = y.Interlude,
|
|
|
|
+ this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))
|
|
|
|
+ }
|
|
|
|
+ .bind(this), function(){
|
|
|
|
+ this.currentItem = [0,0],
|
|
|
|
+ this.stopTour(true),
|
|
|
|
+ this.emit(p.TourEnd)
|
|
|
|
+ }.bind(this)),
|
|
void (this.player.mode === c.PANORAMA && this.model.fadePanoMarkers(a.panorama.markerOpacity))) : void this.awaitCompletion(function() {
|
|
void (this.player.mode === c.PANORAMA && this.model.fadePanoMarkers(a.panorama.markerOpacity))) : void this.awaitCompletion(function() {
|
|
this.transitionStage = y.Interlude,
|
|
this.transitionStage = y.Interlude,
|
|
this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))
|
|
this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))
|
|
@@ -4835,7 +4916,33 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
,
|
|
,
|
|
n.prototype.playTour = function() {
|
|
n.prototype.playTour = function() {
|
|
- if (!this.bounceable())
|
|
|
|
|
|
+ if (!this.bounceable()) {
|
|
|
|
+
|
|
|
|
+ if(!this.currentItem) this.currentItem = []
|
|
|
|
+ if(this.currentItem[0] != 0 || this.destinationItem[0]!= this.nItems-1){
|
|
|
|
+ // 周恩光加 从当前pano进行自动导览
|
|
|
|
+ let currentPanoDestinations = this.panoIdMap.get(this.player.currentPano.id)
|
|
|
|
+ // this.model.heroLocations.forEach( (value, index) => {
|
|
|
|
+ // if(value.heroLocations.find( hl => hl.panoId == this.player.currentPano.id )) {
|
|
|
|
+ // currentPanoDestinations.push(index)
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ if(!currentPanoDestinations) {
|
|
|
|
+ // let panoIndex = this.model.panos.list.findIndex( pano => pano.id == this.player.currentPano.id )
|
|
|
|
+ let panoIndex = this.model.panos.list.indexOf( this.player.currentPano )
|
|
|
|
+ let neighbourIndex = [ panoIndex + 1, panoIndex - 1, panoIndex + 2, panoIndex - 2, panoIndex + 3, panoIndex - 3 ]
|
|
|
|
+ for(var i = 0; i < neighbourIndex.length; i++) {
|
|
|
|
+ currentPanoDestinations = this.panoIdMap.get(this.model.panos.list[neighbourIndex[i]]&&this.model.panos.list[neighbourIndex[i]].id)
|
|
|
|
+ if(currentPanoDestinations && currentPanoDestinations[0] != 0) break
|
|
|
|
+ }
|
|
|
|
+ if(!currentPanoDestinations) currentPanoDestinations = [0];
|
|
|
|
+ }
|
|
|
|
+ if(currentPanoDestinations.indexOf(this.currentItem[0]) == -1) {
|
|
|
|
+ this.currentItem[0] = currentPanoDestinations[0]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
return this.tourIsPlaying ? void A.info("tour is already playing") : void (this.wouldInterrupt() || (this.player.emit("tour_auto", this.defaultWarpStyle),
|
|
return this.tourIsPlaying ? void A.info("tour is already playing") : void (this.wouldInterrupt() || (this.player.emit("tour_auto", this.defaultWarpStyle),
|
|
this.tourInProgress = !0,
|
|
this.tourInProgress = !0,
|
|
this.reachSource = "play",
|
|
this.reachSource = "play",
|
|
@@ -4846,8 +4953,10 @@ window.Modernizr = function(n, e, t) {
|
|
this.emit("update.controls"),
|
|
this.emit("update.controls"),
|
|
this.emit(p.TourStart),
|
|
this.emit(p.TourStart),
|
|
this.player.enablePreRendering(),
|
|
this.player.enablePreRendering(),
|
|
|
|
+ this.currentItem[1] = null,
|
|
this.walkingSectionPaused ? (this.clearWalkingSectionPaused(),
|
|
this.walkingSectionPaused ? (this.clearWalkingSectionPaused(),
|
|
this.goToDestination()) : this.goNext()))
|
|
this.goToDestination()) : this.goNext()))
|
|
|
|
+ }
|
|
}
|
|
}
|
|
,
|
|
,
|
|
/* n.prototype.bgmReplay = function() {//xzw add 结束tour后可能要继续播放背景音乐
|
|
/* n.prototype.bgmReplay = function() {//xzw add 结束tour后可能要继续播放背景音乐
|
|
@@ -4856,6 +4965,7 @@ window.Modernizr = function(n, e, t) {
|
|
} */
|
|
} */
|
|
|
|
|
|
n.prototype.stopTour = function(isAutoStop) {//停止导览 isAutoStop 希望仅在飞完结束自动停止时的stopTour不停止tourSound, 这样才能完整播放tourSound. 不过似乎会在倒数第二个片段点击按钮停止导览时也视作自动结束的(执行this.interrupt() )。
|
|
n.prototype.stopTour = function(isAutoStop) {//停止导览 isAutoStop 希望仅在飞完结束自动停止时的stopTour不停止tourSound, 这样才能完整播放tourSound. 不过似乎会在倒数第二个片段点击按钮停止导览时也视作自动结束的(执行this.interrupt() )。
|
|
|
|
+ SoundManager.pause('tour'), // 周恩光 自动导览暂停时同时停止语音
|
|
this.isInterrupted() || this.transitionStage === y.Moving && this.checkAndHandleWalkingtourInterruption(this.nextWarpStyle) || (this.tourIsPlaying && (this.player.zoomEnabled = this.wasZoomEnabled),
|
|
this.isInterrupted() || this.transitionStage === y.Moving && this.checkAndHandleWalkingtourInterruption(this.nextWarpStyle) || (this.tourIsPlaying && (this.player.zoomEnabled = this.wasZoomEnabled),
|
|
this.tourIsPlaying = !1,
|
|
this.tourIsPlaying = !1,
|
|
this.interrupt(),
|
|
this.interrupt(),
|
|
@@ -5019,18 +5129,28 @@ window.Modernizr = function(n, e, t) {
|
|
n.prototype.tourAdvance = function(e) {//e是1或-1
|
|
n.prototype.tourAdvance = function(e) {//e是1或-1
|
|
|
|
|
|
A.debug("tourAdvance(" + e + ")")
|
|
A.debug("tourAdvance(" + e + ")")
|
|
|
|
+
|
|
|
|
+ // 周恩光改
|
|
if(null === this.currentItem || void 0 === this.currentItem){
|
|
if(null === this.currentItem || void 0 === this.currentItem){
|
|
- this.setDestinationItem(this.firstDestination())
|
|
|
|
- }else{
|
|
|
|
- var item
|
|
|
|
- if(e == 1){
|
|
|
|
- item = this.nextItem(this.currentItem)
|
|
|
|
- }else if(e == -1){
|
|
|
|
- item = this.prevItem(this.currentItem)
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- this.setDestinationItem(item)
|
|
|
|
|
|
+ // this.setDestinationItem(this.firstDestination())
|
|
|
|
+ // this.setDestinationItem([currentPanoDestinations[0], 0])
|
|
|
|
+ this.setDestinationItem([this.currentItem[0], 0])
|
|
|
|
+ }
|
|
|
|
+ else if(this.currentItem[1] == null) {
|
|
|
|
+ this.setDestinationItem([this.currentItem[0], 0])
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+
|
|
|
|
+ var item
|
|
|
|
+ if(e == 1){
|
|
|
|
+ item = this.nextItem(this.currentItem)
|
|
|
|
+ }else if(e == -1){
|
|
|
|
+ item = this.prevItem(this.currentItem)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ this.setDestinationItem(item)
|
|
}
|
|
}
|
|
|
|
+
|
|
if(this.itemCompare(this.destinationItem, this.finalDestination(), 'equal')[0] < 0 ){
|
|
if(this.itemCompare(this.destinationItem, this.finalDestination(), 'equal')[0] < 0 ){
|
|
this.useSpecialTransition("reverse-looping to end")
|
|
this.useSpecialTransition("reverse-looping to end")
|
|
}else if(this.itemCompare(this.destinationItem, this.firstDestination(), 'equal')){
|
|
}else if(this.itemCompare(this.destinationItem, this.firstDestination(), 'equal')){
|
|
@@ -6428,8 +6548,6 @@ window.Modernizr = function(n, e, t) {
|
|
t.changeMode(Be)
|
|
t.changeMode(Be)
|
|
}),
|
|
}),
|
|
$("#gui-modes-floorplan").on("click", function(e) {
|
|
$("#gui-modes-floorplan").on("click", function(e) {
|
|
- //显示背景图
|
|
|
|
- // $('.myBacImg').css('display','block')
|
|
|
|
l(e),
|
|
l(e),
|
|
i.mode !== _e.FLOORPLAN && (J.track("showcase_gui", {
|
|
i.mode !== _e.FLOORPLAN && (J.track("showcase_gui", {
|
|
gui_action: "click_floorplan_mode_button"
|
|
gui_action: "click_floorplan_mode_button"
|
|
@@ -6565,6 +6683,18 @@ window.Modernizr = function(n, e, t) {
|
|
$(".gui-floor-number").text(" " + (e.floorIndex + 1)),
|
|
$(".gui-floor-number").text(" " + (e.floorIndex + 1)),
|
|
$(".floorChoice").removeClass("active"),
|
|
$(".floorChoice").removeClass("active"),
|
|
$(".floorChoice[data-index=" + e.floorIndex + "]").addClass("active")))
|
|
$(".floorChoice[data-index=" + e.floorIndex + "]").addClass("active")))
|
|
|
|
+
|
|
|
|
+ if(window.number == '1149_2'){
|
|
|
|
+ if(e.floorIndex===0){
|
|
|
|
+ $('.cad') && $('.cad').addClass('hidemap')
|
|
|
|
+ $('.cad1') && $('.cad1').removeClass('hidemap')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(e.floorIndex===1){
|
|
|
|
+ $('.cad1') && $('.cad1').addClass('hidemap')
|
|
|
|
+ $('.cad') && $('.cad').removeClass('hidemap')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
function I(e) {
|
|
function I(e) {
|
|
return e.describe().inTransition
|
|
return e.describe().inTransition
|
|
@@ -6589,19 +6719,19 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
h.attr("data-index", s)
|
|
h.attr("data-index", s)
|
|
|
|
|
|
- je.highlight.visible && h.find("img").attr("src", thumbUrl)
|
|
|
|
|
|
+ je.highlight.visible && h.find("img").attr("src", 'https://super.4dage.com/'+thumbUrl)
|
|
|
|
|
|
|
|
|
|
- if (e.has360Views && c.cameraMode === _e.PANORAMA) {
|
|
|
|
- var d = e.panos.get(c.panoId)
|
|
|
|
- , p = d && !d.isAligned()
|
|
|
|
- , f = p ? '<div><img class="mark360View" src="static/images/mark-360-white-v2.png"></div>' : '<div><img class="markInsideView" src="static/images/mark-inside-white.png"></div>';
|
|
|
|
- h.prepend(f)
|
|
|
|
- }
|
|
|
|
if (c.name) {
|
|
if (c.name) {
|
|
var u = $('<div class="overlay"></div>').text(c.name);
|
|
var u = $('<div class="overlay"></div>').text(c.name);
|
|
h.prepend(u)
|
|
h.prepend(u)
|
|
}
|
|
}
|
|
|
|
+ if (e.has360Views && c.cameraMode === _e.PANORAMA) {
|
|
|
|
+ var d = e.panos.get(c.panoId)
|
|
|
|
+ , p = d && !d.isAligned()
|
|
|
|
+ , f = p ? '<div><img class="mark360View" src="static/images/mark-360-white-v2.png"></div>' : '<div><img class="markInsideView" src="static/images/mark-inside-white.png"></div>';
|
|
|
|
+ h.prepend(f)
|
|
|
|
+ }
|
|
o.append(h),
|
|
o.append(h),
|
|
a.append('<div class="step" data-idx="' + s + '" style="width:' + r + '"></div>')
|
|
a.append('<div class="step" data-idx="' + s + '" style="width:' + r + '"></div>')
|
|
}
|
|
}
|
|
@@ -7317,7 +7447,7 @@ window.Modernizr = function(n, e, t) {
|
|
let temp2 =$('.parent-body .lay_top_hide')
|
|
let temp2 =$('.parent-body .lay_top_hide')
|
|
if(temp2.css('display')==='none') temp2.css('display','block')
|
|
if(temp2.css('display')==='none') temp2.css('display','block')
|
|
else temp2.css('display','none')
|
|
else temp2.css('display','none')
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
$("#gui-fullscreen").toggle(!K.isFullscreen()),
|
|
$("#gui-fullscreen").toggle(!K.isFullscreen()),
|
|
$("#gui-fullscreen-exit").toggle(!!K.isFullscreen()),
|
|
$("#gui-fullscreen-exit").toggle(!!K.isFullscreen()),
|
|
@@ -7325,7 +7455,7 @@ window.Modernizr = function(n, e, t) {
|
|
$(".icon:visible").hide().show(0)
|
|
$(".icon:visible").hide().show(0)
|
|
}, 100)
|
|
}, 100)
|
|
}),
|
|
}),
|
|
- $("#gui-fullscreen").find("a").on("click", function(e) {
|
|
|
|
|
|
+ $("#gui-fullscreen").on("click", function(e) {
|
|
l(e),
|
|
l(e),
|
|
K.requestFullscreen($("body")[0]),
|
|
K.requestFullscreen($("body")[0]),
|
|
J.track("showcase_gui", {
|
|
J.track("showcase_gui", {
|
|
@@ -7335,7 +7465,7 @@ window.Modernizr = function(n, e, t) {
|
|
//czj
|
|
//czj
|
|
//W.reload()
|
|
//W.reload()
|
|
}),
|
|
}),
|
|
- $("#gui-fullscreen-exit").find("a").on("click", function(e) {
|
|
|
|
|
|
+ $("#gui-fullscreen-exit").on("click", function(e) {
|
|
l(e),
|
|
l(e),
|
|
K.exitFullscreen(),
|
|
K.exitFullscreen(),
|
|
J.track("showcase_gui", {
|
|
J.track("showcase_gui", {
|
|
@@ -7357,6 +7487,8 @@ window.Modernizr = function(n, e, t) {
|
|
K.supportsFullscreen() || $("#gui-fullscreen").hide(),
|
|
K.supportsFullscreen() || $("#gui-fullscreen").hide(),
|
|
$("#pullTab").on("click", function(e) {
|
|
$("#pullTab").on("click", function(e) {
|
|
l(e),
|
|
l(e),
|
|
|
|
+ window.player.director.emit('isPulltttttt',!$("#drawer").hasClass("open"));
|
|
|
|
+
|
|
$("#drawer").hasClass("open") ? (J.trackAlways("showcase_gui", {
|
|
$("#drawer").hasClass("open") ? (J.trackAlways("showcase_gui", {
|
|
gui_action: "hide_highlight_reel"
|
|
gui_action: "hide_highlight_reel"
|
|
}),
|
|
}),
|
|
@@ -7384,21 +7516,20 @@ window.Modernizr = function(n, e, t) {
|
|
}),
|
|
}),
|
|
|
|
|
|
$('#hotListContent ul').on('mouseover', function(e){
|
|
$('#hotListContent ul').on('mouseover', function(e){
|
|
- if(browser.isMobile()) return
|
|
|
|
l(e);
|
|
l(e);
|
|
var target = e.target;
|
|
var target = e.target;
|
|
var hotList = document.getElementById('hotListWrap');
|
|
var hotList = document.getElementById('hotListWrap');
|
|
if(target.tagName === 'SPAN'){
|
|
if(target.tagName === 'SPAN'){
|
|
var targetParent = target.parentElement.parentElement;
|
|
var targetParent = target.parentElement.parentElement;
|
|
- if(target.offsetWidth + 150 >= targetParent.clientWidth){
|
|
|
|
- hotList.style.width = target.offsetWidth + 150 + 'px';
|
|
|
|
|
|
+ if(target.offsetWidth + 116 >= targetParent.clientWidth){
|
|
|
|
+ hotList.style.width = target.offsetWidth + 116 + 'px';
|
|
}else{
|
|
}else{
|
|
hotList.style.width = '';
|
|
hotList.style.width = '';
|
|
}
|
|
}
|
|
}else if(target.tagName === 'LI'){
|
|
}else if(target.tagName === 'LI'){
|
|
var targetParent = target.parentElement;
|
|
var targetParent = target.parentElement;
|
|
- if(target.children[0].offsetWidth + 150 >= targetParent.clientWidth){
|
|
|
|
- hotList.style.width = target.children[0].offsetWidth + 150 + 'px';
|
|
|
|
|
|
+ if(target.children[0].offsetWidth + 116 >= targetParent.clientWidth){
|
|
|
|
+ hotList.style.width = target.children[0].offsetWidth + 116 + 'px';
|
|
}else{
|
|
}else{
|
|
hotList.style.width = ''
|
|
hotList.style.width = ''
|
|
}
|
|
}
|
|
@@ -7410,7 +7541,6 @@ window.Modernizr = function(n, e, t) {
|
|
l(e);
|
|
l(e);
|
|
this.preElem && this.preElem.classList.remove('active');
|
|
this.preElem && this.preElem.classList.remove('active');
|
|
if(e.target.tagName === 'SPAN'){
|
|
if(e.target.tagName === 'SPAN'){
|
|
- e.stopPropagation();//阻止事件冒泡即可
|
|
|
|
e.target.parentElement.classList.add('active');
|
|
e.target.parentElement.classList.add('active');
|
|
e.target.parentElement.hot && e.target.parentElement.hot.examine(window.player,true); // 打开热点
|
|
e.target.parentElement.hot && e.target.parentElement.hot.examine(window.player,true); // 打开热点
|
|
this.preElem = e.target.parentElement;
|
|
this.preElem = e.target.parentElement;
|
|
@@ -7684,17 +7814,6 @@ window.Modernizr = function(n, e, t) {
|
|
B = t !== C.PANORAMA && e !== C.PANORAMA
|
|
B = t !== C.PANORAMA && e !== C.PANORAMA
|
|
}),
|
|
}),
|
|
t.on(A.ModeChanged, function(e, i) {
|
|
t.on(A.ModeChanged, function(e, i) {
|
|
- // 如果是顶部俯视,就显示图片
|
|
|
|
- if(t.mode==='floorplan') {
|
|
|
|
- $('.myBacImg').css('display','block')
|
|
|
|
- $('.pinTop').css('display','none')
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- $('.myBacImg').css('display','none')
|
|
|
|
- $('.pinTop').css('display','block')
|
|
|
|
- }
|
|
|
|
- console.log( t.mode,11111111)
|
|
|
|
-
|
|
|
|
N = t.mode,
|
|
N = t.mode,
|
|
i !== C.TRANSITIONING ? l() : a("modeChange")
|
|
i !== C.TRANSITIONING ? l() : a("modeChange")
|
|
}),
|
|
}),
|
|
@@ -7900,7 +8019,8 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
function s(e, t) {
|
|
function s(e, t) {
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
- if (h.isHelpEnabled()) {
|
|
|
|
|
|
+ // h.isHelpEnabled()
|
|
|
|
+ if (false) {
|
|
if (t(),
|
|
if (t(),
|
|
u.init(),
|
|
u.init(),
|
|
C.addClass("fadeIn landing " + u.deviceType),
|
|
C.addClass("fadeIn landing " + u.deviceType),
|
|
@@ -7921,8 +8041,7 @@ window.Modernizr = function(n, e, t) {
|
|
id.on("click",function(){
|
|
id.on("click",function(){
|
|
var navPage = null;
|
|
var navPage = null;
|
|
$(this).attr("data-id") == "plus" ? navPage = +navIcon.attr("data-page")+1 : navPage = +navIcon.attr("data-page")-1;
|
|
$(this).attr("data-id") == "plus" ? navPage = +navIcon.attr("data-page")+1 : navPage = +navIcon.attr("data-page")-1;
|
|
- if(navPage > 3 || navPage < 1) return false
|
|
|
|
- console.log('123-',navPage);
|
|
|
|
|
|
+ if(navPage > helpData.length || navPage < 1) return false
|
|
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
|
|
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
|
|
navIcon.attr({"data-page":navPage,"src":helpData.mobile[navPage - 1]});
|
|
navIcon.attr({"data-page":navPage,"src":helpData.mobile[navPage - 1]});
|
|
}else{
|
|
}else{
|
|
@@ -8909,15 +9028,15 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
function u(e, t) {
|
|
function u(e, t) {
|
|
if (t) {
|
|
if (t) {
|
|
- var i = "keydown" === t.type
|
|
|
|
- , n = t.which === f.SPACE || C.tourIsPlaying;
|
|
|
|
|
|
+ // var i = "keydown" === t.type
|
|
|
|
+ // , n = t.which === f.SPACE || C.tourIsPlaying;
|
|
|
|
|
|
- i && n || e || (O = !0),
|
|
|
|
- C.atEndOfTour() && d(),
|
|
|
|
- !C.tourIsPlaying && C.tourInProgress && (_.removeClass("fadeIn"),
|
|
|
|
- d(),
|
|
|
|
- t.which !== f.SPACE && a()),
|
|
|
|
- i && n && s()
|
|
|
|
|
|
+ // i && n || e || (O = !0),
|
|
|
|
+ // C.atEndOfTour() && d(),
|
|
|
|
+ // !C.tourIsPlaying && C.tourInProgress && (_.removeClass("fadeIn"),
|
|
|
|
+ // d(),
|
|
|
|
+ // t.which !== f.SPACE && a()),
|
|
|
|
+ // i && n && s()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function d() {
|
|
function d() {
|
|
@@ -14423,7 +14542,8 @@ window.Modernizr = function(n, e, t) {
|
|
progressUpdate(0.1)
|
|
progressUpdate(0.1)
|
|
var fileName = g_version ? 'modeldata.js' : 'someData.json' ;
|
|
var fileName = g_version ? 'modeldata.js' : 'someData.json' ;
|
|
|
|
|
|
- if(window.number==='1151') {
|
|
|
|
|
|
+ if(window.number==='TEST') {
|
|
|
|
+
|
|
$.ajax(g_Prefix + "data/"+window.number+"/"+fileName+"?"+randomTime().getTime(),{dataType: "json"}).done( function(e){ //改
|
|
$.ajax(g_Prefix + "data/"+window.number+"/"+fileName+"?"+randomTime().getTime(),{dataType: "json"}).done( function(e){ //改
|
|
|
|
|
|
var data = matcher(e);
|
|
var data = matcher(e);
|
|
@@ -14465,7 +14585,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
window.wx && manage.weixinShare();
|
|
window.wx && manage.weixinShare();
|
|
//初始画面
|
|
//初始画面
|
|
- data.camera_start && data.camera_start.thumbImg && E(data.camera_start.thumbImg)
|
|
|
|
|
|
+ data.camera_start && data.camera_start.thumbImg && E(manage.dealURL(data.camera_start.thumbImg))
|
|
function E(e) {
|
|
function E(e) {
|
|
$("<img/>").attr("src", e).on("load", function() {
|
|
$("<img/>").attr("src", e).on("load", function() {
|
|
$("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
|
|
$("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
|
|
@@ -14492,13 +14612,12 @@ window.Modernizr = function(n, e, t) {
|
|
if(DATA.tourRotTime == '' || DATA.tourRotTime == void 0){
|
|
if(DATA.tourRotTime == '' || DATA.tourRotTime == void 0){
|
|
DATA.tourRotTime = settings.tourRotTime; //默认停留2秒
|
|
DATA.tourRotTime = settings.tourRotTime; //默认停留2秒
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
{//其他
|
|
{//其他
|
|
_settings.floorPlanAngle = DATA.floorPlanAngle || 0
|
|
_settings.floorPlanAngle = DATA.floorPlanAngle || 0
|
|
}
|
|
}
|
|
}).fail(e=>{
|
|
}).fail(e=>{
|
|
- // alert("缺少someData文件,请检查场景码是否正确。")
|
|
|
|
|
|
+ alert("缺少someData文件,请检查场景码是否正确。")
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -14596,7 +14715,7 @@ window.Modernizr = function(n, e, t) {
|
|
}),
|
|
}),
|
|
!P.supportsTiles) {
|
|
!P.supportsTiles) {
|
|
var e = new Z(P,w);
|
|
var e = new Z(P,w);
|
|
- e.start()
|
|
|
|
|
|
+ // e.start()
|
|
}
|
|
}
|
|
u && (S.removeComponent(g),
|
|
u && (S.removeComponent(g),
|
|
g.destroy(),
|
|
g.destroy(),
|
|
@@ -14608,8 +14727,13 @@ window.Modernizr = function(n, e, t) {
|
|
var e = N.calcFullLoadingTime();
|
|
var e = N.calcFullLoadingTime();
|
|
de.warn("Total load time: " + e / 1e3),
|
|
de.warn("Total load time: " + e / 1e3),
|
|
H.loadComplete(e),
|
|
H.loadComplete(e),
|
|
- $('.jumpvideo').fadeIn()
|
|
|
|
|
|
+ window.dispatchEvent(window.evt);
|
|
de.warn("First render after model load finished.")
|
|
de.warn("First render after model load finished.")
|
|
|
|
+ try {
|
|
|
|
+ parent.postMessage({
|
|
|
|
+ cmd: "loaded",
|
|
|
|
+ }, "*")
|
|
|
|
+ } catch (err) {}
|
|
}),
|
|
}),
|
|
S.on(le.MemoryUsageUpdated, n)
|
|
S.on(le.MemoryUsageUpdated, n)
|
|
}).fail(b.bind(this, e))
|
|
}).fail(b.bind(this, e))
|
|
@@ -14871,8 +14995,8 @@ window.Modernizr = function(n, e, t) {
|
|
//czj 判断someData 有没有hoticon字段 修改热点的样式
|
|
//czj 判断someData 有没有hoticon字段 修改热点的样式
|
|
if (window.DATA.hoticon){
|
|
if (window.DATA.hoticon){
|
|
g_HotImage = {
|
|
g_HotImage = {
|
|
- point: window.DATA.hoticon.default || "https://super.4dage.com/static/images/4dagePoint2.png",
|
|
|
|
- point2: window.DATA.hoticon.higt || "https://super.4dage.com/static/images/4dagePoint.png"
|
|
|
|
|
|
+ point: ("static/"+window.DATA.hoticon.default) || "https://super.4dage.com/images/4dagePoint2.png",
|
|
|
|
+ point2: ("static/"+window.DATA.hoticon.higt) || "https://super.4dage.com/images/4dagePoint.png"
|
|
} ;
|
|
} ;
|
|
}
|
|
}
|
|
//czj 判断someData 有没有backgroundMusic 添加音乐
|
|
//czj 判断someData 有没有backgroundMusic 添加音乐
|
|
@@ -16167,7 +16291,6 @@ window.Modernizr = function(n, e, t) {
|
|
console.log('移动了点位')
|
|
console.log('移动了点位')
|
|
let temp3 =$('.parent-body .lay_top')
|
|
let temp3 =$('.parent-body .lay_top')
|
|
temp3.css('height','0px')
|
|
temp3.css('height','0px')
|
|
-
|
|
|
|
}
|
|
}
|
|
,
|
|
,
|
|
n.prototype.onPlayerReady = function(e, t, i) {
|
|
n.prototype.onPlayerReady = function(e, t, i) {
|
|
@@ -17086,7 +17209,14 @@ window.Modernizr = function(n, e, t) {
|
|
if (cameraMode === a.MESH) return
|
|
if (cameraMode === a.MESH) return
|
|
|
|
|
|
|
|
|
|
- if(window.isLocal)src = manage.dealURL(src)
|
|
|
|
|
|
+ if(window.isLocal){
|
|
|
|
+ src = manage.dealURL(src)
|
|
|
|
+ //本地文件莫名少了个"."
|
|
|
|
+ if(src[src.length-1]=='.'){
|
|
|
|
+ src = src.slice(0,-1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
else src = "one" === g_version ? g_Prefix + src + "?" + randomTime().getTime() : src + "?" + randomTime().getTime()
|
|
else src = "one" === g_version ? g_Prefix + src + "?" + randomTime().getTime() : src + "?" + randomTime().getTime()
|
|
|
|
|
|
var l = {
|
|
var l = {
|
|
@@ -17105,6 +17235,9 @@ window.Modernizr = function(n, e, t) {
|
|
item.momentTour = info.momentTour
|
|
item.momentTour = info.momentTour
|
|
item.dontRot = info.dontRot
|
|
item.dontRot = info.dontRot
|
|
item.rotTime = info.rotTime
|
|
item.rotTime = info.rotTime
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
container.push(item)
|
|
container.push(item)
|
|
return item
|
|
return item
|
|
}
|
|
}
|
|
@@ -17504,24 +17637,7 @@ window.Modernizr = function(n, e, t) {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- n.prototype.createHotItem = function() {
|
|
|
|
-
|
|
|
|
- // console.log(99999,this.hotGroup.children)
|
|
|
|
- this.hotGroup.children.forEach((hot,index)=>{
|
|
|
|
- // console.log(99999,index,hot.info.title)
|
|
|
|
- if(hot.info.actionType.openHot){/* hot.texType == 'shine' */
|
|
|
|
- let ul = document.createElement('ul');
|
|
|
|
- let li = document.createElement('li');
|
|
|
|
- let span = document.createElement('span');
|
|
|
|
- span.innerHTML = hot.info.title || '热点';
|
|
|
|
- // console.log(span.innerHTML);
|
|
|
|
- li.hot = hot; // 列表每一项对应一个热点
|
|
|
|
- li.appendChild(span);
|
|
|
|
- ul.appendChild(li);
|
|
|
|
- docFragment.appendChild(li);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
/* n.prototype.loadOverlays = function(overlays){
|
|
/* n.prototype.loadOverlays = function(overlays){
|
|
@@ -17569,8 +17685,7 @@ window.Modernizr = function(n, e, t) {
|
|
new Hot(info, 'byOverlay')
|
|
new Hot(info, 'byOverlay')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- this.createHotItem( );
|
|
|
|
- // Hot.createHotList();
|
|
|
|
|
|
+ Hot.createHotList();
|
|
Hot.startLoad()
|
|
Hot.startLoad()
|
|
|
|
|
|
|
|
|
|
@@ -19756,7 +19871,7 @@ window.Modernizr = function(n, e, t) {
|
|
this.model.getHeroDescriptorByIndex(0); */
|
|
this.model.getHeroDescriptorByIndex(0); */
|
|
var i = this.model.getHeroDescriptorByIndex(e);
|
|
var i = this.model.getHeroDescriptorByIndex(e);
|
|
if (i) {
|
|
if (i) {
|
|
- var n = i.isPano() ? i.panoId : i.cameraMode;
|
|
|
|
|
|
+ var n = i.isPano && i.isPano() ? i.panoId : i.cameraMode;
|
|
y.debug('ShowPath.getHeroDescriptorByHeroIndex() -> New brush/warp destination: "' + n + '" out of ' + t + " choices.")
|
|
y.debug('ShowPath.getHeroDescriptorByHeroIndex() -> New brush/warp destination: "' + n + '" out of ' + t + " choices.")
|
|
}
|
|
}
|
|
return i
|
|
return i
|
|
@@ -19775,7 +19890,7 @@ window.Modernizr = function(n, e, t) {
|
|
n.prototype.getHeroIndexFromPanoId = function(e) {
|
|
n.prototype.getHeroIndexFromPanoId = function(e) {
|
|
for (var t = 0; t < this.model.heroLocations.length; t++) {
|
|
for (var t = 0; t < this.model.heroLocations.length; t++) {
|
|
var i = this.model.heroLocations[t]
|
|
var i = this.model.heroLocations[t]
|
|
- , n = this.getHeroId(i);
|
|
|
|
|
|
+ , n = this.getHeroId(i);
|
|
if (n && n === e)
|
|
if (n && n === e)
|
|
return t
|
|
return t
|
|
}
|
|
}
|
|
@@ -20220,7 +20335,7 @@ window.Modernizr = function(n, e, t) {
|
|
var o = this.getHeroDescriptorByHeroIndex(n);
|
|
var o = this.getHeroDescriptorByHeroIndex(n);
|
|
if (null === o)
|
|
if (null === o)
|
|
return i;
|
|
return i;
|
|
- if (!o.isPano())
|
|
|
|
|
|
+ if (!o.isPano || !o.isPano())
|
|
return i;
|
|
return i;
|
|
var s = this.getHeroPano(o)
|
|
var s = this.getHeroPano(o)
|
|
, h = this.playerControls.cameras[a.PANORAMA]
|
|
, h = this.playerControls.cameras[a.PANORAMA]
|
|
@@ -22081,7 +22196,6 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
|
|
|
|
if(e.cameraChanged){
|
|
if(e.cameraChanged){
|
|
- // console.log(11111111,this.position.x,this.position.z,this.cameraControls.controls.panorama.lon);
|
|
|
|
this.mode == "panorama" && window.cad && cad.setSign({ x: this.position.x, y: this.position.z }, this.cameraControls.controls.panorama.lon);
|
|
this.mode == "panorama" && window.cad && cad.setSign({ x: this.position.x, y: this.position.z }, this.cameraControls.controls.panorama.lon);
|
|
|
|
|
|
|
|
|
|
@@ -22316,7 +22430,7 @@ window.Modernizr = function(n, e, t) {
|
|
e.cameraChanged = !a;
|
|
e.cameraChanged = !a;
|
|
|
|
|
|
if(e.cameraChanged){//
|
|
if(e.cameraChanged){//
|
|
- e.cameraChanged2 = !MathLight.closeTo(this.quaternion, this.previousState.quaternion, 3) || !MathLight.closeTo(this.position, this.previousState.position, 4) || !this.camera.projectionMatrix.equals(this.previousState.projectionMatrix)
|
|
|
|
|
|
+ e.cameraChanged2 = !MathLight.closeTo(this.quaternion, this.previousState.quaternion, 3) || !MathLight.closeTo(this.position, this.previousState.position, 4) || !this.camera.projectionMatrix.equals(this.previousState.projectionMatrix)
|
|
}else e.cameraChanged2 = false
|
|
}else e.cameraChanged2 = false
|
|
|
|
|
|
|
|
|
|
@@ -22636,7 +22750,8 @@ window.Modernizr = function(n, e, t) {
|
|
for (var index in hots){
|
|
for (var index in hots){
|
|
var visible;
|
|
var visible;
|
|
if(this.mode != "panorama"){
|
|
if(this.mode != "panorama"){
|
|
- visible = true;
|
|
|
|
|
|
+ // visible = true;
|
|
|
|
+ visible = false; // 周恩光改 非全景模式下隐藏热点
|
|
}else{
|
|
}else{
|
|
//hots[index].mesh.material.depthTest = false;
|
|
//hots[index].mesh.material.depthTest = false;
|
|
visible = !hots[index].visiblePanos || hots[index].visiblePanos.indexOf(pano.id) > -1
|
|
visible = !hots[index].visiblePanos || hots[index].visiblePanos.indexOf(pano.id) > -1
|
|
@@ -22758,7 +22873,7 @@ window.Modernizr = function(n, e, t) {
|
|
//---------before fly--------------- add
|
|
//---------before fly--------------- add
|
|
this.updateHotVisible(i); //更新热点显示
|
|
this.updateHotVisible(i); //更新热点显示
|
|
this.transitionPos({type:"beforeFlytopano", pano:i, dur:I})//add
|
|
this.transitionPos({type:"beforeFlytopano", pano:i, dur:I})//add
|
|
- Hot.updateVisibles([this.currentPano, i])
|
|
|
|
|
|
+ //Hot.updateVisibles([this.currentPano, i]) // 周恩光 注释 只在fly完成时再显示热点
|
|
|
|
|
|
//地标变化
|
|
//地标变化
|
|
if(this.model.floorLogos){
|
|
if(this.model.floorLogos){
|
|
@@ -22998,8 +23113,8 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
|
|
|
|
n.prototype.fastForwardActivePanoFlight = function(e) {
|
|
n.prototype.fastForwardActivePanoFlight = function(e) {
|
|
- e = e || f.transition.fastForwardFactor / 10 * 4 + 1
|
|
|
|
- y.adjustSpeed(V.FlyToPano, e)
|
|
|
|
|
|
+ e = e || f.transition.fastForwardFactor / 10 * 4 + 1
|
|
|
|
+ y.adjustSpeed(V.FlyToPano, e)
|
|
y.adjustSpeed(V.LookTransition, e)
|
|
y.adjustSpeed(V.LookTransition, e)
|
|
}
|
|
}
|
|
,
|
|
,
|
|
@@ -23024,7 +23139,7 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
,
|
|
,
|
|
n.prototype.flyDirection = function(e, t, i) {
|
|
n.prototype.flyDirection = function(e, t, i) {
|
|
- Hot.closePopup();//xzw add
|
|
|
|
|
|
+ Hot && Hot.closePopup();//xzw add
|
|
|
|
|
|
var n = $.Deferred();
|
|
var n = $.Deferred();
|
|
this.history.invalidate();
|
|
this.history.invalidate();
|
|
@@ -23621,7 +23736,7 @@ window.Modernizr = function(n, e, t) {
|
|
var rotTime
|
|
var rotTime
|
|
if(currentLocation.rotTime == void 0 || currentLocation.rotTime == ''){
|
|
if(currentLocation.rotTime == void 0 || currentLocation.rotTime == ''){
|
|
var restChildCount = currentLocation.heroLocations ? (currentLocation.heroLocations.length-this.director.currentItem[1]-1) : 0
|
|
var restChildCount = currentLocation.heroLocations ? (currentLocation.heroLocations.length-this.director.currentItem[1]-1) : 0
|
|
- var hasMusic = currentLocation && currentLocation.musicInfo.music
|
|
|
|
|
|
+ var hasMusic = currentLocation && currentLocation.musicInfo && currentLocation.musicInfo.music
|
|
if(hasMusic){
|
|
if(hasMusic){
|
|
var audioObj = SoundManager.list.find(e=>e.name == 'tour')
|
|
var audioObj = SoundManager.list.find(e=>e.name == 'tour')
|
|
var current = audioObj.audio.currentTime * 1e3 // || 0 //g_tourAudio ? 1e3 * g_tourAudio.currentTime : 0
|
|
var current = audioObj.audio.currentTime * 1e3 // || 0 //g_tourAudio ? 1e3 * g_tourAudio.currentTime : 0
|
|
@@ -23651,6 +23766,7 @@ window.Modernizr = function(n, e, t) {
|
|
,
|
|
,
|
|
n.prototype.interruptAndFastForward = function(e, t) {
|
|
n.prototype.interruptAndFastForward = function(e, t) {
|
|
//Log('interruptAndFastForward' , '#f00')
|
|
//Log('interruptAndFastForward' , '#f00')
|
|
|
|
+
|
|
this.isWarping() && this.emit(w.WarpInterrupted, this.path.activeTransType, e, t),
|
|
this.isWarping() && this.emit(w.WarpInterrupted, this.path.activeTransType, e, t),
|
|
this.flying && this.emit(w.FlyingInterrupted),
|
|
this.flying && this.emit(w.FlyingInterrupted),
|
|
this.path.interruptAndFastForward(e, t)
|
|
this.path.interruptAndFastForward(e, t)
|
|
@@ -23949,11 +24065,7 @@ window.Modernizr = function(n, e, t) {
|
|
, s = new a(i);
|
|
, s = new a(i);
|
|
n.prototype.start = function() {
|
|
n.prototype.start = function() {
|
|
this.loadNextPano(function(e) {
|
|
this.loadNextPano(function(e) {
|
|
- e ? this.start() : (s.debug("No suitable pano loaded, waiting a little while before looking again"),
|
|
|
|
- setTimeout(function() {
|
|
|
|
- this.start()
|
|
|
|
- }
|
|
|
|
- .bind(this), 1e3))
|
|
|
|
|
|
+ e ? this.start() : (s.debug("No suitable pano loaded, waiting a little while before looking again"))
|
|
}
|
|
}
|
|
.bind(this))
|
|
.bind(this))
|
|
}
|
|
}
|
|
@@ -27439,6 +27551,7 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
,
|
|
,
|
|
l.prototype.clearUploadQueue = function(e, t, i) {
|
|
l.prototype.clearUploadQueue = function(e, t, i) {
|
|
|
|
+ if(!r || !r.tile) return
|
|
void 0 !== t && null !== t || (t = 0);
|
|
void 0 !== t && null !== t || (t = 0);
|
|
for (var n = 0; n < e.length; ) {
|
|
for (var n = 0; n < e.length; ) {
|
|
var r = e[n];
|
|
var r = e[n];
|
|
@@ -30058,6 +30171,9 @@ window.Modernizr = function(n, e, t) {
|
|
return r("PATCH", e, t)
|
|
return r("PATCH", e, t)
|
|
},
|
|
},
|
|
getImage: function(e, t) {
|
|
getImage: function(e, t) {
|
|
|
|
+ if(!e){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
function i() {
|
|
function i() {
|
|
u.warn("Retrying ", e),
|
|
u.warn("Retrying ", e),
|
|
o.getImage(e, t - 1).done(n.resolve.bind(n)).progress(n.notify.bind(n)).fail(n.reject.bind(n))
|
|
o.getImage(e, t - 1).done(n.resolve.bind(n)).progress(n.notify.bind(n)).fail(n.reject.bind(n))
|
|
@@ -30274,8 +30390,6 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- // changeLog()
|
|
|
|
}
|
|
}
|
|
, {
|
|
, {
|
|
"../exception/DeviceMismatchException": 56
|
|
"../exception/DeviceMismatchException": 56
|
|
@@ -31383,6 +31497,7 @@ window.Modernizr = function(n, e, t) {
|
|
, a = {};
|
|
, a = {};
|
|
t.exports = {
|
|
t.exports = {
|
|
load: function(e, t, i) {
|
|
load: function(e, t, i) {
|
|
|
|
+ if(!e) return;
|
|
var s = a[e];
|
|
var s = a[e];
|
|
return s ? (t && setTimeout(function() {
|
|
return s ? (t && setTimeout(function() {
|
|
t(s)
|
|
t(s)
|
|
@@ -58273,7 +58388,7 @@ var addMagnifier = function(){
|
|
}))
|
|
}))
|
|
this.overlayMesh = new THREE.Mesh(circleGeo, new THREE.MeshBasicMaterial({
|
|
this.overlayMesh = new THREE.Mesh(circleGeo, new THREE.MeshBasicMaterial({
|
|
side: THREE.DoubleSide ,
|
|
side: THREE.DoubleSide ,
|
|
- map: Texture.load('static/images/crosshair.png') ,
|
|
|
|
|
|
+ map: Texture.load('images/crosshair.png') ,
|
|
transparent:true,
|
|
transparent:true,
|
|
depthTest: !1,
|
|
depthTest: !1,
|
|
depthWrite: !1,
|
|
depthWrite: !1,
|