cesium-city3d/Build/Cesium/Cesium.js

26 lines
3.0 MiB
JavaScript
Raw Normal View History

2020-08-03 18:04:41 +08:00
/**
* Modifications copyright (C) 2016 <SuperMap Software Co., Ltd.>
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2016 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details.
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!1d(){1d 3b7(e,t){if(!(e 2u t)){1t 1h 1pS("tT 6w a 9c as a 1d")}}1f 3EA,DQ,1v;!1d(e){1d t(e,t){1g v.6w(e,t)}1d i(e,t){1f i,r,n,o,a,s,l,u,c,d,h,1b,f=t&&t.aO("/"),p=m.oN,g=p&&p["*"]||{};if(e){1n(e=e.aO("/"),a=e.1k-1,m.6Jz&&b.7T(e[a])&&(e[a]=e[a].4B(b,"")),"."===e[0].oR(0)&&f&&(1b=f.5k(0,f.1k-1),e=1b.eZ(e)),c=0;c<e.1k;c++){if(h=e[c],"."===h){e.6q(c,1),c-=1}1B{if(".."===h){if(0===c||1===c&&".."===e[2]||".."===e[c-1]){g8}c>0&&(e.6q(c-1,2),c-=2)}}}e=e.lK("/")}if((f||g)&&p){1n(i=e.aO("/"),c=i.1k;c>0;c-=1){if(r=i.5k(0,c).lK("/"),f){1n(d=f.1k;d>0;d-=1){if(n=p[f.5k(0,d).lK("/")],n&&(n=n[r])){o=n,s=c;2r}}}if(o){2r}!l&&g&&g[r]&&(l=g[r],u=c)}!o&&l&&(o=l,s=u),o&&(i.6q(0,s,o),e=i.lK("/"))}1g e}1d r(t,i){1g 1d(){1f r=y.6w(8p,0);1g"5E"!=2o r[0]&&1===r.1k&&r.1s(1M),d.aK(e,r.eZ([t,i]))}}1d n(e){1g 1d(t){1g i(t,e)}}1d o(e){1g 1d(t){f[e]=t}}1d a(i){if(t(p,i)){1f r=p[i];5i p[i],g[i]=!0,c.aK(e,r)}if(!t(f,i)&&!t(g,i)){1t 1h 7H("No "+i)}1g f[i]}1d s(e){1f t,i=e?e.3O("!"):-1;1g i>-1&&(t=e.aZ(0,i),e=e.aZ(i+1,e.1k)),[t,e]}1d l(e){1g e?s(e):[]}1d u(e){1g 1d(){1g m&&m.HL&&m.HL[e]||{}}}1f c,d,h,1b,f={},p={},m={},g={},v=6v.1m.3f,y=[].5k,b=/\\.js$/;h=1d(e,t){1f r,o=s(e),l=o[0],u=t[1];1g e=o[1],l&&(l=i(l,u),r=a(l)),l?e=r&&r.2a?r.2a(e,n(u)):i(e,u):(e=i(e,u),o=s(e),l=o[0],e=o[1],l&&(r=a(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:r}},1b={DQ:1d(e){1g r(e)},9r:1d(e){1f t=f[e];1g"7j"!=2o t?t:f[e]={}},qj:1d(e){1g{id:e,rB:"",9r:f[e],HL:u(e)}}},c=1d(i,n,s,u){1f c,d,m,v,y,b,C,x=[],S=2o s;if(u=u||i,b=l(u),"7j"===S||"1d"===S){1n(n=!n.1k&&s.1k?["DQ","9r","qj"]:n,y=0;y<n.1k;y+=1){if(v=h(n[y],b),d=v.f,"DQ"===d){x[y]=1b.DQ(i)}1B{if("9r"===d){x[y]=1b.9r(i),C=!0}1B{if("qj"===d){c=x[y]=1b.qj(i)}1B{if(t(f,d)||t(p,d)||t(g,d)){x[y]=a(d)}1B{if(!v.p){1t 1h 7H(i+" 4zT "+d)}v.p.rO(v.n,r(u,!0),o(d),{}),x[y]=f[d]}}}}}m=s?s.aK(f[i],x):1j 0,i&&(c&&c.9r!==e&&c.9r!==f[i]?f[i]=c.9r:m===e&&C||(f[i]=m))}1B{i&&(f[i]=s)}},3EA=DQ=d=1d(t,i,r,n,o){if("5E"==2o t){1g 1b[t]?1b[t](i):a(h(t,l(i)).f)}if(!t.6q){if(m=t,m.4Ev&&d(m.4Ev,m.ZN),!i){1g}i.6q?(t=i,i=r,r=1M):t=e}1g i=i||1d(){},"1d"==2o r&&(r=n,n=o),n?c(e,t,i,r):wH(1d(){c(e,t,i,r)},4),d},d.HL=1d(e){1g d(e)},3EA.6Jy=f,1v=1d(e,i,r){if("5E"!=2o e){1t 1h 7H("3xF 6Jx 6Jw: 2YD qj 1bI, no qj 2w")}i.6q||(r=i,i=[]),t(f,e)||t(p,e)||(p[e]=[e,i,r])},1v.SP={1FP:!0}}(),1v("1i/S7",[],1d(){1d e(e){1g(0===e.1k||"/"!==e[e.1k-1])&&(e+="/"),e}1g e}),1v("1i/1E",[],1d(){1d e(e){1g 1j 0!==e&&1M!==e}1g e}),1v("1i/2N",["./1E"],1d(e){1d t(e){1a.2w="2N",1a.p8=e;1f t;9W{1t 1h 7H}bM(i){t=i.uL}1a.uL=t}1g e(6v.cJ)&&(t.1m=6v.cJ(7H.1m),t.1m.9l=t),t.1m.6B=1d(){1f t=1a.2w+": "+1a.p8;1g e(1a.uL)&&(t+="\\n"+1a.uL.6B()),t},t.6x=1d(){1t 1h t("pE 1d 2L an 6Jv 4U 12X 3g be 8O 3dE.")},t}),1v("3p/F7",[],1d(){1d e(t){if(t 2u e){1a.x6=t.x6,1a.Cq=t.Cq,1a.8m=t.8m,1a.lO=t.lO,1a.wV=t.wV}1B{if(t){1f i=r.sU(t);1a.x6=i[1],1a.Cq=i[2],1a.8m=i[3],1a.lO=i[4],1a.wV=i[5]}}}1d t(e){1f t=4mR(e);1g o.7T(t)?t:e.1fU()}1d i(e,t,i,r){1g(t||"")+i.mM()+(r||"")}e.1m.x6=1M,e.1m.Cq=1M,e.1m.8m="",e.1m.lO=1M,e.1m.wV=1M;1f r=1h mN("^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\\\?([^#]*))?(?:#(.*))?$");e.1m.4Ek=1d(){1g 1a.x6},e.1m.4El=1d(){1g 1a.Cq},e.1m.6Ju=1d(){1g 1a.8m},e.1m.6Jt=1d(){1g 1a.lO},e.1m.6Js=1d(){1g 1a.wV},e.1m.4BJ=1d(){1g !!1a.x6&&!1a.wV},e.1m.4Eu=1d(e){1g e.x6==1a.x6&&e.Cq==1a.Cq&&e.8m==1a.8m&&e.lO==1a.lO},e.1m.2x=1d(e){1g 1a.4Eu(e)&&e.wV==1a.wV},e.1m.2a=1d(){1a.2ZQ(),1a.x6&&(1a.x6=1a.x6.mM()),1a.Cq&&(1a.Cq=1a.Cq.4B(a,i).4B(n,t)),1a.8m&&(1a.8m=1a.8m.4B(n,t)),1a.lO&&(1a.lO=1a.lO.4B(n,t)),1a.wV&&(1a.wV=1a.wV.4B(n,t))};1f n=/%[0-9a-z]{2}/gi,o=/[a-zA-Z0-9\\-\\.1b~]/,a=/(.*@)?([^@:]*)(:.*)?/;1g e.1m.5g=1d(t){1f i=1h e;1g 1a.x6?(i.x6=1a.x6,i.Cq=1a.Cq,i.8m=1a.8m,i.lO=1a.lO):(i.x6=t.x6,1a.Cq?(i.Cq=1a.Cq,i.8m=1a.8m,i.lO=1a.lO):(i.Cq=t.Cq,""==1a.8m?(i.8m=t.8m,i.lO=1a.lO||t.lO):("/"==1a.8m.oR(0)?(i.8m=
var Utils=function(){var _0x10ec70={'mOBQF':'zhangti','cFJLL':function(_0x1d9d40,_0x3ee28e){return _0x1d9d40(_0x3ee28e);},'xeKNC':'未获取到viewer对象!','lePZc':'请检查\x20Cesium\x20是否初始化\x20!!','oRaDA':function(_0x1a8533,_0x1c3fc7){return _0x1a8533!==_0x1c3fc7;},'CrYaZ':'undefined','imYNK':'examples/images/SkyBox/00h+00.jpg','XjCgo':'examples/images/SkyBox/12h+00.jpg','TMtMZ':'examples/images/SkyBox/06h+00.jpg','uXasm':'examples/images/SkyBox/18h+00.jpg','jjquy':'examples/images/SkyBox/06h+90.jpg','aZPds':'examples/images/SkyBox/06h-90.jpg','xjkyB':'examples/images/SkyBox/Version2_dark_px.jpg','dIhVL':'examples/images/SkyBox/Version2_dark_mx.jpg','lxuEW':'examples/images/SkyBox/Version2_dark_py.jpg','rTnKM':'examples/images/SkyBox/Version2_dark_my.jpg','VaZJR':'examples/images/SkyBox/Version2_dark_pz.jpg','kCjTq':'examples/images/SkyBox/Version2_dark_mz.jpg','sCHGe':'examples/images/SkyBox/tycho2t3_80_pxs.jpg','EASuF':'examples/images/SkyBox/tycho2t3_80_mxs.jpg','iAlal':'examples/images/SkyBox/tycho2t3_80_pys.jpg','MYneU':'examples/images/SkyBox/tycho2t3_80_mys.jpg','sEjiT':'examples/images/SkyBox/tycho2t3_80_pzs.jpg','QNUKp':'examples/images/SkyBox/tycho2t3_80_mzs.jpg','ekjhn':'examples/images/SkyBox/rightav9.jpg','KcEEI':'examples/images/SkyBox/leftav9.jpg','HTevu':'examples/images/SkyBox/frontav9.jpg','uXbsE':'examples/images/SkyBox/backav9.jpg','ArCuG':'examples/images/SkyBox/topav9.jpg','lGAHS':'examples/images/SkyBox/bottomav9.jpg','EJfCy':'examples/images/SkyBox/SunSetRight.png','hRPHz':'examples/images/SkyBox/SunSetLeft.png','sPqEx':'examples/images/SkyBox/SunSetFront.png','AZnlX':'examples/images/SkyBox/SunSetBack.png','DAtty':'examples/images/SkyBox/SunSetUp.png','bsnQO':'examples/images/SkyBox/SunSetDown.png','CJdDL':'examples/images/SkyBox/Right.jpg','FpCvY':'examples/images/SkyBox/Left.jpg','VtDQr':'examples/images/SkyBox/Front.jpg','oGBkq':'examples/images/SkyBox/Back.jpg','Icyka':'examples/images/SkyBox/Up.jpg','qAmYp':'examples/images/SkyBox/Down.jpg','ucGhh':function(_0xd657a7,_0x568191){return _0xd657a7||_0x568191;},'Tclzb':function(_0x3394fb,_0x1c37ca){return _0x3394fb+_0x1c37ca;},'volgm':function(_0x3e0d6d,_0x2e4416){return _0x3e0d6d+_0x2e4416;},'VeEaZ':function(_0x5585cd,_0x1d1f60){return _0x5585cd+_0x1d1f60;},'uAKwD':'uniform\x20sampler2D\x20colorTexture;\x0a','qAUWA':'varying\x20vec2\x20v_textureCoordinates;\x0a','quQCP':'uniform\x20float\x20scale;\x0a','GvZnD':'uniform\x20vec3\x20offset;\x0a','itjmr':'void\x20main()\x20{\x0a','khlLS':'\x20//\x20vec4\x20color\x20=\x20texture2D(colorTexture,\x20v_textureCoordinates);\x0a','hwsPE':'\x20vec4\x20color\x20=\x20texture2D(colorTexture,\x20v_textureCoordinates);\x0a','qtiUZ':'\x20//\x20float\x20gray\x20=\x200.2989*color.r+0.5870*color.g+0.1140*color.b;\x0a','WPbga':'\x20//\x20gl_FragColor\x20=\x20vec4(gray,gray,2.0*(gray+1.0),\x201.0);\x0a','JSDoC':'\x20gl_FragColor\x20=\x20vec4(color.r*0.2,color.g\x20*\x200.4,color.b*0.6,\x201.0);\x0a','Wzjak':'darkEffect','AdulD':'uniform\x20sampler2D\x20colorTexture;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec2\x20v_textureCoordinates;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20hash(float\x20x){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20fract(sin(x*23.3)*13.13);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20time\x20=\x20czm_frameNumber\x20/\x2060.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20resolution\x20=\x20czm_viewport.zw;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20c=vec3(.6,.7,.8);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20a=-.4;\x0a\x20\x20\x