earthsdk3-cesium 3.5.0-beta.3 → 3.5.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -48735,7 +48735,7 @@ const Kn = class Kn extends N {
|
|
|
48735
48735
|
});
|
|
48736
48736
|
p("splitPosition", (f) => o.scene.splitPosition = f), p("resolutionScale", (f) => o.resolutionScale = f), p("msaaSamples", (f) => o.scene.msaaSamples = f), g("shadows", (f) => o.shadows = f), p("scenePpsfxaaEnabled", (f) => a.postProcessStages.fxaa.enabled = f), g("scenePpsAmbientOcclusionEnabled", (f) => a.postProcessStages.ambientOcclusion.enabled = f), g("scenePpsAmbientOcclusionAmbientOcclusionOnly", (f) => a.postProcessStages.ambientOcclusion.uniforms.ambientOcclusionOnly = f), g("scenePpsAmbientOcclusionIntensity", (f) => a.postProcessStages.ambientOcclusion.uniforms.intensity = f), g("scenePpsAmbientOcclusionBias", (f) => a.postProcessStages.ambientOcclusion.uniforms.bias = f), g("scenePpsAmbientOcclusionLengthCap", (f) => a.postProcessStages.ambientOcclusion.uniforms.lengthCap = f), g("scenePpsAmbientOcclusionStepSize", (f) => a.postProcessStages.ambientOcclusion.uniforms.stepSize = f), g("scenePpsAmbientOcclusionBlurStepSize", (f) => a.postProcessStages.ambientOcclusion.uniforms.blurStepSize = f), g("scenePpsBloomEnabled", (f) => a.postProcessStages.bloom.enabled = f), g("scenePpsBloomGlowOnly", (f) => a.postProcessStages.bloom.uniforms.glowOnly = f), g("scenePpsBloomContrast", (f) => a.postProcessStages.bloom.uniforms.contrast = f), g("scenePpsBloomBrightness", (f) => a.postProcessStages.bloom.uniforms.brightness = f), g("scenePpsBloomDelta", (f) => a.postProcessStages.bloom.uniforms.delta = f), g("scenePpsBloomSigma", (f) => a.postProcessStages.bloom.uniforms.sigma = f), g("scenePpsBloomStepSize", (f) => a.postProcessStages.bloom.uniforms.stepSize = f), p("globeShow", (f) => a.globe.show = f), p("depthTestAgainstTerrain", (f) => {
|
|
48737
48737
|
a.globe.depthTestAgainstTerrain = f;
|
|
48738
|
-
}), p("terrainOpacity", (f) => {
|
|
48738
|
+
}), a.globe.translucency.enabled = !0, p("terrainOpacity", (f) => {
|
|
48739
48739
|
a.globe.translucency.frontFaceAlpha = a.globe.translucency.backFaceAlpha = Zp(f, 0, 1);
|
|
48740
48740
|
}), p("sceneGlobeShadows", (f) => a.globe.shadows = h.ShadowMode[f]), g("sceneGlobeTerrainExaggeration", (f) => a.globe.terrainExaggeration = f), g("sceneGlobeTerrainExaggerationRelativeHeight", (f) => a.globe.terrainExaggerationRelativeHeight = f), g("sceneGlobeVerticalExaggeration", (f) => a.globe.verticalExaggeration = f), g("sceneGlobeVerticalExaggerationRelativeHeight", (f) => a.globe.verticalExaggerationRelativeHeight = f), g("sceneGlobeBackFaceCulling", (f) => a.globe.backFaceCulling = f), g("sceneGlobeShowSkirts", (f) => a.globe.showSkirts = f), g("sceneGlobeShowWaterEffect", (f) => a.globe.showWaterEffect = f), g("sceneGlobeBaseColor", (f) => a.globe.baseColor = pe(f)), g("sceneGlobeCartographicLimitRectangle", (f) => a.globe.cartographicLimitRectangle = ht(f)), g("sceneGlobeClippingPlanes", (f) => {
|
|
48741
48741
|
if (!a.globe.clippingPlanes) {
|
|
@@ -49862,7 +49862,7 @@ let qe = _t;
|
|
|
49862
49862
|
ae(qe.prototype, qe.createDefaultProps);
|
|
49863
49863
|
let Xp;
|
|
49864
49864
|
try {
|
|
49865
|
-
const t = "earthsdk3-cesium", i = "3.5.0-beta.
|
|
49865
|
+
const t = "earthsdk3-cesium", i = "3.5.0-beta.4", e = "2025-09-24T06:57:53.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "68cd621b33e0c85c47fbbd4116bf77c0f96320ec", a = ((Date.now() - 1758697073e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
49866
49866
|
%c${o ? o + `
|
|
49867
49867
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
49868
49868
|
`;
|
|
@@ -49876,7 +49876,7 @@ try {
|
|
|
49876
49876
|
},
|
|
49877
49877
|
// @ts-ignore
|
|
49878
49878
|
get gituri() {
|
|
49879
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
49879
|
+
return GITURI_ && GITURI_.replace("${commitId}", "68cd621b33e0c85c47fbbd4116bf77c0f96320ec");
|
|
49880
49880
|
},
|
|
49881
49881
|
// @ts-ignore
|
|
49882
49882
|
get info() {
|
|
@@ -49884,7 +49884,7 @@ try {
|
|
|
49884
49884
|
},
|
|
49885
49885
|
// @ts-ignore
|
|
49886
49886
|
get date() {
|
|
49887
|
-
return "2025-09-
|
|
49887
|
+
return "2025-09-24T06:57:53.000Z";
|
|
49888
49888
|
},
|
|
49889
49889
|
// @ts-ignore
|
|
49890
49890
|
get author() {
|
|
@@ -49892,7 +49892,7 @@ try {
|
|
|
49892
49892
|
},
|
|
49893
49893
|
// @ts-ignore
|
|
49894
49894
|
get version() {
|
|
49895
|
-
return "3.5.0-beta.
|
|
49895
|
+
return "3.5.0-beta.4";
|
|
49896
49896
|
},
|
|
49897
49897
|
// @ts-ignore
|
|
49898
49898
|
get name() {
|
|
@@ -49900,7 +49900,7 @@ try {
|
|
|
49900
49900
|
},
|
|
49901
49901
|
// @ts-ignore
|
|
49902
49902
|
get commitId() {
|
|
49903
|
-
return "
|
|
49903
|
+
return "68cd621b33e0c85c47fbbd4116bf77c0f96320ec";
|
|
49904
49904
|
},
|
|
49905
49905
|
print() {
|
|
49906
49906
|
console.info(
|
|
@@ -2169,7 +2169,7 @@ void main (void)
|
|
|
2169
2169
|
out_FragColor = color;
|
|
2170
2170
|
// ------------------ skybox vtxf end -------------------
|
|
2171
2171
|
}
|
|
2172
|
-
`,Gn=h.Cartesian3,dz=h.defaultValue,tn=h.defined,pz=h.destroyObject,fz=h.Ellipsoid,E_=h.EllipsoidGeometry,gz=h.GeometryPipeline,Ys=h.Math,nn=h.Matrix4,mz=h.VertexFormat,vz=h.BufferUsage,yz=h.DrawCommand,wz=h.RenderState,Cz=h.ShaderProgram,A_=h.ShaderSource,_z=h.VertexArray,T_=h._shadersAtmosphereCommon,M_=h._shadersSkyAtmosphereCommon,Pz=h._shadersSkyAtmosphereVS,bz=h.Axis,Sz=h.BlendingState,xz=h.CullFace,I_=h.SceneMode,Ih=h.Transforms,Ez=h.Matrix3,D_=h.DeveloperError,Az=h.loadCubeMap,Tz=h.CubeMap;function Zs(t,i){t=dz(t,fz.WGS84),this.show=!0,this.sources=i,this.perFragmentAtmosphere=!1,this._ellipsoid=t;const e=1.025,n=Gn.multiplyByScalar(t.radii,e,new Gn);this._scaleMatrix=nn.fromScale(n),this._modelMatrix=new nn,this._command=new yz({owner:this,modelMatrix:this._modelMatrix}),this._spSkyFromSpace=void 0,this._spSkyFromAtmosphere=void 0,this._flags=void 0,this.atmosphereLightIntensity=50,this.atmosphereRayleighCoefficient=new Gn(55e-7,13e-6,284e-7),this.atmosphereMieCoefficient=new Gn(21e-6,21e-6,21e-6),this.atmosphereRayleighScaleHeight=1e4,this.atmosphereMieScaleHeight=3200,this.atmosphereMieAnisotropy=.9,this.hueShift=0,this.saturationShift=0,this.brightnessShift=0,this._hueSaturationBrightness=new Gn;const o=new Gn;o.x=t.maximumRadius*e,o.y=t.maximumRadius,o.z=0,this._radiiAndDynamicAtmosphereColor=o;const s=this;this._command.uniformMap={u_radiiAndDynamicAtmosphereColor:function(){return s._radiiAndDynamicAtmosphereColor},u_hsbShift:function(){return s._hueSaturationBrightness.x=s.hueShift,s._hueSaturationBrightness.y=s.saturationShift,s._hueSaturationBrightness.z=s.brightnessShift,s._hueSaturationBrightness},u_atmosphereLightIntensity:function(){return s.atmosphereLightIntensity},u_atmosphereRayleighCoefficient:function(){return s.atmosphereRayleighCoefficient},u_atmosphereMieCoefficient:function(){return s.atmosphereMieCoefficient},u_atmosphereRayleighScaleHeight:function(){return s.atmosphereRayleighScaleHeight},u_atmosphereMieScaleHeight:function(){return s.atmosphereMieScaleHeight},u_atmosphereMieAnisotropy:function(){return s.atmosphereMieAnisotropy},u_rotateMatrix:function(){return s._scratchRoateMatrix=s._scratchRoateMatrix||new Ez,nn.getMatrix3(s._eunMatrix||nn.IDENTITY,s._scratchRoateMatrix)},u_cubeMap:function(){return s._cubeMap}}}Object.defineProperties(Zs.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),Zs.prototype.setDynamicLighting=function(t){this._radiiAndDynamicAtmosphereColor.z=t};const om=new nn;Zs.prototype.update=function(t,i){if(!this.show)return;const e=t.mode;if(e!==I_.SCENE3D&&e!==I_.MORPHING||!t.passes.render)return;if(this._sources!==this.sources){const g=t.context;var n=this;this._sources=this.sources;var o=this.sources;if(!tn(o.positiveX)||!tn(o.negativeX)||!tn(o.positiveY)||!tn(o.negativeY)||!tn(o.positiveZ)||!tn(o.negativeZ))throw new D_("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof o.positiveX!=typeof o.negativeX||typeof o.positiveX!=typeof o.positiveY||typeof o.positiveX!=typeof o.negativeY||typeof o.positiveX!=typeof o.positiveZ||typeof o.positiveX!=typeof o.negativeZ)throw new D_("this.sources properties must all be the same type.");typeof o.positiveX=="string"?Az(g,this._sources).then(function(y){n._cubeMap=n._cubeMap&&n._cubeMap.destroy(),n._cubeMap=y}):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new Tz({context:g,source:o}))}const s=nn.fromRotationTranslation(t.context.uniformState.inverseViewRotation,Gn.ZERO,om),r=nn.multiplyTransformation(s,bz.Y_UP_TO_Z_UP,om),l=nn.multiply(this._scaleMatrix,r,om);nn.clone(l,this._modelMatrix);const c=t.context,u=Mz(this),d=t.globeTranslucencyState.translucent,p=this.perFragmentAtmosphere||d||!tn(i)||!i.show,f=this._command;if(Ih.eastUpNorthToFixedFrame=Ih.eastUpNorthToFixedFrame||Ih.localFrameToFixedFrameGenerator("east","up"),this._eunMatrix=Ih.eastUpNorthToFixedFrame(t.camera._positionWC,void 0,this._eunMatrix),!tn(f.vertexArray)){const g=E_.createGeometry(new E_({radii:new Gn(1,1,1),slicePartitions:256,stackPartitions:256,vertexFormat:mz.POSITION_ONLY}));f.vertexArray=_z.fromGeometry({context:c,geometry:g,attributeLocations:gz.createAttributeLocations(g),bufferUsage:vz.STATIC_DRAW}),f.renderState=wz.fromCache({cull:{enabled:!0,face:xz.FRONT},blending:Sz.ALPHA_BLEND,depthMask:!1})}const m=u|p<<2|d<<3;if(m!==this._flags){this._flags=m;const g=[];u&&g.push("COLOR_CORRECT"),p&&g.push("PER_FRAGMENT_ATMOSPHERE"),d&&g.push("GLOBE_TRANSLUCENT");const y=new A_({defines:g,sources:[T_,M_,Pz]}),_=new A_({defines:g,sources:[T_,M_,uz]});this._spSkyAtmosphere=Cz.fromCache({context:c,vertexShaderSource:y,fragmentShaderSource:_}),f.shaderProgram=this._spSkyAtmosphere}if(tn(this._cubeMap))return f};function Mz(t){return!(Ys.equalsEpsilon(t.hueShift,0,Ys.EPSILON7)&&Ys.equalsEpsilon(t.saturationShift,0,Ys.EPSILON7)&&Ys.equalsEpsilon(t.brightnessShift,0,Ys.EPSILON7))}Zs.prototype.isDestroyed=function(){return!1},Zs.prototype.destroy=function(){const t=this._command;return t.vertexArray=t.vertexArray&&t.vertexArray.destroy(),this._spSkyAtmosphere=this._spSkyAtmosphere&&this._spSkyAtmosphere.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),pz(this)};const nr=class nr extends a.Destroyable{constructor(e,n){super();v(this,"_navigationManager");v(this,"_envManager");v(this,"_reu",(e,n)=>a.registerEventUpdate(this,e,n));this._czmViewer=e,this._viewer=n;const o=this.viewer,s=this.czmViewer,r=o.scene.screenSpaceCameraController;this._navigationManager=this.dv(new ZF(s)),this._envManager=this.dv(new oz(s)),this.disposeVar(new a.ObjResettingWithEvent(this._czmViewer.xbsjUseBackgroundChanged,()=>{if(this._czmViewer.xbsjUseBackground)return new nr.BackGroundResetting(this._czmViewer,this._viewer)})),this.disposeVar(new a.ObjResettingWithEvent(this._czmViewer.xbsjLocalBoxSourcesChanged,()=>{if(!this._czmViewer.xbsjLocalBoxSources)return;const l=x_(this._czmViewer.xbsjLocalBoxSources);if(l)return new nr.LocalSkyBoxResetting(this._czmViewer,this._viewer,l)}));{this._reu(s.disabledInputStackChanged,()=>{const c=s.disabledInputStack===0;r.enableInputs=c,r.enableTranslate=c,r.enableZoom=c,r.enableRotate=c,r.enableTilt=c,r.enableLook=c});class l extends a.Destroyable{constructor(){super(),s.incrementDisabledInputStack(),this.dispose(()=>s.decrementDisabledInputStack())}}this.disposeVar(new a.ObjResettingWithEvent(s.sceneSsccEnableInputsChanged,()=>s.sceneSsccEnableInputs??!0?void 0:new l))}this.d(o.scene.camera.changed.addEventListener(()=>s.cameraChanged.emit()));{const l=()=>{const c=De.latestDefaultAccessToken??De.currentDefaultAccessToken;h.Ion.defaultAccessToken=s.ionAccessToken===""?c:s.ionAccessToken};l(),this.dispose(s.ionAccessTokenChanged.disposableOn(l))}{const{scene:l}=o,c=()=>{if(l.globe.show=s.globeShow??!0,"fov"in l.camera.frustum){const d=l.camera.frustum.aspectRatio;if(!d){console.error("aspectRatio is undefined,请检查Cesium的scene.camera.frustum");return}l.camera.frustum.fov=h.Math.toRadians(d>=1?s.fov:s.fov/d)}};c();const u=this.dv(a.createNextAnimateFrameEvent(s.globeShowChanged,s.fovChanged));this.d(u.don(c))}o.clockViewModel.currentTime=h.JulianDate.fromDate(new Date(s.currentTime)),this.dispose(s.currentTimeChanged.disposableOn(()=>{if(s.currentTime===void 0)return;const l=h.JulianDate.fromDate(new Date(s.currentTime));h.JulianDate.equals(l,o.clockViewModel.currentTime)||(o.clockViewModel.currentTime=l)})),this.dispose(gi(o.clockViewModel,"currentTime",l=>{const c=h.JulianDate.toDate(o.clockViewModel.currentTime).getTime();c!==s.currentTime&&(s.currentTime=c)}));{let l=h.getTimestamp(),c=0;this.d(o.scene.preUpdate.addEventListener(()=>{var u=h.getTimestamp();c++;var d=u-l;d>1e3&&(s._fps.value=c*1e3/d|0,l=u,c=0)}))}{const l=new h.SunLight,c=new h.DirectionalLight({direction:o.scene.camera.directionWC});class u extends a.Destroyable{constructor(){super();const p=s.flashLighting??!1;o.scene.light=p?c:l,p&&this.dispose(o.scene.preRender.addEventListener(function(f,m){c.direction=h.Cartesian3.clone(f.camera.directionWC,f.light.direction)}))}}this.disposeVar(new a.ObjResettingWithEvent(s.flashLightingChanged,()=>new u))}{const{scene:l}=o,{screenSpaceCameraController:c,globe:u}=l,d=(g,y)=>a.registerEventUpdate(this,g,y),p=De.defaults,f=(g,y)=>d(s[g+"Changed"],()=>{if(!Reflect.has(s,g))throw new Error(`!Reflect.has(czmViewer, ${g})`);if(!Reflect.has(p,g))throw new Error(`!Reflect.has(CzmViewer.defaults, ${g})`);y(s[g]??p[g])}),m=(g,y)=>d(s[g+"Changed"],()=>{if(!Reflect.has(s,g))throw new Error(`!Reflect.has(czmViewer, ${g})`);y(s[g])});f("splitPosition",g=>o.scene.splitPosition=g),f("resolutionScale",g=>o.resolutionScale=g),f("msaaSamples",g=>o.scene.msaaSamples=g),m("shadows",g=>o.shadows=g),f("scenePpsfxaaEnabled",g=>l.postProcessStages.fxaa.enabled=g),m("scenePpsAmbientOcclusionEnabled",g=>l.postProcessStages.ambientOcclusion.enabled=g),m("scenePpsAmbientOcclusionAmbientOcclusionOnly",g=>l.postProcessStages.ambientOcclusion.uniforms.ambientOcclusionOnly=g),m("scenePpsAmbientOcclusionIntensity",g=>l.postProcessStages.ambientOcclusion.uniforms.intensity=g),m("scenePpsAmbientOcclusionBias",g=>l.postProcessStages.ambientOcclusion.uniforms.bias=g),m("scenePpsAmbientOcclusionLengthCap",g=>l.postProcessStages.ambientOcclusion.uniforms.lengthCap=g),m("scenePpsAmbientOcclusionStepSize",g=>l.postProcessStages.ambientOcclusion.uniforms.stepSize=g),m("scenePpsAmbientOcclusionBlurStepSize",g=>l.postProcessStages.ambientOcclusion.uniforms.blurStepSize=g),m("scenePpsBloomEnabled",g=>l.postProcessStages.bloom.enabled=g),m("scenePpsBloomGlowOnly",g=>l.postProcessStages.bloom.uniforms.glowOnly=g),m("scenePpsBloomContrast",g=>l.postProcessStages.bloom.uniforms.contrast=g),m("scenePpsBloomBrightness",g=>l.postProcessStages.bloom.uniforms.brightness=g),m("scenePpsBloomDelta",g=>l.postProcessStages.bloom.uniforms.delta=g),m("scenePpsBloomSigma",g=>l.postProcessStages.bloom.uniforms.sigma=g),m("scenePpsBloomStepSize",g=>l.postProcessStages.bloom.uniforms.stepSize=g),f("globeShow",g=>l.globe.show=g),f("depthTestAgainstTerrain",g=>{l.globe.depthTestAgainstTerrain=g}),f("terrainOpacity",g=>{l.globe.translucency.frontFaceAlpha=l.globe.translucency.backFaceAlpha=a.clamp(g,0,1)}),f("sceneGlobeShadows",g=>l.globe.shadows=h.ShadowMode[g]),m("sceneGlobeTerrainExaggeration",g=>l.globe.terrainExaggeration=g),m("sceneGlobeTerrainExaggerationRelativeHeight",g=>l.globe.terrainExaggerationRelativeHeight=g),m("sceneGlobeVerticalExaggeration",g=>l.globe.verticalExaggeration=g),m("sceneGlobeVerticalExaggerationRelativeHeight",g=>l.globe.verticalExaggerationRelativeHeight=g),m("sceneGlobeBackFaceCulling",g=>l.globe.backFaceCulling=g),m("sceneGlobeShowSkirts",g=>l.globe.showSkirts=g),m("sceneGlobeShowWaterEffect",g=>l.globe.showWaterEffect=g),m("sceneGlobeBaseColor",g=>l.globe.baseColor=te(g)),m("sceneGlobeCartographicLimitRectangle",g=>l.globe.cartographicLimitRectangle=We(g)),m("sceneGlobeClippingPlanes",g=>{if(!l.globe.clippingPlanes){l.globe.clippingPlanes=rr(g??{enabled:!1});return}Ql(l.globe.clippingPlanes,g)}),m("sceneGlobeClippingPolygons",g=>{l.globe.clippingPolygons=g?kl(g):void 0}),f("sceneSunGlowFactor",g=>l.sun&&(l.sun.glowFactor=g)),f("moon",g=>l.moon&&(l.moon.show=g)),f("sceneMoonOnlySunLighting",g=>l.moon&&(l.moon.onlySunLighting=g)),f("sceneMoonTextureUrl",g=>l.moon&&(l.moon.textureUrl=a.ESSceneObject.context.getStrFromEnv(g))),m("sceneSkyBoxShow",g=>l._xbsjOriginSkyBox.show=g),f("sceneSkyBoxSources",g=>l._xbsjOriginSkyBox.sources=g&&x_(g)),m("atmosphere",g=>o.scene._xbsjOriginSkyAtmosphere.show=g),m("sceneBackgroundColor",g=>o.scene.backgroundColor=te(g)),f("sceneFogEnabled",g=>l.fog.enabled=g),f("sceneFogDensity",g=>l.fog.density=g),f("sceneFogScreenSpaceErrorFactor",g=>l.fog.screenSpaceErrorFactor=g),f("sceneFogMinimumBrightness",g=>l.fog.minimumBrightness=g),f("sceneDebugShowFramesPerSecond",g=>l.debugShowFramesPerSecond=g),f("sceneDebugShowCommands",g=>l.debugShowCommands=g),f("sceneDebugShowFrustums",g=>l.debugShowFrustums=g),f("sceneDebugShowFrustumPlanes",g=>l.debugShowFrustumPlanes=g),f("sceneDebugShowDepthFrustum",g=>l.debugShowDepthFrustum=g),f("sceneGlobeUndergroundColor",g=>u.undergroundColor=te(g)),f("sceneGlobeUndergroundColorAlphaByDistance",g=>u.undergroundColorAlphaByDistance=ln(g)),f("sceneGlobeTranslucencyEnabled",g=>u.translucency.enabled=g),f("sceneGlobeTranslucencyBackFaceAlpha",g=>u.translucency.backFaceAlpha=g),f("sceneGlobeTranslucencyBackFaceAlphaByDistance",g=>u.translucency.backFaceAlphaByDistance=g&&ln(g)),f("sceneGlobeTranslucencyFrontFaceAlpha",g=>u.translucency.frontFaceAlpha=g),m("sceneGlobeTranslucencyFrontFaceAlphaByDistance",g=>u.translucency.frontFaceAlphaByDistance=g&&ln(g)),f("sceneGlobeTranslucencyRectangle",g=>u.translucency.rectangle=We(g)),f("sceneSplitPosition",g=>l.splitPosition=a.clamp(g,0,1)),f("sceneSsccEnableCollisionDetection",g=>l.screenSpaceCameraController.enableCollisionDetection=g),f("sceneSsccZoomFactor",g=>l.screenSpaceCameraController._zoomFactor=g);{const g=()=>{o.cesiumInspector&&(o.cesiumInspector.container.style.display=s.showCesiumInspector??!1?"block":"none")};g(),this.d(s.showCesiumInspectorChanged.don(g))}f("cesiumInspectorWireframe",g=>{"cesiumInspector"in o&&(o.cesiumInspector.viewModel.wireframe=g)});{const g=()=>{o.cesium3DTilesInspector&&(o.cesium3DTilesInspector.container.style.display=s.showCesium3DTilesInspector??!1?"block":"none")};g(),this.dispose(s.showCesium3DTilesInspectorChanged.disposableOn(g))}this.ad(new a.ObjResettingWithEvent(s.particleGlobalControlChanged,()=>{if(!s.particleGlobalControl)return new Qg}))}}get czmViewer(){return this._czmViewer}get viewer(){return this._viewer}get navigationManager(){return this._navigationManager}get envManager(){return this._envManager}};v(nr,"BackGroundResetting",class extends a.Destroyable{constructor(n,o){super(),this._czmViewer=n,this._viewer=o;const s=new Mh;s.material=h.Material.fromType("Image");const r=this._viewer;r.scene.skyBox=s,this.dispose(()=>r.scene.skyBox=r.scene._xbsjOriginSkyBox);{const l=()=>{s.show=this._czmViewer.sceneSkyBoxShow};l(),this.dispose(this._czmViewer.sceneSkyBoxShowChanged.disposableOn(l))}{const l=()=>{s.material.uniforms.color=te(this._czmViewer.xbsjBackgroundColor)};l(),this.dispose(this._czmViewer.xbsjBackgroundColorChanged.disposableOn(l))}{const l=()=>{s.material.uniforms.image=SceneObject.context.getStrFromEnv(this._czmViewer.xbsjBackgroundImageUri)};l(),this.dispose(this._czmViewer.xbsjBackgroundImageUriChanged.disposableOn(l))}}}),v(nr,"LocalSkyBoxResetting",class extends a.Destroyable{constructor(o,s,r){super();v(this,"_skyAtmosphere");this._czmViewer=o,this._viewer=s,this._sources=r,this._skyAtmosphere=new Zs(void 0,this._sources);const l=this._viewer;l.scene.skyAtmosphere=this._skyAtmosphere,this.dispose(()=>l.scene.skyAtmosphere=l.scene._xbsjOriginSkyAtmosphere);{const c=()=>{this._skyAtmosphere.show=this._czmViewer.atmosphere};c(),this.dispose(this._czmViewer.atmosphereChanged.disposableOn(c))}}get skyAtmosphere(){return this._skyAtmosphere}});let sm=nr;function Iz(t,i,e,n,o){var s=h.Cartesian3.subtract(t,e,new h.Cartesian3),r=h.Cartesian3.dot(s,i);if(!(r<=0))return r*Math.tan(n*.5)*2/o}async function Dz(t){const{viewer:i}=t;if(!i)return;const{width:e,height:n}=i.canvas,o=t.quickPickPosition([e*.5,n*.5]);if(!o)return;const s=await o;if(!s)return;const r=h.Cartesian3.fromDegrees(...s);if(!r)return;const l=i.camera.positionWC,c=i.camera.directionWC,u=i.camera.frustum.fovy;if(u===void 0)return;const d=i.canvas.height;return[Iz(r,c,l,u,d),s]}const Rz=h.Ellipsoid.WGS84.maximumRadius*2*Math.PI/512;function Fz(t){return-Math.log2(t/Rz)}var rm=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];function zz(t){const i=t|0;if(i<1||i>1e8)return;let e=-1;for(;i>=rm[++e];);const n=i/rm[e-1]|0;return[n*rm[e-1],n,e]}class Lz extends a.Destroyable{constructor(){super();v(this,"_lengthInPixels",this.disposeVar(a.react(100)));v(this,"_resolution",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInPixels",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInMeters",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInStr",this.disposeVar(a.react(void 0)));{const e=()=>{let n,o;const{lengthInPixels:s,resolution:r}=this;if(s&&r){const l=zz(s*r);if(l){const[c,u,d]=l;o=c,n=c/r}}this._computedLengthInPixels.value=n,this._computedLengthInMeters.value=o};e(),this.dispose(this.lengthInPixelsChanged.disposableOn(e)),this.dispose(this.resolutionChanged.disposableOn(e))}{const e=()=>{const n=this.computedLengthInMeters;if(!n){this._computedLengthInStr.value=void 0;return}this._computedLengthInStr.value=n>1e3?`${n/1e3|0}km`:`${n}m`};e(),this.dispose(this.computedLengthInMetersChanged.disposableOn(e))}}get lengthInPixels(){return this._lengthInPixels.value}set lengthInPixels(e){this._lengthInPixels.value=e}get lengthInPixelsChanged(){return this._lengthInPixels.changed}get resolution(){return this._resolution.value}set resolution(e){this._resolution.value=e}get resolutionChanged(){return this._resolution.changed}get computedLengthInPixels(){return this._computedLengthInPixels.value}get computedLengthInPixelsChanged(){return this._computedLengthInPixels.changed}get computedLengthInMeters(){return this._computedLengthInMeters.value}get computedLengthInMetersChanged(){return this._computedLengthInMeters.changed}get computedLengthInStr(){return this._computedLengthInStr.value}get computedLengthInStrChanged(){return this._computedLengthInStr.changed}}class Oz extends a.Destroyable{constructor(e){super();v(this,"_enabled",this.dv(a.react(!0)));v(this,"_resolution",this.dv(a.react(void 0)));v(this,"_center",this.dv(a.react(void 0)));v(this,"_zoom",this.dv(a.react(void 0)));v(this,"_legend",this.dv(new Lz));this._czmViewer=e;{const n=this.dv(a.createProcessingFromAsyncFunc(async o=>{let s,r,l;await o.promise(a.sleep(1e3));const c=await o.promise(Dz(this._czmViewer));if(c){const[u,d]=c;s=u,r=Fz(u),l=d}this._resolution.value=s,this._zoom.value=r,this._center.value=l}));n.restart();{const o=()=>{this.enabled?n.restart():n.cancel()};o();const s=this.dv(a.createNextAnimateFrameEvent(this._czmViewer.cameraChanged,this.enabledChanged));this.dispose(s.disposableOn(o))}}{const n=()=>{this._legend.resolution=this.resolution};n(),this.dispose(this.resolutionChanged.disposableOn(n))}}get enabled(){return this._enabled.value}set enabled(e){this._enabled.value=e}get enabledChanged(){return this._enabled.changed}get resolution(){return this._resolution.value}set resolution(e){this._resolution.value=e}get resolutionChanged(){return this._resolution.changed}get center(){return this._center.value}get centerChanged(){return this._center.changed}get zoom(){return this._zoom.value}get zoomChanged(){return this._zoom.changed}get legend(){return this._legend}get length(){return(this.legend.computedLengthInMeters??-1)/(this.legend.computedLengthInPixels??1)}}function Nz(t,i){try{const e=h.Ellipsoid.WGS84,n=e.scaleToGeodeticSurface(t);return i=h.Transforms.eastNorthUpToFixedFrame(n,e,i),i}catch{return h.Matrix4.clone(h.Matrix4.IDENTITY,i)}}const{combine:Bz}=h,{ShaderDestination:Ro}=h,R_={name:"FlattenedPipelineStage"};R_.process=function(t,i,e){if(i.xbsjFlattened){const n=t.shaderBuilder;n.addDefine("XBSJ_FLATTERN",void 0,Ro.BOTH),n.addUniform("sampler2D","u_flattenedPolygonTexture",Ro.BOTH),n.addUniform("vec4","u_flattenedBound",Ro.BOTH),n.addUniform("bool","u_flattened",Ro.BOTH),n.addUniform("mat4","u_inverseModelElevationMatrix",Ro.BOTH),n.addUniform("mat4","u_inverseElevationModelMatrix",Ro.BOTH),n.addUniform("bool","u_flattenDiscard",Ro.BOTH);const o={u_flattenedBound:function(){return i.xbsjFlattenedBound??h.Cartesian4.ZERO},u_flattened:function(){return i.xbsjFlattened},u_inverseModelElevationMatrix:function(){const s=e.context.uniformState.inverseModel??h.Matrix4.IDENTITY;return i._uniformElevationInverseModelMatrix=h.Matrix4.multiply(s,i.xbsjElevationMatrix??h.Matrix4.IDENTITY,i._uniformElevationInverseModelMatrix??new h.Matrix4),i._uniformElevationInverseModelMatrix},u_inverseElevationModelMatrix:function(){const s=e.context.uniformState.model??h.Matrix4.IDENTITY;return i._uniformInverseElevationModelMatrix=h.Matrix4.multiply(i.xbsjElevationMatrixInv??h.Matrix4.IDENTITY,s,i._uniformInverseElevationModelMatrix??new h.Matrix4),i._uniformInverseElevationModelMatrix},u_flattenedPolygonTexture:function(){return i.xbsjGetFlattenedTextureFunc?i.xbsjGetFlattenedTextureFunc()??e.context.defaultTexture:e.context.defaultTexture}};t.uniformMap=Bz(o,t.uniformMap)}};function F_(){Object.defineProperties(h.Model.prototype,{xbsjFlattened:{get:function(){return this._xbsjFlattened??!1},set:function(t){t!==this._xbsjFlattened&&this.resetDrawCommands(),this._xbsjFlattened=t}},xbsjElevationMatrix:{get:function(){return this._xbsjElevationMatrix},set:function(t){t!==this._xbsjElevationMatrix&&this.resetDrawCommands(),this._xbsjElevationMatrix=t,this._xbsjElevationMatrixInv=this._xbsjElevationMatrix&&h.Matrix4.inverseTransformation(this._xbsjElevationMatrix,new h.Matrix4)}},xbsjElevationMatrixInv:{get:function(){return this._xbsjElevationMatrixInv}},xbsjFlattenedBound:{get:function(){return this._xbsjFlattenedBound},set:function(t){t!==this._xbsjFlattenedBound&&this.resetDrawCommands(),this._xbsjFlattenedBound=t}},xbsjGetFlattenedTextureFunc:{get:function(){return this._xbsjGetFlattenedTextureFunc},set:function(t){t!==this._xbsjGetFlattenedTextureFunc&&this.resetDrawCommands(),this._xbsjGetFlattenedTextureFunc=t}}})}function z_(){Object.defineProperties(h.Cesium3DTileset.prototype,{xbsjFlattened:{get:function(){return this._xbsjFlattened??!1},set:function(t){this._xbsjFlattened=t}},xbsjElevationMatrix:{get:function(){return this._xbsjElevationMatrix},set:function(t){this._xbsjElevationMatrix=t}},xbsjFlattenedBound:{get:function(){return this._xbsjFlattenedBound},set:function(t){this._xbsjFlattenedBound=t}},xbsjGetFlattenedTextureFunc:{get:function(){return this._xbsjGetFlattenedTextureFunc},set:function(t){this._xbsjGetFlattenedTextureFunc=t}}})}function L_(){const t=h.Model3DTileContent.prototype.update;h.Model3DTileContent.prototype.update=function(i,e,...n){const o=this._model;return o.xbsjFlattened=i.xbsjFlattened,o.xbsjElevationMatrix=i.xbsjElevationMatrix,o.xbsjFlattenedBound=i.xbsjFlattenedBound,o.xbsjGetFlattenedTextureFunc=i.xbsjGetFlattenedTextureFunc,t.call(this,i,e,...n)}}function O_(){const t=h.ModelSceneGraph.prototype.configurePipeline;h.ModelSceneGraph.prototype.configurePipeline=function(i,...e){const n=t.call(this,i,...e),o=this._model,s=this.modelPipelineStages;return o.xbsjFlattened&&s.push(R_),n}}F_(),z_(),L_(),O_();const Vz=()=>({createCesiumViewerFuncStr:void 0,flashLighting:void 0,resolutionScale:void 0,msaaSamples:void 0,shadows:!1,sceneSplitPosition:void 0,sceneGlobeShadows:void 0,sceneGlobeTerrainExaggeration:1,sceneGlobeTerrainExaggerationRelativeHeight:0,sceneGlobeVerticalExaggeration:1,sceneGlobeVerticalExaggerationRelativeHeight:0,sceneGlobeBackFaceCulling:!0,sceneGlobeShowSkirts:!0,sceneGlobeShowWaterEffect:!0,sceneGlobeBaseColor:a.reactArray([0,0,1,0]),sceneGlobeCartographicLimitRectangle:a.reactArray([-180,-90,180,90]),sceneGlobeClippingPlanes:a.reactJson(void 0),sceneGlobeClippingPlanesId:"",sceneGlobeClippingPolygons:a.reactJsonWithUndefined(void 0),sceneGlobeClippingPolygonsId:a.reactArray([]),sceneGlobeUndergroundColor:a.reactArrayWithUndefined(void 0),sceneGlobeUndergroundColorAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyEnabled:void 0,sceneGlobeTranslucencyBackFaceAlpha:void 0,sceneGlobeTranslucencyBackFaceAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyFrontFaceAlpha:void 0,sceneGlobeTranslucencyFrontFaceAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyRectangle:a.reactArrayWithUndefined(void 0),sun:void 0,sceneSunGlowFactor:void 0,moon:void 0,sceneMoonTextureUrl:void 0,sceneMoonOnlySunLighting:void 0,sceneSkyBoxShow:!0,sceneSkyBoxSources:a.reactJson(De.defaults.sceneSkyBoxSources),xbsjUseBackground:!1,xbsjBackgroundImageUri:"",xbsjBackgroundColor:a.reactArray([1,1,1,1]),xbsjLocalBoxSources:a.reactJsonWithUndefined(void 0),sceneBackgroundColor:a.reactArray([0,0,0,0]),sceneFogEnabled:void 0,sceneFogDensity:void 0,sceneFogScreenSpaceErrorFactor:void 0,sceneFogMinimumBrightness:void 0,sceneSsccEnableInputs:void 0,sceneSsccEnableCollisionDetection:void 0,sceneSsccZoomFactor:void 0,scenePpsfxaaEnabled:void 0,scenePpsAmbientOcclusionEnabled:!1,scenePpsAmbientOcclusionAmbientOcclusionOnly:!1,scenePpsAmbientOcclusionIntensity:3,scenePpsAmbientOcclusionBias:.1,scenePpsAmbientOcclusionLengthCap:.03,scenePpsAmbientOcclusionStepSize:1,scenePpsAmbientOcclusionBlurStepSize:.86,scenePpsBloomEnabled:!1,scenePpsBloomGlowOnly:!1,scenePpsBloomContrast:128,scenePpsBloomBrightness:-.3,scenePpsBloomDelta:1,scenePpsBloomSigma:3.78,scenePpsBloomStepSize:5,sceneDebugShowFramesPerSecond:void 0,sceneDebugShowCommands:void 0,sceneDebugShowFrustums:void 0,sceneDebugShowFrustumPlanes:void 0,sceneDebugShowDepthFrustum:void 0,showCesiumInspector:void 0,cesiumInspectorWireframe:void 0,showCesium3DTilesInspector:void 0,particleGlobalControl:!1}),Uz=`
|
|
2172
|
+
`,Gn=h.Cartesian3,dz=h.defaultValue,tn=h.defined,pz=h.destroyObject,fz=h.Ellipsoid,E_=h.EllipsoidGeometry,gz=h.GeometryPipeline,Ys=h.Math,nn=h.Matrix4,mz=h.VertexFormat,vz=h.BufferUsage,yz=h.DrawCommand,wz=h.RenderState,Cz=h.ShaderProgram,A_=h.ShaderSource,_z=h.VertexArray,T_=h._shadersAtmosphereCommon,M_=h._shadersSkyAtmosphereCommon,Pz=h._shadersSkyAtmosphereVS,bz=h.Axis,Sz=h.BlendingState,xz=h.CullFace,I_=h.SceneMode,Ih=h.Transforms,Ez=h.Matrix3,D_=h.DeveloperError,Az=h.loadCubeMap,Tz=h.CubeMap;function Zs(t,i){t=dz(t,fz.WGS84),this.show=!0,this.sources=i,this.perFragmentAtmosphere=!1,this._ellipsoid=t;const e=1.025,n=Gn.multiplyByScalar(t.radii,e,new Gn);this._scaleMatrix=nn.fromScale(n),this._modelMatrix=new nn,this._command=new yz({owner:this,modelMatrix:this._modelMatrix}),this._spSkyFromSpace=void 0,this._spSkyFromAtmosphere=void 0,this._flags=void 0,this.atmosphereLightIntensity=50,this.atmosphereRayleighCoefficient=new Gn(55e-7,13e-6,284e-7),this.atmosphereMieCoefficient=new Gn(21e-6,21e-6,21e-6),this.atmosphereRayleighScaleHeight=1e4,this.atmosphereMieScaleHeight=3200,this.atmosphereMieAnisotropy=.9,this.hueShift=0,this.saturationShift=0,this.brightnessShift=0,this._hueSaturationBrightness=new Gn;const o=new Gn;o.x=t.maximumRadius*e,o.y=t.maximumRadius,o.z=0,this._radiiAndDynamicAtmosphereColor=o;const s=this;this._command.uniformMap={u_radiiAndDynamicAtmosphereColor:function(){return s._radiiAndDynamicAtmosphereColor},u_hsbShift:function(){return s._hueSaturationBrightness.x=s.hueShift,s._hueSaturationBrightness.y=s.saturationShift,s._hueSaturationBrightness.z=s.brightnessShift,s._hueSaturationBrightness},u_atmosphereLightIntensity:function(){return s.atmosphereLightIntensity},u_atmosphereRayleighCoefficient:function(){return s.atmosphereRayleighCoefficient},u_atmosphereMieCoefficient:function(){return s.atmosphereMieCoefficient},u_atmosphereRayleighScaleHeight:function(){return s.atmosphereRayleighScaleHeight},u_atmosphereMieScaleHeight:function(){return s.atmosphereMieScaleHeight},u_atmosphereMieAnisotropy:function(){return s.atmosphereMieAnisotropy},u_rotateMatrix:function(){return s._scratchRoateMatrix=s._scratchRoateMatrix||new Ez,nn.getMatrix3(s._eunMatrix||nn.IDENTITY,s._scratchRoateMatrix)},u_cubeMap:function(){return s._cubeMap}}}Object.defineProperties(Zs.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),Zs.prototype.setDynamicLighting=function(t){this._radiiAndDynamicAtmosphereColor.z=t};const om=new nn;Zs.prototype.update=function(t,i){if(!this.show)return;const e=t.mode;if(e!==I_.SCENE3D&&e!==I_.MORPHING||!t.passes.render)return;if(this._sources!==this.sources){const g=t.context;var n=this;this._sources=this.sources;var o=this.sources;if(!tn(o.positiveX)||!tn(o.negativeX)||!tn(o.positiveY)||!tn(o.negativeY)||!tn(o.positiveZ)||!tn(o.negativeZ))throw new D_("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof o.positiveX!=typeof o.negativeX||typeof o.positiveX!=typeof o.positiveY||typeof o.positiveX!=typeof o.negativeY||typeof o.positiveX!=typeof o.positiveZ||typeof o.positiveX!=typeof o.negativeZ)throw new D_("this.sources properties must all be the same type.");typeof o.positiveX=="string"?Az(g,this._sources).then(function(y){n._cubeMap=n._cubeMap&&n._cubeMap.destroy(),n._cubeMap=y}):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new Tz({context:g,source:o}))}const s=nn.fromRotationTranslation(t.context.uniformState.inverseViewRotation,Gn.ZERO,om),r=nn.multiplyTransformation(s,bz.Y_UP_TO_Z_UP,om),l=nn.multiply(this._scaleMatrix,r,om);nn.clone(l,this._modelMatrix);const c=t.context,u=Mz(this),d=t.globeTranslucencyState.translucent,p=this.perFragmentAtmosphere||d||!tn(i)||!i.show,f=this._command;if(Ih.eastUpNorthToFixedFrame=Ih.eastUpNorthToFixedFrame||Ih.localFrameToFixedFrameGenerator("east","up"),this._eunMatrix=Ih.eastUpNorthToFixedFrame(t.camera._positionWC,void 0,this._eunMatrix),!tn(f.vertexArray)){const g=E_.createGeometry(new E_({radii:new Gn(1,1,1),slicePartitions:256,stackPartitions:256,vertexFormat:mz.POSITION_ONLY}));f.vertexArray=_z.fromGeometry({context:c,geometry:g,attributeLocations:gz.createAttributeLocations(g),bufferUsage:vz.STATIC_DRAW}),f.renderState=wz.fromCache({cull:{enabled:!0,face:xz.FRONT},blending:Sz.ALPHA_BLEND,depthMask:!1})}const m=u|p<<2|d<<3;if(m!==this._flags){this._flags=m;const g=[];u&&g.push("COLOR_CORRECT"),p&&g.push("PER_FRAGMENT_ATMOSPHERE"),d&&g.push("GLOBE_TRANSLUCENT");const y=new A_({defines:g,sources:[T_,M_,Pz]}),_=new A_({defines:g,sources:[T_,M_,uz]});this._spSkyAtmosphere=Cz.fromCache({context:c,vertexShaderSource:y,fragmentShaderSource:_}),f.shaderProgram=this._spSkyAtmosphere}if(tn(this._cubeMap))return f};function Mz(t){return!(Ys.equalsEpsilon(t.hueShift,0,Ys.EPSILON7)&&Ys.equalsEpsilon(t.saturationShift,0,Ys.EPSILON7)&&Ys.equalsEpsilon(t.brightnessShift,0,Ys.EPSILON7))}Zs.prototype.isDestroyed=function(){return!1},Zs.prototype.destroy=function(){const t=this._command;return t.vertexArray=t.vertexArray&&t.vertexArray.destroy(),this._spSkyAtmosphere=this._spSkyAtmosphere&&this._spSkyAtmosphere.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),pz(this)};const nr=class nr extends a.Destroyable{constructor(e,n){super();v(this,"_navigationManager");v(this,"_envManager");v(this,"_reu",(e,n)=>a.registerEventUpdate(this,e,n));this._czmViewer=e,this._viewer=n;const o=this.viewer,s=this.czmViewer,r=o.scene.screenSpaceCameraController;this._navigationManager=this.dv(new ZF(s)),this._envManager=this.dv(new oz(s)),this.disposeVar(new a.ObjResettingWithEvent(this._czmViewer.xbsjUseBackgroundChanged,()=>{if(this._czmViewer.xbsjUseBackground)return new nr.BackGroundResetting(this._czmViewer,this._viewer)})),this.disposeVar(new a.ObjResettingWithEvent(this._czmViewer.xbsjLocalBoxSourcesChanged,()=>{if(!this._czmViewer.xbsjLocalBoxSources)return;const l=x_(this._czmViewer.xbsjLocalBoxSources);if(l)return new nr.LocalSkyBoxResetting(this._czmViewer,this._viewer,l)}));{this._reu(s.disabledInputStackChanged,()=>{const c=s.disabledInputStack===0;r.enableInputs=c,r.enableTranslate=c,r.enableZoom=c,r.enableRotate=c,r.enableTilt=c,r.enableLook=c});class l extends a.Destroyable{constructor(){super(),s.incrementDisabledInputStack(),this.dispose(()=>s.decrementDisabledInputStack())}}this.disposeVar(new a.ObjResettingWithEvent(s.sceneSsccEnableInputsChanged,()=>s.sceneSsccEnableInputs??!0?void 0:new l))}this.d(o.scene.camera.changed.addEventListener(()=>s.cameraChanged.emit()));{const l=()=>{const c=De.latestDefaultAccessToken??De.currentDefaultAccessToken;h.Ion.defaultAccessToken=s.ionAccessToken===""?c:s.ionAccessToken};l(),this.dispose(s.ionAccessTokenChanged.disposableOn(l))}{const{scene:l}=o,c=()=>{if(l.globe.show=s.globeShow??!0,"fov"in l.camera.frustum){const d=l.camera.frustum.aspectRatio;if(!d){console.error("aspectRatio is undefined,请检查Cesium的scene.camera.frustum");return}l.camera.frustum.fov=h.Math.toRadians(d>=1?s.fov:s.fov/d)}};c();const u=this.dv(a.createNextAnimateFrameEvent(s.globeShowChanged,s.fovChanged));this.d(u.don(c))}o.clockViewModel.currentTime=h.JulianDate.fromDate(new Date(s.currentTime)),this.dispose(s.currentTimeChanged.disposableOn(()=>{if(s.currentTime===void 0)return;const l=h.JulianDate.fromDate(new Date(s.currentTime));h.JulianDate.equals(l,o.clockViewModel.currentTime)||(o.clockViewModel.currentTime=l)})),this.dispose(gi(o.clockViewModel,"currentTime",l=>{const c=h.JulianDate.toDate(o.clockViewModel.currentTime).getTime();c!==s.currentTime&&(s.currentTime=c)}));{let l=h.getTimestamp(),c=0;this.d(o.scene.preUpdate.addEventListener(()=>{var u=h.getTimestamp();c++;var d=u-l;d>1e3&&(s._fps.value=c*1e3/d|0,l=u,c=0)}))}{const l=new h.SunLight,c=new h.DirectionalLight({direction:o.scene.camera.directionWC});class u extends a.Destroyable{constructor(){super();const p=s.flashLighting??!1;o.scene.light=p?c:l,p&&this.dispose(o.scene.preRender.addEventListener(function(f,m){c.direction=h.Cartesian3.clone(f.camera.directionWC,f.light.direction)}))}}this.disposeVar(new a.ObjResettingWithEvent(s.flashLightingChanged,()=>new u))}{const{scene:l}=o,{screenSpaceCameraController:c,globe:u}=l,d=(g,y)=>a.registerEventUpdate(this,g,y),p=De.defaults,f=(g,y)=>d(s[g+"Changed"],()=>{if(!Reflect.has(s,g))throw new Error(`!Reflect.has(czmViewer, ${g})`);if(!Reflect.has(p,g))throw new Error(`!Reflect.has(CzmViewer.defaults, ${g})`);y(s[g]??p[g])}),m=(g,y)=>d(s[g+"Changed"],()=>{if(!Reflect.has(s,g))throw new Error(`!Reflect.has(czmViewer, ${g})`);y(s[g])});f("splitPosition",g=>o.scene.splitPosition=g),f("resolutionScale",g=>o.resolutionScale=g),f("msaaSamples",g=>o.scene.msaaSamples=g),m("shadows",g=>o.shadows=g),f("scenePpsfxaaEnabled",g=>l.postProcessStages.fxaa.enabled=g),m("scenePpsAmbientOcclusionEnabled",g=>l.postProcessStages.ambientOcclusion.enabled=g),m("scenePpsAmbientOcclusionAmbientOcclusionOnly",g=>l.postProcessStages.ambientOcclusion.uniforms.ambientOcclusionOnly=g),m("scenePpsAmbientOcclusionIntensity",g=>l.postProcessStages.ambientOcclusion.uniforms.intensity=g),m("scenePpsAmbientOcclusionBias",g=>l.postProcessStages.ambientOcclusion.uniforms.bias=g),m("scenePpsAmbientOcclusionLengthCap",g=>l.postProcessStages.ambientOcclusion.uniforms.lengthCap=g),m("scenePpsAmbientOcclusionStepSize",g=>l.postProcessStages.ambientOcclusion.uniforms.stepSize=g),m("scenePpsAmbientOcclusionBlurStepSize",g=>l.postProcessStages.ambientOcclusion.uniforms.blurStepSize=g),m("scenePpsBloomEnabled",g=>l.postProcessStages.bloom.enabled=g),m("scenePpsBloomGlowOnly",g=>l.postProcessStages.bloom.uniforms.glowOnly=g),m("scenePpsBloomContrast",g=>l.postProcessStages.bloom.uniforms.contrast=g),m("scenePpsBloomBrightness",g=>l.postProcessStages.bloom.uniforms.brightness=g),m("scenePpsBloomDelta",g=>l.postProcessStages.bloom.uniforms.delta=g),m("scenePpsBloomSigma",g=>l.postProcessStages.bloom.uniforms.sigma=g),m("scenePpsBloomStepSize",g=>l.postProcessStages.bloom.uniforms.stepSize=g),f("globeShow",g=>l.globe.show=g),f("depthTestAgainstTerrain",g=>{l.globe.depthTestAgainstTerrain=g}),l.globe.translucency.enabled=!0,f("terrainOpacity",g=>{l.globe.translucency.frontFaceAlpha=l.globe.translucency.backFaceAlpha=a.clamp(g,0,1)}),f("sceneGlobeShadows",g=>l.globe.shadows=h.ShadowMode[g]),m("sceneGlobeTerrainExaggeration",g=>l.globe.terrainExaggeration=g),m("sceneGlobeTerrainExaggerationRelativeHeight",g=>l.globe.terrainExaggerationRelativeHeight=g),m("sceneGlobeVerticalExaggeration",g=>l.globe.verticalExaggeration=g),m("sceneGlobeVerticalExaggerationRelativeHeight",g=>l.globe.verticalExaggerationRelativeHeight=g),m("sceneGlobeBackFaceCulling",g=>l.globe.backFaceCulling=g),m("sceneGlobeShowSkirts",g=>l.globe.showSkirts=g),m("sceneGlobeShowWaterEffect",g=>l.globe.showWaterEffect=g),m("sceneGlobeBaseColor",g=>l.globe.baseColor=te(g)),m("sceneGlobeCartographicLimitRectangle",g=>l.globe.cartographicLimitRectangle=We(g)),m("sceneGlobeClippingPlanes",g=>{if(!l.globe.clippingPlanes){l.globe.clippingPlanes=rr(g??{enabled:!1});return}Ql(l.globe.clippingPlanes,g)}),m("sceneGlobeClippingPolygons",g=>{l.globe.clippingPolygons=g?kl(g):void 0}),f("sceneSunGlowFactor",g=>l.sun&&(l.sun.glowFactor=g)),f("moon",g=>l.moon&&(l.moon.show=g)),f("sceneMoonOnlySunLighting",g=>l.moon&&(l.moon.onlySunLighting=g)),f("sceneMoonTextureUrl",g=>l.moon&&(l.moon.textureUrl=a.ESSceneObject.context.getStrFromEnv(g))),m("sceneSkyBoxShow",g=>l._xbsjOriginSkyBox.show=g),f("sceneSkyBoxSources",g=>l._xbsjOriginSkyBox.sources=g&&x_(g)),m("atmosphere",g=>o.scene._xbsjOriginSkyAtmosphere.show=g),m("sceneBackgroundColor",g=>o.scene.backgroundColor=te(g)),f("sceneFogEnabled",g=>l.fog.enabled=g),f("sceneFogDensity",g=>l.fog.density=g),f("sceneFogScreenSpaceErrorFactor",g=>l.fog.screenSpaceErrorFactor=g),f("sceneFogMinimumBrightness",g=>l.fog.minimumBrightness=g),f("sceneDebugShowFramesPerSecond",g=>l.debugShowFramesPerSecond=g),f("sceneDebugShowCommands",g=>l.debugShowCommands=g),f("sceneDebugShowFrustums",g=>l.debugShowFrustums=g),f("sceneDebugShowFrustumPlanes",g=>l.debugShowFrustumPlanes=g),f("sceneDebugShowDepthFrustum",g=>l.debugShowDepthFrustum=g),f("sceneGlobeUndergroundColor",g=>u.undergroundColor=te(g)),f("sceneGlobeUndergroundColorAlphaByDistance",g=>u.undergroundColorAlphaByDistance=ln(g)),f("sceneGlobeTranslucencyEnabled",g=>u.translucency.enabled=g),f("sceneGlobeTranslucencyBackFaceAlpha",g=>u.translucency.backFaceAlpha=g),f("sceneGlobeTranslucencyBackFaceAlphaByDistance",g=>u.translucency.backFaceAlphaByDistance=g&&ln(g)),f("sceneGlobeTranslucencyFrontFaceAlpha",g=>u.translucency.frontFaceAlpha=g),m("sceneGlobeTranslucencyFrontFaceAlphaByDistance",g=>u.translucency.frontFaceAlphaByDistance=g&&ln(g)),f("sceneGlobeTranslucencyRectangle",g=>u.translucency.rectangle=We(g)),f("sceneSplitPosition",g=>l.splitPosition=a.clamp(g,0,1)),f("sceneSsccEnableCollisionDetection",g=>l.screenSpaceCameraController.enableCollisionDetection=g),f("sceneSsccZoomFactor",g=>l.screenSpaceCameraController._zoomFactor=g);{const g=()=>{o.cesiumInspector&&(o.cesiumInspector.container.style.display=s.showCesiumInspector??!1?"block":"none")};g(),this.d(s.showCesiumInspectorChanged.don(g))}f("cesiumInspectorWireframe",g=>{"cesiumInspector"in o&&(o.cesiumInspector.viewModel.wireframe=g)});{const g=()=>{o.cesium3DTilesInspector&&(o.cesium3DTilesInspector.container.style.display=s.showCesium3DTilesInspector??!1?"block":"none")};g(),this.dispose(s.showCesium3DTilesInspectorChanged.disposableOn(g))}this.ad(new a.ObjResettingWithEvent(s.particleGlobalControlChanged,()=>{if(!s.particleGlobalControl)return new Qg}))}}get czmViewer(){return this._czmViewer}get viewer(){return this._viewer}get navigationManager(){return this._navigationManager}get envManager(){return this._envManager}};v(nr,"BackGroundResetting",class extends a.Destroyable{constructor(n,o){super(),this._czmViewer=n,this._viewer=o;const s=new Mh;s.material=h.Material.fromType("Image");const r=this._viewer;r.scene.skyBox=s,this.dispose(()=>r.scene.skyBox=r.scene._xbsjOriginSkyBox);{const l=()=>{s.show=this._czmViewer.sceneSkyBoxShow};l(),this.dispose(this._czmViewer.sceneSkyBoxShowChanged.disposableOn(l))}{const l=()=>{s.material.uniforms.color=te(this._czmViewer.xbsjBackgroundColor)};l(),this.dispose(this._czmViewer.xbsjBackgroundColorChanged.disposableOn(l))}{const l=()=>{s.material.uniforms.image=SceneObject.context.getStrFromEnv(this._czmViewer.xbsjBackgroundImageUri)};l(),this.dispose(this._czmViewer.xbsjBackgroundImageUriChanged.disposableOn(l))}}}),v(nr,"LocalSkyBoxResetting",class extends a.Destroyable{constructor(o,s,r){super();v(this,"_skyAtmosphere");this._czmViewer=o,this._viewer=s,this._sources=r,this._skyAtmosphere=new Zs(void 0,this._sources);const l=this._viewer;l.scene.skyAtmosphere=this._skyAtmosphere,this.dispose(()=>l.scene.skyAtmosphere=l.scene._xbsjOriginSkyAtmosphere);{const c=()=>{this._skyAtmosphere.show=this._czmViewer.atmosphere};c(),this.dispose(this._czmViewer.atmosphereChanged.disposableOn(c))}}get skyAtmosphere(){return this._skyAtmosphere}});let sm=nr;function Iz(t,i,e,n,o){var s=h.Cartesian3.subtract(t,e,new h.Cartesian3),r=h.Cartesian3.dot(s,i);if(!(r<=0))return r*Math.tan(n*.5)*2/o}async function Dz(t){const{viewer:i}=t;if(!i)return;const{width:e,height:n}=i.canvas,o=t.quickPickPosition([e*.5,n*.5]);if(!o)return;const s=await o;if(!s)return;const r=h.Cartesian3.fromDegrees(...s);if(!r)return;const l=i.camera.positionWC,c=i.camera.directionWC,u=i.camera.frustum.fovy;if(u===void 0)return;const d=i.canvas.height;return[Iz(r,c,l,u,d),s]}const Rz=h.Ellipsoid.WGS84.maximumRadius*2*Math.PI/512;function Fz(t){return-Math.log2(t/Rz)}var rm=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];function zz(t){const i=t|0;if(i<1||i>1e8)return;let e=-1;for(;i>=rm[++e];);const n=i/rm[e-1]|0;return[n*rm[e-1],n,e]}class Lz extends a.Destroyable{constructor(){super();v(this,"_lengthInPixels",this.disposeVar(a.react(100)));v(this,"_resolution",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInPixels",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInMeters",this.disposeVar(a.react(void 0)));v(this,"_computedLengthInStr",this.disposeVar(a.react(void 0)));{const e=()=>{let n,o;const{lengthInPixels:s,resolution:r}=this;if(s&&r){const l=zz(s*r);if(l){const[c,u,d]=l;o=c,n=c/r}}this._computedLengthInPixels.value=n,this._computedLengthInMeters.value=o};e(),this.dispose(this.lengthInPixelsChanged.disposableOn(e)),this.dispose(this.resolutionChanged.disposableOn(e))}{const e=()=>{const n=this.computedLengthInMeters;if(!n){this._computedLengthInStr.value=void 0;return}this._computedLengthInStr.value=n>1e3?`${n/1e3|0}km`:`${n}m`};e(),this.dispose(this.computedLengthInMetersChanged.disposableOn(e))}}get lengthInPixels(){return this._lengthInPixels.value}set lengthInPixels(e){this._lengthInPixels.value=e}get lengthInPixelsChanged(){return this._lengthInPixels.changed}get resolution(){return this._resolution.value}set resolution(e){this._resolution.value=e}get resolutionChanged(){return this._resolution.changed}get computedLengthInPixels(){return this._computedLengthInPixels.value}get computedLengthInPixelsChanged(){return this._computedLengthInPixels.changed}get computedLengthInMeters(){return this._computedLengthInMeters.value}get computedLengthInMetersChanged(){return this._computedLengthInMeters.changed}get computedLengthInStr(){return this._computedLengthInStr.value}get computedLengthInStrChanged(){return this._computedLengthInStr.changed}}class Oz extends a.Destroyable{constructor(e){super();v(this,"_enabled",this.dv(a.react(!0)));v(this,"_resolution",this.dv(a.react(void 0)));v(this,"_center",this.dv(a.react(void 0)));v(this,"_zoom",this.dv(a.react(void 0)));v(this,"_legend",this.dv(new Lz));this._czmViewer=e;{const n=this.dv(a.createProcessingFromAsyncFunc(async o=>{let s,r,l;await o.promise(a.sleep(1e3));const c=await o.promise(Dz(this._czmViewer));if(c){const[u,d]=c;s=u,r=Fz(u),l=d}this._resolution.value=s,this._zoom.value=r,this._center.value=l}));n.restart();{const o=()=>{this.enabled?n.restart():n.cancel()};o();const s=this.dv(a.createNextAnimateFrameEvent(this._czmViewer.cameraChanged,this.enabledChanged));this.dispose(s.disposableOn(o))}}{const n=()=>{this._legend.resolution=this.resolution};n(),this.dispose(this.resolutionChanged.disposableOn(n))}}get enabled(){return this._enabled.value}set enabled(e){this._enabled.value=e}get enabledChanged(){return this._enabled.changed}get resolution(){return this._resolution.value}set resolution(e){this._resolution.value=e}get resolutionChanged(){return this._resolution.changed}get center(){return this._center.value}get centerChanged(){return this._center.changed}get zoom(){return this._zoom.value}get zoomChanged(){return this._zoom.changed}get legend(){return this._legend}get length(){return(this.legend.computedLengthInMeters??-1)/(this.legend.computedLengthInPixels??1)}}function Nz(t,i){try{const e=h.Ellipsoid.WGS84,n=e.scaleToGeodeticSurface(t);return i=h.Transforms.eastNorthUpToFixedFrame(n,e,i),i}catch{return h.Matrix4.clone(h.Matrix4.IDENTITY,i)}}const{combine:Bz}=h,{ShaderDestination:Ro}=h,R_={name:"FlattenedPipelineStage"};R_.process=function(t,i,e){if(i.xbsjFlattened){const n=t.shaderBuilder;n.addDefine("XBSJ_FLATTERN",void 0,Ro.BOTH),n.addUniform("sampler2D","u_flattenedPolygonTexture",Ro.BOTH),n.addUniform("vec4","u_flattenedBound",Ro.BOTH),n.addUniform("bool","u_flattened",Ro.BOTH),n.addUniform("mat4","u_inverseModelElevationMatrix",Ro.BOTH),n.addUniform("mat4","u_inverseElevationModelMatrix",Ro.BOTH),n.addUniform("bool","u_flattenDiscard",Ro.BOTH);const o={u_flattenedBound:function(){return i.xbsjFlattenedBound??h.Cartesian4.ZERO},u_flattened:function(){return i.xbsjFlattened},u_inverseModelElevationMatrix:function(){const s=e.context.uniformState.inverseModel??h.Matrix4.IDENTITY;return i._uniformElevationInverseModelMatrix=h.Matrix4.multiply(s,i.xbsjElevationMatrix??h.Matrix4.IDENTITY,i._uniformElevationInverseModelMatrix??new h.Matrix4),i._uniformElevationInverseModelMatrix},u_inverseElevationModelMatrix:function(){const s=e.context.uniformState.model??h.Matrix4.IDENTITY;return i._uniformInverseElevationModelMatrix=h.Matrix4.multiply(i.xbsjElevationMatrixInv??h.Matrix4.IDENTITY,s,i._uniformInverseElevationModelMatrix??new h.Matrix4),i._uniformInverseElevationModelMatrix},u_flattenedPolygonTexture:function(){return i.xbsjGetFlattenedTextureFunc?i.xbsjGetFlattenedTextureFunc()??e.context.defaultTexture:e.context.defaultTexture}};t.uniformMap=Bz(o,t.uniformMap)}};function F_(){Object.defineProperties(h.Model.prototype,{xbsjFlattened:{get:function(){return this._xbsjFlattened??!1},set:function(t){t!==this._xbsjFlattened&&this.resetDrawCommands(),this._xbsjFlattened=t}},xbsjElevationMatrix:{get:function(){return this._xbsjElevationMatrix},set:function(t){t!==this._xbsjElevationMatrix&&this.resetDrawCommands(),this._xbsjElevationMatrix=t,this._xbsjElevationMatrixInv=this._xbsjElevationMatrix&&h.Matrix4.inverseTransformation(this._xbsjElevationMatrix,new h.Matrix4)}},xbsjElevationMatrixInv:{get:function(){return this._xbsjElevationMatrixInv}},xbsjFlattenedBound:{get:function(){return this._xbsjFlattenedBound},set:function(t){t!==this._xbsjFlattenedBound&&this.resetDrawCommands(),this._xbsjFlattenedBound=t}},xbsjGetFlattenedTextureFunc:{get:function(){return this._xbsjGetFlattenedTextureFunc},set:function(t){t!==this._xbsjGetFlattenedTextureFunc&&this.resetDrawCommands(),this._xbsjGetFlattenedTextureFunc=t}}})}function z_(){Object.defineProperties(h.Cesium3DTileset.prototype,{xbsjFlattened:{get:function(){return this._xbsjFlattened??!1},set:function(t){this._xbsjFlattened=t}},xbsjElevationMatrix:{get:function(){return this._xbsjElevationMatrix},set:function(t){this._xbsjElevationMatrix=t}},xbsjFlattenedBound:{get:function(){return this._xbsjFlattenedBound},set:function(t){this._xbsjFlattenedBound=t}},xbsjGetFlattenedTextureFunc:{get:function(){return this._xbsjGetFlattenedTextureFunc},set:function(t){this._xbsjGetFlattenedTextureFunc=t}}})}function L_(){const t=h.Model3DTileContent.prototype.update;h.Model3DTileContent.prototype.update=function(i,e,...n){const o=this._model;return o.xbsjFlattened=i.xbsjFlattened,o.xbsjElevationMatrix=i.xbsjElevationMatrix,o.xbsjFlattenedBound=i.xbsjFlattenedBound,o.xbsjGetFlattenedTextureFunc=i.xbsjGetFlattenedTextureFunc,t.call(this,i,e,...n)}}function O_(){const t=h.ModelSceneGraph.prototype.configurePipeline;h.ModelSceneGraph.prototype.configurePipeline=function(i,...e){const n=t.call(this,i,...e),o=this._model,s=this.modelPipelineStages;return o.xbsjFlattened&&s.push(R_),n}}F_(),z_(),L_(),O_();const Vz=()=>({createCesiumViewerFuncStr:void 0,flashLighting:void 0,resolutionScale:void 0,msaaSamples:void 0,shadows:!1,sceneSplitPosition:void 0,sceneGlobeShadows:void 0,sceneGlobeTerrainExaggeration:1,sceneGlobeTerrainExaggerationRelativeHeight:0,sceneGlobeVerticalExaggeration:1,sceneGlobeVerticalExaggerationRelativeHeight:0,sceneGlobeBackFaceCulling:!0,sceneGlobeShowSkirts:!0,sceneGlobeShowWaterEffect:!0,sceneGlobeBaseColor:a.reactArray([0,0,1,0]),sceneGlobeCartographicLimitRectangle:a.reactArray([-180,-90,180,90]),sceneGlobeClippingPlanes:a.reactJson(void 0),sceneGlobeClippingPlanesId:"",sceneGlobeClippingPolygons:a.reactJsonWithUndefined(void 0),sceneGlobeClippingPolygonsId:a.reactArray([]),sceneGlobeUndergroundColor:a.reactArrayWithUndefined(void 0),sceneGlobeUndergroundColorAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyEnabled:void 0,sceneGlobeTranslucencyBackFaceAlpha:void 0,sceneGlobeTranslucencyBackFaceAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyFrontFaceAlpha:void 0,sceneGlobeTranslucencyFrontFaceAlphaByDistance:a.reactArrayWithUndefined(void 0),sceneGlobeTranslucencyRectangle:a.reactArrayWithUndefined(void 0),sun:void 0,sceneSunGlowFactor:void 0,moon:void 0,sceneMoonTextureUrl:void 0,sceneMoonOnlySunLighting:void 0,sceneSkyBoxShow:!0,sceneSkyBoxSources:a.reactJson(De.defaults.sceneSkyBoxSources),xbsjUseBackground:!1,xbsjBackgroundImageUri:"",xbsjBackgroundColor:a.reactArray([1,1,1,1]),xbsjLocalBoxSources:a.reactJsonWithUndefined(void 0),sceneBackgroundColor:a.reactArray([0,0,0,0]),sceneFogEnabled:void 0,sceneFogDensity:void 0,sceneFogScreenSpaceErrorFactor:void 0,sceneFogMinimumBrightness:void 0,sceneSsccEnableInputs:void 0,sceneSsccEnableCollisionDetection:void 0,sceneSsccZoomFactor:void 0,scenePpsfxaaEnabled:void 0,scenePpsAmbientOcclusionEnabled:!1,scenePpsAmbientOcclusionAmbientOcclusionOnly:!1,scenePpsAmbientOcclusionIntensity:3,scenePpsAmbientOcclusionBias:.1,scenePpsAmbientOcclusionLengthCap:.03,scenePpsAmbientOcclusionStepSize:1,scenePpsAmbientOcclusionBlurStepSize:.86,scenePpsBloomEnabled:!1,scenePpsBloomGlowOnly:!1,scenePpsBloomContrast:128,scenePpsBloomBrightness:-.3,scenePpsBloomDelta:1,scenePpsBloomSigma:3.78,scenePpsBloomStepSize:5,sceneDebugShowFramesPerSecond:void 0,sceneDebugShowCommands:void 0,sceneDebugShowFrustums:void 0,sceneDebugShowFrustumPlanes:void 0,sceneDebugShowDepthFrustum:void 0,showCesiumInspector:void 0,cesiumInspectorWireframe:void 0,showCesium3DTilesInspector:void 0,particleGlobalControl:!1}),Uz=`
|
|
2173
2173
|
#### 示例代码1
|
|
2174
2174
|
\`\`\`
|
|
2175
2175
|
async function initCesiumViewer(container, czmViewer) {
|
|
@@ -2255,10 +2255,10 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
2255
2255
|
`;function Gz(){const t="https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7",e=` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
|
|
2256
2256
|
github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
|
|
2257
2257
|
gitee地址:${t}
|
|
2258
|
-
`;console.log(e);const n=window.prompt(e,t);n&&window.open(n,"_blank")}const ot=class ot extends a.ESViewer{constructor(e){super(e);v(this,"_disabledInputStack",this.disposeVar(a.react(0)));v(this,"_viewer",this.dv(a.react(void 0)));v(this,"_viewerInstance");v(this,"_viewerLegend");v(this,"pickCustomAttachedInfo");v(this,"_fps",this.dv(a.react(0)));v(this,"_notSupportEditingCount",this.disposeVar(a.react(0)));v(this,"_editingSystem",xh);v(this,"_moveObjectsProcess",this.ad(KC()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new PR(this)),this.ad(new bR(this)),this.dv(new a.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new AR(this)})),this._viewerLegend=this.dv(new Oz(this)),this._viewerInstance=this.dv(new a.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new sm(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=te([1,1,1,1]))}));const n=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new a.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new xF(this.subContainer,this,o=>this._viewer.value=o,n.options)}))}get disabledInputStack(){return this._disabledInputStack.value}get disabledInputStackChanged(){return this._disabledInputStack.changed}incrementDisabledInputStack(){++this._disabledInputStack.value}decrementDisabledInputStack(){--this._disabledInputStack.value}get viewer(){return this._viewer.value}get extensions(){return this.viewer&&Xt(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,n,o){if(!this.extensions)return;const{pickingManager:s}=this.extensions;return await s.pick(e,void 0,n)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:n}=this.extensions;return await n.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:n}=this.extensions;return await n.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:n}=this;if(!n)return;const o=h.Cartographic.fromDegrees(e[0],e[1],e[2],ot.getHeightsScartchCarto);return n.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Bt(e),rotation:qo(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let s=o.positionWC;const r=h.Cartesian3.fromDegrees(...e),l=h.Cartesian3.distance(o.positionWC,r),c=h.Cartesian3.subtract(r,s,new h.Cartesian3);h.Cartesian3.normalize(c,c);const u=h.Transforms.rotationMatrixFromPositionVelocity(s,c,h.Ellipsoid.WGS84),d=h.Matrix4.fromRotationTranslation(u,s);var p=h.Transforms.eastNorthUpToFixedFrame(h.Matrix4.getTranslation(d,new h.Cartesian3),h.Ellipsoid.WGS84,new h.Matrix4),f=h.Matrix4.multiply(h.Matrix4.inverse(p,new h.Matrix4),d,new h.Matrix4),m=h.Matrix4.getMatrix3(f,new h.Matrix3),g=h.Quaternion.fromRotationMatrix(m),y=h.HeadingPitchRoll.fromQuaternion(g);const _=qo(o);return{distance:l,heading:h.Math.toDegrees(y.heading)+90,pitch:h.Math.toDegrees(y.pitch),flyDuration:1,hDelta:-(_[0]-(h.Math.toDegrees(y.heading)+90)),pDelta:_[1]-h.Math.toDegrees(y.pitch)}}flyIn(e,n,o,s="default"){var c;if(!n)return;n[0]=-n[0];const r={position:e,rotation:n,duration:(o??1)*1e3},l=(c=this.viewer)==null?void 0:c.camera;return l&&dr(l,r)}flyTo(e,n,o="default"){var m;const{distance:s,heading:r,pitch:l,flyDuration:c,hDelta:u,pDelta:d}=e,p={position:n,viewDistance:s,rotation:[r,l,0],duration:c*1e3,hdelta:u,pdelta:d},f=(m=this.viewer)==null?void 0:m.camera;return f&&dr(f,p)}flyToBoundingSphere(e,n,o=1){var p;const s=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],r=a.getGeoBoundingSphereFromPositions(s);if(!r)return;const{center:l,radius:c}=r,u={position:l,viewDistance:n??c,rotation:[0,-90,0],duration:o*1e3},d=(p=this.viewer)==null?void 0:p.camera;return d&&dr(d,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Bt(e),rotation:qo(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,n=4.2,o=1.6){var s,r;(r=(s=this._viewerInstance)==null?void 0:s.obj)==null||r.navigationManager.changeToWalk(e,n,o),this._navigationMode.value="Walk"}changeToMap(){var e,n;(n=(e=this._viewerInstance)==null?void 0:e.obj)==null||n.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,n,o){var s,r;(r=(s=this._viewerInstance)==null?void 0:s.obj)==null||r.navigationManager.changeToRotateGlobe(e,n,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,n,o,s,r,l){var c,u;(u=(c=this._viewerInstance)==null?void 0:c.obj)==null||u.navigationManager.changeToLine(e,n,o,s,r,l),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,n,o,s,r){var l,c;(c=(l=this._viewerInstance)==null?void 0:l.obj)==null||c.navigationManager.changeToRotatePoint(e,n,o,s,r),this._navigationMode.value="RotatePoint"}changeToFollow(e,n,o,s,r){var l,c;(c=(l=this._viewerInstance)==null?void 0:l.obj)==null||c.navigationManager.changeToFollow(e,n,o,s,r),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){const e=window.g_XE3CopyRights??{};return e.cesium=h.VERSION,e}async getHeightByLonLat(e,n,o){if(!this.viewer)return null;const s=h.Cartographic.fromDegrees(e,n,void 0,ot.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(s)??null}async getHeightsByLonLats(e,n){const o=e.map(r=>this.getHeightByLonLat(...r));return await Promise.all(o)}async capture(e,n){if(this.viewer)return await Qm(this.viewer.scene,e,n)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const n=this.viewer.scene.cartesianToCanvasCoordinates(Be(e));if(n)return[n.x,n.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,n,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const s=e.components.main??e;s&&n!=null&&(s.editingID=`${o.callSource}_${a.createGuid()}`,this._editingSystem.create(this,s,n,o.useKeyToSwitch))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const n=[],o=a.createGuid();for(let s=0;s<e.length;s++){const r=e[s],l=r.components.main??r;l.editingID=o,l&&n.push(l)}this._moveObjectsProcess.restart(void 0,this,n,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=ot.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!ot.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=ot.latestDefaultAccessToken}positionsToLocalPositions(e,n){return Et(e,n)}localPositionsToPositions(e,n){return fn(e,n)}isPointVisible(e){if(!this.viewer)return!1;const n=Be(e),o=new h.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(n))return!1;const s=this.viewer.scene.cartesianToCanvasCoordinates(n);return!(!s||s.x<0||s.y<0)}getESProperties(){const e={...super.getESProperties()},n=ot.defaults;return{...e,more:[...e.more,new a.GroupProperty([],"通用","通用"),new a.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",Wz,Uz,!0),new a.FunctionProperty([],()=>ot.getCesiumIonToken(),[],"获取官方token"),new a.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new a.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new a.BooleanProperty([this,"flashLighting"],"头顶灯",n.flashLighting,!0),new a.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",n.particleGlobalControl,!0),new a.GroupProperty([],"Viewer","Viewer"),new a.NumberProperty([this,"resolutionScale"],"分辨率比率",n.resolutionScale,!0),new a.NumberProperty([this,"msaaSamples"],"msaaSamples",n.msaaSamples,!0),new a.BooleanProperty([this,"shadows"]),new a.GroupProperty([],"比例尺","比例尺(Legend)"),new a.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new a.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new a.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new a.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new a.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new a.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new a.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new a.GroupProperty([],"场景","场景(Scene)"),new a.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",n.sceneSplitPosition,!0),new a.GroupProperty([],"Globe","Globe"),new a.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",n.sceneGlobeShadows,!0),new a.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new a.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new a.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new a.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new a.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new a.BooleanProperty([this,"sceneGlobeShowSkirts"]),new a.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new a.ColorProperty([this,"sceneGlobeBaseColor"]),new a.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new a.JsonProperty([this,"sceneGlobeClippingPlanes"]),new a.StringProperty([this,"sceneGlobeClippingPlanesId"]),new a.JsonProperty([this,"sceneGlobeClippingPolygons"]),new a.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new a.GroupProperty([],"underground","underground"),new a.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",n.sceneGlobeUndergroundColor,!0),new a.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",n.sceneGlobeUndergroundColorAlphaByDistance,!0),new a.GroupProperty([],"Translucency","Translucency"),new a.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",n.sceneGlobeTranslucencyEnabled,!0),new a.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",n.sceneGlobeTranslucencyBackFaceAlpha,!0),new a.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",n.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new a.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",n.sceneGlobeTranslucencyFrontFaceAlpha,!0),new a.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",n.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new a.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",n.sceneGlobeTranslucencyRectangle,!0),new a.GroupProperty([],"Sun","Sun"),new a.BooleanProperty([this,"sun"],"sun",n.sun,!0),new a.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",n.sceneSunGlowFactor,!0),new a.GroupProperty([],"Moon","Moon"),new a.BooleanProperty([this,"moon"],"moon",n.moon,!0),new a.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",n.sceneMoonTextureUrl,!0),new a.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",n.sceneMoonOnlySunLighting,!0),new a.GroupProperty([],"SkyBox","SkyBox"),new a.BooleanProperty([this,"sceneSkyBoxShow"]),new a.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",n.sceneSkyBoxSources,void 0,!0),new a.GroupProperty([],"Background","Background"),new a.BooleanProperty([this,"xbsjUseBackground"]),new a.StringProperty([this,"xbsjBackgroundImageUri"]),new a.ColorProperty([this,"xbsjBackgroundColor"]),new a.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new a.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",n.xbsjLocalBoxSources,void 0,!0),new a.ColorProperty([this,"sceneBackgroundColor"]),new a.GroupProperty([],"Fog","Fog"),new a.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",n.sceneFogEnabled,!0),new a.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",n.sceneFogDensity,!0),new a.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",n.sceneFogScreenSpaceErrorFactor,!0),new a.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",n.sceneFogMinimumBrightness,!0),new a.GroupProperty([],"Sscc","Sscc"),new a.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",n.sceneSsccEnableInputs,!0),new a.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",n.sceneSsccEnableCollisionDetection,!0),new a.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",n.sceneSsccZoomFactor,!0),new a.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new a.GroupProperty([],"后处理","后处理"),new a.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",n.scenePpsfxaaEnabled,!0),new a.GroupProperty([],"环境遮蔽","环境遮蔽"),new a.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new a.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new a.GroupProperty([],"Bloom","Bloom"),new a.BooleanProperty([this,"scenePpsBloomEnabled"]),new a.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new a.NumberProperty([this,"scenePpsBloomContrast"]),new a.NumberProperty([this,"scenePpsBloomBrightness"]),new a.NumberProperty([this,"scenePpsBloomDelta"]),new a.NumberProperty([this,"scenePpsBloomSigma"]),new a.NumberProperty([this,"scenePpsBloomStepSize"]),new a.GroupProperty([],"调试","调试"),new a.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",n.sceneDebugShowFramesPerSecond,!0),new a.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",n.sceneDebugShowCommands,!0),new a.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",n.sceneDebugShowFrustums,!0),new a.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",n.sceneDebugShowFrustumPlanes,!0),new a.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",n.sceneDebugShowDepthFrustum,!0),new a.GroupProperty([],"Inspector","Inspector"),new a.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",n.showCesiumInspector,!0),new a.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",n.cesiumInspectorWireframe,!0),new a.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",n.showCesium3DTilesInspector,!0)]}}};v(ot,"type",ot.register("ESCesiumViewer",ot)),v(ot,"getCesiumIonToken",Gz),v(ot,"currentDefaultAccessToken",h.Ion.defaultAccessToken),v(ot,"latestDefaultAccessToken"),v(ot,"ObjectsToExcludeWrapper",ER),v(ot,"defaults",{...a.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,sceneGlobeShadows:"RECEIVE_ONLY",sceneGlobeUndergroundColor:[0,0,0,1],sceneGlobeUndergroundColorAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyEnabled:!1,sceneGlobeTranslucencyBackFaceAlpha:1,sceneGlobeTranslucencyBackFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyFrontFaceAlpha:1,sceneGlobeTranslucencyFrontFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyRectangle:[-3.141592653589793,-1.5707963267948966,3.141592653589793,1.5707963267948966].map(e=>180*e/Math.PI),sun:!0,sceneSunGlowFactor:1,moon:!0,sceneMoonTextureUrl:h.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mz.jpg")},xbsjLocalBoxSources:{positiveX:"${earthsdk3-assets-script-dir}/assets/img/skybox/east.jpg",negativeX:"${earthsdk3-assets-script-dir}/assets/img/skybox/west.jpg",positiveY:"${earthsdk3-assets-script-dir}/assets/img/skybox/bottom.jpg",negativeY:"${earthsdk3-assets-script-dir}/assets/img/skybox/top.jpg",positiveZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/north.jpg",negativeZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/south.jpg"},sceneFogEnabled:!0,sceneFogDensity:2e-4,sceneFogScreenSpaceErrorFactor:2,sceneFogMinimumBrightness:.03,sceneSsccEnableInputs:!0,sceneSsccEnableCollisionDetection:!0,sceneSsccZoomFactor:5,scenePpsfxaaEnabled:!0,sceneDebugShowFramesPerSecond:!1,sceneDebugShowCommands:!1,sceneDebugShowFrustums:!1,sceneDebugShowFrustumPlanes:!1,sceneDebugShowDepthFrustum:1,showCesiumInspector:!1,cesiumInspectorWireframe:!1,showCesium3DTilesInspector:!1,particleGlobalControl:!1}),v(ot,"getHeightsScartchCarto",new h.Cartographic);let De=ot;(t=>{t.createDefaultProps=()=>({...a.ESViewer.createDefaultProps(),...Vz()})})(De||(De={})),a.extendClassProps(De.prototype,De.createDefaultProps),I.copyright=void 0;try{const t="earthsdk3-cesium",i="3.5.0-beta.3",e="2025-09-24T02:01:07.000Z",n="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",s="62920530555151f915731e05be61453cd9598271",l=((Date.now()-1758679267e3)/36e5).toFixed(1),c=`%c🌏 ${t}%c ${i}.${s.slice(0,8)}.${e} (距今${l}个小时)
|
|
2258
|
+
`;console.log(e);const n=window.prompt(e,t);n&&window.open(n,"_blank")}const ot=class ot extends a.ESViewer{constructor(e){super(e);v(this,"_disabledInputStack",this.disposeVar(a.react(0)));v(this,"_viewer",this.dv(a.react(void 0)));v(this,"_viewerInstance");v(this,"_viewerLegend");v(this,"pickCustomAttachedInfo");v(this,"_fps",this.dv(a.react(0)));v(this,"_notSupportEditingCount",this.disposeVar(a.react(0)));v(this,"_editingSystem",xh);v(this,"_moveObjectsProcess",this.ad(KC()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new PR(this)),this.ad(new bR(this)),this.dv(new a.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new AR(this)})),this._viewerLegend=this.dv(new Oz(this)),this._viewerInstance=this.dv(new a.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new sm(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=te([1,1,1,1]))}));const n=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new a.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new xF(this.subContainer,this,o=>this._viewer.value=o,n.options)}))}get disabledInputStack(){return this._disabledInputStack.value}get disabledInputStackChanged(){return this._disabledInputStack.changed}incrementDisabledInputStack(){++this._disabledInputStack.value}decrementDisabledInputStack(){--this._disabledInputStack.value}get viewer(){return this._viewer.value}get extensions(){return this.viewer&&Xt(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,n,o){if(!this.extensions)return;const{pickingManager:s}=this.extensions;return await s.pick(e,void 0,n)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:n}=this.extensions;return await n.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:n}=this.extensions;return await n.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:n}=this;if(!n)return;const o=h.Cartographic.fromDegrees(e[0],e[1],e[2],ot.getHeightsScartchCarto);return n.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Bt(e),rotation:qo(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let s=o.positionWC;const r=h.Cartesian3.fromDegrees(...e),l=h.Cartesian3.distance(o.positionWC,r),c=h.Cartesian3.subtract(r,s,new h.Cartesian3);h.Cartesian3.normalize(c,c);const u=h.Transforms.rotationMatrixFromPositionVelocity(s,c,h.Ellipsoid.WGS84),d=h.Matrix4.fromRotationTranslation(u,s);var p=h.Transforms.eastNorthUpToFixedFrame(h.Matrix4.getTranslation(d,new h.Cartesian3),h.Ellipsoid.WGS84,new h.Matrix4),f=h.Matrix4.multiply(h.Matrix4.inverse(p,new h.Matrix4),d,new h.Matrix4),m=h.Matrix4.getMatrix3(f,new h.Matrix3),g=h.Quaternion.fromRotationMatrix(m),y=h.HeadingPitchRoll.fromQuaternion(g);const _=qo(o);return{distance:l,heading:h.Math.toDegrees(y.heading)+90,pitch:h.Math.toDegrees(y.pitch),flyDuration:1,hDelta:-(_[0]-(h.Math.toDegrees(y.heading)+90)),pDelta:_[1]-h.Math.toDegrees(y.pitch)}}flyIn(e,n,o,s="default"){var c;if(!n)return;n[0]=-n[0];const r={position:e,rotation:n,duration:(o??1)*1e3},l=(c=this.viewer)==null?void 0:c.camera;return l&&dr(l,r)}flyTo(e,n,o="default"){var m;const{distance:s,heading:r,pitch:l,flyDuration:c,hDelta:u,pDelta:d}=e,p={position:n,viewDistance:s,rotation:[r,l,0],duration:c*1e3,hdelta:u,pdelta:d},f=(m=this.viewer)==null?void 0:m.camera;return f&&dr(f,p)}flyToBoundingSphere(e,n,o=1){var p;const s=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],r=a.getGeoBoundingSphereFromPositions(s);if(!r)return;const{center:l,radius:c}=r,u={position:l,viewDistance:n??c,rotation:[0,-90,0],duration:o*1e3},d=(p=this.viewer)==null?void 0:p.camera;return d&&dr(d,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Bt(e),rotation:qo(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,n=4.2,o=1.6){var s,r;(r=(s=this._viewerInstance)==null?void 0:s.obj)==null||r.navigationManager.changeToWalk(e,n,o),this._navigationMode.value="Walk"}changeToMap(){var e,n;(n=(e=this._viewerInstance)==null?void 0:e.obj)==null||n.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,n,o){var s,r;(r=(s=this._viewerInstance)==null?void 0:s.obj)==null||r.navigationManager.changeToRotateGlobe(e,n,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,n,o,s,r,l){var c,u;(u=(c=this._viewerInstance)==null?void 0:c.obj)==null||u.navigationManager.changeToLine(e,n,o,s,r,l),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,n,o,s,r){var l,c;(c=(l=this._viewerInstance)==null?void 0:l.obj)==null||c.navigationManager.changeToRotatePoint(e,n,o,s,r),this._navigationMode.value="RotatePoint"}changeToFollow(e,n,o,s,r){var l,c;(c=(l=this._viewerInstance)==null?void 0:l.obj)==null||c.navigationManager.changeToFollow(e,n,o,s,r),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){const e=window.g_XE3CopyRights??{};return e.cesium=h.VERSION,e}async getHeightByLonLat(e,n,o){if(!this.viewer)return null;const s=h.Cartographic.fromDegrees(e,n,void 0,ot.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(s)??null}async getHeightsByLonLats(e,n){const o=e.map(r=>this.getHeightByLonLat(...r));return await Promise.all(o)}async capture(e,n){if(this.viewer)return await Qm(this.viewer.scene,e,n)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const n=this.viewer.scene.cartesianToCanvasCoordinates(Be(e));if(n)return[n.x,n.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,n,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const s=e.components.main??e;s&&n!=null&&(s.editingID=`${o.callSource}_${a.createGuid()}`,this._editingSystem.create(this,s,n,o.useKeyToSwitch))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const n=[],o=a.createGuid();for(let s=0;s<e.length;s++){const r=e[s],l=r.components.main??r;l.editingID=o,l&&n.push(l)}this._moveObjectsProcess.restart(void 0,this,n,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=ot.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!ot.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=ot.latestDefaultAccessToken}positionsToLocalPositions(e,n){return Et(e,n)}localPositionsToPositions(e,n){return fn(e,n)}isPointVisible(e){if(!this.viewer)return!1;const n=Be(e),o=new h.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(n))return!1;const s=this.viewer.scene.cartesianToCanvasCoordinates(n);return!(!s||s.x<0||s.y<0)}getESProperties(){const e={...super.getESProperties()},n=ot.defaults;return{...e,more:[...e.more,new a.GroupProperty([],"通用","通用"),new a.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",Wz,Uz,!0),new a.FunctionProperty([],()=>ot.getCesiumIonToken(),[],"获取官方token"),new a.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new a.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new a.BooleanProperty([this,"flashLighting"],"头顶灯",n.flashLighting,!0),new a.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",n.particleGlobalControl,!0),new a.GroupProperty([],"Viewer","Viewer"),new a.NumberProperty([this,"resolutionScale"],"分辨率比率",n.resolutionScale,!0),new a.NumberProperty([this,"msaaSamples"],"msaaSamples",n.msaaSamples,!0),new a.BooleanProperty([this,"shadows"]),new a.GroupProperty([],"比例尺","比例尺(Legend)"),new a.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new a.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new a.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new a.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new a.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new a.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new a.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new a.GroupProperty([],"场景","场景(Scene)"),new a.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",n.sceneSplitPosition,!0),new a.GroupProperty([],"Globe","Globe"),new a.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",n.sceneGlobeShadows,!0),new a.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new a.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new a.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new a.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new a.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new a.BooleanProperty([this,"sceneGlobeShowSkirts"]),new a.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new a.ColorProperty([this,"sceneGlobeBaseColor"]),new a.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new a.JsonProperty([this,"sceneGlobeClippingPlanes"]),new a.StringProperty([this,"sceneGlobeClippingPlanesId"]),new a.JsonProperty([this,"sceneGlobeClippingPolygons"]),new a.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new a.GroupProperty([],"underground","underground"),new a.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",n.sceneGlobeUndergroundColor,!0),new a.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",n.sceneGlobeUndergroundColorAlphaByDistance,!0),new a.GroupProperty([],"Translucency","Translucency"),new a.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",n.sceneGlobeTranslucencyEnabled,!0),new a.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",n.sceneGlobeTranslucencyBackFaceAlpha,!0),new a.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",n.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new a.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",n.sceneGlobeTranslucencyFrontFaceAlpha,!0),new a.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",n.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new a.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",n.sceneGlobeTranslucencyRectangle,!0),new a.GroupProperty([],"Sun","Sun"),new a.BooleanProperty([this,"sun"],"sun",n.sun,!0),new a.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",n.sceneSunGlowFactor,!0),new a.GroupProperty([],"Moon","Moon"),new a.BooleanProperty([this,"moon"],"moon",n.moon,!0),new a.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",n.sceneMoonTextureUrl,!0),new a.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",n.sceneMoonOnlySunLighting,!0),new a.GroupProperty([],"SkyBox","SkyBox"),new a.BooleanProperty([this,"sceneSkyBoxShow"]),new a.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",n.sceneSkyBoxSources,void 0,!0),new a.GroupProperty([],"Background","Background"),new a.BooleanProperty([this,"xbsjUseBackground"]),new a.StringProperty([this,"xbsjBackgroundImageUri"]),new a.ColorProperty([this,"xbsjBackgroundColor"]),new a.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new a.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",n.xbsjLocalBoxSources,void 0,!0),new a.ColorProperty([this,"sceneBackgroundColor"]),new a.GroupProperty([],"Fog","Fog"),new a.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",n.sceneFogEnabled,!0),new a.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",n.sceneFogDensity,!0),new a.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",n.sceneFogScreenSpaceErrorFactor,!0),new a.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",n.sceneFogMinimumBrightness,!0),new a.GroupProperty([],"Sscc","Sscc"),new a.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",n.sceneSsccEnableInputs,!0),new a.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",n.sceneSsccEnableCollisionDetection,!0),new a.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",n.sceneSsccZoomFactor,!0),new a.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new a.GroupProperty([],"后处理","后处理"),new a.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",n.scenePpsfxaaEnabled,!0),new a.GroupProperty([],"环境遮蔽","环境遮蔽"),new a.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new a.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new a.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new a.GroupProperty([],"Bloom","Bloom"),new a.BooleanProperty([this,"scenePpsBloomEnabled"]),new a.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new a.NumberProperty([this,"scenePpsBloomContrast"]),new a.NumberProperty([this,"scenePpsBloomBrightness"]),new a.NumberProperty([this,"scenePpsBloomDelta"]),new a.NumberProperty([this,"scenePpsBloomSigma"]),new a.NumberProperty([this,"scenePpsBloomStepSize"]),new a.GroupProperty([],"调试","调试"),new a.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",n.sceneDebugShowFramesPerSecond,!0),new a.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",n.sceneDebugShowCommands,!0),new a.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",n.sceneDebugShowFrustums,!0),new a.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",n.sceneDebugShowFrustumPlanes,!0),new a.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",n.sceneDebugShowDepthFrustum,!0),new a.GroupProperty([],"Inspector","Inspector"),new a.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",n.showCesiumInspector,!0),new a.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",n.cesiumInspectorWireframe,!0),new a.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",n.showCesium3DTilesInspector,!0)]}}};v(ot,"type",ot.register("ESCesiumViewer",ot)),v(ot,"getCesiumIonToken",Gz),v(ot,"currentDefaultAccessToken",h.Ion.defaultAccessToken),v(ot,"latestDefaultAccessToken"),v(ot,"ObjectsToExcludeWrapper",ER),v(ot,"defaults",{...a.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,sceneGlobeShadows:"RECEIVE_ONLY",sceneGlobeUndergroundColor:[0,0,0,1],sceneGlobeUndergroundColorAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyEnabled:!1,sceneGlobeTranslucencyBackFaceAlpha:1,sceneGlobeTranslucencyBackFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyFrontFaceAlpha:1,sceneGlobeTranslucencyFrontFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyRectangle:[-3.141592653589793,-1.5707963267948966,3.141592653589793,1.5707963267948966].map(e=>180*e/Math.PI),sun:!0,sceneSunGlowFactor:1,moon:!0,sceneMoonTextureUrl:h.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:h.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mz.jpg")},xbsjLocalBoxSources:{positiveX:"${earthsdk3-assets-script-dir}/assets/img/skybox/east.jpg",negativeX:"${earthsdk3-assets-script-dir}/assets/img/skybox/west.jpg",positiveY:"${earthsdk3-assets-script-dir}/assets/img/skybox/bottom.jpg",negativeY:"${earthsdk3-assets-script-dir}/assets/img/skybox/top.jpg",positiveZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/north.jpg",negativeZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/south.jpg"},sceneFogEnabled:!0,sceneFogDensity:2e-4,sceneFogScreenSpaceErrorFactor:2,sceneFogMinimumBrightness:.03,sceneSsccEnableInputs:!0,sceneSsccEnableCollisionDetection:!0,sceneSsccZoomFactor:5,scenePpsfxaaEnabled:!0,sceneDebugShowFramesPerSecond:!1,sceneDebugShowCommands:!1,sceneDebugShowFrustums:!1,sceneDebugShowFrustumPlanes:!1,sceneDebugShowDepthFrustum:1,showCesiumInspector:!1,cesiumInspectorWireframe:!1,showCesium3DTilesInspector:!1,particleGlobalControl:!1}),v(ot,"getHeightsScartchCarto",new h.Cartographic);let De=ot;(t=>{t.createDefaultProps=()=>({...a.ESViewer.createDefaultProps(),...Vz()})})(De||(De={})),a.extendClassProps(De.prototype,De.createDefaultProps),I.copyright=void 0;try{const t="earthsdk3-cesium",i="3.5.0-beta.4",e="2025-09-24T06:57:53.000Z",n="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",s="68cd621b33e0c85c47fbbd4116bf77c0f96320ec",l=((Date.now()-1758697073e3)/36e5).toFixed(1),c=`%c🌏 ${t}%c ${i}.${s.slice(0,8)}.${e} (距今${l}个小时)
|
|
2259
2259
|
%c${o?o+`
|
|
2260
2260
|
`:""}当前网站正在使用${t},此软件版权归${n}所有
|
|
2261
|
-
`;I.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","
|
|
2261
|
+
`;I.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","68cd621b33e0c85c47fbbd4116bf77c0f96320ec")},get info(){return c},get date(){return"2025-09-24T06:57:53.000Z"},get author(){return"suplyang"},get version(){return"3.5.0-beta.4"},get name(){return"earthsdk3-cesium"},get commitId(){return"68cd621b33e0c85c47fbbd4116bf77c0f96320ec"},print(){console.info(this.info,`
|
|
2262
2262
|
font-size: 18px;
|
|
2263
2263
|
font-weight: 1000;
|
|
2264
2264
|
line-height: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerInstance.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/ViewerInstance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAsC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,cAAe,SAAQ,WAAW;IA4E/B,OAAO,CAAC,UAAU;IAAkB,OAAO,CAAC,OAAO;IA3E/D,IAAI,SAAS,mBAA8B;IAC3C,IAAI,MAAM,kBAA2B;IAGrC,OAAO,CAAC,kBAAkB,CAAoB;IAC9C,IAAI,iBAAiB,sBAAsC;IAE3D,OAAO,CAAC,WAAW,CAAa;IAChC,IAAI,UAAU,eAA+B;IAG7C,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAsC9C;IAED,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAsBhD;gBAEmB,UAAU,EAAE,cAAc,EAAU,OAAO,EAAE,MAAM,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"ViewerInstance.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/ViewerInstance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAsC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,cAAe,SAAQ,WAAW;IA4E/B,OAAO,CAAC,UAAU;IAAkB,OAAO,CAAC,OAAO;IA3E/D,IAAI,SAAS,mBAA8B;IAC3C,IAAI,MAAM,kBAA2B;IAGrC,OAAO,CAAC,kBAAkB,CAAoB;IAC9C,IAAI,iBAAiB,sBAAsC;IAE3D,OAAO,CAAC,WAAW,CAAa;IAChC,IAAI,UAAU,eAA+B;IAG7C,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAsC9C;IAED,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAsBhD;gBAEmB,UAAU,EAAE,cAAc,EAAU,OAAO,EAAE,MAAM,CAAC,MAAM;IA6T9E,OAAO,CAAC,IAAI,CAA4F;CAI3G"}
|