|
|
@@ -14105,6 +14105,8 @@ function o(a, s, l) {
|
|
|
|
|
|
t.hotIconScale = parseFloat(t.hotIconScale || 1)
|
|
|
window.DATA = t
|
|
|
+ window.DATA.puckHeight || window.DATA.info && window.DATA.info.puckHeight && (window.DATA.puckHeight = window.DATA.info.puckHeight)
|
|
|
+ window.PuckHeightHelper && (window.DATA.puckHeight = window.PuckHeightHelper.normalizeConfig(window.DATA.puckHeight))
|
|
|
settings.playTourNearBy = !DATA.tourFromStart
|
|
|
|
|
|
t.model.summary = t.summary
|
|
|
@@ -17218,6 +17220,8 @@ function o(a, s, l) {
|
|
|
this.panos.forEach(function(e) {
|
|
|
e.build2()
|
|
|
}),
|
|
|
+ window.PuckHeightHelper && (window.PuckHeightHelper.captureBaseFloorPosition(this),
|
|
|
+ window.PuckHeightHelper.applyToModel(this, window.DATA && window.DATA.puckHeight)),
|
|
|
this.floors.forEach(function(e) {
|
|
|
this.boundingBox.union(e.boundingBox)
|
|
|
}
|
|
|
@@ -17365,7 +17369,9 @@ function o(a, s, l) {
|
|
|
var shows = [], hides = []
|
|
|
|
|
|
player.model.panos.forEach(pano => { //是邻近点就显示否则隐藏
|
|
|
- if (currentPano.neighbourPanos[pano.id]) {
|
|
|
+ if (pano.id === currentPano.id) {
|
|
|
+ hides.push(pano)
|
|
|
+ } else if (currentPano.neighbourPanos[pano.id]) {
|
|
|
shows.push(pano)
|
|
|
} else {
|
|
|
hides.push(pano)
|
|
|
@@ -18166,8 +18172,9 @@ function o(a, s, l) {
|
|
|
,
|
|
|
r.prototype.raycastFloorPosition = function() {
|
|
|
I.warn("Performance warning: Raycasting to find floor position");
|
|
|
- var e = new s.Raycaster(this.position,new s.Vector3(0,-1,0)).intersectObjects(this.model.colliders);
|
|
|
- return e.length ? e[0].point : null
|
|
|
+ var e = this.floor && this.floor.collider && this.floor.collider.children && this.floor.collider.children.length ? this.floor.collider.children : this.model.colliders
|
|
|
+ , t = new s.Raycaster(this.position,new s.Vector3(0,-1,0)).intersectObjects(e, !0);
|
|
|
+ return t.length ? t[0].point : null
|
|
|
}
|
|
|
,
|
|
|
r.prototype.raycastToFindFloor = (i = [new s.Vector3(0,-1,0), new s.Vector3(1,-1,0), new s.Vector3(0,-1,1), new s.Vector3(-1,-1,0), new s.Vector3(0,-1,-1), new s.Vector3(1,0,0), new s.Vector3(0,0,1), new s.Vector3(-1,0,0), new s.Vector3(0,0,-1)],
|
|
|
@@ -18189,7 +18196,8 @@ function o(a, s, l) {
|
|
|
,
|
|
|
r.prototype.translate = function(e) {
|
|
|
this.position.add(e),
|
|
|
- this.floorPosition.add(e)
|
|
|
+ this.floorPosition.add(e),
|
|
|
+ this.baseFloorPosition && this.baseFloorPosition.add(e)
|
|
|
}
|
|
|
,
|
|
|
r.prototype.findClosestMidtpointPanoTo = function(e) {
|
|
|
@@ -18954,6 +18962,18 @@ function o(a, s, l) {
|
|
|
this.currentPanoMarker.mesh.parent || e.add(this.currentPanoMarker.mesh)
|
|
|
}
|
|
|
,
|
|
|
+ t.prototype.shouldHideCpmAtCurrentPano = function() {
|
|
|
+ return this.player && this.player.mode === O.PANORAMA && this.player.currentPano && this.player.currentPano.isAligned()
|
|
|
+ }
|
|
|
+ ,
|
|
|
+ t.prototype.syncCpmVisibility = function() {
|
|
|
+ if (!this.currentPanoMarker || !this.currentPanoMarker.mesh)
|
|
|
+ return;
|
|
|
+ var e = this.shouldHideCpmAtCurrentPano();
|
|
|
+ this.currentPanoMarker.mesh.visible = !e,
|
|
|
+ e && this.currentPanoMarker.mesh.material && this.currentPanoMarker.mesh.material.uniforms && this.currentPanoMarker.mesh.material.uniforms.opacity && (this.currentPanoMarker.mesh.material.uniforms.opacity.value = 0)
|
|
|
+ }
|
|
|
+ ,
|
|
|
t.prototype.placeCpm = function() {
|
|
|
if (D.path.mapGuides && this.player.currentPano && this.player.currentPano.isAligned()) {
|
|
|
var e = this.player.currentPano.floor;
|
|
|
@@ -18961,17 +18981,22 @@ function o(a, s, l) {
|
|
|
e.add(this.currentPanoMarker.mesh)),
|
|
|
this.currentPanoMarker.mesh.position.copy(this.player.currentPano.floorPosition).sub(e.position),
|
|
|
this.currentPanoMarker.mesh.position.y += this.pathHeight(),
|
|
|
- this.currentPanoMarker.placed = !0
|
|
|
+ this.currentPanoMarker.placed = !0,
|
|
|
+ this.syncCpmVisibility()
|
|
|
} else
|
|
|
this.popOutCpm()
|
|
|
}
|
|
|
,
|
|
|
t.prototype.fadeInCpm = function(e) {
|
|
|
- this.player.mode === O.PANORAMA && this.player.currentPano && !this.player.currentPano.isAligned() || D.path.mapGuides && this.currentPanoMarker.placed && V.start(F.property(this.currentPanoMarker.mesh.material.uniforms.opacity, "value", 1), e)
|
|
|
+ if (this.shouldHideCpmAtCurrentPano())
|
|
|
+ return void this.syncCpmVisibility();
|
|
|
+ D.path.mapGuides && this.currentPanoMarker.placed && (this.currentPanoMarker.mesh.visible = !0,
|
|
|
+ V.start(F.property(this.currentPanoMarker.mesh.material.uniforms.opacity, "value", 1), e))
|
|
|
}
|
|
|
,
|
|
|
t.prototype.fadeOutCpm = function(e) {
|
|
|
- V.start(F.property(this.currentPanoMarker.mesh.material.uniforms.opacity, "value", 0), e)
|
|
|
+ this.currentPanoMarker && this.currentPanoMarker.mesh && this.currentPanoMarker.mesh.material && this.currentPanoMarker.mesh.material.uniforms && this.currentPanoMarker.mesh.material.uniforms.opacity && (this.currentPanoMarker.mesh.material.uniforms.opacity.value = 0),
|
|
|
+ this.syncCpmVisibility()
|
|
|
}
|
|
|
,
|
|
|
t.prototype.popInCpm = function() {
|
|
|
@@ -21105,6 +21130,10 @@ function o(a, s, l) {
|
|
|
this.intersect && this.intersect.object.visible && VisiSet.dealPanoLogClick( this.intersect.object);
|
|
|
return;
|
|
|
}
|
|
|
+ if (window.VisiSet && VisiSet.setGroundAdjust ) {
|
|
|
+ this.intersect && this.intersect.object.visible && VisiSet.dealGroundAdjustClick(this.intersect.object);
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (window.VisiSet && VisiSet.setRoute) {
|
|
|
this.intersect && this.intersect.object.visible && VisiSet.dealRouteClick(this.intersect.object);
|
|
|
return;
|
|
|
@@ -21649,7 +21678,7 @@ function o(a, s, l) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (window.VisiSet && (VisiSet.setPanoVisible || VisiSet.setTagVisible || VisiSet.setPanoLog || VisiSet.setPanoArea && VisiSet.editPanoArea || VisiSet.setRoute )) {
|
|
|
+ if (window.VisiSet && (VisiSet.setPanoVisible || VisiSet.setTagVisible || VisiSet.setPanoLog || VisiSet.setGroundAdjust || VisiSet.setPanoArea && VisiSet.editPanoArea || VisiSet.setRoute )) {
|
|
|
let meshes = this.model.hotGroup.children.slice()
|
|
|
if(VisiSet.routeInfo?.operation == 'removeLink'){
|
|
|
meshes.push(...VisiSet.meshGroup.children.filter(e=>e.name.includes('routeLine:')))
|
|
|
@@ -21919,7 +21948,10 @@ function o(a, s, l) {
|
|
|
if(this.mode != "panorama")return;
|
|
|
this.model.panos.list.forEach((pano)=>{
|
|
|
if(!pano.marker)return;
|
|
|
- pano.marker.material.visible = !!pano.neighbourPanos[this.currentPano.id];
|
|
|
+ var isCurrent = pano.id == this.currentPano.id;
|
|
|
+ var isNeighbour = !!pano.neighbourPanos[this.currentPano.id];
|
|
|
+ pano.marker.material.visible = !isCurrent && isNeighbour;
|
|
|
+ pano.marker.material.opacity = !isCurrent && isNeighbour ? _settings.panorama.markerOpacity : 0;
|
|
|
})
|
|
|
}
|
|
|
,
|
|
|
@@ -55946,4 +55978,3 @@ function o(a, s, l) {
|
|
|
|
|
|
|
|
|
|
|
|
-
|