var TourPlayer=function(){"use strict";var t=function(){this.panos=null};t.prototype.getPointForPano=function(t){return{id:t,G:0,position:this.panos[t].position,contact:this.panos[t].neighbourUUIDs}},t.prototype.getNeighbourUUIDs=function(t){return t.neighbourUUIDs},t.prototype.searchRoad=function(t,e,a){try{if(this.panos=t,e==a)return console.log("点击的点和当前点是同一个点"),null;var o=this.getPointForPano(e);if(o.contact.indexOf(a)>-1)return[a];var r,n,i=this.getPointForPano(a),s=[],p=[],l=[];s.push({id:e,G:0,position:o.position,contact:o.contact});do{var u=s.pop();if(p.push(u),p.length>1e4)return console.log("错误过渡路径:",p.length),null;var d;d=this.getPointForPano(u.id).contact;for(var h=0;h50?(console.log("错误过渡路径:"+l),null):(n&&l.unshift(n.id),console.log("path-end"+l),l)}catch(t){return console.error("searchRoad",t),[]}},t.prototype.sortF=function(t,e){return e.F-t.F},t.prototype.existList=function(t,e){for(var a=0;a0){var e=t.panosTaskList[0],a=this.tours[this.partId].list[this.frameId],r=this.getNextFrame();r&&a.enter.mode==o&&r.enter.mode==o&&a.enter.panoId!=e.pano.id&&r.enter.panoId!=e.pano.id&&(a.pausePanoId=e.pano.id),t.stopTourPanoTask()}},i.prototype.playForFlyToNewMode=function(t,e){var a=this.app.core.get("Player");if(a.mode==t.enter.mode&&a.mode==o);else if(a.mode!=t.enter.mode)if(t.enter.mode==o){var r=a.model.panos.get(t.enter.panoId);a.flyToNewMode({pano:r,quaternion:t.enter.qua,mode:t.enter.mode,callback:e})}else a.flyToNewMode({position:t.enter.pos,target:t.enter.target,quaternion:t.enter.qua,mode:t.enter.mode,currentScale:t.enter.currentScale,floor:t.enter.floor,callback:function(){e()}})},i.prototype.createPanoList=function(t,a){var o=this.app.core.get("Player"),r=e.searchRoad(o.model.panos.index,t,a.enter.panoId);0==r.length&&(r[0]=a.enter.panoId);for(var n=[],i=0;i