1 |
- import{aq as b,ar as m}from"./_plugin-vue_export-helper-5e42e6c7.js";const N="/assets/vrload.1047209b.gif",w=b(),{moss:S,ossmark:u}=m(w),p=window.screen.width;let h=105,d="",r="";p<=768&&(d=u.value,r=S.value,h=125);function x(t,e,o,c,i,a,s){if(t){let l=o||0,g=c||0,v=a.split("/");s==1&&d?d="?x-oss-process=image/resize,w_200":s==2&&p<=768&&(d=u.value);var n="<view hlookat='"+l+"' vlookat='"+g+"' fovtype='MFOV' fov='"+(i||h)+"' fovmin='80' fovmax='150' limitview='auto' enablelookto='true' /><image><sphere url='"+a+v[v.length-2]+".jpg"+d+"' /></image>";t.set("scene["+e+"].content",n),t.call("loadscene("+e+",null,MERGE,ZOOMBLEND(0.4, 1.0, easeInOutSine))")}}function P(t,e,o,c,i,a){if(t){let n=o||0,l=c||0;a.split("/");var s="<view hlookat='"+n+"' vlookat='"+l+"' fovtype='MFOV' fov='"+(i||h)+"' fovmin='80' fovmax='150' limitview='auto' enablelookto='true' /><preview url='"+a+"preview.jpg' /><image><cube url='"+a+"image_%s.jpg"+r+"' /></image>";t.set("scene[test1].content",s),t.call("loadscene(test1,null,MERGE,ZOOMBLEND(0.4, 1.0, easeInOutSine));")}}function V(t,e,o,c,i){t.call("addhotspot(".concat(c,")")),i&&t.set("hotspot[".concat(c,"].url"),i),t.set("hotspot[".concat(c,"].ath"),e),t.set("hotspot[".concat(c,"].atv"),o),t.set("hotspot[".concat(c,"].keep"),!1),t.set("hotspot[".concat(c,"].distorted"),!1),t.set("hotspot[".concat(c,"].renderer"),"css3d"),t.set("hotspot[".concat(c,"].zorder2"),1)}function C(t,e){t.call(`removehotspot(${e.name});`)}function j(t,e){try{if(typeof JSON.parse(t)=="object"&&Object.prototype.toString.call(JSON.parse(t))==="[object Object]")return e===!0?JSON.parse(t):!0}catch{}return!1}function I(t,e){var o=e.embedId;t.call("addhotspot(".concat(o,")")),t.set("hotspot[".concat(o,"].bordercolor"),"0x".concat("2475f1")),t.set("hotspot[".concat(o,"].borderwidth"),2),t.set("hotspot[".concat(o,"].keep"),!1),t.set("hotspot[".concat(o,"].distorted"),!0),t.set("hotspot[".concat(o,"].renderer"),"css3d"),t.set("hotspot[".concat(o,"].zoom"),!0),typeof e.embedValue=="string"&&(e.embedValue=JSON.parse(e.embedValue));for(var c=0;c<e.embedValue.length;c+=1){t.set("hotspot[".concat(o,"].point[").concat(c,"].ath"),e.embedValue[c].ath),t.set("hotspot[".concat(o,"].point[").concat(c,"].atv"),e.embedValue[c].atv);var i="".concat(o,"_").concat(c);y(t,i,e.embedValue[c].ath,e.embedValue[c].atv)}O(t,e,"".concat(o,"_text"))}function y(t,e,o,c,i){var a="".concat("/static/img/svg/","rulerHotspot.svg");t.call("addhotspot(".concat(e,")")),t.set("hotspot[".concat(e,"].url"),a),t.set("hotspot[".concat(e,"].ath"),o),t.set("hotspot[".concat(e,"].atv"),c),t.set("hotspot[".concat(e,"].keep"),!1),t.set("hotspot[".concat(e,"].distorted"),!1),t.set("hotspot[".concat(e,"].renderer"),"css3d"),t.set("hotspot[".concat(e,"].onloaded"),function(){var s=t.get("hotspot[".concat(e,"].sprite")),n=document.createElement("div");n.className="pointContent";var l=document.createElement("div");t.call("addhotspot(".concat(e,")")),l.className="pointIcon",n.appendChild(l),s.appendChild(n),s.style.backgroundImage=""})}function O(t,e,o){var c=t.get("hotspot[".concat(o,"].sprite"));if(c){f(t,o,e.title,112);return}typeof e.titlePosition=="string"&&(e.titlePosition=JSON.parse(e.titlePosition));var i="".concat("/static/img/svg/","ruler.svg");t.call("addhotspot(".concat(o,")")),t.set("hotspot[".concat(o,"].url"),i),t.set("hotspot[".concat(o,"].ath"),e.titlePosition&&e.titlePosition.ath),t.set("hotspot[".concat(o,"].atv"),e.titlePosition&&e.titlePosition.atv),t.set("hotspot[".concat(o,"].capture"),!1),t.set("hotspot[".concat(o,"].renderer"),"css3d"),t.set("hotspot[".concat(o,"].onloaded"),function(){var a=t.get("hotspot[".concat(o,"].sprite"));a.style.display="block";var s=document.createElement("div");s.className="rulerTextContent";var n=document.createElement("div");n.className="rulerText",n.innerText=e.title?e.title:"标尺文字",s.appendChild(n),a.appendChild(s),a.style.backgroundImage="",f(t,o,e.title,112)})}const f=function(t,e,o,c){if(t.get("hotspot[".concat(e,"].sprite"))){var i,a,s=t.get("hotspot[".concat(e,"].sprite")).childNodes;if(!((i=s[0])===null||i===void 0)&&i.childNodes&&(!((a=s[0])===null||a===void 0)&&a.childNodes[0])){s[0].childNodes[0].style.width="auto",s[0].childNodes[0].innerText=o||"标尺文字";var n=c===136?12:8;o.length>n?(s[0].childNodes[0].style.width="".concat(c,"px"),s[0].childNodes[0].style.whiteSpace="normal"):(s[0].childNodes[0].style.width="auto",s[0].childNodes[0].style.whiteSpace="nowrap")}}};export{N as _,x as a,P as b,j as c,C as d,V as i,I as r};
|