chbim-plugins 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chbim-plugins.js CHANGED
@@ -30411,10 +30411,10 @@ class _1 {
30411
30411
  add(l, o) {
30412
30412
  let p = l.options.symbol.styleOptions.label.font_size, d = l.options.vectorId, u = Number(p) * 1.4, m = Number(p) * 1.8, _ = l.options.symbol.styleOptions.label, { color: T, outlineColor: S, backgroundColor: C } = _;
30413
30413
  l.eachGraphic((I) => {
30414
- this.DynamicMaskingArr.push({
30414
+ I.label && this.DynamicMaskingArr.push({
30415
30415
  id: d,
30416
30416
  uid: I.id,
30417
- position: I._getLablePosition(),
30417
+ position: I.label.position,
30418
30418
  label: I.name,
30419
30419
  width: u * I.name.length,
30420
30420
  height: m,
@@ -2697,4 +2697,4 @@ function print() { __p += __j.call(arguments, '') }
2697
2697
  * Subject to the terms at https://gsap.com/standard-license or for
2698
2698
  * Club GSAP members, the agreement issued with that membership.
2699
2699
  * @author: Jack Doyle, jack@greensock.com
2700
- */var xp,Ko,zl,Pc,Ga,wp,Lc,rg=function(){return typeof window<"u"},fo={},Ha=180/Math.PI,kl=Math.PI/180,Bl=Math.atan2,Tp=1e8,Rc=/([A-Z])/g,sg=/(left|right|width|margin|padding|x)/i,og=/[\s,\(]\S/,Ws={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oc=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},ag=function(l,o){return o.set(o.t,o.p,l===1?o.e:Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},lg=function(l,o){return o.set(o.t,o.p,l?Math.round((o.s+o.c*l)*1e4)/1e4+o.u:o.b,o)},hg=function(l,o){var p=o.s+o.c*l;o.set(o.t,o.p,~~(p+(p<0?-.5:.5))+o.u,o)},Mp=function(l,o){return o.set(o.t,o.p,l?o.e:o.b,o)},Sp=function(l,o){return o.set(o.t,o.p,l!==1?o.b:o.e,o)},ug=function(l,o,p){return l.style[o]=p},cg=function(l,o,p){return l.style.setProperty(o,p)},fg=function(l,o,p){return l._gsap[o]=p},pg=function(l,o,p){return l._gsap.scaleX=l._gsap.scaleY=p},dg=function(l,o,p,d,u){var m=l._gsap;m.scaleX=m.scaleY=p,m.renderTransform(u,m)},mg=function(l,o,p,d,u){var m=l._gsap;m[o]=p,m.renderTransform(u,m)},dn="transform",Lr=dn+"Origin",gg=function T(l,o){var p=this,d=this.target,u=d.style,m=d._gsap;if(l in fo&&u){if(this.tfm=this.tfm||{},l!=="transform")l=Ws[l]||l,~l.indexOf(",")?l.split(",").forEach(function(_){return p.tfm[_]=po(d,_)}):this.tfm[l]=m.x?m[l]:po(d,l),l===Lr&&(this.tfm.zOrigin=m.zOrigin);else return Ws.transform.split(",").forEach(function(_){return T.call(p,_,o)});if(this.props.indexOf(dn)>=0)return;m.svg&&(this.svgo=d.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),l=dn}(u||o)&&this.props.push(l,o,u[l])},Ep=function(l){l.translate&&(l.removeProperty("translate"),l.removeProperty("scale"),l.removeProperty("rotate"))},vg=function(){var l=this.props,o=this.target,p=o.style,d=o._gsap,u,m;for(u=0;u<l.length;u+=3)l[u+1]?o[l[u]]=l[u+2]:l[u+2]?p[l[u]]=l[u+2]:p.removeProperty(l[u].substr(0,2)==="--"?l[u]:l[u].replace(Rc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)d[m]=this.tfm[m];d.svg&&(d.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Lc(),(!u||!u.isStart)&&!p[dn]&&(Ep(p),d.zOrigin&&p[Lr]&&(p[Lr]+=" "+d.zOrigin+"px",d.zOrigin=0,d.renderTransform()),d.uncache=1)}},bp=function(l,o){var p={target:l,props:[],revert:vg,save:gg};return l._gsap||Pr.core.getCache(l),o&&o.split(",").forEach(function(d){return p.save(d)}),p},Ap,Ic=function(l,o){var p=Ko.createElementNS?Ko.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),l):Ko.createElement(l);return p&&p.style?p:Ko.createElement(l)},js=function T(l,o,p){var d=getComputedStyle(l);return d[o]||d.getPropertyValue(o.replace(Rc,"-$1").toLowerCase())||d.getPropertyValue(o)||!p&&T(l,Nl(o)||o,1)||""},Cp="O,Moz,ms,Ms,Webkit".split(","),Nl=function(l,o,p){var d=o||Ga,u=d.style,m=5;if(l in u&&!p)return l;for(l=l.charAt(0).toUpperCase()+l.substr(1);m--&&!(Cp[m]+l in u););return m<0?null:(m===3?"ms":m>=0?Cp[m]:"")+l},Dc=function(){rg()&&window.document&&(xp=window,Ko=xp.document,zl=Ko.documentElement,Ga=Ic("div")||{style:{}},Ic("div"),dn=Nl(dn),Lr=dn+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ap=!!Nl("perspective"),Lc=Pr.core.reverting,Pc=1)},zc=function T(l){var o=Ic("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),p=this.parentNode,d=this.nextSibling,u=this.style.cssText,m;if(zl.appendChild(o),o.appendChild(this),this.style.display="block",l)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=T}catch{}else this._gsapBBox&&(m=this._gsapBBox());return p&&(d?p.insertBefore(this,d):p.appendChild(this)),zl.removeChild(o),this.style.cssText=u,m},Pp=function(l,o){for(var p=o.length;p--;)if(l.hasAttribute(o[p]))return l.getAttribute(o[p])},Lp=function(l){var o;try{o=l.getBBox()}catch{o=zc.call(l,!0)}return o&&(o.width||o.height)||l.getBBox===zc||(o=zc.call(l,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Pp(l,["x","cx","x1"])||0,y:+Pp(l,["y","cy","y1"])||0,width:0,height:0}:o},Rp=function(l){return!!(l.getCTM&&(!l.parentNode||l.ownerSVGElement)&&Lp(l))},Va=function(l,o){if(o){var p=l.style,d;o in fo&&o!==Lr&&(o=dn),p.removeProperty?(d=o.substr(0,2),(d==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),p.removeProperty(d==="--"?o:o.replace(Rc,"-$1").toLowerCase())):p.removeAttribute(o)}},Qo=function(l,o,p,d,u,m){var _=new Cr(l._pt,o,p,0,1,m?Sp:Mp);return l._pt=_,_.b=d,_.e=u,l._props.push(p),_},Op={deg:1,rad:1,turn:1},_g={grid:1,flex:1},ta=function T(l,o,p,d){var u=parseFloat(p)||0,m=(p+"").trim().substr((u+"").length)||"px",_=Ga.style,w=sg.test(o),S=l.tagName.toLowerCase()==="svg",C=(S?"client":"offset")+(w?"Width":"Height"),I=100,N=d==="px",z=d==="%",F,E,L,x;if(d===m||!u||Op[d]||Op[m])return u;if(m!=="px"&&!N&&(u=T(l,o,p,"px")),x=l.getCTM&&Rp(l),(z||m==="%")&&(fo[o]||~o.indexOf("adius")))return F=x?l.getBBox()[w?"width":"height"]:l[C],Rn(z?u/F*I:u/100*F);if(_[w?"width":"height"]=I+(N?m:d),E=~o.indexOf("adius")||d==="em"&&l.appendChild&&!S?l:l.parentNode,x&&(E=(l.ownerSVGElement||{}).parentNode),(!E||E===Ko||!E.appendChild)&&(E=Ko.body),L=E._gsap,L&&z&&L.width&&w&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(z&&(o==="height"||o==="width")){var M=l.style[o];l.style[o]=I+d,F=l[C],M?l.style[o]=M:Va(l,o)}else(z||m==="%")&&!_g[js(E,"display")]&&(_.position=js(l,"position")),E===l&&(_.position="static"),E.appendChild(Ga),F=Ga[C],E.removeChild(Ga),_.position="absolute";return w&&z&&(L=za(E),L.time=Xr.time,L.width=E[C]),Rn(N?F*u/I:F&&u?I/F*u:0)},po=function(l,o,p,d){var u;return Pc||Dc(),o in Ws&&o!=="transform"&&(o=Ws[o],~o.indexOf(",")&&(o=o.split(",")[0])),fo[o]&&o!=="transform"?(u=bh(l,d),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:yu(js(l,Lr))+" "+u.zOrigin+"px"):(u=l.style[o],(!u||u==="auto"||d||~(u+"").indexOf("calc("))&&(u=_u[o]&&_u[o](l,o,p)||js(l,o)||kf(l,o)||(o==="opacity"?1:0))),p&&!~(u+"").trim().indexOf(" ")?ta(l,o,u,p)+p:u},yg=function(l,o,p,d){if(!p||p==="none"){var u=Nl(o,l,1),m=u&&js(l,u,1);m&&m!==p?(o=u,p=m):o==="borderColor"&&(p=js(l,"borderTopColor"))}var _=new Cr(this._pt,l.style,o,0,1,gp),w=0,S=0,C,I,N,z,F,E,L,x,M,R,b,U;if(_.b=p,_.e=d,p+="",d+="",d==="auto"&&(E=l.style[o],l.style[o]=d,d=js(l,o)||d,E?l.style[o]=E:Va(l,o)),C=[p,d],op(C),p=C[0],d=C[1],N=p.match(Pl)||[],U=d.match(Pl)||[],U.length){for(;I=Pl.exec(d);)L=I[0],M=d.substring(w,I.index),F?F=(F+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(F=1),L!==(E=N[S++]||"")&&(z=parseFloat(E)||0,b=E.substr((z+"").length),L.charAt(1)==="="&&(L=Ll(z,L)+b),x=parseFloat(L),R=L.substr((x+"").length),w=Pl.lastIndex-R.length,R||(R=R||Hr.units[o]||b,w===d.length&&(d+=R,_.e+=R)),b!==R&&(z=ta(l,o,E,R)||0),_._pt={_next:_._pt,p:M||S===1?M:",",s:z,c:x-z,m:F&&F<4||o==="zIndex"?Math.round:0});_.c=w<d.length?d.substring(w,d.length):""}else _.r=o==="display"&&d==="none"?Sp:Mp;return Pf.test(d)&&(_.e=0),this._pt=_,_},Ip={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},xg=function(l){var o=l.split(" "),p=o[0],d=o[1]||"50%";return(p==="top"||p==="bottom"||d==="left"||d==="right")&&(l=p,p=d,d=l),o[0]=Ip[p]||p,o[1]=Ip[d]||d,o.join(" ")},wg=function(l,o){if(o.tween&&o.tween._time===o.tween._dur){var p=o.t,d=p.style,u=o.u,m=p._gsap,_,w,S;if(u==="all"||u===!0)d.cssText="",w=1;else for(u=u.split(","),S=u.length;--S>-1;)_=u[S],fo[_]&&(w=1,_=_==="transformOrigin"?Lr:dn),Va(p,_);w&&(Va(p,dn),m&&(m.svg&&p.removeAttribute("transform"),bh(p,1),m.uncache=1,Ep(d)))}},_u={clearProps:function(l,o,p,d,u){if(u.data!=="isFromStart"){var m=l._pt=new Cr(l._pt,o,p,0,0,wg);return m.u=d,m.pr=-10,m.tween=u,l._props.push(p),1}}},Eh=[1,0,0,1,0,0],Dp={},zp=function(l){return l==="matrix(1, 0, 0, 1, 0, 0)"||l==="none"||!l},kp=function(l){var o=js(l,dn);return zp(o)?Eh:o.substr(7).match(Cf).map(Rn)},kc=function(l,o){var p=l._gsap||za(l),d=l.style,u=kp(l),m,_,w,S;return p.svg&&l.getAttribute("transform")?(w=l.transform.baseVal.consolidate().matrix,u=[w.a,w.b,w.c,w.d,w.e,w.f],u.join(",")==="1,0,0,1,0,0"?Eh:u):(u===Eh&&!l.offsetParent&&l!==zl&&!p.svg&&(w=d.display,d.display="block",m=l.parentNode,(!m||!l.offsetParent)&&(S=1,_=l.nextElementSibling,zl.appendChild(l)),u=kp(l),w?d.display=w:Va(l,"display"),S&&(_?m.insertBefore(l,_):m?m.appendChild(l):zl.removeChild(l))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Bc=function(l,o,p,d,u,m){var _=l._gsap,w=u||kc(l,!0),S=_.xOrigin||0,C=_.yOrigin||0,I=_.xOffset||0,N=_.yOffset||0,z=w[0],F=w[1],E=w[2],L=w[3],x=w[4],M=w[5],R=o.split(" "),b=parseFloat(R[0])||0,U=parseFloat(R[1])||0,B,X,J,K;p?w!==Eh&&(X=z*L-F*E)&&(J=b*(L/X)+U*(-E/X)+(E*M-L*x)/X,K=b*(-F/X)+U*(z/X)-(z*M-F*x)/X,b=J,U=K):(B=Lp(l),b=B.x+(~R[0].indexOf("%")?b/100*B.width:b),U=B.y+(~(R[1]||R[0]).indexOf("%")?U/100*B.height:U)),d||d!==!1&&_.smooth?(x=b-S,M=U-C,_.xOffset=I+(x*z+M*E)-x,_.yOffset=N+(x*F+M*L)-M):_.xOffset=_.yOffset=0,_.xOrigin=b,_.yOrigin=U,_.smooth=!!d,_.origin=o,_.originIsAbsolute=!!p,l.style[Lr]="0px 0px",m&&(Qo(m,_,"xOrigin",S,b),Qo(m,_,"yOrigin",C,U),Qo(m,_,"xOffset",I,_.xOffset),Qo(m,_,"yOffset",N,_.yOffset)),l.setAttribute("data-svg-origin",b+" "+U)},bh=function(l,o){var p=l._gsap||new up(l);if("x"in p&&!o&&!p.uncache)return p;var d=l.style,u=p.scaleX<0,m="px",_="deg",w=getComputedStyle(l),S=js(l,Lr)||"0",C,I,N,z,F,E,L,x,M,R,b,U,B,X,J,K,ft,Ct,it,yt,G,Lt,Et,Pt,ce,re,Ft,Ot,Nt,Ce,me,Yt;return C=I=N=E=L=x=M=R=b=0,z=F=1,p.svg=!!(l.getCTM&&Rp(l)),w.translate&&((w.translate!=="none"||w.scale!=="none"||w.rotate!=="none")&&(d[dn]=(w.translate!=="none"?"translate3d("+(w.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(w.rotate!=="none"?"rotate("+w.rotate+") ":"")+(w.scale!=="none"?"scale("+w.scale.split(" ").join(",")+") ":"")+(w[dn]!=="none"?w[dn]:"")),d.scale=d.rotate=d.translate="none"),X=kc(l,p.svg),p.svg&&(p.uncache?(ce=l.getBBox(),S=p.xOrigin-ce.x+"px "+(p.yOrigin-ce.y)+"px",Pt=""):Pt=!o&&l.getAttribute("data-svg-origin"),Bc(l,Pt||S,!!Pt||p.originIsAbsolute,p.smooth!==!1,X)),U=p.xOrigin||0,B=p.yOrigin||0,X!==Eh&&(Ct=X[0],it=X[1],yt=X[2],G=X[3],C=Lt=X[4],I=Et=X[5],X.length===6?(z=Math.sqrt(Ct*Ct+it*it),F=Math.sqrt(G*G+yt*yt),E=Ct||it?Bl(it,Ct)*Ha:0,M=yt||G?Bl(yt,G)*Ha+E:0,M&&(F*=Math.abs(Math.cos(M*kl))),p.svg&&(C-=U-(U*Ct+B*yt),I-=B-(U*it+B*G))):(Yt=X[6],Ce=X[7],Ft=X[8],Ot=X[9],Nt=X[10],me=X[11],C=X[12],I=X[13],N=X[14],J=Bl(Yt,Nt),L=J*Ha,J&&(K=Math.cos(-J),ft=Math.sin(-J),Pt=Lt*K+Ft*ft,ce=Et*K+Ot*ft,re=Yt*K+Nt*ft,Ft=Lt*-ft+Ft*K,Ot=Et*-ft+Ot*K,Nt=Yt*-ft+Nt*K,me=Ce*-ft+me*K,Lt=Pt,Et=ce,Yt=re),J=Bl(-yt,Nt),x=J*Ha,J&&(K=Math.cos(-J),ft=Math.sin(-J),Pt=Ct*K-Ft*ft,ce=it*K-Ot*ft,re=yt*K-Nt*ft,me=G*ft+me*K,Ct=Pt,it=ce,yt=re),J=Bl(it,Ct),E=J*Ha,J&&(K=Math.cos(J),ft=Math.sin(J),Pt=Ct*K+it*ft,ce=Lt*K+Et*ft,it=it*K-Ct*ft,Et=Et*K-Lt*ft,Ct=Pt,Lt=ce),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,x=180-x),z=Rn(Math.sqrt(Ct*Ct+it*it+yt*yt)),F=Rn(Math.sqrt(Et*Et+Yt*Yt)),J=Bl(Lt,Et),M=Math.abs(J)>2e-4?J*Ha:0,b=me?1/(me<0?-me:me):0),p.svg&&(Pt=l.getAttribute("transform"),p.forceCSS=l.setAttribute("transform","")||!zp(js(l,dn)),Pt&&l.setAttribute("transform",Pt))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(z*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(F*=-1,M+=M<=0?180:-180)),o=o||p.uncache,p.x=C-((p.xPercent=C&&(!o&&p.xPercent||(Math.round(l.offsetWidth/2)===Math.round(-C)?-50:0)))?l.offsetWidth*p.xPercent/100:0)+m,p.y=I-((p.yPercent=I&&(!o&&p.yPercent||(Math.round(l.offsetHeight/2)===Math.round(-I)?-50:0)))?l.offsetHeight*p.yPercent/100:0)+m,p.z=N+m,p.scaleX=Rn(z),p.scaleY=Rn(F),p.rotation=Rn(E)+_,p.rotationX=Rn(L)+_,p.rotationY=Rn(x)+_,p.skewX=M+_,p.skewY=R+_,p.transformPerspective=b+m,(p.zOrigin=parseFloat(S.split(" ")[2])||!o&&p.zOrigin||0)&&(d[Lr]=yu(S)),p.xOffset=p.yOffset=0,p.force3D=Hr.force3D,p.renderTransform=p.svg?Mg:Ap?Bp:Tg,p.uncache=0,p},yu=function(l){return(l=l.split(" "))[0]+" "+l[1]},Nc=function(l,o,p){var d=sr(o);return Rn(parseFloat(o)+parseFloat(ta(l,"x",p+"px",d)))+d},Tg=function(l,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Bp(l,o)},Wa="0deg",Ah="0px",ja=") ",Bp=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,w=p.z,S=p.rotation,C=p.rotationY,I=p.rotationX,N=p.skewX,z=p.skewY,F=p.scaleX,E=p.scaleY,L=p.transformPerspective,x=p.force3D,M=p.target,R=p.zOrigin,b="",U=x==="auto"&&l&&l!==1||x===!0;if(R&&(I!==Wa||C!==Wa)){var B=parseFloat(C)*kl,X=Math.sin(B),J=Math.cos(B),K;B=parseFloat(I)*kl,K=Math.cos(B),m=Nc(M,m,X*K*-R),_=Nc(M,_,-Math.sin(B)*-R),w=Nc(M,w,J*K*-R+R)}L!==Ah&&(b+="perspective("+L+ja),(d||u)&&(b+="translate("+d+"%, "+u+"%) "),(U||m!==Ah||_!==Ah||w!==Ah)&&(b+=w!==Ah||U?"translate3d("+m+", "+_+", "+w+") ":"translate("+m+", "+_+ja),S!==Wa&&(b+="rotate("+S+ja),C!==Wa&&(b+="rotateY("+C+ja),I!==Wa&&(b+="rotateX("+I+ja),(N!==Wa||z!==Wa)&&(b+="skew("+N+", "+z+ja),(F!==1||E!==1)&&(b+="scale("+F+", "+E+ja),M.style[dn]=b||"translate(0, 0)"},Mg=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,w=p.rotation,S=p.skewX,C=p.skewY,I=p.scaleX,N=p.scaleY,z=p.target,F=p.xOrigin,E=p.yOrigin,L=p.xOffset,x=p.yOffset,M=p.forceCSS,R=parseFloat(m),b=parseFloat(_),U,B,X,J,K;w=parseFloat(w),S=parseFloat(S),C=parseFloat(C),C&&(C=parseFloat(C),S+=C,w+=C),w||S?(w*=kl,S*=kl,U=Math.cos(w)*I,B=Math.sin(w)*I,X=Math.sin(w-S)*-N,J=Math.cos(w-S)*N,S&&(C*=kl,K=Math.tan(S-C),K=Math.sqrt(1+K*K),X*=K,J*=K,C&&(K=Math.tan(C),K=Math.sqrt(1+K*K),U*=K,B*=K)),U=Rn(U),B=Rn(B),X=Rn(X),J=Rn(J)):(U=I,J=N,B=X=0),(R&&!~(m+"").indexOf("px")||b&&!~(_+"").indexOf("px"))&&(R=ta(z,"x",m,"px"),b=ta(z,"y",_,"px")),(F||E||L||x)&&(R=Rn(R+F-(F*U+E*X)+L),b=Rn(b+E-(F*B+E*J)+x)),(d||u)&&(K=z.getBBox(),R=Rn(R+d/100*K.width),b=Rn(b+u/100*K.height)),K="matrix("+U+","+B+","+X+","+J+","+R+","+b+")",z.setAttribute("transform",K),M&&(z.style[dn]=K)},Sg=function(l,o,p,d,u){var m=360,_=Wn(u),w=parseFloat(u)*(_&&~u.indexOf("rad")?Ha:1),S=w-d,C=d+S+"deg",I,N;return _&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*Tp)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*Tp)%m-~~(S/m)*m)),l._pt=N=new Cr(l._pt,o,p,d,S,ag),N.e=C,N.u="deg",l._props.push(p),N},Np=function(l,o){for(var p in o)l[p]=o[p];return l},Eg=function(l,o,p){var d=Np({},p._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=p.style,_,w,S,C,I,N,z,F;d.svg?(S=p.getAttribute("transform"),p.setAttribute("transform",""),m[dn]=o,_=bh(p,1),Va(p,dn),p.setAttribute("transform",S)):(S=getComputedStyle(p)[dn],m[dn]=o,_=bh(p,1),m[dn]=S);for(w in fo)S=d[w],C=_[w],S!==C&&u.indexOf(w)<0&&(z=sr(S),F=sr(C),I=z!==F?ta(p,w,S,F):parseFloat(S),N=parseFloat(C),l._pt=new Cr(l._pt,_,w,I,N-I,Oc),l._pt.u=F||0,l._props.push(w));Np(_,d)};Ar("padding,margin,Width,Radius",function(T,l){var o="Top",p="Right",d="Bottom",u="Left",m=(l<3?[o,p,d,u]:[o+u,o+p,d+p,d+u]).map(function(_){return l<2?T+_:"border"+_+T});_u[l>1?"border"+T:T]=function(_,w,S,C,I){var N,z;if(arguments.length<4)return N=m.map(function(F){return po(_,F,S)}),z=N.join(" "),z.split(N[0]).length===5?N[0]:z;N=(C+"").split(" "),z={},m.forEach(function(F,E){return z[F]=N[E]=N[E]||N[(E-1)/2|0]}),_.init(w,z,I)}});var Fp={name:"css",register:Dc,targetTest:function(l){return l.style&&l.nodeType},init:function(l,o,p,d,u){var m=this._props,_=l.style,w=p.vars.startAt,S,C,I,N,z,F,E,L,x,M,R,b,U,B,X,J;Pc||Dc(),this.styles=this.styles||bp(l),J=this.styles.props,this.tween=p;for(E in o)if(E!=="autoRound"&&(C=o[E],!(Wr[E]&&cp(E,o,p,d,l,u)))){if(z=typeof C,F=_u[E],z==="function"&&(C=C.call(p,d,l,u),z=typeof C),z==="string"&&~C.indexOf("random(")&&(C=yh(C)),F)F(this,l,E,C,p)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(l).getPropertyValue(E)+"").trim(),C+="",Jo.lastIndex=0,Jo.test(S)||(L=sr(S),x=sr(C)),x?L!==x&&(S=ta(l,E,S,x)+x):L&&(C+=L),this.add(_,"setProperty",S,C,d,u,0,0,E),m.push(E),J.push(E,0,_[E]);else if(z!=="undefined"){if(w&&E in w?(S=typeof w[E]=="function"?w[E].call(p,d,l,u):w[E],Wn(S)&&~S.indexOf("random(")&&(S=yh(S)),sr(S+"")||S==="auto"||(S+=Hr.units[E]||sr(po(l,E))||""),(S+"").charAt(1)==="="&&(S=po(l,E))):S=po(l,E),N=parseFloat(S),M=z==="string"&&C.charAt(1)==="="&&C.substr(0,2),M&&(C=C.substr(2)),I=parseFloat(C),E in Ws&&(E==="autoAlpha"&&(N===1&&po(l,"visibility")==="hidden"&&I&&(N=0),J.push("visibility",0,_.visibility),Qo(this,_,"visibility",N?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=Ws[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in fo,R){if(this.styles.save(E),b||(U=l._gsap,U.renderTransform&&!o.parseTransform||bh(l,o.parseTransform),B=o.smoothOrigin!==!1&&U.smooth,b=this._pt=new Cr(this._pt,_,dn,0,1,U.renderTransform,U,0,-1),b.dep=1),E==="scale")this._pt=new Cr(this._pt,U,"scaleY",U.scaleY,(M?Ll(U.scaleY,M+I):I)-U.scaleY||0,Oc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Lr,0,_[Lr]),C=xg(C),U.svg?Bc(l,C,0,B,0,this):(x=parseFloat(C.split(" ")[2])||0,x!==U.zOrigin&&Qo(this,U,"zOrigin",U.zOrigin,x),Qo(this,_,E,yu(S),yu(C)));continue}else if(E==="svgOrigin"){Bc(l,C,1,B,0,this);continue}else if(E in Dp){Sg(this,U,E,N,M?Ll(N,M+C):C);continue}else if(E==="smoothOrigin"){Qo(this,U,"smooth",U.smooth,C);continue}else if(E==="force3D"){U[E]=C;continue}else if(E==="transform"){Eg(this,C,l);continue}}else E in _||(E=Nl(E)||E);if(R||(I||I===0)&&(N||N===0)&&!og.test(C)&&E in _)L=(S+"").substr((N+"").length),I||(I=0),x=sr(C)||(E in Hr.units?Hr.units[E]:L),L!==x&&(N=ta(l,E,S,x)),this._pt=new Cr(this._pt,R?U:_,E,N,(M?Ll(N,M+I):I)-N,!R&&(x==="px"||E==="zIndex")&&o.autoRound!==!1?hg:Oc),this._pt.u=x||0,L!==x&&x!=="%"&&(this._pt.b=S,this._pt.r=lg);else if(E in _)yg.call(this,l,E,S,M?M+C:C);else if(E in l)this.add(l,E,S||l[E],M?M+C:C,d,u);else if(E!=="parseTransform"){oc(E,C);continue}R||(E in _?J.push(E,0,_[E]):J.push(E,1,S||l[E])),m.push(E)}}X&&vp(this)},render:function(l,o){if(o.tween._time||!Lc())for(var p=o._pt;p;)p.r(l,p.d),p=p._next;else o.styles.revert()},get:po,aliases:Ws,getSetter:function(l,o,p){var d=Ws[o];return d&&d.indexOf(",")<0&&(o=d),o in fo&&o!==Lr&&(l._gsap.x||po(l,"x"))?p&&wp===p?o==="scale"?pg:fg:(wp=p||{})&&(o==="scale"?dg:mg):l.style&&!tc(l.style[o])?ug:~o.indexOf("-")?cg:Sc(l,o)},core:{_removeProperty:Va,_getMatrix:kc}};Pr.utils.checkPrefix=Nl,Pr.core.getStyleSaver=bp,function(T,l,o,p){var d=Ar(T+","+l+","+o,function(u){fo[u]=1});Ar(l,function(u){Hr.units[u]="deg",Dp[u]=1}),Ws[d[13]]=T+","+l,Ar(p,function(u){var m=u.split(":");Ws[m[1]]=d[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(T){Hr.units[T]="px"}),Pr.registerPlugin(Fp);var Fc=Pr.registerPlugin(Fp)||Pr;Fc.core.Tween;class bg{constructor(l,o=!1){window.mars3d?(l&&l!=null&&(this._map=l),this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.canvasClientWidth=l.viewer.canvas.clientWidth,this.canvasClientHeight=l.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o):console.error("未引入指定插件")}add(l,o){let p=l.options.symbol.styleOptions.label.font_size,d=l.options.vectorId,u=Number(p)*1.4,m=Number(p)*1.8,_=l.options.symbol.styleOptions.label,{color:w,outlineColor:S,backgroundColor:C}=_;l.eachGraphic(I=>{this.DynamicMaskingArr.push({id:d,uid:I.id,position:I._getLablePosition(),label:I.name,width:u*I.name.length,height:m,color:w,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:C,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.oldSet=new Set,this.tweenMap=new Map}remove(l){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==l),this.oldSet=new Set,this.tweenMap=new Map}modify(l,o){let{label:p}=o;if(p){let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:w}=p;this.DynamicMaskingArr.forEach(S=>{S.id===l&&(console.log(S),d!=null&&(S.color=this.Cesium.Color.fromCssColorString(d),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(d)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),_!=null&&(S.background=_),w!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(w),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(w)))})}}getBoundingRectangle(l){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._map.viewer.scene,l.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,l.width,l.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let l=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let d=!1,u=this.DynamicMaskingArr[o],m,_,w;if(_=this.getBoundingRectangle(u),!(_.x<0||_.x>this.canvasClientWidth||_.y<0||_.y>this.canvasClientHeight))if(l.length===0){l.push(o);continue}else{for(var p=0;p<l.length;p++)if(m=this.DynamicMaskingArr[l[p]],w=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(_,w)){d=!0;break}d||l.push(o)}}return new Set(l)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},p={color:1,outlineColor:1,backgroundColor:1},d=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(_=>!d.has(_))),m=new Set([...d].filter(_=>!this.oldSet.has(_)));for(let _ of u)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}var l=Fc.to(p,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var w=this.DynamicMaskingArr[_];w.backgroundColor.alpha=p.backgroundColor,w.color.alpha=p.color,w.outlineColor.alpha=p.outlineColor,this._map.getLayer(w.id,"vectorId").getGraphicByAttr(w.uid).setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(_,l)}for(let _ of m)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}let w=this.DynamicMaskingArr[_],{backgroundColor:S,color:C,outlineColor:I}=w.dynamicMaskingColor;var l=Fc.to(o,{duration:.8+Math.random(),color:C.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{w.backgroundColor.alpha=o.backgroundColor,w.color.alpha=o.color,w.outlineColor.alpha=o.outlineColor,this._map.getLayer(w.id,"vectorId").getGraphicByAttr(w.uid).setStyle({label:{show:!0,outline:w.outline,background:w.background,color:w.color,outlineColor:w.outlineColor,backgroundColor:w.backgroundColor}})}});this.tweenMap.set(_,l)}this.oldSet=d}}switchDynamicMasking(l){if(l)this._map.getLayers().forEach(o=>{var p;if((p=o.options)!=null&&p.vectorId){let{color:d,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(_=>{_.setStyle({label:{color:d.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else{let o,p,d,u;this.DynamicMaskingArr.forEach(m=>{o=m.dynamicMaskingColor,d=m.background,u=m.outline,p=this._map.getLayer(m.id,"vectorId"),p.eachGraphic(_=>{_.setStyle({label:{color:o.color,outlineColor:o.outlineColor,backgroundColor:o.backgroundColor,show:!0,background:d,outline:u}})})})}this.isDynamicMasking=l,window.bimVector.switchDynamicMasking(l)}}const Ag=[_f,wf],Cg={continuation:null,mapModali:null,install(T){if(Ag.forEach((m,_)=>{T.component(m.name,m)}),this.continuation){T.config.globalProperties.$continuation=this.continuation;return}let l=si.createApp(yf),o=document.createElement("div"),p=document.body;if(p.appendChild(o),this.loading=l.mount(o),T.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){T.config.globalProperties.$mapModali=this.mapModali;return}let d=si.createApp(xf),u=document.createElement("div");p.appendChild(u),this.mapModali=d.mount(u),T.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};$i.BimBackgroundPlate=wf,$i.BimCutscenes=yf,$i.BimElevationImage=rm,$i.BimEntity=om,$i.BimModel=tm,$i.BimTerrainProvider=nm,$i.BimVector=im,$i.Button=_f,$i.ChbimPlugins=Cg,$i.DynamicMasking=bg,$i.MapModali=xf,$i.PanoramicView=cm,$i.ViewShed=sm,Object.defineProperty($i,Symbol.toStringTag,{value:"Module"})});
2700
+ */var xp,Ko,zl,Pc,Ga,wp,Lc,rg=function(){return typeof window<"u"},fo={},Ha=180/Math.PI,kl=Math.PI/180,Bl=Math.atan2,Tp=1e8,Rc=/([A-Z])/g,sg=/(left|right|width|margin|padding|x)/i,og=/[\s,\(]\S/,Ws={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oc=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},ag=function(l,o){return o.set(o.t,o.p,l===1?o.e:Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},lg=function(l,o){return o.set(o.t,o.p,l?Math.round((o.s+o.c*l)*1e4)/1e4+o.u:o.b,o)},hg=function(l,o){var p=o.s+o.c*l;o.set(o.t,o.p,~~(p+(p<0?-.5:.5))+o.u,o)},Mp=function(l,o){return o.set(o.t,o.p,l?o.e:o.b,o)},Sp=function(l,o){return o.set(o.t,o.p,l!==1?o.b:o.e,o)},ug=function(l,o,p){return l.style[o]=p},cg=function(l,o,p){return l.style.setProperty(o,p)},fg=function(l,o,p){return l._gsap[o]=p},pg=function(l,o,p){return l._gsap.scaleX=l._gsap.scaleY=p},dg=function(l,o,p,d,u){var m=l._gsap;m.scaleX=m.scaleY=p,m.renderTransform(u,m)},mg=function(l,o,p,d,u){var m=l._gsap;m[o]=p,m.renderTransform(u,m)},dn="transform",Lr=dn+"Origin",gg=function T(l,o){var p=this,d=this.target,u=d.style,m=d._gsap;if(l in fo&&u){if(this.tfm=this.tfm||{},l!=="transform")l=Ws[l]||l,~l.indexOf(",")?l.split(",").forEach(function(_){return p.tfm[_]=po(d,_)}):this.tfm[l]=m.x?m[l]:po(d,l),l===Lr&&(this.tfm.zOrigin=m.zOrigin);else return Ws.transform.split(",").forEach(function(_){return T.call(p,_,o)});if(this.props.indexOf(dn)>=0)return;m.svg&&(this.svgo=d.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),l=dn}(u||o)&&this.props.push(l,o,u[l])},Ep=function(l){l.translate&&(l.removeProperty("translate"),l.removeProperty("scale"),l.removeProperty("rotate"))},vg=function(){var l=this.props,o=this.target,p=o.style,d=o._gsap,u,m;for(u=0;u<l.length;u+=3)l[u+1]?o[l[u]]=l[u+2]:l[u+2]?p[l[u]]=l[u+2]:p.removeProperty(l[u].substr(0,2)==="--"?l[u]:l[u].replace(Rc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)d[m]=this.tfm[m];d.svg&&(d.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Lc(),(!u||!u.isStart)&&!p[dn]&&(Ep(p),d.zOrigin&&p[Lr]&&(p[Lr]+=" "+d.zOrigin+"px",d.zOrigin=0,d.renderTransform()),d.uncache=1)}},bp=function(l,o){var p={target:l,props:[],revert:vg,save:gg};return l._gsap||Pr.core.getCache(l),o&&o.split(",").forEach(function(d){return p.save(d)}),p},Ap,Ic=function(l,o){var p=Ko.createElementNS?Ko.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),l):Ko.createElement(l);return p&&p.style?p:Ko.createElement(l)},js=function T(l,o,p){var d=getComputedStyle(l);return d[o]||d.getPropertyValue(o.replace(Rc,"-$1").toLowerCase())||d.getPropertyValue(o)||!p&&T(l,Nl(o)||o,1)||""},Cp="O,Moz,ms,Ms,Webkit".split(","),Nl=function(l,o,p){var d=o||Ga,u=d.style,m=5;if(l in u&&!p)return l;for(l=l.charAt(0).toUpperCase()+l.substr(1);m--&&!(Cp[m]+l in u););return m<0?null:(m===3?"ms":m>=0?Cp[m]:"")+l},Dc=function(){rg()&&window.document&&(xp=window,Ko=xp.document,zl=Ko.documentElement,Ga=Ic("div")||{style:{}},Ic("div"),dn=Nl(dn),Lr=dn+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ap=!!Nl("perspective"),Lc=Pr.core.reverting,Pc=1)},zc=function T(l){var o=Ic("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),p=this.parentNode,d=this.nextSibling,u=this.style.cssText,m;if(zl.appendChild(o),o.appendChild(this),this.style.display="block",l)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=T}catch{}else this._gsapBBox&&(m=this._gsapBBox());return p&&(d?p.insertBefore(this,d):p.appendChild(this)),zl.removeChild(o),this.style.cssText=u,m},Pp=function(l,o){for(var p=o.length;p--;)if(l.hasAttribute(o[p]))return l.getAttribute(o[p])},Lp=function(l){var o;try{o=l.getBBox()}catch{o=zc.call(l,!0)}return o&&(o.width||o.height)||l.getBBox===zc||(o=zc.call(l,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Pp(l,["x","cx","x1"])||0,y:+Pp(l,["y","cy","y1"])||0,width:0,height:0}:o},Rp=function(l){return!!(l.getCTM&&(!l.parentNode||l.ownerSVGElement)&&Lp(l))},Va=function(l,o){if(o){var p=l.style,d;o in fo&&o!==Lr&&(o=dn),p.removeProperty?(d=o.substr(0,2),(d==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),p.removeProperty(d==="--"?o:o.replace(Rc,"-$1").toLowerCase())):p.removeAttribute(o)}},Qo=function(l,o,p,d,u,m){var _=new Cr(l._pt,o,p,0,1,m?Sp:Mp);return l._pt=_,_.b=d,_.e=u,l._props.push(p),_},Op={deg:1,rad:1,turn:1},_g={grid:1,flex:1},ta=function T(l,o,p,d){var u=parseFloat(p)||0,m=(p+"").trim().substr((u+"").length)||"px",_=Ga.style,w=sg.test(o),S=l.tagName.toLowerCase()==="svg",C=(S?"client":"offset")+(w?"Width":"Height"),I=100,N=d==="px",z=d==="%",F,E,L,x;if(d===m||!u||Op[d]||Op[m])return u;if(m!=="px"&&!N&&(u=T(l,o,p,"px")),x=l.getCTM&&Rp(l),(z||m==="%")&&(fo[o]||~o.indexOf("adius")))return F=x?l.getBBox()[w?"width":"height"]:l[C],Rn(z?u/F*I:u/100*F);if(_[w?"width":"height"]=I+(N?m:d),E=~o.indexOf("adius")||d==="em"&&l.appendChild&&!S?l:l.parentNode,x&&(E=(l.ownerSVGElement||{}).parentNode),(!E||E===Ko||!E.appendChild)&&(E=Ko.body),L=E._gsap,L&&z&&L.width&&w&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(z&&(o==="height"||o==="width")){var M=l.style[o];l.style[o]=I+d,F=l[C],M?l.style[o]=M:Va(l,o)}else(z||m==="%")&&!_g[js(E,"display")]&&(_.position=js(l,"position")),E===l&&(_.position="static"),E.appendChild(Ga),F=Ga[C],E.removeChild(Ga),_.position="absolute";return w&&z&&(L=za(E),L.time=Xr.time,L.width=E[C]),Rn(N?F*u/I:F&&u?I/F*u:0)},po=function(l,o,p,d){var u;return Pc||Dc(),o in Ws&&o!=="transform"&&(o=Ws[o],~o.indexOf(",")&&(o=o.split(",")[0])),fo[o]&&o!=="transform"?(u=bh(l,d),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:yu(js(l,Lr))+" "+u.zOrigin+"px"):(u=l.style[o],(!u||u==="auto"||d||~(u+"").indexOf("calc("))&&(u=_u[o]&&_u[o](l,o,p)||js(l,o)||kf(l,o)||(o==="opacity"?1:0))),p&&!~(u+"").trim().indexOf(" ")?ta(l,o,u,p)+p:u},yg=function(l,o,p,d){if(!p||p==="none"){var u=Nl(o,l,1),m=u&&js(l,u,1);m&&m!==p?(o=u,p=m):o==="borderColor"&&(p=js(l,"borderTopColor"))}var _=new Cr(this._pt,l.style,o,0,1,gp),w=0,S=0,C,I,N,z,F,E,L,x,M,R,b,U;if(_.b=p,_.e=d,p+="",d+="",d==="auto"&&(E=l.style[o],l.style[o]=d,d=js(l,o)||d,E?l.style[o]=E:Va(l,o)),C=[p,d],op(C),p=C[0],d=C[1],N=p.match(Pl)||[],U=d.match(Pl)||[],U.length){for(;I=Pl.exec(d);)L=I[0],M=d.substring(w,I.index),F?F=(F+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(F=1),L!==(E=N[S++]||"")&&(z=parseFloat(E)||0,b=E.substr((z+"").length),L.charAt(1)==="="&&(L=Ll(z,L)+b),x=parseFloat(L),R=L.substr((x+"").length),w=Pl.lastIndex-R.length,R||(R=R||Hr.units[o]||b,w===d.length&&(d+=R,_.e+=R)),b!==R&&(z=ta(l,o,E,R)||0),_._pt={_next:_._pt,p:M||S===1?M:",",s:z,c:x-z,m:F&&F<4||o==="zIndex"?Math.round:0});_.c=w<d.length?d.substring(w,d.length):""}else _.r=o==="display"&&d==="none"?Sp:Mp;return Pf.test(d)&&(_.e=0),this._pt=_,_},Ip={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},xg=function(l){var o=l.split(" "),p=o[0],d=o[1]||"50%";return(p==="top"||p==="bottom"||d==="left"||d==="right")&&(l=p,p=d,d=l),o[0]=Ip[p]||p,o[1]=Ip[d]||d,o.join(" ")},wg=function(l,o){if(o.tween&&o.tween._time===o.tween._dur){var p=o.t,d=p.style,u=o.u,m=p._gsap,_,w,S;if(u==="all"||u===!0)d.cssText="",w=1;else for(u=u.split(","),S=u.length;--S>-1;)_=u[S],fo[_]&&(w=1,_=_==="transformOrigin"?Lr:dn),Va(p,_);w&&(Va(p,dn),m&&(m.svg&&p.removeAttribute("transform"),bh(p,1),m.uncache=1,Ep(d)))}},_u={clearProps:function(l,o,p,d,u){if(u.data!=="isFromStart"){var m=l._pt=new Cr(l._pt,o,p,0,0,wg);return m.u=d,m.pr=-10,m.tween=u,l._props.push(p),1}}},Eh=[1,0,0,1,0,0],Dp={},zp=function(l){return l==="matrix(1, 0, 0, 1, 0, 0)"||l==="none"||!l},kp=function(l){var o=js(l,dn);return zp(o)?Eh:o.substr(7).match(Cf).map(Rn)},kc=function(l,o){var p=l._gsap||za(l),d=l.style,u=kp(l),m,_,w,S;return p.svg&&l.getAttribute("transform")?(w=l.transform.baseVal.consolidate().matrix,u=[w.a,w.b,w.c,w.d,w.e,w.f],u.join(",")==="1,0,0,1,0,0"?Eh:u):(u===Eh&&!l.offsetParent&&l!==zl&&!p.svg&&(w=d.display,d.display="block",m=l.parentNode,(!m||!l.offsetParent)&&(S=1,_=l.nextElementSibling,zl.appendChild(l)),u=kp(l),w?d.display=w:Va(l,"display"),S&&(_?m.insertBefore(l,_):m?m.appendChild(l):zl.removeChild(l))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Bc=function(l,o,p,d,u,m){var _=l._gsap,w=u||kc(l,!0),S=_.xOrigin||0,C=_.yOrigin||0,I=_.xOffset||0,N=_.yOffset||0,z=w[0],F=w[1],E=w[2],L=w[3],x=w[4],M=w[5],R=o.split(" "),b=parseFloat(R[0])||0,U=parseFloat(R[1])||0,B,X,J,K;p?w!==Eh&&(X=z*L-F*E)&&(J=b*(L/X)+U*(-E/X)+(E*M-L*x)/X,K=b*(-F/X)+U*(z/X)-(z*M-F*x)/X,b=J,U=K):(B=Lp(l),b=B.x+(~R[0].indexOf("%")?b/100*B.width:b),U=B.y+(~(R[1]||R[0]).indexOf("%")?U/100*B.height:U)),d||d!==!1&&_.smooth?(x=b-S,M=U-C,_.xOffset=I+(x*z+M*E)-x,_.yOffset=N+(x*F+M*L)-M):_.xOffset=_.yOffset=0,_.xOrigin=b,_.yOrigin=U,_.smooth=!!d,_.origin=o,_.originIsAbsolute=!!p,l.style[Lr]="0px 0px",m&&(Qo(m,_,"xOrigin",S,b),Qo(m,_,"yOrigin",C,U),Qo(m,_,"xOffset",I,_.xOffset),Qo(m,_,"yOffset",N,_.yOffset)),l.setAttribute("data-svg-origin",b+" "+U)},bh=function(l,o){var p=l._gsap||new up(l);if("x"in p&&!o&&!p.uncache)return p;var d=l.style,u=p.scaleX<0,m="px",_="deg",w=getComputedStyle(l),S=js(l,Lr)||"0",C,I,N,z,F,E,L,x,M,R,b,U,B,X,J,K,ft,Ct,it,yt,G,Lt,Et,Pt,ce,re,Ft,Ot,Nt,Ce,me,Yt;return C=I=N=E=L=x=M=R=b=0,z=F=1,p.svg=!!(l.getCTM&&Rp(l)),w.translate&&((w.translate!=="none"||w.scale!=="none"||w.rotate!=="none")&&(d[dn]=(w.translate!=="none"?"translate3d("+(w.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(w.rotate!=="none"?"rotate("+w.rotate+") ":"")+(w.scale!=="none"?"scale("+w.scale.split(" ").join(",")+") ":"")+(w[dn]!=="none"?w[dn]:"")),d.scale=d.rotate=d.translate="none"),X=kc(l,p.svg),p.svg&&(p.uncache?(ce=l.getBBox(),S=p.xOrigin-ce.x+"px "+(p.yOrigin-ce.y)+"px",Pt=""):Pt=!o&&l.getAttribute("data-svg-origin"),Bc(l,Pt||S,!!Pt||p.originIsAbsolute,p.smooth!==!1,X)),U=p.xOrigin||0,B=p.yOrigin||0,X!==Eh&&(Ct=X[0],it=X[1],yt=X[2],G=X[3],C=Lt=X[4],I=Et=X[5],X.length===6?(z=Math.sqrt(Ct*Ct+it*it),F=Math.sqrt(G*G+yt*yt),E=Ct||it?Bl(it,Ct)*Ha:0,M=yt||G?Bl(yt,G)*Ha+E:0,M&&(F*=Math.abs(Math.cos(M*kl))),p.svg&&(C-=U-(U*Ct+B*yt),I-=B-(U*it+B*G))):(Yt=X[6],Ce=X[7],Ft=X[8],Ot=X[9],Nt=X[10],me=X[11],C=X[12],I=X[13],N=X[14],J=Bl(Yt,Nt),L=J*Ha,J&&(K=Math.cos(-J),ft=Math.sin(-J),Pt=Lt*K+Ft*ft,ce=Et*K+Ot*ft,re=Yt*K+Nt*ft,Ft=Lt*-ft+Ft*K,Ot=Et*-ft+Ot*K,Nt=Yt*-ft+Nt*K,me=Ce*-ft+me*K,Lt=Pt,Et=ce,Yt=re),J=Bl(-yt,Nt),x=J*Ha,J&&(K=Math.cos(-J),ft=Math.sin(-J),Pt=Ct*K-Ft*ft,ce=it*K-Ot*ft,re=yt*K-Nt*ft,me=G*ft+me*K,Ct=Pt,it=ce,yt=re),J=Bl(it,Ct),E=J*Ha,J&&(K=Math.cos(J),ft=Math.sin(J),Pt=Ct*K+it*ft,ce=Lt*K+Et*ft,it=it*K-Ct*ft,Et=Et*K-Lt*ft,Ct=Pt,Lt=ce),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,x=180-x),z=Rn(Math.sqrt(Ct*Ct+it*it+yt*yt)),F=Rn(Math.sqrt(Et*Et+Yt*Yt)),J=Bl(Lt,Et),M=Math.abs(J)>2e-4?J*Ha:0,b=me?1/(me<0?-me:me):0),p.svg&&(Pt=l.getAttribute("transform"),p.forceCSS=l.setAttribute("transform","")||!zp(js(l,dn)),Pt&&l.setAttribute("transform",Pt))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(z*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(F*=-1,M+=M<=0?180:-180)),o=o||p.uncache,p.x=C-((p.xPercent=C&&(!o&&p.xPercent||(Math.round(l.offsetWidth/2)===Math.round(-C)?-50:0)))?l.offsetWidth*p.xPercent/100:0)+m,p.y=I-((p.yPercent=I&&(!o&&p.yPercent||(Math.round(l.offsetHeight/2)===Math.round(-I)?-50:0)))?l.offsetHeight*p.yPercent/100:0)+m,p.z=N+m,p.scaleX=Rn(z),p.scaleY=Rn(F),p.rotation=Rn(E)+_,p.rotationX=Rn(L)+_,p.rotationY=Rn(x)+_,p.skewX=M+_,p.skewY=R+_,p.transformPerspective=b+m,(p.zOrigin=parseFloat(S.split(" ")[2])||!o&&p.zOrigin||0)&&(d[Lr]=yu(S)),p.xOffset=p.yOffset=0,p.force3D=Hr.force3D,p.renderTransform=p.svg?Mg:Ap?Bp:Tg,p.uncache=0,p},yu=function(l){return(l=l.split(" "))[0]+" "+l[1]},Nc=function(l,o,p){var d=sr(o);return Rn(parseFloat(o)+parseFloat(ta(l,"x",p+"px",d)))+d},Tg=function(l,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Bp(l,o)},Wa="0deg",Ah="0px",ja=") ",Bp=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,w=p.z,S=p.rotation,C=p.rotationY,I=p.rotationX,N=p.skewX,z=p.skewY,F=p.scaleX,E=p.scaleY,L=p.transformPerspective,x=p.force3D,M=p.target,R=p.zOrigin,b="",U=x==="auto"&&l&&l!==1||x===!0;if(R&&(I!==Wa||C!==Wa)){var B=parseFloat(C)*kl,X=Math.sin(B),J=Math.cos(B),K;B=parseFloat(I)*kl,K=Math.cos(B),m=Nc(M,m,X*K*-R),_=Nc(M,_,-Math.sin(B)*-R),w=Nc(M,w,J*K*-R+R)}L!==Ah&&(b+="perspective("+L+ja),(d||u)&&(b+="translate("+d+"%, "+u+"%) "),(U||m!==Ah||_!==Ah||w!==Ah)&&(b+=w!==Ah||U?"translate3d("+m+", "+_+", "+w+") ":"translate("+m+", "+_+ja),S!==Wa&&(b+="rotate("+S+ja),C!==Wa&&(b+="rotateY("+C+ja),I!==Wa&&(b+="rotateX("+I+ja),(N!==Wa||z!==Wa)&&(b+="skew("+N+", "+z+ja),(F!==1||E!==1)&&(b+="scale("+F+", "+E+ja),M.style[dn]=b||"translate(0, 0)"},Mg=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,w=p.rotation,S=p.skewX,C=p.skewY,I=p.scaleX,N=p.scaleY,z=p.target,F=p.xOrigin,E=p.yOrigin,L=p.xOffset,x=p.yOffset,M=p.forceCSS,R=parseFloat(m),b=parseFloat(_),U,B,X,J,K;w=parseFloat(w),S=parseFloat(S),C=parseFloat(C),C&&(C=parseFloat(C),S+=C,w+=C),w||S?(w*=kl,S*=kl,U=Math.cos(w)*I,B=Math.sin(w)*I,X=Math.sin(w-S)*-N,J=Math.cos(w-S)*N,S&&(C*=kl,K=Math.tan(S-C),K=Math.sqrt(1+K*K),X*=K,J*=K,C&&(K=Math.tan(C),K=Math.sqrt(1+K*K),U*=K,B*=K)),U=Rn(U),B=Rn(B),X=Rn(X),J=Rn(J)):(U=I,J=N,B=X=0),(R&&!~(m+"").indexOf("px")||b&&!~(_+"").indexOf("px"))&&(R=ta(z,"x",m,"px"),b=ta(z,"y",_,"px")),(F||E||L||x)&&(R=Rn(R+F-(F*U+E*X)+L),b=Rn(b+E-(F*B+E*J)+x)),(d||u)&&(K=z.getBBox(),R=Rn(R+d/100*K.width),b=Rn(b+u/100*K.height)),K="matrix("+U+","+B+","+X+","+J+","+R+","+b+")",z.setAttribute("transform",K),M&&(z.style[dn]=K)},Sg=function(l,o,p,d,u){var m=360,_=Wn(u),w=parseFloat(u)*(_&&~u.indexOf("rad")?Ha:1),S=w-d,C=d+S+"deg",I,N;return _&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*Tp)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*Tp)%m-~~(S/m)*m)),l._pt=N=new Cr(l._pt,o,p,d,S,ag),N.e=C,N.u="deg",l._props.push(p),N},Np=function(l,o){for(var p in o)l[p]=o[p];return l},Eg=function(l,o,p){var d=Np({},p._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=p.style,_,w,S,C,I,N,z,F;d.svg?(S=p.getAttribute("transform"),p.setAttribute("transform",""),m[dn]=o,_=bh(p,1),Va(p,dn),p.setAttribute("transform",S)):(S=getComputedStyle(p)[dn],m[dn]=o,_=bh(p,1),m[dn]=S);for(w in fo)S=d[w],C=_[w],S!==C&&u.indexOf(w)<0&&(z=sr(S),F=sr(C),I=z!==F?ta(p,w,S,F):parseFloat(S),N=parseFloat(C),l._pt=new Cr(l._pt,_,w,I,N-I,Oc),l._pt.u=F||0,l._props.push(w));Np(_,d)};Ar("padding,margin,Width,Radius",function(T,l){var o="Top",p="Right",d="Bottom",u="Left",m=(l<3?[o,p,d,u]:[o+u,o+p,d+p,d+u]).map(function(_){return l<2?T+_:"border"+_+T});_u[l>1?"border"+T:T]=function(_,w,S,C,I){var N,z;if(arguments.length<4)return N=m.map(function(F){return po(_,F,S)}),z=N.join(" "),z.split(N[0]).length===5?N[0]:z;N=(C+"").split(" "),z={},m.forEach(function(F,E){return z[F]=N[E]=N[E]||N[(E-1)/2|0]}),_.init(w,z,I)}});var Fp={name:"css",register:Dc,targetTest:function(l){return l.style&&l.nodeType},init:function(l,o,p,d,u){var m=this._props,_=l.style,w=p.vars.startAt,S,C,I,N,z,F,E,L,x,M,R,b,U,B,X,J;Pc||Dc(),this.styles=this.styles||bp(l),J=this.styles.props,this.tween=p;for(E in o)if(E!=="autoRound"&&(C=o[E],!(Wr[E]&&cp(E,o,p,d,l,u)))){if(z=typeof C,F=_u[E],z==="function"&&(C=C.call(p,d,l,u),z=typeof C),z==="string"&&~C.indexOf("random(")&&(C=yh(C)),F)F(this,l,E,C,p)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(l).getPropertyValue(E)+"").trim(),C+="",Jo.lastIndex=0,Jo.test(S)||(L=sr(S),x=sr(C)),x?L!==x&&(S=ta(l,E,S,x)+x):L&&(C+=L),this.add(_,"setProperty",S,C,d,u,0,0,E),m.push(E),J.push(E,0,_[E]);else if(z!=="undefined"){if(w&&E in w?(S=typeof w[E]=="function"?w[E].call(p,d,l,u):w[E],Wn(S)&&~S.indexOf("random(")&&(S=yh(S)),sr(S+"")||S==="auto"||(S+=Hr.units[E]||sr(po(l,E))||""),(S+"").charAt(1)==="="&&(S=po(l,E))):S=po(l,E),N=parseFloat(S),M=z==="string"&&C.charAt(1)==="="&&C.substr(0,2),M&&(C=C.substr(2)),I=parseFloat(C),E in Ws&&(E==="autoAlpha"&&(N===1&&po(l,"visibility")==="hidden"&&I&&(N=0),J.push("visibility",0,_.visibility),Qo(this,_,"visibility",N?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=Ws[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in fo,R){if(this.styles.save(E),b||(U=l._gsap,U.renderTransform&&!o.parseTransform||bh(l,o.parseTransform),B=o.smoothOrigin!==!1&&U.smooth,b=this._pt=new Cr(this._pt,_,dn,0,1,U.renderTransform,U,0,-1),b.dep=1),E==="scale")this._pt=new Cr(this._pt,U,"scaleY",U.scaleY,(M?Ll(U.scaleY,M+I):I)-U.scaleY||0,Oc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Lr,0,_[Lr]),C=xg(C),U.svg?Bc(l,C,0,B,0,this):(x=parseFloat(C.split(" ")[2])||0,x!==U.zOrigin&&Qo(this,U,"zOrigin",U.zOrigin,x),Qo(this,_,E,yu(S),yu(C)));continue}else if(E==="svgOrigin"){Bc(l,C,1,B,0,this);continue}else if(E in Dp){Sg(this,U,E,N,M?Ll(N,M+C):C);continue}else if(E==="smoothOrigin"){Qo(this,U,"smooth",U.smooth,C);continue}else if(E==="force3D"){U[E]=C;continue}else if(E==="transform"){Eg(this,C,l);continue}}else E in _||(E=Nl(E)||E);if(R||(I||I===0)&&(N||N===0)&&!og.test(C)&&E in _)L=(S+"").substr((N+"").length),I||(I=0),x=sr(C)||(E in Hr.units?Hr.units[E]:L),L!==x&&(N=ta(l,E,S,x)),this._pt=new Cr(this._pt,R?U:_,E,N,(M?Ll(N,M+I):I)-N,!R&&(x==="px"||E==="zIndex")&&o.autoRound!==!1?hg:Oc),this._pt.u=x||0,L!==x&&x!=="%"&&(this._pt.b=S,this._pt.r=lg);else if(E in _)yg.call(this,l,E,S,M?M+C:C);else if(E in l)this.add(l,E,S||l[E],M?M+C:C,d,u);else if(E!=="parseTransform"){oc(E,C);continue}R||(E in _?J.push(E,0,_[E]):J.push(E,1,S||l[E])),m.push(E)}}X&&vp(this)},render:function(l,o){if(o.tween._time||!Lc())for(var p=o._pt;p;)p.r(l,p.d),p=p._next;else o.styles.revert()},get:po,aliases:Ws,getSetter:function(l,o,p){var d=Ws[o];return d&&d.indexOf(",")<0&&(o=d),o in fo&&o!==Lr&&(l._gsap.x||po(l,"x"))?p&&wp===p?o==="scale"?pg:fg:(wp=p||{})&&(o==="scale"?dg:mg):l.style&&!tc(l.style[o])?ug:~o.indexOf("-")?cg:Sc(l,o)},core:{_removeProperty:Va,_getMatrix:kc}};Pr.utils.checkPrefix=Nl,Pr.core.getStyleSaver=bp,function(T,l,o,p){var d=Ar(T+","+l+","+o,function(u){fo[u]=1});Ar(l,function(u){Hr.units[u]="deg",Dp[u]=1}),Ws[d[13]]=T+","+l,Ar(p,function(u){var m=u.split(":");Ws[m[1]]=d[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(T){Hr.units[T]="px"}),Pr.registerPlugin(Fp);var Fc=Pr.registerPlugin(Fp)||Pr;Fc.core.Tween;class bg{constructor(l,o=!1){window.mars3d?(l&&l!=null&&(this._map=l),this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.canvasClientWidth=l.viewer.canvas.clientWidth,this.canvasClientHeight=l.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o):console.error("未引入指定插件")}add(l,o){let p=l.options.symbol.styleOptions.label.font_size,d=l.options.vectorId,u=Number(p)*1.4,m=Number(p)*1.8,_=l.options.symbol.styleOptions.label,{color:w,outlineColor:S,backgroundColor:C}=_;l.eachGraphic(I=>{I.label&&this.DynamicMaskingArr.push({id:d,uid:I.id,position:I.label.position,label:I.name,width:u*I.name.length,height:m,color:w,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:C,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.oldSet=new Set,this.tweenMap=new Map}remove(l){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==l),this.oldSet=new Set,this.tweenMap=new Map}modify(l,o){let{label:p}=o;if(p){let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:w}=p;this.DynamicMaskingArr.forEach(S=>{S.id===l&&(console.log(S),d!=null&&(S.color=this.Cesium.Color.fromCssColorString(d),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(d)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),_!=null&&(S.background=_),w!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(w),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(w)))})}}getBoundingRectangle(l){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._map.viewer.scene,l.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,l.width,l.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let l=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let d=!1,u=this.DynamicMaskingArr[o],m,_,w;if(_=this.getBoundingRectangle(u),!(_.x<0||_.x>this.canvasClientWidth||_.y<0||_.y>this.canvasClientHeight))if(l.length===0){l.push(o);continue}else{for(var p=0;p<l.length;p++)if(m=this.DynamicMaskingArr[l[p]],w=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(_,w)){d=!0;break}d||l.push(o)}}return new Set(l)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},p={color:1,outlineColor:1,backgroundColor:1},d=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(_=>!d.has(_))),m=new Set([...d].filter(_=>!this.oldSet.has(_)));for(let _ of u)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}var l=Fc.to(p,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var w=this.DynamicMaskingArr[_];w.backgroundColor.alpha=p.backgroundColor,w.color.alpha=p.color,w.outlineColor.alpha=p.outlineColor,this._map.getLayer(w.id,"vectorId").getGraphicByAttr(w.uid).setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(_,l)}for(let _ of m)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}let w=this.DynamicMaskingArr[_],{backgroundColor:S,color:C,outlineColor:I}=w.dynamicMaskingColor;var l=Fc.to(o,{duration:.8+Math.random(),color:C.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{w.backgroundColor.alpha=o.backgroundColor,w.color.alpha=o.color,w.outlineColor.alpha=o.outlineColor,this._map.getLayer(w.id,"vectorId").getGraphicByAttr(w.uid).setStyle({label:{show:!0,outline:w.outline,background:w.background,color:w.color,outlineColor:w.outlineColor,backgroundColor:w.backgroundColor}})}});this.tweenMap.set(_,l)}this.oldSet=d}}switchDynamicMasking(l){if(l)this._map.getLayers().forEach(o=>{var p;if((p=o.options)!=null&&p.vectorId){let{color:d,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(_=>{_.setStyle({label:{color:d.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else{let o,p,d,u;this.DynamicMaskingArr.forEach(m=>{o=m.dynamicMaskingColor,d=m.background,u=m.outline,p=this._map.getLayer(m.id,"vectorId"),p.eachGraphic(_=>{_.setStyle({label:{color:o.color,outlineColor:o.outlineColor,backgroundColor:o.backgroundColor,show:!0,background:d,outline:u}})})})}this.isDynamicMasking=l,window.bimVector.switchDynamicMasking(l)}}const Ag=[_f,wf],Cg={continuation:null,mapModali:null,install(T){if(Ag.forEach((m,_)=>{T.component(m.name,m)}),this.continuation){T.config.globalProperties.$continuation=this.continuation;return}let l=si.createApp(yf),o=document.createElement("div"),p=document.body;if(p.appendChild(o),this.loading=l.mount(o),T.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){T.config.globalProperties.$mapModali=this.mapModali;return}let d=si.createApp(xf),u=document.createElement("div");p.appendChild(u),this.mapModali=d.mount(u),T.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};$i.BimBackgroundPlate=wf,$i.BimCutscenes=yf,$i.BimElevationImage=rm,$i.BimEntity=om,$i.BimModel=tm,$i.BimTerrainProvider=nm,$i.BimVector=im,$i.Button=_f,$i.ChbimPlugins=Cg,$i.DynamicMasking=bg,$i.MapModali=xf,$i.PanoramicView=cm,$i.ViewShed=sm,Object.defineProperty($i,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chbim-plugins",
3
3
  "private": false,
4
- "version": "0.0.51",
4
+ "version": "0.0.52",
5
5
  "description": "一个简单的组件库",
6
6
  "main": "chbim-plugins.js",
7
7
  "keywords": [