earthsdk3-cesium 3.4.0-beta.6 → 3.4.0-beta.7

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.
@@ -3197,7 +3197,7 @@ ${eC}
3197
3197
  </div>
3198
3198
  </div>
3199
3199
  </div>
3200
- `,J5=async(t,n)=>{const e=(n==null?void 0:n.fontSize)??V.ESPoi2D.defaults.style.fontSize,i=(n==null?void 0:n.image)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/anchor.png",o=(n==null?void 0:n.imageSize)??V.ESPoi2D.defaults.style.imageSize,r=(n==null?void 0:n.text)??V.ESPoi2D.defaults.style.text,s=(n==null?void 0:n.textBackground)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/textBox_01.png",a=(n==null?void 0:n.textBackgroundColor)??V.ESPoi2D.defaults.style.textBackgroundColor,l=(n==null?void 0:n.textBackgroundSize)??V.ESPoi2D.defaults.style.textBackgroundSize,u=(n==null?void 0:n.textColor)??V.ESPoi2D.defaults.style.textColor,h=(n==null?void 0:n.textOffset)??V.ESPoi2D.defaults.style.textOffset;let c=Y5;c=c.replace(/{{CustomContainer}}/g,`ESPoi2DCustomContainer${t}`),c=c.replace(/{{CustomImage}}/g,`ESPoi2DCustomImage${t}`),c=c.replace(/{{CustomTextContainer}}/g,`ESPoi2DCustomTextContainer${t}`),c=c.replace(/{{FONT_SIZE}}/g,e+"px"),c=c.replace(/{{IMAGE_SRC}}/g,V.ESSceneObject.context.getStrFromEnv(i)),c=c.replace(/{{IMAGE_WIDTH}}/g,o[0]+"px"),c=c.replace(/{{IMAGE_HEIGHT}}/g,o[1]+"px"),c=c.replace(/{{TEXT}}/g,r),c=c.replace(/{{TEXT_BACKGROUND}}/g,V.ESSceneObject.context.getStrFromEnv(s)),c=c.replace(/{{TEXT_BACKGROUND_COLOR}}/g,`rgb(${a.map(p=>p*255).join(",")})`),c=c.replace(/{{TEXT_BACKGROUND_WIDTH}}/g,l[0]+"px"),c=c.replace(/{{TEXT_BACKGROUND_HEIGHT}}/g,l[1]+"px"),c=c.replace(/{{TEXT_COLOR}}/g,`rgb(${u.map(p=>p*255).join(",")})`),c=c.replace(/{{TEXT_OFFSET_X}}/g,h[0]+"px"),c=c.replace(/{{TEXT_OFFSET_Y}}/g,h[1]+"px");const A=document.createElement("div");return A.innerHTML=c,[A.children[0].children[0],A.children[0].children[1]]},bt=class bt extends Tl{constructor(e,i){super(e,i);L(this,"_widgetComponent");L(this,"_customWidgetComponent");L(this,"_textBox",[]);L(this,"_iconBox");L(this,"_icon");L(this,"_anchor");if(!i.viewer){console.warn("viewer is undefined!");return}const r=this.ad(new d.Event),s=this.ad(new d.Event);{let l;const u=this.ad(d.createNextAnimateFrameEvent(e.screenRenderChanged,s));this.customWidgetComponent=this.disposeVar(new d.ObjResettingWithEvent(u,()=>{if(!(!l||e.mode!="Custom"))return e.screenRender?new wr(e,i,l[1],!0,!1):new oA(e,i,l[1],!0,!1)},!1)),this.widgetComponent=this.disposeVar(new d.ObjResettingWithEvent(u,()=>{if(l)return e.screenRender?new wr(e,i,l instanceof HTMLDivElement?l:l[0],!0,!1):new oA(e,i,l instanceof HTMLDivElement?l:l[0],!0,!1)},!1)),this.widgetComponent.objChanged.don(()=>{e.minVisibleDistanceChanged.emit()});const h=this.dv(d.createNextAnimateFrameEvent(e.nameChanged,e.styleChanged,r));this.ad(h.don(async()=>{var c;if(e.mode!="Custom"){if(this._textBox.length==0&&e.mode!="Linear01")return;const A=e.style[Object.keys(e.style).filter(g=>g.toUpperCase()=="TEXT")[0]]??e.name,{div:p,styleObj:f}=H5(e.mode,A,this._textBox,this._iconBox,this._icon,this._anchor);l=p,l.innerHTML=X5(l.innerHTML,f)}else{const A=await J5(e.id,{...e.style,text:((c=e.style)==null?void 0:c.text)??e.name});l=[A[0],A[1]]}s.emit()}))}{const l=this.ad(d.createProcessingFromAsyncFunc(async A=>{const p=e.mode;bt.modeCache.value={...bt.modeCache.value,[p]:void 0},await A.promise(N5(p)).then(f=>{bt.modeCache.value={...bt.modeCache.value,[p]:f},this._icon=f.icon,this._anchor=f.anchor,this._iconBox=f.iconBox,this._textBox=f.textBox,r.emit()})}));let u=null,h=null;const c=()=>{var A,p,f,g;if(e.mode=="Custom"){r.emit();return}if(Reflect.has(bt.modeCache.value,e.mode))if(bt.modeCache.value[e.mode])this._icon=(A=bt.modeCache.value[e.mode])==null?void 0:A.icon,this._anchor=(p=bt.modeCache.value[e.mode])==null?void 0:p.anchor,this._iconBox=(f=bt.modeCache.value[e.mode])==null?void 0:f.iconBox,this._textBox=((g=bt.modeCache.value[e.mode])==null?void 0:g.textBox)??[],r.emit();else{if(u)return;u=bt.modeCache.changed.don(()=>{var v,y,m,_;bt.modeCache.value[e.mode]&&(this._icon=(v=bt.modeCache.value[e.mode])==null?void 0:v.icon,this._anchor=(y=bt.modeCache.value[e.mode])==null?void 0:y.anchor,this._iconBox=(m=bt.modeCache.value[e.mode])==null?void 0:m.iconBox,this._textBox=((_=bt.modeCache.value[e.mode])==null?void 0:_.textBox)??[],r.emit(),u&&u(),u=null)})}else if(!l.isRunning)l.restart();else{if(h)return;h=l.completeEvent.donce(()=>{h&&h(),h=null,l.restart()})}};c(),this.d(e.modeChanged.don(c))}const a=this.ad(new d.Event);{const l=this.dv(d.createNextAnimateFrameEvent(e.anchorChanged,e.autoAnchorChanged,e.offsetChanged)),u=()=>{const h=this.widgetComponent.obj,c=e.autoAnchor?h.defaultAnchor:e.anchor,A=e.offset;if(h instanceof wr)c?(h.czmGeoCustomDivPoi.originRatioAndOffset=[...c,-A[0],-A[1]],h.widgetInfo.style.transformOrigin=`${c[0]*100}% ${c[1]*100}%`):h.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let p=100,f=100;e.sizeByContent&&h.domSize?(p=h.domSize.width/100,f=h.domSize.height/100):(p=e.size[0]/100,f=e.size[1]/100),c?h.czmCustomPrimitive.localPosition=[c[0]*p-A[0]/100,0,c[1]*f-A[1]/100]:h.czmCustomPrimitive.localPosition=[0,0,0]}e.mode=="Custom"&&a.emit()};this.d(l.don(u)),this.ad(new d.ObjResettingWithEvent(this.widgetComponent.objChanged,()=>{if(this.widgetComponent.obj==null)return;const h=new d.Destroyable;return u(),h.d(this.widgetComponent.obj.defaultAnchorChanged.don(u)),h}))}{const l=this.dv(d.createNextAnimateFrameEvent(e.styleChanged,e.showChanged,a)),u=()=>{var y,m,_;if(e.mode!="Custom")return;const h=this.customWidgetComponent.obj;if(!h)return;const c=((y=e.style)==null?void 0:y.imageSize)??V.ESPoi2D.defaults.style.imageSize,A=e.autoAnchor?this.widgetComponent.obj.defaultAnchor:e.anchor,p=((m=e.style)==null?void 0:m.textBoxAlign)??V.ESPoi2D.defaults.style.textBoxAlign,f=p=="start"?0:p=="center"?.5:1,g=((_=e.style)==null?void 0:_.textBoxOffset)??V.ESPoi2D.defaults.style.textBoxOffset,v=e.offset;if(h instanceof wr)A?(h.czmGeoCustomDivPoi.originRatioAndOffset=[f,.5,-v[0]-g[0]+c[0]*(A[0]-.5),-v[1]-g[1]+c[1]*(A[1]-.5)],h.widgetInfo.style.transformOrigin=`${f*100}% ${.5*100}%`):h.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let b=100,E=100;e.sizeByContent&&h.domSize?(b=h.domSize.width/100,E=h.domSize.height/100):(b=e.size[0]/100,E=e.size[1]/100),A?h.czmCustomPrimitive.localPosition=[f*b+(-v[0]-g[0]+c[0]*(A[0]-.5))/100,0,.5*E+(-v[1]-g[1]+c[1]*(A[1]-.5))/100]:h.czmCustomPrimitive.localPosition=[0,0,0]}};this.ad(l.don(u));{const h=this.ad(d.createNextAnimateFrameEvent(this.customWidgetComponent.objChanged,this.widgetComponent.objChanged));this.ad(new d.ObjResettingWithEvent(h,()=>{if(this.customWidgetComponent.obj==null||this.widgetComponent.obj==null)return;const c=new d.Destroyable,A=this.customWidgetComponent.obj,p=()=>{var f,g,v,y;A&&(A instanceof wr?(((f=e.style)==null?void 0:f.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="hover"?(A.czmGeoCustomDivPoi.show=!1,this.d(this.widgetComponent.obj.czmGeoCustomDivPoi.pickedEvent.don(m=>{var b,E;const _=(b=mo(m,"pickResult"))==null?void 0:b.pointerEvent;_&&(A.czmGeoCustomDivPoi.show=e.show&&(((E=e.style)==null?void 0:E.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)&&_.type=="mouseenter")}))):A.czmGeoCustomDivPoi.show=e.show&&(((g=e.style)==null?void 0:g.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow):(((v=e.style)==null?void 0:v.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="hover"?(A.czmCustomPrimitive.show=!1,this.d(e.widgetEvent.don(m=>{var _;m&&(A.czmCustomPrimitive.show=e.show&&(((_=e.style)==null?void 0:_.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)&&m.type=="mouseEnter")}))):A.czmCustomPrimitive.show=e.show&&(((y=e.style)==null?void 0:y.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow))};return p(),c.ad(e.styleChanged.don(p)),c}))}}}get widgetComponent(){return this._widgetComponent}set widgetComponent(e){this._widgetComponent=e}get customWidgetComponent(){return this._customWidgetComponent}set customWidgetComponent(e){this._customWidgetComponent=e}flyTo(e,i){const{sceneObject:o,czmViewer:r,widgetComponent:s}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,i);if(s.obj)s.obj.flyTo(e,i);else{const a=setTimeout(()=>{clearTimeout(a),this.flyTo(e,i)},200)}return o.flyOverEvent.emit(i,"over",r),!0}visibleDistance(e,i){var o,r,s,a,l;if((o=i.viewer)!=null&&o.camera&&e.show){const u=V.getDistancesFromPositions([e.position,Sn(i.viewer.camera)],"NONE")[0];let h=!1;e.minVisibleDistance<e.maxVisibleDistance?h=e.minVisibleDistance<u&&u<e.maxVisibleDistance:e.maxVisibleDistance==0&&(h=u>e.minVisibleDistance);const c=this.widgetComponent.obj,A=this.customWidgetComponent.obj;if(!c)return;c instanceof wr?(c.czmGeoCustomDivPoi.show=e.show&&h,(((r=e.style)==null?void 0:r.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="default"&&A&&(A.czmGeoCustomDivPoi.show=e.show&&h&&(((s=e.style)==null?void 0:s.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow))):(c.czmCustomPrimitive.show=e.show&&h,(((a=e.style)==null?void 0:a.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="default"&&A&&(A.czmCustomPrimitive.show=e.show&&h&&(((l=e.style)==null?void 0:l.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)))}}};L(bt,"type",bt.register("ESCesiumViewer",V.ESPoi2D.type,bt)),L(bt,"modeCache",d.react({}));let Zm=bt;const Uu=class Uu extends Ge{constructor(e,i){super(e,i);L(this,"_czmModelPoi3D");if(!i.viewer){console.warn("viewer is undefined!");return}const r=this.dv(d.createNextAnimateFrameEvent(e.modeChanged));this.dv(new d.ObjResettingWithEvent(r,()=>{let{mode:s}=e;const a=V.ESSceneObject.context.getStrFromEnv(`\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${s}/SM_POI_${s.charAt(0).toUpperCase()+s.slice(1)}.gltf`);return this._czmModelPoi3D=new j5(e,i,a)}))}visibleDistance(e,i){var o;if((o=i.viewer)!=null&&o.camera&&e.show){const r=V.getDistancesFromPositions([e.position,Sn(i.viewer.camera)],"NONE")[0];let s=!1;if(e.minVisibleDistance<e.maxVisibleDistance?s=e.minVisibleDistance<r&&r<e.maxVisibleDistance:e.maxVisibleDistance==0&&(s=r>e.minVisibleDistance),!this._czmModelPoi3D)return;this._czmModelPoi3D.czmModel&&(this._czmModelPoi3D.czmModel.show=e.show&&s)}}flyTo(e,i){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):this._czmModelPoi3D?(this._czmModelPoi3D.flyTo(e,i),!0):!1:!1}};L(Uu,"type",Uu.register("ESCesiumViewer",V.ESPoi3D.type,Uu));let Xm=Uu;class j5 extends d.Destroyable{constructor(e,i,o){super();L(this,"czmModel");this._sceneObject=e,this._czmViewer=i,this._modelUrl=o,this.czmModel=this.ad(new Qt(this._czmViewer,this._sceneObject.id)),this.d(this.czmModel.readyEvent.don(l=>{this.czmModel.gltf.animations&&(this.czmModel.activeAnimationsJson=this.czmModel.gltf.animations.map((u,h)=>({index:h,loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration * 2"}))),this._updateMaterial(this._sceneObject,this.czmModel)})),this.ad(new nh(i.viewer,this.czmModel));const r=this._sceneObject,s=this.czmModel;s.url=this._modelUrl,this.d(d.bind([s,"position"],[r,"position"])),this.d(Bt([s,"rotation"],[r,"rotation"])),this.d(d.track([s,"scale"],[r,"scale"])),this.d(d.track([s,"show"],[r,"show"]));{const l=this.dv(d.createNextAnimateFrameEvent(r.allowPickingChanged,r.editingChanged)),u=()=>{r.allowPicking&&!r.editing?s.allowPicking=!0:s.allowPicking=!1};u(),this.d(l.don(u))}const a=this.dv(d.createNextAnimateFrameEvent(r.nameChanged,r.styleChanged));this.d(a.don(()=>this._updateMaterial(r,s)))}async _updateMaterial(e,i){var s,a;const o=document.createElement("div");o.style.position="absolute",o.style.zIndex="-1",o.style.bottom="108px",o.style.right="0px";const r=e.style[Object.keys(e.style).filter(l=>l.toUpperCase()==="TEXT")[0]]??e.name;o.innerHTML=`<div style="width: 512px; height: 128px;color: #fff;text-align: center;line-height: 128px;font-size: 50px;margin: 0 auto;">
3200
+ `,J5=async(t,n)=>{const e=(n==null?void 0:n.fontSize)??V.ESPoi2D.defaults.style.fontSize,i=(n==null?void 0:n.image)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/anchor.png",o=(n==null?void 0:n.imageSize)??V.ESPoi2D.defaults.style.imageSize,r=(n==null?void 0:n.text)??V.ESPoi2D.defaults.style.text,s=(n==null?void 0:n.textBackground)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/textBox_01.png",a=(n==null?void 0:n.textBackgroundColor)??V.ESPoi2D.defaults.style.textBackgroundColor,l=(n==null?void 0:n.textBackgroundSize)??V.ESPoi2D.defaults.style.textBackgroundSize,u=(n==null?void 0:n.textColor)??V.ESPoi2D.defaults.style.textColor,h=(n==null?void 0:n.textOffset)??V.ESPoi2D.defaults.style.textOffset;let c=Y5;c=c.replace(/{{CustomContainer}}/g,`ESPoi2DCustomContainer${t}`),c=c.replace(/{{CustomImage}}/g,`ESPoi2DCustomImage${t}`),c=c.replace(/{{CustomTextContainer}}/g,`ESPoi2DCustomTextContainer${t}`),c=c.replace(/{{FONT_SIZE}}/g,e+"px"),c=c.replace(/{{IMAGE_SRC}}/g,V.ESSceneObject.context.getStrFromEnv(i)),c=c.replace(/{{IMAGE_WIDTH}}/g,o[0]+"px"),c=c.replace(/{{IMAGE_HEIGHT}}/g,o[1]+"px"),c=c.replace(/{{TEXT}}/g,r),c=c.replace(/{{TEXT_BACKGROUND}}/g,V.ESSceneObject.context.getStrFromEnv(s)),c=c.replace(/{{TEXT_BACKGROUND_COLOR}}/g,`rgb(${a.map(p=>p*255).join(",")})`),c=c.replace(/{{TEXT_BACKGROUND_WIDTH}}/g,l[0]+"px"),c=c.replace(/{{TEXT_BACKGROUND_HEIGHT}}/g,l[1]+"px"),c=c.replace(/{{TEXT_COLOR}}/g,`rgb(${u.map(p=>p*255).join(",")})`),c=c.replace(/{{TEXT_OFFSET_X}}/g,h[0]+"px"),c=c.replace(/{{TEXT_OFFSET_Y}}/g,h[1]+"px");const A=document.createElement("div");return A.innerHTML=c,[A.children[0].children[0],A.children[0].children[1]]},bt=class bt extends Tl{constructor(e,i){super(e,i);L(this,"_widgetComponent");L(this,"_customWidgetComponent");L(this,"_textBox",[]);L(this,"_iconBox");L(this,"_icon");L(this,"_anchor");if(!i.viewer){console.warn("viewer is undefined!");return}const r=this.ad(new d.Event),s=this.ad(new d.Event);{let l;const u=this.ad(d.createNextAnimateFrameEvent(e.screenRenderChanged,s));this.customWidgetComponent=this.disposeVar(new d.ObjResettingWithEvent(u,()=>{if(!(!l||e.mode!="Custom"))return e.screenRender?new wr(e,i,l[1],!0,!1):new oA(e,i,l[1],!0,!1)},!1)),this.widgetComponent=this.disposeVar(new d.ObjResettingWithEvent(u,()=>{if(l)return e.screenRender?new wr(e,i,l instanceof HTMLDivElement?l:l[0],!0,!1):new oA(e,i,l instanceof HTMLDivElement?l:l[0],!0,!1)},!1)),this.widgetComponent.objChanged.don(()=>{e.minVisibleDistanceChanged.emit()});const h=this.dv(d.createNextAnimateFrameEvent(e.nameChanged,e.styleChanged,r));this.ad(h.don(async()=>{var c;if(e.mode!="Custom"){if(this._textBox.length==0&&e.mode!="Linear01")return;const A=e.style[Object.keys(e.style).filter(g=>g.toUpperCase()=="TEXT")[0]]??e.name,{div:p,styleObj:f}=H5(e.mode,A,this._textBox,this._iconBox,this._icon,this._anchor);l=p,l.innerHTML=X5(l.innerHTML,f)}else{const A=await J5(e.id,{...e.style,text:((c=e.style)==null?void 0:c.text)??e.name});l=[A[0],A[1]]}s.emit()}))}{const l=this.ad(d.createProcessingFromAsyncFunc(async A=>{const p=e.mode;bt.modeCache.value={...bt.modeCache.value,[p]:void 0},await A.promise(N5(p)).then(f=>{bt.modeCache.value={...bt.modeCache.value,[p]:f},this._icon=f.icon,this._anchor=f.anchor,this._iconBox=f.iconBox,this._textBox=f.textBox,r.emit()})}));let u=null,h=null;const c=()=>{var A,p,f,g;if(e.mode=="Custom"){r.emit();return}if(Reflect.has(bt.modeCache.value,e.mode))if(bt.modeCache.value[e.mode])this._icon=(A=bt.modeCache.value[e.mode])==null?void 0:A.icon,this._anchor=(p=bt.modeCache.value[e.mode])==null?void 0:p.anchor,this._iconBox=(f=bt.modeCache.value[e.mode])==null?void 0:f.iconBox,this._textBox=((g=bt.modeCache.value[e.mode])==null?void 0:g.textBox)??[],r.emit();else{if(u)return;u=bt.modeCache.changed.don(()=>{var v,y,m,_;bt.modeCache.value[e.mode]&&(this._icon=(v=bt.modeCache.value[e.mode])==null?void 0:v.icon,this._anchor=(y=bt.modeCache.value[e.mode])==null?void 0:y.anchor,this._iconBox=(m=bt.modeCache.value[e.mode])==null?void 0:m.iconBox,this._textBox=((_=bt.modeCache.value[e.mode])==null?void 0:_.textBox)??[],r.emit(),u&&u(),u=null)})}else if(!l.isRunning)l.restart();else{if(h)return;h=l.completeEvent.donce(()=>{h&&h(),h=null,l.restart()})}};c(),this.d(e.modeChanged.don(c))}const a=this.ad(new d.Event);{const l=this.dv(d.createNextAnimateFrameEvent(e.anchorChanged,e.autoAnchorChanged,e.offsetChanged)),u=()=>{const h=this.widgetComponent.obj,c=e.autoAnchor?h.defaultAnchor:e.anchor,A=e.offset;if(h instanceof wr)c?(h.czmGeoCustomDivPoi.originRatioAndOffset=[...c,-A[0],-A[1]],h.widgetInfo.style.transformOrigin=`${c[0]*100}% ${c[1]*100}%`):h.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let p=100,f=100;e.sizeByContent&&h.domSize?(p=h.domSize.width/100,f=h.domSize.height/100):(p=e.size[0]/100,f=e.size[1]/100),c?h.czmCustomPrimitive.localPosition=[c[0]*p-A[0]/100,0,c[1]*f-A[1]/100]:h.czmCustomPrimitive.localPosition=[0,0,0]}e.mode=="Custom"&&a.emit()};this.d(l.don(u)),this.ad(new d.ObjResettingWithEvent(this.widgetComponent.objChanged,()=>{if(this.widgetComponent.obj==null)return;const h=new d.Destroyable;return u(),h.d(this.widgetComponent.obj.defaultAnchorChanged.don(u)),h}))}{const l=this.dv(d.createNextAnimateFrameEvent(e.styleChanged,e.showChanged,a)),u=()=>{var y,m,_;if(e.mode!="Custom")return;const h=this.customWidgetComponent.obj;if(!h)return;const c=((y=e.style)==null?void 0:y.imageSize)??V.ESPoi2D.defaults.style.imageSize,A=e.autoAnchor?this.widgetComponent.obj.defaultAnchor:e.anchor,p=((m=e.style)==null?void 0:m.textBoxAlign)??V.ESPoi2D.defaults.style.textBoxAlign,f=p=="start"?0:p=="center"?.5:1,g=((_=e.style)==null?void 0:_.textBoxOffset)??V.ESPoi2D.defaults.style.textBoxOffset,v=e.offset;if(h instanceof wr)A?(h.czmGeoCustomDivPoi.originRatioAndOffset=[f,.5,-v[0]-g[0]+c[0]*(A[0]-.5),-v[1]-g[1]+c[1]*(A[1]-.5)],h.widgetInfo.style.transformOrigin=`${f*100}% ${.5*100}%`):h.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let b=100,E=100;e.sizeByContent&&h.domSize?(b=h.domSize.width/100,E=h.domSize.height/100):(b=e.size[0]/100,E=e.size[1]/100),A?h.czmCustomPrimitive.localPosition=[f*b+(-v[0]-g[0]+c[0]*(A[0]-.5))/100,0,.5*E+(-v[1]-g[1]+c[1]*(A[1]-.5))/100]:h.czmCustomPrimitive.localPosition=[0,0,0]}};this.ad(l.don(u));{const h=this.ad(d.createNextAnimateFrameEvent(this.customWidgetComponent.objChanged,this.widgetComponent.objChanged));this.ad(new d.ObjResettingWithEvent(h,()=>{if(this.customWidgetComponent.obj==null||this.widgetComponent.obj==null)return;const c=new d.Destroyable,A=this.customWidgetComponent.obj,p=()=>{var f,g,v,y;A&&(A instanceof wr?(((f=e.style)==null?void 0:f.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="hover"?(A.czmGeoCustomDivPoi.show=!1,this.d(this.widgetComponent.obj.czmGeoCustomDivPoi.pickedEvent.don(m=>{var b,E;const _=(b=mo(m,"pickResult"))==null?void 0:b.pointerEvent;_&&(A.czmGeoCustomDivPoi.show=e.show&&(((E=e.style)==null?void 0:E.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)&&_.type=="mouseenter")}))):A.czmGeoCustomDivPoi.show=e.show&&(((g=e.style)==null?void 0:g.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow):(((v=e.style)==null?void 0:v.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="hover"?(A.czmCustomPrimitive.show=!1,this.d(e.widgetEvent.don(m=>{var _;m&&(A.czmCustomPrimitive.show=e.show&&(((_=e.style)==null?void 0:_.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)&&m.type=="mouseEnter")}))):A.czmCustomPrimitive.show=e.show&&(((y=e.style)==null?void 0:y.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow))};return p(),c.ad(e.styleChanged.don(p)),c}))}}}get widgetComponent(){return this._widgetComponent}set widgetComponent(e){this._widgetComponent=e}get customWidgetComponent(){return this._customWidgetComponent}set customWidgetComponent(e){this._customWidgetComponent=e}flyTo(e,i){const{sceneObject:o,czmViewer:r,widgetComponent:s}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,i);if(s.obj)s.obj.flyTo(e,i);else{const a=setTimeout(()=>{clearTimeout(a),this.flyTo(e,i)},200)}return o.flyOverEvent.emit(i,"over",r),!0}visibleDistance(e,i){var o,r,s,a,l;if((o=i.viewer)!=null&&o.camera&&e.show){const u=V.getDistancesFromPositions([e.position,Sn(i.viewer.camera)],"NONE")[0];let h=!1;e.minVisibleDistance<e.maxVisibleDistance?h=e.minVisibleDistance<u&&u<e.maxVisibleDistance:e.maxVisibleDistance==0&&(h=u>e.minVisibleDistance);const c=this.widgetComponent.obj,A=this.customWidgetComponent.obj;if(!c)return;c instanceof wr?(c.czmGeoCustomDivPoi.show=e.show&&h,(((r=e.style)==null?void 0:r.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="default"&&A&&(A.czmGeoCustomDivPoi.show=e.show&&h&&(((s=e.style)==null?void 0:s.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow))):(c.czmCustomPrimitive.show=e.show&&h,(((a=e.style)==null?void 0:a.textBoxMode)??V.ESPoi2D.defaults.style.textBoxMode)=="default"&&A&&(A.czmCustomPrimitive.show=e.show&&h&&(((l=e.style)==null?void 0:l.textBoxShow)??V.ESPoi2D.defaults.style.textBoxShow)))}}};L(bt,"type",bt.register("ESCesiumViewer",V.ESPoi2D.type,bt)),L(bt,"modeCache",d.react({}));let Zm=bt;const Uu=class Uu extends Ge{constructor(e,i){super(e,i);L(this,"_czmModelPoi3D");if(!i.viewer){console.warn("viewer is undefined!");return}const r=this.dv(d.createNextAnimateFrameEvent(e.modeChanged));this.dv(new d.ObjResettingWithEvent(r,()=>{let{mode:s}=e;const a=V.ESSceneObject.context.getStrFromEnv(`\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${s.charAt(0).toLocaleLowerCase()+s.slice(1)}/SM_${["triangle","diamond"].includes(s)?"POI":"3dPoi"}_${s.charAt(0).toUpperCase()+s.slice(1)}.glb`);return this._czmModelPoi3D=new j5(e,i,a)}))}visibleDistance(e,i){var o;if((o=i.viewer)!=null&&o.camera&&e.show){const r=V.getDistancesFromPositions([e.position,Sn(i.viewer.camera)],"NONE")[0];let s=!1;if(e.minVisibleDistance<e.maxVisibleDistance?s=e.minVisibleDistance<r&&r<e.maxVisibleDistance:e.maxVisibleDistance==0&&(s=r>e.minVisibleDistance),!this._czmModelPoi3D)return;this._czmModelPoi3D.czmModel&&(this._czmModelPoi3D.czmModel.show=e.show&&s)}}flyTo(e,i){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):this._czmModelPoi3D?(this._czmModelPoi3D.flyTo(e,i),!0):!1:!1}};L(Uu,"type",Uu.register("ESCesiumViewer",V.ESPoi3D.type,Uu));let Xm=Uu;class j5 extends d.Destroyable{constructor(e,i,o){super();L(this,"czmModel");this._sceneObject=e,this._czmViewer=i,this._modelUrl=o,this.czmModel=this.ad(new Qt(this._czmViewer,this._sceneObject.id)),this.d(this.czmModel.readyEvent.don(l=>{this.czmModel.gltf.animations&&(this.czmModel.activeAnimationsJson=this.czmModel.gltf.animations.map((u,h)=>({index:h,loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration * 2"}))),this._updateMaterial(this._sceneObject,this.czmModel)})),this.ad(new nh(i.viewer,this.czmModel));const r=this._sceneObject,s=this.czmModel;s.url=this._modelUrl,this.d(d.bind([s,"position"],[r,"position"])),this.d(Bt([s,"rotation"],[r,"rotation"])),this.d(d.track([s,"scale"],[r,"scale"])),this.d(d.track([s,"show"],[r,"show"]));{const l=this.dv(d.createNextAnimateFrameEvent(r.allowPickingChanged,r.editingChanged)),u=()=>{r.allowPicking&&!r.editing?s.allowPicking=!0:s.allowPicking=!1};u(),this.d(l.don(u))}const a=this.dv(d.createNextAnimateFrameEvent(r.nameChanged,r.styleChanged));this.d(a.don(()=>this._updateMaterial(r,s)))}async _updateMaterial(e,i){var s,a;const o=document.createElement("div");o.style.position="absolute",o.style.zIndex="-1",o.style.bottom="108px",o.style.right="0px";const r=e.style[Object.keys(e.style).filter(l=>l.toUpperCase()==="TEXT")[0]]??e.name;o.innerHTML=`<div style="width: 512px; height: 128px;color: #fff;text-align: center;line-height: 128px;font-size: 50px;margin: 0 auto;">
3201
3201
  <span style="display: inline-block;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;width: 512px;">${r}</span>
