| 12 |
- "use strict";(self.webpackChunkdemo2=self.webpackChunkdemo2||[]).push([[201],{201:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var i=o(43);const a="A1home_A1home__xrg1f";var l=o(379),n=o(498);const s="Pano_demo__t6WDH";(0,o(296).TM)();const r=()=>!!window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);var d=o(579);const m=e=>{let{openPoem:t}=e;const[o,a]=(0,i.useState)("center2"),[m,c]=(0,i.useState)(!1);(0,i.useEffect)(()=>{window.draggbleHotspotEvent=(e,t)=>{console.log("ath: ".concat(e,", atv: ").concat(t))}},[]);const g=(0,i.useMemo)(()=>[{name:"center2",thumbUrl:"panos/DJI_20251030105359_0001_V.tiles/preview.jpg",previewUrl:"panos/DJI_20251030105359_0001_V.tiles/preview.jpg",imageTagAttributes:{type:"cube",tileSize:512,multires:!0},images:[{tiledImageWidth:4608,tiledImageHeight:4608,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg"},{tiledImageWidth:2304,tiledImageHeight:2304,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg"},{tiledImageWidth:1152,tiledImageHeight:1152,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg"}],children:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.Ss,{hlookat:0,vlookat:40,fovType:"MFOV",fov:120,maxPixelZoom:2,fovMin:70,fovMax:140,limitView:"auto"}),(0,d.jsx)(n.a2,{name:"dccgft",url:"myData/img/hotpot.png",atv:32.43,ath:-1.68,scale:.5,edge:"top",distorted:!0}),(0,d.jsx)(n.a2,{name:"dccgftTitle",type:"text",atv:25.83,ath:-1.08,scale:.5,edge:"top",bg:!1,distorted:!0,onClick:()=>t(),children:(0,d.jsx)("div",{className:"A0hotspot",children:(0,d.jsx)("div",{className:"text",children:"\u4e1c\u5448\u6751\u53e4\u4f5b\u5802"})})})]})},{name:"center3",thumbUrl:"panos/DJI_20251030105359_0001_V.tiles/preview.jpg",previewUrl:"panos/DJI_20251030105359_0001_V.tiles/preview.jpg",imageTagAttributes:{type:"cube",tileSize:512,multires:!0},images:[{tiledImageWidth:2624,tiledImageHeight:2624,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l3/%v/l3_%s_%v_%h.jpg"},{tiledImageWidth:1280,tiledImageHeight:1280,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l2/%v/l2_%s_%v_%h.jpg"},{tiledImageWidth:640,tiledImageHeight:640,url:"panos/DJI_20251030105359_0001_V.tiles/%s/l1/%v/l1_%s_%v_%h.jpg"}],children:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.Ss,(0,l.A)((0,l.A)({},r()?{hlookat:12,vlookat:30}:{hlookat:15,vlookat:32}),{},{fovType:"MFOV",fov:120,maxPixelZoom:2,fovMin:70,fovMax:180,limitView:"range",vlookatMax:90,vlookatMin:-55})),(0,d.jsx)(n.a2,{name:"xingtong",url:"myData/img/hotpot.png",atv:44.83,ath:-12.78,scale:.5,edge:"top",distorted:!0})]})}],[]);let p=null,v=null;return document.addEventListener(r()?"touchmove":"mousemove",()=>{p&&clearTimeout(p);p=setTimeout(function(){p=null},3e3),v&&clearTimeout(v),v=setTimeout(()=>{},5e3)}),(0,d.jsx)("div",{className:s,id:"krpanodemo",style:{display:"block"},children:(0,d.jsxs)(n.a,{className:"krpano",webvrUrl:"./webvr.xml",currentScene:o,littlePlanetIntro:!0,passQueryParameters:!0,children:[(0,d.jsx)(n.DB,{enabled:!1}),(0,d.jsx)(n.sV,{onAutoRotateOneRound:()=>{var e,t,o;const i=null===(e=window.ReactKrpanoActionProxy)||void 0===e?void 0:e.get("scene").count,l=null===(t=window.ReactKrpanoActionProxy)||void 0===t?void 0:t.get("scene[get(xml.scene)].index"),n=null===(o=window.ReactKrpanoActionProxy)||void 0===o?void 0:o.get("scene").getItem(l+1>=i?0:l+1);a(n.name)}}),[...g].map(e=>e.imageTagAttributes&&(0,d.jsx)(n.Z5,(0,l.A)({},e),e.name))]})})};function c(){return(0,d.jsx)("div",{className:a,children:(0,d.jsx)(m,{openPoem:()=>{window.parent?window.parent.window.openPoem():console.log("parent is null")}})})}const g=i.memo(c)}}]);
- //# sourceMappingURL=201.fc81fb22.chunk.js.map
|