|
@@ -1,6 +1,18 @@
|
|
|
|
|
|
window.position = getQueryVariable("position");
|
|
|
console.log(window.position)
|
|
|
+
|
|
|
+var getTransformSid = function(){
|
|
|
+ var name
|
|
|
+ if(player.mode == 'panorama'){
|
|
|
+ name = player.currentPano ? player.currentPano.id : 'outside'
|
|
|
+ }else{
|
|
|
+ name = 'outside'
|
|
|
+ }
|
|
|
+ return name
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
var list = {
|
|
|
"0":{
|
|
|
|
|
@@ -15782,7 +15794,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
}else{
|
|
|
u.texture1.value = defaultTex1;
|
|
|
u.texture2.value = defaultTex2;
|
|
|
- console.log(this.sid)
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -18049,6 +18061,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
overlays && overlays.forEach((info)=>{
|
|
|
new Overlay(info)
|
|
|
})
|
|
|
+ Overlay.load()
|
|
|
}
|
|
|
|
|
|
|
|
@@ -22360,7 +22373,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
//add
|
|
|
this.transitionPos({type:"beforeFlytopano", pano:this.currentPano, dur:0})
|
|
|
this.updateHotVisible()
|
|
|
-
|
|
|
+ Overlay.updateVisibles([this.currentPano])
|
|
|
|
|
|
return this.mode = u.PANORAMA,
|
|
|
e.floor.enter(this.mode),
|
|
@@ -23237,7 +23250,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
//---------before fly--------------- add
|
|
|
this.updateHotVisible(i); //更新热点显示
|
|
|
this.transitionPos({type:"beforeFlytopano", pano:i, dur:I})//add
|
|
|
-
|
|
|
+ Overlay.updateVisibles([this.currentPano, i])
|
|
|
|
|
|
//地标变化
|
|
|
if(this.model.floorLogos){
|
|
@@ -23276,12 +23289,18 @@ window.Modernizr = function(n, e, t) {
|
|
|
C(e)
|
|
|
|
|
|
//add:
|
|
|
- if(this.mode == "panorama" && this.model.floorLogos){
|
|
|
- this.model.floorLogos[0].position.copy(this.model.floorLogos[1].position)
|
|
|
- //this.model.adjustfloorLogoHeight()
|
|
|
- this.model.changefloorLogoOpa({index:0,opa:1,dur:0});//this.model.floorLogos[0].material.uniforms.opacity.value = 1;
|
|
|
- this.model.floorLogos[1].visible = false;
|
|
|
+ if(this.mode == "panorama" ){
|
|
|
+ if(this.model.floorLogos){
|
|
|
+ this.model.floorLogos[0].position.copy(this.model.floorLogos[1].position)
|
|
|
+ //this.model.adjustfloorLogoHeight()
|
|
|
+ this.model.changefloorLogoOpa({index:0,opa:1,dur:0});//this.model.floorLogos[0].material.uniforms.opacity.value = 1;
|
|
|
+ this.model.floorLogos[1].visible = false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Overlay.updateVisibles([this.currentPano])//add
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
.bind(this), 0, B, "camFly", V.FlyToPano)
|
|
|
}
|
|
@@ -23759,6 +23778,17 @@ window.Modernizr = function(n, e, t) {
|
|
|
this.model.floorLogos[0].visible = true
|
|
|
)
|
|
|
|
|
|
+ if(this.mode == u.PANORAMA){
|
|
|
+ Overlay.updateVisibles([this.currentPano])
|
|
|
+ }else{
|
|
|
+ Overlay.updateVisibles(true)
|
|
|
+ this.overlayGroup.children.forEach(overlay=>{
|
|
|
+ if(overlay.animateInfo){
|
|
|
+ GifTexDeal.start(overlay.animation)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
h && p !== u.PANORAMA && i === u.PANORAMA ? this.startWarp(b.Retain, E.Retain, x.BLACK, null, null, s) : (s && s(),
|
|
|
t.resolve())
|
|
@@ -30740,11 +30770,47 @@ window.Modernizr = function(n, e, t) {
|
|
|
extend: function(e, t) {
|
|
|
for (var i in t.prototype)
|
|
|
e.prototype[i] = t.prototype[i]
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ getVisiblePano : function(position, options={}){//add
|
|
|
+ var visiblePanos = [];
|
|
|
+ var B = position.clone();
|
|
|
+ var panos = options.panos || player.model.panos.list;
|
|
|
+
|
|
|
+ panos.forEach((pano)=>{
|
|
|
+ if(!pano.isAligned())return;
|
|
|
+ var A = pano.position.clone();
|
|
|
+
|
|
|
+ var ray = new THREE.Raycaster(A.clone(), B.clone().sub(A).normalize(), 0, A.distanceTo(B) - (options.tolerance||0) )
|
|
|
+ var o = ray.intersectObjects(options.model || player.model.colliders, true);
|
|
|
+
|
|
|
+
|
|
|
+ if (!o || !o.length)visiblePanos.push(pano );
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ return visiblePanos
|
|
|
+ }
|
|
|
+ ,
|
|
|
+ sortByScore : function(list, request, rank) {
|
|
|
+ var i = this.filterAll(list, request);
|
|
|
+ return 0 === i.length ? null : i = i.map(function(e) {
|
|
|
+ return {
|
|
|
+ item: e,
|
|
|
+ score: rank.reduce(function(t, i) {
|
|
|
+ return t + i(e);
|
|
|
+ }, 0)
|
|
|
+ };
|
|
|
+ }).sort(function(e, t) {
|
|
|
+ return t.score - e.score;
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
Math.sign = function(e) {
|
|
|
return e < 0 ? -1 : 1
|
|
|
}
|
|
|
+ window.common = t.exports
|
|
|
}
|
|
|
, {
|
|
|
three: 217
|
|
@@ -31238,6 +31304,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
|
|
|
}
|
|
|
+ window.math = t.exports
|
|
|
}
|
|
|
, {
|
|
|
"../constants": 8,
|
|
@@ -31532,7 +31599,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
195: [function(e, t, i) {
|
|
|
"use strict";
|
|
|
var n = e("./easing");
|
|
|
- t.exports = {
|
|
|
+ window.transitions = t.exports = {
|
|
|
globalDone: null,
|
|
|
funcs: [],
|
|
|
counter: 0,
|