3202
3202
  </div>`,document.body.contains(o)||document.body.appendChild(o);try{const l=await Ap(o,{backgroundColor:null,allowTaint:!1,useCORS:!0});document.body.contains(o)&&document.body.removeChild(o),i.setMaterial({Text:{baseColorTexture:{value:l.toDataURL("image/png",1)}},lambert5:{baseColorFactor:((s=e.style)==null?void 0:s.UI_Color)??[1,1,1,1]},default:{baseColorFactor:((a=e.style)==null?void 0:a.FX_Color)??[1,1,1,1]}})}catch(l){console.error(l),document.body.contains(o)&&document.body.removeChild(o)}}flyTo(e,i){const{_czmViewer:o,_sceneObject:r,czmModel:s}=this;dn(o,r,i,e,s,!0)}}const Ou=class Ou extends Ge{constructor(e,i){super(e,i);L(this,"_czmCustomPrimitive");L(this,"_causticsTexture");L(this,"_foamTexture");L(this,"_heightMapTexture");L(this,"_normalMapTexture");L(this,"isTimestamp",e=>{if(e.toString().length!==13||isNaN(e))return console.log("时间戳格式错误"),!1;const o=new Date(e);return isNaN(o.getTime())?(console.log("时间戳格式错误"),!1):!0});L(this,"getClosestTimestampIndex",(e,i)=>{for(var o=0,r=1/0,s=0;s<i.length;s++){var a=Math.abs(e-i[s]);a<r&&(r=a,o=s)}return o});if(this._czmCustomPrimitive=this.dv(new st(i,e.id)),this._causticsTexture=this.dv(new ht(i)),this._foamTexture=this.dv(new ht(i)),this._heightMapTexture=this.dv(new ht(i)),this._normalMapTexture=this.dv(new ht(i)),!i.viewer){console.warn("viewer is undefined!");return}const r=this.czmCustomPrimitive,s=this.causticsTexture,a=this.foamTexture,l=this.heightMapTexture,u=this.normalMapTexture;s.uri=V.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/caustics.jpg"),a.uri=V.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/foam.jpg"),l.uri=V.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/heightmap.jpg"),u.uri=V.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/water_normalmap.png"),this.d(d.track([r,"show"],[e,"show"])),this.d(d.track([r,"allowPicking"],[e,"allowPicking"])),this.d(d.bind([r,"position"],[e,"position"])),this.d(d.bind([r,"rotation"],[e,"rotation"])),this.d(d.bind([r,"scale"],[e,"scale"])),r.pass="TRANSLUCENT",r.primitiveType="TRIANGLES",r.renderState={depthTest:{enabled:!0},cull:{enabled:!0,face:1029},depthMask:!0,blending:{enabled:!0,equationRgb:32774,equationAlpha:32774,functionSourceRgb:770,functionSourceAlpha:1,functionDestinationRgb:771,functionDestinationAlpha:771}},r.vertexShaderSource=`
