From c68ba56db88f33fe3f9134f77baa787de5a5e147 Mon Sep 17 00:00:00 2001 From: strarsis Date: Sat, 26 Aug 2017 12:34:35 +0200 Subject: [PATCH] 64c337b --- .gitignore | 2 +- build/pannellum.css | 2 + build/pannellum.htm | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++ build/pannellum.js | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 205 insertions(+), 1 deletion(-) create mode 100644 build/pannellum.css create mode 100644 build/pannellum.htm create mode 100644 build/pannellum.js diff --git a/.gitignore b/.gitignore index 39d3807..755849a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Ignore builds -build/** +#build/** # Ignore OS X stuff .DS_Store diff --git a/build/pannellum.css b/build/pannellum.css new file mode 100644 index 0000000..7740928 --- /dev/null +++ b/build/pannellum.css @@ -0,0 +1,2 @@ +/* Pannellum 64c337b, https://github.com/mpetroff/pannellum */ +.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,"Nimbus Sans L","Liberation Sans",Arial,sans-serif;background:#f4f4f4 url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A') repeat;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:relative;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-sprite{background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%22208%22%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22117%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22143%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20cy%3D%22169%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cy%3D%22195%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cx%3D%2213%22%20cy%3D%22195%22%20r%3D%222.5%22%2F%3E%0A%3Cpath%20d%3D%22m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z%22%2F%3E%0A%3Cpath%20d%3D%22m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m17%2038v2h-8v-2z%22%2F%3E%0A%3Cpath%20d%3D%22m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z%22%2F%3E%0A%3Cpath%20d%3D%22m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z%22%2F%3E%0A%3C%2Fsvg%3E%0A')}.pnlm-container:-moz-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-webkit-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-ms-fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:rgba(0,0,0,0.4);border-radius:3px;cursor:pointer;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:rgba(0,0,0,0.10);border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:rgba(255,255,255,0.5);border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:rgba(0,0,0,0.7);border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:rgba(0,0,0,0.7);border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}@-webkit-keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:rgba(0,0,0,.7);border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:rgba(0,0,0,.8)}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px 0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px 5px 8px;background:rgba(0,0,0,0.7);border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;-moz-transition:opacity .3s ease-in-out;-webkit-transition:opacity .3s ease-in-out;-o-transition:opacity .3s ease-in-out;-ms-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:rgba(255,255,255,0.2)}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:rgba(0,0,0,0.7);color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:'';position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,0.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2250%22%20width%3D%2250%22%3E%0A%3Cpath%20d%3D%22m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z%22%2F%3E%0A%3C%2Fsvg%3E%0A');cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0} \ No newline at end of file diff --git a/build/pannellum.htm b/build/pannellum.htm new file mode 100644 index 0000000..eb44141 --- /dev/null +++ b/build/pannellum.htm @@ -0,0 +1,104 @@ + + +Pannellum
\ No newline at end of file diff --git a/build/pannellum.js b/build/pannellum.js new file mode 100644 index 0000000..7a50765 --- /dev/null +++ b/build/pannellum.js @@ -0,0 +1,98 @@ +// Pannellum 64c337b, https://github.com/mpetroff/pannellum +window.libpannellum=function(E,f,n){function wa(T){function ab(a,e){return 1==a.level&&1!=e.level?-1:1==e.level&&1!=a.level?1:e.timestamp-a.timestamp}function U(a,e){return a.level!=e.level?a.level-e.level:a.diff-e.diff}function V(a,e,d,f,p,b){this.vertices=a;this.side=e;this.level=d;this.x=f;this.y=p;this.path=b.replace("%s",e).replace("%l",d).replace("%x",f).replace("%y",p)}function W(a,e,f,n,p){var b;var h=e.vertices;b=aa(a,h.slice(0,3));var g=aa(a,h.slice(3,6)),z=aa(a,h.slice(6,9)),h=aa(a,h.slice(9, +12)),l=b[0]+g[0]+z[0]+h[0];-4==l||4==l?b=!1:(l=b[1]+g[1]+z[1]+h[1],b=-4==l||4==l?!1:4!=b[2]+g[2]+z[2]+h[2]);if(b){b=e.vertices;g=b[0]+b[3]+b[6]+b[9];z=b[1]+b[4]+b[7]+b[10];h=b[2]+b[5]+b[8]+b[11];l=Math.sqrt(g*g+z*z+h*h);h=Math.asin(h/l);g=Math.atan2(z,g)-n;g+=g>Math.PI?-2*Math.PI:g<-Math.PI?2*Math.PI:0;g=Math.abs(g);e.diff=Math.acos(Math.sin(f)*Math.sin(h)+Math.cos(f)*Math.cos(h)*Math.cos(g));g=!1;for(z=0;zf&&(b[0]=-1);1p&&(b[1]=-1);1d||1g;g++)d[4*(k+a.width)+g]=d[4*(k+2*a.width)+g],d[4*(k+a.width*(a.height-2))+g]=d[4*(k+a.width*(a.height-3))+g];for(k=2;kg;g++)d[4*(k*a.width+1)+g]=d[4*(k*a.width+2)+g],d[4*((k+1)*a.width-2)+g]=d[4*((k+1)*a.width- +3)+g];for(g=0;4>g;g++)d[4*(a.width+1)+g]=d[4*(2*a.width+2)+g],d[4*(2*a.width-2)+g]=d[4*(3*a.width-3)+g],d[4*(a.width*(a.height-2)+1)+g]=d[4*(a.width*(a.height-3)+2)+g],d[4*(a.width*(a.height-1)-2)+g]=d[4*(a.width*(a.height-2)-3)+g];for(k=1;kg;g++)d[4*k+g]=d[4*(k+a.width)+g],d[4*(k+a.width*(a.height-1))+g]=d[4*(k+a.width*(a.height-2))+g];for(k=1;kg;g++)d[k*a.width*4+g]=d[4*(k*a.width+1)+g],d[4*((k+1)*a.width-1)+g]=d[4*((k+1)*a.width-2)+g];for(g=0;4> +g;g++)d[g]=d[4*(a.width+1)+g],d[4*(a.width-1)+g]=d[4*(2*a.width-2)+g],d[a.width*(a.height-1)*4+g]=d[4*(a.width*(a.height-2)+1)+g],d[4*(a.width*a.height-1)+g]=d[4*(a.width*(a.height-1)-2)+g];b.putImageData(e,0,0);E++;6==E&&(ja=this.width,T.appendChild(S),h())};for(k=0;6>k;k++)b=new Image,b.crossOrigin="anonymous",b.side=k,b.onload=p,b.src="multires"==y?encodeURI($.replace("%s",z[k])+"."+s.extension):encodeURI(s[k].src)}else{if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"}; +s.fullpath=s.basePath?s.basePath+s.path:s.path;s.invTileResolution=1/s.tileResolution;e=xa();pa=[];for(k=0;6>k;k++)pa[k]=e.slice(12*k,12*k+12),e=xa();if("equirectangular"==y){if(k=Math.max(s.width,s.height),e=a.getParameter(a.MAX_TEXTURE_SIZE),k>e)throw console.log("Error: The image is too big; it's "+k+"px wide, but this device's maximum supported width is "+e+"px."),{type:"webgl size error",width:k,maxWidth:e};}else if("cubemap"==y&&(k=s[0].width,e=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE),k> +e))throw console.log("Error: The cube face image is too big; it's "+k+"px wide, but this device's maximum supported width is "+e+"px."),{type:"webgl size error",width:k,maxWidth:e};g===n||g.horizonPitch===n&&g.horizonRoll===n||(ba=[g.horizonPitch==n?0:g.horizonPitch,g.horizonRoll==n?0:g.horizonRoll]);k=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight);R=a.createShader(a.VERTEX_SHADER);e=l;"multires"==y&&(e=x);a.shaderSource(R,e);a.compileShader(R);M=a.createShader(a.FRAGMENT_SHADER); +e=Ha;"cubemap"==y?(k=a.TEXTURE_CUBE_MAP,e=Ia):"multires"==y&&(e=ka);a.shaderSource(M,e);a.compileShader(M);d=a.createProgram();a.attachShader(d,R);a.attachShader(d,M);a.linkProgram(d);a.getShaderParameter(R,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(R));a.getShaderParameter(M,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(M));a.getProgramParameter(d,a.LINK_STATUS)||console.log(a.getProgramInfoLog(d));a.useProgram(d);d.drawInProgress=!1;d.texCoordLocation=a.getAttribLocation(d,"a_texCoord"); +a.enableVertexAttribArray(d.texCoordLocation);"multires"!=y?(ga||(ga=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ga),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(d.texCoordLocation,2,a.FLOAT,!1,0,0),d.aspectRatio=a.getUniformLocation(d,"u_aspectRatio"),a.uniform1f(d.aspectRatio,w.clientWidth/w.clientHeight),d.psi=a.getUniformLocation(d,"u_psi"),d.theta=a.getUniformLocation(d,"u_theta"),d.f=a.getUniformLocation(d,"u_f"),d.h=a.getUniformLocation(d, +"u_h"),d.v=a.getUniformLocation(d,"u_v"),d.vo=a.getUniformLocation(d,"u_vo"),d.rot=a.getUniformLocation(d,"u_rot"),a.uniform1f(d.h,$/(2*Math.PI)),a.uniform1f(d.v,p/Math.PI),a.uniform1f(d.vo,b/Math.PI*2),"equirectangular"==y&&(d.backgroundColor=a.getUniformLocation(d,"u_backgroundColor"),a.uniform4fv(d.backgroundColor,(g.backgroundColor?g.backgroundColor:[0,0,0]).concat([1]))),d.texture=a.createTexture(),a.bindTexture(k,d.texture),"cubemap"==y?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB, +a.UNSIGNED_BYTE,s[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[2])):a.texImage2D(k,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s),a.texParameteri(k,a.TEXTURE_WRAP_S, +a.CLAMP_TO_EDGE),a.texParameteri(k,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(k,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(k,a.TEXTURE_MAG_FILTER,a.LINEAR)):(d.vertPosLocation=a.getAttribLocation(d,"a_vertCoord"),a.enableVertexAttribArray(d.vertPosLocation),B||(B=a.createBuffer()),Y||(Y=a.createBuffer()),ya||(ya=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,Y),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,ya),a.bufferData(a.ELEMENT_ARRAY_BUFFER, +new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),d.perspUniform=a.getUniformLocation(d,"u_perspMatrix"),d.cubeUniform=a.getUniformLocation(d,"u_cubeMatrix"),d.level=-1,d.currentNodes=[],d.nodeCache=[],d.nodeCacheTimestamp=0);$=a.getError();if(0!==$)throw console.log("Error: Something went wrong with WebGL!",$),{type:"webgl error"};h()}};this.destroy=function(){T!==n&&(w!==n&&T.removeChild(w),S!==n&&T.removeChild(S));if(a){var d=a.getExtension("WEBGL_lose_context");d&&d.loseContext()}};this.resize=function(){var k= +E.devicePixelRatio||1;w.width=w.clientWidth*k;w.height=w.clientHeight*k;a&&(1286==a.getError()&&oa(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),"multires"!=y&&a.uniform1f(d.aspectRatio,w.clientWidth/w.clientHeight))};this.resize();this.setPose=function(a,d){ba=[a,d]};this.render=function(k,e,f,l){var p;p=0;l===n&&(l={});l.roll&&(p=l.roll);if(ba!==n){var b=ba[0],h=ba[1],g=k,z=e,x=Math.cos(h)*Math.sin(k)*Math.sin(b)+Math.cos(k)*(Math.cos(b)*Math.cos(e)+Math.sin(h)*Math.sin(b)*Math.sin(e)), +A=-Math.sin(k)*Math.sin(h)+Math.cos(k)*Math.cos(h)*Math.sin(e);k=Math.cos(h)*Math.cos(b)*Math.sin(k)+Math.cos(k)*(-Math.cos(e)*Math.sin(b)+Math.cos(b)*Math.sin(h)*Math.sin(e));k=Math.asin(Math.max(Math.min(k,1),-1));e=Math.atan2(A,x);b=[Math.cos(g)*(Math.sin(h)*Math.sin(b)*Math.cos(z)-Math.cos(b)*Math.sin(z)),Math.cos(g)*Math.cos(h)*Math.cos(z),Math.cos(g)*(Math.cos(b)*Math.sin(h)*Math.cos(z)+Math.sin(z)*Math.sin(b))];h=[-Math.cos(k)*Math.sin(e),Math.cos(k)*Math.cos(e)];h=Math.acos(Math.max(Math.min((b[0]* +h[0]+b[1]*h[1])/(Math.sqrt(b[0]*b[0]+b[1]*b[1]+b[2]*b[2])*Math.sqrt(h[0]*h[0]+h[1]*h[1])),1),-1));0>b[2]&&(h=2*Math.PI-h);p+=h}if(a||"multires"!=y&&"cubemap"!=y){if("multires"!=y)f=2*Math.atan(Math.tan(0.5*f)/(w.clientWidth/w.clientHeight)),f=1/Math.tan(0.5*f),a.uniform1f(d.psi,e),a.uniform1f(d.theta,k),a.uniform1f(d.rot,p),a.uniform1f(d.f,f),!0===qa&&"equirectangular"==y&&(a.bindTexture(a.TEXTURE_2D,d.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s)),a.drawArrays(a.TRIANGLES,0, +6);else{b=w.clientWidth/w.clientHeight;h=2*Math.atan(Math.tan(f/2)*w.clientHeight/w.clientWidth);h=1/Math.tan(h/2);b=[h/b,0,0,0,0,h,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(h=1;hs.tileResolution*Math.pow(2,h-1)*Math.tan(f/2)*0.707;)h++;d.level=h;h=[1,0,0,0,1,0,0,0,1];h=ma(h,-p,"z");h=ma(h,-k,"x");h=ma(h,e,"y");h=[h[0],h[1],h[2],0,h[3],h[4],h[5],0,h[6],h[7],h[8],0,0,0,0,1];a.uniformMatrix4fv(d.perspUniform,!1,new Float32Array(na(b)));a.uniformMatrix4fv(d.cubeUniform,!1,new Float32Array(na(h))); +b=[b[0]*h[0],b[0]*h[1],b[0]*h[2],0,b[5]*h[4],b[5]*h[5],b[5]*h[6],0,b[10]*h[8],b[10]*h[9],b[10]*h[10],b[11],-h[8],-h[9],-h[10],0];d.nodeCache.sort(ab);if(200d.currentNodes.length+50)for(h=d.nodeCache.splice(200,d.nodeCache.length-200),p=0;pp;p++)g=new V(pa[p],h[p],1,0,0,s.fullpath),W(b,g,k,e,f);d.currentNodes.sort(U);for(p=0;pp;p++)f=S.querySelector(".pnlm-"+e[p]+"face").style,f.webkitTransform=k+l[e[p]],f.transform=k+l[e[p]]};this.isLoading=function(){if(a&&"multires"==y)for(var f=0;ft;t++)N.push(new Image),N[t].crossOrigin="anonymous";r.load.lbox.style.display= +"block";r.load.lbar.style.display="none"}else if("multires"==c.type)t=JSON.parse(JSON.stringify(c.multiRes)),c.basePath&&c.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(c.multiRes.basePath)?t.basePath=c.basePath+c.multiRes.basePath:c.multiRes.basePath?t.basePath=c.multiRes.basePath:c.basePath&&(t.basePath=c.basePath),N=t;else if(!0===c.dynamic)N=c.panorama;else{if(c.panorama===n){U("No panorama image was specified.");return}N=new Image}if("cubemap"==c.type)for(var b=6,d=function(){b--;0===b&&T()}, +e=function(a){var t=f.createElement("a");t.href=a.target.src;t.innerHTML=t.href;U("The file "+t.outerHTML+" could not be accessed.")},t=0;td||65536")+12),f=function(a){var t;0<=e.indexOf(a+'="')?(t=e.substring(e.indexOf(a+'="')+a.length+2),t=t.substring(0,t.indexOf('"'))):0<=e.indexOf(a+">")&&(t=e.substring(e.indexOf(a+">")+a.length+1),t=t.substring(0,t.indexOf("<"))); +return t!==n?Number(t):null},b=f("GPano:FullPanoWidthPixels"),d=f("GPano:CroppedAreaImageWidthPixels"),g=f("GPano:FullPanoHeightPixels"),h=f("GPano:CroppedAreaImageHeightPixels"),k=f("GPano:CroppedAreaTopPixels"),l=f("GPano:PoseHeadingDegrees"),p=f("GPano:PosePitchDegrees"),f=f("GPano:PoseRollDegrees");null!==b&&null!==d&&null!==g&&null!==h&&null!==k&&(0>Z.indexOf("haov")&&(c.haov=d/b*360),0>Z.indexOf("vaov")&&(c.vaov=h/g*180),0>Z.indexOf("vOffset")&&(c.vOffset=-180*((k+h/2)/g-0.5)),null!==l&&0>Z.indexOf("northOffset")&& +(c.northOffset=l,!1!==c.compass&&(c.compass=!0)),null!==p&&null!==f&&(0>Z.indexOf("horizonPitch")&&(c.horizonPitch=p),0>Z.indexOf("horizonRoll")&&(c.horizonRoll=f)))}N.src=E.URL.createObjectURL(a)});m.readAsBinaryString!==n?m.readAsBinaryString(a):m.readAsText(a)}function U(a){a===n&&(a="Your browser does not have the necessary WebGL support to display this panorama.");r.errorMsg.innerHTML="

