|
|
@@ -758,12 +758,14 @@ window.initHot = function(model){
|
|
|
}
|
|
|
|
|
|
|
|
|
- updateVisible(panos, visibility) {
|
|
|
+ updateVisible(panos, visibility, type) {
|
|
|
if(window.isEdit && editTool.hotpoint.editSpot == this){
|
|
|
return this.visible = true
|
|
|
}
|
|
|
|
|
|
- this.visible = visibility != void 0 ? visibility : (!this.info.visiblePanos || !!panos.find(pano=>this.info.visiblePanos.includes(pano.id)))
|
|
|
+ this.visible = visibility != void 0 ? visibility : (!this.info.visiblePanos ||
|
|
|
+ type == 'every' ? panos.every(pano=>this.info.visiblePanos.includes(pano.id)) : panos.some(pano=>this.info.visiblePanos.includes(pano.id)))//type为every时,需要panos中每个都可见才显示
|
|
|
+ this.titleElem && this.titleElem.setVisible(this.visible, 'hotVisible', 1)
|
|
|
|
|
|
if (this.texType == 'video'){
|
|
|
//this.switchPlay(this.visible, this.visible ? null : 'stop' );//可见时不操作;不可见时停止
|
|
|
@@ -1464,11 +1466,11 @@ window.initHot = function(model){
|
|
|
|
|
|
}
|
|
|
|
|
|
- Hot.updateVisibles = function(panos) {
|
|
|
+ Hot.updateVisibles = function(panos, type) { //只显示没被遮挡的,否则会卡
|
|
|
if (panos === true) {
|
|
|
- model.hotGroup.children.forEach(e=>e.updateVisible(null,true))
|
|
|
+ model.hotGroup.children.forEach(e=>e.updateVisible(null,true,type))
|
|
|
} else {
|
|
|
- model.hotGroup.children.forEach(e=>e.updateVisible(panos))
|
|
|
+ model.hotGroup.children.forEach(e=>e.updateVisible(panos, null, type))
|
|
|
}
|
|
|
}
|
|
|
|