3203
3203
  in vec3 position;
@@ -4106,10 +4106,10 @@ async function initCesiumViewer(container, czmViewer) {
4106
4106
  `;function mV(){const t="https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7",e=` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
4107
4107
  github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
4108
4108
  gitee地址:${t}
4109
- `;console.log(e);const i=window.prompt(e,t);i&&window.open(i,"_blank")}const zt=class zt extends V.ESViewer{constructor(e){super(e);L(this,"_disabledInputStack",this.disposeVar(d.react(0)));L(this,"_viewer",this.dv(d.react(void 0)));L(this,"_viewerInstance");L(this,"_viewerLegend");L(this,"pickCustomAttachedInfo");L(this,"_fps",this.dv(d.react(0)));L(this,"_notSupportEditingCount",this.disposeVar(d.react(0)));L(this,"_editingSystem",_f);L(this,"_moveObjectsProcess",this.ad(WS()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new $z(this)),this.ad(new Yz(this)),this.dv(new d.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new t6(this)})),this._viewerLegend=this.dv(new cV(this)),this._viewerInstance=this.dv(new d.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new Xv(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=Ie([1,1,1,1]))}));const i=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new d.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new jQ(this.subContainer,this,o=>this._viewer.value=o,i.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&&Dn(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,i,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.pick(e,void 0,i)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:i}=this;if(!i)return;const o=C.Cartographic.fromDegrees(e[0],e[1],e[2],zt.getHeightsScartchCarto);return i.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Sn(e),rotation:aa(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let r=o.positionWC;const s=C.Cartesian3.fromDegrees(...e),a=C.Cartesian3.distance(o.positionWC,s),l=C.Cartesian3.subtract(s,r,new C.Cartesian3);C.Cartesian3.normalize(l,l);const u=C.Transforms.rotationMatrixFromPositionVelocity(r,l,C.Ellipsoid.WGS84),h=C.Matrix4.fromRotationTranslation(u,r);var c=C.Transforms.eastNorthUpToFixedFrame(C.Matrix4.getTranslation(h,new C.Cartesian3),C.Ellipsoid.WGS84,new C.Matrix4),A=C.Matrix4.multiply(C.Matrix4.inverse(c,new C.Matrix4),h,new C.Matrix4),p=C.Matrix4.getMatrix3(A,new C.Matrix3),f=C.Quaternion.fromRotationMatrix(p),g=C.HeadingPitchRoll.fromQuaternion(f);const v=aa(o);return{distance:a,heading:C.Math.toDegrees(g.heading)+90,pitch:C.Math.toDegrees(g.pitch),flyDuration:1,hDelta:-(v[0]-(C.Math.toDegrees(g.heading)+90)),pDelta:v[1]-C.Math.toDegrees(g.pitch)}}flyIn(e,i,o,r="default"){var l;if(!i)return;i[0]=-i[0];const s={position:e,rotation:i,duration:(o??1)*1e3},a=(l=this.viewer)==null?void 0:l.camera;return a&&Vs(a,s)}flyTo(e,i,o="default"){var p;const{distance:r,heading:s,pitch:a,flyDuration:l,hDelta:u,pDelta:h}=e,c={position:i,viewDistance:r,rotation:[s,a,0],duration:l*1e3,hdelta:u,pdelta:h},A=(p=this.viewer)==null?void 0:p.camera;return A&&Vs(A,c)}flyToBoundingSphere(e,i,o=1){var c;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],s=V.getGeoBoundingSphereFromPositions(r);if(!s)return;const{center:a,radius:l}=s,u={position:a,viewDistance:i??l,rotation:[0,-90,0],duration:o*1e3},h=(c=this.viewer)==null?void 0:c.camera;return h&&Vs(h,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Sn(e),rotation:aa(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,i=4.2,o=1.6){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToWalk(e,i,o),this._navigationMode.value="Walk"}changeToMap(){var e,i;(i=(e=this._viewerInstance)==null?void 0:e.obj)==null||i.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,i,o){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToRotateGlobe(e,i,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,i,o,r,s,a){var l,u;(u=(l=this._viewerInstance)==null?void 0:l.obj)==null||u.navigationManager.changeToLine(e,i,o,r,s,a),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,i,o,r,s){var a,l;(l=(a=this._viewerInstance)==null?void 0:a.obj)==null||l.navigationManager.changeToRotatePoint(e,i,o,r,s),this._navigationMode.value="RotatePoint"}changeToFollow(e,i,o,r,s){var a,l;(l=(a=this._viewerInstance)==null?void 0:a.obj)==null||l.navigationManager.changeToFollow(e,i,o,r,s),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){return window.g_XE3CopyRights??{}}async getHeightByLonLat(e,i,o){if(!this.viewer)return null;const r=C.Cartographic.fromDegrees(e,i,void 0,zt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,i){const o=e.map(s=>this.getHeightByLonLat(...s));return await Promise.all(o)}async capture(e,i){if(this.viewer)return await O0(this.viewer.scene,e,i)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const i=this.viewer.scene.cartesianToCanvasCoordinates(ft(e));if(i)return[i.x,i.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,i,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const r=e.mainClass;r&&(console.log(i,"这是Cesium的模式"),i!=null&&(r.editingID=`${o.callSource}_${d.createGuid()}`,this._editingSystem.create(this,r,i,o.useKeyToSwitch)))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const i=[],o=d.createGuid();for(let r=0;r<e.length;r++){const a=e[r].mainClass;a.editingID=o,a&&i.push(a)}this._moveObjectsProcess.restart(void 0,this,i,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=zt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!zt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=zt.latestDefaultAccessToken}positionsToLocalPositions(e,i){return fn(e,i)}localPositionsToPositions(e,i){return mr(e,i)}isPointVisible(e){if(!this.viewer)return!1;const i=ft(e),o=new C.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(i))return!1;const r=this.viewer.scene.cartesianToCanvasCoordinates(i);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},i=zt.defaults;return{...e,more:[...e.more,new V.GroupProperty([],"通用","通用"),new V.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",pV,dV,!0),new V.FunctionProperty([],()=>zt.getCesiumIonToken(),[],"获取官方token"),new V.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new V.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new V.BooleanProperty([this,"flashLighting"],"头顶灯",i.flashLighting,!0),new V.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",i.particleGlobalControl,!0),new V.GroupProperty([],"Viewer","Viewer"),new V.NumberProperty([this,"resolutionScale"],"分辨率比率",i.resolutionScale,!0),new V.NumberProperty([this,"msaaSamples"],"msaaSamples",i.msaaSamples,!0),new V.BooleanProperty([this,"shadows"]),new V.GroupProperty([],"比例尺","比例尺(Legend)"),new V.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new V.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new V.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new V.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new V.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new V.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new V.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new V.GroupProperty([],"场景","场景(Scene)"),new V.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",i.sceneSplitPosition,!0),new V.GroupProperty([],"Globe","Globe"),new V.BooleanProperty([this,"depthTestAgainstTerrain"],"depthTestAgainstTerrain",i.depthTestAgainstTerrain,!0),new V.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",i.sceneGlobeShadows,!0),new V.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new V.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new V.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new V.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new V.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new V.BooleanProperty([this,"sceneGlobeShowSkirts"]),new V.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new V.ColorProperty([this,"sceneGlobeBaseColor"]),new V.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new V.JsonProperty([this,"sceneGlobeClippingPlanes"]),new V.StringProperty([this,"sceneGlobeClippingPlanesId"]),new V.JsonProperty([this,"sceneGlobeClippingPolygons"]),new V.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new V.GroupProperty([],"underground","underground"),new V.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",i.sceneGlobeUndergroundColor,!0),new V.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",i.sceneGlobeUndergroundColorAlphaByDistance,!0),new V.GroupProperty([],"Translucency","Translucency"),new V.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",i.sceneGlobeTranslucencyEnabled,!0),new V.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",i.sceneGlobeTranslucencyBackFaceAlpha,!0),new V.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",i.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new V.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",i.sceneGlobeTranslucencyFrontFaceAlpha,!0),new V.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",i.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new V.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",i.sceneGlobeTranslucencyRectangle,!0),new V.GroupProperty([],"Sun","Sun"),new V.BooleanProperty([this,"sun"],"sun",i.sun,!0),new V.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",i.sceneSunGlowFactor,!0),new V.GroupProperty([],"Moon","Moon"),new V.BooleanProperty([this,"moon"],"moon",i.moon,!0),new V.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",i.sceneMoonTextureUrl,!0),new V.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",i.sceneMoonOnlySunLighting,!0),new V.GroupProperty([],"SkyBox","SkyBox"),new V.BooleanProperty([this,"sceneSkyBoxShow"]),new V.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",i.sceneSkyBoxSources,void 0,!0),new V.GroupProperty([],"Background","Background"),new V.BooleanProperty([this,"xbsjUseBackground"]),new V.StringProperty([this,"xbsjBackgroundImageUri"]),new V.ColorProperty([this,"xbsjBackgroundColor"]),new V.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new V.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",i.xbsjLocalBoxSources,void 0,!0),new V.ColorProperty([this,"sceneBackgroundColor"]),new V.GroupProperty([],"Fog","Fog"),new V.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",i.sceneFogEnabled,!0),new V.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",i.sceneFogDensity,!0),new V.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",i.sceneFogScreenSpaceErrorFactor,!0),new V.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",i.sceneFogMinimumBrightness,!0),new V.GroupProperty([],"Sscc","Sscc"),new V.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",i.sceneSsccEnableInputs,!0),new V.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",i.sceneSsccEnableCollisionDetection,!0),new V.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",i.sceneSsccZoomFactor,!0),new V.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new V.GroupProperty([],"后处理","后处理"),new V.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",i.scenePpsfxaaEnabled,!0),new V.GroupProperty([],"环境遮蔽","环境遮蔽"),new V.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new V.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new V.GroupProperty([],"Bloom","Bloom"),new V.BooleanProperty([this,"scenePpsBloomEnabled"]),new V.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new V.NumberProperty([this,"scenePpsBloomContrast"]),new V.NumberProperty([this,"scenePpsBloomBrightness"]),new V.NumberProperty([this,"scenePpsBloomDelta"]),new V.NumberProperty([this,"scenePpsBloomSigma"]),new V.NumberProperty([this,"scenePpsBloomStepSize"]),new V.GroupProperty([],"调试","调试"),new V.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",i.sceneDebugShowFramesPerSecond,!0),new V.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",i.sceneDebugShowCommands,!0),new V.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",i.sceneDebugShowFrustums,!0),new V.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",i.sceneDebugShowFrustumPlanes,!0),new V.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",i.sceneDebugShowDepthFrustum,!0),new V.GroupProperty([],"Inspector","Inspector"),new V.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",i.showCesiumInspector,!0),new V.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",i.cesiumInspectorWireframe,!0),new V.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",i.showCesium3DTilesInspector,!0)]}}};L(zt,"type",zt.register("ESCesiumViewer",zt)),L(zt,"getCesiumIonToken",mV),L(zt,"currentDefaultAccessToken",C.Ion.defaultAccessToken),L(zt,"latestDefaultAccessToken"),L(zt,"ObjectsToExcludeWrapper",e6),L(zt,"defaults",{...V.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,depthTestAgainstTerrain:!1,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:C.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:C.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}),L(zt,"getHeightsScartchCarto",new C.Cartographic);let tt=zt;(t=>{t.createDefaultProps=()=>({...V.ESViewer.createDefaultProps(),...fV()})})(tt||(tt={})),d.extendClassProps(tt.prototype,tt.createDefaultProps),ae.copyright=void 0;try{const t="earthsdk3-cesium",n="3.4.0-beta.6",e="2025-09-02T06:26:49.000Z",i="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="1c85a7938326029bfd0efde53b240e71da26ae46",a=((Date.now()-1756794409e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${r.slice(0,8)}.${e} (距今${a}个小时)
4109
+ `;console.log(e);const i=window.prompt(e,t);i&&window.open(i,"_blank")}const zt=class zt extends V.ESViewer{constructor(e){super(e);L(this,"_disabledInputStack",this.disposeVar(d.react(0)));L(this,"_viewer",this.dv(d.react(void 0)));L(this,"_viewerInstance");L(this,"_viewerLegend");L(this,"pickCustomAttachedInfo");L(this,"_fps",this.dv(d.react(0)));L(this,"_notSupportEditingCount",this.disposeVar(d.react(0)));L(this,"_editingSystem",_f);L(this,"_moveObjectsProcess",this.ad(WS()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new $z(this)),this.ad(new Yz(this)),this.dv(new d.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new t6(this)})),this._viewerLegend=this.dv(new cV(this)),this._viewerInstance=this.dv(new d.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new Xv(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=Ie([1,1,1,1]))}));const i=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new d.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new jQ(this.subContainer,this,o=>this._viewer.value=o,i.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&&Dn(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,i,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.pick(e,void 0,i)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:i}=this;if(!i)return;const o=C.Cartographic.fromDegrees(e[0],e[1],e[2],zt.getHeightsScartchCarto);return i.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Sn(e),rotation:aa(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let r=o.positionWC;const s=C.Cartesian3.fromDegrees(...e),a=C.Cartesian3.distance(o.positionWC,s),l=C.Cartesian3.subtract(s,r,new C.Cartesian3);C.Cartesian3.normalize(l,l);const u=C.Transforms.rotationMatrixFromPositionVelocity(r,l,C.Ellipsoid.WGS84),h=C.Matrix4.fromRotationTranslation(u,r);var c=C.Transforms.eastNorthUpToFixedFrame(C.Matrix4.getTranslation(h,new C.Cartesian3),C.Ellipsoid.WGS84,new C.Matrix4),A=C.Matrix4.multiply(C.Matrix4.inverse(c,new C.Matrix4),h,new C.Matrix4),p=C.Matrix4.getMatrix3(A,new C.Matrix3),f=C.Quaternion.fromRotationMatrix(p),g=C.HeadingPitchRoll.fromQuaternion(f);const v=aa(o);return{distance:a,heading:C.Math.toDegrees(g.heading)+90,pitch:C.Math.toDegrees(g.pitch),flyDuration:1,hDelta:-(v[0]-(C.Math.toDegrees(g.heading)+90)),pDelta:v[1]-C.Math.toDegrees(g.pitch)}}flyIn(e,i,o,r="default"){var l;if(!i)return;i[0]=-i[0];const s={position:e,rotation:i,duration:(o??1)*1e3},a=(l=this.viewer)==null?void 0:l.camera;return a&&Vs(a,s)}flyTo(e,i,o="default"){var p;const{distance:r,heading:s,pitch:a,flyDuration:l,hDelta:u,pDelta:h}=e,c={position:i,viewDistance:r,rotation:[s,a,0],duration:l*1e3,hdelta:u,pdelta:h},A=(p=this.viewer)==null?void 0:p.camera;return A&&Vs(A,c)}flyToBoundingSphere(e,i,o=1){var c;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],s=V.getGeoBoundingSphereFromPositions(r);if(!s)return;const{center:a,radius:l}=s,u={position:a,viewDistance:i??l,rotation:[0,-90,0],duration:o*1e3},h=(c=this.viewer)==null?void 0:c.camera;return h&&Vs(h,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Sn(e),rotation:aa(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,i=4.2,o=1.6){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToWalk(e,i,o),this._navigationMode.value="Walk"}changeToMap(){var e,i;(i=(e=this._viewerInstance)==null?void 0:e.obj)==null||i.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,i,o){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToRotateGlobe(e,i,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,i,o,r,s,a){var l,u;(u=(l=this._viewerInstance)==null?void 0:l.obj)==null||u.navigationManager.changeToLine(e,i,o,r,s,a),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,i,o,r,s){var a,l;(l=(a=this._viewerInstance)==null?void 0:a.obj)==null||l.navigationManager.changeToRotatePoint(e,i,o,r,s),this._navigationMode.value="RotatePoint"}changeToFollow(e,i,o,r,s){var a,l;(l=(a=this._viewerInstance)==null?void 0:a.obj)==null||l.navigationManager.changeToFollow(e,i,o,r,s),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=C.VERSION,e}async getHeightByLonLat(e,i,o){if(!this.viewer)return null;const r=C.Cartographic.fromDegrees(e,i,void 0,zt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,i){const o=e.map(s=>this.getHeightByLonLat(...s));return await Promise.all(o)}async capture(e,i){if(this.viewer)return await O0(this.viewer.scene,e,i)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const i=this.viewer.scene.cartesianToCanvasCoordinates(ft(e));if(i)return[i.x,i.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,i,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const r=e.mainClass;r&&(console.log(i,"这是Cesium的模式"),i!=null&&(r.editingID=`${o.callSource}_${d.createGuid()}`,this._editingSystem.create(this,r,i,o.useKeyToSwitch)))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const i=[],o=d.createGuid();for(let r=0;r<e.length;r++){const a=e[r].mainClass;a.editingID=o,a&&i.push(a)}this._moveObjectsProcess.restart(void 0,this,i,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=zt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!zt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=zt.latestDefaultAccessToken}positionsToLocalPositions(e,i){return fn(e,i)}localPositionsToPositions(e,i){return mr(e,i)}isPointVisible(e){if(!this.viewer)return!1;const i=ft(e),o=new C.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(i))return!1;const r=this.viewer.scene.cartesianToCanvasCoordinates(i);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},i=zt.defaults;return{...e,more:[...e.more,new V.GroupProperty([],"通用","通用"),new V.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",pV,dV,!0),new V.FunctionProperty([],()=>zt.getCesiumIonToken(),[],"获取官方token"),new V.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new V.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new V.BooleanProperty([this,"flashLighting"],"头顶灯",i.flashLighting,!0),new V.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",i.particleGlobalControl,!0),new V.GroupProperty([],"Viewer","Viewer"),new V.NumberProperty([this,"resolutionScale"],"分辨率比率",i.resolutionScale,!0),new V.NumberProperty([this,"msaaSamples"],"msaaSamples",i.msaaSamples,!0),new V.BooleanProperty([this,"shadows"]),new V.GroupProperty([],"比例尺","比例尺(Legend)"),new V.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new V.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new V.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new V.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new V.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new V.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new V.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new V.GroupProperty([],"场景","场景(Scene)"),new V.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",i.sceneSplitPosition,!0),new V.GroupProperty([],"Globe","Globe"),new V.BooleanProperty([this,"depthTestAgainstTerrain"],"depthTestAgainstTerrain",i.depthTestAgainstTerrain,!0),new V.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",i.sceneGlobeShadows,!0),new V.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new V.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new V.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new V.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new V.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new V.BooleanProperty([this,"sceneGlobeShowSkirts"]),new V.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new V.ColorProperty([this,"sceneGlobeBaseColor"]),new V.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new V.JsonProperty([this,"sceneGlobeClippingPlanes"]),new V.StringProperty([this,"sceneGlobeClippingPlanesId"]),new V.JsonProperty([this,"sceneGlobeClippingPolygons"]),new V.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new V.GroupProperty([],"underground","underground"),new V.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",i.sceneGlobeUndergroundColor,!0),new V.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",i.sceneGlobeUndergroundColorAlphaByDistance,!0),new V.GroupProperty([],"Translucency","Translucency"),new V.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",i.sceneGlobeTranslucencyEnabled,!0),new V.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",i.sceneGlobeTranslucencyBackFaceAlpha,!0),new V.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",i.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new V.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",i.sceneGlobeTranslucencyFrontFaceAlpha,!0),new V.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",i.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new V.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",i.sceneGlobeTranslucencyRectangle,!0),new V.GroupProperty([],"Sun","Sun"),new V.BooleanProperty([this,"sun"],"sun",i.sun,!0),new V.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",i.sceneSunGlowFactor,!0),new V.GroupProperty([],"Moon","Moon"),new V.BooleanProperty([this,"moon"],"moon",i.moon,!0),new V.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",i.sceneMoonTextureUrl,!0),new V.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",i.sceneMoonOnlySunLighting,!0),new V.GroupProperty([],"SkyBox","SkyBox"),new V.BooleanProperty([this,"sceneSkyBoxShow"]),new V.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",i.sceneSkyBoxSources,void 0,!0),new V.GroupProperty([],"Background","Background"),new V.BooleanProperty([this,"xbsjUseBackground"]),new V.StringProperty([this,"xbsjBackgroundImageUri"]),new V.ColorProperty([this,"xbsjBackgroundColor"]),new V.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new V.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",i.xbsjLocalBoxSources,void 0,!0),new V.ColorProperty([this,"sceneBackgroundColor"]),new V.GroupProperty([],"Fog","Fog"),new V.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",i.sceneFogEnabled,!0),new V.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",i.sceneFogDensity,!0),new V.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",i.sceneFogScreenSpaceErrorFactor,!0),new V.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",i.sceneFogMinimumBrightness,!0),new V.GroupProperty([],"Sscc","Sscc"),new V.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",i.sceneSsccEnableInputs,!0),new V.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",i.sceneSsccEnableCollisionDetection,!0),new V.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",i.sceneSsccZoomFactor,!0),new V.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new V.GroupProperty([],"后处理","后处理"),new V.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",i.scenePpsfxaaEnabled,!0),new V.GroupProperty([],"环境遮蔽","环境遮蔽"),new V.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new V.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new V.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new V.GroupProperty([],"Bloom","Bloom"),new V.BooleanProperty([this,"scenePpsBloomEnabled"]),new V.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new V.NumberProperty([this,"scenePpsBloomContrast"]),new V.NumberProperty([this,"scenePpsBloomBrightness"]),new V.NumberProperty([this,"scenePpsBloomDelta"]),new V.NumberProperty([this,"scenePpsBloomSigma"]),new V.NumberProperty([this,"scenePpsBloomStepSize"]),new V.GroupProperty([],"调试","调试"),new V.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",i.sceneDebugShowFramesPerSecond,!0),new V.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",i.sceneDebugShowCommands,!0),new V.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",i.sceneDebugShowFrustums,!0),new V.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",i.sceneDebugShowFrustumPlanes,!0),new V.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",i.sceneDebugShowDepthFrustum,!0),new V.GroupProperty([],"Inspector","Inspector"),new V.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",i.showCesiumInspector,!0),new V.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",i.cesiumInspectorWireframe,!0),new V.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",i.showCesium3DTilesInspector,!0)]}}};L(zt,"type",zt.register("ESCesiumViewer",zt)),L(zt,"getCesiumIonToken",mV),L(zt,"currentDefaultAccessToken",C.Ion.defaultAccessToken),L(zt,"latestDefaultAccessToken"),L(zt,"ObjectsToExcludeWrapper",e6),L(zt,"defaults",{...V.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,depthTestAgainstTerrain:!1,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:C.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:C.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:C.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}),L(zt,"getHeightsScartchCarto",new C.Cartographic);let tt=zt;(t=>{t.createDefaultProps=()=>({...V.ESViewer.createDefaultProps(),...fV()})})(tt||(tt={})),d.extendClassProps(tt.prototype,tt.createDefaultProps),ae.copyright=void 0;try{const t="earthsdk3-cesium",n="3.4.0-beta.7",e="2025-09-03T08:05:29.000Z",i="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="365f7587cfe6bd14a471b404f8874ab445518b66",a=((Date.now()-1756886729e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${r.slice(0,8)}.${e} (距今${a}个小时)
4110
4110
  %c${o?o+`
4111
4111
  `:""}当前网站正在使用${t},此软件版权归${i}所有
4112
- `;ae.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","1c85a7938326029bfd0efde53b240e71da26ae46")},get info(){return l},get date(){return"2025-09-02T06:26:49.000Z"},get author(){return"suplyang"},get version(){return"3.4.0-beta.6"},get name(){return"earthsdk3-cesium"},get commitId(){return"1c85a7938326029bfd0efde53b240e71da26ae46"},print(){console.info(this.info,`
4112
+ `;ae.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","365f7587cfe6bd14a471b404f8874ab445518b66")},get info(){return l},get date(){return"2025-09-03T08:05:29.000Z"},get author(){return"suplyang"},get version(){return"3.4.0-beta.7"},get name(){return"earthsdk3-cesium"},get commitId(){return"365f7587cfe6bd14a471b404f8874ab445518b66"},print(){console.info(this.info,`
4113
4113
  font-size: 18px;
4114
4114
  font-weight: 1000;
4115
4115
  line-height: 1;
@@ -29356,7 +29356,7 @@ const Za = class Za extends Re {
29356
29356
  this.dv(new he(n, () => {
29357
29357
  let { mode: r } = e;
29358
29358
  const a = oe.context.getStrFromEnv(
29359
- `\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${r}/SM_POI_${r.charAt(0).toUpperCase() + r.slice(1)}.gltf`
29359
+ `\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${r.charAt(0).toLocaleLowerCase() + r.slice(1)}/SM_${["triangle", "diamond"].includes(r) ? "POI" : "3dPoi"}_${r.charAt(0).toUpperCase() + r.slice(1)}.glb`
29360
29360
  );
29361
29361
  return this._czmModelPoi3D = new J2(e, s, a);
29362
29362
  }));
@@ -49648,7 +49648,8 @@ const Pt = class Pt extends jp {
49648
49648
  return Promise.resolve(void 0);
49649
49649
  }
49650
49650
  async getVersion() {
49651
- return window.g_XE3CopyRights ?? {};
49651
+ const e = window.g_XE3CopyRights ?? {};
49652
+ return e.cesium = h.VERSION, e;
49652
49653
  }
49653
49654
  async getHeightByLonLat(e, s, o) {
49654
49655
  if (!this.viewer) return null;
@@ -49905,7 +49906,7 @@ let Ge = Pt;
49905
49906
  ae(Ge.prototype, Ge.createDefaultProps);
49906
49907
  let Qp;
49907
49908
  try {
49908
- const t = "earthsdk3-cesium", i = "3.4.0-beta.6", e = "2025-09-02T06:26:49.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "1c85a7938326029bfd0efde53b240e71da26ae46", a = ((Date.now() - 1756794409e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49909
+ const t = "earthsdk3-cesium", i = "3.4.0-beta.7", e = "2025-09-03T08:05:29.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "365f7587cfe6bd14a471b404f8874ab445518b66", a = ((Date.now() - 1756886729e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49909
49910
  %c${o ? o + `
49910
49911
  ` : ""}当前网站正在使用${t},此软件版权归${s}所有
49911
49912
  `;
@@ -49919,7 +49920,7 @@ try {
49919
49920
  },
49920
49921
  // @ts-ignore
49921
49922
  get gituri() {
49922
- return GITURI_ && GITURI_.replace("${commitId}", "1c85a7938326029bfd0efde53b240e71da26ae46");
49923
+ return GITURI_ && GITURI_.replace("${commitId}", "365f7587cfe6bd14a471b404f8874ab445518b66");
49923
49924
  },
49924
49925
  // @ts-ignore
49925
49926
  get info() {
@@ -49927,7 +49928,7 @@ try {
49927
49928
  },
49928
49929
  // @ts-ignore
49929
49930
  get date() {
49930
- return "2025-09-02T06:26:49.000Z";
49931
+ return "2025-09-03T08:05:29.000Z";
49931
49932
  },
49932
49933
  // @ts-ignore
49933
49934
  get author() {
@@ -49935,7 +49936,7 @@ try {
49935
49936
  },
49936
49937
  // @ts-ignore
49937
49938
  get version() {
49938
- return "3.4.0-beta.6";
49939
+ return "3.4.0-beta.7";
49939
49940
  },
49940
49941
  // @ts-ignore
49941
49942
  get name() {
@@ -49943,7 +49944,7 @@ try {
49943
49944
  },
49944
49945
  // @ts-ignore
49945
49946
  get commitId() {
49946
- return "1c85a7938326029bfd0efde53b240e71da26ae46";
49947
+ return "365f7587cfe6bd14a471b404f8874ab445518b66";
49947
49948
  },
49948
49949
  print() {
49949
49950
  console.info(
@@ -1346,7 +1346,7 @@ ${p0}
1346
1346
  </div>
1347
1347
  </div>
1348
1348
  </div>
1349
- `,UI=async(t,i)=>{const e=(i==null?void 0:i.fontSize)??w.ESPoi2D.defaults.style.fontSize,n=(i==null?void 0:i.image)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/anchor.png",o=(i==null?void 0:i.imageSize)??w.ESPoi2D.defaults.style.imageSize,r=(i==null?void 0:i.text)??w.ESPoi2D.defaults.style.text,s=(i==null?void 0:i.textBackground)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/textBox_01.png",a=(i==null?void 0:i.textBackgroundColor)??w.ESPoi2D.defaults.style.textBackgroundColor,c=(i==null?void 0:i.textBackgroundSize)??w.ESPoi2D.defaults.style.textBackgroundSize,d=(i==null?void 0:i.textColor)??w.ESPoi2D.defaults.style.textColor,u=(i==null?void 0:i.textOffset)??w.ESPoi2D.defaults.style.textOffset;let p=VI;p=p.replace(/{{CustomContainer}}/g,`ESPoi2DCustomContainer${t}`),p=p.replace(/{{CustomImage}}/g,`ESPoi2DCustomImage${t}`),p=p.replace(/{{CustomTextContainer}}/g,`ESPoi2DCustomTextContainer${t}`),p=p.replace(/{{FONT_SIZE}}/g,e+"px"),p=p.replace(/{{IMAGE_SRC}}/g,w.ESSceneObject.context.getStrFromEnv(n)),p=p.replace(/{{IMAGE_WIDTH}}/g,o[0]+"px"),p=p.replace(/{{IMAGE_HEIGHT}}/g,o[1]+"px"),p=p.replace(/{{TEXT}}/g,r),p=p.replace(/{{TEXT_BACKGROUND}}/g,w.ESSceneObject.context.getStrFromEnv(s)),p=p.replace(/{{TEXT_BACKGROUND_COLOR}}/g,`rgb(${a.map(g=>g*255).join(",")})`),p=p.replace(/{{TEXT_BACKGROUND_WIDTH}}/g,c[0]+"px"),p=p.replace(/{{TEXT_BACKGROUND_HEIGHT}}/g,c[1]+"px"),p=p.replace(/{{TEXT_COLOR}}/g,`rgb(${d.map(g=>g*255).join(",")})`),p=p.replace(/{{TEXT_OFFSET_X}}/g,u[0]+"px"),p=p.replace(/{{TEXT_OFFSET_Y}}/g,u[1]+"px");const f=document.createElement("div");return f.innerHTML=p,[f.children[0].children[0],f.children[0].children[1]]},Ze=class Ze extends xs{constructor(e,n){super(e,n);v(this,"_widgetComponent");v(this,"_customWidgetComponent");v(this,"_textBox",[]);v(this,"_iconBox");v(this,"_icon");v(this,"_anchor");if(!n.viewer){console.warn("viewer is undefined!");return}const r=this.ad(new l.Event),s=this.ad(new l.Event);{let c;const d=this.ad(l.createNextAnimateFrameEvent(e.screenRenderChanged,s));this.customWidgetComponent=this.disposeVar(new l.ObjResettingWithEvent(d,()=>{if(!(!c||e.mode!="Custom"))return e.screenRender?new wn(e,n,c[1],!0,!1):new gc(e,n,c[1],!0,!1)},!1)),this.widgetComponent=this.disposeVar(new l.ObjResettingWithEvent(d,()=>{if(c)return e.screenRender?new wn(e,n,c instanceof HTMLDivElement?c:c[0],!0,!1):new gc(e,n,c instanceof HTMLDivElement?c:c[0],!0,!1)},!1)),this.widgetComponent.objChanged.don(()=>{e.minVisibleDistanceChanged.emit()});const u=this.dv(l.createNextAnimateFrameEvent(e.nameChanged,e.styleChanged,r));this.ad(u.don(async()=>{var p;if(e.mode!="Custom"){if(this._textBox.length==0&&e.mode!="Linear01")return;const f=e.style[Object.keys(e.style).filter(y=>y.toUpperCase()=="TEXT")[0]]??e.name,{div:g,styleObj:m}=RI(e.mode,f,this._textBox,this._iconBox,this._icon,this._anchor);c=g,c.innerHTML=OI(c.innerHTML,m)}else{const f=await UI(e.id,{...e.style,text:((p=e.style)==null?void 0:p.text)??e.name});c=[f[0],f[1]]}s.emit()}))}{const c=this.ad(l.createProcessingFromAsyncFunc(async f=>{const g=e.mode;Ze.modeCache.value={...Ze.modeCache.value,[g]:void 0},await f.promise(bI(g)).then(m=>{Ze.modeCache.value={...Ze.modeCache.value,[g]:m},this._icon=m.icon,this._anchor=m.anchor,this._iconBox=m.iconBox,this._textBox=m.textBox,r.emit()})}));let d=null,u=null;const p=()=>{var f,g,m,y;if(e.mode=="Custom"){r.emit();return}if(Reflect.has(Ze.modeCache.value,e.mode))if(Ze.modeCache.value[e.mode])this._icon=(f=Ze.modeCache.value[e.mode])==null?void 0:f.icon,this._anchor=(g=Ze.modeCache.value[e.mode])==null?void 0:g.anchor,this._iconBox=(m=Ze.modeCache.value[e.mode])==null?void 0:m.iconBox,this._textBox=((y=Ze.modeCache.value[e.mode])==null?void 0:y.textBox)??[],r.emit();else{if(d)return;d=Ze.modeCache.changed.don(()=>{var P,S,C,E;Ze.modeCache.value[e.mode]&&(this._icon=(P=Ze.modeCache.value[e.mode])==null?void 0:P.icon,this._anchor=(S=Ze.modeCache.value[e.mode])==null?void 0:S.anchor,this._iconBox=(C=Ze.modeCache.value[e.mode])==null?void 0:C.iconBox,this._textBox=((E=Ze.modeCache.value[e.mode])==null?void 0:E.textBox)??[],r.emit(),d&&d(),d=null)})}else if(!c.isRunning)c.restart();else{if(u)return;u=c.completeEvent.donce(()=>{u&&u(),u=null,c.restart()})}};p(),this.d(e.modeChanged.don(p))}const a=this.ad(new l.Event);{const c=this.dv(l.createNextAnimateFrameEvent(e.anchorChanged,e.autoAnchorChanged,e.offsetChanged)),d=()=>{const u=this.widgetComponent.obj,p=e.autoAnchor?u.defaultAnchor:e.anchor,f=e.offset;if(u instanceof wn)p?(u.czmGeoCustomDivPoi.originRatioAndOffset=[...p,-f[0],-f[1]],u.widgetInfo.style.transformOrigin=`${p[0]*100}% ${p[1]*100}%`):u.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let g=100,m=100;e.sizeByContent&&u.domSize?(g=u.domSize.width/100,m=u.domSize.height/100):(g=e.size[0]/100,m=e.size[1]/100),p?u.czmCustomPrimitive.localPosition=[p[0]*g-f[0]/100,0,p[1]*m-f[1]/100]:u.czmCustomPrimitive.localPosition=[0,0,0]}e.mode=="Custom"&&a.emit()};this.d(c.don(d)),this.ad(new l.ObjResettingWithEvent(this.widgetComponent.objChanged,()=>{if(this.widgetComponent.obj==null)return;const u=new l.Destroyable;return d(),u.d(this.widgetComponent.obj.defaultAnchorChanged.don(d)),u}))}{const c=this.dv(l.createNextAnimateFrameEvent(e.styleChanged,e.showChanged,a)),d=()=>{var S,C,E;if(e.mode!="Custom")return;const u=this.customWidgetComponent.obj;if(!u)return;const p=((S=e.style)==null?void 0:S.imageSize)??w.ESPoi2D.defaults.style.imageSize,f=e.autoAnchor?this.widgetComponent.obj.defaultAnchor:e.anchor,g=((C=e.style)==null?void 0:C.textBoxAlign)??w.ESPoi2D.defaults.style.textBoxAlign,m=g=="start"?0:g=="center"?.5:1,y=((E=e.style)==null?void 0:E.textBoxOffset)??w.ESPoi2D.defaults.style.textBoxOffset,P=e.offset;if(u instanceof wn)f?(u.czmGeoCustomDivPoi.originRatioAndOffset=[m,.5,-P[0]-y[0]+p[0]*(f[0]-.5),-P[1]-y[1]+p[1]*(f[1]-.5)],u.widgetInfo.style.transformOrigin=`${m*100}% ${.5*100}%`):u.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let T=100,I=100;e.sizeByContent&&u.domSize?(T=u.domSize.width/100,I=u.domSize.height/100):(T=e.size[0]/100,I=e.size[1]/100),f?u.czmCustomPrimitive.localPosition=[m*T+(-P[0]-y[0]+p[0]*(f[0]-.5))/100,0,.5*I+(-P[1]-y[1]+p[1]*(f[1]-.5))/100]:u.czmCustomPrimitive.localPosition=[0,0,0]}};this.ad(c.don(d));{const u=this.ad(l.createNextAnimateFrameEvent(this.customWidgetComponent.objChanged,this.widgetComponent.objChanged));this.ad(new l.ObjResettingWithEvent(u,()=>{if(this.customWidgetComponent.obj==null||this.widgetComponent.obj==null)return;const p=new l.Destroyable,f=this.customWidgetComponent.obj,g=()=>{var m,y,P,S;f&&(f instanceof wn?(((m=e.style)==null?void 0:m.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="hover"?(f.czmGeoCustomDivPoi.show=!1,this.d(this.widgetComponent.obj.czmGeoCustomDivPoi.pickedEvent.don(C=>{var T,I;const E=(T=ro(C,"pickResult"))==null?void 0:T.pointerEvent;E&&(f.czmGeoCustomDivPoi.show=e.show&&(((I=e.style)==null?void 0:I.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)&&E.type=="mouseenter")}))):f.czmGeoCustomDivPoi.show=e.show&&(((y=e.style)==null?void 0:y.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow):(((P=e.style)==null?void 0:P.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="hover"?(f.czmCustomPrimitive.show=!1,this.d(e.widgetEvent.don(C=>{var E;C&&(f.czmCustomPrimitive.show=e.show&&(((E=e.style)==null?void 0:E.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)&&C.type=="mouseEnter")}))):f.czmCustomPrimitive.show=e.show&&(((S=e.style)==null?void 0:S.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow))};return g(),p.ad(e.styleChanged.don(g)),p}))}}}get widgetComponent(){return this._widgetComponent}set widgetComponent(e){this._widgetComponent=e}get customWidgetComponent(){return this._customWidgetComponent}set customWidgetComponent(e){this._customWidgetComponent=e}flyTo(e,n){const{sceneObject:o,czmViewer:r,widgetComponent:s}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,n);if(s.obj)s.obj.flyTo(e,n);else{const a=setTimeout(()=>{clearTimeout(a),this.flyTo(e,n)},200)}return o.flyOverEvent.emit(n,"over",r),!0}visibleDistance(e,n){var o,r,s,a,c;if((o=n.viewer)!=null&&o.camera&&e.show){const d=w.getDistancesFromPositions([e.position,Vt(n.viewer.camera)],"NONE")[0];let u=!1;e.minVisibleDistance<e.maxVisibleDistance?u=e.minVisibleDistance<d&&d<e.maxVisibleDistance:e.maxVisibleDistance==0&&(u=d>e.minVisibleDistance);const p=this.widgetComponent.obj,f=this.customWidgetComponent.obj;if(!p)return;p instanceof wn?(p.czmGeoCustomDivPoi.show=e.show&&u,(((r=e.style)==null?void 0:r.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="default"&&f&&(f.czmGeoCustomDivPoi.show=e.show&&u&&(((s=e.style)==null?void 0:s.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow))):(p.czmCustomPrimitive.show=e.show&&u,(((a=e.style)==null?void 0:a.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="default"&&f&&(f.czmCustomPrimitive.show=e.show&&u&&(((c=e.style)==null?void 0:c.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)))}}};v(Ze,"type",Ze.register("ESCesiumViewer",w.ESPoi2D.type,Ze)),v(Ze,"modeCache",l.react({}));let cp=Ze;const Na=class Na extends Ce{constructor(e,n){super(e,n);v(this,"_czmModelPoi3D");if(!n.viewer){console.warn("viewer is undefined!");return}const r=this.dv(l.createNextAnimateFrameEvent(e.modeChanged));this.dv(new l.ObjResettingWithEvent(r,()=>{let{mode:s}=e;const a=w.ESSceneObject.context.getStrFromEnv(`\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${s}/SM_POI_${s.charAt(0).toUpperCase()+s.slice(1)}.gltf`);return this._czmModelPoi3D=new WI(e,n,a)}))}visibleDistance(e,n){var o;if((o=n.viewer)!=null&&o.camera&&e.show){const r=w.getDistancesFromPositions([e.position,Vt(n.viewer.camera)],"NONE")[0];let s=!1;if(e.minVisibleDistance<e.maxVisibleDistance?s=e.minVisibleDistance<r&&r<e.maxVisibleDistance:e.maxVisibleDistance==0&&(s=r>e.minVisibleDistance),!this._czmModelPoi3D)return;this._czmModelPoi3D.czmModel&&(this._czmModelPoi3D.czmModel.show=e.show&&s)}}flyTo(e,n){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,n):this._czmModelPoi3D?(this._czmModelPoi3D.flyTo(e,n),!0):!1:!1}};v(Na,"type",Na.register("ESCesiumViewer",w.ESPoi3D.type,Na));let hp=Na;class WI extends l.Destroyable{constructor(e,n,o){super();v(this,"czmModel");this._sceneObject=e,this._czmViewer=n,this._modelUrl=o,this.czmModel=this.ad(new at(this._czmViewer,this._sceneObject.id)),this.d(this.czmModel.readyEvent.don(c=>{this.czmModel.gltf.animations&&(this.czmModel.activeAnimationsJson=this.czmModel.gltf.animations.map((d,u)=>({index:u,loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration * 2"}))),this._updateMaterial(this._sceneObject,this.czmModel)})),this.ad(new rc(n.viewer,this.czmModel));const r=this._sceneObject,s=this.czmModel;s.url=this._modelUrl,this.d(l.bind([s,"position"],[r,"position"])),this.d(et([s,"rotation"],[r,"rotation"])),this.d(l.track([s,"scale"],[r,"scale"])),this.d(l.track([s,"show"],[r,"show"]));{const c=this.dv(l.createNextAnimateFrameEvent(r.allowPickingChanged,r.editingChanged)),d=()=>{r.allowPicking&&!r.editing?s.allowPicking=!0:s.allowPicking=!1};d(),this.d(c.don(d))}const a=this.dv(l.createNextAnimateFrameEvent(r.nameChanged,r.styleChanged));this.d(a.don(()=>this._updateMaterial(r,s)))}async _updateMaterial(e,n){var s,a;const o=document.createElement("div");o.style.position="absolute",o.style.zIndex="-1",o.style.bottom="108px",o.style.right="0px";const r=e.style[Object.keys(e.style).filter(c=>c.toUpperCase()==="TEXT")[0]]??e.name;o.innerHTML=`<div style="width: 512px; height: 128px;color: #fff;text-align: center;line-height: 128px;font-size: 50px;margin: 0 auto;">
1349
+ `,UI=async(t,i)=>{const e=(i==null?void 0:i.fontSize)??w.ESPoi2D.defaults.style.fontSize,n=(i==null?void 0:i.image)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/anchor.png",o=(i==null?void 0:i.imageSize)??w.ESPoi2D.defaults.style.imageSize,r=(i==null?void 0:i.text)??w.ESPoi2D.defaults.style.text,s=(i==null?void 0:i.textBackground)??"${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/Custom/textBox_01.png",a=(i==null?void 0:i.textBackgroundColor)??w.ESPoi2D.defaults.style.textBackgroundColor,c=(i==null?void 0:i.textBackgroundSize)??w.ESPoi2D.defaults.style.textBackgroundSize,d=(i==null?void 0:i.textColor)??w.ESPoi2D.defaults.style.textColor,u=(i==null?void 0:i.textOffset)??w.ESPoi2D.defaults.style.textOffset;let p=VI;p=p.replace(/{{CustomContainer}}/g,`ESPoi2DCustomContainer${t}`),p=p.replace(/{{CustomImage}}/g,`ESPoi2DCustomImage${t}`),p=p.replace(/{{CustomTextContainer}}/g,`ESPoi2DCustomTextContainer${t}`),p=p.replace(/{{FONT_SIZE}}/g,e+"px"),p=p.replace(/{{IMAGE_SRC}}/g,w.ESSceneObject.context.getStrFromEnv(n)),p=p.replace(/{{IMAGE_WIDTH}}/g,o[0]+"px"),p=p.replace(/{{IMAGE_HEIGHT}}/g,o[1]+"px"),p=p.replace(/{{TEXT}}/g,r),p=p.replace(/{{TEXT_BACKGROUND}}/g,w.ESSceneObject.context.getStrFromEnv(s)),p=p.replace(/{{TEXT_BACKGROUND_COLOR}}/g,`rgb(${a.map(g=>g*255).join(",")})`),p=p.replace(/{{TEXT_BACKGROUND_WIDTH}}/g,c[0]+"px"),p=p.replace(/{{TEXT_BACKGROUND_HEIGHT}}/g,c[1]+"px"),p=p.replace(/{{TEXT_COLOR}}/g,`rgb(${d.map(g=>g*255).join(",")})`),p=p.replace(/{{TEXT_OFFSET_X}}/g,u[0]+"px"),p=p.replace(/{{TEXT_OFFSET_Y}}/g,u[1]+"px");const f=document.createElement("div");return f.innerHTML=p,[f.children[0].children[0],f.children[0].children[1]]},Ze=class Ze extends xs{constructor(e,n){super(e,n);v(this,"_widgetComponent");v(this,"_customWidgetComponent");v(this,"_textBox",[]);v(this,"_iconBox");v(this,"_icon");v(this,"_anchor");if(!n.viewer){console.warn("viewer is undefined!");return}const r=this.ad(new l.Event),s=this.ad(new l.Event);{let c;const d=this.ad(l.createNextAnimateFrameEvent(e.screenRenderChanged,s));this.customWidgetComponent=this.disposeVar(new l.ObjResettingWithEvent(d,()=>{if(!(!c||e.mode!="Custom"))return e.screenRender?new wn(e,n,c[1],!0,!1):new gc(e,n,c[1],!0,!1)},!1)),this.widgetComponent=this.disposeVar(new l.ObjResettingWithEvent(d,()=>{if(c)return e.screenRender?new wn(e,n,c instanceof HTMLDivElement?c:c[0],!0,!1):new gc(e,n,c instanceof HTMLDivElement?c:c[0],!0,!1)},!1)),this.widgetComponent.objChanged.don(()=>{e.minVisibleDistanceChanged.emit()});const u=this.dv(l.createNextAnimateFrameEvent(e.nameChanged,e.styleChanged,r));this.ad(u.don(async()=>{var p;if(e.mode!="Custom"){if(this._textBox.length==0&&e.mode!="Linear01")return;const f=e.style[Object.keys(e.style).filter(y=>y.toUpperCase()=="TEXT")[0]]??e.name,{div:g,styleObj:m}=RI(e.mode,f,this._textBox,this._iconBox,this._icon,this._anchor);c=g,c.innerHTML=OI(c.innerHTML,m)}else{const f=await UI(e.id,{...e.style,text:((p=e.style)==null?void 0:p.text)??e.name});c=[f[0],f[1]]}s.emit()}))}{const c=this.ad(l.createProcessingFromAsyncFunc(async f=>{const g=e.mode;Ze.modeCache.value={...Ze.modeCache.value,[g]:void 0},await f.promise(bI(g)).then(m=>{Ze.modeCache.value={...Ze.modeCache.value,[g]:m},this._icon=m.icon,this._anchor=m.anchor,this._iconBox=m.iconBox,this._textBox=m.textBox,r.emit()})}));let d=null,u=null;const p=()=>{var f,g,m,y;if(e.mode=="Custom"){r.emit();return}if(Reflect.has(Ze.modeCache.value,e.mode))if(Ze.modeCache.value[e.mode])this._icon=(f=Ze.modeCache.value[e.mode])==null?void 0:f.icon,this._anchor=(g=Ze.modeCache.value[e.mode])==null?void 0:g.anchor,this._iconBox=(m=Ze.modeCache.value[e.mode])==null?void 0:m.iconBox,this._textBox=((y=Ze.modeCache.value[e.mode])==null?void 0:y.textBox)??[],r.emit();else{if(d)return;d=Ze.modeCache.changed.don(()=>{var P,S,C,E;Ze.modeCache.value[e.mode]&&(this._icon=(P=Ze.modeCache.value[e.mode])==null?void 0:P.icon,this._anchor=(S=Ze.modeCache.value[e.mode])==null?void 0:S.anchor,this._iconBox=(C=Ze.modeCache.value[e.mode])==null?void 0:C.iconBox,this._textBox=((E=Ze.modeCache.value[e.mode])==null?void 0:E.textBox)??[],r.emit(),d&&d(),d=null)})}else if(!c.isRunning)c.restart();else{if(u)return;u=c.completeEvent.donce(()=>{u&&u(),u=null,c.restart()})}};p(),this.d(e.modeChanged.don(p))}const a=this.ad(new l.Event);{const c=this.dv(l.createNextAnimateFrameEvent(e.anchorChanged,e.autoAnchorChanged,e.offsetChanged)),d=()=>{const u=this.widgetComponent.obj,p=e.autoAnchor?u.defaultAnchor:e.anchor,f=e.offset;if(u instanceof wn)p?(u.czmGeoCustomDivPoi.originRatioAndOffset=[...p,-f[0],-f[1]],u.widgetInfo.style.transformOrigin=`${p[0]*100}% ${p[1]*100}%`):u.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let g=100,m=100;e.sizeByContent&&u.domSize?(g=u.domSize.width/100,m=u.domSize.height/100):(g=e.size[0]/100,m=e.size[1]/100),p?u.czmCustomPrimitive.localPosition=[p[0]*g-f[0]/100,0,p[1]*m-f[1]/100]:u.czmCustomPrimitive.localPosition=[0,0,0]}e.mode=="Custom"&&a.emit()};this.d(c.don(d)),this.ad(new l.ObjResettingWithEvent(this.widgetComponent.objChanged,()=>{if(this.widgetComponent.obj==null)return;const u=new l.Destroyable;return d(),u.d(this.widgetComponent.obj.defaultAnchorChanged.don(d)),u}))}{const c=this.dv(l.createNextAnimateFrameEvent(e.styleChanged,e.showChanged,a)),d=()=>{var S,C,E;if(e.mode!="Custom")return;const u=this.customWidgetComponent.obj;if(!u)return;const p=((S=e.style)==null?void 0:S.imageSize)??w.ESPoi2D.defaults.style.imageSize,f=e.autoAnchor?this.widgetComponent.obj.defaultAnchor:e.anchor,g=((C=e.style)==null?void 0:C.textBoxAlign)??w.ESPoi2D.defaults.style.textBoxAlign,m=g=="start"?0:g=="center"?.5:1,y=((E=e.style)==null?void 0:E.textBoxOffset)??w.ESPoi2D.defaults.style.textBoxOffset,P=e.offset;if(u instanceof wn)f?(u.czmGeoCustomDivPoi.originRatioAndOffset=[m,.5,-P[0]-y[0]+p[0]*(f[0]-.5),-P[1]-y[1]+p[1]*(f[1]-.5)],u.widgetInfo.style.transformOrigin=`${m*100}% ${.5*100}%`):u.czmGeoCustomDivPoi.originRatioAndOffset=[0,0,0,0];else{let T=100,I=100;e.sizeByContent&&u.domSize?(T=u.domSize.width/100,I=u.domSize.height/100):(T=e.size[0]/100,I=e.size[1]/100),f?u.czmCustomPrimitive.localPosition=[m*T+(-P[0]-y[0]+p[0]*(f[0]-.5))/100,0,.5*I+(-P[1]-y[1]+p[1]*(f[1]-.5))/100]:u.czmCustomPrimitive.localPosition=[0,0,0]}};this.ad(c.don(d));{const u=this.ad(l.createNextAnimateFrameEvent(this.customWidgetComponent.objChanged,this.widgetComponent.objChanged));this.ad(new l.ObjResettingWithEvent(u,()=>{if(this.customWidgetComponent.obj==null||this.widgetComponent.obj==null)return;const p=new l.Destroyable,f=this.customWidgetComponent.obj,g=()=>{var m,y,P,S;f&&(f instanceof wn?(((m=e.style)==null?void 0:m.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="hover"?(f.czmGeoCustomDivPoi.show=!1,this.d(this.widgetComponent.obj.czmGeoCustomDivPoi.pickedEvent.don(C=>{var T,I;const E=(T=ro(C,"pickResult"))==null?void 0:T.pointerEvent;E&&(f.czmGeoCustomDivPoi.show=e.show&&(((I=e.style)==null?void 0:I.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)&&E.type=="mouseenter")}))):f.czmGeoCustomDivPoi.show=e.show&&(((y=e.style)==null?void 0:y.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow):(((P=e.style)==null?void 0:P.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="hover"?(f.czmCustomPrimitive.show=!1,this.d(e.widgetEvent.don(C=>{var E;C&&(f.czmCustomPrimitive.show=e.show&&(((E=e.style)==null?void 0:E.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)&&C.type=="mouseEnter")}))):f.czmCustomPrimitive.show=e.show&&(((S=e.style)==null?void 0:S.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow))};return g(),p.ad(e.styleChanged.don(g)),p}))}}}get widgetComponent(){return this._widgetComponent}set widgetComponent(e){this._widgetComponent=e}get customWidgetComponent(){return this._customWidgetComponent}set customWidgetComponent(e){this._customWidgetComponent=e}flyTo(e,n){const{sceneObject:o,czmViewer:r,widgetComponent:s}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,n);if(s.obj)s.obj.flyTo(e,n);else{const a=setTimeout(()=>{clearTimeout(a),this.flyTo(e,n)},200)}return o.flyOverEvent.emit(n,"over",r),!0}visibleDistance(e,n){var o,r,s,a,c;if((o=n.viewer)!=null&&o.camera&&e.show){const d=w.getDistancesFromPositions([e.position,Vt(n.viewer.camera)],"NONE")[0];let u=!1;e.minVisibleDistance<e.maxVisibleDistance?u=e.minVisibleDistance<d&&d<e.maxVisibleDistance:e.maxVisibleDistance==0&&(u=d>e.minVisibleDistance);const p=this.widgetComponent.obj,f=this.customWidgetComponent.obj;if(!p)return;p instanceof wn?(p.czmGeoCustomDivPoi.show=e.show&&u,(((r=e.style)==null?void 0:r.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="default"&&f&&(f.czmGeoCustomDivPoi.show=e.show&&u&&(((s=e.style)==null?void 0:s.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow))):(p.czmCustomPrimitive.show=e.show&&u,(((a=e.style)==null?void 0:a.textBoxMode)??w.ESPoi2D.defaults.style.textBoxMode)=="default"&&f&&(f.czmCustomPrimitive.show=e.show&&u&&(((c=e.style)==null?void 0:c.textBoxShow)??w.ESPoi2D.defaults.style.textBoxShow)))}}};v(Ze,"type",Ze.register("ESCesiumViewer",w.ESPoi2D.type,Ze)),v(Ze,"modeCache",l.react({}));let cp=Ze;const Na=class Na extends Ce{constructor(e,n){super(e,n);v(this,"_czmModelPoi3D");if(!n.viewer){console.warn("viewer is undefined!");return}const r=this.dv(l.createNextAnimateFrameEvent(e.modeChanged));this.dv(new l.ObjResettingWithEvent(r,()=>{let{mode:s}=e;const a=w.ESSceneObject.context.getStrFromEnv(`\${earthsdk3-assets-script-dir}/assets/glb/poi3d/${s.charAt(0).toLocaleLowerCase()+s.slice(1)}/SM_${["triangle","diamond"].includes(s)?"POI":"3dPoi"}_${s.charAt(0).toUpperCase()+s.slice(1)}.glb`);return this._czmModelPoi3D=new WI(e,n,a)}))}visibleDistance(e,n){var o;if((o=n.viewer)!=null&&o.camera&&e.show){const r=w.getDistancesFromPositions([e.position,Vt(n.viewer.camera)],"NONE")[0];let s=!1;if(e.minVisibleDistance<e.maxVisibleDistance?s=e.minVisibleDistance<r&&r<e.maxVisibleDistance:e.maxVisibleDistance==0&&(s=r>e.minVisibleDistance),!this._czmModelPoi3D)return;this._czmModelPoi3D.czmModel&&(this._czmModelPoi3D.czmModel.show=e.show&&s)}}flyTo(e,n){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,n):this._czmModelPoi3D?(this._czmModelPoi3D.flyTo(e,n),!0):!1:!1}};v(Na,"type",Na.register("ESCesiumViewer",w.ESPoi3D.type,Na));let hp=Na;class WI extends l.Destroyable{constructor(e,n,o){super();v(this,"czmModel");this._sceneObject=e,this._czmViewer=n,this._modelUrl=o,this.czmModel=this.ad(new at(this._czmViewer,this._sceneObject.id)),this.d(this.czmModel.readyEvent.don(c=>{this.czmModel.gltf.animations&&(this.czmModel.activeAnimationsJson=this.czmModel.gltf.animations.map((d,u)=>({index:u,loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration * 2"}))),this._updateMaterial(this._sceneObject,this.czmModel)})),this.ad(new rc(n.viewer,this.czmModel));const r=this._sceneObject,s=this.czmModel;s.url=this._modelUrl,this.d(l.bind([s,"position"],[r,"position"])),this.d(et([s,"rotation"],[r,"rotation"])),this.d(l.track([s,"scale"],[r,"scale"])),this.d(l.track([s,"show"],[r,"show"]));{const c=this.dv(l.createNextAnimateFrameEvent(r.allowPickingChanged,r.editingChanged)),d=()=>{r.allowPicking&&!r.editing?s.allowPicking=!0:s.allowPicking=!1};d(),this.d(c.don(d))}const a=this.dv(l.createNextAnimateFrameEvent(r.nameChanged,r.styleChanged));this.d(a.don(()=>this._updateMaterial(r,s)))}async _updateMaterial(e,n){var s,a;const o=document.createElement("div");o.style.position="absolute",o.style.zIndex="-1",o.style.bottom="108px",o.style.right="0px";const r=e.style[Object.keys(e.style).filter(c=>c.toUpperCase()==="TEXT")[0]]??e.name;o.innerHTML=`<div style="width: 512px; height: 128px;color: #fff;text-align: center;line-height: 128px;font-size: 50px;margin: 0 auto;">
1350
1350
  <span style="display: inline-block;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;width: 512px;">${r}</span>
1351
1351
  </div>`,document.body.contains(o)||document.body.appendChild(o);try{const c=await $h(o,{backgroundColor:null,allowTaint:!1,useCORS:!0});document.body.contains(o)&&document.body.removeChild(o),n.setMaterial({Text:{baseColorTexture:{value:c.toDataURL("image/png",1)}},lambert5:{baseColorFactor:((s=e.style)==null?void 0:s.UI_Color)??[1,1,1,1]},default:{baseColorFactor:((a=e.style)==null?void 0:a.FX_Color)??[1,1,1,1]}})}catch(c){console.error(c),document.body.contains(o)&&document.body.removeChild(o)}}flyTo(e,n){const{_czmViewer:o,_sceneObject:r,czmModel:s}=this;It(o,r,n,e,s,!0)}}const Va=class Va extends Ce{constructor(e,n){super(e,n);v(this,"_czmCustomPrimitive");v(this,"_causticsTexture");v(this,"_foamTexture");v(this,"_heightMapTexture");v(this,"_normalMapTexture");v(this,"isTimestamp",e=>{if(e.toString().length!==13||isNaN(e))return console.log("时间戳格式错误"),!1;const o=new Date(e);return isNaN(o.getTime())?(console.log("时间戳格式错误"),!1):!0});v(this,"getClosestTimestampIndex",(e,n)=>{for(var o=0,r=1/0,s=0;s<n.length;s++){var a=Math.abs(e-n[s]);a<r&&(r=a,o=s)}return o});if(this._czmCustomPrimitive=this.dv(new ke(n,e.id)),this._causticsTexture=this.dv(new Le(n)),this._foamTexture=this.dv(new Le(n)),this._heightMapTexture=this.dv(new Le(n)),this._normalMapTexture=this.dv(new Le(n)),!n.viewer){console.warn("viewer is undefined!");return}const r=this.czmCustomPrimitive,s=this.causticsTexture,a=this.foamTexture,c=this.heightMapTexture,d=this.normalMapTexture;s.uri=w.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/caustics.jpg"),a.uri=w.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/foam.jpg"),c.uri=w.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/heightmap.jpg"),d.uri=w.ESSceneObject.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/water/water_normalmap.png"),this.d(l.track([r,"show"],[e,"show"])),this.d(l.track([r,"allowPicking"],[e,"allowPicking"])),this.d(l.bind([r,"position"],[e,"position"])),this.d(l.bind([r,"rotation"],[e,"rotation"])),this.d(l.bind([r,"scale"],[e,"scale"])),r.pass="TRANSLUCENT",r.primitiveType="TRIANGLES",r.renderState={depthTest:{enabled:!0},cull:{enabled:!0,face:1029},depthMask:!0,blending:{enabled:!0,equationRgb:32774,equationAlpha:32774,functionSourceRgb:770,functionSourceAlpha:1,functionDestinationRgb:771,functionDestinationAlpha:771}},r.vertexShaderSource=`
1352
1352
  in vec3 position;
@@ -2255,10 +2255,10 @@ async function initCesiumViewer(container, czmViewer) {
2255
2255
  `;function Kk(){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 rt=class rt extends w.ESViewer{constructor(e){super(e);v(this,"_disabledInputStack",this.disposeVar(l.react(0)));v(this,"_viewer",this.dv(l.react(void 0)));v(this,"_viewerInstance");v(this,"_viewerLegend");v(this,"pickCustomAttachedInfo");v(this,"_fps",this.dv(l.react(0)));v(this,"_notSupportEditingCount",this.disposeVar(l.react(0)));v(this,"_editingSystem",Dh);v(this,"_moveObjectsProcess",this.ad(i_()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new b2(this)),this.ad(new R2(this)),this.dv(new l.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new z2(this)})),this._viewerLegend=this.dv(new qk(this)),this._viewerInstance=this.dv(new l.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new cm(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=ie([1,1,1,1]))}));const n=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new l.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new FF(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&&Yt(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,n,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.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],rt.getHeightsScartchCarto);return n.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Vt(e),rotation:$o(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let r=o.positionWC;const s=h.Cartesian3.fromDegrees(...e),a=h.Cartesian3.distance(o.positionWC,s),c=h.Cartesian3.subtract(s,r,new h.Cartesian3);h.Cartesian3.normalize(c,c);const d=h.Transforms.rotationMatrixFromPositionVelocity(r,c,h.Ellipsoid.WGS84),u=h.Matrix4.fromRotationTranslation(d,r);var p=h.Transforms.eastNorthUpToFixedFrame(h.Matrix4.getTranslation(u,new h.Cartesian3),h.Ellipsoid.WGS84,new h.Matrix4),f=h.Matrix4.multiply(h.Matrix4.inverse(p,new h.Matrix4),u,new h.Matrix4),g=h.Matrix4.getMatrix3(f,new h.Matrix3),m=h.Quaternion.fromRotationMatrix(g),y=h.HeadingPitchRoll.fromQuaternion(m);const P=$o(o);return{distance:a,heading:h.Math.toDegrees(y.heading)+90,pitch:h.Math.toDegrees(y.pitch),flyDuration:1,hDelta:-(P[0]-(h.Math.toDegrees(y.heading)+90)),pDelta:P[1]-h.Math.toDegrees(y.pitch)}}flyIn(e,n,o,r="default"){var c;if(!n)return;n[0]=-n[0];const s={position:e,rotation:n,duration:(o??1)*1e3},a=(c=this.viewer)==null?void 0:c.camera;return a&&ps(a,s)}flyTo(e,n,o="default"){var g;const{distance:r,heading:s,pitch:a,flyDuration:c,hDelta:d,pDelta:u}=e,p={position:n,viewDistance:r,rotation:[s,a,0],duration:c*1e3,hdelta:d,pdelta:u},f=(g=this.viewer)==null?void 0:g.camera;return f&&ps(f,p)}flyToBoundingSphere(e,n,o=1){var p;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],s=w.getGeoBoundingSphereFromPositions(r);if(!s)return;const{center:a,radius:c}=s,d={position:a,viewDistance:n??c,rotation:[0,-90,0],duration:o*1e3},u=(p=this.viewer)==null?void 0:p.camera;return u&&ps(u,d)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Vt(e),rotation:$o(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,n=4.2,o=1.6){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.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 r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToRotateGlobe(e,n,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,n,o,r,s,a){var c,d;(d=(c=this._viewerInstance)==null?void 0:c.obj)==null||d.navigationManager.changeToLine(e,n,o,r,s,a),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,n,o,r,s){var a,c;(c=(a=this._viewerInstance)==null?void 0:a.obj)==null||c.navigationManager.changeToRotatePoint(e,n,o,r,s),this._navigationMode.value="RotatePoint"}changeToFollow(e,n,o,r,s){var a,c;(c=(a=this._viewerInstance)==null?void 0:a.obj)==null||c.navigationManager.changeToFollow(e,n,o,r,s),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){return window.g_XE3CopyRights??{}}async getHeightByLonLat(e,n,o){if(!this.viewer)return null;const r=h.Cartographic.fromDegrees(e,n,void 0,rt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,n){const o=e.map(s=>this.getHeightByLonLat(...s));return await Promise.all(o)}async capture(e,n){if(this.viewer)return await jm(this.viewer.scene,e,n)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const n=this.viewer.scene.cartesianToCanvasCoordinates(Ve(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 r=e.mainClass;r&&(console.log(n,"这是Cesium的模式"),n!=null&&(r.editingID=`${o.callSource}_${l.createGuid()}`,this._editingSystem.create(this,r,n,o.useKeyToSwitch)))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const n=[],o=l.createGuid();for(let r=0;r<e.length;r++){const a=e[r].mainClass;a.editingID=o,a&&n.push(a)}this._moveObjectsProcess.restart(void 0,this,n,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=rt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!rt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=rt.latestDefaultAccessToken}positionsToLocalPositions(e,n){return Mt(e,n)}localPositionsToPositions(e,n){return gn(e,n)}isPointVisible(e){if(!this.viewer)return!1;const n=Ve(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 r=this.viewer.scene.cartesianToCanvasCoordinates(n);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},n=rt.defaults;return{...e,more:[...e.more,new w.GroupProperty([],"通用","通用"),new w.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",Qk,Zk,!0),new w.FunctionProperty([],()=>rt.getCesiumIonToken(),[],"获取官方token"),new w.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new w.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new w.BooleanProperty([this,"flashLighting"],"头顶灯",n.flashLighting,!0),new w.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",n.particleGlobalControl,!0),new w.GroupProperty([],"Viewer","Viewer"),new w.NumberProperty([this,"resolutionScale"],"分辨率比率",n.resolutionScale,!0),new w.NumberProperty([this,"msaaSamples"],"msaaSamples",n.msaaSamples,!0),new w.BooleanProperty([this,"shadows"]),new w.GroupProperty([],"比例尺","比例尺(Legend)"),new w.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new w.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new w.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new w.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new w.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new w.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new w.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new w.GroupProperty([],"场景","场景(Scene)"),new w.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",n.sceneSplitPosition,!0),new w.GroupProperty([],"Globe","Globe"),new w.BooleanProperty([this,"depthTestAgainstTerrain"],"depthTestAgainstTerrain",n.depthTestAgainstTerrain,!0),new w.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",n.sceneGlobeShadows,!0),new w.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new w.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new w.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new w.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new w.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new w.BooleanProperty([this,"sceneGlobeShowSkirts"]),new w.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new w.ColorProperty([this,"sceneGlobeBaseColor"]),new w.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new w.JsonProperty([this,"sceneGlobeClippingPlanes"]),new w.StringProperty([this,"sceneGlobeClippingPlanesId"]),new w.JsonProperty([this,"sceneGlobeClippingPolygons"]),new w.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new w.GroupProperty([],"underground","underground"),new w.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",n.sceneGlobeUndergroundColor,!0),new w.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",n.sceneGlobeUndergroundColorAlphaByDistance,!0),new w.GroupProperty([],"Translucency","Translucency"),new w.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",n.sceneGlobeTranslucencyEnabled,!0),new w.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",n.sceneGlobeTranslucencyBackFaceAlpha,!0),new w.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",n.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new w.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",n.sceneGlobeTranslucencyFrontFaceAlpha,!0),new w.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",n.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new w.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",n.sceneGlobeTranslucencyRectangle,!0),new w.GroupProperty([],"Sun","Sun"),new w.BooleanProperty([this,"sun"],"sun",n.sun,!0),new w.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",n.sceneSunGlowFactor,!0),new w.GroupProperty([],"Moon","Moon"),new w.BooleanProperty([this,"moon"],"moon",n.moon,!0),new w.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",n.sceneMoonTextureUrl,!0),new w.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",n.sceneMoonOnlySunLighting,!0),new w.GroupProperty([],"SkyBox","SkyBox"),new w.BooleanProperty([this,"sceneSkyBoxShow"]),new w.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",n.sceneSkyBoxSources,void 0,!0),new w.GroupProperty([],"Background","Background"),new w.BooleanProperty([this,"xbsjUseBackground"]),new w.StringProperty([this,"xbsjBackgroundImageUri"]),new w.ColorProperty([this,"xbsjBackgroundColor"]),new w.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new w.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",n.xbsjLocalBoxSources,void 0,!0),new w.ColorProperty([this,"sceneBackgroundColor"]),new w.GroupProperty([],"Fog","Fog"),new w.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",n.sceneFogEnabled,!0),new w.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",n.sceneFogDensity,!0),new w.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",n.sceneFogScreenSpaceErrorFactor,!0),new w.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",n.sceneFogMinimumBrightness,!0),new w.GroupProperty([],"Sscc","Sscc"),new w.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",n.sceneSsccEnableInputs,!0),new w.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",n.sceneSsccEnableCollisionDetection,!0),new w.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",n.sceneSsccZoomFactor,!0),new w.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new w.GroupProperty([],"后处理","后处理"),new w.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",n.scenePpsfxaaEnabled,!0),new w.GroupProperty([],"环境遮蔽","环境遮蔽"),new w.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new w.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new w.GroupProperty([],"Bloom","Bloom"),new w.BooleanProperty([this,"scenePpsBloomEnabled"]),new w.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new w.NumberProperty([this,"scenePpsBloomContrast"]),new w.NumberProperty([this,"scenePpsBloomBrightness"]),new w.NumberProperty([this,"scenePpsBloomDelta"]),new w.NumberProperty([this,"scenePpsBloomSigma"]),new w.NumberProperty([this,"scenePpsBloomStepSize"]),new w.GroupProperty([],"调试","调试"),new w.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",n.sceneDebugShowFramesPerSecond,!0),new w.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",n.sceneDebugShowCommands,!0),new w.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",n.sceneDebugShowFrustums,!0),new w.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",n.sceneDebugShowFrustumPlanes,!0),new w.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",n.sceneDebugShowDepthFrustum,!0),new w.GroupProperty([],"Inspector","Inspector"),new w.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",n.showCesiumInspector,!0),new w.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",n.cesiumInspectorWireframe,!0),new w.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",n.showCesium3DTilesInspector,!0)]}}};v(rt,"type",rt.register("ESCesiumViewer",rt)),v(rt,"getCesiumIonToken",Kk),v(rt,"currentDefaultAccessToken",h.Ion.defaultAccessToken),v(rt,"latestDefaultAccessToken"),v(rt,"ObjectsToExcludeWrapper",k2),v(rt,"defaults",{...w.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,depthTestAgainstTerrain:!1,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(rt,"getHeightsScartchCarto",new h.Cartographic);let Re=rt;(t=>{t.createDefaultProps=()=>({...w.ESViewer.createDefaultProps(),...Yk()})})(Re||(Re={})),l.extendClassProps(Re.prototype,Re.createDefaultProps),R.copyright=void 0;try{const t="earthsdk3-cesium",i="3.4.0-beta.6",e="2025-09-02T06:26:49.000Z",n="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="1c85a7938326029bfd0efde53b240e71da26ae46",a=((Date.now()-1756794409e3)/36e5).toFixed(1),c=`%c🌏 ${t}%c ${i}.${r.slice(0,8)}.${e} (距今${a}个小时)
2258
+ `;console.log(e);const n=window.prompt(e,t);n&&window.open(n,"_blank")}const rt=class rt extends w.ESViewer{constructor(e){super(e);v(this,"_disabledInputStack",this.disposeVar(l.react(0)));v(this,"_viewer",this.dv(l.react(void 0)));v(this,"_viewerInstance");v(this,"_viewerLegend");v(this,"pickCustomAttachedInfo");v(this,"_fps",this.dv(l.react(0)));v(this,"_notSupportEditingCount",this.disposeVar(l.react(0)));v(this,"_editingSystem",Dh);v(this,"_moveObjectsProcess",this.ad(i_()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new b2(this)),this.ad(new R2(this)),this.dv(new l.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new z2(this)})),this._viewerLegend=this.dv(new qk(this)),this._viewerInstance=this.dv(new l.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new cm(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=ie([1,1,1,1]))}));const n=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new l.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new FF(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&&Yt(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,n,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.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],rt.getHeightsScartchCarto);return n.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Vt(e),rotation:$o(e)}}calcFlyToParam(e){if(!this.getCameraInfo()||!this.viewer)return;const{camera:o}=this.viewer;let r=o.positionWC;const s=h.Cartesian3.fromDegrees(...e),a=h.Cartesian3.distance(o.positionWC,s),c=h.Cartesian3.subtract(s,r,new h.Cartesian3);h.Cartesian3.normalize(c,c);const d=h.Transforms.rotationMatrixFromPositionVelocity(r,c,h.Ellipsoid.WGS84),u=h.Matrix4.fromRotationTranslation(d,r);var p=h.Transforms.eastNorthUpToFixedFrame(h.Matrix4.getTranslation(u,new h.Cartesian3),h.Ellipsoid.WGS84,new h.Matrix4),f=h.Matrix4.multiply(h.Matrix4.inverse(p,new h.Matrix4),u,new h.Matrix4),g=h.Matrix4.getMatrix3(f,new h.Matrix3),m=h.Quaternion.fromRotationMatrix(g),y=h.HeadingPitchRoll.fromQuaternion(m);const P=$o(o);return{distance:a,heading:h.Math.toDegrees(y.heading)+90,pitch:h.Math.toDegrees(y.pitch),flyDuration:1,hDelta:-(P[0]-(h.Math.toDegrees(y.heading)+90)),pDelta:P[1]-h.Math.toDegrees(y.pitch)}}flyIn(e,n,o,r="default"){var c;if(!n)return;n[0]=-n[0];const s={position:e,rotation:n,duration:(o??1)*1e3},a=(c=this.viewer)==null?void 0:c.camera;return a&&ps(a,s)}flyTo(e,n,o="default"){var g;const{distance:r,heading:s,pitch:a,flyDuration:c,hDelta:d,pDelta:u}=e,p={position:n,viewDistance:r,rotation:[s,a,0],duration:c*1e3,hdelta:d,pdelta:u},f=(g=this.viewer)==null?void 0:g.camera;return f&&ps(f,p)}flyToBoundingSphere(e,n,o=1){var p;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],s=w.getGeoBoundingSphereFromPositions(r);if(!s)return;const{center:a,radius:c}=s,d={position:a,viewDistance:n??c,rotation:[0,-90,0],duration:o*1e3},u=(p=this.viewer)==null?void 0:p.camera;return u&&ps(u,d)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Vt(e),rotation:$o(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,n=4.2,o=1.6){var r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.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 r,s;(s=(r=this._viewerInstance)==null?void 0:r.obj)==null||s.navigationManager.changeToRotateGlobe(e,n,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,n,o,r,s,a){var c,d;(d=(c=this._viewerInstance)==null?void 0:c.obj)==null||d.navigationManager.changeToLine(e,n,o,r,s,a),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,n,o,r,s){var a,c;(c=(a=this._viewerInstance)==null?void 0:a.obj)==null||c.navigationManager.changeToRotatePoint(e,n,o,r,s),this._navigationMode.value="RotatePoint"}changeToFollow(e,n,o,r,s){var a,c;(c=(a=this._viewerInstance)==null?void 0:a.obj)==null||c.navigationManager.changeToFollow(e,n,o,r,s),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 r=h.Cartographic.fromDegrees(e,n,void 0,rt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,n){const o=e.map(s=>this.getHeightByLonLat(...s));return await Promise.all(o)}async capture(e,n){if(this.viewer)return await jm(this.viewer.scene,e,n)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const n=this.viewer.scene.cartesianToCanvasCoordinates(Ve(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 r=e.mainClass;r&&(console.log(n,"这是Cesium的模式"),n!=null&&(r.editingID=`${o.callSource}_${l.createGuid()}`,this._editingSystem.create(this,r,n,o.useKeyToSwitch)))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const n=[],o=l.createGuid();for(let r=0;r<e.length;r++){const a=e[r].mainClass;a.editingID=o,a&&n.push(a)}this._moveObjectsProcess.restart(void 0,this,n,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=rt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!rt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=rt.latestDefaultAccessToken}positionsToLocalPositions(e,n){return Mt(e,n)}localPositionsToPositions(e,n){return gn(e,n)}isPointVisible(e){if(!this.viewer)return!1;const n=Ve(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 r=this.viewer.scene.cartesianToCanvasCoordinates(n);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},n=rt.defaults;return{...e,more:[...e.more,new w.GroupProperty([],"通用","通用"),new w.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",Qk,Zk,!0),new w.FunctionProperty([],()=>rt.getCesiumIonToken(),[],"获取官方token"),new w.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new w.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new w.BooleanProperty([this,"flashLighting"],"头顶灯",n.flashLighting,!0),new w.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",n.particleGlobalControl,!0),new w.GroupProperty([],"Viewer","Viewer"),new w.NumberProperty([this,"resolutionScale"],"分辨率比率",n.resolutionScale,!0),new w.NumberProperty([this,"msaaSamples"],"msaaSamples",n.msaaSamples,!0),new w.BooleanProperty([this,"shadows"]),new w.GroupProperty([],"比例尺","比例尺(Legend)"),new w.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new w.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new w.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new w.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new w.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new w.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new w.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new w.GroupProperty([],"场景","场景(Scene)"),new w.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",n.sceneSplitPosition,!0),new w.GroupProperty([],"Globe","Globe"),new w.BooleanProperty([this,"depthTestAgainstTerrain"],"depthTestAgainstTerrain",n.depthTestAgainstTerrain,!0),new w.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",n.sceneGlobeShadows,!0),new w.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new w.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new w.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new w.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new w.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new w.BooleanProperty([this,"sceneGlobeShowSkirts"]),new w.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new w.ColorProperty([this,"sceneGlobeBaseColor"]),new w.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new w.JsonProperty([this,"sceneGlobeClippingPlanes"]),new w.StringProperty([this,"sceneGlobeClippingPlanesId"]),new w.JsonProperty([this,"sceneGlobeClippingPolygons"]),new w.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new w.GroupProperty([],"underground","underground"),new w.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",n.sceneGlobeUndergroundColor,!0),new w.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",n.sceneGlobeUndergroundColorAlphaByDistance,!0),new w.GroupProperty([],"Translucency","Translucency"),new w.BooleanProperty([this,"sceneGlobeTranslucencyEnabled"],"启用",n.sceneGlobeTranslucencyEnabled,!0),new w.NumberProperty([this,"sceneGlobeTranslucencyBackFaceAlpha"],"背面透明度",n.sceneGlobeTranslucencyBackFaceAlpha,!0),new w.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",n.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new w.NumberProperty([this,"sceneGlobeTranslucencyFrontFaceAlpha"],"正面透明度",n.sceneGlobeTranslucencyFrontFaceAlpha,!0),new w.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",n.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new w.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",n.sceneGlobeTranslucencyRectangle,!0),new w.GroupProperty([],"Sun","Sun"),new w.BooleanProperty([this,"sun"],"sun",n.sun,!0),new w.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",n.sceneSunGlowFactor,!0),new w.GroupProperty([],"Moon","Moon"),new w.BooleanProperty([this,"moon"],"moon",n.moon,!0),new w.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",n.sceneMoonTextureUrl,!0),new w.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",n.sceneMoonOnlySunLighting,!0),new w.GroupProperty([],"SkyBox","SkyBox"),new w.BooleanProperty([this,"sceneSkyBoxShow"]),new w.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",n.sceneSkyBoxSources,void 0,!0),new w.GroupProperty([],"Background","Background"),new w.BooleanProperty([this,"xbsjUseBackground"]),new w.StringProperty([this,"xbsjBackgroundImageUri"]),new w.ColorProperty([this,"xbsjBackgroundColor"]),new w.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new w.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",n.xbsjLocalBoxSources,void 0,!0),new w.ColorProperty([this,"sceneBackgroundColor"]),new w.GroupProperty([],"Fog","Fog"),new w.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",n.sceneFogEnabled,!0),new w.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",n.sceneFogDensity,!0),new w.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",n.sceneFogScreenSpaceErrorFactor,!0),new w.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",n.sceneFogMinimumBrightness,!0),new w.GroupProperty([],"Sscc","Sscc"),new w.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",n.sceneSsccEnableInputs,!0),new w.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",n.sceneSsccEnableCollisionDetection,!0),new w.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",n.sceneSsccZoomFactor,!0),new w.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new w.GroupProperty([],"后处理","后处理"),new w.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",n.scenePpsfxaaEnabled,!0),new w.GroupProperty([],"环境遮蔽","环境遮蔽"),new w.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new w.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new w.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new w.GroupProperty([],"Bloom","Bloom"),new w.BooleanProperty([this,"scenePpsBloomEnabled"]),new w.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new w.NumberProperty([this,"scenePpsBloomContrast"]),new w.NumberProperty([this,"scenePpsBloomBrightness"]),new w.NumberProperty([this,"scenePpsBloomDelta"]),new w.NumberProperty([this,"scenePpsBloomSigma"]),new w.NumberProperty([this,"scenePpsBloomStepSize"]),new w.GroupProperty([],"调试","调试"),new w.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",n.sceneDebugShowFramesPerSecond,!0),new w.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",n.sceneDebugShowCommands,!0),new w.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",n.sceneDebugShowFrustums,!0),new w.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",n.sceneDebugShowFrustumPlanes,!0),new w.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",n.sceneDebugShowDepthFrustum,!0),new w.GroupProperty([],"Inspector","Inspector"),new w.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",n.showCesiumInspector,!0),new w.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",n.cesiumInspectorWireframe,!0),new w.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",n.showCesium3DTilesInspector,!0)]}}};v(rt,"type",rt.register("ESCesiumViewer",rt)),v(rt,"getCesiumIonToken",Kk),v(rt,"currentDefaultAccessToken",h.Ion.defaultAccessToken),v(rt,"latestDefaultAccessToken"),v(rt,"ObjectsToExcludeWrapper",k2),v(rt,"defaults",{...w.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,depthTestAgainstTerrain:!1,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(rt,"getHeightsScartchCarto",new h.Cartographic);let Re=rt;(t=>{t.createDefaultProps=()=>({...w.ESViewer.createDefaultProps(),...Yk()})})(Re||(Re={})),l.extendClassProps(Re.prototype,Re.createDefaultProps),R.copyright=void 0;try{const t="earthsdk3-cesium",i="3.4.0-beta.7",e="2025-09-03T08:05:29.000Z",n="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="365f7587cfe6bd14a471b404f8874ab445518b66",a=((Date.now()-1756886729e3)/36e5).toFixed(1),c=`%c🌏 ${t}%c ${i}.${r.slice(0,8)}.${e} (距今${a}个小时)
2259
2259
  %c${o?o+`
2260
2260
  `:""}当前网站正在使用${t},此软件版权归${n}所有
2261
- `;R.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","1c85a7938326029bfd0efde53b240e71da26ae46")},get info(){return c},get date(){return"2025-09-02T06:26:49.000Z"},get author(){return"suplyang"},get version(){return"3.4.0-beta.6"},get name(){return"earthsdk3-cesium"},get commitId(){return"1c85a7938326029bfd0efde53b240e71da26ae46"},print(){console.info(this.info,`
2261
+ `;R.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","365f7587cfe6bd14a471b404f8874ab445518b66")},get info(){return c},get date(){return"2025-09-03T08:05:29.000Z"},get author(){return"suplyang"},get version(){return"3.4.0-beta.7"},get name(){return"earthsdk3-cesium"},get commitId(){return"365f7587cfe6bd14a471b404f8874ab445518b66"},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":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CzmObjects/general/CzmESPoi3D/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA4C,MAAM,WAAW,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAqB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,qBAAa,UAAW,SAAQ,uBAAuB,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,IAAI,OAAuD;IAE3E,OAAO,CAAC,cAAc,CAAC,CAAgB;gBAE3B,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc;IAkBlD,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI;IAatE,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM;CAa1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CzmObjects/general/CzmESPoi3D/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA4C,MAAM,WAAW,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAqB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,qBAAa,UAAW,SAAQ,uBAAuB,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,IAAI,OAAuD;IAE3E,OAAO,CAAC,cAAc,CAAC,CAAgB;gBAE3B,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc;IAiBlD,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI;IAatE,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM;CAa1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ESCesiumViewer/index.ts"],"names":[],"mappings":"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"}
@@ -3,6 +3,7 @@ declare module "cesium" {
3
3
  interface Camera {
4
4
  readonly currentFlightEvent: Cesium.Event;
5
5
  }
6
+ const VERSION: string;
6
7
  }
7
8
  export declare function fixCameraFlight(): void;
8
9
  //# sourceMappingURL=fixCameraFlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fixCameraFlight.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/initCesiumViewer/fixCameraFlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,QAAQ,QAAQ,CAAC;IACpB,UAAU,MAAM;QACZ,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,KAAK,CAAC;KAC7C;CACJ;AAED,wBAAgB,eAAe,SA+B9B"}
1
+ {"version":3,"file":"fixCameraFlight.d.ts","sourceRoot":"","sources":["../../../../src/ESCesiumViewer/initCesiumViewer/fixCameraFlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,QAAQ,QAAQ,CAAC;IACpB,UAAU,MAAM;QACZ,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,KAAK,CAAC;KAC7C;IACM,MAAM,OAAO,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,eAAe,SA+B9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "earthsdk3-cesium",
3
- "version": "3.4.0-beta.6",
3
+ "version": "3.4.0-beta.7",
4
4
  "description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
5
5
  "type": "module",
6
6
  "main": "./dist/earthsdk3-cesium.umd.cjs",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "cesium": "1.132",
40
- "earthsdk3": "3.4.0-beta.10",
40
+ "earthsdk3": "3.4.0-beta.11",
41
41
  "xbsj-base": "1.0.6"
42
42
  },
43
43
  "dependencies": {