"+a+"

";u.load.style.display="none";r.load.box.style.display="none";r.errorMsg.style.display="table"; +Ja=!0;J.style.display="none";ca("error",a)}function V(a){var c=W(a);da.style.left=c.x+"px";da.style.top=c.y+"px";clearTimeout(V.t1);clearTimeout(V.t2);da.style.display="block";da.style.opacity=1;V.t1=setTimeout(function(){da.style.opacity=0},2E3);V.t2=setTimeout(function(){da.style.display="none"},2500);a.preventDefault()}function W(a){var c=l.getBoundingClientRect(),b={};b.x=a.clientX-c.left;b.y=a.clientY-c.top;return b}function xa(a){a.preventDefault();l.focus();if(I&&c.draggable){var m=W(a);if(c.hotSpotDebug){var b= +na(a);console.log("Pitch: "+b[0]+", Yaw: "+b[1]+", Center Pitch: "+c.pitch+", Center Yaw: "+c.yaw+", HFOV: "+c.hfov)}K();Fa();c.roll=0;v.hfov=0;ha=!0;O=Date.now();sa=m.x;ta=m.y;Ka=c.yaw;La=c.pitch;C.classList.add("pnlm-grabbing");C.classList.remove("pnlm-grab");ca("mousedown",a);B()}}function ma(a){c.minHfov===c.hfov?ua.setHfov(ra,1E3):(a=na(a),ua.lookAt(a[0],a[1],c.minHfov,1E3))}function na(a){var m=W(a);a=D.getCanvas();var b=a.clientWidth,d=a.clientHeight;a=m.x/b*2-1;var d=(1-m.y/d*2)*d/b,e=1/Math.tan(c.hfov* +Math.PI/360),f=Math.sin(c.pitch*Math.PI/180),g=Math.cos(c.pitch*Math.PI/180),m=e*g-d*f,b=Math.sqrt(a*a+m*m),d=180*Math.atan((d*g+e*f)/b)/Math.PI;a=180*Math.atan2(a/b,m/b)/Math.PI+c.yaw;-180>a&&(a+=360);180a.wheelDelta?1:-1):a.wheelDelta?(Q(c.hfov-0.05*a.wheelDelta),v.hfov=0>a.wheelDelta?1:-1):a.detail&&(Q(c.hfov+1.5*a.detail),v.hfov=0Ya.indexOf(m)||(a.preventDefault(),27==m?Ca&&Oa():s(m,!0))}function pa(){for(var a=0;10>a;a++)q[a]=!1}function ba(a){var c=a.which|| +a.keycode;0>Ya.indexOf(c)||(a.preventDefault(),s(c,!1))}function s(a,c){var b=!1;switch(a){case 109:case 189:case 17:case 173:q[0]!=c&&(b=!0);q[0]=c;break;case 107:case 187:case 16:case 61:q[1]!=c&&(b=!0);q[1]=c;break;case 38:q[2]!=c&&(b=!0);q[2]=c;break;case 87:q[6]!=c&&(b=!0);q[6]=c;break;case 40:q[3]!=c&&(b=!0);q[3]=c;break;case 83:q[7]!=c&&(b=!0);q[7]=c;break;case 37:q[4]!=c&&(b=!0);q[4]=c;break;case 65:q[8]!=c&&(b=!0);q[8]=c;break;case 39:q[5]!=c&&(b=!0);q[5]=c;break;case 68:q[9]!=c&&(b=!0), +q[9]=c}b&&c&&(ea="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),B())}function y(){if(I){var a=!1,m=c.pitch,b=c.yaw,d=c.hfov,e;e="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();ea===n&&(ea=e);var f=(e-ea)*c.hfov/1700,f=Math.min(f,1);q[0]&&!0===c.keyboardZoom&&(Q(c.hfov+(0.8*v.hfov+0.5)*f),a=!0);q[1]&&!0===c.keyboardZoom&&(Q(c.hfov+(0.8*v.hfov-0.2)*f),a=!0);if(q[2]||q[6])c.pitch+=(0.8*v.pitch+0.2)*f,a=!0;if(q[3]||q[7])c.pitch+=(0.8* +v.pitch-0.2)*f,a=!0;if(q[4]||q[8])c.yaw+=(0.8*v.yaw-0.2)*f,a=!0;if(q[5]||q[9])c.yaw+=(0.8*v.yaw+0.2)*f,a=!0;a&&(O=Date.now());Date.now();if(c.autoRotate){if(0.001=c.autoRotateStopDelay&&(c.autoRotateStopDelay=!1,X=c.autoRotate,c.autoRotate=0))}H.pitch&&(qa("pitch"),m=c.pitch);H.yaw&&(qa("yaw"),b=c.yaw);H.hfov&& +(qa("hfov"),d=c.hfov);0m.startPosition&&b>=m.endPosition||m.endPositionc.autoRotateInactivityDelay&&!c.autoRotate&&(c.autoRotate=X,ua.lookAt(Aa,n,ra,3E3)),requestAnimationFrame(Y);else if(D&&(D.isLoading()||!0===c.dynamic&&Za))requestAnimationFrame(Y); +else{Ra=!1;ea=n;var a=c.autoRotateInactivityDelay-(Date.now()-O);0c.yaw&&(c.yaw+=360);a=c.yaw;var b=c.maxYaw-c.minYaw,d=-180,e=180;360>b&&(d=c.minYaw+c.hfov/2,e=c.maxYaw-c.hfov/2,b=a.yaw&&-90=h||(90=a.yaw)&&0>=h)a.div.style.visibility="hidden";else{var k=Math.sin((-a.yaw+c.yaw)*Math.PI/180),l=Math.tan(c.hfov*Math.PI/360);a.div.style.visibility="visible";var p=D.getCanvas(),n=p.clientWidth,p=p.clientHeight, +b=[-n/l*k*d/h/2,-n/l*(b*f-d*g*e)/h/2],d=Math.sin(c.roll*Math.PI/180),e=Math.cos(c.roll*Math.PI/180),b=[b[0]*e-b[1]*d,b[0]*d+b[1]*e];b[0]+=(n-a.div.offsetWidth)/2;b[1]+=(p-a.div.offsetHeight)/2;n="translate("+b[0]+"px, "+b[1]+"px) translateZ(9999px) rotate("+c.roll+"deg)";a.div.style.webkitTransform=n;a.div.style.MozTransform=n;a.div.style.transform=n}}function g(a){c={};var b,d="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");Z=[];for(b in Ua)Ua.hasOwnProperty(b)&&(c[b]=Ua[b]); +for(b in x.default)x.default.hasOwnProperty(b)&&(c[b]=x.default[b],0<=d.indexOf(b)&&Z.push(b));if(null!==a&&""!==a&&x.scenes&&x.scenes[a]){var e=x.scenes[a];for(b in e)e.hasOwnProperty(b)&&(c[b]=e[b],0<=d.indexOf(b)&&Z.push(b));c.scene=a}for(b in x)x.hasOwnProperty(b)&&(c[b]=x[b],0<=d.indexOf(b)&&Z.push(b))}function z(a){if((a=a?a:!1)&&"preview"in c){var b=c.preview;c.basePath&&!ka(b)&&(b=c.basePath+b);la=f.createElement("div");la.className="pnlm-preview-img";la.style.backgroundImage="url('"+encodeURI(b)+ +"')";J.appendChild(la)}var b=c.title,d=c.author;a&&("previewTitle"in c&&(c.title=c.previewTitle),"previewAuthor"in c&&(c.author=c.previewAuthor));c.hasOwnProperty("title")||(r.title.innerHTML="");c.hasOwnProperty("author")||(r.author.innerHTML="");c.hasOwnProperty("title")||c.hasOwnProperty("author")||(r.container.style.display="none");for(var e in c)if(c.hasOwnProperty(e))switch(e){case "title":r.title.innerHTML=Ea(c[e]);r.container.style.display="inline";break;case "author":r.author.innerHTML="by "+ +Ea(c[e]);r.container.style.display="inline";break;case "fallback":r.errorMsg.innerHTML='

Your browser does not support WebGL.
Click here to view this panorama in an alternative viewer.

';break;case "hfov":Q(Number(c[e]));break;case "autoLoad":!0===c[e]&&D===n&&(r.load.box.style.display="inline",u.load.style.display="none",Ha());break;case "showZoomCtrl":u.zoom.style.display=c[e]&&!1!=c.showControls?"block":"none";break;case "showFullscreenCtrl":u.fullscreen.style.display= +c[e]&&!1!=c.showControls&&("fullscreen"in f||"mozFullScreen"in f||"webkitIsFullScreen"in f||"msFullscreenElement"in f)?"block":"none";break;case "hotSpotDebug":Va.style.display=c[e]?"block":"none";break;case "showControls":c[e]||(u.orientation.style.display="none",u.zoom.style.display="none",u.fullscreen.style.display="none");break;case "orientationOnByDefault":c[e]&&(za===n?Xa=!0:!0===za&&Pa());break;case "loadButtonLabel":u.load.innerHTML="

"+Ea(c[e])+"

"}a&&(b?c.title=b:delete c.title,d?c.author= +d:delete c.author)}function Oa(){if(I&&!Ja)if(Ca)f.exitFullscreen?f.exitFullscreen():f.mozCancelFullScreen?f.mozCancelFullScreen():f.webkitCancelFullScreen?f.webkitCancelFullScreen():f.msExitFullscreen&&f.msExitFullscreen();else try{l.requestFullscreen?l.requestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.msRequestFullscreen?l.msRequestFullscreen():l.webkitRequestFullScreen()}catch(a){}}function A(){f.fullscreen||f.mozFullScreen||f.webkitIsFullScreen||f.msFullscreenElement?(u.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"), +Ca=!0):(u.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Ca=!1);D.resize();Q(c.hfov);B()}function Wa(a){var b=c.minHfov;"multires"==c.type&&D&&(b=Math.min(b,D.getCanvas().width/(c.multiRes.cubeResolution/90*0.9)));return b>c.maxHfov?(console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),c.hfov):ac.maxHfov?c.maxHfov:a}function Q(a){c.hfov=Wa(a)}function K(){H={};X=c.autoRotate?c.autoRotate:X;c.autoRotate=!1}function G(){Ja&&(r.load.box.style.display="none",r.errorMsg.style.display= +"none",Ja=!1,ca("errorcleared"));u.load.style.display="none";r.load.box.style.display="inline";Ha()}function L(a,d,e,f,h){I=!1;H={};var k,l;if(c.sceneFadeDuration&&!h&&(k=D.render(c.pitch*Math.PI/180,c.yaw*Math.PI/180,c.hfov*Math.PI/180,{returnImage:!0}),k!==n)){h=new Image;h.className="pnlm-fade-img";h.style.transition="opacity "+c.sceneFadeDuration/1E3+"s";h.style.width="100%";h.style.height="100%";h.onload=function(){L(a,d,e,f,!0)};h.src=k;J.appendChild(h);D.fadeImg=h;return}h="same"===d?c.pitch: +d;k="same"===e?c.yaw:"sameAzimuth"===e?c.yaw+(c.northOffset||0)-(x.scenes[a].northOffset||0):e;l="same"===f?c.hfov:f;b();g(a);v.yaw=v.pitch=v.hfov=0;z();h!==n&&(c.pitch=h);k!==n&&(c.yaw=k);l!==n&&(c.hfov=l);ca("scenechange",a);G()}function Fa(){E.removeEventListener("deviceorientation",k);u.orientation.classList.remove("pnlm-orientation-button-active");Ma=!1}function Pa(){Ma=!0;$a=c.yaw;E.addEventListener("deviceorientation",k);u.orientation.classList.add("pnlm-orientation-button-active");requestAnimationFrame(Y)} +function Ea(a){return x.escapeHTML?String(a).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("
"):String(a).split("\n").join("
")}function ca(a){if(a in P)for(var b=P[a].length;0 +a?2*a*a:-1+(4-2*a)*a},loadButtonLabel:"Click to\nLoad\nPanorama",draggable:!0},Ya=[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189];l="string"===typeof l?f.getElementById(l):l;l.classList.add("pnlm-container");l.tabIndex=0;var C=f.createElement("div");C.className="pnlm-ui";l.appendChild(C);var J=f.createElement("div");J.className="pnlm-render-container";l.appendChild(J);var F=f.createElement("div");F.className="pnlm-dragfix";C.appendChild(F);var da=f.createElement("span");da.className="pnlm-about-msg"; +da.innerHTML='Pannellum 64c337b';C.appendChild(da);F.addEventListener("contextmenu",V);var r={},Va=f.createElement("div");Va.className="pnlm-sprite pnlm-hot-spot-debug-indicator";C.appendChild(Va);r.container=f.createElement("div");r.container.className="pnlm-panorama-info";r.title=f.createElement("div");r.title.className="pnlm-title-box";r.container.appendChild(r.title);r.author=f.createElement("div");r.author.className="pnlm-author-box";r.container.appendChild(r.author); +C.appendChild(r.container);r.load={};r.load.box=f.createElement("div");r.load.box.className="pnlm-load-box";r.load.box.innerHTML="

Loading...

";r.load.lbox=f.createElement("div");r.load.lbox.className="pnlm-lbox";r.load.lbox.innerHTML='
';r.load.box.appendChild(r.load.lbox);r.load.lbar=f.createElement("div");r.load.lbar.className="pnlm-lbar";r.load.lbarFill=f.createElement("div");r.load.lbarFill.className="pnlm-lbar-fill";r.load.lbar.appendChild(r.load.lbarFill); +r.load.box.appendChild(r.load.lbar);r.load.msg=f.createElement("p");r.load.msg.className="pnlm-lmsg";r.load.box.appendChild(r.load.msg);C.appendChild(r.load.box);r.errorMsg=f.createElement("div");r.errorMsg.className="pnlm-error-msg pnlm-info-box";C.appendChild(r.errorMsg);var u={};u.container=f.createElement("div");u.container.className="pnlm-controls-container";C.appendChild(u.container);u.load=f.createElement("div");u.load.className="pnlm-load-button";u.load.addEventListener("click",function(){z(); +G()});C.appendChild(u.load);u.zoom=f.createElement("div");u.zoom.className="pnlm-zoom-controls pnlm-controls";u.zoomIn=f.createElement("div");u.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";u.zoomIn.addEventListener("click",function(){I&&(Q(c.hfov-5),B())});u.zoom.appendChild(u.zoomIn);u.zoomOut=f.createElement("div");u.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";u.zoomOut.addEventListener("click",function(){I&&(Q(c.hfov+5),B())});u.zoom.appendChild(u.zoomOut);u.container.appendChild(u.zoom); +u.fullscreen=f.createElement("div");u.fullscreen.addEventListener("click",Oa);u.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(f.fullscreenEnabled||f.mozFullScreenEnabled||f.webkitFullscreenEnabled||f.msFullscreenEnabled)&&u.container.appendChild(u.fullscreen);u.orientation=f.createElement("div");u.orientation.addEventListener("click",function(a){Ma?Fa():Pa()});u.orientation.addEventListener("mousedown",function(a){a.stopPropagation()}); +u.orientation.addEventListener("touchstart",function(a){a.stopPropagation()});u.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()});u.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var za,Xa=!1;E.DeviceOrientationEvent?E.addEventListener("deviceorientation",Ia):za=!1;var Da=f.createElement("div");Da.className="pnlm-compass pnlm-controls pnlm-control";C.appendChild(Da);x.firstScene?g(x.firstScene):x.default&& +x.default.firstScene?g(x.default.firstScene):g(null);z(!0);var ia=[],va=[];fa.prototype.multiply=function(a){return new fa(this.w*a.w-this.x*a.x-this.y*a.y-this.z*a.z,this.x*a.w+this.w*a.x+this.y*a.z-this.z*a.y,this.y*a.w+this.w*a.y+this.z*a.x-this.x*a.z,this.z*a.w+this.w*a.z+this.x*a.y-this.y*a.x)};fa.prototype.toEulerAngles=function(){var a=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),b=Math.asin(2*(this.w*this.y-this.z*this.x)),c=Math.atan2(2*(this.w*this.z+this.x* +this.y),1-2*(this.y*this.y+this.z*this.z));return[a,b,c]};this.isLoaded=function(){return I};this.getPitch=function(){return c.pitch};this.setPitch=function(a,b,d,e){(b=b==n?1E3:Number(b))?H.pitch={startTime:Date.now(),startPosition:c.pitch,endPosition:a,duration:b,callback:d,callbackArgs:e}:c.pitch=a;B();return this};this.getPitchBounds=function(){return[c.minPitch,c.maxPitch]};this.setPitchBounds=function(a){c.minPitch=Math.max(-90,Math.min(a[0],90));c.maxPitch=Math.max(-90,Math.min(a[1],90));return this}; +this.getYaw=function(){return c.yaw};this.setYaw=function(a,b,d,e){(b=b==n?1E3:Number(b))?H.yaw={startTime:Date.now(),startPosition:c.yaw,endPosition:a,duration:b,callback:d,callbackArgs:e}:c.yaw=a;B();return this};this.getYawBounds=function(){return[c.minYaw,c.maxYaw]};this.setYawBounds=function(a){c.minYaw=Math.max(-180,Math.min(a[0],180));c.maxYaw=Math.max(-180,Math.min(a[1],180));return this};this.getHfov=function(){return c.hfov};this.setHfov=function(a,b,d,e){(b=b==n?1E3:Number(b))?H.hfov={startTime:Date.now(), +startPosition:c.hfov,endPosition:Wa(a),duration:b,callback:d,callbackArgs:e}:Q(a);B();return this};this.getHfovBounds=function(){return[c.minHfov,c.maxHfov]};this.setHfovBounds=function(a){c.minHfov=Math.max(0,a[0]);c.maxHfov=Math.max(0,a[1]);return this};this.lookAt=function(a,b,c,d,e,f){d=d==n?1E3:Number(d);a!==n&&(this.setPitch(a,d,e,f),e=n);b!==n&&(this.setYaw(b,d,e,f),e=n);c!==n&&this.setHfov(c,d,e,f);return this};this.getNorthOffset=function(){return c.northOffset};this.setNorthOffset=function(a){c.northOffset= +Math.min(360,Math.max(0,a));B();return this};this.getHorizonRoll=function(){return c.horizonRoll};this.setHorizonRoll=function(a){c.horizonRoll=Math.min(90,Math.max(-90,a));D.setPose(c.horizonPitch*Math.PI/180,c.horizonRoll*Math.PI/180);B();return this};this.getHorizonPitch=function(){return c.horizonPitch};this.setHorizonPitch=function(a){c.horizonPitch=Math.min(90,Math.max(-90,a));D.setPose(c.horizonPitch*Math.PI/180,c.horizonRoll*Math.PI/180);B();return this};this.startAutoRotate=function(a){a= +a||X||1;c.autoRotate=a;ua.lookAt(Aa,n,ra,3E3);B();return this};this.stopAutoRotate=function(){X=c.autoRotate?c.autoRotate:X;c.autoRotate=!1;c.autoRotateInactivityDelay=-1;return this};this.getRenderer=function(){return D};this.setUpdate=function(a){Za=!0===a;D===n?T():B();return this};this.mouseEventToCoords=function(a){return na(a)};this.loadScene=function(a,b,c,d){I&&L(a,b,c,d);return this};this.getScene=function(){return c.scene};this.addScene=function(a,b){x.scenes[a]=b;return this};this.removeScene= +function(a){if(c.scene===a||!x.scenes.hasOwnProperty(a))return!1;delete x.scenes[a];return!0};this.toggleFullscreen=function(){Oa();return this};this.getConfig=function(){return c};this.addHotSpot=function(a,b){if(b===n&&c.scene===n)c.hotSpots.push(a);else{var d=b!==n?b:c.scene;if(x.scenes.hasOwnProperty(d))x.scenes[d].hasOwnProperty("hotSpots")||(x.scenes[d].hotSpots=[],d==c.scene&&(c.hotSpots=x.scenes[d].hotSpots)),x.scenes[d].hotSpots.push(a);else throw"Invalid scene ID!";}if(b===n||c.scene==b)$(a), +I&&h(a);return this};this.removeHotSpot=function(a){if(!c.hotSpots)return!1;for(var b=0;b