From 1c2ea89e5d1be7b482826f7e018791139b1f9510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Fri, 28 Nov 2025 17:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/app/target/graphhopper/properties | Bin 32868 -> 32868 bytes resources/java/app/yjearth.jar | Bin 116800723 -> 116806918 bytes src/renderer/public/sdk/YJEarth.min.js | 4 ++-- .../setPup/components/engineering.vue | 2 +- .../headers/components/setPup/setPup.vue | 2 -- .../headers/components/setTool/setTool.vue | 6 +++++- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/java/app/target/graphhopper/properties b/resources/java/app/target/graphhopper/properties index 38784c33fbd09ee80cdd23389dd5f7329af671f8..7454d8e1dbe5e81eddf0f4f990961230bc941273 100644 GIT binary patch delta 22 dcmaFT!1SbnX+jI9MTmigm64&9$;RI6^#Edz2z>wm delta 22 dcmaFT!1SbnX+jI9d5D3Tm63^+!N%U}^#EdT2zdYi diff --git a/resources/java/app/yjearth.jar b/resources/java/app/yjearth.jar index 3d2938c5407af1c76c3bdc190fa5fb7f65cb15a7..797a1f30cef1d552ebfca9dcfdc03cac785d85b4 100644 GIT binary patch delta 161563 zcmbTdWmsHYvn@&>KyY{W;O_1a+}$C#2bT`+7Nl{4ySux)ySuyFN%HNz&$;K`ckg_+ zf32sV8nbGRs+v7k&DGP73+#bKi|p|7QeYoZK|X!@1cK%3sRf+;%*Ofg&y{}pIH`|q zfbEA`TTtW%uwUN+{To2p{#>*+fbxN1{`%&v0hAiuPLt9c8iWw!_vZr$CJ2bSxf;KI zhT!-O1S(L!1@zM&Q{6^Ty1y{}?WeO5lm*@4|6Vm9S^fXLDz_LSF|eZv6h6at`33?S zM@1PNn2ZZ`B(Eohv zzk@2rMWhE#xPT-6`=IB459BioLl68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=?zz(MAw0gd>aT1&AaeEs5fz(XoYXsZw^pK&mjXSKT5~{ zNTKQk`W{3J$+hlsiH3f(T&kitc7M2ce`)ouO%l~hvYC9TD*__Lx;?kjAE=RXw07iH zl-xeT=CQ=$wY}Lq&X0Qkmi;cSB2xQ{d;j^Xf@?bWSE+)68_DAuEjR>h0W#Z4u}py&;W{V$%ba*2Ko|2Cuv$E(MS)H zL}MU%w_<7U&ZkHa3DUfQ!A5&)Spq&>ip>t=ybtA^3NxDN6;D3PlLA}YOzov@<$4*Z za&RwW9X{4tg^UmB3}WJi8Y8G`Jo=R|wHplsksvNi#jg)1GP|4w-$;B}06)q3pajPM ztIBkRAIEs<_klBvbOm!9AIe8SGwIm{1oV6~!&rqHwt?1Sv!`>Y7pNA}t~Lvd6#CP* z#`4st&jO=69cKxo$6ek9mukzr;z9b>o~{;+Mu1f~MYI$|bFoate0%PhP$^27@-@YP zNRl#A|2ERC;eQ*e(>4THg|XRm6-0uNHH+$^+S`fa9#o?#pjr#rEAXs6GkL9E6p#!v zNRx8*o9ND&{idq45CK*pdl2mfks!o>Kwj;bOQ{+|JwYT0m3q)R5bcG8LnO3k9dOre ziU-kE%1wA|qJ1zMe)hHZV@wl{BG@X8^Lb)owdG5%YCpjQx^4%!2tFfi0?HzMGlRN< psKJ9K@}P}#X$gp`JZK*e8a$6KgYff;7NbS;8bgV7^PXUf;lE6nwWR<6 diff --git a/src/renderer/public/sdk/YJEarth.min.js b/src/renderer/public/sdk/YJEarth.min.js index 2366e89..8a9037e 100644 --- a/src/renderer/public/sdk/YJEarth.min.js +++ b/src/renderer/public/sdk/YJEarth.min.js @@ -1,4 +1,4 @@ -/*! update time: 2025/11/25 16:53:35*/!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=41)}([function(e,t,i){var n=i(42)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(36);function o(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,t=Array.from(h[e].keys());t.forEach((function(t){document.documentElement.style.setProperty(t,h[e].get(t))}))}h[0].set("--color-sdk-base-rgb","0, 255, 255"),h[0].set("--color-sdk-gradual","rgb(0, 255, 255) 6.25%, rgb(0, 200, 255) 100%"),h[0].set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%"),h[0].set("--color-sdk-text-shadow","rgba(20, 118, 255, 1)"),h[1].set("--color-sdk-base-rgb","42, 200, 251"),h[1].set("--color-sdk-gradual","rgb(42, 200, 251) 6.25%, rgb(42, 145, 251) 100%"),h[1].set("--color-sdk-bg-gradual","#2ac8fb33 0%, #2ac8fb00 100%"),h[1].set("--color-sdk-text-shadow","rgba(20, 63, 255, 1)"),h[2].set("--color-sdk-base-rgb","187, 26, 41"),h[2].set("--color-sdk-gradual","rgb(187, 26, 41) 6.25%, rgb(236, 20, 20) 100%"),h[2].set("--color-sdk-bg-gradual","#bb1a2933 0%, #bb1a2900 100%"),h[2].set("--color-sdk-text-shadow","rgba(246, 8, 30, 1)");var m=i(10),f=i(12),v=i(23),g=i(16);function y(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return b(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==h[2]?h[2]:3,o=new u.a(t),a=i.orientation,!i.position){e.next=13;break}if(0===i.position.alt||i.position.alt){e.next=8;break}return e.next=7,o.getClampToHeight(i.position);case 7:i.position.alt=e.sent;case 8:r=0,a||(r=500),s=Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt+r),e.next=15;break;case 13:c=o.cal_envelope(i.positions),s=new Cesium.Rectangle(Cesium.Math.toRadians(c[3][0]),Cesium.Math.toRadians(c[3][1]),Cesium.Math.toRadians(c[1][0]),Cesium.Math.toRadians(c[1][1]));case 15:F(t),t.viewer.camera.flyTo({destination:s,duration:n,orientation:a,complete:i.complete});case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.viewer){var i=e.viewer;i.scene.screenSpaceCameraController.enableRotate=t,i.scene.screenSpaceCameraController.enableTranslate=t,i.scene.screenSpaceCameraController.enableZoom=t,i.scene.screenSpaceCameraController.enableTilt=t,i.scene.screenSpaceCameraController.enableLook=t}}function N(e,t){if(e&&e.viewer){S[e.viewer._element.className]||(S[e.viewer._element.className]={}),S[e.viewer._element.className].event&&S[e.viewer._element.className].event.destroy();var i=new u.a(e),n=e.viewer._element,o=e.proj,s=function(){switch(r){case"compass":var s=n.getElementsByClassName("compass")[0],u=n.getElementsByClassName("navigation-controls")[0];t[r]?(s&&(s.style.display="block"),u&&(u.style.display="flex")):(s&&(s.style.display="none"),u&&(u.style.display="none"));break;case"legend":var h=n.getElementsByClassName("distance-legend")[0];t[r]?h&&(h.parentNode.style.display="block"):h&&(h.parentNode.style.display="none");break;case"info":var p=n.getElementsByClassName("cesium-info")[0];if(t[r]){var d=function(){var t=a()(l.a.mark((function t(){var n,s;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C){t.next=2;break}return t.abrupt("return");case 2:if(n=i.cartesian3Towgs84(C,e.viewer),"EPSG:4326"!==w){t.next=16;break}t.t0=k||"度",t.next="度"===t.t0?7:"度分"===t.t0?9:"度分秒"===t.t0?11:13;break;case 7:return p.innerHTML="\n

\n
纬度:").concat(Number(n.lat.toFixed(6)),"°
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 9:return p.innerHTML="\n
经度:".concat(o.degreesToDMS(n.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(n.lat,!0),"
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 11:return p.innerHTML="\n
经度:".concat(o.degreesToDMS(n.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(n.lat,!1),"
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 13:return t.abrupt("break",14);case 14:t.next=18;break;case 16:(s=o.convert([{x:n.lng,y:n.lat,z:n.alt}],"EPSG:4326",q(w,n))).points.length&&(p.innerHTML="\n
x:".concat(Number(s.points[0].x.toFixed(6)),'
\n
y:').concat(Number(s.points[0].y.toFixed(6)),'
\n
z:').concat(Number(s.points[0].z.toFixed(6)),"
\n "));case 18:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();p?(d(),p.style.display="block"):((p=document.createElement("div")).className="cesium-info",p.style.position="absolute",p.style.bottom="32px",p.style.right="240px",p.style["font-size"]="14px",p.style["background-color"]="rgba(47,53,60,.8)",p.style.color="#fff",p.style.padding="4px 10px",p.style["border-radius"]="18px",p.style.display="flex",p.innerHTML="EPSG:4326"===w?"\n
经度:-
\n
纬度:-
\n
高程:-
\n ":"\n
x:-
\n
y:-
\n
z:-
\n ",e.viewer._element.appendChild(p));var m=new c.a(e);S[e.viewer._element.className].event=m;m.mouse_move((function(e,t){C=t,d()}))}else p&&(p.style.display="none");break;case"frame":t[r]?(e.viewer.scene.debugShowFramesPerSecond=!0,setTimeout((function(){var t=e.viewer._element.getElementsByClassName("cesium-viewer-cesiumWidgetContainer")[0],i=t.getElementsByClassName("cesium-performanceDisplay-defaultContainer")[0];i&&t.appendChild(i)}),50)):e.viewer.scene.debugShowFramesPerSecond=!1}};for(var r in t)s()}}function B(e,t){t=t?"billboard_default_url_"+t:"billboard_default_url";var i=Object(g.a)();e.startsWith("http")||(e.includes(":")||i&&(e=new URL(e,i).href));localStorage.setItem(t,e)}function j(e){return e=e?"billboard_default_url_"+e:"billboard_default_url",localStorage.getItem(e)}function A(e,t){_=!!t,Object(v.e)(e.viewer)}function L(){return _}function I(e,t){e&&e.viewer&&(x[e.viewer._element.className]||(x[e.viewer._element.className]={}),x[e.viewer._element.className].status=t,x[e.viewer._element.className].MoveHandler&&x[e.viewer._element.className].MoveHandler.destroy(),t&&(x[e.viewer._element.className].MoveHandler=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas),x[e.viewer._element.className].MoveHandler.setInputAction((function(t){var i=e.viewer.scene.pick(t.endPosition),n=x[e.viewer._element.className].selectedId,o=e.entityMap.get(x[e.viewer._element.className].id);if(o&&o.features.has(n)){var s=o.features.get(n).features;for(var a in s)if(s[a].content._model){var r=s[a].customColor||Cesium.Color.fromCssColorString("#fff");s[a].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(r.red),",").concat(Cesium.Color.floatToByte(r.green),",").concat(Cesium.Color.floatToByte(r.blue),",").concat(r.alpha*(s[a].customAlpha||0===s[a].customAlpha?s[a].customAlpha:1),")"))}}if(i&&i.content)if("bim"===e.getIncetance(i.content.tileset.id).type){if(i.primitive&&i.primitive.id){var l=e.entityMap.get(i.primitive.id);if(n=i.getProperty("id"),l.features.has(n)){var c=l.features.get(n).features;for(var u in c)c[u].content._model&&(c[u].color=Cesium.Color.fromCssColorString("#ffeb3b"))}x[e.viewer._element.className].id=i.primitive.id,x[e.viewer._element.className].selectedId=n}}else i.primitive.id=null}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)))}function R(e){if(e&&e.viewer)return!!x[e.viewer._element.className]&&x[e.viewer._element.className].status}function z(e,t){if(e&&e.viewer)if(se(0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),e.entityMap.forEach((function(e){e.editObj&&e.editObj.destroy(),e.ControllerObject&&e.ControllerObject.destroy()})),E[e.viewer._element.className]||(E[e.viewer._element.className]={}),E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),t){var i=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),n=Cesium.Math.toDegrees(e.viewer.camera.heading),o=Cesium.Cartesian3.distance(e.viewer.camera.position,i);T(e,!1);var s=e.viewer.camera.pitch;Cesium.Math.toDegrees(s)<-89.99&&(s=Cesium.Math.toRadians(-89.99)),E[e.viewer._element.className].animate=new TWEEN.Tween({angle:n}).to({angle:n-360},3e4).easing(TWEEN.Easing.Linear.None).repeat(1/0).onUpdate(function(){var t=a()(l.a.mark((function t(n,a){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.viewer){t.next=3;break}return TWEEN.remove(E[e.viewer._element.className].animate),t.abrupt("return");case 3:e.viewer.camera.lookAt(i,new Cesium.HeadingPitchRange(Cesium.Math.toRadians(n.angle),s,o)),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);case 5:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start();var r=new c.a(e);E[e.viewer._element.className].event=r,r.mouse_left_down((function(){E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),T(e,!0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY)}))}else T(e,!0)}function F(e){e&&e.viewer&&E[e.viewer._element.className]&&(E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),T(e,!0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY))}function H(e){if(e&&e.entityMap){var t,i=y(e.entityMap);try{for(i.s();!(t=i.n()).done;){var n=o()(t.value,2),s=(n[0],n[1]);"TrajectoryMotion"===s.type&&s.viewFollow&&(s.viewFollow=!1)}}catch(e){i.e(e)}finally{i.f()}}}function V(e,t){if(e){var i,n=Object(f.a)().sdkD;n&&e!==n&&V(n,t);for(var o=0;o经度:".concat(Number(s.lng.toFixed(6)),"° \n
纬度:").concat(Number(s.lat.toFixed(6)),"°
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!0),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分秒":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!1),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ")}else{var a=o.convert([{x:s.lng,y:s.lat,z:s.alt}],"EPSG:4326",q(w,s));i.innerHTML="\n
x:".concat(Number(a.points[0].x.toFixed(6)),'
\n
y:').concat(Number(a.points[0].y.toFixed(6)),'
\n
z:').concat(Number(a.points[0].z.toFixed(6)),"
\n ")}}}}function q(e,t){var i;switch(e){case"EPSG:32601":var n=Math.floor((t.lng+180)/6+1);i=t.lat>0?"EPSG:"+(i=32600+n):"EPSG:"+(i=32700+n);break;case"EPSG:4534":i="EPSG:"+(i=Math.round(t.lng/3)-25+4534);break;case"EPSG:4513":i="EPSG:"+(i=Math.round(t.lng/3)-25+4513);break;case"EPSG:4502":var o=Math.floor(t.lng/6)+31;o<13&&(o=13),o>23&&(o=23),i="EPSG:"+(i=o-13+4502);break;case"EPSG:4491":var s=Math.floor(t.lng/6)+31;s<13&&(s=13),s>23&&(s=23),i="EPSG:"+(i=s-13+4491)}return i}function X(){return k}function Z(e,t){if("EPSG:4326"===w&&(k=t,e&&e.viewer&&e.viewer._element)){var i=e.viewer._element.getElementsByClassName("cesium-info")[0];if(C&&i){var n=new u.a,o=e.proj,s=n.cartesian3Towgs84(C,e.viewer);switch(t){case"度":i.innerHTML="\n
经度:".concat(Number(s.lng.toFixed(6)),"°
\n
纬度:").concat(Number(s.lat.toFixed(6)),"°
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!0),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分秒":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!1),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ")}o.degreesToDMS(s.lng,!0)}}}function K(e,t){var i=new u.a;return e.viewer.camera.changed.addEventListener((function(n){t({position:i.cartesian3Towgs84(e.viewer.camera.position,e.viewer),orientation:{heading:e.viewer.camera.heading,pitch:e.viewer.camera.pitch,roll:e.viewer.camera.roll}})}))}function Q(e){"number"==typeof e&&(Cesium.RequestScheduler.maximumRequestsPerServer=e)}function $(e,t){e&&(e.viewer._disableKeyboardEvent=!t)}function ee(){var e=Number(Number(localStorage.getItem("IndexedDBMaxSize")).toFixed(0));return(isNaN(e)||e<1073741824)&&(e=1073741824),e}function te(e){var t=Number(Number(e).toFixed(0));(isNaN(t)||t<1073741824)&&(t=1073741824),Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetIndexedDBMaxSize(t),localStorage.setItem("IndexedDBMaxSize",t)}function ie(){var e=localStorage.getItem("ManageIndexexDBState");return"false"!==e&&Boolean(e)}function ne(e){"boolean"==typeof e?(Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetManageIndexexDBState(e),localStorage.setItem("ManageIndexexDBState",e)):console.error("参数必须为boolean")}function oe(){return Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.GetIndexedDBCurrentSize()}function se(e){Object(m.f)(e),Object(f.e)(e)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t||0==t||(t=1),e.viewer.scene.globe.translucency.frontFaceAlpha=t}},function(e,t,i){var n=i(22).default,o=i(25);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(36);e.exports=function(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"e",(function(){return E})),i.d(t,"d",(function(){return O})),i.d(t,"g",(function(){return T})),i.d(t,"h",(function(){return I})),i.d(t,"a",(function(){return H})),i.d(t,"b",(function(){return V})),i.d(t,"f",(function(){return W})),i.d(t,"c",(function(){return U}));var n,o,s,a=i(18),r=i.n(a),l=i(6),c=i.n(l),u=i(3),h=i.n(u),p=i(0),d=i.n(p),m=i(15),f=(i(11),i(7)),v=i(12),g=i(27),y=i(19),b=i(29);function C(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return w(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=1;a--){for(r=!1,l=s.length-1;l>=1;l--)s[l].id&&i[l].id&&s[l].id===i[a].id&&(r=!0);r||n.viewer.scene.primitives.remove(i[a])}for(c=s.length-1;c>=1;c--){for(u=!1,h=i.length-1;h>=1;h--)s[c].id&&i[c].id&&s[c].id===i[h].id&&(u=!0,i[h].show=s[c].show,i[h].startColor=s[c].startColor,i[h].endColor=s[c].endColor,i[h].minimumSpeed=s[c].minimumSpeed,i[h].maximumSpeed=s[c].maximumSpeed,i[h].minimumParticleLife=s[c].minimumParticleLife,i[h].maximumParticleLife=s[c].maximumParticleLife,i[h].startScale=s[c].startScale,i[h].endScale=s[c].endScale,i[h].emissionRate=s[c].emissionRate,i[h].particleSize=s[c].particleSize,i[h].modelMatrix=s[c].modelMatrix);u||n.viewer.scene.primitives.add(s[c])}}case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e,t,i){var n=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas);n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.LEFT_DOWN),n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.RIGHT_DOWN),n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.WHEEL),_.push(n)}function F(){var e,t=this.sdks[s];if(0===s?e=this.sdks[1]:1===s&&(e=this.sdks[0]),2===t.viewer.scene.mode)if(this.sdks[0].viewer.trackedEntity){var i=t.viewer.camera.positionCartographic.height;e.viewer.camera.lookAt(Cesium.Cartesian3.fromRadians(t.viewer.camera.positionCartographic.longitude,t.viewer.camera.positionCartographic.latitude,0),new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(-90),i))}else{this.sdks[1].viewer.trackedEntity&&(this.sdks[1].viewer.entities.remove(this.sdks[1].viewer.trackedEntity),this.sdks[1].viewer.trackedEntity=null);var n=this.tools.cartesian3Towgs84(Cesium.Cartesian3.fromRadians(t.viewer.camera.positionCartographic.longitude,t.viewer.camera.positionCartographic.latitude,t.viewer.camera.positionCartographic.height),t.viewer);e.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt)})}else{var o=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/(2-(90+t.viewer.camera.pitch/(Cesium.Math.PI/180))/110)));o||(o=t.viewer.camera.positionWC);var a=this.tools.cartesian3Towgs84(t.viewer.camera.positionWC,t.viewer).alt,r=this.tools.cartesian3Towgs84(o,t.viewer);e.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(r.lng,r.lat,a)})}}function H(){return n}function V(){return o}function G(){n&&n.viewer.entities.add({show:!1,polygon:{hierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([100,50,100.0001,50,100.0001,50.0001]))}})}function W(e){s=e}function U(){return{sdkP:o,sdkD:n}}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=function(){return a()((function e(t){o()(this,e),this.sdk=t,this.viewer=t.viewer,this.handler=new Cesium.ScreenSpaceEventHandler(this.viewer.canvas)}),[{key:"mouse_left",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"mouse_left_down",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)}},{key:"mouse_left_up",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_UP)}},{key:"mouse_move",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"mouse_right",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"mouse_right_down",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_DOWN)}},{key:"mouse_right_up",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_UP)}},{key:"mouse_wheel",value:function(e){this.handler&&this.handler.setInputAction((function(){e()}),Cesium.ScreenSpaceEventType.WHEEL)}},{key:"getcartesian",value:function(e){var t=e.position||e.endPosition;e.position1&&e.position2&&(t={x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2});var i=this.viewer.scene.pickPosition(t);if(!i){for(var n=this.viewer.camera.getPickRay(t),o=this.viewer.scene.drillPickFromRay(n,10),s={},a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==y[2]&&y[2],o=y.length>3?y[3]:void 0,_){e.next=6;break}return e.abrupt("return");case 6:if(s=_.entityMap,r=k&&k.entityMap,!i){e.next=15;break}if((c=s.get(i))&&c.show){e.next=12;break}return e.abrupt("return");case 12:v(i,o),e.next=35;break;case 15:h=C(_.entityMap),e.prev=16,h.s();case 18:if((p=h.n()).done){e.next=27;break}if(d=a()(p.value,2),m=d[0],(f=d[1])&&f.show){e.next=24;break}return e.abrupt("continue",25);case 24:v(m,o);case 25:e.next=18;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(16),h.e(e.t0);case 32:return e.prev=32,h.f(),e.finish(32);case 35:if(!n){e.next=37;break}return e.abrupt("return");case 37:case"end":return e.stop()}}),e,null,[[16,29,32,35]])})))).apply(this,arguments)}function L(e,t){k.viewer.imageryLayers.addImageryProvider(e.imageryProvider,t)}function I(e,t,i){for(var n,o=0;o0&&void 0!==arguments[0]?arguments[0]:[];if(S=Array.isArray(e)?e:[e],_&&k){var t=_.viewer._element.getElementsByClassName("YJ-custom-checkbox-left")[0],i=_.viewer._element.getElementsByClassName("YJ-custom-checkbox-right")[0];if(e&&0!==e.length){if(t&&i){t.style.display="none",i.style.display="none";for(var n=0,o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:0,o=null;return{that:Array.prototype.slice.call(e.querySelectorAll(t),0),stopPropagation:function(e){(e=e||window.event).stopPropagation?e.stopPropagation():e.cancelBubble=!0},hide:function(){n(e,t).that.forEach((function(e){e.style.cssText+="display:none;"}))},show:function(i){void 0!==i?n(e,t).that[i].style.cssText+="display:block;":n(e,t).that.forEach((function(e){e.style.cssText+="display:block;"}))},legp_searchList:function(t){var i=[];return n(e,"input[name="+t+"]").that.forEach((function(e){i.push(e.value)})),i},legp_search:function(s){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n(e,t).that[i];if(r){var l='
\n '.concat(a?'':''),'\n
\n
\n
');r.innerHTML=l,n(e,".cy_datalist input").that[i].oninput=function(t){var a=this.value;if(n(e,".cy_datalist dl").hide(),s.length>0){n(e,".cy_datalist dl").show();var r=new RegExp(a),l=!1;n(e,".cy_datalist dl").that[i].innerHTML="",s.forEach((function(t){r.test(t.name)&&(l=!0,n(e,".cy_datalist dl").that[i].innerHTML+='
'+t.name+"
")})),l||(n(e,".cy_datalist dl").that[i].innerHTML='
暂无数据
'),c()}},n(e,".cy_datalist input").that[i].onclick=function(t){n(e,".cy_datalist dl").hide();var i=1*t.srcElement.classList[1];i=i||0,"none"===n(e,".cy_datalist dl").that[i].style.display&&(0==s.length?this.innerHTML="暂无数据":n(e,".cy_datalist dl").show(i),n(e,".cy_datalist dl").that[i].innerHTML="",s.forEach((function(t){n(e,".cy_datalist dl").that[i].innerHTML+='
'+t.name+"
"})),c()),t.stopPropagation()},document.addEventListener("click",(function(){n(e,".cy_datalist dl").hide()}))}function c(){n(e,".cy_datalist dl dd").that.forEach((function(e){e.onclick=function(e){if(this&&this.attributes){var t=this.attributes.value.value;o=t,e.currentTarget.parentNode.previousElementSibling.value=t;var i=new Event("input",{bubbles:!0});e.currentTarget.parentNode.previousElementSibling.dispatchEvent(i)}}}))}},legp_searchActive:function(e){o=e}}}},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(15),l=function(){return a()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"左键开始,右键结束",i=arguments.length>1?arguments[1]:void 0;o()(this,e),this.point=void 0,this.text=t,this.div=void 0,this.mouse_type=0,this.position=new Cesium.Cartesian3,this.viewer=i.viewer,this.create_tip(this.viewer)}),[{key:"set_text",value:function(e){this.div.getElementsByTagName("p")[0].innerText=e}},{key:"get_mouse_style",value:function(e){var t="";switch(e){case 1:t="move.png";break;default:t="arrow.png"}return"url(lib/img/"+t+"),auto"}},{key:"create_tip",value:function(e){this.create_tooltip()}},{key:"setPosition",value:function(e,t,i){this.position=e,this.move_tooltip(t,i)}},{key:"destroy",value:function(){this.viewer.entities.remove(this.point),this.remove_tooltip()}},{key:"create_tooltip",value:function(){var e=new r.a;this.div=document.createElement("div");this.div.setAttribute("style","position: absolute;z-index: 777;color: #ec131a;left:10px;top:0px;pointer-events: none;");var t=document.createElement("p");t.style.margin="0px",t.style.padding="0px",t.innerText=this.text,this.div.appendChild(t);var i=document.createElement("div");i.style.width="12px",i.style.height="12px",i.style.background="url(".concat(e.getSourceRootPath()+"/img/point.png",") 100% 100% no-repeat"),i.style.backgroundSize="100% 100%",i.style.position="absolute",i.style.left="-36px",i.style.top="-4px",this.div.style.display="none",this.div.appendChild(i),e=null,document.querySelector("body").appendChild(this.div)}},{key:"style_tip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e._element.style.cursor=this.get_mouse_style(t)}},{key:"remove_tooltip",value:function(){document.querySelector("body").contains(this.div)&&document.querySelector("body").removeChild(this.div)}},{key:"move_tooltip",value:function(e,t){var i=0,n=0;if(this.div.style.display="block",this.viewer&&this.viewer._element){var o=this.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];i=o.getBoundingClientRect().top+window.scrollY,n=o.getBoundingClientRect().left+window.scrollX}this.div.style.left=e+30+n+"px",this.div.style.top=t+i+"px"}}])}()},function(e,t,i){"use strict";var n,o,s,a,r=i(22),l=i.n(r),c=i(6),u=i.n(c),h=i(3),p=i.n(h),d=i(9),m=i.n(d),f=i(1),v=i.n(f),g=i(2),y=i.n(g),b=i(0),C=i.n(b),w=i(39),k=i.n(w),_=i(24),x=(i(20),i(13)),S=function(){var e=p()(C.a.mark((function e(t,n){var o,s,a,r,l,c,u,h,p,d,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=new _.a,s=new R(t),a=document.getElementsByClassName("proj-convert")[0].getElementsByClassName("content")[0],r=a.getElementsByClassName("item"),l=C.a.mark((function e(n){var l,c,u,h,p,d;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=r[n].getAttribute("data-type"),c=r[n].getElementsByClassName("convert")[0],u=r[n].getElementsByClassName("pickUp")[0],h=r[n].getElementsByClassName("icon-copy-box")[0],(p=new ClipboardJS(h,{text:function(e){var t;switch(l){case 0:case"0":t=r[n].getElementsByClassName("lng")[0].value+"°,"+r[n].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":t=a.getElementsByClassName("lng-dm-d")[0].value+"°"+a.getElementsByClassName("lng-dm-m")[0].value+"',"+a.getElementsByClassName("lat-dm-d")[0].value+"°"+a.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":t=a.getElementsByClassName("lng-dms-d")[0].value+"°"+a.getElementsByClassName("lng-dms-m")[0].value+"'"+a.getElementsByClassName("lng-dms-s")[0].value+'",'+a.getElementsByClassName("lat-dms-d")[0].value+"°"+a.getElementsByClassName("lat-dms-m")[0].value+"'"+a.getElementsByClassName("lat-dms-s")[0].value+'"'}return t}})).on("success",(function(e){s.message({text:"已复制到剪切板"})})),p.on("error",(function(e){s.message({type:"warning",text:"复制失败"})})),d=i(26).default,u.addEventListener("click",(function(){new d(t).start((function(e,t){switch(1*l){case 0:r[n].getElementsByClassName("lng")[0].value=t.lng,r[n].getElementsByClassName("lat")[0].value=t.lat;break;case 1:var i=o.degreesToDMS(t.lng,!0),s=o.degreesToDMS(t.lat,!0),c=i.split("°"),u=c[1].split("'"),h=s.split("°"),p=h[1].split("'");a.getElementsByClassName("lng-dm-d")[0].value=c[0],a.getElementsByClassName("lng-dm-m")[0].value=u[0],a.getElementsByClassName("lat-dm-d")[0].value=h[0],a.getElementsByClassName("lat-dm-m")[0].value=p[0];break;case 2:var d=o.degreesToDMS(t.lng),m=o.degreesToDMS(t.lat),f=d.split("°"),v=f[1].split("'"),g=v[1].split('"'),y=m.split("°"),b=y[1].split("'"),C=b[1].split('"');a.getElementsByClassName("lng-dms-d")[0].value=f[0],a.getElementsByClassName("lng-dms-m")[0].value=v[0],a.getElementsByClassName("lng-dms-s")[0].value=g[0],a.getElementsByClassName("lat-dms-d")[0].value=y[0],a.getElementsByClassName("lat-dms-m")[0].value=b[0],a.getElementsByClassName("lat-dms-s")[0].value=C[0]}}))})),c.addEventListener("click",(function(){var e,t,i,c,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,S;switch(l){case 0:case"0":e=r[n].getElementsByClassName("lng")[0].value,t=r[n].getElementsByClassName("lat")[0].value,p=o.degreesToDMS(e,!0),d=o.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),a.getElementsByClassName("lng-dm-d")[0].value=v[0],a.getElementsByClassName("lng-dm-m")[0].value=g[0],a.getElementsByClassName("lat-dm-d")[0].value=y[0],a.getElementsByClassName("lat-dm-m")[0].value=b[0],m=o.degreesToDMS(e),f=o.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),a.getElementsByClassName("lng-dms-d")[0].value=C[0],a.getElementsByClassName("lng-dms-m")[0].value=w[0],a.getElementsByClassName("lng-dms-s")[0].value=k[0],a.getElementsByClassName("lat-dms-d")[0].value=_[0],a.getElementsByClassName("lat-dms-m")[0].value=x[0],a.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 1:case"1":i=r[n].getElementsByClassName("lng-dm-d")[0].value,c=r[n].getElementsByClassName("lng-dm-m")[0].value,u=r[n].getElementsByClassName("lat-dm-d")[0].value,h=r[n].getElementsByClassName("lat-dm-m")[0].value,e=o.dmsToDecimal(i+"°"+c+"'",!0),t=o.dmsToDecimal(u+"°"+h+"'",!0),a.getElementsByClassName("lng")[0].value=e,a.getElementsByClassName("lat")[0].value=t,m=o.degreesToDMS(e),f=o.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),a.getElementsByClassName("lng-dms-d")[0].value=C[0],a.getElementsByClassName("lng-dms-m")[0].value=w[0],a.getElementsByClassName("lng-dms-s")[0].value=k[0],a.getElementsByClassName("lat-dms-d")[0].value=_[0],a.getElementsByClassName("lat-dms-m")[0].value=x[0],a.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 2:case"2":m=(i=r[n].getElementsByClassName("lng-dms-d")[0].value)+"°"+(c=r[n].getElementsByClassName("lng-dms-m")[0].value)+"'"+r[n].getElementsByClassName("lng-dms-s")[0].value+'"',f=(u=r[n].getElementsByClassName("lat-dms-d")[0].value)+"°"+(h=r[n].getElementsByClassName("lat-dms-m")[0].value)+"'"+r[n].getElementsByClassName("lat-dms-s")[0].value+'"',e=o.dmsToDecimal(m),t=o.dmsToDecimal(f),a.getElementsByClassName("lng")[0].value=e,a.getElementsByClassName("lat")[0].value=t,p=o.degreesToDMS(e,!0),d=o.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),a.getElementsByClassName("lng-dm-d")[0].value=v[0],a.getElementsByClassName("lng-dm-m")[0].value=g[0],a.getElementsByClassName("lat-dm-d")[0].value=y[0],a.getElementsByClassName("lat-dm-m")[0].value=b[0]}s.message({text:"转换成功"});for(var E=0;ENumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}},{key:"cartesian3Towgs84",value:function(e,t){var i=t.scene.globe.ellipsoid,n=new Cesium.Cartesian3(e.x,e.y,e.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude),a=Cesium.Math.toDegrees(o.longitude),r=o.height<0?0:o.height;return{lng:Number(a.toFixed(8)),lat:Number(s.toFixed(8)),alt:Number(r.toFixed(2))}}},{key:"computeDistance",value:(i=p()(C.a.mark((function e(){var t,i,n,o,s,a,r,l,c,h,p,d,m,f,v,g,y,b,w,k,_,x,S,E,P,O,D,M,T=arguments;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:[],i=T.length>1&&void 0!==T[1]?T[1]:2,n=T.length>2&&void 0!==T[2]?T[2]:0,!(t.length<2)){e.next=7;break}return e.abrupt("return",0);case 7:o=0,e.t0=n,e.next="0"===e.t0||0===e.t0?11:"1"===e.t0||1===e.t0?13:"2"===e.t0||2===e.t0?15:48;break;case 11:for(s=0;s20?g/20:g,y=this.chunkLine(t,m),b=[],y.forEach((function(e,t){0===t?b=u()(e.geometry.coordinates):b.push(e.geometry.coordinates[1])})),w=[],k=j(b),e.prev=25,k.s();case 27:if((_=k.n()).done){e.next=37;break}return x=_.value,S=b.indexOf(x),e.next=32,this.sampleHeight({lng:x[0],lat:x[1],alt:0},S);case 32:(E=e.sent).position.alt=E.position.alt<0?0:E.position.alt,w.push(E);case 35:e.next=27;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(25),k.e(e.t1);case 42:return e.prev=42,k.f(),e.finish(42);case 45:for(w.length,P=0;P0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e.length<2)return 0;var n=0;if(i){var o=[];e.forEach((function(e){o.push([e.lng,e.lat,e.alt])}));var s=turf.lineString(o);n=1e3*turf.length(s)}else for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:2;if(e.length<3)return 0;var i=[];e.forEach((function(e){i.push([e.lng,e.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.tesselate(n);return Number(turf.area(o).toFixed(t))}},{key:"computeSignedArea",value:function(e,t){for(var i=[],n=[],o=0;oc?l/10:c/10;var u=new Cesium.PolygonGeometry.fromPositions({positions:Cesium.Cartesian3.fromDegreesArray(i),vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT,granularity:s}),h=new Cesium.PolygonGeometry.createGeometry(u);if(!h||!h.attributes||!h.attributes.position)return 0;var p=h.indices,d=h.attributes.position.values;function m(t,i){var n=new Cesium.Cartesian3(d[3*i],d[3*i+1],d[3*i+2]);return e.scene.clampToHeight(n)||n}for(var f=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:360};Number(t)<=0&&(t=.01);var n=[Number(e.lng),Number(e.lat)],o=turf.circle(n,t/1e3,i).geometry.coordinates[0],s=[];return o.forEach((function(e){s=s.concat(e)})),s}},{key:"createEllipse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{granularity:.1,semiMinorAxis:10,semiMajorAxis:20,bearing:0,height:0};t.granularity||(t.granularity=.1),t.height||(t.height=0),t.semiMinorAxis||(t.semiMinorAxis=1e-5),t.semiMajorAxis||(t.semiMajorAxis=1e-5);var i=new Cesium.EllipseOutlineGeometry({center:Cesium.Cartesian3.fromDegrees(Number(e.lng),Number(e.lat)),semiMajorAxis:Number(t.semiMajorAxis),semiMinorAxis:Number(t.semiMinorAxis),height:Number(t.height),granularity:Cesium.Math.toRadians(t.granularity),rotation:Cesium.Math.toRadians(t.bearing)}),n=Cesium.EllipseOutlineGeometry.createGeometry(i);if(!n||!n.attributes||!n.attributes.position)return[];for(var o=n.attributes.position.values,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=[];e.forEach((function(e){t.push(turf.point([e.lng,e.lat]))}));var i=turf.featureCollection(t),n=turf.center(i).geometry.coordinates;return{lng:n[0],lat:n[1]}}},{key:"computeMidpoint",value:function(e,t){var i=turf.point([e.lng,e.lat]),n=turf.point([t.lng,t.lat]),o=turf.midpoint(i,n).geometry.coordinates;return{lng:o[0],lat:o[1]}}},{key:"computeAttackArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(e,0)}},{key:"computePincerArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(e)}},{key:"computeArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.length<3)return[];for(var i,n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length<2)return[];e.length;var i=new Array;if(e.forEach((function(e){i.push([e.lng,e.lat])})),2===i.length){var n=P.PlotUtils.mid(i[0],i[1]),o=P.PlotUtils.distance(i[0],n)/.9,s=P.PlotUtils.getThirdPoint(i[0],n,P.Constants.HALF_PI,o,!0);i=[i[0],s,i[1]]}var a=P.PlotUtils.mid(i[0],i[2]);i.push(a,i[0],i[1]);for(var r=[],l=void 0,c=void 0,h=void 0,p=[],d=0;d0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length<2)return[];var i=[e[0].lng,e[0].lat],n=[e[1].lng,e[1].lat];if(e[0].lng===e[1].lng&&e[0].lat===e[1].lat){if(t)return[e[0],e[0],e[0]];var o=Cesium.Cartesian3.fromDegrees(e[0].lng,e[0].lat);return[o,o,o]}for(var s,a=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"#2ab0c2",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="",s={7:10,8:3,9:4,10:4,11:4,12:2};switch(i&&(s[t+""]?i.polyline.width=i.polyline.oriWidth+s[t+""]:i.polyline.width=i.polyline.oriWidth),Number(t)){case 1:o=new Cesium.PolylineDashMaterialProperty({color:Cesium.Color.fromCssColorString(e),dashLength:10});break;case 2:o=new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:Cesium.Color.fromCssColorString(e)});break;case 3:o=new Cesium.PolylineFlowMaterialProperty({color:e,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 4:o=new Cesium.PolylineFlowMultMaterialProperty({color:e,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 5:case 6:var a,r=this;o=new Cesium.FlowDashedLineFlowMaterialProperty({color:e,uType:5==t?0:1,speed:n.rotate?n.speed:0-n.speed,space:n.space,scale:new Cesium.CallbackProperty((function(){if(r.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var e=i.polyline.positions.getValue();if(!Cesium.defined(e))return 1;for(var t=0,n=0;n0||0==t.speed?(n.width=s.width*(t.space+1),n.height=s.height,o.drawImage(s,s.width*(t.space/2),0)):(o.clearRect(0,0,n.width,n.height),n.width=s.width*(t.space+1),n.height=s.height,o.save(),o.translate(n.width/2,n.height/2),o.rotate(Math.PI),o.translate(-n.width/2,-n.height/2),o.drawImage(s,s.width*(t.space/2),0),o.restore());var a=0,r=0;i.polyline.material=new Cesium.LineTextureMaterialProperty({color:t.color,image:n,speed:t.speed,repeat:new Cesium.CallbackProperty((function(){if(e.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var o=i.polyline.positions.getValue(e.sdk.viewer.clock.currentTime);if(!Cesium.defined(o))return new Cesium.Cartesian2(1,1);for(var s=0,l=0;l700){var v=(u*=f/h/(t.space*(n.width/n.height*5)+1))/i.polyline.oriRepeat;i.polyline.oriSpeed=v,i.polyline.oriRepeatX=u,a=v,r=u,c=new Cesium.Cartesian2(u,v||1)}else c=new Cesium.Cartesian2(r||i.polyline.oriRepeatX,a||i.polyline.oriSpeed);return c}var g=Object(B.b)(),y=g.viewer.entities.getById(e.options.id),b=y.polyline.positions.getValue(g.viewer.clock.currentTime);if(!Cesium.defined(b))return new Cesium.Cartesian2(1,1);for(var C=0,w=0;w700){var D=(_*=O/x/(t.space*(n.width/n.height*5)+1))/y.polyline.oriRepeat;y.polyline.oriSpeed=D,y.polyline.oriRepeatX=_,a=D,r=_,k=new Cesium.Cartesian2(_,D||1)}else k=new Cesium.Cartesian2(r||y.polyline.oriRepeatX,a||y.polyline.oriSpeed);return k}))});var l=e.getSceenLine(i,t,n);l&&(i.polyline.oriRepeat=l)}}},{key:"getSceenLine",value:function(e,t,i){var n=new Cesium.Cartesian2(0,this.sdk.viewer.canvas.clientHeight),o=new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight),s=this.sdk.viewer.camera.getPickRay(n),a=this.sdk.viewer.scene.globe.pick(s,this.sdk.viewer.scene),r=this.sdk.viewer.camera.getPickRay(o),l=this.sdk.viewer.scene.globe.pick(r,this.sdk.viewer.scene);if(a&&l){var c=Cesium.Cartesian3.distance(a,l)/e.polyline.width.getValue(),u=this.sdk.viewer.camera.positionCartographic.height,h=new Cesium.BoundingSphere(new Cesium.Cartesian3(-1e6,0,0),5e5),p=this.sdk.viewer.canvas.clientWidth,d=this.sdk.viewer.canvas.clientHeight,m=this.sdk.viewer.scene.camera.getPixelSize(h,p,d);return m>700?c*=m/u/(t.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Object(B.b)().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"create_arrow1_picture",value:function(e){var t=new fabric.Canvas("canvas");t.width=150,t.height=75;var i=e,n=new fabric.Polygon([{x:t.width,y:t.height/2},{x:t.width-35,y:t.height},{x:t.width-35,y:t.height-20},{x:t.width/2,y:t.height-20},{x:t.width/2,y:20},{x:t.width-35,y:20},{x:t.width-35,y:0}],{fill:i});return t.add(n),t.toDataURL()}},{key:"create_arrow2_picture",value:function(e){var t=new fabric.Canvas("canvas");t.width=75,t.height=75;var i=e,n=new fabric.Polygon([{x:t.width,y:t.height/2},{x:t.width-35,y:t.height},{x:t.width-35-40,y:t.height},{x:t.width-40,y:t.height/2},{x:t.width-35-40,y:0},{x:t.width-35,y:0}],{fill:i});return t.add(n),t.toDataURL()}},{key:"sampleHeightMostDetailed",value:function(e,t){var i=[];return e.forEach((function(e){i.push(new Cesium.Cartographic.fromDegrees(e.lng,e.lat))})),t?t.viewer.scene.sampleHeightMostDetailed(i):this.sdk.viewer.scene.sampleHeightMostDetailed(i)}},{key:"flyHome",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(Object(N.w)(0),Object(N.f)(this.sdk),Object(N.g)(this.sdk),this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE){var t=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.destination,i=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.orientation;this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),orientation:{heading:Cesium.Math.toRadians(i.heading||0),pitch:Cesium.Math.toRadians(i.pitch||0),roll:Cesium.Math.toRadians(i.roll||0)},duration:e})}else this.sdk.viewer.camera.flyHome(e)}},{key:"setPickStatus",value:function(){}},{key:"create_point_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:10},n=turf.point([Number(e.lng),Number(e.lat)]),o=turf.buffer(n,Number(t)/1e3,i);return o.geometry.coordinates}},{key:"create_line_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===e.length)return this.create_point_buffer(e[0],t);if(0===e.length)return!1;var i=[];e.forEach((function(e){i.push([Number(e.lng),Number(e.lat)])}));var n=turf.lineString(i),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"create_area_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===e.length)return this.create_point_buffer(e[0],t);if(0===e.length)return!1;if(2===e.length)return this.create_line_buffer(e,t);var i=[];e.forEach((function(e){i.push([Number(e.lng),Number(e.lat)])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"cal_envelope",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(e.length<2)){var t=[];e.forEach((function(e){t.push(turf.point([e.lng,e.lat]))}));var i=turf.featureCollection(t);return turf.envelope(i).geometry.coordinates[0]}console.error("坐标数量不能少于2个")}},{key:"chunkLine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(e.length<2)return[];var i=[];e.forEach((function(e){i.push([e.lng,e.lat])}));var n=turf.lineString(i),o=turf.lineChunk(n,t/1e3),s=new Map;return o.features.forEach((function(e){e.geometry.coordinates.forEach((function(e){var t=e.join(","),i={lng:e[0],lat:e[1]};s.set(t,i)}))})),o.features}},{key:"billboardAnimation",value:function(e,t){var i=t.id,n=t.offset,o=void 0===n?10:n,s=(t.times,e.entities.getById(i));if(s){var a=Math.PI,r=a/60,l=0,c=this.cartesian3Towgs84(s.position.getValue(),e),u=setInterval((function(){l+=r;var e=o*Math.sin(l)+c.alt;l>a&&(l=0),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e)}),30);setTimeout((function(){clearInterval(u),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt)}),3e3)}}},{key:"calSector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:45,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=turf.point([e.lng,e.lat]),r=turf.sector(a,t/1e3,i,n,{steps:o}).geometry.coordinates,l=[];return r.forEach((function(e){e.forEach((function(e){var t;t=s?{lng:e[0],lat:e[1]}:Cesium.Cartesian3.fromDegrees(e[0],e[1]),l.push(t)}))})),l}},{key:"getClampToHeight",value:(e=p()(C.a.mark((function e(t){var i,n,o,s,a,r,l=arguments;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>1&&void 0!==l[1]?l[1]:[],this.sdk&&this.sdk.viewer){e.next=3;break}return e.abrupt("return",0);case 3:return n=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat),e.prev=4,e.next=7,this.sdk.viewer.scene.clampToHeight(n,i);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=n;case 10:o=e.t0,e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),o=n;case 16:return e.next=18,this.cartesian3Towgs84(o,this.sdk.viewer).alt;case 18:if(s=e.sent,a=0,e.prev=20,!this.sdk.viewer.scene.terrainProvider.availability){e.next=26;break}return e.next=24,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(t.lng,t.lat)]);case 24:(r=e.sent)[0].height&&(a=r[0].height);case 26:e.next=31;break;case 28:e.prev=28,e.t2=e.catch(20),a=0;case 31:if(!(s>a)){e.next=35;break}return e.abrupt("return",Number(s.toFixed(2)));case 35:return e.abrupt("return",Number(a.toFixed(2)));case 36:case"end":return e.stop()}}),e,this,[[4,13],[20,28]])}))),function(t){return e.apply(this,arguments)})},{key:"deepCopyObj",value:function(e){var t=null;if(Array.isArray(e)){t=[];for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};e?S(this.sdk,t):E()}},{key:"projectionConvert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};e?M(this.sdk,t):T()}},{key:"exportExcel",value:function(e){var t="";for(var i in e[0])t+=''.concat(i,"");t+="";for(var n,o='{rows}
',s=function(e,t){return e.replace(/{(\w+)}/g,(function(e,i){return t[i]}))},a="",r="",l=0;l",e[l])r+=s('{data}',{nameType:"String",data:e[l][c]});r+="",l>0&&l/6e4%1==0&&(a+=s(o,{rows:r,nameWS:"Sheet"+l}),r="",r+=t)}a+=s(o,{rows:r,nameWS:"Sheet"}),r="",n=s('Axel Richter{created}{worksheets}',{created:(new Date).getTime(),worksheets:a});var u,h=document.createElement("A");h.href="data:application/vnd.ms-excel;base64,"+(u=n,window.btoa(unescape(encodeURIComponent(u)))),h.download="矢量数据导出.xls",h.target="_blank",document.body.appendChild(h),h.click(),document.body.removeChild(h)}},{key:"decompressGzip",value:function(e){var t=pako.inflate(e);return(new TextDecoder).decode(t)}},{key:"cmykToRgb",value:function(e){var t=e.c,i=e.m,n=e.y,o=e.k,s={r:0,g:0,b:0};return s.c=t/100,s.m=i/100,s.y=n/100,s.k=o/100,s.r=1-Math.min(1,s.c*(1-s.k)+s.k),s.g=1-Math.min(1,s.m*(1-s.k)+s.k),s.b=1-Math.min(1,s.y*(1-s.k)+s.k),s.r=Math.round(255*s.r),s.g=Math.round(255*s.g),s.b=Math.round(255*s.b),"rgb(".concat(s.r,", ").concat(s.g,", ").concat(s.b,")")}},{key:"convertPxToRem",value:function(e,t){var i=parseFloat(getComputedStyle(document.documentElement).fontSize),n=[],o=[];if(t){n=document.getElementById(e.div_id).querySelectorAll(t);for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=e.length,i=0,n=0,o=0;o0&&i<0||n<0&&i>0)return!1;i=n}}return!0}},{key:"getDateTimeString",value:function(){var e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),r=String(e.getMilliseconds()).padStart(3,"0");return"".concat(t).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)}},{key:"replaceHost",value:function(e,t){var i=e;if(!e||!t)return e;try{if(e.startsWith("http")){var n=/^[^@]+@/;n.test(e)&&(e=e.replace(n,"")),/^[a-z]+:\/\//i.test(e)||(e="http://"+e);var o=new URL(e),s=new URL(t),a=o.hostname,r=o.port;return a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1)),"localhost"!==a&&"127.0.0.1"!==a||55110===parseInt(r,10)||(o.port=s.port,o.protocol=s.protocol,i=o.toString()),i}return e.includes(":")||this.options.host&&(i=new URL(e,this.options.host).href),i}catch(e){return i}}},{key:"message",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type||"success",i=e.text||"",n=(e.duration,document.getElementById("YJ-custom-message"));n&&document.body.removeChild(n),n=document.createElement("div"),n.id="YJ-custom-message","success"==t?n.innerHTML='\n '.concat(i,"\n "):"warning"==t&&(n.innerHTML='\n '.concat(i,"\n ")),document.body.appendChild(n),n.classList.add(t)}},{key:"pointDistance",value:function(e,t){var i=Cesium.Cartesian3.fromDegrees(e.lng,e.lat),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat);return Cesium.Cartesian3.distance(n,i)}},{key:"mercatorToWGS84",value:function(e,t){var i=t/20037508.34*180;return[e/20037508.34*180,i=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"convertCGCStoWGS84",value:function(e,t,i){return proj4("+proj=tmerc +lat_0=0 +lon_0="+i+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[e,t])}},{key:"convertCGCSToWGS84WithZone",value:function(e,t){var i=e.toString(),n=parseInt(i.substring(0,2)),o=parseInt(i.substring(2)),s="+proj=tmerc +lat_0=0 +lon_0=".concat(3*n," +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs");return proj4(s,"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[o,t])}},{key:"convertCGCS2000_6ToWGS84",value:function(e,t,i){return proj4("+proj=tmerc +lat_0=0 +lon_0="+i+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[e,t])}},{key:"convertCGCS2000_6ToWGS84WithZone",value:function(e,t){var i=e.toString(),n=6*parseInt(i.substring(0,2))-3,o=parseInt(i.substring(2));return proj4("+proj=tmerc +lat_0=0 +lon_0="+n+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[o,t])}}],[{key:"_md5",value:function(e){return k()(e).toUpperCase()}}]);var e,t,i}(),R=t.a=I},function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return f})),i.d(t,"a",(function(){return d}));var n=i(3),o=i.n(n),s=i(0),a=i.n(s);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isc:!1,excel:!1,flv:!1,rtsp:!1,hls:!1,host:"",username:"",password:"",token:""};return new Promise((function(t,i){var n=v(),o=["/custom/css/index.css","/arrow/algorithm.js","/arrow/plotUtil.js","/3rdparty/turf.min.js","/3rdparty/fabric.min.js","/3rdparty/proj4.js","/3rdparty/pako.min.js","/3rdparty/heatmap.js","/3rdparty/tween.umd.js","/Cesium/Cesium.js","/Cesium/Widgets/widgets.css","/3rdparty/ewPlugins.min.js","/3rdparty/wangeditor/index.js","/3rdparty/wangeditor/style.css","/3rdparty/html2canvas.min.js","/3rdparty/kriging.js","/3rdparty/echarts.min.js","/3rdparty/clipboard.min.js","/3rdparty/libgif.js","/3rdparty/liveplayer/liveplayer-element.min.js","/3rdparty/jedate/jedate.min.js","/3rdparty/jedate/skin/jedate.css"];window.YJSDK3rdpartyResourceAddress=n+"/3rdparty",e.ws&&o.push("/3rdparty/reconnecting-websocket.js"),(e.flv||e.rtsp)&&o.push("/3rdparty/flv.min.js");var s=document.createElement("script");s.setAttribute("type","module"),s.textContent="\n import * as THREE from '".concat(n,"/3rdparty/three/three.module.min.js';\n window.THREE = THREE\n "),document.querySelector("html").appendChild(s);var a=document.createElement("script");a.setAttribute("type","module"),a.textContent="\n import { SVGLoader } from '".concat(n,"/3rdparty/three/jsm/loaders/SVGLoader.js';\n window.SVGLoader = SVGLoader\n "),document.querySelector("html").appendChild(a);var r=[];o.forEach((function(e){var t;e.endsWith(".js")?((t=document.createElement("script")).setAttribute("type","text/javascript"),t.setAttribute("src",n+e)):((t=document.createElement("link")).setAttribute("rel","stylesheet"),t.setAttribute("href",n+e)),document.querySelector("html").appendChild(t);var i=new Promise((function(e,i){t.onload=function(){e()}})).then((function(e){return e}));r.push(i)})),Promise.all(r).then((function(i){var o,s;(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",n+"/3rdparty/viewerCesiumNavigationMixin.min.js"),document.querySelector("html").appendChild(o),o.onload=function(){p(e.host),e.username?u(e).then((function(e){t()})):(m(e.token),t())},(s=document.createElement("script")).setAttribute("type","text/javascript"),s.setAttribute("src",n+"/3rdparty/CesiumHeatmap.js"),document.querySelector("html").appendChild(s)})).catch((function(e){i(e)}))}))}var l="9e549c39c542fc9f835c2a5c260f8cc1",c="40ef4712c26360d01e397ebcb0d031ca";function u(){return h.apply(this,arguments)}function h(){return(h=o()(a.a.mark((function e(){var t,i,n,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.next=3,fetch((t.host||"")+"/yjearth4.0/api/v1/user/sign-in",{method:"post",body:JSON.stringify({username:t.username,password:t.password}),headers:{"Content-Type":"application/json"}});case 3:return i=e.sent,e.next=6,i.text();case 6:n=e.sent,0===(n=JSON.parse(n)).code&&(p(t.host),n.token?m(n.token):m(n.data.token));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){localStorage.setItem(c,e||"")}function d(){return localStorage.getItem(c)||""}function m(e){localStorage.setItem(l,e)}function f(){return localStorage.getItem(l)}function v(){var e=document.querySelectorAll("script"),t="";return e.forEach((function(e){if(e.src.indexOf("YJEarth.min.js")>-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}},function(e,t,i){var n=i(38);function o(){return e.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var o=n(e,t);if(o){var s=Object.getOwnPropertyDescriptor(o,t);return s.get?s.get.call(arguments.length<3?e:i):s.value}},e.exports.__esModule=!0,e.exports.default=e.exports,o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(43),o=i(44),s=i(34),a=i(45);e.exports=function(e,t){return n(e)||o(e,t)||s(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"g",(function(){return h})),i.d(t,"a",(function(){return p})),i.d(t,"j",(function(){return g})),i.d(t,"m",(function(){return y})),i.d(t,"i",(function(){return d})),i.d(t,"c",(function(){return m})),i.d(t,"l",(function(){return b})),i.d(t,"n",(function(){return C})),i.d(t,"h",(function(){return f})),i.d(t,"b",(function(){return v})),i.d(t,"k",(function(){return w})),i.d(t,"o",(function(){return k})),i.d(t,"d",(function(){return _})),i.d(t,"f",(function(){return x})),i.d(t,"e",(function(){return S}));var n=null,o=null,s=null,a=new Map,r=new Map,l=new Map;function c(e,t){var i=t.scene.globe.ellipsoid,n=new Cesium.Cartesian3(e.x,e.y,e.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude);return{lng:Cesium.Math.toDegrees(o.longitude),lat:s,alt:o.height<0?0:o.height}}function u(e,t){t.endPosition&&(t.endPosition.y-=2);var i=t.position||t.endPosition,n=e.viewer.scene.pickPosition(i);if(!n){var o=e.viewer.camera.getPickRay(i);n=e.viewer.scene.globe.pick(o,e.viewer.scene)}return n}function h(e,t){if(e&&e.viewer){var i=!0;(n=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(n){var o=e.viewer.scene.pickPosition(n.position);if(!o){var s=e.viewer.camera.getPickRay(n.position);o=e.viewer.scene.globe.pick(s,e.viewer.scene)}if(o){var r=c(o,e.viewer);if(t&&t(r),i&&(i=!1,setTimeout((function(){i=!0}),600),!YJ.Measure.GetMeasureStatus()&&o)){for(var l=!1,h=a.size-1;h>=0;h--){var p=Array.from(a.keys())[h],d=a.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([r.lng,r.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([r.lng,r.lat]),C=[],w=0;w=3){for(var _=turf.point([r.lng,r.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([r.lng,r.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l()(this,e),this.container=t,this.options=m({},i),this.options.ismove=!0,!1===i.ismove&&(this.options.ismove=i.ismove),this.closeCallBack=i.closeCallBack,this._element={},this._element_style=void 0,this.only=n}),[{key:"init",value:(e=o()(p.a.mark((function e(){var t,i,n,o=this;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.only&&this.closeAll(),v.push(this),this.isDestroy=!1,this._element.body=document.createElement("div"),this._element.body.className="YJ-custom-base-dialog",this._element.body.style.top=this.options.top,this._element.body.style.bottom=this.options.bottom,this._element.body.style.left=this.options.left,this._element.body.style.right=this.options.right,this.container.appendChild(this._element.body),this._element.title=document.createElement("div"),this._element.title.className="title-box",this._element.title.innerHTML=''.concat(this.options.title||"","")+'',this._element.body.appendChild(this._element.title),e.next=16,document.createElement("div");case 16:return this._element.content=e.sent,this._element.content.className="content",this._element.body.appendChild(this._element.content),e.next=21,document.createElement("div");case 21:return this._element.foot=e.sent,this._element.foot.className="foot",this._element.foot.innerHTML='\n \n ',this._element.body.appendChild(this._element.foot),e.next=27,document.createElement("div");case 27:for((t=e.sent).style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backdropFilter="blur(2px)",t.style.zIndex="-999999",this._element.body.appendChild(t),this._element.body.getElementsByClassName("close-box")[0].addEventListener("click",(function(){o.close()})),i=this._element.body.getElementsByClassName("close"),n=0;n=0;t--)e[t].dataset&&"YJ_style_dialog"===e[t].dataset.name&&document.getElementsByTagName("head")[0].removeChild(e[t]);this._element.body&&this._element.body.parentNode&&this.container.removeChild(this._element.body),this._element.body=null,this._element.title=null,this._element.content=null,this._element.foot=null,this._element_style=null,this.isDestroy=!0,this.closeCallBack&&(this.closeCallBack(),this.closeCallBack=null)}},{key:"closeAll",value:function(){for(var e=v.length-1;e>=0;e--)v[e].close(),v.splice(e,1)}},{key:"titleAppChild",value:function(e){this._element.title.appendChild(e)}},{key:"contentAppChild",value:function(e){this._element.content.appendChild(e)}},{key:"footAppChild",value:function(e,t){t?this._element.foot.insertBefore(e,t):this._element.foot.prepend(e)}},{key:"moveDiv",value:function(){var e=this,t=0,i=0,n=0,o=0,s=this._element.body,a=this;s.onmousedown=function(s){if("title-box"===s.toElement.className){var r=e._element.body.offsetHeight,l=e._element.body.offsetWidth;t=s.clientX,i=s.clientY;var c=window.getComputedStyle(e._element.body).left,u=window.getComputedStyle(e._element.body).top;n=1*c.substr(0,c.indexOf("px")),o=1*u.substr(0,u.indexOf("px"));var h=document.documentElement.clientHeight,p=document.documentElement.clientWidth;window.onmousemove=function(e){e.preventDefault();var s=e.clientX,c=e.clientY,u=s-(t-n),d=c-(i-o);u<0?u=0:u+l>p&&(u=p-l),d<=0?d=0:d+r>h&&(d=h-r),a._element.body.style.left=u+"px",a._element.body.style.top=d+"px",a._element.body.style.bottom="unset",a._element.body.style.right="unset"},document.onmouseup=function(e){window.onmousemove=null},window.ondragend=function(e){window.onmousemove=null}}},document.onmouseup=function(e){window.onmousemove=null},window.ondragend=function(e){window.onmousemove=null}}}]);var e}(),v=[];t.a=f},function(e,t,i){"use strict";var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(8),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(15),m=i(10);function f(e,t,i){return t=u()(t),l()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],u()(e).constructor):t.apply(e,i))}var v=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o()(this,t),(i=f(this,t,[e,n])).viewer=e.viewer,i.entityHasCreated=!1,i.event=null,i.tip=null,i.points_ids=[],i.color=n.color||"rgba(185,14,14,0.58)",i._is2D=s,i._sdk2D=Object(m.a)(),i}return p()(t,e),a()(t,[{key:"create_point",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.viewer,i=this.randomString();return t.entities.add(new Cesium.Entity({id:i,position:e,billboard:{image:this.getSourceRootPath()+"/img/point.png",color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(e){this.viewer.entities.removeById(e),!this._is2D&&this._sdk2D&&this._sdk2D.viewer&&this._sdk2D.viewer.entities&&this._sdk2D.viewer.entities.removeById(e)}},{key:"start",value:function(){}},{key:"end",value:function(){var e=this;YJ.Measure.SetMeasureStatus(!1),this.entityHasCreated=!1,this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy(),this.points_ids.forEach((function(t){e.remove_entity(t)}))}}])}(d.a);t.a=v},function(e,t){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"e",(function(){return c}));var n=i(15),o=i(7);function s(e){var t=new n.a,i=new Cesium.CustomDataSource("sdk-dataSource1");e.dataSources.add(i).then((function(e){var i;e.clustering.enabled=!1,e.clustering.pixelRange=15,e.clustering.minimumClusterSize=2;for(var n=new Cesium.PinBuilder,s=(n.fromText("50+",Cesium.Color.RED,48).toDataURL(),n.fromText("40+",Cesium.Color.ORANGE,48).toDataURL(),n.fromText("30+",Cesium.Color.YELLOW,48).toDataURL(),n.fromText("20+",Cesium.Color.GREEN,48).toDataURL(),n.fromText("10+",Cesium.Color.BLUE,48).toDataURL(),new Array(8)),a=0;a=1e3?(i.billboard.scale=1.5,i.label.pixelOffset=new Cesium.Cartesian2(-28,-46)):e.length>=100?(i.billboard.scale=1.25,i.label.pixelOffset=new Cesium.Cartesian2(-21,-40)):e.length>=50?(i.billboard.scale=1.1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-36)):e.length>=40?(i.billboard.scale=1.05,i.label.pixelOffset=new Cesium.Cartesian2(-16,-34)):e.length>=30?(i.billboard.scale=1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-32)):e.length>=20?(i.billboard.scale=.95,i.label.pixelOffset=new Cesium.Cartesian2(-16,-30)):e.length>=10?(i.billboard.scale=.9,i.label.pixelOffset=new Cesium.Cartesian2(-16,-28)):(i.billboard.scale=.8,i.label.pixelOffset=new Cesium.Cartesian2(-11,-25))}));var n=e.clustering.pixelRange;e.clustering.pixelRange=0,e.clustering.pixelRange=n}();var r={pixelRange:15,minimumClusterSize:2};function l(t){Cesium.knockout.getObservable(r,t).subscribe((function(i){e.clustering[t]=i}))}Cesium.knockout.track(r),l("pixelRange"),l("minimumClusterSize")}))}function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.viewer,n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={points:[],code:0,message:""};if(!this.name_map.has(t)&&!this.epsg_map.has(t))return n.code=1,n.message="不支持的坐标系:"+t,n;if(!this.name_map.has(i)&&!this.epsg_map.has(i))return n.code=1,n.message="不支持的坐标系:"+i,n;var o=(this.name_map.get(t)||this.epsg_map.get(t)).epsg,s=(this.name_map.get(i)||this.epsg_map.get(i)).epsg,a=proj4.defs(o),r=proj4.defs(s);return e.forEach((function(e){var t=Number(e.x),i=Number(e.y),o=Number(e.z||0),s=proj4(a,r,[t,i]);n.points.push({x:Number(s[0].toFixed(10)),y:Number(s[1].toFixed(10)),z:o})})),n}},{key:"getAllProjection",value:function(){return Array.from(this.name_map.values())}},{key:"projectionIsExists",value:function(e){return this.name_map.has(e)||this.epsg_map.has(e)}},{key:"degreesToDMS",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function i(e){var t=e.toString(),i=t.indexOf(".");return-1!==i?t.length-i-1:0}function n(e){return Math.pow(10,e)}var o=!1;e<0&&(o=!0),e=Math.abs(e);var s=Math.floor(e),a=n(i(e)),r=Math.floor((e-s)*a*60)/a,l=Math.floor(r);o&&(s=-s);var c=n(i(r)),u=Math.floor((r-l)*c)/c*60;return t?s+"°"+Math.floor(1e4*r)/1e4+"'":s+"°"+l+"'"+Math.floor(100*u)/100+'"'}},{key:"dmsToDecimal",value:function(e,t){var i,n,o;if(t){var s=e.split("°"),a=s[1].split("'");i=s[0],n=a[0],console.log(i,n);var r=Math.pow(10,8),l=Number(i*r)+n*r/60;return Math.round(l)/r}var c=e.split("°"),u=c[1].split("'"),h=u[1].split('"');i=c[0],n=u[0],o=h[0],console.log(i,n,o);var p=Math.pow(10,8),d=Number(i*p)+n*p/60+o*p/3600;return Math.round(d)/p}}])}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.r(t);var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(8),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(14),m=i(11);function f(e,t,i){return t=u()(t),l()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],u()(e).constructor):t.apply(e,i))}var v=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o()(this,t),f(this,t,[e,i,n])}return p()(t,e),a()(t,[{key:"start",value:function(e){var t=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new d.a("左键确定,右键结束;",this.sdk),this.event=new m.a(this.sdk),this.event.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer);e(null,s,Cesium)})),this.event.mouse_right((function(i,n){t.end(),e(!1)})),this.event.mouse_move((function(e,n){i=n,t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;t.event.gesture_pinck_end((function(){if(new Date-s>=500)t.end(),e(!1);else{t.end();var n=t.cartesian3Towgs84(i||o,t.viewer);e(null,n)}}))})),!this._is2D&&this._sdk2D&&(this.event2D=new m.a(this._sdk2D),this.event2D.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer);e(null,s,Cesium)})),this.event2D.mouse_right((function(i,n){t.end(),e(!1)})),this.event2D.mouse_move((function(e,n){i=n,t.tip.setPosition(n,e.endPosition.x+t.viewer.canvas.width,e.endPosition.y)})),this.event2D.gesture_pinck_start((function(n,o){var s=new Date;t.event2D.gesture_pinck_end((function(){if(new Date-s>=500)t.end(),e(!1);else{t.end();var n=t.cartesian3Towgs84(i||o,t.viewer);e(null,n)}}))})))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy()}}])}(i(21).a);t.default=v},function(e,t,i){"use strict";i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return f})),i.d(t,"c",(function(){return v}));var n,o=i(3),s=i.n(o),a=i(0),r=i.n(a),l=i(10),c=i(12),u=i(7),h=i(15),p=!1,d="1:100万";function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){n||(n=new h.a),(p=!!t)?f(e,d):y(e);var i=Object(l.a)();i&&(p?f(e,d):y(i));var o=Object(c.a)().sdkD;o&&e!==o&&m(o,t)}}function f(e,t){d=t,p&&g(e);var i=Object(l.a)();return i&&p&&g(i),new Promise(function(){var e=s()(r.a.mark((function e(t,i){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t()}),1e3);case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}())}function v(){return p}function g(e){y(e);var t,i,n=e.viewer.camera.positionCartographic,o={position:{lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),alt:n.height}},s=e.viewer;switch(d){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}for(var a=0;au&&(u+=360),c={minLng:r,minLat:l,maxLng:u,maxLat:h},l<-88&&(l=-88),h>88&&(h=88),(c.maxLng-c.minLng)/n*((c.maxLat-c.minLat)/o)>7e3)c=null;else{for(var d=r;d<=u;d+=n){for(var f=[],v=[],g=l;Math.floor(1e9*g)/1e9<=h;g+=o/2)v.push([d,g]),f.push(Cesium.Cartesian3.fromDegrees(d,g,8848));88!=h&&h+o/2>=88&&f.push(Cesium.Cartesian3.fromDegrees(d,88,8848));var y=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:f,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});if(t.add(new Cesium.Primitive({geometryInstances:y,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})})),dh)break;var w=p(C.lng,C.lat,e);i.add({position:Cesium.Cartesian3.fromDegrees(C.lng,C.lat,8848),text:w,font:"16px Inter, sans-serif",fillColor:Cesium.Color.fromCssColorString("#fcfc00"),pixelOffset:new Cesium.Cartesian2(0,0),showBackground:!1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1,distanceDisplayCondition:new Cesium.DistanceDisplayCondition(0,8e7),scaleByDistance:s})}}for(var k=l;Math.floor(1e9*k)/1e9<=h;k+=o){for(var _=[],x=[],S=r;S<=u;S+=n/2)x.push([S,k]),_.push(Cesium.Cartesian3.fromDegrees(S,k,8848));var E=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:_,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});t.add(new Cesium.Primitive({geometryInstances:E,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})}))}}}function p(e,t,i){var n,o;switch(i){case"1:100万":n=6,o=4;break;case"1:50万":n=3,o=2;break;case"1:25万":n=1.5,o=1;break;case"1:10万":n=.5,o=1/3;break;case"1:5万":n=.25,o=1/6;break;case"1:2.5万":n=.125,o=1/12;break;case"1:1万":n=.0625,o=1/24;break;case"1:5000":n=.03125,o=1/48}t=Math.max(-88,Math.min(88,t));var s,a=e,r=t=Math.abs(t),l=Math.floor(a/6+31),c="ABCDEFGHIJKLMNOPQRSTUV".charAt(Math.floor(r/4+1)-1),u={"1:100万":"","1:50万":"B","1:25万":"C","1:10万":"D","1:5万":"E","1:2.5万":"F","1:1万":"G","1:5000":"H"}[i];if(!u&&"1:100万"!==i)throw new Error("不支持的比例尺,请使用: 1:100万, 1:50万, 1:25万, 1:10万, 1:5万, 1:2.5万, 1:1万, 1:5000");s=c+l;var h=("000"+(Math.floor((4*Math.ceil(r/4)-r)/o)+1)).slice(-3),p=a-6*Math.floor(a/6),d=("000"+(Math.floor(p/n)+1)).slice(-3);switch(i){case"1:100万":return s;case"1:50万":case"1:25万":case"1:10万":case"1:5万":case"1:2.5万":case"1:1万":case"1:5000":break;default:throw new Error("不支持的比例尺")}return s+u+h+d}function m(){var e=s.camera.computeViewRectangle();if(2==s.scene.mode){var t=s.scene.canvas,i=new Cesium.Cartesian2(0,0),n=new Cesium.Cartesian2(t.clientWidth,t.clientHeight),o=s.scene.globe.ellipsoid,a=s.camera.pickEllipsoid(i,o),r=s.camera.pickEllipsoid(n,o);if(!a){var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:6356755});i.y=l.y+5,a=s.camera.pickEllipsoid(i,o)}if(!r){var c=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:-6356755});n.y=c.y-5,r=s.camera.pickEllipsoid(n,o)}var u=s.scene.globe.ellipsoid.cartesianToCartographic(a),h=s.scene.globe.ellipsoid.cartesianToCartographic(r);return e=(n.y-i.y)/(n.x-i.x)<=.49998752339363695?new Cesium.Rectangle(Cesium.Math.toRadians(-180),Cesium.Math.toRadians(-90),Cesium.Math.toRadians(180),Cesium.Math.toRadians(90)):new Cesium.Rectangle(u.longitude,h.latitude,h.longitude,u.latitude)}return e}t.postRenderEvent=function(){var i=e.viewer.camera.positionCartographic.height;switch(d){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}if(i>5*o.position.alt)return c=null,void t.removeAll();var n=!1,s=m(),a=Cesium.Math.toDegrees(s.west),r=Cesium.Math.toDegrees(s.south),u=Cesium.Math.toDegrees(s.east);a>u&&(u+=360),s={minLng:a,minLat:r,maxLng:u,maxLat:Cesium.Math.toDegrees(s.north)},c?(c.minLng>s.minLng||c.minLat>s.minLat||c.maxLng=50&&(h(d),n=!1):l=0},o.complete=function(){s.scene.postRender.addEventListener(t.postRenderEvent)},Object(u.i)(e,o,.5)}function y(e){for(var t,i,n=e.viewer,o=0;o=0;h--){var p=Array.from(n.keys())[h],d=n.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([c.lng,c.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([c.lng,c.lat]),C=[],w=0;w=3){for(var _=turf.point([c.lng,c.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([c.lng,c.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N=0;h--){var p=Array.from(n.keys())[h],d=n.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([c.lng,c.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([c.lng,c.lat]),C=[],w=0;w=3){for(var _=turf.point([c.lng,c.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([c.lng,c.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N\n
    \n
  • 属性
  • \n
\n ');var d=c.cartesian3Towgs84(i,e.viewer);(o=document.createElement("div")).id="custom-menu",o.style.position="absolute",o.style.width="110px",o.style.backgroundColor="#00000085",o.style.color="#ffffff",o.style.padding="6px 0",o.style.boxShadow="4px 4px 4px 0px rgba(0, 0, 0, 0.8)",o.innerHTML='\n
    \n
  • 绕鼠标点旋转
  • \n
\n
    \n
  • 文本框
  • \n
\n '.concat(u,"\n "),l.appendChild(o);var m=t.position.x,f=t.position.y;t.position.x+o.offsetWidth>l.offsetWidth&&(m=t.position.x-o.offsetWidth),t.position.y+o.offsetHeight>l.offsetHeight&&(f=t.position.y-o.offsetHeight),o.style.left=m+"px",o.style.top=f+"px",o.addEventListener("contextmenu",(function(e){e.preventDefault()}));for(var v=o.getElementsByTagName("li"),g={},y=function(t){v[t].addEventListener("mouseover",(function(){v[t].style.backgroundColor="#5e5e5e"})),v[t].addEventListener("mouseout",(function(){v[t].style.backgroundColor="unset"})),v[t].addEventListener("click",(function(){var i="";switch(v[t].innerHTML){case"绕鼠标点旋转":g.position=d,i="rotateAround";break;case"属性":s?(g.id=s,g.parentId=h.options.id):g.id=h.options.id,i="attribute";break;case"文本框":g.position=d,i="textBox"}a[e.div_id].callBack(i,g),l.removeChild(o)}))},b=0;be.length)&&(t=e.length);for(var i=0,n=Array(t);i0&&void 0!==arguments[0]?arguments[0]:0,t=Array.from(h[e].keys());t.forEach((function(t){document.documentElement.style.setProperty(t,h[e].get(t))}))}h[0].set("--color-sdk-base-rgb","0, 255, 255"),h[0].set("--color-sdk-gradual","rgb(0, 255, 255) 6.25%, rgb(0, 200, 255) 100%"),h[0].set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%"),h[0].set("--color-sdk-text-shadow","rgba(20, 118, 255, 1)"),h[1].set("--color-sdk-base-rgb","42, 200, 251"),h[1].set("--color-sdk-gradual","rgb(42, 200, 251) 6.25%, rgb(42, 145, 251) 100%"),h[1].set("--color-sdk-bg-gradual","#2ac8fb33 0%, #2ac8fb00 100%"),h[1].set("--color-sdk-text-shadow","rgba(20, 63, 255, 1)"),h[2].set("--color-sdk-base-rgb","187, 26, 41"),h[2].set("--color-sdk-gradual","rgb(187, 26, 41) 6.25%, rgb(236, 20, 20) 100%"),h[2].set("--color-sdk-bg-gradual","#bb1a2933 0%, #bb1a2900 100%"),h[2].set("--color-sdk-text-shadow","rgba(246, 8, 30, 1)");var m=i(10),f=i(12),v=i(23),g=i(16);function y(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return b(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==h[2]?h[2]:3,o=new u.a(t),a=i.orientation,!i.position){e.next=13;break}if(0===i.position.alt||i.position.alt){e.next=8;break}return e.next=7,o.getClampToHeight(i.position);case 7:i.position.alt=e.sent;case 8:r=0,a||(r=500),s=Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt+r),e.next=15;break;case 13:c=o.cal_envelope(i.positions),s=new Cesium.Rectangle(Cesium.Math.toRadians(c[3][0]),Cesium.Math.toRadians(c[3][1]),Cesium.Math.toRadians(c[1][0]),Cesium.Math.toRadians(c[1][1]));case 15:F(t),t.viewer.camera.flyTo({destination:s,duration:n,orientation:a,complete:i.complete});case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.viewer){var i=e.viewer;i.scene.screenSpaceCameraController.enableRotate=t,i.scene.screenSpaceCameraController.enableTranslate=t,i.scene.screenSpaceCameraController.enableZoom=t,i.scene.screenSpaceCameraController.enableTilt=t,i.scene.screenSpaceCameraController.enableLook=t}}function N(e,t){if(e&&e.viewer){S[e.viewer._element.className]||(S[e.viewer._element.className]={}),S[e.viewer._element.className].event&&S[e.viewer._element.className].event.destroy();var i=new u.a(e),n=e.viewer._element,o=e.proj,s=function(){switch(r){case"compass":var s=n.getElementsByClassName("compass")[0],u=n.getElementsByClassName("navigation-controls")[0];t[r]?(s&&(s.style.display="block"),u&&(u.style.display="flex")):(s&&(s.style.display="none"),u&&(u.style.display="none"));break;case"legend":var h=n.getElementsByClassName("distance-legend")[0];t[r]?h&&(h.parentNode.style.display="block"):h&&(h.parentNode.style.display="none");break;case"info":var p=n.getElementsByClassName("cesium-info")[0];if(t[r]){var d=function(){var t=a()(l.a.mark((function t(){var n,s;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C){t.next=2;break}return t.abrupt("return");case 2:if(n=i.cartesian3Towgs84(C,e.viewer),"EPSG:4326"!==w){t.next=16;break}t.t0=k||"度",t.next="度"===t.t0?7:"度分"===t.t0?9:"度分秒"===t.t0?11:13;break;case 7:return p.innerHTML="\n
经度:".concat(Number(n.lng.toFixed(6)),"°
\n
纬度:").concat(Number(n.lat.toFixed(6)),"°
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 9:return p.innerHTML="\n
经度:".concat(o.degreesToDMS(n.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(n.lat,!0),"
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 11:return p.innerHTML="\n
经度:".concat(o.degreesToDMS(n.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(n.lat,!1),"
\n
高程:").concat(Number(n.alt.toFixed(2)),"米
\n "),t.abrupt("break",14);case 13:return t.abrupt("break",14);case 14:t.next=18;break;case 16:(s=o.convert([{x:n.lng,y:n.lat,z:n.alt}],"EPSG:4326",q(w,n))).points.length&&(p.innerHTML="\n
x:".concat(Number(s.points[0].x.toFixed(6)),'
\n
y:').concat(Number(s.points[0].y.toFixed(6)),'
\n
z:').concat(Number(s.points[0].z.toFixed(6)),"
\n "));case 18:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();p?(d(),p.style.display="block"):((p=document.createElement("div")).className="cesium-info",p.style.position="absolute",p.style.bottom="32px",p.style.right="240px",p.style["font-size"]="14px",p.style["background-color"]="rgba(47,53,60,.8)",p.style.color="#fff",p.style.padding="4px 10px",p.style["border-radius"]="18px",p.style.display="flex",p.innerHTML="EPSG:4326"===w?"\n
经度:-
\n
纬度:-
\n
高程:-
\n ":"\n
x:-
\n
y:-
\n
z:-
\n ",e.viewer._element.appendChild(p));var m=new c.a(e);S[e.viewer._element.className].event=m;m.mouse_move((function(e,t){C=t,d()}))}else p&&(p.style.display="none");break;case"frame":t[r]?(e.viewer.scene.debugShowFramesPerSecond=!0,setTimeout((function(){var t=e.viewer._element.getElementsByClassName("cesium-viewer-cesiumWidgetContainer")[0],i=t.getElementsByClassName("cesium-performanceDisplay-defaultContainer")[0];i&&t.appendChild(i)}),50)):e.viewer.scene.debugShowFramesPerSecond=!1}};for(var r in t)s()}}function B(e,t){t=t?"billboard_default_url_"+t:"billboard_default_url";var i=Object(g.a)();e.startsWith("http")||(e.includes(":")||i&&(e=new URL(e,i).href));localStorage.setItem(t,e)}function j(e){return e=e?"billboard_default_url_"+e:"billboard_default_url",localStorage.getItem(e)}function A(e,t){_=!!t,Object(v.e)(e.viewer)}function L(){return _}function I(e,t){e&&e.viewer&&(x[e.viewer._element.className]||(x[e.viewer._element.className]={}),x[e.viewer._element.className].status=t,x[e.viewer._element.className].MoveHandler&&x[e.viewer._element.className].MoveHandler.destroy(),t&&(x[e.viewer._element.className].MoveHandler=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas),x[e.viewer._element.className].MoveHandler.setInputAction((function(t){var i=e.viewer.scene.pick(t.endPosition),n=x[e.viewer._element.className].selectedId,o=e.entityMap.get(x[e.viewer._element.className].id);if(o&&o.features.has(n)){var s=o.features.get(n).features;for(var a in s)if(s[a].content._model){var r=s[a].customColor||Cesium.Color.fromCssColorString("#fff");s[a].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(r.red),",").concat(Cesium.Color.floatToByte(r.green),",").concat(Cesium.Color.floatToByte(r.blue),",").concat(r.alpha*(s[a].customAlpha||0===s[a].customAlpha?s[a].customAlpha:1),")"))}}if(i&&i.content)if("bim"===e.getIncetance(i.content.tileset.id).type){if(i.primitive&&i.primitive.id){var l=e.entityMap.get(i.primitive.id);if(n=i.getProperty("id"),l.features.has(n)){var c=l.features.get(n).features;for(var u in c)c[u].content._model&&(c[u].color=Cesium.Color.fromCssColorString("#ffeb3b"))}x[e.viewer._element.className].id=i.primitive.id,x[e.viewer._element.className].selectedId=n}}else i.primitive.id=null}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)))}function R(e){if(e&&e.viewer)return!!x[e.viewer._element.className]&&x[e.viewer._element.className].status}function z(e,t){if(e&&e.viewer)if(se(0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),e.entityMap.forEach((function(e){e.editObj&&e.editObj.destroy(),e.ControllerObject&&e.ControllerObject.destroy()})),E[e.viewer._element.className]||(E[e.viewer._element.className]={}),E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),t){var i=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),n=Cesium.Math.toDegrees(e.viewer.camera.heading),o=Cesium.Cartesian3.distance(e.viewer.camera.position,i);T(e,!1);var s=e.viewer.camera.pitch;Cesium.Math.toDegrees(s)<-89.99&&(s=Cesium.Math.toRadians(-89.99)),E[e.viewer._element.className].animate=new TWEEN.Tween({angle:n}).to({angle:n-360},3e4).easing(TWEEN.Easing.Linear.None).repeat(1/0).onUpdate(function(){var t=a()(l.a.mark((function t(n,a){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.viewer){t.next=3;break}return TWEEN.remove(E[e.viewer._element.className].animate),t.abrupt("return");case 3:e.viewer.camera.lookAt(i,new Cesium.HeadingPitchRange(Cesium.Math.toRadians(n.angle),s,o)),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);case 5:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start();var r=new c.a(e);E[e.viewer._element.className].event=r,r.mouse_left_down((function(){E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),T(e,!0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY)}))}else T(e,!0)}function F(e){e&&e.viewer&&E[e.viewer._element.className]&&(E[e.viewer._element.className].animate&&TWEEN.remove(E[e.viewer._element.className].animate),E[e.viewer._element.className].event&&E[e.viewer._element.className].event.destroy(),T(e,!0),e.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY))}function H(e){if(e&&e.entityMap){var t,i=y(e.entityMap);try{for(i.s();!(t=i.n()).done;){var n=o()(t.value,2),s=(n[0],n[1]);"TrajectoryMotion"===s.type&&s.viewFollow&&(s.viewFollow=!1)}}catch(e){i.e(e)}finally{i.f()}}}function V(e,t){if(e){var i,n=Object(f.a)().sdkD;n&&e!==n&&V(n,t);for(var o=0;o经度:".concat(Number(s.lng.toFixed(6)),"° \n
纬度:").concat(Number(s.lat.toFixed(6)),"°
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!0),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分秒":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!1),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ")}else{var a=o.convert([{x:s.lng,y:s.lat,z:s.alt}],"EPSG:4326",q(w,s));i.innerHTML="\n
x:".concat(Number(a.points[0].x.toFixed(6)),'
\n
y:').concat(Number(a.points[0].y.toFixed(6)),'
\n
z:').concat(Number(a.points[0].z.toFixed(6)),"
\n ")}}}}function q(e,t){var i;switch(e){case"EPSG:32601":var n=Math.floor((t.lng+180)/6+1);i=t.lat>0?"EPSG:"+(i=32600+n):"EPSG:"+(i=32700+n);break;case"EPSG:4534":i="EPSG:"+(i=Math.round(t.lng/3)-25+4534);break;case"EPSG:4513":i="EPSG:"+(i=Math.round(t.lng/3)-25+4513);break;case"EPSG:4502":var o=Math.floor(t.lng/6)+31;o<13&&(o=13),o>23&&(o=23),i="EPSG:"+(i=o-13+4502);break;case"EPSG:4491":var s=Math.floor(t.lng/6)+31;s<13&&(s=13),s>23&&(s=23),i="EPSG:"+(i=s-13+4491)}return i}function X(){return k}function Z(e,t){if("EPSG:4326"===w&&(k=t,e&&e.viewer&&e.viewer._element)){var i=e.viewer._element.getElementsByClassName("cesium-info")[0];if(C&&i){var n=new u.a,o=e.proj,s=n.cartesian3Towgs84(C,e.viewer);switch(t){case"度":i.innerHTML="\n
经度:".concat(Number(s.lng.toFixed(6)),"°
\n
纬度:").concat(Number(s.lat.toFixed(6)),"°
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!0),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!0),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ");break;case"度分秒":i.innerHTML="\n
经度:".concat(o.degreesToDMS(s.lng,!1),"
\n
纬度:").concat(o.degreesToDMS(s.lat,!1),"
\n
海拔高度:").concat(Number(s.alt.toFixed(2)),"米
\n ")}o.degreesToDMS(s.lng,!0)}}}function K(e,t){var i=new u.a;return e.viewer.camera.changed.addEventListener((function(n){t({position:i.cartesian3Towgs84(e.viewer.camera.position,e.viewer),orientation:{heading:e.viewer.camera.heading,pitch:e.viewer.camera.pitch,roll:e.viewer.camera.roll}})}))}function Q(e){"number"==typeof e&&(Cesium.RequestScheduler.maximumRequestsPerServer=e)}function $(e,t){e&&(e.viewer._disableKeyboardEvent=!t)}function ee(){var e=Number(Number(localStorage.getItem("IndexedDBMaxSize")).toFixed(0));return(isNaN(e)||e<1073741824)&&(e=1073741824),e}function te(e){var t=Number(Number(e).toFixed(0));(isNaN(t)||t<1073741824)&&(t=1073741824),Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetIndexedDBMaxSize(t),localStorage.setItem("IndexedDBMaxSize",t)}function ie(){var e=localStorage.getItem("ManageIndexexDBState");return"false"!==e&&Boolean(e)}function ne(e){"boolean"==typeof e?(Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetManageIndexexDBState(e),localStorage.setItem("ManageIndexexDBState",e)):console.error("参数必须为boolean")}function oe(){return Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.GetIndexedDBCurrentSize()}function se(e){Object(m.f)(e),Object(f.e)(e)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t||0==t||(t=1),e.viewer.scene.globe.translucency.frontFaceAlpha=t}},function(e,t,i){var n=i(22).default,o=i(25);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(36);e.exports=function(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"e",(function(){return E})),i.d(t,"d",(function(){return O})),i.d(t,"g",(function(){return T})),i.d(t,"h",(function(){return I})),i.d(t,"a",(function(){return H})),i.d(t,"b",(function(){return V})),i.d(t,"f",(function(){return W})),i.d(t,"c",(function(){return U}));var n,o,s,a=i(18),r=i.n(a),l=i(6),c=i.n(l),u=i(3),h=i.n(u),p=i(0),d=i.n(p),m=i(15),f=(i(11),i(7)),v=i(12),g=i(27),y=i(19),b=i(29);function C(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return w(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=1;a--){for(r=!1,l=s.length-1;l>=1;l--)s[l].id&&i[l].id&&s[l].id===i[a].id&&(r=!0);r||n.viewer.scene.primitives.remove(i[a])}for(c=s.length-1;c>=1;c--){for(u=!1,h=i.length-1;h>=1;h--)s[c].id&&i[c].id&&s[c].id===i[h].id&&(u=!0,i[h].show=s[c].show,i[h].startColor=s[c].startColor,i[h].endColor=s[c].endColor,i[h].minimumSpeed=s[c].minimumSpeed,i[h].maximumSpeed=s[c].maximumSpeed,i[h].minimumParticleLife=s[c].minimumParticleLife,i[h].maximumParticleLife=s[c].maximumParticleLife,i[h].startScale=s[c].startScale,i[h].endScale=s[c].endScale,i[h].emissionRate=s[c].emissionRate,i[h].particleSize=s[c].particleSize,i[h].modelMatrix=s[c].modelMatrix);u||n.viewer.scene.primitives.add(s[c])}}case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e,t,i){var n=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas);n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.LEFT_DOWN),n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.RIGHT_DOWN),n.setInputAction((function(){s=t}),Cesium.ScreenSpaceEventType.WHEEL),_.push(n)}function F(){var e,t=this.sdks[s];if(0===s?e=this.sdks[1]:1===s&&(e=this.sdks[0]),2===t.viewer.scene.mode)if(this.sdks[0].viewer.trackedEntity){var i=t.viewer.camera.positionCartographic.height;e.viewer.camera.lookAt(Cesium.Cartesian3.fromRadians(t.viewer.camera.positionCartographic.longitude,t.viewer.camera.positionCartographic.latitude,0),new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(-90),i))}else{this.sdks[1].viewer.trackedEntity&&(this.sdks[1].viewer.entities.remove(this.sdks[1].viewer.trackedEntity),this.sdks[1].viewer.trackedEntity=null);var n=this.tools.cartesian3Towgs84(Cesium.Cartesian3.fromRadians(t.viewer.camera.positionCartographic.longitude,t.viewer.camera.positionCartographic.latitude,t.viewer.camera.positionCartographic.height),t.viewer);e.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt)})}else{var o=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/(2-(90+t.viewer.camera.pitch/(Cesium.Math.PI/180))/110)));o||(o=t.viewer.camera.positionWC);var a=this.tools.cartesian3Towgs84(t.viewer.camera.positionWC,t.viewer).alt,r=this.tools.cartesian3Towgs84(o,t.viewer);e.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(r.lng,r.lat,a)})}}function H(){return n}function V(){return o}function G(){n&&n.viewer.entities.add({show:!1,polygon:{hierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([100,50,100.0001,50,100.0001,50.0001]))}})}function W(e){s=e}function U(){return{sdkP:o,sdkD:n}}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=function(){return a()((function e(t){o()(this,e),this.sdk=t,this.viewer=t.viewer,this.handler=new Cesium.ScreenSpaceEventHandler(this.viewer.canvas)}),[{key:"mouse_left",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"mouse_left_down",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)}},{key:"mouse_left_up",value:function(e){var t=this;this.handler&&this.handler.setInputAction((function(i){var n=t.getcartesian(i);n&&e(i,n)}),Cesium.ScreenSpaceEventType.LEFT_UP)}},{key:"mouse_move",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"mouse_right",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"mouse_right_down",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_DOWN)}},{key:"mouse_right_up",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=t.getcartesian(n);(o||i)&&e(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_UP)}},{key:"mouse_wheel",value:function(e){this.handler&&this.handler.setInputAction((function(){e()}),Cesium.ScreenSpaceEventType.WHEEL)}},{key:"getcartesian",value:function(e){var t=e.position||e.endPosition;e.position1&&e.position2&&(t={x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2});var i=this.viewer.scene.pickPosition(t);if(!i){for(var n=this.viewer.camera.getPickRay(t),o=this.viewer.scene.drillPickFromRay(n,10),s={},a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==y[2]&&y[2],o=y.length>3?y[3]:void 0,_){e.next=6;break}return e.abrupt("return");case 6:if(s=_.entityMap,r=k&&k.entityMap,!i){e.next=15;break}if((c=s.get(i))&&c.show){e.next=12;break}return e.abrupt("return");case 12:v(i,o),e.next=35;break;case 15:h=C(_.entityMap),e.prev=16,h.s();case 18:if((p=h.n()).done){e.next=27;break}if(d=a()(p.value,2),m=d[0],(f=d[1])&&f.show){e.next=24;break}return e.abrupt("continue",25);case 24:v(m,o);case 25:e.next=18;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(16),h.e(e.t0);case 32:return e.prev=32,h.f(),e.finish(32);case 35:if(!n){e.next=37;break}return e.abrupt("return");case 37:case"end":return e.stop()}}),e,null,[[16,29,32,35]])})))).apply(this,arguments)}function L(e,t){k.viewer.imageryLayers.addImageryProvider(e.imageryProvider,t)}function I(e,t,i){for(var n,o=0;o0&&void 0!==arguments[0]?arguments[0]:[];if(S=Array.isArray(e)?e:[e],_&&k){var t=_.viewer._element.getElementsByClassName("YJ-custom-checkbox-left")[0],i=_.viewer._element.getElementsByClassName("YJ-custom-checkbox-right")[0];if(e&&0!==e.length){if(t&&i){t.style.display="none",i.style.display="none";for(var n=0,o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:0,o=null;return{that:Array.prototype.slice.call(e.querySelectorAll(t),0),stopPropagation:function(e){(e=e||window.event).stopPropagation?e.stopPropagation():e.cancelBubble=!0},hide:function(){n(e,t).that.forEach((function(e){e.style.cssText+="display:none;"}))},show:function(i){void 0!==i?n(e,t).that[i].style.cssText+="display:block;":n(e,t).that.forEach((function(e){e.style.cssText+="display:block;"}))},legp_searchList:function(t){var i=[];return n(e,"input[name="+t+"]").that.forEach((function(e){i.push(e.value)})),i},legp_search:function(s){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n(e,t).that[i];if(r){var l='
\n '.concat(a?'':''),'\n
\n
\n
');r.innerHTML=l,n(e,".cy_datalist input").that[i].oninput=function(t){var a=this.value;if(n(e,".cy_datalist dl").hide(),s.length>0){n(e,".cy_datalist dl").show();var r=new RegExp(a),l=!1;n(e,".cy_datalist dl").that[i].innerHTML="",s.forEach((function(t){r.test(t.name)&&(l=!0,n(e,".cy_datalist dl").that[i].innerHTML+='
'+t.name+"
")})),l||(n(e,".cy_datalist dl").that[i].innerHTML='
暂无数据
'),c()}},n(e,".cy_datalist input").that[i].onclick=function(t){n(e,".cy_datalist dl").hide();var i=1*t.srcElement.classList[1];i=i||0,"none"===n(e,".cy_datalist dl").that[i].style.display&&(0==s.length?this.innerHTML="暂无数据":n(e,".cy_datalist dl").show(i),n(e,".cy_datalist dl").that[i].innerHTML="",s.forEach((function(t){n(e,".cy_datalist dl").that[i].innerHTML+='
'+t.name+"
"})),c()),t.stopPropagation()},document.addEventListener("click",(function(){n(e,".cy_datalist dl").hide()}))}function c(){n(e,".cy_datalist dl dd").that.forEach((function(e){e.onclick=function(e){if(this&&this.attributes){var t=this.attributes.value.value;o=t,e.currentTarget.parentNode.previousElementSibling.value=t;var i=new Event("input",{bubbles:!0});e.currentTarget.parentNode.previousElementSibling.dispatchEvent(i)}}}))}},legp_searchActive:function(e){o=e}}}},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(15),l=function(){return a()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"左键开始,右键结束",i=arguments.length>1?arguments[1]:void 0;o()(this,e),this.point=void 0,this.text=t,this.div=void 0,this.mouse_type=0,this.position=new Cesium.Cartesian3,this.viewer=i.viewer,this.create_tip(this.viewer)}),[{key:"set_text",value:function(e){this.div.getElementsByTagName("p")[0].innerText=e}},{key:"get_mouse_style",value:function(e){var t="";switch(e){case 1:t="move.png";break;default:t="arrow.png"}return"url(lib/img/"+t+"),auto"}},{key:"create_tip",value:function(e){this.create_tooltip()}},{key:"setPosition",value:function(e,t,i){this.position=e,this.move_tooltip(t,i)}},{key:"destroy",value:function(){this.viewer.entities.remove(this.point),this.remove_tooltip()}},{key:"create_tooltip",value:function(){var e=new r.a;this.div=document.createElement("div");this.div.setAttribute("style","position: absolute;z-index: 777;color: #ec131a;left:10px;top:0px;pointer-events: none;");var t=document.createElement("p");t.style.margin="0px",t.style.padding="0px",t.innerText=this.text,this.div.appendChild(t);var i=document.createElement("div");i.style.width="12px",i.style.height="12px",i.style.background="url(".concat(e.getSourceRootPath()+"/img/point.png",") 100% 100% no-repeat"),i.style.backgroundSize="100% 100%",i.style.position="absolute",i.style.left="-36px",i.style.top="-4px",this.div.style.display="none",this.div.appendChild(i),e=null,document.querySelector("body").appendChild(this.div)}},{key:"style_tip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e._element.style.cursor=this.get_mouse_style(t)}},{key:"remove_tooltip",value:function(){document.querySelector("body").contains(this.div)&&document.querySelector("body").removeChild(this.div)}},{key:"move_tooltip",value:function(e,t){var i=0,n=0;if(this.div.style.display="block",this.viewer&&this.viewer._element){var o=this.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];i=o.getBoundingClientRect().top+window.scrollY,n=o.getBoundingClientRect().left+window.scrollX}this.div.style.left=e+30+n+"px",this.div.style.top=t+i+"px"}}])}()},function(e,t,i){"use strict";var n,o,s,a,r=i(22),l=i.n(r),c=i(6),u=i.n(c),h=i(3),p=i.n(h),d=i(9),m=i.n(d),f=i(1),v=i.n(f),g=i(2),y=i.n(g),b=i(0),C=i.n(b),w=i(39),k=i.n(w),_=i(24),x=(i(20),i(13)),S=function(){var e=p()(C.a.mark((function e(t,n){var o,s,a,r,l,c,u,h,p,d,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=new _.a,s=new R(t),a=document.getElementsByClassName("proj-convert")[0].getElementsByClassName("content")[0],r=a.getElementsByClassName("item"),l=C.a.mark((function e(n){var l,c,u,h,p,d;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=r[n].getAttribute("data-type"),c=r[n].getElementsByClassName("convert")[0],u=r[n].getElementsByClassName("pickUp")[0],h=r[n].getElementsByClassName("icon-copy-box")[0],(p=new ClipboardJS(h,{text:function(e){var t;switch(l){case 0:case"0":t=r[n].getElementsByClassName("lng")[0].value+"°,"+r[n].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":t=a.getElementsByClassName("lng-dm-d")[0].value+"°"+a.getElementsByClassName("lng-dm-m")[0].value+"',"+a.getElementsByClassName("lat-dm-d")[0].value+"°"+a.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":t=a.getElementsByClassName("lng-dms-d")[0].value+"°"+a.getElementsByClassName("lng-dms-m")[0].value+"'"+a.getElementsByClassName("lng-dms-s")[0].value+'",'+a.getElementsByClassName("lat-dms-d")[0].value+"°"+a.getElementsByClassName("lat-dms-m")[0].value+"'"+a.getElementsByClassName("lat-dms-s")[0].value+'"'}return t}})).on("success",(function(e){s.message({text:"已复制到剪切板"})})),p.on("error",(function(e){s.message({type:"warning",text:"复制失败"})})),d=i(26).default,u.addEventListener("click",(function(){new d(t).start((function(e,t){switch(1*l){case 0:r[n].getElementsByClassName("lng")[0].value=t.lng,r[n].getElementsByClassName("lat")[0].value=t.lat;break;case 1:var i=o.degreesToDMS(t.lng,!0),s=o.degreesToDMS(t.lat,!0),c=i.split("°"),u=c[1].split("'"),h=s.split("°"),p=h[1].split("'");a.getElementsByClassName("lng-dm-d")[0].value=c[0],a.getElementsByClassName("lng-dm-m")[0].value=u[0],a.getElementsByClassName("lat-dm-d")[0].value=h[0],a.getElementsByClassName("lat-dm-m")[0].value=p[0];break;case 2:var d=o.degreesToDMS(t.lng),m=o.degreesToDMS(t.lat),f=d.split("°"),v=f[1].split("'"),g=v[1].split('"'),y=m.split("°"),b=y[1].split("'"),C=b[1].split('"');a.getElementsByClassName("lng-dms-d")[0].value=f[0],a.getElementsByClassName("lng-dms-m")[0].value=v[0],a.getElementsByClassName("lng-dms-s")[0].value=g[0],a.getElementsByClassName("lat-dms-d")[0].value=y[0],a.getElementsByClassName("lat-dms-m")[0].value=b[0],a.getElementsByClassName("lat-dms-s")[0].value=C[0]}}))})),c.addEventListener("click",(function(){var e,t,i,c,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,S;switch(l){case 0:case"0":e=r[n].getElementsByClassName("lng")[0].value,t=r[n].getElementsByClassName("lat")[0].value,p=o.degreesToDMS(e,!0),d=o.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),a.getElementsByClassName("lng-dm-d")[0].value=v[0],a.getElementsByClassName("lng-dm-m")[0].value=g[0],a.getElementsByClassName("lat-dm-d")[0].value=y[0],a.getElementsByClassName("lat-dm-m")[0].value=b[0],m=o.degreesToDMS(e),f=o.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),a.getElementsByClassName("lng-dms-d")[0].value=C[0],a.getElementsByClassName("lng-dms-m")[0].value=w[0],a.getElementsByClassName("lng-dms-s")[0].value=k[0],a.getElementsByClassName("lat-dms-d")[0].value=_[0],a.getElementsByClassName("lat-dms-m")[0].value=x[0],a.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 1:case"1":i=r[n].getElementsByClassName("lng-dm-d")[0].value,c=r[n].getElementsByClassName("lng-dm-m")[0].value,u=r[n].getElementsByClassName("lat-dm-d")[0].value,h=r[n].getElementsByClassName("lat-dm-m")[0].value,e=o.dmsToDecimal(i+"°"+c+"'",!0),t=o.dmsToDecimal(u+"°"+h+"'",!0),a.getElementsByClassName("lng")[0].value=e,a.getElementsByClassName("lat")[0].value=t,m=o.degreesToDMS(e),f=o.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),a.getElementsByClassName("lng-dms-d")[0].value=C[0],a.getElementsByClassName("lng-dms-m")[0].value=w[0],a.getElementsByClassName("lng-dms-s")[0].value=k[0],a.getElementsByClassName("lat-dms-d")[0].value=_[0],a.getElementsByClassName("lat-dms-m")[0].value=x[0],a.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 2:case"2":m=(i=r[n].getElementsByClassName("lng-dms-d")[0].value)+"°"+(c=r[n].getElementsByClassName("lng-dms-m")[0].value)+"'"+r[n].getElementsByClassName("lng-dms-s")[0].value+'"',f=(u=r[n].getElementsByClassName("lat-dms-d")[0].value)+"°"+(h=r[n].getElementsByClassName("lat-dms-m")[0].value)+"'"+r[n].getElementsByClassName("lat-dms-s")[0].value+'"',e=o.dmsToDecimal(m),t=o.dmsToDecimal(f),a.getElementsByClassName("lng")[0].value=e,a.getElementsByClassName("lat")[0].value=t,p=o.degreesToDMS(e,!0),d=o.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),a.getElementsByClassName("lng-dm-d")[0].value=v[0],a.getElementsByClassName("lng-dm-m")[0].value=g[0],a.getElementsByClassName("lat-dm-d")[0].value=y[0],a.getElementsByClassName("lat-dm-m")[0].value=b[0]}s.message({text:"转换成功"});for(var E=0;ENumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}},{key:"cartesian3Towgs84",value:function(e,t){var i=t.scene.globe.ellipsoid,n=new Cesium.Cartesian3(e.x,e.y,e.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude),a=Cesium.Math.toDegrees(o.longitude),r=o.height<0?0:o.height;return{lng:Number(a.toFixed(8)),lat:Number(s.toFixed(8)),alt:Number(r.toFixed(2))}}},{key:"computeDistance",value:(i=p()(C.a.mark((function e(){var t,i,n,o,s,a,r,l,c,h,p,d,m,f,v,g,y,b,w,k,_,x,S,E,P,O,D,M,T=arguments;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:[],i=T.length>1&&void 0!==T[1]?T[1]:2,n=T.length>2&&void 0!==T[2]?T[2]:0,!(t.length<2)){e.next=7;break}return e.abrupt("return",0);case 7:o=0,e.t0=n,e.next="0"===e.t0||0===e.t0?11:"1"===e.t0||1===e.t0?13:"2"===e.t0||2===e.t0?15:48;break;case 11:for(s=0;s20?g/20:g,y=this.chunkLine(t,m),b=[],y.forEach((function(e,t){0===t?b=u()(e.geometry.coordinates):b.push(e.geometry.coordinates[1])})),w=[],k=j(b),e.prev=25,k.s();case 27:if((_=k.n()).done){e.next=37;break}return x=_.value,S=b.indexOf(x),e.next=32,this.sampleHeight({lng:x[0],lat:x[1],alt:0},S);case 32:(E=e.sent).position.alt=E.position.alt<0?0:E.position.alt,w.push(E);case 35:e.next=27;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(25),k.e(e.t1);case 42:return e.prev=42,k.f(),e.finish(42);case 45:for(w.length,P=0;P0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e.length<2)return 0;var n=0;if(i){var o=[];e.forEach((function(e){o.push([e.lng,e.lat,e.alt])}));var s=turf.lineString(o);n=1e3*turf.length(s)}else for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:2;if(e.length<3)return 0;var i=[];e.forEach((function(e){i.push([e.lng,e.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.tesselate(n);return Number(turf.area(o).toFixed(t))}},{key:"computeSignedArea",value:function(e,t){for(var i=[],n=[],o=0;oc?l/10:c/10;var u=new Cesium.PolygonGeometry.fromPositions({positions:Cesium.Cartesian3.fromDegreesArray(i),vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT,granularity:s}),h=new Cesium.PolygonGeometry.createGeometry(u);if(!h||!h.attributes||!h.attributes.position)return 0;var p=h.indices,d=h.attributes.position.values;function m(t,i){var n=new Cesium.Cartesian3(d[3*i],d[3*i+1],d[3*i+2]);return e.scene.clampToHeight(n)||n}for(var f=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:360};Number(t)<=0&&(t=.01);var n=[Number(e.lng),Number(e.lat)],o=turf.circle(n,t/1e3,i).geometry.coordinates[0],s=[];return o.forEach((function(e){s=s.concat(e)})),s}},{key:"createEllipse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{granularity:.1,semiMinorAxis:10,semiMajorAxis:20,bearing:0,height:0};t.granularity||(t.granularity=.1),t.height||(t.height=0),t.semiMinorAxis||(t.semiMinorAxis=1e-5),t.semiMajorAxis||(t.semiMajorAxis=1e-5);var i=new Cesium.EllipseOutlineGeometry({center:Cesium.Cartesian3.fromDegrees(Number(e.lng),Number(e.lat)),semiMajorAxis:Number(t.semiMajorAxis),semiMinorAxis:Number(t.semiMinorAxis),height:Number(t.height),granularity:Cesium.Math.toRadians(t.granularity),rotation:Cesium.Math.toRadians(t.bearing)}),n=Cesium.EllipseOutlineGeometry.createGeometry(i);if(!n||!n.attributes||!n.attributes.position)return[];for(var o=n.attributes.position.values,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=[];e.forEach((function(e){t.push(turf.point([e.lng,e.lat]))}));var i=turf.featureCollection(t),n=turf.center(i).geometry.coordinates;return{lng:n[0],lat:n[1]}}},{key:"computeMidpoint",value:function(e,t){var i=turf.point([e.lng,e.lat]),n=turf.point([t.lng,t.lat]),o=turf.midpoint(i,n).geometry.coordinates;return{lng:o[0],lat:o[1]}}},{key:"computeAttackArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(e,0)}},{key:"computePincerArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(e)}},{key:"computeArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.length<3)return[];for(var i,n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length<2)return[];e.length;var i=new Array;if(e.forEach((function(e){i.push([e.lng,e.lat])})),2===i.length){var n=P.PlotUtils.mid(i[0],i[1]),o=P.PlotUtils.distance(i[0],n)/.9,s=P.PlotUtils.getThirdPoint(i[0],n,P.Constants.HALF_PI,o,!0);i=[i[0],s,i[1]]}var a=P.PlotUtils.mid(i[0],i[2]);i.push(a,i[0],i[1]);for(var r=[],l=void 0,c=void 0,h=void 0,p=[],d=0;d0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length<2)return[];var i=[e[0].lng,e[0].lat],n=[e[1].lng,e[1].lat];if(e[0].lng===e[1].lng&&e[0].lat===e[1].lat){if(t)return[e[0],e[0],e[0]];var o=Cesium.Cartesian3.fromDegrees(e[0].lng,e[0].lat);return[o,o,o]}for(var s,a=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"#2ab0c2",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="",s={7:10,8:3,9:4,10:4,11:4,12:2};switch(i&&(s[t+""]?i.polyline.width=i.polyline.oriWidth+s[t+""]:i.polyline.width=i.polyline.oriWidth),Number(t)){case 1:o=new Cesium.PolylineDashMaterialProperty({color:Cesium.Color.fromCssColorString(e),dashLength:10});break;case 2:o=new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:Cesium.Color.fromCssColorString(e)});break;case 3:o=new Cesium.PolylineFlowMaterialProperty({color:e,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 4:o=new Cesium.PolylineFlowMultMaterialProperty({color:e,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 5:case 6:var a,r=this;o=new Cesium.FlowDashedLineFlowMaterialProperty({color:e,uType:5==t?0:1,speed:n.rotate?n.speed:0-n.speed,space:n.space,scale:new Cesium.CallbackProperty((function(){if(r.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var e=i.polyline.positions.getValue();if(!Cesium.defined(e))return 1;for(var t=0,n=0;n0||0==t.speed&&t.rotate?(n.width=s.width*(t.space+1),n.height=s.height,o.drawImage(s,s.width*(t.space/2),0)):(t.speed<0||0==t.speed&&!t.rotate)&&(o.clearRect(0,0,n.width,n.height),n.width=s.width*(t.space+1),n.height=s.height,o.save(),o.translate(n.width/2,n.height/2),o.rotate(Math.PI),o.translate(-n.width/2,-n.height/2),o.drawImage(s,s.width*(t.space/2),0),o.restore());var a=0,r=0;i.polyline.material=new Cesium.LineTextureMaterialProperty({color:t.color,image:n,speed:t.speed,repeat:new Cesium.CallbackProperty((function(){if(e.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var o=i.polyline.positions.getValue(e.sdk.viewer.clock.currentTime);if(!Cesium.defined(o))return new Cesium.Cartesian2(1,1);for(var s=0,l=0;l700){var v=(u*=f/h/(t.space*(n.width/n.height*5)+1))/i.polyline.oriRepeat;i.polyline.oriSpeed=v,i.polyline.oriRepeatX=u,a=v,r=u,c=new Cesium.Cartesian2(u,v||1)}else c=new Cesium.Cartesian2(r||i.polyline.oriRepeatX,a||i.polyline.oriSpeed);return c}var g=Object(B.b)(),y=g.viewer.entities.getById(e.options.id),b=y.polyline.positions.getValue(g.viewer.clock.currentTime);if(!Cesium.defined(b))return new Cesium.Cartesian2(1,1);for(var C=0,w=0;w700){var D=(_*=O/x/(t.space*(n.width/n.height*5)+1))/y.polyline.oriRepeat;y.polyline.oriSpeed=D,y.polyline.oriRepeatX=_,a=D,r=_,k=new Cesium.Cartesian2(_,D||1)}else k=new Cesium.Cartesian2(r||y.polyline.oriRepeatX,a||y.polyline.oriSpeed);return k}))});var l=e.getSceenLine(i,t,n);l&&(i.polyline.oriRepeat=l)}}},{key:"getSceenLine",value:function(e,t,i){var n=new Cesium.Cartesian2(0,this.sdk.viewer.canvas.clientHeight),o=new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight),s=this.sdk.viewer.camera.getPickRay(n),a=this.sdk.viewer.scene.globe.pick(s,this.sdk.viewer.scene),r=this.sdk.viewer.camera.getPickRay(o),l=this.sdk.viewer.scene.globe.pick(r,this.sdk.viewer.scene);if(a&&l){var c=Cesium.Cartesian3.distance(a,l)/e.polyline.width.getValue(),u=this.sdk.viewer.camera.positionCartographic.height,h=new Cesium.BoundingSphere(new Cesium.Cartesian3(-1e6,0,0),5e5),p=this.sdk.viewer.canvas.clientWidth,d=this.sdk.viewer.canvas.clientHeight,m=this.sdk.viewer.scene.camera.getPixelSize(h,p,d);return m>700?c*=m/u/(t.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Object(B.b)().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"create_arrow1_picture",value:function(e){var t=new fabric.Canvas("canvas");t.width=150,t.height=75;var i=e,n=new fabric.Polygon([{x:t.width,y:t.height/2},{x:t.width-35,y:t.height},{x:t.width-35,y:t.height-20},{x:t.width/2,y:t.height-20},{x:t.width/2,y:20},{x:t.width-35,y:20},{x:t.width-35,y:0}],{fill:i});return t.add(n),t.toDataURL()}},{key:"create_arrow2_picture",value:function(e){var t=new fabric.Canvas("canvas");t.width=75,t.height=75;var i=e,n=new fabric.Polygon([{x:t.width,y:t.height/2},{x:t.width-35,y:t.height},{x:t.width-35-40,y:t.height},{x:t.width-40,y:t.height/2},{x:t.width-35-40,y:0},{x:t.width-35,y:0}],{fill:i});return t.add(n),t.toDataURL()}},{key:"sampleHeightMostDetailed",value:function(e,t){var i=[];return e.forEach((function(e){i.push(new Cesium.Cartographic.fromDegrees(e.lng,e.lat))})),t?t.viewer.scene.sampleHeightMostDetailed(i):this.sdk.viewer.scene.sampleHeightMostDetailed(i)}},{key:"flyHome",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(Object(N.w)(0),Object(N.f)(this.sdk),Object(N.g)(this.sdk),this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE){var t=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.destination,i=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.orientation;this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),orientation:{heading:Cesium.Math.toRadians(i.heading||0),pitch:Cesium.Math.toRadians(i.pitch||0),roll:Cesium.Math.toRadians(i.roll||0)},duration:e})}else this.sdk.viewer.camera.flyHome(e)}},{key:"setPickStatus",value:function(){}},{key:"create_point_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:10},n=turf.point([Number(e.lng),Number(e.lat)]),o=turf.buffer(n,Number(t)/1e3,i);return o.geometry.coordinates}},{key:"create_line_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===e.length)return this.create_point_buffer(e[0],t);if(0===e.length)return!1;var i=[];e.forEach((function(e){i.push([Number(e.lng),Number(e.lat)])}));var n=turf.lineString(i),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"create_area_buffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===e.length)return this.create_point_buffer(e[0],t);if(0===e.length)return!1;if(2===e.length)return this.create_line_buffer(e,t);var i=[];e.forEach((function(e){i.push([Number(e.lng),Number(e.lat)])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"cal_envelope",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(e.length<2)){var t=[];e.forEach((function(e){t.push(turf.point([e.lng,e.lat]))}));var i=turf.featureCollection(t);return turf.envelope(i).geometry.coordinates[0]}console.error("坐标数量不能少于2个")}},{key:"chunkLine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(e.length<2)return[];var i=[];e.forEach((function(e){i.push([e.lng,e.lat])}));var n=turf.lineString(i),o=turf.lineChunk(n,t/1e3),s=new Map;return o.features.forEach((function(e){e.geometry.coordinates.forEach((function(e){var t=e.join(","),i={lng:e[0],lat:e[1]};s.set(t,i)}))})),o.features}},{key:"billboardAnimation",value:function(e,t){var i=t.id,n=t.offset,o=void 0===n?10:n,s=(t.times,e.entities.getById(i));if(s){var a=Math.PI,r=a/60,l=0,c=this.cartesian3Towgs84(s.position.getValue(),e),u=setInterval((function(){l+=r;var e=o*Math.sin(l)+c.alt;l>a&&(l=0),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e)}),30);setTimeout((function(){clearInterval(u),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt)}),3e3)}}},{key:"calSector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:45,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=turf.point([e.lng,e.lat]),r=turf.sector(a,t/1e3,i,n,{steps:o}).geometry.coordinates,l=[];return r.forEach((function(e){e.forEach((function(e){var t;t=s?{lng:e[0],lat:e[1]}:Cesium.Cartesian3.fromDegrees(e[0],e[1]),l.push(t)}))})),l}},{key:"getClampToHeight",value:(e=p()(C.a.mark((function e(t){var i,n,o,s,a,r,l=arguments;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>1&&void 0!==l[1]?l[1]:[],this.sdk&&this.sdk.viewer){e.next=3;break}return e.abrupt("return",0);case 3:return n=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat),e.prev=4,e.next=7,this.sdk.viewer.scene.clampToHeight(n,i);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=n;case 10:o=e.t0,e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),o=n;case 16:return e.next=18,this.cartesian3Towgs84(o,this.sdk.viewer).alt;case 18:if(s=e.sent,a=0,e.prev=20,!this.sdk.viewer.scene.terrainProvider.availability){e.next=26;break}return e.next=24,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(t.lng,t.lat)]);case 24:(r=e.sent)[0].height&&(a=r[0].height);case 26:e.next=31;break;case 28:e.prev=28,e.t2=e.catch(20),a=0;case 31:if(!(s>a)){e.next=35;break}return e.abrupt("return",Number(s.toFixed(2)));case 35:return e.abrupt("return",Number(a.toFixed(2)));case 36:case"end":return e.stop()}}),e,this,[[4,13],[20,28]])}))),function(t){return e.apply(this,arguments)})},{key:"deepCopyObj",value:function(e){var t=null;if(Array.isArray(e)){t=[];for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};e?S(this.sdk,t):E()}},{key:"projectionConvert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};e?M(this.sdk,t):T()}},{key:"exportExcel",value:function(e){var t="";for(var i in e[0])t+=''.concat(i,"");t+="";for(var n,o='{rows}
',s=function(e,t){return e.replace(/{(\w+)}/g,(function(e,i){return t[i]}))},a="",r="",l=0;l",e[l])r+=s('{data}',{nameType:"String",data:e[l][c]});r+="",l>0&&l/6e4%1==0&&(a+=s(o,{rows:r,nameWS:"Sheet"+l}),r="",r+=t)}a+=s(o,{rows:r,nameWS:"Sheet"}),r="",n=s('Axel Richter{created}{worksheets}',{created:(new Date).getTime(),worksheets:a});var u,h=document.createElement("A");h.href="data:application/vnd.ms-excel;base64,"+(u=n,window.btoa(unescape(encodeURIComponent(u)))),h.download="矢量数据导出.xls",h.target="_blank",document.body.appendChild(h),h.click(),document.body.removeChild(h)}},{key:"decompressGzip",value:function(e){var t=pako.inflate(e);return(new TextDecoder).decode(t)}},{key:"cmykToRgb",value:function(e){var t=e.c,i=e.m,n=e.y,o=e.k,s={r:0,g:0,b:0};return s.c=t/100,s.m=i/100,s.y=n/100,s.k=o/100,s.r=1-Math.min(1,s.c*(1-s.k)+s.k),s.g=1-Math.min(1,s.m*(1-s.k)+s.k),s.b=1-Math.min(1,s.y*(1-s.k)+s.k),s.r=Math.round(255*s.r),s.g=Math.round(255*s.g),s.b=Math.round(255*s.b),"rgb(".concat(s.r,", ").concat(s.g,", ").concat(s.b,")")}},{key:"convertPxToRem",value:function(e,t){var i=parseFloat(getComputedStyle(document.documentElement).fontSize),n=[],o=[];if(t){n=document.getElementById(e.div_id).querySelectorAll(t);for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=e.length,i=0,n=0,o=0;o0&&i<0||n<0&&i>0)return!1;i=n}}return!0}},{key:"getDateTimeString",value:function(){var e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),r=String(e.getMilliseconds()).padStart(3,"0");return"".concat(t).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)}},{key:"replaceHost",value:function(e,t){var i=e;if(!e||!t)return e;try{if(e.startsWith("http")){var n=/^[^@]+@/;n.test(e)&&(e=e.replace(n,"")),/^[a-z]+:\/\//i.test(e)||(e="http://"+e);var o=new URL(e),s=new URL(t),a=o.hostname,r=o.port;return a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1)),"localhost"!==a&&"127.0.0.1"!==a||55110===parseInt(r,10)||(o.port=s.port,o.protocol=s.protocol,i=o.toString()),i}return e.includes(":")||this.options.host&&(i=new URL(e,this.options.host).href),i}catch(e){return i}}},{key:"message",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type||"success",i=e.text||"",n=(e.duration,document.getElementById("YJ-custom-message"));n&&document.body.removeChild(n),n=document.createElement("div"),n.id="YJ-custom-message","success"==t?n.innerHTML='\n '.concat(i,"\n "):"warning"==t&&(n.innerHTML='\n '.concat(i,"\n ")),document.body.appendChild(n),n.classList.add(t)}},{key:"pointDistance",value:function(e,t){var i=Cesium.Cartesian3.fromDegrees(e.lng,e.lat),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat);return Cesium.Cartesian3.distance(n,i)}},{key:"mercatorToWGS84",value:function(e,t){var i=t/20037508.34*180;return[e/20037508.34*180,i=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"convertCGCStoWGS84",value:function(e,t,i){return proj4("+proj=tmerc +lat_0=0 +lon_0="+i+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[e,t])}},{key:"convertCGCSToWGS84WithZone",value:function(e,t){var i=e.toString(),n=parseInt(i.substring(0,2)),o=parseInt(i.substring(2)),s="+proj=tmerc +lat_0=0 +lon_0=".concat(3*n," +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs");return proj4(s,"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[o,t])}},{key:"convertCGCS2000_6ToWGS84",value:function(e,t,i){return proj4("+proj=tmerc +lat_0=0 +lon_0="+i+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[e,t])}},{key:"convertCGCS2000_6ToWGS84WithZone",value:function(e,t){var i=e.toString(),n=6*parseInt(i.substring(0,2))-3,o=parseInt(i.substring(2));return proj4("+proj=tmerc +lat_0=0 +lon_0="+n+" +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",[o,t])}}],[{key:"_md5",value:function(e){return k()(e).toUpperCase()}}]);var e,t,i}(),R=t.a=I},function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return f})),i.d(t,"a",(function(){return d}));var n=i(3),o=i.n(n),s=i(0),a=i.n(s);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isc:!1,excel:!1,flv:!1,rtsp:!1,hls:!1,host:"",username:"",password:"",token:""};return new Promise((function(t,i){var n=v(),o=["/custom/css/index.css","/arrow/algorithm.js","/arrow/plotUtil.js","/3rdparty/turf.min.js","/3rdparty/fabric.min.js","/3rdparty/proj4.js","/3rdparty/pako.min.js","/3rdparty/heatmap.js","/3rdparty/tween.umd.js","/Cesium/Cesium.js","/Cesium/Widgets/widgets.css","/3rdparty/ewPlugins.min.js","/3rdparty/wangeditor/index.js","/3rdparty/wangeditor/style.css","/3rdparty/html2canvas.min.js","/3rdparty/kriging.js","/3rdparty/echarts.min.js","/3rdparty/clipboard.min.js","/3rdparty/libgif.js","/3rdparty/liveplayer/liveplayer-element.min.js","/3rdparty/jedate/jedate.min.js","/3rdparty/jedate/skin/jedate.css"];window.YJSDK3rdpartyResourceAddress=n+"/3rdparty",e.ws&&o.push("/3rdparty/reconnecting-websocket.js"),(e.flv||e.rtsp)&&o.push("/3rdparty/flv.min.js");var s=document.createElement("script");s.setAttribute("type","module"),s.textContent="\n import * as THREE from '".concat(n,"/3rdparty/three/three.module.min.js';\n window.THREE = THREE\n "),document.querySelector("html").appendChild(s);var a=document.createElement("script");a.setAttribute("type","module"),a.textContent="\n import { SVGLoader } from '".concat(n,"/3rdparty/three/jsm/loaders/SVGLoader.js';\n window.SVGLoader = SVGLoader\n "),document.querySelector("html").appendChild(a);var r=[];o.forEach((function(e){var t;e.endsWith(".js")?((t=document.createElement("script")).setAttribute("type","text/javascript"),t.setAttribute("src",n+e)):((t=document.createElement("link")).setAttribute("rel","stylesheet"),t.setAttribute("href",n+e)),document.querySelector("html").appendChild(t);var i=new Promise((function(e,i){t.onload=function(){e()}})).then((function(e){return e}));r.push(i)})),Promise.all(r).then((function(i){var o,s;(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",n+"/3rdparty/viewerCesiumNavigationMixin.min.js"),document.querySelector("html").appendChild(o),o.onload=function(){p(e.host),e.username?u(e).then((function(e){t()})):(m(e.token),t())},(s=document.createElement("script")).setAttribute("type","text/javascript"),s.setAttribute("src",n+"/3rdparty/CesiumHeatmap.js"),document.querySelector("html").appendChild(s)})).catch((function(e){i(e)}))}))}var l="9e549c39c542fc9f835c2a5c260f8cc1",c="40ef4712c26360d01e397ebcb0d031ca";function u(){return h.apply(this,arguments)}function h(){return(h=o()(a.a.mark((function e(){var t,i,n,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.next=3,fetch((t.host||"")+"/yjearth4.0/api/v1/user/sign-in",{method:"post",body:JSON.stringify({username:t.username,password:t.password}),headers:{"Content-Type":"application/json"}});case 3:return i=e.sent,e.next=6,i.text();case 6:n=e.sent,0===(n=JSON.parse(n)).code&&(p(t.host),n.token?m(n.token):m(n.data.token));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){localStorage.setItem(c,e||"")}function d(){return localStorage.getItem(c)||""}function m(e){localStorage.setItem(l,e)}function f(){return localStorage.getItem(l)}function v(){var e=document.querySelectorAll("script"),t="";return e.forEach((function(e){if(e.src.indexOf("YJEarth.min.js")>-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}},function(e,t,i){var n=i(38);function o(){return e.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var o=n(e,t);if(o){var s=Object.getOwnPropertyDescriptor(o,t);return s.get?s.get.call(arguments.length<3?e:i):s.value}},e.exports.__esModule=!0,e.exports.default=e.exports,o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(43),o=i(44),s=i(34),a=i(45);e.exports=function(e,t){return n(e)||o(e,t)||s(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"g",(function(){return h})),i.d(t,"a",(function(){return p})),i.d(t,"j",(function(){return g})),i.d(t,"m",(function(){return y})),i.d(t,"i",(function(){return d})),i.d(t,"c",(function(){return m})),i.d(t,"l",(function(){return b})),i.d(t,"n",(function(){return C})),i.d(t,"h",(function(){return f})),i.d(t,"b",(function(){return v})),i.d(t,"k",(function(){return w})),i.d(t,"o",(function(){return k})),i.d(t,"d",(function(){return _})),i.d(t,"f",(function(){return x})),i.d(t,"e",(function(){return S}));var n=null,o=null,s=null,a=new Map,r=new Map,l=new Map;function c(e,t){var i=t.scene.globe.ellipsoid,n=new Cesium.Cartesian3(e.x,e.y,e.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude);return{lng:Cesium.Math.toDegrees(o.longitude),lat:s,alt:o.height<0?0:o.height}}function u(e,t){t.endPosition&&(t.endPosition.y-=2);var i=t.position||t.endPosition,n=e.viewer.scene.pickPosition(i);if(!n){var o=e.viewer.camera.getPickRay(i);n=e.viewer.scene.globe.pick(o,e.viewer.scene)}return n}function h(e,t){if(e&&e.viewer){var i=!0;(n=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(n){var o=e.viewer.scene.pickPosition(n.position);if(!o){var s=e.viewer.camera.getPickRay(n.position);o=e.viewer.scene.globe.pick(s,e.viewer.scene)}if(o){var r=c(o,e.viewer);if(t&&t(r),i&&(i=!1,setTimeout((function(){i=!0}),600),!YJ.Measure.GetMeasureStatus()&&o)){for(var l=!1,h=a.size-1;h>=0;h--){var p=Array.from(a.keys())[h],d=a.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([r.lng,r.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([r.lng,r.lat]),C=[],w=0;w=3){for(var _=turf.point([r.lng,r.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([r.lng,r.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l()(this,e),this.container=t,this.options=m({},i),this.options.ismove=!0,!1===i.ismove&&(this.options.ismove=i.ismove),this.closeCallBack=i.closeCallBack,this._element={},this._element_style=void 0,this.only=n}),[{key:"init",value:(e=o()(p.a.mark((function e(){var t,i,n,o=this;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.only&&this.closeAll(),v.push(this),this.isDestroy=!1,this._element.body=document.createElement("div"),this._element.body.className="YJ-custom-base-dialog",this._element.body.style.top=this.options.top,this._element.body.style.bottom=this.options.bottom,this._element.body.style.left=this.options.left,this._element.body.style.right=this.options.right,this.container.appendChild(this._element.body),this._element.title=document.createElement("div"),this._element.title.className="title-box",this._element.title.innerHTML=''.concat(this.options.title||"","")+'',this._element.body.appendChild(this._element.title),e.next=16,document.createElement("div");case 16:return this._element.content=e.sent,this._element.content.className="content",this._element.body.appendChild(this._element.content),e.next=21,document.createElement("div");case 21:return this._element.foot=e.sent,this._element.foot.className="foot",this._element.foot.innerHTML='\n \n ',this._element.body.appendChild(this._element.foot),e.next=27,document.createElement("div");case 27:for((t=e.sent).style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backdropFilter="blur(2px)",t.style.zIndex="-999999",this._element.body.appendChild(t),this._element.body.getElementsByClassName("close-box")[0].addEventListener("click",(function(){o.close()})),i=this._element.body.getElementsByClassName("close"),n=0;n=0;t--)e[t].dataset&&"YJ_style_dialog"===e[t].dataset.name&&document.getElementsByTagName("head")[0].removeChild(e[t]);this._element.body&&this._element.body.parentNode&&this.container.removeChild(this._element.body),this._element.body=null,this._element.title=null,this._element.content=null,this._element.foot=null,this._element_style=null,this.isDestroy=!0,this.closeCallBack&&(this.closeCallBack(),this.closeCallBack=null)}},{key:"closeAll",value:function(){for(var e=v.length-1;e>=0;e--)v[e].close(),v.splice(e,1)}},{key:"titleAppChild",value:function(e){this._element.title.appendChild(e)}},{key:"contentAppChild",value:function(e){this._element.content.appendChild(e)}},{key:"footAppChild",value:function(e,t){t?this._element.foot.insertBefore(e,t):this._element.foot.prepend(e)}},{key:"moveDiv",value:function(){var e=this,t=0,i=0,n=0,o=0,s=this._element.body,a=this;s.onmousedown=function(s){if("title-box"===s.toElement.className){var r=e._element.body.offsetHeight,l=e._element.body.offsetWidth;t=s.clientX,i=s.clientY;var c=window.getComputedStyle(e._element.body).left,u=window.getComputedStyle(e._element.body).top;n=1*c.substr(0,c.indexOf("px")),o=1*u.substr(0,u.indexOf("px"));var h=document.documentElement.clientHeight,p=document.documentElement.clientWidth;window.onmousemove=function(e){e.preventDefault();var s=e.clientX,c=e.clientY,u=s-(t-n),d=c-(i-o);u<0?u=0:u+l>p&&(u=p-l),d<=0?d=0:d+r>h&&(d=h-r),a._element.body.style.left=u+"px",a._element.body.style.top=d+"px",a._element.body.style.bottom="unset",a._element.body.style.right="unset"},document.onmouseup=function(e){window.onmousemove=null},window.ondragend=function(e){window.onmousemove=null}}},document.onmouseup=function(e){window.onmousemove=null},window.ondragend=function(e){window.onmousemove=null}}}]);var e}(),v=[];t.a=f},function(e,t,i){"use strict";var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(8),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(15),m=i(10);function f(e,t,i){return t=u()(t),l()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],u()(e).constructor):t.apply(e,i))}var v=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o()(this,t),(i=f(this,t,[e,n])).viewer=e.viewer,i.entityHasCreated=!1,i.event=null,i.tip=null,i.points_ids=[],i.color=n.color||"rgba(185,14,14,0.58)",i._is2D=s,i._sdk2D=Object(m.a)(),i}return p()(t,e),a()(t,[{key:"create_point",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.viewer,i=this.randomString();return t.entities.add(new Cesium.Entity({id:i,position:e,billboard:{image:this.getSourceRootPath()+"/img/point.png",color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(e){this.viewer.entities.removeById(e),!this._is2D&&this._sdk2D&&this._sdk2D.viewer&&this._sdk2D.viewer.entities&&this._sdk2D.viewer.entities.removeById(e)}},{key:"start",value:function(){}},{key:"end",value:function(){var e=this;YJ.Measure.SetMeasureStatus(!1),this.entityHasCreated=!1,this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy(),this.points_ids.forEach((function(t){e.remove_entity(t)}))}}])}(d.a);t.a=v},function(e,t){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"e",(function(){return c}));var n=i(15),o=i(7);function s(e){var t=new n.a,i=new Cesium.CustomDataSource("sdk-dataSource1");e.dataSources.add(i).then((function(e){var i;e.clustering.enabled=!1,e.clustering.pixelRange=15,e.clustering.minimumClusterSize=2;for(var n=new Cesium.PinBuilder,s=(n.fromText("50+",Cesium.Color.RED,48).toDataURL(),n.fromText("40+",Cesium.Color.ORANGE,48).toDataURL(),n.fromText("30+",Cesium.Color.YELLOW,48).toDataURL(),n.fromText("20+",Cesium.Color.GREEN,48).toDataURL(),n.fromText("10+",Cesium.Color.BLUE,48).toDataURL(),new Array(8)),a=0;a=1e3?(i.billboard.scale=1.5,i.label.pixelOffset=new Cesium.Cartesian2(-28,-46)):e.length>=100?(i.billboard.scale=1.25,i.label.pixelOffset=new Cesium.Cartesian2(-21,-40)):e.length>=50?(i.billboard.scale=1.1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-36)):e.length>=40?(i.billboard.scale=1.05,i.label.pixelOffset=new Cesium.Cartesian2(-16,-34)):e.length>=30?(i.billboard.scale=1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-32)):e.length>=20?(i.billboard.scale=.95,i.label.pixelOffset=new Cesium.Cartesian2(-16,-30)):e.length>=10?(i.billboard.scale=.9,i.label.pixelOffset=new Cesium.Cartesian2(-16,-28)):(i.billboard.scale=.8,i.label.pixelOffset=new Cesium.Cartesian2(-11,-25))}));var n=e.clustering.pixelRange;e.clustering.pixelRange=0,e.clustering.pixelRange=n}();var r={pixelRange:15,minimumClusterSize:2};function l(t){Cesium.knockout.getObservable(r,t).subscribe((function(i){e.clustering[t]=i}))}Cesium.knockout.track(r),l("pixelRange"),l("minimumClusterSize")}))}function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.viewer,n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={points:[],code:0,message:""};if(!this.name_map.has(t)&&!this.epsg_map.has(t))return n.code=1,n.message="不支持的坐标系:"+t,n;if(!this.name_map.has(i)&&!this.epsg_map.has(i))return n.code=1,n.message="不支持的坐标系:"+i,n;var o=(this.name_map.get(t)||this.epsg_map.get(t)).epsg,s=(this.name_map.get(i)||this.epsg_map.get(i)).epsg,a=proj4.defs(o),r=proj4.defs(s);return e.forEach((function(e){var t=Number(e.x),i=Number(e.y),o=Number(e.z||0),s=proj4(a,r,[t,i]);n.points.push({x:Number(s[0].toFixed(10)),y:Number(s[1].toFixed(10)),z:o})})),n}},{key:"getAllProjection",value:function(){return Array.from(this.name_map.values())}},{key:"projectionIsExists",value:function(e){return this.name_map.has(e)||this.epsg_map.has(e)}},{key:"degreesToDMS",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function i(e){var t=e.toString(),i=t.indexOf(".");return-1!==i?t.length-i-1:0}function n(e){return Math.pow(10,e)}var o=!1;e<0&&(o=!0),e=Math.abs(e);var s=Math.floor(e),a=n(i(e)),r=Math.floor((e-s)*a*60)/a,l=Math.floor(r);o&&(s=-s);var c=n(i(r)),u=Math.floor((r-l)*c)/c*60;return t?s+"°"+Math.floor(1e4*r)/1e4+"'":s+"°"+l+"'"+Math.floor(100*u)/100+'"'}},{key:"dmsToDecimal",value:function(e,t){var i,n,o;if(t){var s=e.split("°"),a=s[1].split("'");i=s[0],n=a[0],console.log(i,n);var r=Math.pow(10,8),l=Number(i*r)+n*r/60;return Math.round(l)/r}var c=e.split("°"),u=c[1].split("'"),h=u[1].split('"');i=c[0],n=u[0],o=h[0],console.log(i,n,o);var p=Math.pow(10,8),d=Number(i*p)+n*p/60+o*p/3600;return Math.round(d)/p}}])}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";i.r(t);var n=i(1),o=i.n(n),s=i(2),a=i.n(s),r=i(8),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(14),m=i(11);function f(e,t,i){return t=u()(t),l()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],u()(e).constructor):t.apply(e,i))}var v=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o()(this,t),f(this,t,[e,i,n])}return p()(t,e),a()(t,[{key:"start",value:function(e){var t=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new d.a("左键确定,右键结束;",this.sdk),this.event=new m.a(this.sdk),this.event.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer);e(null,s,Cesium)})),this.event.mouse_right((function(i,n){t.end(),e(!1)})),this.event.mouse_move((function(e,n){i=n,t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;t.event.gesture_pinck_end((function(){if(new Date-s>=500)t.end(),e(!1);else{t.end();var n=t.cartesian3Towgs84(i||o,t.viewer);e(null,n)}}))})),!this._is2D&&this._sdk2D&&(this.event2D=new m.a(this._sdk2D),this.event2D.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer);e(null,s,Cesium)})),this.event2D.mouse_right((function(i,n){t.end(),e(!1)})),this.event2D.mouse_move((function(e,n){i=n,t.tip.setPosition(n,e.endPosition.x+t.viewer.canvas.width,e.endPosition.y)})),this.event2D.gesture_pinck_start((function(n,o){var s=new Date;t.event2D.gesture_pinck_end((function(){if(new Date-s>=500)t.end(),e(!1);else{t.end();var n=t.cartesian3Towgs84(i||o,t.viewer);e(null,n)}}))})))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy()}}])}(i(21).a);t.default=v},function(e,t,i){"use strict";i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return f})),i.d(t,"c",(function(){return v}));var n,o=i(3),s=i.n(o),a=i(0),r=i.n(a),l=i(10),c=i(12),u=i(7),h=i(15),p=!1,d="1:100万";function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){n||(n=new h.a),(p=!!t)?f(e,d):y(e);var i=Object(l.a)();i&&(p?f(e,d):y(i));var o=Object(c.a)().sdkD;o&&e!==o&&m(o,t)}}function f(e,t){d=t,p&&g(e);var i=Object(l.a)();return i&&p&&g(i),new Promise(function(){var e=s()(r.a.mark((function e(t,i){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t()}),1e3);case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}())}function v(){return p}function g(e){y(e);var t,i,n=e.viewer.camera.positionCartographic,o={position:{lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),alt:n.height}},s=e.viewer;switch(d){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}for(var a=0;au&&(u+=360),c={minLng:r,minLat:l,maxLng:u,maxLat:h},l<-88&&(l=-88),h>88&&(h=88),(c.maxLng-c.minLng)/n*((c.maxLat-c.minLat)/o)>7e3)c=null;else{for(var d=r;d<=u;d+=n){for(var f=[],v=[],g=l;Math.floor(1e9*g)/1e9<=h;g+=o/2)v.push([d,g]),f.push(Cesium.Cartesian3.fromDegrees(d,g,8848));88!=h&&h+o/2>=88&&f.push(Cesium.Cartesian3.fromDegrees(d,88,8848));var y=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:f,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});if(t.add(new Cesium.Primitive({geometryInstances:y,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})})),dh)break;var w=p(C.lng,C.lat,e);i.add({position:Cesium.Cartesian3.fromDegrees(C.lng,C.lat,8848),text:w,font:"16px Inter, sans-serif",fillColor:Cesium.Color.fromCssColorString("#fcfc00"),pixelOffset:new Cesium.Cartesian2(0,0),showBackground:!1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1,distanceDisplayCondition:new Cesium.DistanceDisplayCondition(0,8e7),scaleByDistance:s})}}for(var k=l;Math.floor(1e9*k)/1e9<=h;k+=o){for(var _=[],x=[],S=r;S<=u;S+=n/2)x.push([S,k]),_.push(Cesium.Cartesian3.fromDegrees(S,k,8848));var E=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:_,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});t.add(new Cesium.Primitive({geometryInstances:E,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})}))}}}function p(e,t,i){var n,o;switch(i){case"1:100万":n=6,o=4;break;case"1:50万":n=3,o=2;break;case"1:25万":n=1.5,o=1;break;case"1:10万":n=.5,o=1/3;break;case"1:5万":n=.25,o=1/6;break;case"1:2.5万":n=.125,o=1/12;break;case"1:1万":n=.0625,o=1/24;break;case"1:5000":n=.03125,o=1/48}t=Math.max(-88,Math.min(88,t));var s,a=e,r=t=Math.abs(t),l=Math.floor(a/6+31),c="ABCDEFGHIJKLMNOPQRSTUV".charAt(Math.floor(r/4+1)-1),u={"1:100万":"","1:50万":"B","1:25万":"C","1:10万":"D","1:5万":"E","1:2.5万":"F","1:1万":"G","1:5000":"H"}[i];if(!u&&"1:100万"!==i)throw new Error("不支持的比例尺,请使用: 1:100万, 1:50万, 1:25万, 1:10万, 1:5万, 1:2.5万, 1:1万, 1:5000");s=c+l;var h=("000"+(Math.floor((4*Math.ceil(r/4)-r)/o)+1)).slice(-3),p=a-6*Math.floor(a/6),d=("000"+(Math.floor(p/n)+1)).slice(-3);switch(i){case"1:100万":return s;case"1:50万":case"1:25万":case"1:10万":case"1:5万":case"1:2.5万":case"1:1万":case"1:5000":break;default:throw new Error("不支持的比例尺")}return s+u+h+d}function m(){var e=s.camera.computeViewRectangle();if(2==s.scene.mode){var t=s.scene.canvas,i=new Cesium.Cartesian2(0,0),n=new Cesium.Cartesian2(t.clientWidth,t.clientHeight),o=s.scene.globe.ellipsoid,a=s.camera.pickEllipsoid(i,o),r=s.camera.pickEllipsoid(n,o);if(!a){var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:6356755});i.y=l.y+5,a=s.camera.pickEllipsoid(i,o)}if(!r){var c=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:-6356755});n.y=c.y-5,r=s.camera.pickEllipsoid(n,o)}var u=s.scene.globe.ellipsoid.cartesianToCartographic(a),h=s.scene.globe.ellipsoid.cartesianToCartographic(r);return e=(n.y-i.y)/(n.x-i.x)<=.49998752339363695?new Cesium.Rectangle(Cesium.Math.toRadians(-180),Cesium.Math.toRadians(-90),Cesium.Math.toRadians(180),Cesium.Math.toRadians(90)):new Cesium.Rectangle(u.longitude,h.latitude,h.longitude,u.latitude)}return e}t.postRenderEvent=function(){var i=e.viewer.camera.positionCartographic.height;switch(d){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}if(i>5*o.position.alt)return c=null,void t.removeAll();var n=!1,s=m(),a=Cesium.Math.toDegrees(s.west),r=Cesium.Math.toDegrees(s.south),u=Cesium.Math.toDegrees(s.east);a>u&&(u+=360),s={minLng:a,minLat:r,maxLng:u,maxLat:Cesium.Math.toDegrees(s.north)},c?(c.minLng>s.minLng||c.minLat>s.minLat||c.maxLng=50&&(h(d),n=!1):l=0},o.complete=function(){s.scene.postRender.addEventListener(t.postRenderEvent)},Object(u.i)(e,o,.5)}function y(e){for(var t,i,n=e.viewer,o=0;o=0;h--){var p=Array.from(n.keys())[h],d=n.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([c.lng,c.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([c.lng,c.lat]),C=[],w=0;w=3){for(var _=turf.point([c.lng,c.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([c.lng,c.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N=0;h--){var p=Array.from(n.keys())[h],d=n.get(p);if(d&&d.that)if("PolygonObject"===d.that.type){if(d.that.picking&&d.that.options.positions&&d.that.options.positions.length>=3){for(var m=turf.point([c.lng,c.lat]),f=[],v=0;v=3){for(var y=d.that.computeAssemble(d.that.options.positions,!0),b=turf.point([c.lng,c.lat]),C=[],w=0;w=3){for(var _=turf.point([c.lng,c.lat]),x=d.that.computeAttackArrow(d.that.options.positions),S=[],E=0;E=5){for(var D=turf.point([c.lng,c.lat]),M=d.that.computePincerArrow(d.that.options.positions),T=[],N=0;N\n
    \n
  • 属性
  • \n
\n ');var d=c.cartesian3Towgs84(i,e.viewer);(o=document.createElement("div")).id="custom-menu",o.style.position="absolute",o.style.width="110px",o.style.backgroundColor="#00000085",o.style.color="#ffffff",o.style.padding="6px 0",o.style.boxShadow="4px 4px 4px 0px rgba(0, 0, 0, 0.8)",o.innerHTML='\n
    \n
  • 绕鼠标点旋转
  • \n
\n
    \n
  • 文本框
  • \n
\n '.concat(u,"\n "),l.appendChild(o);var m=t.position.x,f=t.position.y;t.position.x+o.offsetWidth>l.offsetWidth&&(m=t.position.x-o.offsetWidth),t.position.y+o.offsetHeight>l.offsetHeight&&(f=t.position.y-o.offsetHeight),o.style.left=m+"px",o.style.top=f+"px",o.addEventListener("contextmenu",(function(e){e.preventDefault()}));for(var v=o.getElementsByTagName("li"),g={},y=function(t){v[t].addEventListener("mouseover",(function(){v[t].style.backgroundColor="#5e5e5e"})),v[t].addEventListener("mouseout",(function(){v[t].style.backgroundColor="unset"})),v[t].addEventListener("click",(function(){var i="";switch(v[t].innerHTML){case"绕鼠标点旋转":g.position=d,i="rotateAround";break;case"属性":s?(g.id=s,g.parentId=h.options.id):g.id=h.options.id,i="attribute";break;case"文本框":g.position=d,i="textBox"}a[e.div_id].callBack(i,g),l.removeChild(o)}))},b=0;be.length)&&(t=e.length);for(var i=0,n=Array(t);i>2]|=e[s]<>6,l[o++]=128|63&n):n<55296||n>=57344?(l[o++]=224|n>>12,l[o++]=128|n>>6&63,l[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++s)),l[o++]=240|n>>18,l[o++]=128|n>>12&63,l[o++]=128|n>>6&63,l[o++]=128|63&n);else for(o=this.start;s>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(r[o>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,i,n,o,s,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(i=((i=(-271733879^(n=((n=(-1732584194^2004318071&e)+a[1]-117830708)<<12|n>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|i>>>15)+n<<0)&(n^e))+a[3]-1316259209)<<22|t>>>10)+i<<0:(e=this.h0,t=this.h1,i=this.h2,t=((t+=((e=((e+=((n=this.h3)^t&(i^n))+a[0]-680876936)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[1]-389564586)<<12|n>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|i>>>15)+n<<0)&(n^e))+a[3]-1044525330)<<22|t>>>10)+i<<0),t=((t+=((e=((e+=(n^t&(i^n))+a[4]-176418897)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[5]+1200080426)<<12|n>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|i>>>15)+n<<0)&(n^e))+a[7]-45705983)<<22|t>>>10)+i<<0,t=((t+=((e=((e+=(n^t&(i^n))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[9]-1958414417)<<12|n>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|i>>>15)+n<<0)&(n^e))+a[11]-1990404162)<<22|t>>>10)+i<<0,t=((t+=((e=((e+=(n^t&(i^n))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[13]-40341101)<<12|n>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|i>>>15)+n<<0)&(n^e))+a[15]+1236535329)<<22|t>>>10)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[11]+643717713)<<14|i>>>18)+n<<0)^n))+a[0]-373897302)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[15]-660478335)<<14|i>>>18)+n<<0)^n))+a[4]-405537848)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[3]-187363961)<<14|i>>>18)+n<<0)^n))+a[8]+1163531501)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[7]+1735328473)<<14|i>>>18)+n<<0)^n))+a[12]-1926607734)<<20|t>>>12)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[11]+1839030562)<<16|i>>>16)+n<<0))+a[14]-35309556)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[7]-155497632)<<16|i>>>16)+n<<0))+a[10]-1094730640)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[3]-722521979)<<16|i>>>16)+n<<0))+a[6]+76029189)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[15]+530742520)<<16|i>>>16)+n<<0))+a[2]-995338651)<<23|t>>>9)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[0]-198630844)<<6|e>>>26)+t<<0)|~i))+a[7]+1126891415)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[14]-1416354905)<<15|i>>>17)+n<<0)|~e))+a[5]-57434055)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~i))+a[3]-1894986606)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[10]-1051523)<<15|i>>>17)+n<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~i))+a[15]-30611744)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[6]-1560198380)<<15|i>>>17)+n<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[4]-145523070)<<6|e>>>26)+t<<0)|~i))+a[11]-1120210379)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[2]+718787259)<<15|i>>>17)+n<<0)|~e))+a[9]-343485551)<<21|t>>>11)+i<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=i-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+i<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,i,n="",o=this.array(),s=0;s<15;)e=o[s++],t=o[s++],i=o[s++],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|i>>>6)]+BASE64_ENCODE_CHAR[63&i];return e=o[s],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(50),__webpack_require__(51))},function(e,t,i){var n=i(5),o=i(33),s=i(53),a=i(54);function r(t){var i="function"==typeof Map?new Map:void 0;return e.exports=r=function(e){if(null===e||!s(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){e.exports=i(58)},function(e,t,i){var n=i(22).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var t,i={},s=Object.prototype,a=s.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function p(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,i){return e[t]=i}}function d(e,t,i,n){var o=t&&t.prototype instanceof b?t:b,s=Object.create(o.prototype),a=new N(n||[]);return r(s,"_invoke",{value:O(e,i,a)}),s}function m(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}i.wrap=d;var f="suspendedStart",v="executing",g="completed",y={};function b(){}function C(){}function w(){}var k={};p(k,c,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==s&&a.call(x,c)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function E(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function i(o,s,r,l){var c=m(e[o],e,s);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==n(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,r,l)}),(function(e){i("throw",e,r,l)})):t.resolve(h).then((function(e){u.value=e,r(u)}),(function(e){return i("throw",e,r,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function s(){return new t((function(t,o){i(e,n,t,o)}))}return o=o?o.then(s,s):s()}})}function O(e,i,n){var o=f;return function(s,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var r=n.delegate;if(r){var l=D(r,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=m(e,i,n);if("normal"===c.type){if(o=n.done?g:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function D(e,i){var n=i.method,o=e.iterator[n];if(o===t)return i.delegate=null,"throw"===n&&e.iterator.return&&(i.method="return",i.arg=t,D(e,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var s=m(o,e.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,y;var a=s.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,y):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e||""===e){var i=e[c];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function i(){for(;++o=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),T(i),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var o=n.arg;T(i)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,i,n){return this.delegate={iterator:B(e),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=t),y}},i}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,s,a,r=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return r}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(22).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(35);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var i,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(e){if(i===setTimeout)return setTimeout(e,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:s}catch(e){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,h=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&d())}function d(){if(!u){var e=r(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h1)for(var i=1;i=5e7&&(l=5e7-i),t.zoomOut(l)}}(e)}))}var d={moveForward:!1,moveBackward:!1,moveLeft:!1,moveRight:!1,moveUp:!1,moveDown:!1,lookUp:!1,lookDown:!1,lookLeft:!1,lookRight:!1,twistLeft:!1,twistRight:!1,zoomIn:!1,zoomOut:!1};function m(e){switch(e){case 87:return"moveForward";case 83:return"moveBackward";case 68:return"moveRight";case 65:return"moveLeft";case 81:return"moveUp";case 69:return"moveDown";case 38:return"lookUp";case 40:return"lookDown";case 37:return"lookLeft";case 39:return"lookRight";case 96:return"twistLeft";case 110:return"twistRight";case 107:return"zoomIn";case 109:return"zoomOut";default:return}}function f(e){var t;if("input"===(t=document.activeElement).tagName.toLowerCase()&&"checkbox"!==t.type||"textarea"===t.tagName.toLowerCase()||"textarea"===t.getAttribute("role"));else if(this.trackedEntity);else if(this._firstPersonView);else if(this._disableKeyboardEvent);else if(e.ctrlKey&&e.altKey){if("v"===e.key||"V"===e.key){var i=this.camera;this._CAMERA_SHORTCUT_VIEW={orientation:{heading:i.heading,pitch:i.pitch,roll:i.roll},position:{x:i.position.x,y:i.position.y,z:i.position.z}},localStorage.setItem("CAMERA_SHORTCUT_VIEW",JSON.stringify(this._CAMERA_SHORTCUT_VIEW))}if("f"===e.key||"F"===e.key){var n=localStorage.getItem("CAMERA_SHORTCUT_VIEW");this._CAMERA_SHORTCUT_VIEW=JSON.parse(n),this._CAMERA_SHORTCUT_VIEW&&this._CAMERA_SHORTCUT_VIEW.position&&this._CAMERA_SHORTCUT_VIEW.orientation&&this.camera.flyTo({destination:this._CAMERA_SHORTCUT_VIEW.position,orientation:this._CAMERA_SHORTCUT_VIEW.orientation})}}else{var o=m(e.keyCode);void 0!==o&&(d[o]=!0)}}function g(e){var t=m(e.keyCode);void 0!==t&&(d[t]=!1)}var y=i(23);var b=i(15);function C(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=e.color,this.duration=e.duration,this.fltr=e.fltr,this.image=e.image,this._time=(new Date).getTime()}Object.defineProperties(e.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:Cesium.createPropertyDescriptor("repeat"),color:Cesium.createPropertyDescriptor("color")}),e.prototype.getType=function(e){return"PolylineTrailLink"},e.prototype.getValue=function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BROWN,t.color),this.image?t.image=this.image:t.image=Cesium.Material.PolylineTrailLinkImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),!1===this.fltr?t.fltr=this.fltr:t.fltr=!0,t},e.prototype.equals=function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)},Cesium.PolylineTrailLinkMaterialProperty=e,Cesium.Material.PolylineTrailLinkType="PolylineTrailLink",Cesium.Material.PolylineTrailLinkImage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fa2020",t=512,i=32,n=new fabric.Canvas("canvas",{width:t,height:i}),o=new fabric.Rect({width:t,height:i}),s=new fabric.Gradient({type:"linear",gradientUnits:"pixels",coords:{x1:0,y1:0,x2:t,y2:0},colorStops:[{offset:.01,color:"rgba(246,241,241,0)"},{offset:1,color:e}]});return o.set("fill",s),n.add(o),n.toDataURL()}(),Cesium.Material.PolylineTrailLinkSource="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material =czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture(image,vec2(fract(st.t - time), st.t));\n vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb/20.0;\n material.emission = fragColor.rgb;\n return material;\n }",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailLinkType,{fabric:{type:Cesium.Material.PolylineTrailLinkType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.Material.PolylineTrailLinkImage,time:0},source:Cesium.Material.PolylineTrailLinkSource},translucent:function(e){return!0}})}function w(){var e,t,i,n,o,s,a,r;C(),e=new b.a,"undefined"!=typeof Cesium&&function(t){t.CustomMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.Color,t.defaultValue),o=Object.defineProperties,s=t.Event,a=t.createPropertyDescriptor,r=t.Property,l=t.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random()),u={color:new t.Color(1,1,1,1),image:i.image||e.getSourceRootPath()+"/img/material/arrow.png",time:i.time||0,repeat:new t.Cartesian2(100,100),fltr:!i.fltr&&!1!==i.fltr||i.fltr,is2D:!!i.is2D,isTranslucent:!i.isTranslucent&&!1!==i.isTranslucent||i.isTranslucent};if(this.code="",i.repeats)for(var h=t.Property.getValueOrDefault(i.repeats),p=0;p0&&void 0!==arguments[0]?arguments[0]:{};e=n(e,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeats=void 0,this._repeatSubscription=void 0,this.image=e.image,this.is2D=!!e.is2D,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)"),this.repeat=e.repeat,this.repeats=e.repeats,this.duration=e.duration||0===e.duration?e.duration:1e3,this.fltr=!e.fltr&&!1!==e.fltr||e.fltr,this._time=(new Date).getTime()}return o(d.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:t.createPropertyDescriptor("repeat"),color:a("color")}),d.prototype.getType=function(e){return c},d.prototype.getValue=function(e,i){if(t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i.time=this.duration?t.getTimestamp()%this.duration/this.duration:0,i.image=this.image,i.is2D=!!this.is2D,this.repeat&&(i.repeat=t.Property.getValueOrDefault(this.repeat)),this.repeats)for(var n=t.Property.getValueOrDefault(this.repeats),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=(e.Color,e.defaultValue),n=Object.defineProperties,o=e.Event,s=e.createPropertyDescriptor,a=e.Property,r=e.Material,l=t.MaterialType||"wallType"+parseInt(1e3*Math.random());function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=i(t,i.EMPTY_OBJECT),this._definitionChanged=new o,this._color=void 0,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)")}return n(c.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:s("color")}),c.prototype.getType=function(e){return l},c.prototype.getValue=function(t,i){return e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i},c.prototype.equals=function(e){return this===e||e instanceof c&&a.equals(this._color,e._color)},r._materialCache.addMaterial(l,{fabric:{type:l,uniforms:{color:new e.Color(1,1,1,1)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.alpha = color.a;\n \n material.diffuse = color.rgb*0.0;\n material.emission = color.rgb;\n return material;\n }",components:{specular:1,diffuse:"vec3(0.0)"}},translucent:function(e){return!0}}),new c(t)}}(Cesium),function(){var e=new b.a;"undefined"!=typeof Cesium&&function(t){t.CustomImageMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.Color,t.defaultValue),o=Object.defineProperties,s=t.Event,a=t.createPropertyDescriptor,r=t.Property,l=t.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random());function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=n(e,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.image=e.image,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)"),this.repeat=e.repeat}return o(u.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:t.createPropertyDescriptor("repeat"),color:a("color")}),u.prototype.getType=function(e){return c},u.prototype.getValue=function(e,i){return t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i.image=this.image,i.repeat=t.Property.getValueOrDefault(this.repeat),i},u.prototype.equals=function(e){return this===e||e instanceof u&&r.equals(this._color,e._color)&&r.equals(this.repeat,e._repeat)},l._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new t.Color(1,1,1,1),image:i.image||e.getSourceRootPath()+"/img/material/arrow.png",repeat:new t.Cartesian2(100,100)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = repeat * materialInput.st;\n vec4 colorImage = texture(image, st);\n \n material.diffuse = colorImage.rgb * 0.0;\n material.emission = colorImage.rgb * 0.3;\n return material;\n }"}}),new u(i)}}(Cesium)}(),i=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._duration=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.duration=t.duration||10,this.lineBackAlpha=t.lineBackAlpha||.05}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.FlowLineMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.duration=Cesium.Property.getValueOrDefault(this._duration,e,10,t.duration),t.lineBackAlpha=this.lineBackAlpha,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._duration,t.duration)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(i.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.FlowLineMaterialProperty=i,Cesium.Material.FlowLineMaterialProperty="FlowLineMaterialProperty",Cesium.Material.FlowLineMaterialType="FlowLineMaterialType",Cesium.Material.FlowLineMaterialSource="\n uniform vec4 color;\n uniform float duration;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n float time = fract(czm_frameNumber / (60.0*duration));\n //长度1/10\n time = time * (1.0 + 0.1);\n //平滑过渡函数\n float alpha = smoothstep(time-0.1,time,st.s) * step(-time,-st.s);\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowLineMaterialType,{fabric:{type:Cesium.Material.FlowLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),duration:10,lineBackAlpha:.05},source:Cesium.Material.FlowLineMaterialSource},translucent:function(e){return!0}}),n=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.lineBackAlpha=t.lineBackAlpha||.05,this.rotate=t.rotate}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.PolylineFlowMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.rotate=Cesium.Property.getValueOrDefault(this._rotate,e,!0,t.rotate),t.lineBackAlpha=this.lineBackAlpha,t.frameTime=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(n.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMaterialProperty=n,Cesium.Material.PolylineFlowMaterialProperty="PolylineFlowMaterialProperty",Cesium.Material.PolylineFlowMaterialType="PolylineFlowMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n // float time = fract(czm_frameNumber * speed / 60.0);\n // float time = fract(abs(speed) * czm_frameNumber * 0.01);\n float time = fract(frameTime / 1000.0 / abs(speed));\n //长度1/10\n // time = time * (1.0 + 0.1);\n float staticAlpha = rotate?smoothstep(0.0,1.0, 1.0-st.s) * step(-1.0,-(1.0-st.s)):smoothstep(0.0,1.0, st.s) * step(-1.0,-st.s);\n\n //平滑过渡函数\n float alpha1 = smoothstep(time-0.1,time,1.0-st.s) * step(-time,- (1.0-st.s));\n float alpha2 = smoothstep(time-0.1,time,st.s) * step(-time,- st.s);\n float alpha =(speed== 0.0)? staticAlpha:(speed < 0.0)?alpha2:alpha1;\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(e){return!0}}),o=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.lineBackAlpha=t.lineBackAlpha||.05,this.rotate=t.rotate}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.PolylineFlowMultMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.rotate=Cesium.Property.getValueOrDefault(this._rotate,e,!0,t.rotate),t.lineBackAlpha=this.lineBackAlpha,t.frameTime=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this._rotate,t.rotate)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(o.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMultMaterialProperty=o,Cesium.Material.PolylineFlowMultMaterialProperty="PolylineFlowMultMaterialProperty",Cesium.Material.PolylineFlowMultMaterialType="PolylineFlowMultMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n // 基础时间轴(控制主光带)\n float baseTime = fract(czm_frameNumber * speed / 60.0) * 1.1;\n\n // 高频时间轴(控制高光点)\n // float highlightTime = fract(czm_frameNumber * speed * 3.0 / 60.0);\n // float highlightTime = fract(abs(speed) * czm_frameNumber * 0.01);\n float highlightTime = fract(frameTime / 1000.0 / abs(speed));\n float highlightSpacing = 0.3; // 高光点间隔\n\n // 主光带透明度计算\n float mainAlpha = smoothstep(baseTime-0.1, baseTime, st.s) * step(-baseTime, -st.s);\n\n // 多高光点计算(3个周期性光斑)\n float highlight11 = smoothstep(highlightTime-0.05, highlightTime, st.s) *\n step(-highlightTime, -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - highlightTime)));\n\n float highlight21 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, st.s) *\n step(-(highlightTime+highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+highlightSpacing))));\n\n float highlight31 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight12 = smoothstep(highlightTime-0.05, highlightTime, 1.0 - st.s) *\n step(-highlightTime, -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - highlightTime)));\n\n float highlight22 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+highlightSpacing),-(1.0 - st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0-st.s - (highlightTime+highlightSpacing))));\n\n float highlight32 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight1 = !rotate?highlight11:highlight12;\n float highlight2 = !rotate?highlight21:highlight22;\n float highlight3 = !rotate?highlight31:highlight32;\n // 合并效果\n // material.alpha = mainAlpha * 0.7 +\n // (highlight1 + highlight2 + highlight3) * 0.5 +\n // lineBackAlpha;\n material.alpha = (highlight1 + highlight2 + highlight3) * 0.5 +\n lineBackAlpha;\n material.diffuse = color.rgb; // 高光区变亮\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMultMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMultMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(e){return!0}}),s=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._uType=void 0,this._space=void 0,this._dashSize=void 0,this._scale=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.space=t.space||0,this.dashSize=t.dashSize||.03,this.uType=void 0===t.uType?1:t.uType,this.lineBackAlpha=t.lineBackAlpha||.05,this.scale=t.scale||1}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.FlowDashedLineMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.space=Cesium.Property.getValueOrDefault(this._space,e,10,t.space),t.dashSize=Cesium.Property.getValueOrDefault(this._dashSize,e,10,t.dashSize),t.uType=Cesium.Property.getValueOrDefault(this._uType,e,1,t.uType),t.scale=Cesium.Property.getValueOrDefault(this._scale,e,1,t.scale),t.lineBackAlpha=this.lineBackAlpha,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this._uType,t.uType)&&Cesium.Property.equals(this._lineBackAlpha,t.lineBackAlpha)&&Cesium.Property.equals(this._scale,t.scale)}}])}(),Object.defineProperties(s.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),space:Cesium.createPropertyDescriptor("space"),dashSize:Cesium.createPropertyDescriptor("dashSize"),uType:Cesium.createPropertyDescriptor("uType"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha"),scale:Cesium.createPropertyDescriptor("scale")}),Cesium.FlowDashedLineFlowMaterialProperty=s,Cesium.Material.FlowDashedLineFlowMaterialProperty="FlowDashedLineFlowMaterialProperty",Cesium.Material.FlowDashedLineMaterialType="FlowDashedLineMaterialType",Cesium.Material.FlowDashedLineMaterialSource="\n uniform vec4 color;\n uniform float speed;\n // uniform int uType;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n float dashSize = 0.1;\n float gapSize = space;\n // speed现在表示完成一次完整动画循环的秒数\n float progress = speed==0.0 ? 0.0 : fract(frameNumber / 1000.0 / speed * scale);\n float pattern = fract(st.x / dashSize * (1.0 + gapSize) + progress / dashSize * (1.0 + gapSize));\n float dash1 = step(0.0, pattern) - step(1.0/(1.0 + gapSize), pattern);\n float dash2 = smoothstep(0.0, 0.2, pattern) -\n smoothstep(1.0/(1.0 + gapSize),\n 1.0/(1.0 + gapSize) + 0.2,\n pattern);\n float dash = (float(uType) != 1.0)?dash1:dash2;\n material.alpha = dash;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowDashedLineMaterialType,{fabric:{type:Cesium.Material.FlowDashedLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:1,space:0,scale:1,dashSize:.03,frameNumber:Cesium.getTimestamp(),uType:1,lineBackAlpha:.05},source:Cesium.Material.FlowDashedLineMaterialSource},translucent:function(e){return!0}}),a=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._image=void 0,this._color=void 0,this._speed=void 0,this._repeat=void 0,this.image=t.image||"",this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.repeat=t.repeat||new Cesium.Cartesian2(1,1)}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.LineTextureMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=Cesium.Property.getValueOrDefault(this._image,e,"",t.image),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,1,t.speed),t.repeat=Cesium.Property.getValueOrDefault(this._repeat,e,new Cesium.Cartesian2(1,1),t.repeat),t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._image,t._image)&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._imageW,t._imageW)&&Cesium.Property.equals(this._speed,t._speed)}}])}(),Object.defineProperties(a.prototype,{image:Cesium.createPropertyDescriptor("image"),color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),repeat:Cesium.createPropertyDescriptor("repeat")}),Cesium.LineTextureMaterialProperty=a,Cesium.Material.LineTextureMaterialProperty="LineTextureMaterialProperty",Cesium.Material.LineTextureMaterialType="LineTextureMaterialType",Cesium.Material.LineTextureMaterialSource="\n uniform vec4 color;\n uniform sampler2D image;\n uniform float speed;\n // uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat.x; // 关键:通过repeat控制纹理密度\n // vec4 colorImage = texture2D(image, vec2(fract(st.s + speed*czm_frameNumber* 0.01), st.t));\n vec4 colorImage = speed==0.0?texture2D(image, vec2(fract(st.s), st.t)):texture2D(image, vec2(fract(st.s + frameNumber / 1000.0 / speed * repeat.x / repeat.y ), st.t));\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.LineTextureMaterialType,{fabric:{type:Cesium.Material.LineTextureMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),image:"",repeat:new Cesium.Cartesian2(1,1),speed:1,frameNumber:Cesium.getTimestamp(),uTime:1},source:Cesium.Material.LineTextureMaterialSource},translucent:function(e){return!0}}),r=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._image=void 0,this._repeat=void 0,this._stRotation=void 0,this._repeatLength=void 0,this.image=t.image||"",this.repeat=t.repeat||1,this.stRotation=t.stRotation||0}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.RoadTextureMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=Cesium.Property.getValueOrDefault(this._image,e,"",t.image),t.repeat=Cesium.Property.getValueOrDefault(this._repeat,e,1,t.repeat),t.stRotation=Cesium.Property.getValueOrDefault(this._stRotation,e,0,t.stRotation),console.log(t,"result"),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._image,t._image)&&Cesium.Property.equals(this._repeat,t._repeat)&&Cesium.Property.equals(this._stRotation,t._stRotation)}}])}(),Object.defineProperties(r.prototype,{image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat"),repeatLength:Cesium.createPropertyDescriptor("stRotation")}),Cesium.RoadTextureMaterialProperty=r,Cesium.Material.RoadTextureMaterialProperty="RoadTextureMaterialProperty",Cesium.Material.RoadTextureMaterialType="RoadTextureMaterialType",Cesium.Material.RoadTextureMaterialSource="\n uniform sampler2D image;\n uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat;\n mat2 rot = mat2(cos(stRotation), -sin(stRotation), sin(stRotation), cos(stRotation));\n vec2 newSt = rot * (st - 0.5) + 0.5;\n\n vec4 colorImage = texture2D(image, newSt);\n material.diffuse = colorImage.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.RoadTextureMaterialType,{fabric:{type:Cesium.Material.RoadTextureMaterialType,uniforms:{image:"",repeat:1,stRotation:0},source:Cesium.Material.RoadTextureMaterialSource},translucent:function(e){return!0}})}var k=i(3),_=i.n(k),x=i(0),S=i.n(x),E=function(){return h()((function e(t,i){c()(this,e),this.dom=t,this.playerUrl=i.url,this.init()}),[{key:"init",value:function(){this.flvPlayer=flvjs.createPlayer({type:"flv",url:this.playerUrl,isLive:!0,hasAudio:!1,hasVideo:!0},{enableWorker:!0,enableStashBuffer:!1,stashInitialSize:128}),this.flvPlayer.attachMediaElement(this.dom),this.flvPlayer.load()}},{key:"on",value:function(e,t,i){this.flvPlayer.on(flvjs[e][t],i)}},{key:"destroy",value:function(){this.flvPlayer.destroy(),this.flvPlayer=null}}])}(),O=function(){return h()((function e(t,i){c()(this,e),this.dom=t,this.url=i.url,this.init()}),[{key:"init",value:function(){this.player=new Jessibuca({container:this.dom,decoder:this.getSourceRootPath()+"/3rdparty/jessibuca/decoder.js",timeout:30,heartTimeout:30,heartTimeoutReplay:!1,loadingTimeout:30,loadingTimeoutReplay:!1,wasmDecodeErrorReplay:!1,videoBuffer:.2,isResize:!1,text:"",loadingText:"",useMSE:!1,debug:!0,showBandwidth:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,recorder:!1},forceNoOffscreen:!1,isNotMute:!1}),this.player.play(this.url)}},{key:"on",value:function(e,t){this.player.on(e,t)}},{key:"destroy",value:function(){this.player.destroy(),this.player=null}},{key:"getSourceRootPath",value:function(){var e=document.querySelectorAll("script"),t="";return e.forEach((function(e){if(e.src&&e.src.indexOf("YJEarth.min.js")>-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}}])}();function D(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function M(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var T=/^[og]\s*(.+)?/,N=/^mtllib /,B=/^usemtl /,j=/^usemap /,A=/\s+/,L={red:1,green:1,blue:1,alpha:1};function I(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var i=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){var i=this._finalize(!1);i&&(i.inherited||i.groupCount<=0)&&this.materials.splice(i.index,1);var n={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==i?i.smooth:this.smooth,groupStart:void 0!==i?i.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(n),n},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var i=this.materials.length-1;i>=0;i--)this.materials[i].groupCount<=0&&this.materials.splice(i,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},i&&i.name&&"function"==typeof i.clone){var n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var i=parseInt(e,10);return 3*(i>=0?i-1:i+t/3)},parseNormalIndex:function(e,t){var i=parseInt(e,10);return 3*(i>=0?i-1:i+t/3)},parseUVIndex:function(e,t){var i=parseInt(e,10);return 2*(i>=0?i-1:i+t/2)},addVertex:function(e,t,i){var n=this.vertices,o=this.object.geometry.vertices;o.push(n[e+0],n[e+1],n[e+2]),o.push(n[t+0],n[t+1],n[t+2]),o.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,i){var n=this.normals,o=this.object.geometry.normals;o.push(n[e+0],n[e+1],n[e+2]),o.push(n[t+0],n[t+1],n[t+2]),o.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(e,t,i){console.warn("addFaceNormal")},addColor:function(e,t,i){var n=this.colors,o=this.object.geometry.colors;void 0!==n[e]&&o.push(n[e+0],n[e+1],n[e+2]),void 0!==n[t]&&o.push(n[t+0],n[t+1],n[t+2]),void 0!==n[i]&&o.push(n[i+0],n[i+1],n[i+2])},addUV:function(e,t,i){var n=this.uvs,o=this.object.geometry.uvs;o.push(n[e+0],n[e+1]),o.push(n[t+0],n[t+1]),o.push(n[i+0],n[i+1])},addDefaultUV:function(){var e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){var t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,i,n,o,s,a,r,l){var c=this.vertices.length,u=this.parseVertexIndex(e,c),h=this.parseVertexIndex(t,c),p=this.parseVertexIndex(i,c);if(this.addVertex(u,h,p),this.addColor(u,h,p),void 0!==a&&""!==a){var d=this.normals.length;u=this.parseNormalIndex(a,d),h=this.parseNormalIndex(r,d),p=this.parseNormalIndex(l,d),this.addNormal(u,h,p)}else this.addFaceNormal(u,h,p);if(void 0!==n&&""!==n){var m=this.uvs.length;u=this.parseUVIndex(n,m),h=this.parseUVIndex(o,m),p=this.parseUVIndex(s,m),this.addUV(u,h,p),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,i=0,n=e.length;i=7?(Cesium.Color.fromBytes(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),1,L),n.colors.push(L.red,L.green,L.blue)):n.colors.push(void 0,void 0,void 0);break;case"vn":n.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":n.uvs.push(parseFloat(u[1]),parseFloat(u[2]))}}else if("f"===c){for(var h=l.slice(1).trim().split(A),p=[],d=0,m=h.length;d0){var v=f.split("/");p.push(v)}}for(var g=p[0],y=1,b=p.length-1;y1){var D=s[1].trim().toLowerCase();n.object.smooth="0"!==D&&"off"!==D}else n.object.smooth=!0;var M=n.object.currentMaterial();M&&(M.smooth=n.object.smooth)}else{if("\0"===l)continue;console.warn('Unexpected line: "'+l+'"')}}}n.finalize();var R=new V(this.context,this.hls,this.videoId,this.host,i);if(!0===!(1===n.objects.length&&0===n.objects[0].geometry.vertices.length))for(var H=0,G=n.objects.length;H0&&(p=!0),i.colors.length>0&&(d=!0),!0===i.hasUVIndices&&(m=!0),p&&(l+="attribute vec3 normal;\n",l+="varying vec3 v_normal;\n",u+="varying vec3 v_normal;\n",h+="v_normal = normal;\n"),d&&(l+="attribute vec3 color;\n",l+="varying vec2 v_color;\n",u+="varying vec2 v_color;\n",h+="v_color = color;\n"),m&&(l+="attribute vec2 uv;\n",l+="varying vec2 v_uv;\n",u+="varying vec2 v_uv;\n",h+="v_uv = uv;\n"),l+="\n void main() {\n gl_Position = czm_modelViewProjection * vec4(position, 1.);\n ".concat(h,"\n }\n "),u+="\n\t\tuniform sampler2D colorTexture;\n void main() {\n\t\t\t vec4 color = texture2D(colorTexture, v_uv);\n\t\t\t\t\t\tgl_FragColor = color;\n }\n ",this.program=Cesium.ShaderProgram.fromCache({context:t,vertexShaderSource:l,fragmentShaderSource:u}),this.uniformMap={};var f=this;r.then((function(e){for(var t=function(){var t=e[i].diffusemap;s.uniformMap.colorTexture=function(){return t}},i=0;i0){o++;var a=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.normals),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:a,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(i.colors.length>0){o++;var r=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.colors),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:r,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(!0===i.hasUVIndices){o++;var l=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.uvs),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:l,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1})}var u=new Cesium.VertexArray({context:t,attributes:n}),h=Cesium.RenderState.fromCache({cull:{enabled:!1},depthMask:!0,depthTest:{enabled:!0}});this.drawCommand=new Cesium.DrawCommand({owner:this,primitiveType:Cesium.PrimitiveType.TRIANGLES,vertexArray:u,renderState:h,pass:Cesium.Pass.OPAQUE})}),[{key:"setMaterial",value:function(e){this.material=e,e.setCommand(this.drawCommand)}},{key:"update",value:function(e){Cesium.defined(this.material)&&this.material.ready&&e.commandList.push(this.drawCommand)}},{key:"updateVideo",value:function(e,t,i){var n=!1;if(Cesium.defined(this.material)&&this.material.ready)if(i.computeVisibility(this.drawCommand.boundingVolume)>=0&&this.material.ready){var o=e.distanceToBoundingSphere(this.drawCommand.boundingVolume),s=t.width,a=t.height;o>=20&&o<100?(s=t.width/2,a=t.height/2):o>=100&&(s=t.width/10,a=t.height/10),n=!0,this.material.updateColorTexture(t,Math.floor(s),Math.floor(a))}else n=!1;this.lastState=n}}])}(),H=new WeakMap,V=function(){return h()((function e(t,i,n,o,s){c()(this,e),D(this,H,!0),this.context=t,this.videoId=n,this.host=o,this._modelMatrix=Cesium.Matrix4.IDENTITY,this.parent=null,this.children=[],this.video={dom:null,playing:!1,timeupdate:!1,width:0,height:0,tracks:null},this.time=0,this.name=s}),[{key:"show",get:function(){return t=this,(e=H).get(M(e,t));var e,t},set:function(e){var t,i,n;"boolean"==typeof e?(i=this,n=e,(t=H).set(M(t,i),n),e?this.video.player&&this.video.player.getVueInstance().play():this.video.player&&this.video.player.getVueInstance().pause()):console.error("参数必须为boolean")}},{key:"requestVideoResource",value:function(){var e=this,t="",i=(t=this.host.endsWith("yjearth4.0")?this.host:this.host+"/yjearth4.0")+"/videoFusion/"+this.videoId;return fetch(i,{method:"get",headers:{"Content-Type":"application/json"}}).then(function(){var i=_()(S.a.mark((function i(n){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:if(o=i.sent,o=JSON.parse(o),![0,200].includes(o.code)){i.next=13;break}if(!o.data.deviceCode.length){i.next=9;break}return i.abrupt("return",fetch(t+"/videoFusion/vide/stream",{method:"post",body:JSON.stringify({type:"flv",deviceCode:o.data.deviceCode}),headers:{"Content-Type":"application/json"}}).then(function(){var t=_()(S.a.mark((function t(i){var n;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.text();case 2:if(n=t.sent,n=JSON.parse(n),![0,200].includes(n.code)){t.next=9;break}return n.data.url.length?(e.video.player.url=n.data.url,e.setFlvVideo(n.data.url)):console.warn("地址不存在"),t.abrupt("return");case 9:return console.warn(n.msg||n.message),t.abrupt("return");case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 9:console.warn("设备不存在");case 10:return i.abrupt("return");case 13:return console.warn(o.msg||o.message),i.abrupt("return");case 15:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())}},{key:"modelMatrix",get:function(){return this._modelMatrix},set:function(e){this._modelMatrix=e.clone(),this.updateModelMatrix()}},{key:"updateModelMatrix",value:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};c()(this,e);var n,o,s,a,r,l=this,u={el:i.el,size:"mini",isLog:!1,disabled:i.disabled||!1,alpha:!1,clickDefineColor:p,hasClear:!0,openPickerAni:"opacity",defaultColor:i.defaultColor,pickerInputChange:g,startMainCallback:function(e){l.colorPicker&&(l.colorPicker.picker.style.opacity=0),setTimeout((function(){h()}),0)}};function h(){if(l.colorPicker&&l.colorPicker.picker){var e=!1,t=l.colorPicker.box,c=l.colorPicker.picker,u=t.getBoundingClientRect().x,h=t.getBoundingClientRect().y,f=0;c.style.left=u+"px",c.style.minWidth="325px";var y=c.getElementsByClassName("ew-alpha-slider-bar")[0];y&&(y.parentNode.style.width="16px",y.parentNode.removeChild(y));var b=document.createElement("div");b.className="icon-pen-box",b.innerHTML='',b.style.display="none",b.style.cursor="unset";var C=l.colorPicker.pickerInput;C.parentNode.insertBefore(b,C),C.style.width="188px",C.style.display="none";var w=document.createElement("div"),k=document.createElement("div");k.className="row",k.style.margin="6px 0 0 0",k.innerHTML='\n
R
\n
G
\n
B
\n
\n ';var _=document.createElement("div");_.className="row",_.innerHTML='\n
\n \n
\n
\n \n
\n
\n \n
\n ',w.appendChild(k),w.appendChild(_);var x=_.getElementsByTagName("input");x[0].style.width="72px",x[1].style.width="72px",x[2].style.width="72px",n=x[0],o=x[1],s=x[2];var S=c.getElementsByClassName("ew-color-dropbtns")[0];if(c.insertBefore(w,S),n.addEventListener("blur",(function(e){var t=e.target.value;(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tNumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tNumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tR\n
G
\n
B
\n
A
\n
\n ',_.appendChild(E),a.addEventListener("blur",(function(e){var t=e.target.value;(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t',B.className="yj-pre-collect-color add";var j=document.createElement("div");j.innerHTML='',j.className="yj-pre-collect-color subtract";var A=j.getElementsByClassName("icon-minus")[0],L=j.getElementsByClassName("icon-confirm")[0];N.appendChild(B),N.appendChild(j);var I=[],R=function(e){var t=document.createElement("div");t.className="yj-pre-collect-color",t.setAttribute("tabindex","0"),t.setAttribute("color-box-id",l.colorPicker.uid);var i=document.createElement("div");i.className="yj-pre-define-color-item",t.appendChild(i),i.className="yj-pre-define-color-item";var n=Cesium.Color.fromCssColorString(D[e]).toCssHexString();i.style.backgroundColor=n,i.addEventListener("click",(function(e){l.colorPicker.updateColor(e),t.className="yj-pre-collect-color yj-pre-collect-color-active",p(n)})),t.addEventListener("blur",(function(e){t.className="yj-pre-collect-color"}));var o=document.createElement("div");o.className="yj-pre-define-color-item subtract-btn",o.innerHTML='',o.style.display="none",t.appendChild(o),N.appendChild(t),o.addEventListener("click",(function(){delete D[e],localStorage.setItem("custom-color",JSON.stringify(D)),N.removeChild(t)})),I.push(o)};for(var z in D)R(z);B.addEventListener("click",(function(){if(e){e=!1;for(var t=0;twindow.innerHeight?c.style.top=h-f+"px":c.style.top=h+t.offsetHeight+4+"px",l.colorPicker.pancelTop=parseFloat(c.style.top)-2,g(Cesium.Color.fromCssColorString(l.colorPicker.config.defaultColor||"#ffffff").toCssHexString())}}function p(e){if(a){var t=Cesium.Color.fromCssColorString(e);a.value=parseInt(100*Number(t.alpha.toFixed(2)))/100}}function d(e){var t,i,n,o=e.a,s=Math.round(e.h),a=Math.round(255*e.s/100),r=Math.round(255*e.b/100);if(0===a)t=i=n=r;else{var l=(255-a)*r/255,c=s%60*(r-l)/60;360===s?(t=r,i=n=0):s<60?(t=r,i=l+c,n=l):s<120?(t=r-c,i=r,n=l):s<180?(t=l,i=r,n=l+c):s<240?(t=l,i=r-c,n=r):s<300?(t=l+c,i=l,n=r):s<360?(t=r,i=l,n=r-c):t=i=n=0}return"rgba("+Math.round(t)+","+Math.round(i)+","+Math.round(n)+","+o+")"}function m(e){var t={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};if(/rgba?/.test(e)){var i=e.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n="";return i[3],i.map((function(e,i){i<=2&&(n+=function(e){e=Math.min(Math.round(e),255);var i=Math.floor(e/16),n=e%16;return""+(t[i]||i)+(t[n]||n)}(e))})),"#"+n}}function f(e,t){var i=e.toLowerCase(),n=e.length,o=[];i=Cesium.Color.fromCssColorString(i).toCssHexString().substring(0,7);if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(i)){if(4===n){for(var s="#",a=1;a9e6&&(e=9e6),e<4e5?(this.entity.billboard.show=!0,this.entity.rectangle.show=!1):(this.entity.billboard.show=!1,this.entity.rectangle.show=!0),ne=new Cesium.Rectangle(Cesium.Math.toRadians(t.lng-e/12e4),Cesium.Math.toRadians(t.lat-e/28e4),Cesium.Math.toRadians(t.lng+e/12e4),Cesium.Math.toRadians(t.lat+e/28e4))}}function le(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ce(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ce(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),pe(this,ve,void 0),pe(this,ge,void 0),pe(this,ye,void 0),this.div_id=t,this.entityMap=new Map,this._entityZIndex=0,this.viewer=null,this.options=he({},i),Object(X.A)(Object(X.n)()),this.proj=new Y.a,this.clickTextDom=void 0,this.isLeftClick=!1,this.init(),U()}),[{key:"addIncetance",value:function(e,t){this.entityMap.set(e+"",t)}},{key:"getIncetance",value:function(e){return this.entityMap.get(e+"")}},{key:"removeIncetance",value:function(e){this.entityMap.delete(e),Object(q.m)(this,e),Object(q.n)(this,e),Object(q.o)(this,e),Object(Z.g)(this,e)}},{key:"setDefaultView",value:function(e){e?(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:e.destination||{},orientation:e.orientation||{}},Object(X.f)(this),Object(X.g)(this),this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e.destination.lng,e.destination.lat,e.destination.alt),orientation:{heading:Cesium.Math.toRadians(e.orientation.heading||0),pitch:Cesium.Math.toRadians(e.orientation.pitch||0),roll:Cesium.Math.toRadians(e.orientation.roll||0)},duration:0})):(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2),this.viewer.camera.setView({destination:Cesium.Camera.DEFAULT_VIEW_RECTANGLE}))}},{key:"init",value:function(){var e=this,t=new Cesium.Ellipsoid(6378137,6378137,6356752.314140356),i=new Cesium.GeographicProjection(t),n=this;this.options={imageryProvider:new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),baseLayerPicker:!1,geocoder:!1,animation:!1,fullscreenButton:!1,navigationHelpButton:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,shouldAnimate:!0,mapProjection:i},Number(Cesium.VERSION.split(".")[1])>=107?this.options.baseLayer=Cesium.ImageryLayer.fromProviderAsync(Cesium.TileMapServiceImageryProvider.fromUrl(Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"))):this.options.imageryProvider=new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),this.options.contextOptions={webgl:{depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0},requestWebgl2:!0},Cesium.RequestScheduler.maximumRequests=500,this.viewer=new Cesium.Viewer(this.div_id,this.options),this.viewer.scene.imageryLayers._layers[0].notes="default-base-map",this.viewer._shadows=this.viewer.shadows,this.viewer._container.style.display="flex",this.viewer.scene.screenSpaceCameraController.maximumZoomDistance=5e7,this.viewer.scene.globe.translucency.enabled=!0;var o=new b.a;this.viewer.scene.skyBox=new Cesium.SkyBox({sources:{negativeX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mx.jpg",negativeY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_my.jpg",negativeZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mz.jpg",positiveX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_px.jpg",positiveY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_py.jpg",positiveZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_pz.jpg"}}),w();for(var a=[{name:"思源黑体",value:"SourceHanSansTi",url:o.getSourceRootPath()+"/custom/fonts/SourceHanSansCN-Medium.otf",format:"opentype"},{name:"庞门正道标题体",value:"PMZDBTTi",url:o.getSourceRootPath()+"/custom/fonts/PangMenZhengDaoBiaoTiTi-1.ttf",format:"truetype"},{name:"数黑体",value:"AlimamaShuHeiTi",url:o.getSourceRootPath()+"/custom/fonts/AlimamaShuHeiTi-Bold.ttf",format:"truetype"}],r=0;r-1;i--){var o=h(t[i].style.left),s=h(t[i].style.top),a=1*t[i].clientWidth,r=1*t[i].clientHeight,l=e.position.x,c=e.position.y;if(l>o&&ls&&c1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.primitives={building:[],unit:[],dth:[]},this.options=ke({},i),this.options.host=this.options.host||Object(n.a)(),this.temporaryDth=[],this.dth={},this.PickBuildingEvent=new Cesium.Event,this.initEvents(),this.activeBuilding}),[{key:"PickCallback",value:function(e,t){this.PickBuildingEvent.addEventListener(t,e)}},{key:"initEvents",value:function(){var e=this;new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(t){if(!YJ.Measure.GetMeasureStatus()&&e.isActivate){var i=e.sdk.viewer.scene.pick(t.position);if(i){if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"==i.id.type||"yj-dth-highlight"==i.id.type))return void e.getIDBypickFeature(i);if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"==i.id.type)return e.highlightPrimitive&&e.sdk.viewer.scene.primitives.remove(e.highlightPrimitive),void e.handlePickEvent(i.id)}e.highlightPrimitive&&e.sdk.viewer.scene.primitives.remove(e.highlightPrimitive);var n=e.sdk.viewer.scene.pickPosition(t.position);if(n){var o=Cesium.Cartographic.fromCartesian(n),s=[Cesium.Math.toDegrees(o.longitude),Cesium.Math.toDegrees(o.latitude)];e.queryByPoint(s,o.height)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK);var t=this.sdk.viewer.entities.getOrCreateEntity("yj-dth-cover-label");t.show=!1;var i,n=0,o=this;function s(e){var i=o.sdk.viewer.scene.pick(e.endPosition);if(i){var n="";if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"===i.id.type||"yj-dth-highlight"===i.id.type))n=i.id.build_info.name+" - "+i.id.unit_info.name+" - "+i.id.room_num;else if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"===i.id.type)i.id.build_info.name&&(n=i.id.build_info.name+" - "+i.id.name);else{if(!(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-build"===i.id.type))return i.primitive&&i.primitive.id&&i.primitive.id.id&&"yj-dth-cover-label"===i.primitive.id.id?void(t.position=o.sdk.viewer.scene.pickPosition(e.endPosition)):void(t.show=!1);i.id.name&&(n=i.id.name)}n&&(t.position=o.sdk.viewer.scene.pickPosition(e.endPosition),t.label=new Cesium.LabelGraphics({text:n,font:"20px Helvetica",pixelOffset:{x:0,y:-30},fillColor:Cesium.Color.fromCssColorString("#ffffff"),outlineColor:Cesium.Color.BLACK,outlineWidth:1,showBackground:!0,backgroundColor:Cesium.Color.fromCssColorString("#000000").withAlpha(.8),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY}),t.show=!0)}}new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(e){if(!YJ.Measure.GetMeasureStatus())try{var t=Date.now();if(t-n<100)return clearTimeout(i),void(i=setTimeout((function(){s(e)}),100));clearTimeout(i),n=t,s(e)}catch(e){}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"queryByUserInfo",value:function(e){this.queryByPoint([e.position.lng,e.position.lat],e.position.alt,e.id)}},{key:"queryByPoint",value:(s=_()(S.a.mark((function e(t){var i,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/dth/build/query_by_point":this.options.host+"/yjearth4.0/api/v1/dth/build/query_by_point",i+="?point="+JSON.stringify({lng:t[0],lat:t[1]}),e.next=5,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 5:if(200!==(o=e.sent).status){e.next=11;break}return e.next=9,o.json();case 9:200===(s=e.sent).code||0===s.code?this.processQueryByPointResults(s.data):window.ELEMENT&&window.ELEMENT.Message({message:s.msg||s.message,type:"warning",duration:1500});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"processQueryByPointResults",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>2&&void 0!==u[2]?u[2]:{heading:0,pitch:-90,roll:0},t.build_info&&this.handlePickEvent(t),this.clearAllDthPrimitive(),this.clearAllUnitPrimitive(),this.activeBuilding&&(this.clearBuildingPrimitive(this.activeBuilding),this.activeBuilding=null),!t.build_info){e.next=26;break}if(o=JSON.parse(t.build_info.range),t.dan_yuan.length>0)for(s=0;s0?this.addDthPrimitive(t.dan_yuan[s].children,t.build_info,t.dan_yuan[s]):this.addUnitPrimitive([t.dan_yuan[s]],t.build_info,t.dan_yuan[s]);else this.activeBuilding=t.build_info.ID||t.build_info.id,this.addBuildingPrimitive([t.build_info]);if(!i){e.next=26;break}if(t.info&&t.info.dan_yuan&&(o=JSON.parse(t.info.dan_yuan.range)),!t.info||!t.info.hu){e.next=25;break}for(o=JSON.parse(t.info.hu.range),a=0;a=0;t--)if(e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.ID||e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.building[t]),this.primitives.building.splice(t,1);break}}},{key:"clearAllBuildingPrimitive",value:function(){for(var e=this.primitives.building.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.building[e]);this.primitives.building=[]}},{key:"addUnitPrimitive",value:(t=_()(S.a.mark((function e(t,i,n){var o,s,a,r,l,c;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=0;o=0;t--)if(e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.ID||e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.unit[t]),this.primitives.unit.splice(t,1);break}}},{key:"clearAllUnitPrimitive",value:function(){for(var e=this.primitives.unit.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.unit[e]);this.primitives.unit=[]}},{key:"addDthPrimitive",value:function(e,t,i){for(var n=0;n=0;t--)e!==this.primitives.dth[t]._primitiveOptions.geometryInstances[0].id.ID&&e!==this.primitives.dth[t]._primitiveOptions.geometryInstances[0].id.id||(this.sdk.viewer.scene.primitives.remove(this.primitives.dth[t]),this.primitives.dth.splice(t,1))}},{key:"clearAllDthPrimitive",value:function(){this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive);for(var e=this.primitives.dth.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.dth[e]);this.primitives.dth=[]}},{key:"getIDBypickFeature",value:function(e){this.clickHighlightPrimitive&&(this.clickHighlightPrimitive.show=!0),this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive),this.highlightPrimitive=this.sdk.viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:new Cesium.GeometryInstance({id:ke(ke({},e.id),{},{type:"yj-dth-highlight"}),geometry:e.primitive._primitiveOptions.geometryInstances[0].geometry,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString("#ff9800").withAlpha(.8)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),this.highlightPrimitive.readyPromise.then((function(){e.primitive.show=!1})),this.clickHighlightPrimitive=e.primitive;var t=e.id.range;"string"==typeof e.id.range&&(t=JSON.parse(e.id.range)),this.getHilightArea(t),this.handlePickEvent(e.id)}},{key:"handlePickEvent",value:function(e){this.PickBuildingEvent.raiseEvent(e)}},{key:"getHilightArea",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];e.forEach((function(e){i.push([e.lng,e.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"flyTo",value:(e=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=c.length>1&&void 0!==c[1]?c[1]:{heading:0,pitch:-90,roll:0},n=new YJ.Tools(this.sdk),o=0,s=[],a=0;case 5:if(!(a更新高程',s.style.width="auto",s.addEventListener("click",(function(){u.options.updateHeightCallBack()})),o.appendChild(s)),this.options.secondaryEditCallBack&&((a=document.createElement("button")).className="secondaryEdit",a.innerHTML='二次编辑',this.options.updateHeightCallBack&&(a.style.marginLeft="10px"),o.appendChild(a),a.addEventListener("click",(function(){u.options.secondaryEditCallBack&&u.options.secondaryEditCallBack()}))),this.options.translationalCallBack&&((r=document.createElement("button")).className="translational",r.innerHTML='平移',(this.options.updateHeightCallBack||this.options.secondaryEditCallBack)&&(r.style.marginLeft="10px"),o.appendChild(r),r.addEventListener("click",(function(){u.options.translationalCallBack&&u.options.translationalCallBack()})))),this.options.addFootElm)for(l=0;l=0;i--)for(var n in this.info.attribute)if(t[i].value===n){this.info.attribute[n].disabled&&(t[i].disabled=!0);break}}}]);var i}(Te.a),je=i(13);function Ae(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Le(e){for(var t=1;t=1e3&&(S="㎞",O=Math.round(O/1e3));var N=x;o.beginPath(),o.moveTo(_,N),o.lineTo(_+f.width,N),o.strokeStyle=f.color,o.lineWidth=.01*f.width,o.stroke();for(var B=0,j=0;j<=f.cell;j++)B=_+j*P,o.beginPath(),o.moveTo(B,N-.1*f.width),o.lineTo(B,N),o.strokeStyle=f.color,o.lineWidth=.01*f.width,o.stroke(),o.font="".concat(E,"px Arial"),o.fillStyle=f.color,o.textAlign="center",o.textBaseline="bottom",o.fillText(j*O,B,N-.1*f.width);o.font="".concat(E,"px Arial"),o.fillStyle=f.color,o.textAlign="left",o.textBaseline="bottom",o.fillText(S,B+1.2*E,N-.1*f.width)}v.show&&l&&l.complete&&(A(o,l,g,g,v.width,"top",1),A(o,l,n.width-v.width-g,g,v.width,"right",1),A(o,l,n.width-v.width-g,n.height-v.width-g,v.width,"bottom",1),A(o,l,g,n.height-v.width-g,v.width,"left",1)),n.toBlob((function(e){var t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download="高清出图-".concat(de(),".png"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}),"image/png",.95),i=!1,F.innerHTML="打印"}function A(e,t,i,o,s,a){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(e.save(),e.translate(i+s/2,o+s/2),a){case"right":e.rotate(Math.PI/2);break;case"bottom":e.rotate(Math.PI);break;case"left":e.rotate(3*Math.PI/2)}e.beginPath(),e.moveTo(-s*r/2,-s/2),"top"===a||"bottom"===a?(e.lineTo(n.width-2*g-s/2,-s/2),e.lineTo(n.width-2*(g+s)+s/2,s/2)):(e.lineTo(n.height-2*g-s/2,-s/2),e.lineTo(n.height-2*(g+s)+s/2,s/2)),e.lineTo(s*r/2,s/2),e.closePath(),e.clip();var l,c=t.width/t.height*s;e.drawImage(t,-s/2,-s/2,c,s),l="top"===a||"bottom"===a?Math.ceil((n.width-2*g-2*v.width)/v.width):Math.ceil((n.height-2*g-2*v.width)/v.width),l++;for(var u=1;u<=l;u++)e.drawImage(t,-s/2+c*u,-s/2,c,s);e.restore()}}},de=function(){var e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),r=String(e.getMilliseconds()).padStart(3,"0");return"".concat(t).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)},pe=function(){if(t.rectangle){var e=Cesium.Math.toDegrees(t.rectangle.west),i=Cesium.Math.toDegrees(t.rectangle.east),n=Cesium.Math.toDegrees(t.rectangle.north),o=(Cesium.Math.toDegrees(t.rectangle.south),turf.point([e,n])),s=turf.point([i,n]),r=turf.distance(o,s,{units:"kilometers"});a=1e3*r/T.width}},he=function(e){var t=c;p.show&&l&&l.complete&&(t+=p.width);var i=.005*D.height;if(M.strokeStyle="red",M.lineWidth=.002*D.height,"text"in e)M.strokeRect(T.width*e.x+t,T.height*e.y+t-T.height*e.height,T.height*e.width,T.height*e.height);else if("url"in e)M.strokeRect(T.width*e.x+t,T.height*e.y+t,T.height*e.width,T.height*e.height);else if(e===m)return void M.strokeRect(T.width*e.x+t-.2*m.width,T.height*e.y+t-e.height-.5*m.height,e.width+.6*m.width,e.height+m.height);var n=le(e,t);M.fillStyle="red",n.forEach((function(e){M.beginPath(),M.arc(e.x,e.y,i,0,2*Math.PI),M.fill()}))},ue=function(e,t,i,n,o,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(e.save(),e.translate(i+o/2,n+o/2),s){case"right":e.rotate(Math.PI/2);break;case"bottom":e.rotate(Math.PI);break;case"left":e.rotate(3*Math.PI/2)}e.beginPath(),e.moveTo(-o*a/2,-o/2),"top"===s||"bottom"===s?(e.lineTo(D.width-2*c-o/2,-o/2),e.lineTo(D.width-2*(c+o)+o/2,o/2)):(e.lineTo(D.height-2*c-o/2,-o/2),e.lineTo(D.height-2*(c+o)+o/2,o/2)),e.lineTo(o*a/2,o/2),e.closePath(),e.clip();var r,l=t.width/t.height*o;e.drawImage(t,-o/2,-o/2,l,o),r="top"===s||"bottom"===s?Math.ceil((D.width-2*c-2*p.width)/p.width):Math.ceil((D.height-2*c-2*p.width)/p.width),r++;for(var u=1;u<=r;u++)e.drawImage(t,-o/2+l*u,-o/2,l,o);e.restore()},ce=function(){if(!r){var e=c;if(p.show&&l&&l.complete&&(e+=p.width),D.width=T.width+2*e,D.height=T.height+2*e,M.clearRect(0,0,D.width,D.height),M.rect(0,0,D.width,D.height),M.fillStyle="#ffffff",M.fill(),M.drawImage(T,e,e,T.width,T.height),h.show){var t=h.text,i=Math.max(5,h.height*T.height*.5);M.font="".concat(i,"px serif"),M.fillStyle=h.bgColor||"#5d5d5d",M.fillRect(e,e,D.width-2*e,h.height*T.height),M.fillStyle=h.color||"white",M.textAlign="center",M.textBaseline="middle",M.fillText(t,D.width/2,h.height*T.height/2+e)}for(var n=function(t){if(d[t].show)if("text"in d[t])M.font="".concat(T.height*d[t].height,"px serif"),M.fillStyle=d[t].color||"white",M.textAlign="left",M.textBaseline="bottom",d[t].width=M.measureText(d[t].text).width/T.height,M.fillText(d[t].text,T.width*d[t].x+e,T.height*d[t].y+e),d[t].isSelected&&he(d[t]);else if("url"in d[t])if(d[t].svg&&d[t].svg.complete)M.drawImage(d[t].svg,T.width*d[t].x+e,T.height*d[t].y+e,T.height*d[t].width,T.height*d[t].height),d[t].isSelected&&he(d[t]);else{var i=new Image;i.src=Ie.getSourceRootPath()+d[t].url,i.onload=function(){d[t].svg=i,M.drawImage(i,T.width*d[t].x+e,T.height*d[t].y+e,T.height*d[t].width,T.height*d[t].height),d[t].isSelected&&he(d[t])}}},o=0;o=1e3&&(v="㎞",b=Math.round(b/1e3));var k=f;M.beginPath(),M.moveTo(u,k),M.lineTo(u+m.width,k),M.strokeStyle=m.color,M.lineWidth=.01*m.width,M.stroke();for(var _=0,x=0;x<=m.cell;x++)_=u+x*y,M.beginPath(),M.moveTo(_,k-.1*m.width),M.lineTo(_,k),M.strokeStyle=m.color,M.lineWidth=.01*m.width,M.stroke(),M.font="".concat(g,"px Arial"),M.fillStyle=m.color,M.textAlign="center",M.textBaseline="bottom",M.fillText(x*b,_,k-.1*m.width);M.font="".concat(g,"px Arial"),M.fillStyle=m.color,M.textAlign="left",M.textBaseline="bottom",M.fillText(v,_+1.2*g,k-.1*m.width),m.isSelected&&he(m)}p.show&&l&&l.complete&&(ue(M,l,c,c,p.width,"top",1),ue(M,l,D.width-p.width-c,c,p.width,"right",1),ue(M,l,D.width-p.width-c,D.height-p.width-c,p.width,"bottom",1),ue(M,l,c,D.height-p.width-c,p.width,"left",1))}},le=function(e,t){var i=e.x*T.width+t,n=e.y*T.height+t,o=e.width*T.height,s=e.height*T.height;return"text"in e?[{x:i,y:n-s},{x:i+o,y:n-s},{x:i,y:n},{x:i+o,y:n}]:[{x:i,y:n},{x:i+o,y:n},{x:i,y:n+s},{x:i+o,y:n+s}]},re=function(e){var t,i=D.getBoundingClientRect(),n=i.width,o=i.height,s=D.width,a=D.height,r=(n-s*(t=s/a>n/o?n/s:o/a))/2;return(e.clientX-i.left-r)/t},ae=function(e){var t,i=D.getBoundingClientRect(),n=i.width,o=i.height,s=D.width,a=D.height,r=(o-a*(t=s/a>n/o?n/s:o/a))/2;return(e.clientY-i.top-r)/t},W=function(e){var t,i;p.color=e||"#000000",new YJColorPicker({el:v.getElementsByClassName("border-color")[0],size:"mini",alpha:!1,defaultColor:p.color,disabled:!1,openPickerAni:"opacity",sure:function(e){W(e)},clear:function(){W("rgba(0,0,0,1)")}}),t=e?u.replace(/fill="[^"]+"/g,'fill="'.concat(e,'"')):u,i="data:image/svg+xml;base64,"+btoa(Array.from((new TextEncoder).encode(t),(function(e){return String.fromCharCode(e)})).join("")),(l=new Image).setAttribute("crossOrigin","anonymous"),l.src=i,l.onload=function(){p.show&&ce()}},G=function(e){p.url=e,p.url&&((l=new Image).setAttribute("crossOrigin","anonymous"),p.url.endsWith("svg")?fetch(Ie.getSourceRootPath()+p.url).then(function(){var e=_()(S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=5;break}return e.next=3,t.text();case 3:u=e.sent,W(p.color);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):(l.src=Ie.getSourceRootPath()+p.url,l.onload=function(){p.show&&ce()}))},V=function(e){s=e,n=[{name:"模板一",value:"模板一",id:"1",margin:.03,title:{text:"标题一",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},border:{show:!1,url:"/custom/img/map-border1.svg",width:.01,color:""},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.87,y:.97},data:[{text:"",x:.02,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.02,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.02,y:.1,show:!1,isSelected:!1,url:"/custom/img/icon-compass1.svg",width:.1,height:.1}]},{name:"模板二",value:"模板二",id:"2",margin:.03,border:{show:!0,url:"/custom/img/map-border2.svg",width:.01},title:{text:"标题二",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.02,y:.97},data:[{text:"",x:.88,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.87,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.91,y:.1,show:!0,isSelected:!1,url:"/custom/img/icon-compass4.svg",width:.1,height:.1}]}];for(var i=0;i\n
\n
图件信息
\n
\n
\n 模板\n
\n
\n
\n
\n
\n 标题\n \n \n
\n
\n
\n
\n 制图日期\n \n \n
\n
\n
\n
\n 制图单位\n \n \n
\n
\n
\n
\n 图框\n
\n
\n \n
\n
\n
\n
\n
地图要素
\n
\n
\n 指北针\n \n
\n
\n '.concat(function(){for(var e="",t=0;t\n \n \n
')}return e}(),'\n
\n
\n
\n
\n
\n
\n 比例尺\n \n
\n
\n \n \n
\n
\n\n
\n
\n '),o.contentAppChild(v),g=v.getElementsByClassName("left")[0],y=v.getElementsByClassName("right")[0],b=g.getElementsByClassName("title-input")[0],C=g.getElementsByClassName("title-checkbox")[0],w=g.getElementsByClassName("unit-input")[0],k=g.getElementsByClassName("unit-checkbox")[0],x=g.getElementsByClassName("compass-checkbox")[0],E=g.getElementsByClassName("compass-radio"),P=g.getElementsByClassName("plotting-scale-checkbox")[0],O=g.getElementsByClassName("map-border-checkbox")[0],D=document.createElement("canvas"),M=D.getContext("2d"),y.appendChild(D),(T=new Image).src=this.thumbnailImg,T.onload=function(){r=!1,pe(),V(s)},b.value=h.text,C.checked=h.show,b.addEventListener("input",(function(){h.text=this.value,T.complete&&ce()})),C.addEventListener("change",(function(){h.show=this.checked,T.complete&&ce()})),w.value=d[1].text,k.checked=d[1].show,w.addEventListener("input",(function(){d[1].text=this.value,T&&T.complete&&ce()})),k.addEventListener("change",(function(){d[1].show=this.checked,T&&T.complete&&ce()})),x.checked=d[2].show,x.addEventListener("change",(function(){d[2].show=this.checked,T&&T.complete&&ce()})),N=S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:E[t].addEventListener("change",(function(){this.checked&&(d[2].svg=null,d[2].url=f[t],T&&T.complete&&ce())}));case 1:case"end":return e.stop()}}),e)})),B=0;case 60:if(!(B打印',me())}));var e=v.getElementsByClassName("print-date")[0];(A=v.getElementsByClassName("print-date-checkbox")[0]).checked=d[0].show,A.addEventListener("change",(function(){d[0].show=this.checked,T.complete&&ce()})),j=jeDate(e,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(e){d[0].text=e.val,T.complete&&ce()}}),d[0].text?j.setValue(d[0].text):(j.nowBtn&&j.nowBtn(),d[0].text=j.getValue(),ce());var t=Object(je.a)(o._element.content.getElementsByClassName("template-box")[0],".template");if(t){t.legp_search(n);for(var a=o._element.content.getElementsByClassName("template")[0].getElementsByTagName("input")[0],r=0;r'),value:"/custom/img/map-border1.svg",key:0},{name:''),value:"/custom/img/map-border2.svg",key:1},{name:''),value:"/custom/img/map-border3.svg",key:2},{name:''),value:"/custom/img/map-border4.svg",key:3},{name:''),value:"/custom/img/map-border5.svg",key:4},{name:''),value:"/custom/img/map-border6.svg",key:5}];if(I=Object(je.a)(o._element.content.getElementsByClassName("map-border-box")[0],".map-border")){I.legp_search(l),(R=document.createElement("span")).className="icon icon-active",R.style.width="calc(100% - 40px)",R.style.height="calc(100% - 12px)",R.style.position="absolute",R.style.top="6px",R.style.left="10px",R.style.pointerEvents="none",R.style.backgroundImage="url(".concat(Ie.getSourceRootPath()+p.url,")"),R.style.backgroundSize="auto 100%",R.style.backgroundRepeat="repeat-x",o._element.content.getElementsByClassName("map-border")[0].getElementsByClassName("cy_datalist")[0].appendChild(R),(L=o._element.content.getElementsByClassName("map-border")[0].getElementsByTagName("input")[0]).style.fontSize=0,L.style.color="transparent";for(var c=0;c=h.height*T.height+n-Y&&i<=h.height*T.height+n+Y){U=!0;for(var o=0;o=e.x-s&&t<=e.x+s&&i>=e.y-s&&i<=e.y+s&&(X=!0,q=!1,Z=n,K=t,Q=i,ne=J.width*T.height,oe=J.height*T.height,"text"in J&&(ne=J.width*T.height,se=J.height))}))}if(!X){for(var a=0;a=0;r--)if(d[r].show){if("text"in d[r]&&t>=T.width*d[r].x+n&&t<=T.width*d[r].x+n+T.height*d[r].width&&i>=T.height*d[r].y+n-T.height*d[r].height&&i<=T.height*d[r].y+n){J=d[r],d[r].isSelected=!0,q=!0,K=t,Q=i,$=T.height*d[r].y-T.height*d[r].height,ee=T.width*d[r].x+T.height*d[r].width,te=T.width*d[r].x+n,ie=T.height*d[r].y+n,ce();break}if("url"in d[r]&&d[r].svg&&d[r].svg.complete&&d[r].show&&t>=T.width*d[r].x+n&&t<=T.width*d[r].x+n+T.height*d[r].width&&i>=T.height*d[r].y+n&&i<=T.height*d[r].y+n+T.height*d[r].height){J=d[r],d[r].isSelected=!0,q=!0,K=t,Q=i,$=T.height*d[r].y+T.height*d[r].height,ee=T.width*d[r].x+T.height*d[r].width,te=T.width*d[r].x+n,ie=T.height*d[r].y+n,ce();break}}m.show&&t>=T.width*m.x+n-.2*m.width&&t<=T.width*m.x+n-.2*m.width+m.width+.6*m.width&&i>=T.height*m.y+n-m.height-.5*m.height&&i<=T.height*m.y+n-.5*m.height+m.height&&(J=m,m.isSelected=!0,q=!0,K=t,Q=i,$=T.height*m.y+n+m.height,ee=T.width*m.x+n+m.width,te=T.width*m.x+n,ie=T.height*m.y+n,ce()),J||ce()}})),D.addEventListener("mousemove",(function(e){var t=c;p.show&&l&&l.complete&&(t+=p.width);var i=re(e),n=ae(e);if(!(i<0||n<0||i>D.width||n>D.height)){if(h.show){var o=c;p.show&&l&&l.complete&&(o+=p.width),n>=h.height*T.height+o-Y&&n<=h.height*T.height+o+Y?D.style.cursor="n-resize":D.style.cursor="default",U&&(h.height=Math.min(Math.max(n-o,30)/T.height,1),ce())}if(q){var s=i-K,a=n-Q;J.x=(te+s-t)/T.width,J.y=(ie+a-t)/T.height,ce()}if(X){var r,u=i-K,d=n-Q;switch(Z){case 0:"text"in J?(r=(ne-u)/ne,J.height=Math.max(10/T.height,se*r),J.x=(ee-J.width*T.height)/T.width):"url"in J&&(J.x=(ee-J.width*T.height)/T.width,J.y=($-J.height*T.height)/T.height,J.width=Math.max(10,ne-u)/T.height,J.height=Math.max(10,oe-d)/T.height);break;case 1:"text"in J?(r=(ne+u)/ne,J.height=Math.max(10/T.height,se*r)):"url"in J&&(J.width=Math.max(10,ne+u)/T.height,J.height=Math.max(10,oe-d)/T.height,J.y=($-J.height*T.height)/T.height);break;case 2:"text"in J?(r=(ne-u)/ne,J.height=Math.max(10/T.height,se*r),J.x=(ee-J.width*T.height)/T.width,J.y=($+J.height*T.height)/T.height):"url"in J&&(J.x=(ee-J.width*T.height)/T.width,J.width=Math.max(10,ne-u)/T.height,J.height=Math.max(10,oe+d)/T.height);break;case 3:"text"in J?(r=(ne+u)/ne,J.height=Math.max(10/T.height,se*r),J.y=($+J.height*T.height)/T.height):"url"in J&&(J.width=Math.max(10,ne+u)/T.height,J.height=Math.max(10,oe+d)/T.height)}ce()}}})),document.addEventListener("mouseup",(function(){U=!1,p.show&&l&&l.complete&&p.width;for(var e=0;e1&&void 0!==o[1]?o[1]:function(){},n=t.viewer.canvas.toDataURL(),i&&i(n);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(){return(Ve=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,u,p,d,m,f=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!(f.length>1&&void 0!==f[1])||f[1],n=f.length>2?f[2]:void 0,o=f.length>3&&void 0!==f[3]?f[3]:function(){},t){e.next=5;break}return e.abrupt("return");case 5:if(i){e.next=8;break}return Fe&&(Fe.desist(),Fe=null),e.abrupt("return");case 8:for(Object(Z.b)(t),Object(J.d)(t),ze&&(ze.close(),ze=null),t.viewer.scene.screenSpaceCameraController.enableTranslate,t.viewer.scene.screenSpaceCameraController.enableTilt,t.viewer.scene.screenSpaceCameraController.enableLook,s=1*n.scaleV,r=new b.a,t.viewer.scene.screenSpaceCameraController.enableTranslate=!1,t.viewer.scene.screenSpaceCameraController.enableTilt=!1,t.viewer.scene.screenSpaceCameraController.enableLook=!1,t.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="none",(l=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/2)))||(l=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/(2-(90+t.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(l=t.viewer.camera.position),u=r.cartesian3Towgs84(t.viewer.camera.position,t.viewer).alt,p=r.cartesian3Towgs84(l,t.viewer),t.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(p.lng,p.lat,u),orientation:{heading:0,pitch:Cesium.Math.toRadians(-90),roll:0},duration:1}),d=[],m=1;m<=10;m++)d.push({name:m,value:m});Fe=new(function(){return h()((function e(){c()(this,e),this.state=!1,this.start()}),[{key:"start",value:function(){if(t.viewer.scene.imageryLayers._layers.length<=1)return this.error="未加载底图!",r.message({type:"warning",text:this.error}),void console.warn(this.error);for(var e=!1,i=0;iC.maximumLevel&&(d=C.maximumLevel),d=f;J--)for(var q=w;q>=p;q--)Y.push({x:q,y:J});var X={count:0},Z=0,K=-1,Q={count:0},$=0;function ee(){Q.count=0,$=0;for(var e=30*++K;e<30*(K+1);e++){if(e>=Y.length)return;te(e)}}function te(e){if(u.state)try{var t=Y[e].x;t<0&&(t+=h);var i,n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=_()(S.a.mark((function t(){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O.drawImage(n,256*(Y[e].x-p)-parseFloat(H.toFixed(0)),256*(Y[e].y-f)-parseFloat(V.toFixed(0)),256,256),m++,X.count++,Q.count++;case 4:case"end":return t.stop()}}),t)}))),n.onerror=function(){m++,X.count++,Q.count++},i=-1!==C.url.indexOf("{x}")&&-1!==C.url.indexOf("{y}")&&-1!==C.url.indexOf("{z}")?C.url.replace(/\{x\}/g,t).replace(/\{y\}/g,Y[e].y).replace(/\{z\}/g,d):-1!==C.url.indexOf("{TileMatrix}")&&-1!==C.url.indexOf("{TileRow}")&&-1!==C.url.indexOf("{TileCol}")?C.url.replace(/\{TileCol\}/g,t).replace(/\{TileRow\}/g,Y[e].y).replace(/\{TileMatrix\}/g,d):C._layer&&C._style&&C._tileMatrixSetID&&C._format?C.url+"&tilematrix=".concat(d,"&layer=").concat(C._layer,"&style=").concat(C._style,"&tilerow=").concat(U,"&tilecol=").concat(t,"&tilematrixset=").concat(C._tileMatrixSetID,"&format=").concat(C._format):C.url+"tile/".concat(d,"/").concat(Y[e].y,"/").concat(t),n.src=i}catch(e){m++,X.count++,Q.count++}}Object.defineProperty(Q,"count",{get:function(){return $},set:function(e){($=e)>=30&&ee()}}),Object.defineProperty(X,"count",{get:function(){return Z},set:function(a){Z=a,g[i].value=m/E*k;var r=0;for(var c in g)r+=g[c].value;if(o({width:.99*r,left:.99*r,value:Math.floor(.99*r*100)/100}),Z===(w-p+1)*(x-f+1)){var h=P.getContext("2d"),d=P.cloneNode(!0),C=d.getContext("2d"),_=h.getImageData(0,0,P.width,P.height);if(C.putImageData(_,0,0),P.width=t.viewer.canvas.width*s,P.height=t.viewer.canvas.height*s,h.drawImage(d,0,0,P.width,P.height),l){if(l.getContext("2d").drawImage(P,0,0),b!=y){var S=i+=1;return void e(S,l)}var O=l.toDataURL("image/jpeg",.95),D=document.createElement("canvas"),M=D.getContext("2d");D.width=l.width/s,D.height=l.height/s,M.drawImage(l,0,0,D.width,D.height),new Re(t,D.toDataURL("image/jpeg",.95),v,O,n.modify),o({value:100}),u.state=!1}else{if(b!=y){var T=i+=1;return void e(T,P)}var N=P.toDataURL("image/jpeg",.95),B=document.createElement("canvas"),j=B.getContext("2d");B.width=P.width/s,B.height=P.height/s,j.drawImage(P,0,0,B.width,B.height),new Re(t,B.toDataURL("image/jpeg",.95),v,N,n.modify),o({value:100}),u.state=!1}}}}),C._readyError?X.count=(w-p+1)*(x-f+1):ee()}if(C._readyError)return g[i]={value:k},void w();C.readyPromise.then((function(){w()})).catch((function(e){C._readyError=!0,g[i]={value:k},w()}))}(0)}},{key:"desist",value:function(){this.state=!1}}])}());case 29:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ge=i(30),We=i.n(Ge);var Ue=function(){function e(){c()(this,e),this.element={}}return h()(e,[{key:"getEvent",value:function(t){return e.event[t]}},{key:"getEventAll",value:function(){return e.event}},{key:"setEvent",value:function(t,i){e.event[t]=i}},{key:"on",value:function(e,t){}}])}();r()(Ue,"event",{});var Ye=Ue,Je=function(){return h()((function e(t,i,n){var o;c()(this,e);for(var s=(o="string"==typeof t?document.getElementById(t):t).getElementsByTagName("DIV-cy-tab-pane"),a='
',r='
',l=0,u=0;u\n
'+s[u].getAttribute("label")+"
\n
\n ",r=r+'
'+s[u].innerHTML+"
",l++}}a+="
",r+="";var f=document.createElement("div");"string"==typeof t&&f.setAttribute("id",t),f.setAttribute("class","DIV-cy-tabs"),f.innerHTML=a+r,o.parentNode.insertBefore(f,o),o.parentNode.removeChild(o);for(var v=f.getElementsByClassName("DIV-cy-tab-pane-title-p"),g=0;g1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=this;this.title=i,this.objectId=e,document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null;var a='\n
\n
\n
\n

'.concat(i,'

\n \n
\n
\n
\n \n
\n ');this.richTextBox.innerHTML=a,document.body.appendChild(this.richTextBox);var r=window.wangEditor,l=r.createEditor,c=r.createToolbar,u={placeholder:"请输入正文...",MENU_CONF:{uploadImage:{fieldName:"file",server:this.uploadImageServer,customUpload:function(e,t){return _()(S.a.mark((function i(){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(e);case 2:o=i.sent,t((s.host=s.host||Object(n.a)())+"/"+o);case 4:case"end":return i.stop()}}),i)})))()}},uploadVideo:{server:this.uploadVideoServer,allowedFileTypes:["video/mp4","video/mp3","video/ogg","video/webm","video/avi"],customUpload:function(e,t){return _()(S.a.mark((function i(){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(e);case 2:o=i.sent,t((s.host=s.host||Object(n.a)())+"/"+o);case 4:case"end":return i.stop()}}),i)})))()}}},onChange:function(e){e.getHtml()}};this.editor=l({selector:"#editor-container",html:"


",config:u,mode:"default"});var h={excludeKeys:["emotion","insertImage","insertVideo"]};c({editor:this.editor,selector:"#toolbar-container",config:h,mode:"default"});this.editor.on("fullScreen",(function(){console.log("fullScreen")})),this.editor.setHtml(o);var p=this.richTextBox.getElementsByClassName("close")[0],d=this.richTextBox.getElementsByClassName("primary")[0],m=this.richTextBox.getElementsByClassName("cancel")[0];p.addEventListener("click",(function(){t.close()})),d.addEventListener("click",(function(){var e=t.editor.getHtml();t.primaryCallBack(e),t.close()})),m.addEventListener("click",(function(){t.close()}))}},{key:"close",value:function(){document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null}},{key:"upload",value:(e=_()(S.a.mark((function e(t){var i,o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",this.host=this.host||Object(n.a)(),i=this.host.endsWith("yjearth4.0")?this.host+"/api/v1/richText/upload":this.host+"/yjearth4.0/api/v1/richText/upload",(o=new FormData).append("file",t),e.next=7,fetch(i,{method:"post",body:o,headers:{token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 7:if(200!==(s=e.sent).status){e.next=14;break}return e.next=11,s.json();case 11:if(200!==(a=e.sent).code&&0!==a.code){e.next=14;break}return e.abrupt("return",a.data.url);case 14:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"customUploadVideo",get:function(){return Ze(Qe,this)},set:function(e){Xe(Qe,this,e)}},{key:"customUploadContent",get:function(){return Ze($e,this)},set:function(e){Xe($e,this,e)}},{key:"primaryCallBack",get:function(){return Ze(et,this)},set:function(e){Xe(et,this,e)}}]);var e}()),it=i(6),nt=i.n(it),ot=i(22),st=i.n(ot);function at(e,t,i,n,o){var s=Math.ceil(t/i)||1;!function i(){var a,r="
  • 1
  • ",l="
  • ").concat(s,"
  • "),c="
  • ...
  • ",u="
  • ...
  • ",h="
    共 ".concat(t," 条
    ");if(a="
  • ",s<=6)for(var p=1;p<=s;p++)a+="
  • ").concat(p,"
  • ");else if(n<=4){for(var d=1;d<=5;d++)a+="
  • ").concat(d,"
  • ");a+=u,a+=l}else if(n>s-3){a+=r,a+=c;for(var m=s-4;m<=s;m++)a+="
  • ").concat(m,"
  • ")}else{a+=r,a+=c;for(var f=n-1;f<=n+1;f++)a+="
  • ").concat(f,"
  • ");a+=u,a+=l}a+="
  • ",a+=h,e.innerHTML=a,e.querySelector("li[pagenumber='"+n+"']").classList.add("active"),e.querySelectorAll("li[pagenumber]").forEach((function(t){t.onclick=function(){n=Number(this.innerHTML),e.querySelector("li[pagenumber='"+n+"']").classList.add("active"),a="",i(),o&&o(n)}})),e.getElementsByClassName("btnPrev")[0].addEventListener("click",(function(){n>1&&(n--,a="",i(),o&&o(n))})),e.getElementsByClassName("btnNext")[0].addEventListener("click",(function(){n10&&(n-=10,a="",i(),o&&o(n))})));var g=e.getElementsByClassName("btnGoRight")[0];g&&(g.addEventListener("mouseenter",(function(){this.innerHTML=">"})),g.addEventListener("mouseleave",(function(){this.innerHTML="..."})),g.addEventListener("click",(function(){n0){at(n,t.data.total,5,1,(function(t){e.cameraSelect(t)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var l=[],c=function(n){var o='\n
    \n
    \n \n 绑定\n
    \n
    ').concat(t.data.list[n].cameraName,'
    \n
    ').concat(i[t.data.list[n].type],'
    \n
    ').concat(t.data.list[n].ip,'
    \n
    ').concat(t.data.list[n].port,'
    \n
    ').concat(t.data.list[n].userName,'
    \n
    ').concat(t.data.list[n].passWord||t.data.list[n].password,"
    \n
    "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');l.push(r),r.addEventListener("change",(function(){if(r.checked){e.attributeCamera=[],e.attributeCamera.push(t.data.list[n]);for(var i=0;i=0;i--){for(var n=!1,o=0;o0){at(n,t.data.total,5,1,(function(t){e.ISCSelect(t)})),o.getElementsByClassName("table-empty")[0].style.display="none",s.style.display="flex";for(var r=function(i){var n='\n
    \n
    \n \n 绑定\n
    \n
    ').concat(t.data.list[i].name,'
    \n
    ').concat(t.data.list[i].status?"在线":"离线","
    \n
    "),o=document.createRange().createContextualFragment(n),a=o.querySelector('input[type="checkbox"]');a.addEventListener("change",(function(){if(a.checked)e.attributeISC.push(t.data.list[i]);else{var n=e.attributeISC.filter((function(e){return"ID"in t.data.list[i]?e.ID!==t.data.list[i].ID:e.id!==t.data.list[i].id}));e.attributeISC=n}})),s.appendChild(o);for(var r=0;r0){e._allGoodsList=t.data.list;for(var o=e.attributeGoods.length-1;o>=0;o--){for(var s=!1,r=0;r\n
    ').concat(t.data.list[i].name,'
    \n
    \n '),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in t.data.list[i]){if(t.data.list[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t.data.list[i]&&t.data.list[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t.data.list[i].name,cnt:o};"ID"in t.data.list[i]?l.ID=t.data.list[i].ID:"id"in t.data.list[i]&&(l.id=t.data.list[i].id),e.attributeGoods.push(lt({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in t.data.list[i]){if(t.data.list[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t.data.list[i]&&t.data.list[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t.data.list[i].name,cnt:o};"ID"in t.data.list[i]?l.ID=t.data.list[i].ID:"id"in t.data.list[i]&&(l.id=t.data.list[i].id),e.attributeGoods.push(lt({},l))}}})),n.appendChild(s)},c=0;c0){n.getElementsByClassName("table-empty")[0].style.display="none",o.style.display="block",o.style.maxHeight="150px";for(var s=function(i){var n='\n
    \n
    \n '.concat(i+1,'\n
    \n
    ').concat(t[i].name,'
    \n
    \n
    '),s=document.createRange().createContextualFragment(n),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in t[i]){if(t[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t[i]&&t[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t[i].name,cnt:o};"ID"in t[i]?l.ID=t[i].ID:"id"in t[i]&&(l.id=t[i].id),e.attributeGoods.push(lt({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in t[i]){if(t[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t[i]&&t[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t[i].name,cnt:o};"ID"in t[i]?l.ID=t[i].ID:"id"in t[i]&&(l.id=t[i].id),e.attributeGoods.push(lt({},l))}}})),o.appendChild(s)},a=0;a\n
    \n
    \n 内容类型\n
    \n
    \n
    \n
    \n
    \n
    \n 编辑内容\n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n 编辑内容\n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    操作
    \n
    设备名称
    \n
    设备类型
    \n
    设备IP
    \n
    设备端口
    \n
    用户名
    \n
    密码
    \n
    \n
    \n \n
    \n
    \n

    暂无数据

    \n
    \n
    \n
    \n
    \n
      \n
      \n
      \n
      \n \x3c!--
      \n
      \n 编辑内容\n \n \n
      \n
      --\x3e\n
      \n
      \n
      \n
      \n
      操作
      \n
      设备名称
      \n
      设备状态
      \n
      \n
      \n \n
      \n
      \n

      暂无数据

      \n
      \n
      \n
      \n
      \n
        \n
        \n
        \n
        \n
        \n 添加链接\n
        \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        名称
        \n
        链接
        \n
        操作
        \n
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 编辑内容\n \n \n
        \n
        \n
        \n
        \n
        \n
        序号
        \n
        名称
        \n
        数量
        \n
        \n
        \n \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n '}function ut(e){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n

        WGS84坐标

        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 海拔高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        转换坐标选择\n
        \n
        \n
        \n
        \n
        \n X轴:\n \n
        \n
        \n
        \n
        \n Y轴:\n \n
        \n
        \n
        \n
        \n Z轴:\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n \n 小数格式\n
        \n
        \n
        \n
        \n \n 度分格式\n
        \n
        \n
        \n
        \n \n 度分秒格式\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n

        图标设置

        \n
        \n
        \n 显隐\n \n
        \n
        \n 图标\n
        \n \n
        \n
        \n
        \n 默认图标\n
        \n \n
        \n
        \n
        \n 图标倍数\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n

        文字设置

        \n
        \n
        \n 显隐\n \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 文字大小\n
        \n \n px\n \n
        \n
        \n
        \n 文字颜色\n
        \n
        \n
        \n
        \n
        \n \x3c!-- \n
        \n
        \n
        \n 扩散\n \n
        \n
        \n 半径\n \n
        \n
        \n 时间\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        \n 雷达\n \n
        \n
        \n 半径\n \n
        \n
        \n 时间\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        --\x3e\n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!-- 指令--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!-- 设置操作点--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n
        \n
        \n \n ')}var ht=i(28),pt=i(29);function dt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function mt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),i=ft(this,t,[e,o]),e&&e.viewer?(i.sdk=e,i.viewer=e.viewer,i.options=mt({},o),i.options.id=o.id||i.randomString(),i.entity=null,i.clickCallBack=null,i.rightClickCallBack=null,i.picking=!0,i.options.host=i.options.host||Object(n.a)(),i.options.customView=o.customView,i.setDefaultValue(),i._showView,i):Ee()(i)}return Me()(t,e),h()(t,[{key:"showView",get:function(){return this._showView},set:function(e){var t=Object(J.c)().sdkD;if(!t)return this._showView=e,void(this.entity&&(this.entity._showView=e));this.sdk!==t?(this._showView||this.show)&&(this.sdk!==t?(this._showView=2!=e&&3!=e?0:e,this.isShowView=!0,this._showView?this.show=2!=e:this.show=!0):this._showView=0):this._showView=0}},{key:"name",get:function(){return this.options.name},set:function(e){this.options.name=e,this.label&&(this.label.text=e),this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;if(this.isShowView&&t||(this.options.show=e,this.originalOptions&&(this.originalOptions.show=e)),this.entity&&(this.entity._showView=this.showView),"layer"==this.type&&this.entity&&(this.entity._objectState=this.options.show),this.showView&&3!=this.showView&&t?(this.entity&&(this.entity.show=!1),this.options.label&&this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1,"layer"==this.type&&t){var i=t.viewer.imageryLayers._layers[this.layerIndex],n=this.entity;if(!i)return;n._objectState?(n._showView&&2!=n._showView||(i.show=!0),3==n._showView&&(i.show=!1)):i.show=this.options.show}}else console.error("参数必须为boolean")}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"display",value:function(){this.show=!0}},{key:"hide",value:function(){this.show=!1}},{key:"flicker",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,i=arguments.length>1?arguments[1]:void 0;this.flickerAnimate&&TWEEN.remove(this.flickerAnimate),this.flickerAnimate=new TWEEN.Tween({degree:1}).to({degree:0},t/2).easing(TWEEN.Easing.Linear.None).repeat(i||0===i?2*i-1:1/0).yoyo(!0).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.sdk.viewer){t.next=3;break}return TWEEN.remove(e.flickerAnimate),t.abrupt("return");case 3:e.show&&(1===i.degree&&(e.entity&&(e.entity.show=!0),e.labelShow&&e.label&&(e.label.show=!0),e.text&&e.text&&(e.text.show=!0)),0===i.degree&&(e.entity&&(e.entity.show=!1),e.labelShow&&e.label&&(e.label.show=!1),e.text&&e.text&&(e.text.show=!1)));case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onComplete((function(t){TWEEN.remove(e.flickerAnimate),e.flickerAnimate=void 0})).start()}},{key:"flyTo",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?r=mt({},this.options.position):this.options.positions?r=mt({},this.options.positions[0]):this.options.line&&this.options.line.positions?r=mt({},this.options.line.positions[0]):this.options.center?r=mt({},this.options.center):this.options.start?r=mt({},this.options.start):this.geojson?(l=turf.bbox(this.geojson),r={lng:l[0],lat:l[1]}):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"remove",value:(o=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.removeIncetance(this.options.id);case 2:this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id);case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"onClick",get:function(){return this.clickCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.clickCallBack&&this.options&&this.options.id&&Object(ht.d)(this.options.id,this.leftClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.d)(this.options.id,this.leftClickCB,this):null==this.clickCallBack&&this.options&&this.options.id&&Object(q.j)(this.options.id,this.leftClickCB,this),this.clickCallBack=e}}},{key:"onRightClick",get:function(){return this.rightClickCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.rightClickCallBack&&this.entity&&this.entity.id&&Object(ht.f)(this.entity.id,this.rightClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.f)(this.options.id,this.leftClickCB,this):null==this.rightClickCallBack&&this.entity&&this.entity.id&&Object(q.l)(this.entity.id,this.rightClickCB,this),this.rightClickCallBack=e}}},{key:"onMouseMove",get:function(){return this.mouseMoveCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&Object(ht.e)(this.entity.id,this.mouseMoveCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.e)(this.options.id,this.leftClickCB,this):null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&Object(q.k)(this.entity.id,this.mouseMoveCB,this),this.mouseMoveCallBack=e}}},{key:"customView",get:function(){return this.options.customView}},{key:"setCustomView",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}this.options.customView=t,e.next=16;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=mt({},n),this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?o=mt({},this.options.position):this.options.positions?o=mt({},this.options.positions[0]):this.options.line&&this.options.line.positions?o=mt({},this.options.line.positions[0]):this.options.center?o=mt({},this.options.center):this.options.start?o=mt({},this.options.start):this.geojson?(a=turf.bbox(this.geojson),o={lng:a[0],lat:a[1]}):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){e.next=13;break}return e.next=12,this.getClampToHeight(o);case 12:o.alt=e.sent;case 13:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"resetCustomView",value:function(){this.options.customView={relativePosition:void 0,orientation:void 0}}},{key:"edit",value:function(){}},{key:"leftClickCB",value:function(e,t,i,n){n.clickCallBack&&"function"==typeof n.clickCallBack&&n.clickCallBack(e,t,i)}},{key:"rightClickCB",value:function(e,t,i,n){n.rightClickCallBack&&"function"==typeof n.rightClickCallBack&&n.rightClickCallBack(e,t,i)}},{key:"mouseMoveCB",value:function(e,t,i,n){n.mouseMoveCallBack&&"function"==typeof n.mouseMoveCallBack&&n.mouseMoveCallBack(e,t,i)}},{key:"getGuid",value:function(){return Cesium.createGuid()}},{key:"setDefaultValue",value:function(){var e,t,i;this.options.id=null!==(e=this.options.id)&&void 0!==e?e:this.getGuid(),this.options.show=null===(t=this.options.show)||void 0===t||t,this.options.name=null!==(i=this.options.name)&&void 0!==i?i:"未命名对象"}},{key:"start",value:function(){}},{key:"end",value:function(){}}]);var i,o,s}(b.a);function gt(e){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n 透明度\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 波纹层数\n
        \n \n \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 扩散速度\n
        \n \n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 半径单位\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}var yt=[{name:"黑体",value:"黑体",font:"SimHei",key:"0"},{name:"思源黑体",value:"思源黑体",font:"SourceHanSansTi",key:"1"},{name:"庞门正道标题体",value:"庞门正道标题体",font:"PMZDBTTi",key:"2"},{name:"数黑体",value:"数黑体",font:"AlimamaShuHeiTi",key:"3"}];function bt(){return yt}function Ct(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;c()(this,t),(i=kt(this,t,[e,n])).model=o,i._canvas=document.createElement("canvas"),i._canvas2=document.createElement("canvas"),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Ct(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineWidth=n.lineWidth||4,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new te.a(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return Me()(t,e),h()(t,[{key:"create",value:(i=_()(S.a.mark((function e(){var t,i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,this.options.position[2]||0===this.options.position[2]){e.next=5;break}return e.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=e.sent;case 5:this.originalOptions=xt(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(t.model){if(t.model.isMove){var e=t.model.customScale.x;t.model.customScale.y>e&&(e=t.model.customScale.y),t.model.customScale.z>e&&(e=t.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(t.options.position[0],t.options.position[1],t.options.position[2]+2*(t.model.originalBoundingSphereRadius||1)*(e||.01)),n=Cesium.Cartesian3.fromDegrees(t.options.position[0],t.options.position[1],t.options.position[2]-2*(t.model.originalBoundingSphereRadius||1)*(e||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=t.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),o=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]-2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Cartesian3.subtract(o,n,new Cesium.Cartesian3),a=Cesium.Cartesian3.normalize(s,s),r=new Cesium.Ray(n,a),l=this.viewer.scene.drillPickFromRay(r,5),c=0;c40&&(t[i]=t[i].slice(0,40-t[i].length));t.length>10&&t.splice(10-t.length),this.options.text=t.join("\n"),this.entity&&this.updateBillboardImage()}},{key:"color",get:function(){return this.options.color},set:function(e){this.options.color=e,this.entity&&(this.entity.billboard.image=this.getcanvas())}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(e){var t=e;t>this.far&&(t=this.far),this.options.near=t,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(e){var t=e;ti&&(i=a),n+=this.options.fontSize+2*this.options.outlineWidth}n=n+20+5*(t.length-1),(i+=30)0&&void 0!==arguments[0]?arguments[0]:{},t=null;if("object"==st()(e)&&null!==e)for(var i in t=e instanceof Array?[]:{},e)t[i]=xt(e[i]);else t=e;return t},St=i(14),Et=function(){return h()((function e(t){c()(this,e),e.prototype.hasOwnProperty("color")||Object.defineProperties(e.prototype,{color:Cesium.createPropertyDescriptor("color")}),e.prototype.hasOwnProperty("speed")||Object.defineProperties(e.prototype,{speed:Cesium.createPropertyDescriptor("speed")}),e.prototype.hasOwnProperty("transparency")||Object.defineProperties(e.prototype,{transparency:Cesium.createPropertyDescriptor("transparency")}),e.prototype.hasOwnProperty("count")||Object.defineProperties(e.prototype,{count:Cesium.createPropertyDescriptor("count")}),e.prototype.hasOwnProperty("gradient")||Object.defineProperties(e.prototype,{gradient:Cesium.createPropertyDescriptor("gradient")}),this._definitionChanged=new Cesium.Event,this._speed=void 0,this.id=t.id,this.color=t.color||new Cesium.Color(1,1,1,1),this.colors=t.colors||{},this.speed=t.speed,this.transparency=t.transparency,this.count=t.count,this.gradient=t.gradient;var i="",n=[];for(var o in this.colors)Object.hasOwnProperty.call(this.colors,o)&&n.push(o);n.sort((function(e,t){return t-e}));for(var s=0;s 0.0){\n if(disNum < perDis){\n bl = 1.0 - disNum / perDis;\n }\n else if(disNum - perDis < perDis){\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient))) * transparency;\n }\n }\n }\n }\n return material;\n }\n "),this._CircleRippleMaterialType="CircleRippleMaterialType"+this.id,Cesium.Material._materialCache.addMaterial(this._CircleRippleMaterialType,{fabric:{type:this._CircleRippleMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:3,transparency:1,count:4,gradient:.2,frameNumber:Cesium.getTimestamp()},source:this._source},translucent:function(e){return!0}})}),[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return this._CircleRippleMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.transparency=this.transparency,t.count=this.count,t.gradient=this.gradient,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(e){return this===e||e instanceof CircleRippleMaterialProperty&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this.count,e.count)&&Cesium.Property.equals(this.transparency,e.transparency)&&Cesium.Property.equals(this.gradient,e.gradient)}}])}();function Pt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ot(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),Mt(i=Dt(this,t,[e,n]),jt,null),i.options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#ff0000",i.options.transparency=n.transparency||0===n.transparency?n.transparency:1,i.options.transparency>1&&(i.options.transparency=1),i.options.speed=n.speed||0===n.speed?n.speed:5,i.options.count=n.count||0===n.count?n.count:3,n.count||0===n.count?(i.options.count=n.count,n.count>99&&(i.options.count=99)):i.options.count=3,i.options.circle=n.circle||[{radius:10,color:i.options.color}];for(var s=0;s999999&&(i.options.circle[s].radius=999999);i.options.show=!n.show&&!1!==n.show||n.show,i.event=new te.a(i.sdk),n.label=n.label||{},i._elms={},i.options.label={show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"";for(var a=0,r=0;ra&&(a=Number(i.options.circle[r].radius));return i._radius=a,i.operate={},i.Dialog=o,i._EventBinding=new Ye,i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"CircleDiffuse"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity.show=!1,this.options.label.show&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&(this.label.show=this.options.show)),this.isShowView=!1,Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e)}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=e,!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),Nt(jt,t)&&(Nt(jt,t).call(t),Tt(jt,t,null)),t.lastOptions=void 0,t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=e.lng,t.lat=e.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.lastOptions=void 0,t.positionEditing=!1}}))}))):(setTimeout((function(){t.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Tt(jt,this,e)}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e,this.label.position=[e,this.lat],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e,this.label.position=[this.lng,e],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"radius",get:function(){return this._radius}},{key:"circle",get:function(){return this.options.circle},set:function(e){this.options.circle=e||[{radius:10,color:this.options.color}];for(var i=0,n=0;n999999&&(this.options.circle[n].radius=999999),Number(this.options.circle[n].radius)>i&&(i=Number(this.options.circle[n].radius));this._radius=i,t.create(this)}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,t.create(this),this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e}))}},{key:"transparency",get:function(){return this.options.transparency},set:function(e){this.options.transparency=e>1?1:Number(e),t.create(this),this._elms.transparency&&this._elms.transparency.forEach((function(t){t.value=e}))}},{key:"count",get:function(){return this.options.count},set:function(e){this.options.count=e>99?99:e,t.create(this),this._elms.count&&this._elms.count.forEach((function(t){t.value=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=Object(J.c)().sdkD;this.options.label.show=e,!this.show||this.showView&&3!=this.showView&&t?this.label.show=!1:this.label.show=e,this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label.color=e,this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label.fontSize=e,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label.scaleByDistance=e,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==c[0]?c[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Ot({},this.options.position):this.options.positions?r=Ot({},this.options.positions[0]):this.options.center?r=Ot({},this.options.center):this.options.start?r=Ot({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=16;break}return e.next=15,this.getClampToHeight(r);case 15:r.alt=e.sent;case 16:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=27;break;case 23:return e.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:l=e.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.radius+l),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle-ciffuse",(i=document.createElement("div")).innerHTML=gt(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,this._createCircleElm(),new Je("circle-diffuse-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelColor=e},clear:function(){l.labelColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelLineColor=e},clear:function(){l.labelLineColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelBackgroundColorStart=e},clear:function(){l.labelBackgroundColorStart="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelBackgroundColorEnd=e},clear:function(){l.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),r=i.getElementsByTagName("*"),this._EventBinding.on(this,r),this._elms=this._EventBinding.element,this._elms.labelColor=[n],this._elms.labelLineColor=[o],this._elms.labelBackgroundColorStart=[s],this._elms.labelBackgroundColorEnd=[a],setTimeout((function(){l.attributeLink=l.options.attribute.link.content,l.attributeVr=l.options.attribute.vr.content,l.ISCSelect&&l.ISCSelect(),l.goodsSelect&&l.goodsSelect(),l.cameraSelect&&l.cameraSelect();var e=Object(je.a)(l._DialogObject._element.content.getElementsByClassName("input-radius-unit-box")[0],".input-radius-unit");if(e){e.legp_search([{name:"米",value:"米"},{name:"千米",value:"千米"}]);var t=l._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0];t.value="米",t.addEventListener("input",(function(){var e=l._DialogObject._element.content.getElementsByClassName("circle-content-box")[0].getElementsByClassName("input-number");switch(t.value){case"米":for(var i=0;ie&&(e=Number(this.options.circle[i].radius));this._radius=e,t.create(this)}}},{key:"remove",value:(n=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.label&&this.label.remove(),this.entity&&this.sdk.viewer.entities.remove(this.entity),this.entity2&&this.sdk.viewer.entities.remove(this.entity2),this.entity=null,this.entity2=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=10,this.sdk.removeIncetance(this.options.id);case 10:return e.next=12,Object(J.g)(this.sdk,this.options.id);case 12:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setDIV",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(e){for(var i={},n=0;n\n
        \n
        \n
        \n 名称\n \n
        \n
        \n 扫描颜色\n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 扫描半径\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 扫描速度\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function It(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Rt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Ft(i=zt(this,t,[e,n]),Wt,null),i.options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#ff0000",i.options.radius=n.radius||10,i.options.radius>999999&&(i.options.radius=999999),i.options.speed=n.speed||0===n.speed?n.speed:20,i.options.show=!n.show&&!1!==n.show||n.show,i.event=new te.a(i.sdk),i.operate={},n.label=n.label||{},i._elms={},i.options.label={show:n.label.show||!1,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.richTextContent=n.richTextContent||"",i.Dialog=o,i._EventBinding=new Ye,i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity.show=!1,this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=e,!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),Vt(Wt,t)&&(Vt(Wt,t).call(t),Ht(Wt,t,null)),t.lastOptions=void 0,t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=e.lng,t.lat=e.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.lastOptions=void 0,t.positionEditing=!1}}))}))):(setTimeout((function(){t.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Ht(Wt,this,e)}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e,this.label.position=[e,this.lat],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e,this.label.position=[this.lng,e],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){var t=Number(e.toFixed(2));(t>999999&&(t=999999),t<.1&&(t=.1),this.options.radius=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(t=Number((t/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,this.changeMaterial(),this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e}))}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.changeMaterial(),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=Object(J.c)().sdkD;this.options.label.show=e,!this.show||this.showView&&3!=this.showView&&t?this.label.show=!1:this.label.show=e,this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label.color=e,this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label.fontSize=e,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label.scaleByDistance=e,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==c[0]?c[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Rt({},this.options.position):this.options.positions?r=Rt({},this.options.positions[0]):this.options.center?r=Rt({},this.options.center):this.options.start?r=Rt({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=16;break}return e.next=15,this.getClampToHeight(r);case 15:r.alt=e.sent;case 16:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=27;break;case 23:return e.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:l=e.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+l),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" radar-scan",(i=document.createElement("div")).innerHTML=Lt(this),this._DialogObject.contentAppChild(i),new Je("radar-scan-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){u.color=e},clear:function(){u.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelColor=e},clear:function(){u.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelLineColor=e},clear:function(){u.labelLineColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelBackgroundColorStart=e},clear:function(){u.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelBackgroundColorEnd=e},clear:function(){u.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.labelLineColor=[s],this._elms.labelBackgroundColorStart=[a],this._elms.labelBackgroundColorEnd=[r],(c=this._DialogObject._element.content.getElementsByClassName("input-radius")[0].getElementsByTagName("input")[0]).value=this.options.radius,this._elms.radius=[c],c.addEventListener("input",(function(e){var t=u._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(e.target.value||0===e.target.value){var i=e.target.value;i=Number(i),"."==e.data||"-"==e.data&&!e.target.value||(!e.target.max&&!e.target.min||i<=Number(e.target.max)/("米"===t?1:1e3)&&i>=Number(e.target.min))&&(u.radius=i*("米"===t?1:1e3))}})),c.addEventListener("blur",(function(e){var t=u._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(e.target.value||0===e.target.value){var i=e.target.value;i=Number(i),e.target.max&&i>Number(e.target.max)/("米"===t?1:1e3)&&(i=Number(e.target.max)/("米"===t?1:1e3)),e.target.min&&i0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(e){var i=function(e){if(/^#/.test(e)){var t=e.replace("#",""),i=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16),s=parseInt(t.substring(6,8),16);s||0===s?s/=255:s=1,e="rgba(".concat(i,",").concat(n,",").concat(o,",").concat(s,")")}var a=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);return a?[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),a[4]?parseFloat(a[4]):1]:null}(e.options.color),n="rgba(".concat(i[0],",").concat(i[1],",").concat(i[2],",1)");e.entity=e.sdk.viewer.entities.add({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(e.options.lng,e.options.lat)}),!1),name:"雷达扫描",ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(){return e.options.radius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(){return e.options.radius}),!1),material:new Cesium.RadarScanMaterialProperty({color:Cesium.Color.fromCssColorString(n),transparency:i[3],speed:e.options.speed}),zIndex:e.sdk._entityZIndex}}),e.sdk._entityZIndex++,"cesium-viewer 2d"===e.sdk.viewer._element.className&&(e.entity.ellipse.height=1),t.createLabel(e),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id)}},{key:"createLabel",value:(i=_()(S.a.mark((function e(t){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getClampToHeight({lng:t.options.lng,lat:t.options.lat});case 2:i=e.sent,t.options.label.position={lng:t.options.lng,lat:t.options.lat,alt:i},t.label=new _t(t.sdk,{id:t.options.id,show:!!t.options.show&&t.options.label.show,position:[t.options.label.position.lng,t.options.label.position.lat,t.options.label.position.alt],text:t.options.name,fontSize:t.options.label.fontSize,fontFamily:t.options.label.fontFamily,color:t.options.label.color,pixelOffset:t.options.label.pixelOffset,backgroundColor:t.options.label.backgroundColor,lineColor:t.options.label.lineColor,lineWidth:t.options.label.lineWidth,scaleByDistance:t.options.label.scaleByDistance,near:t.options.label.near,far:t.options.label.far,ground:!0});case 5:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"createBy2D",value:function(e){e.entity=new Cesium.EntityCollection;var i=0,n=r(e.options,e.options.radius,i),o=(new Date).getTime();e.viewer.clock.onTick.addEventListener((function(){var t=(new Date).getTime(),s=0*(t-o);o=t,i+=s,n=r(e.options,e.options.radius,i)}));var s=e.sdk.viewer.entities.add({show:e.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){var t=e.createCircle({lng:e.options.lng,lat:e.options.lat},e.options.radius);return Cesium.Cartesian3.fromDegreesArray(t)}),!1),width:2,material:Cesium.Color.fromCssColorString(e.options.color),clampToGround:!0}}),a=e.sdk.viewer.entities.add({show:e.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(n)}),!1),width:2,material:Cesium.Color.fromCssColorString(e.options.color),clampToGround:!0}});function r(e,t,i){var n=e.lng,o=e.lat,s=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,0)),a=t*Math.cos(i*Math.PI/180),r=t*Math.sin(i*Math.PI/180),l=Cesium.Cartesian3.fromElements(a,r,0),c=Cesium.Matrix4.multiplyByPoint(s,l,new Cesium.Cartesian3),u=Cesium.Cartographic.fromCartesian(c);return[n,o,Cesium.Math.toDegrees(u.longitude),Cesium.Math.toDegrees(u.latitude)]}e.entity.add(s),e.entity.add(a),e.sdk.viewer.entities.add(e.entity),t.createLabel(e),Object(J.g)(e.sdk,e.options.id)}}]);var i,n,o,s}(vt);function Yt(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Jt(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Jt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Kt(i=Zt(this,t,[e,n]),ti,null),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.options.billboard=n.billboard=n.billboard||{},i.options.billboard.show=!n.billboard.show&&!1!==n.billboard.show||n.billboard.show,i.options.billboard.image=n.billboard.image||Object(X.j)(n.billboard.defaultImage)||i.getSourceRootPath()+"/img/A-ablu-blank.png",i.options.billboard.defaultImage=n.billboard.defaultImage,i.options.billboard.scale=n.billboard.scale||0===n.billboard.scale?n.billboard.scale:3,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.position=n.position=n.position||{},i.options.position.lng=Number(Number(n.position.lng||0).toFixed(8)),i.options.position.lat=Number(Number(n.position.lat||0).toFixed(8)),i.options.position.alt=Number(Number(n.position.alt||0).toFixed(2)),i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.rtmp=i.options.attribute.rtmp||{},i.options.attribute.rtmp.content=i.options.attribute.rtmp.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.isc=i.options.attribute.isc||{},i.options.attribute.isc.content=i.options.attribute.isc.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.richTextContent=n.richTextContent||"",i.operate={},i._elms={},i.previous={position:Xt({},i.options.position)},i.entity,i._proj=i.sdk.proj,i.sdk.addIncetance(i.options.id,i),t.create(i),i.picking=!0,i.Dialog=o,i._EventBinding=new Ye,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"BillboardObject"}},{key:"selectBillboard",value:function(){var e=this;this.sdk.viewer.screenSpaceEventHandler.setInputAction((function(t){var i=e.sdk.viewer.scene.pick(t.position);Cesium.defined(i)&&i.id&&"airportBillboard"===i.id.id?e.entity.billboard&&(e.entity.billboard.color=Cesium.Color.YELLOW):e.entity.billboard&&(e.entity.billboard.color=Cesium.Color.WHITE)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"},{name:"IP摄像头",value:"IP摄像头",key:"camera"},{name:"rtmp",value:"rtmp",key:"rtmp"},{name:"全景图",value:"全景图",key:"vr"},{name:"物资",value:"物资",key:"goods"}]}},{key:"show",get:function(){return this.options.show},set:function(e){this.isShowView||(this.options.show=e,this.originalOptions.show=e),this.showView&&3!=this.showView?this.entity&&(this.entity.show=!1):this.entity&&(this.entity.show=this.options.show),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),this.isShowView=!1}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t,i=this;this.options.heightMode=e||0,this.options.heightMode=e||0==e?e:3;switch(this.options.heightMode){case"0":case 0:t=Cesium.HeightReference.NONE;break;case"1":case 1:t=Cesium.HeightReference.NONE;break;case"2":case 2:t=Cesium.HeightReference.CLAMP_TO_GROUND;break;case"3":case 3:t=Cesium.HeightReference.NONE;var n,o=[],a=Yt(this.sdk.entityMap);try{for(a.s();!(n=a.n()).done;){var r=s()(n.value,2),l=(r[0],r[1]);"RadarScanStereoscopic"===l.type&&l.entity&&o.push(l.entity)}}catch(e){a.e(e)}finally{a.f()}this.getClampToHeight(this.options.position,o).then((function(e){i.alt=Number(e.toFixed(2))}))}this.entity&&(this.entity.billboard.heightReference=t,this.entity.label.heightReference=t)}},{key:"labelText",get:function(){return this.options.label.text},set:function(e){this.options.label.text=e,this.options.name=e,this.entity&&(this.entity.label.text=e+""),this._elms.labelText&&this._elms.labelText.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=null==e||""===e?e:Number(Number(e).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){this.options.position.lat=null==e||""===e?e:Number(Number(e).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){this.options.position.alt=null==e||""===e?e:Number(Number(e).toFixed(2)),this.renewPoint(),this.coordinate=this.options.coordinate}},{key:"near",get:function(){return this.options.near},set:function(e){var t=e;t>this.far&&(t=this.far),this.options.near=t,this.renewPoint(),this._elms.near&&this._elms.near.forEach((function(e){e.value=t}))}},{key:"far",get:function(){return this.options.far},set:function(e){var t=e;t=t._frameImages.length-1?0:r+1,e}),!1)),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return a}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-a*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1)}}))}else{var l=new Image;l.src=i;var c=36,u=document.createElement("canvas");l.onload=function(){var e=l.width/l.height;l.width=100,l.height=100/e;var i=l.width,n=l.height,o=u.getContext("2d",{willReadFrequently:!0});u.width=i,u.height=n,o.drawImage(l,0,0,i,n),c=n*(31/i),t.entity.billboard.imgWidth=i,t.entity.billboard.imgHeight=n,t.entity&&(t.entity.billboard.image=u),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return c}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-c*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1),c=n*(31/i)},l.onerror=function(e){u.width=0,u.height=0,c=0,t.entity.billboard.imgWidth=0,t.entity.billboard.imgHeight=0,t.entity&&(t.entity.billboard.image=u),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return 0}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return new Cesium.Cartesian2(0,0)}),!1),c=36}}}},{key:"billboardScale",get:function(){return this.options.billboard.scale},set:function(e){this.options.billboard.scale=e,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(t){t.value=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){this.options.label.show=e,this.entity&&(this.entity.label.show=e),this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.value=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.renewPoint();var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.renewPoint(),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e||"#00ffff",this.renewPoint(),this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.label.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(0,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.link.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.vr.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={vrEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.vr.content;case 2:t.attributeVr=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.rtmp.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={rtmpEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.rtmp.content;case 2:t.attributeRtmp=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-rtmp")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.rtmp.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.rtmp.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0&&void 0!==p[0]&&p[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" billboard-object",(i=document.createElement("div")).innerHTML=ut(this),this._DialogObject.contentAppChild(i),this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.isc.content,new Je("point-object-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){h.labelColor=e},clear:function(){h.labelColor="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.labelColor=[n],setTimeout(_()(S.a.mark((function e(){var t,i,n,o,a,r,l,c,u,p,d,m,f,v,g,y,b,C,w,k,_,x,E,P,O,D;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.attributeLink=h.options.attribute.link.content,h.attributeVr=h.options.attribute.vr.content,h.cameraSelect&&h.cameraSelect(),h.ISCSelect&&h.ISCSelect(),h.goodsSelect&&h.goodsSelect(),(t=document.createElement("div")).className="col",t.style.flex="0 0 110px",t.innerHTML='\n 属性框\n \n ',h._DialogObject._element.content.getElementsByClassName("attribute")[0].getElementsByClassName("row")[0].appendChild(t),i=h.attributeSelect,!(n=h._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0])){e.next=27;break}(o=Object(je.a)(n,".attribute-select")).legp_search(i),a=h._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],r=0;case 18:if(!(r=0)){e.next=24;break}if(!v[g].position){e.next=21;break}return f=v[g],e.abrupt("break",24);case 21:g--,e.next=17;break;case 24:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),e.prev=25,e.next=28,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 28:y=e.sent,e.next=33;break;case 31:e.prev=31,e.t0=e.catch(25);case 33:if((void 0===i||i0&&void 0!==C[0]?C[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=26;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,a=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,a),l={lng:0,lat:0},this.options.position||this.options.position?l=Xt({},this.options.position):this.options.center?l=Xt({},this.options.center):this.options.start?l=Xt({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){e.next=19;break}c=[],u=Yt(this.sdk.entityMap);try{for(u.s();!(h=u.n()).done;)(p=s()(h.value,2))[0],"RadarScanStereoscopic"===(d=p[1]).type&&d.entity&&c.push(d.entity)}catch(e){u.e(e)}finally{u.f()}return e.next=18,this.getClampToHeight(l,c);case 18:l.alt=e.sent;case 19:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,a=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,a),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),e.next=33;break;case 26:m=[],f=Yt(this.sdk.entityMap);try{for(f.s();!(v=f.n()).done;)(g=s()(v.value,2))[0],"RadarScanStereoscopic"===(y=g[1]).type&&y.entity&&m.push(y.entity)}catch(e){f.e(e)}finally{f.f()}return e.next=31,this.getClampToHeight(this.options.position,m);case 31:b=e.sent,this.sdk.viewer.camera.flyTo({orientation:t.orientation,destination:Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,b+(t.height||500))});case 33:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setPosition",value:function(e){this.options.position.lng=e.position.lng,this.options.position.lat=e.position.lat,this.options.position.alt=e.position.alt,this.renewPoint()}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,this.event&&this.event.destroy(),this.event=new te.a(this.sdk),!0===e){this.picking=!1,this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.previous={position:Xt({},this.options.position)};var i=function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.alt=n.alt,t.previous={position:Xt({},t.options.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),$t(ti,t)&&($t(ti,t).call(t),Qt(ti,t,null)),t.positionEditing=!1};this.event.mouse_move((function(e,i){t.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left(i),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,n){var o=new Date;t.event.gesture_pinck_end((function(){var s=new Date;e.position1.x,e.position2.x,e.position1.y,e.position2.y;s-o>=500?t.positionEditing=!1:i(0,n)}))}))}else Qt(ti,this,null),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy(),this.event=null),this.tip&&this.tip.destroy(),this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt,this.renewPoint()}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Qt(ti,this,e)}},{key:"setDIV",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}},{key:"setCustomView",value:(i=_()(S.a.mark((function e(t){var i,n,o,a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}this.options.customView=t,e.next=19;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},a=Xt({},n),this.options.position?o=Xt({},this.options.position):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){e.next=16;break}r=[],l=Yt(this.sdk.entityMap);try{for(l.s();!(c=l.n()).done;)(u=s()(c.value,2))[0],"RadarScanStereoscopic"===(h=u[1]).type&&h.entity&&r.push(h.entity)}catch(e){l.e(e)}finally{l.f()}return e.next=15,this.getClampToHeight(o,r);case 15:o.alt=e.sent;case 16:a={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:a},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],[{key:"create",value:function(e){var t,i,n=36,o=e.options.position;e.originalOptions=e.deepCopyObj(e.options);var s,a=!1,r=0,l=Ct(e.labelFontFamily)||"Helvetica",c=e.replaceHost(e.options.billboard.image,e.options.host);if(e._frameImages=[],e.options.billboard.image=c||e.getSourceRootPath()+"/img/A-ablu-blank.png",c&&c.endsWith("gif")){switch(a=!0,e.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}var u=document.createElement("img");u.setAttribute("rel:animated_src",c),u.setAttribute("rel:auto_play","1"),document.createElement("div").appendChild(u);var h=Cesium.createGuid();s=new SuperGif({gif:u}),e._superGif=s,e._superGif.id=h,s.load((function(i){if(404==i)return(t=document.createElement("canvas")).width=0,t.height=0,n=0,void(e.entity&&(e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity)));if(e._superGif.id==h){for(var o=s.get_length(),a=1;a<=o;a++)s.move_to(a),e._frameImages.push(s.get_canvas().toDataURL());var l=(t=s.get_canvas()).width,c=t.height;n=c*(31/l),e.entity&&(e.entity.billboard.imgWidth=l,e.entity.billboard.imgHeight=c,e.entity.billboard.image=new Cesium.CallbackProperty((function(){var t=e._frameImages[r];return r=r>=e._frameImages.length-1?0:r+1,t}),!1),Object(y.a)(e.sdk,e.entity))}}))}else{var p=new Image;switch(p.src=c||e.getSourceRootPath()+"/img/A-ablu-blank.png",e.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}t=document.createElement("canvas"),p.onload=function(){var i=p.width/p.height;p.width=100,p.height=100/i;var o=p.width,s=p.height,a=t.getContext("2d",{willReadFrequently:!0});t.width=o,t.height=s,a.drawImage(p,0,0,o,s),n=s*(31/o),e.entity&&(e.entity.billboard.imgWidth=o,e.entity.billboard.imgHeight=s,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity))},p.onerror=function(i){t.width=0,t.height=0,n=0,e.entity&&(e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity))}}e.entity=new Cesium.Entity({show:e.options.show,id:e.options.id,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:a?new Cesium.CallbackProperty((function(){var t=e._frameImages[r];return r=r>=e._frameImages.length-1?0:r+1,t}),!1):t,scale:e.options.billboard.scale,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,color:e.options.billboard.show?void 0:new Cesium.Color(1,1,1,0),width:31,height:new Cesium.CallbackProperty((function(){return n}),!1),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},label:{show:e.options.label.show,text:e.options.label.text,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,font:e.options.label.fontSize+"px "+l,fillColor:Cesium.Color.fromCssColorString(e.options.label.color),pixelOffset:new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-n*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1),outlineColor:Cesium.Color.BLACK,outlineWidth:1,style:Cesium.LabelStyle.FILL_AND_OUTLINE}}),e.entity.billboard.imgWidth=31,e.entity.billboard.imgHeight=36,e.entity.position=Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),3==e.options.heightMode&&e.updateHeight(),e.renewPoint(),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id),e.options.billboard.isSelect&&e.selectBillboard()}}]);var i,n,o,a,r}(vt);function ni(e){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n 投影面积:\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n Z值统一增加\n
        \n \n m\n \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        经度(X)
        \n
        纬度(Y)
        \n
        高度(Z)
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n 面颜色\n
        \n
        \n
        \n 描边颜色\n
        \n
        \n
        \n 描边宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function oi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function si(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=ai(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.entity,i.event=new te.a(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.nodePoints=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"",!i.options.positions||i.options.positions.length<3)i._error="多边形最少需要三个坐标!",console.warn(i._error);else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==f[0]?f[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=si({},this.options.position):this.options.positions?r=si({},this.options.positions[0]):this.options.center?r=si({},this.options.center):this.options.start?r=si({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=51;break;case 25:l=[],e.t0=this.heightMode,e.next=0===e.t0||"0"===e.t0?29:1===e.t0||"1"===e.t0?31:2===e.t0||"2"===e.t0?33:35;break;case 29:case 31:return c=!1,e.abrupt("break",35);case 33:return c=!0,e.abrupt("break",35);case 35:if(!c){e.next=48;break}u=0;case 37:if(!(u=500?t.positionEditing=!1:g(0,i)}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!1)}else{this.previous?this.positions=nt()(this.previous.positions):this.previous={positions:nt()(this.positions)},this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var y=[[]],b=0;b0&&void 0!==arguments[0]?arguments[0]:function(){};this.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=function(){var e=_()(S.a.mark((function e(){var t,i,n,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=nt()(s.sdk.viewer.entities.values),i=0;case 2:if(!(i=3?[].concat(nt()(a),[a[0],a[1],a[2]]):a}),!1);var p=nt()(e.sdk.viewer.entities.values);if(e.options.positions.length<3)e.getClampToHeight({lng:e.options.positions[0].lng,lat:e.options.positions[0].lat},p).then((function(t){e.label.position=[e.options.positions[0].lng,e.options.positions[0].lat,t]}));else{for(var d=[[]],m=0;m=500?h():u(o,i)}))})),i()}),200)}}),50)}},{key:"closeNodeEdit",value:function(){if(this.sdk&&this.sdk.viewer){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0?new Cesium.PolygonHierarchy(m):new Cesium.PolygonHierarchy(o)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return m.length>0?[].concat(m,[m[0],m[1]]):[].concat(nt()(o),[o[0],o[1]])}),!1)}},{key:"renewPositions",value:function(){var e=this;if(!this._error){for(var t=!1,i=[],n=this.options.positions,o=0;o0&&void 0!==h[0]?h[0]:{domid:"",x:10,y:10}).x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10,i=[[]],n=0;n\n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n Z值统一增加\n
        \n \n m\n \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        经度(X)
        \n
        纬度(Y)
        \n
        高度(Z)
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n 线条颜色\n
        \n
        \n
        \n 线条宽度\n
        \n \n px\n \n
        \n
        \n
        \n 线条形式\n
        \n
        \n
        \n
        \n
        \n 首尾相连\n \n
        \n
        \n 线段圆滑\n \n
        \n
        \n
        \n
        \n
        \n
        \n 线段缓冲\n \n
        \n
        \n 缓冲宽度\n
        \n \n m\n \n
        \n
        \n
        \n 缓冲颜色\n
        \n
        \n
        \n
        \n
        \n 首尾反向\n \n
        \n
        \n 流动速率\n
        \n \n \n
        \n
        \n
        \n 线条间距\n
        \n \n \n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n
        \n
        \n
        \n \n ')}function ci(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ui(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ui(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);iNumber(t.target.max)&&(i=Number(t.target.max),t.target.value=i),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.viwer=this.sdk.viewer,this.options=i,this.options.position=i.position||{},this.options.rotate=i.rotate||{},this.options.position.lng=this.options.position.lng||0,this.options.position.lat=this.options.position.lat||0,this.options.position.alt=this.options.position.alt||0,this.options.rotate.x=this.options.rotate.x||0,this.options.rotate.y=this.options.rotate.y||0,this.options.rotate.z=this.options.rotate.z||0,this.activeAxis,this.activeCircle,this.activeModelParam,this.origin,this.rayX,this.rayY,this.rayZ,this.arrow={},this.activeState,this.coordArrows=[],this.coordCircles=[],this.MapEvent=new te.a(this.sdk)}),[{key:"position",get:function(){return this.options.position},set:function(e){this.options.position=e,this.againArrow(),this.againCircle()}},{key:"rotate",get:function(){return this.options.rotate},set:function(e){this.options.rotate=e}},{key:"initParam",value:function(){return this._params={tx:this.options.position.lng,ty:this.options.position.lat,tz:this.options.position.alt,rx:this.options.rotate.x,ry:this.options.rotate.y,rz:this.options.rotate.z},mi(mi({},this.options.position),this.options.rotate)}},{key:"editTranslational",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C,w=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C=function(e){if(t.activeAxis){var i=e.startPosition.y-e.endPosition.y,n={x:e.endPosition.x-g.x,y:e.endPosition.y-g.y},o=a.camera.getPickRay(n),s=a.scene.globe.pick(o,a.scene),r=new Cesium.Cartesian3,l=Cesium.Transforms.eastNorthUpToFixedFrame(a.camera.position);Cesium.Matrix4.inverse(l,l),Cesium.Matrix4.multiplyByPoint(l,s,r),Cesium.Cartesian3.normalize(r,r);var c=t.initParam(),u=90+Cesium.Math.toDegrees(Math.asin(r.z)),h=Cesium.Cartographic.fromCartesian(a.camera.position).height,p=t.activeModelParam.alt,d=h/Math.cos(Cesium.Math.toRadians(u));new Cesium.EllipsoidGeodesic(Cesium.Cartographic.fromCartesian(s),Cesium.Cartographic.fromCartesian(a.camera.position)),s=Cesium.Ray.getPoint(o,d*(1-p/h));var m=Cesium.Cartographic.fromCartesian(s),f=Cesium.Math.toDegrees(m.longitude),v=Cesium.Math.toDegrees(m.latitude);switch(t.activeAxis._name){case"model_edit_xAxis":t._params.tx=f,t._params.ty=t.activeModelParam.lat,t._params.tz=p,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var w=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),k=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),_=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,w),t.rayY=new Cesium.Ray(t.origin,k),t.rayZ=new Cesium.Ray(t.origin,_);break;case"model_edit_yAxis":t._params.tx=t.activeModelParam.lng,t._params.ty=v,t._params.tz=p,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var x=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),S=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),E=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,x),t.rayY=new Cesium.Ray(t.origin,S),t.rayZ=new Cesium.Ray(t.origin,E);break;case"model_edit_zAxis":t.activeModelParam.alt+=Cesium.Cartesian3.distance(a.camera.position,Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt))/4300*i*3,t._params.tx=t.activeModelParam.lng,t._params.ty=t.activeModelParam.lat,t._params.tz=t.activeModelParam.alt,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t.activeModelParam.alt);var P=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,t.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),O=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,t.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),D=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t.activeModelParam.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,P),t.rayY=new Cesium.Ray(t.origin,O),t.rayZ=new Cesium.Ray(t.origin,D)}t.updateModel(t._params.tx,t._params.ty,t._params.tz,t._params.rx,t._params.ry,t._params.rz),t.againArrow()}else{var M=Date.now();if(M-y<100)return clearTimeout(b),void(b=setTimeout((function(){C(e)}),100));clearTimeout(b),y=M;for(var T=t.coordArrows,N=0;N=0;j--){var A=B[j];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}},this.destroy(),this.activeState="translational",this.MapEvent=new te.a(this.sdk),t=this,i=this.initParam(),n=i.lng,o=i.lat,s=i.alt,a=this.viwer,this.origin=Cesium.Cartesian3.fromDegrees(n,o,s),r=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n-.001,o,s),new Cesium.Cartesian3),new Cesium.Cartesian3),l=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o-.001,s),new Cesium.Cartesian3),new Cesium.Cartesian3),c=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o,s-1),new Cesium.Cartesian3),new Cesium.Cartesian3),this.rayX=new Cesium.Ray(this.origin,r),this.rayY=new Cesium.Ray(this.origin,l),this.rayZ=new Cesium.Ray(this.origin,c),this.arrow.positionX=Cesium.Ray.getPoint(this.rayX,0),this.arrow.positionY=Cesium.Ray.getPoint(this.rayY,0),this.arrow.positionZ=Cesium.Ray.getPoint(this.rayZ,0),u=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(n,o,s)),h=a.camera.position,p=Cesium.Cartesian3.distance(h,this.origin),d=p/15,Cesium.Matrix4.multiplyByScale(u,new Cesium.Cartesian3(d,d,d),u),m=this.createAxisArrow("model_edit_xAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(1,0,0)],u,Cesium.Color.RED),f=this.createAxisArrow("model_edit_yAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,1,0)],u,Cesium.Color.LIME),v=this.createAxisArrow("model_edit_zAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,0,1)],u,Cesium.Color.BLUE),this.viwer.scene.primitives.add(m),this.viwer.scene.primitives.add(f),this.viwer.scene.primitives.add(v),this.againArrow(),this.viwer.camera.percentageChanged=.001,this.viwer.camera.changed.addEventListener(this.againArrow,{_that:this}),g={x:0,y:0},y=0,this.MapEvent.mouse_move((function(e,t){C(e)})),this.MapEvent.mouse_left_down((function(e,i){var n=a.scene.cartesianToCanvasCoordinates(w.origin);g.x=e.position.x-Math.floor(n.x),g.y=e.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(e.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(t.activeAxis)t.activeAxis=null,t.activeModelParam=null,t.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,t.activeAxis=r.primitive,t.activeModelParam=t.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(e){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(a._params.rx=1),a._params.rx<0&&(a._params.rx=360),Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(a._params.rx)),a._params.ry-=i,a._params.ry>360&&(a._params.ry=1),a._params.ry<0&&(a._params.ry=360),a._params.rz-=n,a._params.rz>360&&(a._params.rz=1),a._params.rz<0&&(a._params.rz=360),a.updateModel(a._params.tx,a._params.ty,a._params.tz,a._params.rx,a._params.ry,a._params.rz)}else{var c=Date.now();if(c-P<100)return clearTimeout(O),void(O=setTimeout((function(){D(e)}),100));clearTimeout(O),P=c;for(var u=s.coordCircles,h=0;h3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=e=parseFloat(parseFloat(e).toFixed(8)),this._params.ty=t=parseFloat(parseFloat(t).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.options.position.lng=e,this.options.position.lat=t,this.options.position.alt=i,this.options.rotate={x:n,y:o,z:s},this.controllerCallBack}},{key:"controllerCallBack",get:function(){this._controllerCallBack&&this._controllerCallBack(this.options,!this.activeAxis)},set:function(e){this._controllerCallBack=e}},{key:"createAxisArrow",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisCircular",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.EllipseGeometry({center:{x:1,y:1,z:1},semiMinorAxis:5e5,semiMajorAxis:1e6,rotation:Cesium.Math.PI_OVER_FOUR,vertexFormat:Cesium.VertexFormat.POSITION_AND_ST})}),releaseGeometryInstances:!1,appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:Cesium.Color.YELLOW}}})}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(e,t,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=e,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=yi(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options.noseToTail=n.noseToTail||!1,i.options.smooth=n.smooth||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.wordsName=n.wordsName||0,i.options.extendWidth=n.extendWidth||0===n.extendWidth?n.extendWidth:10,i.options.extendColor=n.extendColor||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(e);for(var n=function(n){if(i[n].key===Number(e))return t._elms.lineType&&t._elms.lineType.forEach((function(e){e.value=i[n].value,2this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t700?c*=m/u/(t.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Object(J.b)().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(a=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" polyline",(i=document.createElement("div")).innerHTML=li(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,new Je("polyline-object-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){c.color=e},clear:function(){c.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelColor=e},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("extendColor")[0],size:"mini",alpha:!0,defaultColor:this.extendColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.extendColor=e},clear:function(){c.extendColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelLineColor=e},clear:function(){c.labelLineColor="rgba(255,255,255,1)"}}),(void 0).labelBackgroundColorStartPicker=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorStart=e},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorEnd=e},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),pi.on(this,l),this._elms=pi.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.extendColor=[s],this._elms.labelLineColor=[a],this._elms.labelBackgroundColorStart=[(void 0).labelBackgroundColorStartPicker],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content;var e=c.attributeSelect,t=c._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var n=Object(je.a)(t,".attribute-select");n.legp_search(e);for(var o=c._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],s=0;s实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],v=Object(je.a)(c._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(v){v.legp_search(f);var g=document.createElement("i");g.className="icon icon-active",c._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(g);var y=c._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];c._elms.lineType=[y];for(var b=0;b'.concat(e+1,'\n
        \n
        \n
        \n ');var i=t.getElementsByClassName("lng")[0],n=document.createElement("span");n.innerHTML=c.options.positions[e].lng.toFixed(8),i.appendChild(n);var o=document.createElement("input");o.className="input",o.type="number",o.title="",o.min=-180,o.max=180,o.value=c.options.positions[e].lng.toFixed(8);var s=t.getElementsByClassName("lat")[0],a=document.createElement("span");a.innerHTML=c.options.positions[e].lat.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-90,r.max=90,r.value=c.options.positions[e].lat.toFixed(8);var l=t.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=c.options.positions[e].alt.toFixed(2),l.appendChild(u);var h=document.createElement("input");h.className="input",h.type="number",h.title="",h.min=-9999999,h.max=999999999,h.value=c.options.positions[e].alt.toFixed(2),i.addEventListener("dblclick",(function(){i.innerHTML="",o.value=Number(c.options.positions[e].lng.toFixed(8)),i.appendChild(o),o.focus(),c.positionEditing=!1,c.closeNodeEdit()})),o.addEventListener("blur",(function(){o.value=Number(c.options.positions[e].lng.toFixed(8)),i.innerHTML="",i.appendChild(n)})),o.addEventListener("input",(function(){c.options.positions[e].lng=Number(Number(o.value).toFixed(8)),n.innerHTML=c.options.positions[e].lng.toFixed(8);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(c.options.positions[e].lat.toFixed(8)),s.appendChild(r),r.focus(),c.positionEditing=!1,c.closeNodeEdit()})),r.addEventListener("blur",(function(){r.value=Number(c.options.positions[e].lat.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){c.options.positions[e].lat=Number(Number(r.value).toFixed(8)),a.innerHTML=c.options.positions[e].lat.toFixed(8);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),l.addEventListener("dblclick",(function(){2!=c.heightMode&&(l.innerHTML="",h.value=Number(c.options.positions[e].alt.toFixed(2)),l.appendChild(h),h.focus(),c.positionEditing=!1,c.closeNodeEdit())})),h.addEventListener("blur",(function(){h.value=Number(c.options.positions[e].alt.toFixed(2)),l.innerHTML="",l.appendChild(u)})),h.addEventListener("input",(function(){c.options.positions[e].alt=Number(Number(h.value).toFixed(2)),u.innerHTML=c.options.positions[e].alt.toFixed(2);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),c._elms.lng.push(n),c._elms.lngInput.push(o),c._elms.lat.push(a),c._elms.latInput.push(r),c._elms.alt.push(u),c._elms.altInput.push(h),P.appendChild(t)},D=0;D0&&void 0!==g[0]?g[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=gi({},this.options.position):this.options.positions?r=gi({},this.options.positions[0]):this.options.center?r=gi({},this.options.center):this.options.start?r=gi({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=43;break;case 25:l=[],e.t0=this.options.heightMode,e.next="0"===e.t0||0===e.t0?29:"1"===e.t0||1===e.t0?31:"2"===e.t0||2===e.t0?36:41;break;case 29:for(u=0;u=500?(t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.positionEditing=!1):leftEvent(s,i)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return r.length>0?r:i}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var l=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(l),this.renewPolygon(l),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,l[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:l[2]};break;case 2:case"2":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:l[2]}}}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"lengthChangeCallBack",get:function(){return this._lengthChangeCallBack},set:function(e){this._lengthChangeCallBack=e}},{key:"setDIV",value:function(){var e,t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=new Cesium.EntityCollection;if(e.forEach((function(e){(e instanceof ii||e instanceof ri||e instanceof At||e instanceof bi)&&t.add(e.entity)})),t.values.length){var i=Cesium.exportKml({entities:t});i.then((function(e){Ci(e.kml,(new Date).getTime()+".kml")}))}else console.error("允许导出为kml的对象为空")},ki={yingguangse:new Map,gonganlan:new Map,hong:new Map};ki.yingguangse.set("--color-sdk-base","#00ffff"),ki.yingguangse.set("--color-sdk-auxiliary","#004242"),ki.yingguangse.set("--color-sdk-auxiliary-public","#ffffff"),ki.yingguangse.set("--color-sdk-warning-0","#1BF8C3"),ki.yingguangse.set("--color-sdk-warning-1","#F16C55"),ki.yingguangse.set("--color-sdk-warning-2","#FFA145"),ki.yingguangse.set("--color-sdk-warning-3","#FFDF53"),ki.yingguangse.set("--color-sdk-text-head","#FFFFFF"),ki.yingguangse.set("--color-sdk-text-head-1","#E6F7FF"),ki.yingguangse.set("--color-sdk-text-head-2","#ADF1FF"),ki.yingguangse.set("--color-sdk-gradual","#00ffff 6.25%, #00ffff 100%"),ki.yingguangse.set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%");var _i,xi,Si,Ei,Pi,Oi,Di,Mi,Ti=0,Ni=0,Bi=function(){var e=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,C,w,k=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(w=function(e){var i=u.getElementsByClassName("tr");i.length>0&&(i[i.length-1].querySelector("input[name='time']").disabled=void 0);var n=u.getElementsByClassName("tr active")[0];n&&(n.className="tr");var c=document.createElement("div");c.className="tr active",c.innerHTML='\n
        视点'.concat(d+1,'
        \n
        \n \n
        \n
        \n \n \n \n
        \n '),c.addEventListener("click",(function(e){if(e.target.parentNode===c){var t=u.getElementsByClassName("tr active")[0];t&&(t.className="tr"),c.className="tr active";for(var n=0;nt+1?(l--,i[l-1].className="tr active"):l==t+1&&(i.length==t&&(l-=1),0!=i.length&&(i[l-1].className="tr active")),i.length>0){var n=i[i.length-1].querySelector("input[name='time']");n.disabled="disabled",n.value=0}break}o({name:s,points:m,repeat:Ti+"",defaultTime:v.value,totalTime:g.value})})),f.addEventListener("input",(function(t){y.checked=!1,e.duration=Number(f.value),e.duration<0&&(e.duration=0)})),f.addEventListener("blur",(function(){f.value=Number(Number(f.value).toFixed(2)),f.value<0&&(f.value=0)})),u.insertBefore(c,i[l]),l++,i[i.length-1].querySelector("input[name='time']").disabled="disabled"},i=k.length>1&&void 0!==k[1]?k[1]:{},n=k.length>2&&void 0!==k[2]?k[2]:{},o=k.length>3?k[3]:void 0,s=i.name||"漫游路径",i.points||(i.points=[]),i.repeat&&(Ti=Number(i.repeat)),i.defaultTime&&(document.getElementsByClassName("fly-roam")[0].querySelector("input[name='defaultTime']").value=i.defaultTime),i.totalTime&&(document.getElementsByClassName("fly-roam")[0].querySelector("input[name='totalTime']").value=i.totalTime),a=t.viewer,r=new b.a(t),l=0,c=document.getElementsByClassName("fly-roam")[0],c.getElementsByTagName("*"),u=c.getElementsByClassName("table-body")[0],h=c.getElementsByClassName("table-empty")[0],p={set:function(e,t,i){return e[t]=i,e.length>0?h.style.display="none":h.style.display="flex",!0}},d=0,m=new Proxy([],p),d=0;d0&&Ai(t,m,0)})),c.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var e=r.cartesian3Towgs84(a.camera.position,a),t=Number(c.querySelector("input[name='defaultTime']").value),i={duration:m.length===l?0:t,position:e,orientation:{heading:a.camera.heading,pitch:a.camera.pitch,roll:a.camera.roll}};m.length===l&&0!==l&&(m[m.length-1].duration=t,u.getElementsByClassName("tr")[m.length-1].querySelector("input[name='time']").value=t);m.splice(l,0,i),w(i),d++,o({name:s,points:m,repeat:Ti+"",defaultTime:v.value,totalTime:g.value})})),g=c.querySelector("input[name='totalTime']"),y=c.getElementsByClassName("isTotalTime")[0],C=c.querySelector("input[name='repeat']"),y.addEventListener("click",(function(){var e=u.getElementsByClassName("tr");if(e.length>0){for(var t=Number((Number(g.value)/(e.length-1)).toFixed(2)),i=0;i0){for(var t=Number((Number(g.value)/(e.length-1)).toFixed(2)),i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;_i&&_i.destroy(),(_i=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(t){Li(e)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var o,s=e.viewer;s.camera.cancelFlight(),Object(X.f)(e),Object(X.g)(e),s.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t[i].position.lng,t[i].position.lat,t[i].position.alt),orientation:t[i].orientation,duration:n?t[i-1].duration:.5,maximumHeight:t[i].position.alt,complete:(o=_()(S.a.mark((function n(){return S.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:++i<=t.length-1?ji(e,t,i,!0):Ni&&t.length>1?(Ni--,ji(e,t,0)):_i&&_i.destroy();case 3:case"end":return n.stop()}}),n)}))),function(){return o.apply(this,arguments)}),easingFunction:n?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})},Ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;Ni=Ti,ji(e,t,i,n)},Li=function(e){e&&e.viewer&&e.viewer.camera.cancelFlight(),_i&&_i.destroy()},Ii=null,Ri=null,zi=null,Fi=null,Hi="uniform sampler2D colorTexture;//输入的场景渲染照片\n varying vec2 v_textureCoordinates;\n uniform float tiltAngle;\n uniform float rainSize;\n uniform float rainWidth;\n uniform float rainSpeed;\n\n float hash(float x){\n return fract(sin(x*133.3)*13.13);\n }\n void main(void){\n float time = czm_frameNumber / rainSpeed;\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 c=vec3(.6,.7,.8);\n float a= tiltAngle;\n float si=sin(a),co=cos(a);\n uv*=mat2(co,-si,si,co);\n uv*=length(uv+vec2(0,4.9))*rainSize+1.;\n float v=1.-sin(hash(floor(uv.x*rainWidth))*2.);\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*20.;\n c*=v*b; //屏幕上雨的颜色\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5); //将雨和三维场景融合\n }",Vi="uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSize;\n uniform float snowSpeed;\n \n float snow(vec2 uv,float scale)\n {\n float time = czm_frameNumber / snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c = 0.0;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5);\n }\n ",Gi="\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n uniform float visibility;\n uniform vec4 fogColor;\n varying vec2 v_textureCoordinates;\n void main(void)\n {\n vec4 origcolor = texture2D(colorTexture, v_textureCoordinates);\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates);\n float f = visibility * (depthcolor.r - 0.3) / 0.2;\n if (f < 0.0) f = 0.0;\n else if (f > 1.0) f = 1.0;\n gl_FragColor = mix(origcolor, fogColor, f);\n }\n ";function Wi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var Ui=i(31);var Yi,Ji,qi=null,Xi=null,Zi=null,Ki=19,Qi=!0,$i=10,en="#ffd000",tn=!0,nn=2.5,on="#43cf7c",sn=!0,an=1.8,rn="#ff0000",ln=!1,cn=1,un="#64b6d9",hn=!1,pn=1,dn="#d084d1",mn={};function fn(){if(Ji){var e=Ji.viewer.camera.positionCartographic;Cesium.Math.toDegrees(e.height)<1e6?Ji.viewer.scene.globe.material||!0!==Qi||gn(Ji):yn(Ji)}}function vn(){return(vn=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=function(e){var t=e.target.value;return(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t1e6||(Xi&&Xi.destroy(),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]||e.viewer.container.appendChild(Zi),(Xi=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(t){var i=e.viewer.scene.pickPosition(t.endPosition);if(i){var n=0,o=0;if(e.viewer&&e.viewer._element){var s=e.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];n=s.getBoundingClientRect().top+window.scrollY,o=s.getBoundingClientRect().left+window.scrollX}Zi.style.left=t.endPosition.x-50+o+"px",Zi.style.top=t.endPosition.y-40+n+"px",Zi.style.display="block";var a=Yi.cartesian3Towgs84(i,e.viewer),r=Math.floor(a.alt/qi.uniforms.spacing)*qi.uniforms.spacing,l=a.alt-r,c=qi.uniforms.spacing/(qi.uniforms.secondaryLinesCount+1),u=Math.floor(l/c)*c+r;a.alt<0&&(a.alt=0),a.alt-u>c/2&&(u+=c),qi.uniforms.mouseHeight=a.alt,qi.uniforms.mousePosition=i,Zi.innerHTML="".concat(u.toFixed(0))}else Zi.style.display="none"}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.viewer.scene.globe.material=qi)}function yn(e){Xi&&(Xi.destroy(),Xi=null),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]&&(Zi.style.display="none",e.viewer.container.removeChild(Zi)),e.viewer.scene.globe.material=null}function bn(){Cesium.Material._materialCache._materials.ElevationContour.fabric.source="\nuniform vec4 activeColor; // 选中颜色\nuniform float spacing; // 等高距\n\n// 计曲线\nuniform bool indexContourShow;\nuniform float indexContourWidth;\nuniform vec4 indexContourColor;\n// 首曲线\nuniform bool intermediateContourShow;\nuniform float intermediateContourWidth;\nuniform vec4 intermediateContourColor;\n// 间曲线\nuniform bool halfIntervalContourShow;\nuniform float halfIntervalContourWidth;\nuniform vec4 halfIntervalContourColor;\n// 助曲线\nuniform bool supplementaryContourShow;\nuniform float supplementaryContourWidth;\nuniform vec4 supplementaryContourColor;\n\nuniform float mouseHeight;\n\nuniform float secondaryLinesCount; // 0=无次线, 1=1条次线, 2=2条次线...\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // 主等高线计算\n float distanceToMainContour = mod(materialInput.height, spacing);\n\n // 抗锯齿计算\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n float dxc = abs(dFdx(materialInput.height));\n float dyc = abs(dFdy(materialInput.height));\n float dFMain = max(dxc, dyc) * czm_pixelRatio * indexContourWidth;\n#else\n float dFMain = czm_pixelRatio * indexContourWidth;\n#endif\n\n bool isMainContour = distanceToMainContour < dFMain;\n bool isSecondaryContour = false;\n float dFSecondary = 0.0;\n float secondarySpacing = 0.0;\n bool isHalfInterval = false;\n bool isIntermediate= false;\n\n // 计算当前高度所属的等高线高度\n float mainContourHeight = floor(materialInput.height / spacing) * spacing;\n float secondaryContourHeight = floor(materialInput.height / spacing * (secondaryLinesCount + 1.0)) * spacing / (secondaryLinesCount + 1.0);\n\n // 计算次线在两条主等高线之间的相对位置\n float relativeHeight = materialInput.height - mainContourHeight;\n float normalizedPosition = relativeHeight / spacing;\n\n // 计算次线索引(从主等高线开始计数)\n float lineIndex = floor(normalizedPosition * (secondaryLinesCount + 1.0));\n\n // 只有当存在次线时才计算次线\n if(secondaryLinesCount > 0.0) {\n float secondaryLinesWidth = supplementaryContourWidth;\n secondarySpacing = spacing / (secondaryLinesCount + 1.0);\n float distanceToSecondaryContour = mod(materialInput.height, secondarySpacing);\n\n // 确保次线不会与主线重叠\n float minDistanceToMain = min(distanceToMainContour, spacing - distanceToMainContour);\n bool notCloseToMain = minDistanceToMain > dFMain * 2.0; // 2倍线宽缓冲\n\n\n if (lineIndex > 0.0 && lineIndex < secondaryLinesCount) {\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isHalfInterval = abs(mod(lineIndex, 2.0)) < 0.01;\n if(isHalfInterval) {\n secondaryLinesWidth = halfIntervalContourWidth;\n }\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isIntermediate = abs(mod(lineIndex, 4.0)) < 0.01;\n if(isIntermediate) {\n secondaryLinesWidth = intermediateContourWidth;\n }\n }\n\n\n\n\n\n\n\n\n\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n dFSecondary = max(dxc, dyc) * czm_pixelRatio * secondaryLinesWidth;\n#else\n dFSecondary = czm_pixelRatio * secondaryLinesWidth;\n#endif\n\n isSecondaryContour = (distanceToSecondaryContour < dFSecondary) && notCloseToMain;\n }\n\n // 高亮判断\n bool shouldHighlight = false;\n if(isMainContour && abs(mainContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n } else if(isSecondaryContour && abs(secondaryContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n }\n\n // 颜色输出\n vec4 outColor;\n if(shouldHighlight) {\n outColor = czm_gammaCorrect(vec4(activeColor.rgb, activeColor.a));\n } else if(isMainContour) {\n float a = indexContourColor.a;\n if(!indexContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(indexContourColor.rgb, a));\n } else if(isSecondaryContour) {\n float a = supplementaryContourColor.a;\n if(!supplementaryContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(supplementaryContourColor.rgb, a));\n if(isHalfInterval) {\n float a = halfIntervalContourColor.a;\n if(!halfIntervalContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(halfIntervalContourColor.rgb, a));\n }\n if(isIntermediate) {\n float a = intermediateContourColor.a;\n if(!intermediateContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(intermediateContourColor.rgb, a));\n }\n } else {\n outColor = vec4(0.0);\n }\n\n if(materialInput.height<0.0) {\n outColor = vec4(0.0);\n }\n\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n return material;\n}\n",qi=new Cesium.Material({fabric:{type:"ElevationContour",uniforms:{spacing:50,activeColor:Cesium.Color.fromCssColorString(en),mouseHeight:-1e5,mousePosition:new Cesium.Cartesian3(0,0,0),secondaryLinesCount:Ki,cameraHeight:0,indexContourShow:tn,indexContourWidth:nn,indexContourColor:Cesium.Color.fromCssColorString(on),intermediateContourShow:sn,intermediateContourWidth:an,intermediateContourColor:Cesium.Color.fromCssColorString(rn),halfIntervalContourShow:ln,halfIntervalContourWidth:cn,halfIntervalContourColor:Cesium.Color.fromCssColorString(un),supplementaryContourShow:hn,supplementaryContourWidth:pn,supplementaryContourColor:Cesium.Color.fromCssColorString(dn)}}})}function Cn(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function wn(e,t,i){return e.set(_n(e,t),i),i}function kn(e,t){return e.get(_n(e,t))}function _n(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(Zi=document.createElement("div")).className="YJ-customize-active-height-elm",Zi.style.position="absolute",Zi.style.left="10px",Zi.style.top="10px",Zi.style.width="100px",Zi.style.textAlign="center",Zi.style.pointerEvents="none",Zi.style.color="#ff0000",Zi.style.display="none";var xn=new WeakMap,Sn=new WeakMap,En=function(){return h()((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;c()(this,e),Cn(this,xn,null),Cn(this,Sn,{bgimg:null,img1:null,img2:null,img3:null,img4:null}),this.sdk=t,this.options=i,this.data={},this._webSocketCallback=n,this._tools=new b.a(this.sdk),this.requestResource()}),[{key:"requestResource",value:function(){var e=this;this.options.host=this.options.host||Object(n.a)();var t;t=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+t,[],{maxReconnectAttempts:8}),this.reconnecting.onopen=function(t){e.reconnecting.onmessage=function(){var t=_()(S.a.mark((function t(i){var n;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.data=JSON.parse(i.data),!e.data||!e.data.rmc){t.next=7;break}return t.next=4,e._tools.getClampToHeight(e.data.rmc);case 4:n=t.sent,e.position=new Cesium.Cartesian3.fromDegrees(e.data.rmc.lng,e.data.rmc.lat,n),e.create();case 7:e._webSocketCallback&&e._webSocketCallback(e.data);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}},{key:"create",value:function(){var e=this;if(this.getcanvas(),this.data&&this.data.rmc&&!this.entity){this.entity=new Cesium.CustomDataSource,this.sdk.viewer.dataSources.add(this.entity);var t=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:{image:this._tools.getSourceRootPath()+"/img/locate2.png",scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:1e8}),!1),width:31,height:36,pixelOffset:new Cesium.Cartesian2(0,-15)}}),i=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:{image:new Cesium.CallbackProperty((function(){return e.lableCanvas})),scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:1e8}),!1),width:220,height:140,pixelOffset:new Cesium.Cartesian2(0,-110)}});this.entity.entities.add(t),this.entity.entities.add(i)}}},{key:"loaded",value:function(e){var t;Object.defineProperty(this,"data",{get:function(){return t},set:function(i){t=i,e&&(e(),e=void 0)}})}},{key:"getcanvas",value:function(){var e=this,t=[{images:this._tools.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(this.data.rmc.lng.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(this.data.rmc.lat.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/h.png",text:"海拔:"+parseFloat(this.data.rmc.alt.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/satellite.png",text:"卫星:"+this.data.satellites||!1}];if(kn(xn,this)){var i=kn(xn,this).getContext("2d");i.clearRect(0,0,kn(xn,this).width,kn(xn,this).height),i.drawImage(kn(Sn,this).bgimg,0,0,kn(xn,this).width,kn(xn,this).height);var n=0;t.forEach((function(o,s){i.drawImage(kn(Sn,e)["img"+(s+1)],12,12+26*s),i.fillStyle="#fff",i.font="16px Arial",i.fillText(o.text,44,28+26*s),++n===t.length&&(e.lableCanvas=kn(xn,e).toDataURL())}))}else{wn(xn,this,document.createElement("canvas"));var o=kn(xn,this).getContext("2d");kn(xn,this).width=220,kn(xn,this).height=140;var s=new Image;kn(Sn,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,kn(xn,e).width,kn(xn,e).height),t.forEach((function(i,n){var s=new Image;kn(Sn,e)["img"+(n+1)]=s,s.src=i.images,s.onload=function(){o.drawImage(s,12,12+26*n),o.fillStyle="#fff",o.font="16px Arial",o.fillText(i.text,44,28+26*n),++a===t.length&&(e.lableCanvas=kn(xn,e).toDataURL())}}))}}}},{key:"flyTo",value:(e=_()(S.a.mark((function e(){var t,i,n=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},!this.data||!this.data.rmc){e.next=9;break}return e.next=4,this._tools.getClampToHeight(this.data.rmc);case 4:i=e.sent,Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),this.sdk.viewer.camera.flyTo({orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:Cesium.Cartesian3.fromDegrees(this.data.rmc.lng,this.data.rmc.lat,i+(t.height||500))});case 9:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"remove",value:function(){wn(xn,this,null),wn(Sn,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var e}();var Pn=i(17),On=i.n(Pn),Dn=i(21);function Mn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Tn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Nn(this,t,[e,n])).color=n.color||"rgba(255,0,0,0.5)",i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(e,i){if("2D"!==l){if(l="3D",r.positions=c.concat(Tn({},i)),r.tip.setPosition(i,e.position.x,e.position.y),!r.polygonHasCreated){var n=t.create_polygon(r);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(e(null,u),r.end())})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.positions=c.concat(Tn({},t)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=c.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",r.positions=c.concat(Tn({},i)),r.tip.setPosition(i,e.position.x+r.viewer.canvas.width,e.position.y),!r.polygonHasCreated){var n=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i,r._sdk2D.viewer))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(e(null,u),r.end())})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.positions=c.concat(Tn({},t)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=c.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.polygonHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)})),material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions.concat(e.positions[0])})),width:3,material:Cesium.Color.fromCssColorString(e.color).withAlpha(1),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a),jn=function(){return h()((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,e),this.sdk=t,this.viewer=t.viewer,this.height=i.height||70,this.maxHeigh=-1e6,this.precision=i.precision||125,this.Dialog=n,this.result={allArea:"",cutArea:"",cutVolume:"",fillArea:"",fillVolume:"",noArea:""},this.entities=[],this.tools=new b.a(this.sdk),this.Draw=new Bn(this.sdk),YJ.Analysis.AnalysesResults.push(this)}),[{key:"create",value:function(){var e=this;this.clean(),this.Draw.start((function(t,i){if(!i||i.length<3){e.tools.message({text:"最少需要三个坐标!",type:"warning"})}else{for(var n=[],o=0;othis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,0),height:o}}},{key:"heights",get:function(){return this.height},set:function(e){this.height=e}},{key:"precisions",get:function(){return this.precision},set:function(e){this.precision=e}},{key:"allArea",get:function(){return Number(this.result.allArea.toFixed(4))},set:function(e){this.result.allArea=e}},{key:"fillArea",get:function(){return Number(this.result.fillArea.toFixed(4))},set:function(e){this.result.fillArea=e}},{key:"fillVolume",get:function(){return Number(this.result.fillVolume.toFixed(4))},set:function(e){this.result.fillVolume=e}},{key:"cutArea",get:function(){return Number(this.result.cutArea.toFixed(4))},set:function(e){this.result.cutArea=e}},{key:"cutVolume",get:function(){return Number(this.result.cutVolume.toFixed(4))},set:function(e){this.result.cutVolume=e}},{key:"noArea",get:function(){return Number(this.result.noArea.toFixed(4))},set:function(e){this.result.noArea=e}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"clean",value:function(){this.Draw&&this.Draw.end();for(var e=0;e\n
        \n
        \n
        \n 绘制分析区域\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 基准高度\n
        \n \n m\n \n
        \n
        \n
        \n 精度\n
        \n \n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 总分析面积:\n 0\n \n
        \n
        \n 无须填挖面积:\n 0\n \n
        \n
        \n
        \n
        \n 填方面积:\n 0\n \n
        \n
        \n 挖方面积:\n 0\n \n
        \n
        \n
        \n
        \n 填方体积:\n 0\n \n
        \n
        \n 挖方体积:\n 0\n \n
        \n
        \n
        \n \n ',t._DialogObject.contentAppChild(i),t._DialogObject._element.body.className=t._DialogObject._element.body.className+" cut-fill",(n=i.querySelector("input[name='height']")).value=t.height,n.addEventListener("blur",(function(e){var i=e.target.value;"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=In(this,t,[e,n])).sdk=e,i.options={},i.options.name=n.name,i.options.risingSpeed=1,i.options.minWaterLevel=0,i.options.maxWaterLevel=0,i.options.waterVolume=0,i.currentWaterLaver,i.color="#00d9ff66",i.Dialog=o,i.Draw=new Bn(i.sdk),i.positions,i.status=!0,i.area=0,i._elms={},i.tools=new b.a(i.sdk),YJ.Analysis.AnalysesResults.push(i),i}return Me()(t,e),h()(t,[{key:"draw",value:function(){t.create(this)}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"waterLevels",get:function(){return this.waterLevel},set:function(e){this.waterLevel=e}},{key:"waterVolume",get:function(){return this.options.waterVolume},set:function(e){this.options.waterVolume=e}},{key:"minWaterLevel",get:function(){return this.options.minWaterLevel},set:function(e){this.options.minWaterLevel=e,this.currentWaterLaver=this.options.minWaterLevel}},{key:"maxWaterLevel",get:function(){return this.options.maxWaterLevel},set:function(e){this.options.maxWaterLevel=e}},{key:"risingSpeed",get:function(){return this.options.risingSpeed},set:function(e){this.options.risingSpeed=e}},{key:"areas",get:function(){return this.area},set:function(e){this.area=e}},{key:"move",value:function(){var e=this;if(!this.TweenAnimate){var t=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},t).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.currentWaterLaver=i.waterLevel;case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start()}}},{key:"restart",value:function(){var e=this;this.currentWaterLaver=this.options.minWaterLevel;this.TweenAnimate&&(this.TweenAnimate._isPaused,TWEEN.remove(this.TweenAnimate));var t=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},t).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.currentWaterLaver=i.waterLevel;case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start(),this.pause()}},{key:"start",value:function(){this.TweenAnimate&&this.TweenAnimate.resume()}},{key:"pause",value:function(){this.TweenAnimate&&this.TweenAnimate.pause()}},{key:"calculateVolumeHeight",value:function(){that.options.maxWaterLevel}},{key:"flyTo",value:function(){if(this.positions&&0!==this.positions.length){Object(X.f)(this.sdk),Object(X.g)(this.sdk);for(var e=[],t=0;ti[o].alt&&(e.options.minWaterLevel=i[o].alt),n.push(i[o].lng,i[o].lat);e.options.maxWaterLevel=i[0].alt;for(var s=0;s\n
        \n
        \n
        \n 水量\n
        \n \n \n \n
        \n
        \n
        \n 最小水位\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 水面面积\n
        \n \n \n \n
        \n
        \n
        \n 最大水位\n
        \n \n m\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n 上升速度\n
        \n
        \n
        \n \n
        \n \n m/s\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n \n \n \n \n \n \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        序号
        \n
        经度
        \n
        纬度
        \n
        高程
        \n
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).className="el-button",o.innerHTML="暂停",o.style.width="80px",n.getElementsByClassName("draw")[0].addEventListener("click",(function(){t.create(i)})),n.getElementsByClassName("analog")[0].addEventListener("click",(function(){i.move()})),n.getElementsByClassName("flyto")[0].addEventListener("click",(function(){i.flyTo()})),n.getElementsByClassName("reset")[0].addEventListener("click",(function(){i.restart()})),s=n.getElementsByClassName("pause")[0],a=n.getElementsByClassName("start")[0],s.addEventListener("click",(function(){i.pause(),s.style.display="none",a.style.display="flex"})),a.addEventListener("click",(function(){i.start(),a.style.display="none",s.style.display="flex"})),(r=n.querySelectorAll("input[name='risingSpeed']"))[0].value=i.options.risingSpeed,r[1].value=i.options.risingSpeed,r[0].addEventListener("input",(function(e){i.options.risingSpeed=Number(e.target.value)})),r[1].addEventListener("input",(function(e){if("."!=e.data){var t=Number(e.target.value),n=Number(r[0].max),o=Number(r[0].min);i.options.risingSpeed=t>n?n:t999999999&&(t=999999999),t<0&&(t=0),i.options.minWaterLevel=Math.floor(1e4*t)/1e4,i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}})),Object.defineProperty(i.options,"minWaterLevel",{get:function(){return Number(l.value)},set:function(e){l.value=Math.floor(1e4*Number(e))/1e4}}),(c=n.querySelector("input[name='maxWaterLevel']")).value=i.options.maxWaterLevel,c.addEventListener("input",(function(e){if("."!=e.data){var t=Number(e.target.value);t>999999999&&(t=999999999),t<0&&(t=0),t99999999999999&&(t=99999999999999),t<0&&(t=0),i.options.waterVolume=Math.floor(1e4*t)/1e4,i.area&&(i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel)}})),Object.defineProperty(i.options,"waterVolume",{get:function(){return Number(u.value)},set:function(e){u.value=e}}),(h=n.getElementsByClassName("area")[0]).value=i.area,Object.defineProperty(i,"area",{get:function(){return Number(h.value)},set:function(e){h.value=e,i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}}),p=n.getElementsByClassName("table-body")[0],d=n.getElementsByClassName("table-empty")[0],Object.defineProperty(i,"positions",{get:function(){return i._positions},set:function(e){if(e&&e.length>0){d.style.display="none";for(var t="",i=0;i\n
        '.concat(i+1,'
        \n
        ').concat(Number(e[i].lng.toFixed(10)),'
        \n
        ').concat(Number(e[i].lat.toFixed(10)),'
        \n
        ').concat(Number(e[i].alt.toFixed(4)),"
        \n ");p.innerHTML=t}else p.innerHTML="",d.style.display="flex"}});case 51:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"EventBinding",value:function(e,t){for(var i=function(){var i=[],o=!1,s=[];if(!t[n]||!t[n].attributes)return 1;var a,r=An(t[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==t[n].type?(i.push((function(t){e[r.value]=t.target.checked})),t[n].checked=e[r.value]):(i.push((function(t){var i=t.target.value;"number"==t.target.type&&(i=Number(i)),e[r.value]=i})),"IMG"==t[n].nodeName?t[n].src=e[r.value]:t[n].value=e[r.value]),e._elms[r.value]?e._elms[r.value].push(t[n]):e._elms[r.value]=[t[n]],s.push(r.name);break;case"@click":t[n].addEventListener("click",(function(t){"function"==typeof e[r.value]&&e[r.value](t)})),s.push(r.name);break;case"@change":o=!0,i.push((function(t){var i=t.target.value;"number"==t.target.type&&""!=i&&(i=Number(i),t.target.value=i),"function"==typeof e[r.value]&&e[r.value](t,i)}))}};for(r.s();!(a=r.n()).done;)l()}catch(e){r.e(e)}finally{r.f()}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Hn(this,t,[e,n])).viewer=e.viewer,i.options={},i.options.viewPosition=n.viewPosition,i.options.viewPositionEnd=n.viewPositionEnd,i.options.horizontalViewAngle=n.horizontalViewAngle||0===n.horizontalViewAngle?n.horizontalViewAngle:90,i.options.verticalViewAngle=n.verticalViewAngle||0===n.verticalViewAngle?n.verticalViewAngle:60,i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i._elms={},i.viewPointHeight=n.viewPointHeight,i.ids=[],i.Dialog=o,i.tools=new b.a(i.sdk),i._EventBinding=new Ye,i.html=null,YJ.Analysis.AnalysesResults.push(i),i}return Me()(t,e),h()(t,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"viewPosition",get:function(){return this.options.viewPosition},set:function(e){this.options.viewPosition=e,this.ids[0]&&(this.viewer.entities.getById(this.ids[0]).position=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),this.update()}},{key:"viewPositionEnd",get:function(){return this.options.viewPositionEnd},set:function(e){this.options.viewPositionEnd=e,this.ids[1]&&(this.viewer.entities.getById(this.ids[1]).position=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),this.update()}},{key:"horizontalViewAngle",get:function(){return this.options.horizontalViewAngle},set:function(e){if(this.options.horizontalViewAngle=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var t=this._DialogObject._element.content;t.querySelector("input[name='horizontalViewAngle']").value=e,t.getElementsByClassName("range-node-active")[0].getElementsByClassName("range-node-active-text")[0].innerHTML=e+"°",t.getElementsByClassName("range-process")[0].style.width=e/180*100+"%"}this.update()}},{key:"horizontalViewAngles",get:function(){return this.horizontalViewAngle},set:function(e){this.horizontalViewAngle=e}},{key:"visibleAreaColor",get:function(){return this.options.visibleAreaColor},set:function(e){this.options.visibleAreaColor=e,this.update()}},{key:"invisibleAreaColor",get:function(){return this.options.invisibleAreaColor},set:function(e){this.options.invisibleAreaColor=e,this.update()}},{key:"verticalViewAngle",get:function(){return this.options.verticalViewAngle},set:function(e){this.options.verticalViewAngle=e,this.update()}},{key:"viewDistance",get:function(){if(this.options.viewPosition){var e=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),t=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return Cesium.Cartesian3.distance(e,t)}}},{key:"viewHeading",get:function(){var e,t,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return e=o,t=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(e),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,t,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))}},{key:"viewPitch",get:function(){var e,t,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return e=o,t=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(e),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,t,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.asin(i.z))}},{key:"end",value:function(){var e=this;this.ids.forEach((function(t){var i=e.viewer.entities.getById(t);i&&(i.show=!1)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"draw",value:function(e){t.create(this,e)}},{key:"add",value:function(){this.options.viewPositionEnd&&(this.createLightCamera(),this.createShadowMap(),this.createPostStage(),this.drawSketch(),t.getcanvas(this))}},{key:"update",value:function(){this.clear(),this.add()}},{key:"clear",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,this.sketch&&(this.viewer.entities.removeById(this.sketch.id),this.sketch=null),this.frustumOutline&&(this.viewer.entities.removeById(this.frustumOutline.id),this.frustumOutline=null),this.postStage&&(this.viewer.scene.postProcessStages.remove(this.postStage),this.postStage=null)}},{key:"destroy",value:function(){var e=this;this.clear(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(t){e.viewer.entities.removeById(t)})),this.ids=[],this.viewBillboardPrimitive&&this.viewer.scene.primitives.remove(this.viewBillboardPrimitive),this.viewBillboardPrimitive=null,this.options.viewPosition=null,this.options.viewPositionEnd=null,YJ.Measure.SetMeasureStatus(!1),this._originalShadowMap&&(this.viewer.scene.shadowMap=this._originalShadowMap,this._originalShadowMap=null),this.viewer.shadows=this.viewer._shadows}},{key:"close",value:function(){var e=this;YJ.Measure.SetMeasureStatus(!1),this.end(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(t){e.viewer.entities.removeById(t)}))}},{key:"nodeEdit",value:function(){var e,t=this;YJ.Measure.GetMeasureStatus()?this.tools.message({text:"上一次测量未结束",type:"warning"}):(this.editevent&&this.editevent.destroy(),this.ids.forEach((function(e){t.viewer.entities.getById(e).show=!0})),YJ.Measure.SetMeasureStatus(!0),this.editevent=new te.a(this.sdk),this.editevent.mouse_left((function(i,n){var o=t.viewer.scene.pick(i.position);o&&o.id&&o.id.id&&-1!=t.ids.indexOf(o.id.id)&&(!e||e.id!=o.id.id)&&(e=o.id,t.viewer.entities.getById(t.ids[0]).position=new Cesium.Cartesian3.fromDegrees(t.viewPosition.lng,t.viewPosition.lat,t.viewPosition.alt),t.viewer.entities.getById(t.ids[1]).position=new Cesium.Cartesian3.fromDegrees(t.viewPositionEnd.lng,t.viewPositionEnd.lat,t.viewPositionEnd.alt),t.ControllerObject&&t.ControllerObject.destroy(),t.ControllerObject=new fi(t.sdk,{position:Fn({},t.cartesian3Towgs84(e.position._value,t.sdk.viewer))}),t.ControllerObject.controllerCallBack=function(i,n){i.position.alt<0&&(i.position.alt=0),e.position=new Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt),n&&(0==t.ids.indexOf(o.id.id)?t.viewPosition=i.position:t.viewPositionEnd=i.position,YJ.Measure.SetMeasureStatus(!0))},t.ControllerObject.editTranslational())})),this.editevent.mouse_right((function(i,n){YJ.Measure.SetMeasureStatus(!1),t.editevent&&t.editevent.destroy(),t.ControllerObject&&t.ControllerObject.destroy(),t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),e=null})),this.editevent.mouse_move((function(e,t){})),this.editevent.gesture_pinck_start((function(i,n){var o=new Date;t.editevent.gesture_pinck_end((function(){new Date-o>=500&&(YJ.Measure.SetMeasureStatus(!1),t.editevent&&t.editevent.destroy(),t.ControllerObject&&t.ControllerObject.destroy(),t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),e=null)}))})))}},{key:"createLightCamera",value:function(){if(this.options.viewPosition){this.lightCamera=new Cesium.Camera(this.viewer.scene),this.lightCamera.position=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),this.lightCamera.frustum.near=.001*this.viewDistance,this.lightCamera.frustum.far=this.viewDistance;var e=Cesium.Math.toRadians(this.horizontalViewAngle),t=Cesium.Math.toRadians(this.verticalViewAngle),i=this.viewDistance*Math.tan(e/2)*2/(this.viewDistance*Math.tan(t/2)*2);this.lightCamera.frustum.aspectRatio=i,this.lightCamera.frustum.fov=e>t?e:t,this.lightCamera.setView({destination:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:{heading:Cesium.Math.toRadians(this.viewHeading||0),pitch:Cesium.Math.toRadians(this.viewPitch||0),roll:0}})}}},{key:"createShadowMap",value:function(){this.shadowMap=new Cesium.ShadowMap({context:this.viewer.scene.context,lightCamera:this.lightCamera,enabled:!0,isPointLight:!0,pointLightRadius:this.viewDistance,cascadesEnabled:!1,size:2048,softShadows:!0,normalOffset:!1,fromLightSource:!1}),this._originalShadowMap||(this._originalShadowMap=this.viewer.scene.shadowMap),this.viewer.scene.shadowMap=this.shadowMap}},{key:"createPostStage",value:function(){var e=this;Number(Cesium.VERSION.split(".")[1])>=102&&We()("fs");var t=new Cesium.PostProcessStage({fragmentShader:"\n #define USE_CUBE_MAP_SHADOW true\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n varying vec2 v_textureCoordinates;\n uniform mat4 camera_projection_matrix;\n uniform mat4 camera_view_matrix;\n uniform samplerCube shadowMap_textureCube;\n uniform mat4 shadowMap_matrix;\n uniform vec4 shadowMap_lightPositionEC;\n uniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\n uniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\n uniform float helsing_viewDistance;\n uniform vec4 helsing_visibleAreaColor;\n uniform vec4 helsing_invisibleAreaColor;\n\n struct zx_shadowParameters\n {\n vec3 texCoords;\n float depthBias;\n float depth;\n float nDotL;\n vec2 texelStepSize;\n float normalShadingSmooth;\n float darkness;\n };\n\n float czm_shadowVisibility(samplerCube shadowMap, zx_shadowParameters shadowParameters)\n {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec3 uvw = shadowParameters.texCoords;\n depth -= depthBias;\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n }\n\n vec4 getPositionEC(){\n return czm_windowToEyeCoordinates(gl_FragCoord);\n }\n\n vec3 getNormalEC(){\n return vec3(1.);\n }\n\n vec4 toEye(in vec2 uv,in float depth){\n vec2 xy=vec2((uv.x*2.-1.),(uv.y*2.-1.));\n vec4 posInCamera=czm_inverseProjection*vec4(xy,depth,1.);\n posInCamera=posInCamera/posInCamera.w;\n return posInCamera;\n }\n\n vec3 pointProjectOnPlane(in vec3 planeNormal,in vec3 planeOrigin,in vec3 point){\n vec3 v01=point-planeOrigin;\n float d=dot(planeNormal,v01);\n return(point-planeNormal*d);\n }\n\n float getDepth(in vec4 depth){\n float z_window=czm_unpackDepth(depth);\n z_window=czm_reverseLogDepth(z_window);\n float n_range=czm_depthRange.near;\n float f_range=czm_depthRange.far;\n return(2.*z_window-n_range-f_range)/(f_range-n_range);\n }\n\n float shadow(in vec4 positionEC){\n vec3 normalEC=getNormalEC();\n zx_shadowParameters shadowParameters;\n shadowParameters.texelStepSize=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy;\n shadowParameters.depthBias=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z;\n shadowParameters.normalShadingSmooth=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w;\n shadowParameters.darkness=shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w;\n vec3 directionEC=positionEC.xyz-shadowMap_lightPositionEC.xyz;\n float distance=length(directionEC);\n directionEC=normalize(directionEC);\n float radius=shadowMap_lightPositionEC.w;\n if(distance>radius)\n {\n return 2.0;\n }\n vec3 directionWC=czm_inverseViewRotation*directionEC;\n shadowParameters.depth=distance/radius-0.0003;\n shadowParameters.nDotL=clamp(dot(normalEC,-directionEC),0.,1.);\n shadowParameters.texCoords=directionWC;\n float visibility=czm_shadowVisibility(shadowMap_textureCube,shadowParameters);\n return visibility;\n }\n\n bool visible(in vec4 result)\n {\n result.x/=result.w;\n result.y/=result.w;\n result.z/=result.w;\n return result.x>=-1.&&result.x<=1.\n &&result.y>=-1.&&result.y<=1.\n &&result.z>=-1.&&result.z<=1.;\n }\n\n void main(){\n // 釉色 = 结构二维(颜色纹理, 纹理坐标)\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\n // 深度 = 获取深度(结构二维(深度纹理, 纹理坐标))\n float depth = getDepth(texture2D(depthTexture, v_textureCoordinates));\n // 视角 = (纹理坐标, 深度)\n vec4 viewPos = toEye(v_textureCoordinates, depth);\n // 世界坐标\n vec4 wordPos = czm_inverseView * viewPos;\n // 虚拟相机中坐标\n vec4 vcPos = camera_view_matrix * wordPos;\n float near = .001 * helsing_viewDistance;\n float dis = length(vcPos.xyz);\n if(dis > near && dis < helsing_viewDistance){\n // 透视投影\n vec4 posInEye = camera_projection_matrix * vcPos;\n // 可视区颜色\n // vec4 helsing_visibleAreaColor=vec4(0.,1.,0.,.5);\n // vec4 helsing_invisibleAreaColor=vec4(1.,0.,0.,.5);\n if(visible(posInEye)){\n float vis = shadow(viewPos);\n if(vis > 0.3){\n gl_FragColor = mix(gl_FragColor,helsing_visibleAreaColor,.5);\n } else{\n gl_FragColor = mix(gl_FragColor,helsing_invisibleAreaColor,.5);\n }\n }\n }\n }",uniforms:{shadowMap_textureCube:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_shadowMapTexture")},shadowMap_matrix:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_shadowMapMatrix")},shadowMap_lightPositionEC:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_lightPositionEC")},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState"));var t=e.shadowMap._pointBias;return Cesium.Cartesian4.fromElements(t.normalOffsetScale,e.shadowMap._distance,e.shadowMap.maximumDistance,0,new Cesium.Cartesian4)},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState"));var t=e.shadowMap._pointBias,i=new Cesium.Cartesian2;return i.x=1/e.shadowMap._textureSize.x,i.y=1/e.shadowMap._textureSize.y,Cesium.Cartesian4.fromElements(i.x,i.y,t.depthBias,t.normalShadingSmooth,new Cesium.Cartesian4)},camera_projection_matrix:this.lightCamera.frustum.projectionMatrix,camera_view_matrix:this.lightCamera.viewMatrix,helsing_viewDistance:function(){return e.viewDistance},helsing_visibleAreaColor:Cesium.Color.fromCssColorString(this.visibleAreaColor),helsing_invisibleAreaColor:Cesium.Color.fromCssColorString(this.invisibleAreaColor)}});this.postStage=this.viewer.scene.postProcessStages.add(t)}},{key:"drawFrustumOutline",value:function(){var e=new Cesium.Cartesian3,t=new Cesium.Matrix3,i=new Cesium.Quaternion,n=(this.lightCamera.positionWC,this.lightCamera.directionWC),o=this.lightCamera.upWC,s=this.lightCamera.rightWC;s=Cesium.Cartesian3.negate(s,e);var a=t;Cesium.Matrix3.setColumn(a,0,s,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,n,a);var r=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:r}),id:Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOWGREEN),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumOutline=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:[l],appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1})}))}},{key:"drawSketch",value:function(){this.sketch=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN}}),this.frustumOutline=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),innerRadii:new Cesium.Cartesian3(1e-4,1e-4,1e-4),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:1,slicePartitions:1,outlineColor:Cesium.Color.YELLOWGREEN}})}}],[{key:"create",value:function(e,i){e.destroy();var n=0;YJ.Measure.GetMeasureStatus()?(this.tools.message({text:"上一次测量未结束",type:"warning"}),i(!1)):(e.event=new te.a(e.sdk),e.tip=new St.a("左键选择观测点位置,右键取消",e.sdk),YJ.Measure.SetMeasureStatus(!0),e.event.mouse_left((function(o,s){e.viewPosition||(e.options.viewPosition=e.cartesian3Towgs84(s,e.viewer),e.ids.push(t.create_point(e,s)),e.tip.set_text("左键选择最远观测点位置,右键取消")),2===++n&&(e.options.viewPositionEnd=e.cartesian3Towgs84(s,e.viewer),e.ids.push(t.create_point(e,s)),e.end(),e.update(),i(!0))})),e.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.mouse_right((function(t,n){e.ids.forEach((function(t){e.viewer.entities.removeById(t)})),e.ids=[],e.end(),i(!1)})),e.event.gesture_pinck_start((function(t,n){var o=new Date;e.event.gesture_pinck_end((function(){new Date-o>=500&&(e.ids.forEach((function(t){e.viewer.entities.removeById(t)})),e.ids=[],e.end(),i(!1))}))})))}},{key:"create_point",value:function(e,t){var i=e.randomString(),n=e.cartesian3Towgs84(t,e.viewer),o={id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return e.viewer.entities.add(new Cesium.Entity(o)),i}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var n,o,s,a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),e.next=3,new Te.a(i.sdk.viewer._container,{title:"可视域分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),i.editevent&&i.editevent.destroy(),i.ControllerObject&&i.ControllerObject.destroy(),i.ids.forEach((function(e){i.viewer.entities.removeById(e)}))}});case 3:return i._DialogObject=e.sent,e.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" view-shed",(n=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 位置拾取(起点、终点)\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n 视域夹角\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n 45°\n 90°\n 135°\n 180°\n
        \n
        \n \n
        \n
        \n
        \n
        \n \n ',i._DialogObject.contentAppChild(n),i._DialogObject._element.body.getElementsByClassName("edit")[0].addEventListener("click",(function(){i.nodeEdit()})),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){t.create(i)})),i._DialogObject.footAppChild(o),i.html=n,s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element,(a=n.querySelector("input[name='horizontalViewAngle']")).value=i.options.horizontalViewAngle,r=n.getElementsByClassName("range-node-active")[0],l=r.getElementsByClassName("range-node-active-text")[0],c=n.getElementsByClassName("range-process")[0],u=i.horizontalViewAngle/180*100,r.style.left=u+"%",c.style.width=u+"%",l.innerHTML=i.horizontalViewAngle+"°",a.addEventListener("input",(function(){var e=a.value/180*100;r.style.left=e+"%",c.style.width=e+"%",l.innerHTML=a.value+"°"})),a.addEventListener("change",(function(){clearTimeout(h),h=setTimeout((function(){i.horizontalViewAngle=a.value}),300)}));case 31:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getcanvas",value:function(e){if(e.viewPosition){e.viewBillboardPrimitive&&(e.viewer.scene.primitives.remove(e.viewBillboardPrimitive),e.viewBillboardPrimitive=null);var t=document.createElement("canvas"),i=t.getContext("2d");t.width=220,t.height=180,t.style.background="#000000";var n=new Image,o=[{images:e.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(e.viewPosition.lng.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(e.viewPosition.lat.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/h.png",text:"高度:"+Number((parseFloat(e.viewPosition.alt.toFixed(2))+Number(e.viewPointHeight)).toFixed(2))+" m"},{images:e.getSourceRootPath()+"/img/bubble/heading.png",text:"偏航角:"+parseFloat(e.viewHeading.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/pitch.png",text:"俯仰角:"+parseFloat(e.viewPitch.toFixed(10))+"°"}];n.src=e.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;n.onload=function(){i.drawImage(n,0,0,t.width,t.height),o.forEach((function(n,a){var r=new Image;r.src=n.images,r.onload=function(){i.drawImage(r,12,12+26*a),i.fillStyle="#fff",i.font="12px Arial",i.fillText(n.text,44,28+26*a),++s===o.length&&(e.viewBillboardPrimitive=e.viewer.scene.primitives.add(new Cesium.BillboardCollection),e.viewBillboardPrimitive.add({position:Cesium.Cartesian3.fromDegrees(e.viewPosition.lng,e.viewPosition.lat,e.viewPosition.alt+e.viewPointHeight),image:t,width:200,height:180,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}))}}))}}}}]);var i}(b.a);function Gn(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Wn(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Wn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),Yn(i=Un(this,t,[e,n]),Xn,new Map),i.viewer=e.viewer,i.options={},i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i.ids=[],i.primitives=[],i.viewpointPrimitive=null,i._elms={},i.precision=n.precision,i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new Ye,i.html=null,i.tools=new b.a(e),YJ.Analysis.AnalysesResults.push(i);var s=i.viewer.terrainProvider.availability;return s?i:(i.tools.message({type:"warning",text:"未加载地形数据!"}),Ee()(i))}return Me()(t,e),h()(t,[{key:"draw",value:function(){t.create(this)}},{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"viewPointHeights",get:function(){return this.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.viewPointHeight=t}},{key:"precision",get:function(){return this.options.precision},set:function(e){var t=Math.floor(Number(e));isNaN(t)?t=20:t<1&&(t=1),this.options.precision=t,this._elms.precision&&this._elms.precision.forEach((function(e){e.value=t}))}},{key:"precisions",get:function(){return this.precision},set:function(e){this.precision=e}},{key:"analyse",value:function(){var e=this,i=[this.center.lng,this.center.lat],n=this.radius/1e3,o=turf.circle(i,n,{steps:180,units:"kilometers",properties:{foo:"bar"}});this.viewpointPrimitive||(this.viewpointPrimitive=this.viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection)),this.viewBillboardPrimitive||(this.viewBillboardPrimitive=this.viewer.scene.primitives.add(new Cesium.BillboardCollection));for(var s=[],a=n/this.precision,r=1;r=s.length){var t=Jn(Xn,e).get(f);t&&clearInterval(t.event)}else!function(e){for(var t=[],n=e,o=0;o.01&&Math.abs(b.position.y-f.y)>.01&&Math.abs(b.position.z-f.z)>.01&&(w=Cesium.Color.RED);var k=new Cesium.GroundPolylineGeometry({positions:Cesium.Cartesian3.fromDegreesArray([].concat(nt()(a),nt()(r),nt()(l),nt()(c),nt()(a))),width:2}),_=new Cesium.GeometryInstance({geometry:k,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(w),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});t.push(_)}m.primitives.push(m.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:t,appearance:new Cesium.PolylineColorAppearance})))}(d),d+=1}),0);Jn(Xn,this).set(f,{event:v})}},{key:"destroy",value:function(){var e,t,i,n,o=Gn(Jn(Xn,this));try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);clearInterval(r.event)}}catch(e){o.e(e)}finally{o.f()}t=Xn,i=this,n=new Map,t.set(qn(t,i),n);for(var l=0;l\n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 采样精度\n \n
        \n
        \n
        \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){i.viewer.terrainProvider.availability?t.create(i):window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500})})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getcanvas",value:function(e){var t=document.createElement("canvas"),i=t.getContext("2d");t.width=220,t.height=140,t.style.background="#000000";var n=new Image,o=[{images:e.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(e.center.lng.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(e.center.lat.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/h.png",text:"视高:"+e.viewPointHeight+" m"},{images:e.getSourceRootPath()+"/img/bubble/radius.png",text:"半径:"+e.radius+" m"}];n.src=e.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;return new Promise(function(){var e=_()(S.a.mark((function e(a,r){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.onload=function(){i.drawImage(n,0,0,t.width,t.height),o.forEach((function(e,n){var r=new Image;r.src=e.images,r.onload=function(){i.drawImage(r,12,12+26*n),i.fillStyle="#fff",i.font="12px Arial",i.fillText(e.text,44,28+26*n),++s===o.length&&a(t)}}))};case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}())}}]);var i}(b.a);function Kn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qn(e){for(var t=1;t35?35:200*e;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<=2)t.tools.message({type:"warning",text:"至少拥有三个坐标位置!"});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?h:r,l=p>l?p:l}o.push(o[0]);var d=[s,a,r,l],m=turf.polygon([o]),f=turf.squareGrid(d,e,{mask:m});t.createEllipse(f)}}))}},{key:"createNew4Num",value:function(e){var t=this,i=e;this.Draw.start((function(e,n){if(!n||n.length<=2)t.tools.message({type:"warning",text:"至少拥有三个坐标位置!"});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?h:r,l=p>l?p:l}o.push(o[0]);var d=[s,a,r,l],m=r-s,f=l-a;f=f>m?f:m;var v=turf.polygon([o]),g=turf.area(v);g>5e12?i-=25:g>1e12?i-=20:g>5e11?i-=15:g>1e11?i-=10:g>6e10&&(i-=5);var y=f/i,b=2e3*y>35?35:2e3*y;t.arrowWidth=b<15?15:b;var C=turf.squareGrid(d,y,{units:"degrees",mask:v});t.createEllipse(C)}}))}},{key:"createEllipse",value:function(e){for(var t=[],i=0;i0&&function e(i){Cesium.sampleTerrainMostDetailed(p.viewer.scene.terrainProvider,i).then((function(i){m++;var n=t.slice(m*d,(m+1)*d);n.length>0&&e(n);var o=[],s=i.reduce((function(e,t,i,n){var s=10*i,a=s+10,r=n.slice(s,a);return 0!=r.length&&(o[i]=r),o}),[]);p.calculateSlope(s)}))}(f)}},{key:"createPolygonInsrance",value:function(e,t,i){for(var n=[],o=1;o0?[Cesium.Cartographic.toCartesian(s),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(s)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:r,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}},{key:"calculateSlope",value:function(e){for(var t=this,i=[],n=[],o=0;or&&(r=u,l=c)}var h=new Cesium.Cartographic(a.longitude,a.latitude,0),p=new Cesium.Cartographic(s[l].longitude,s[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(h),Cesium.Cartographic.toCartesian(p)),m=Math.abs(r/d),f=this.calculateSlopeColor(m,.4),v=this.createPolygonInsrance(s,f,m);n.push(v);var g=l>4?s[l-4]:s[l+4],y=s[l],b=this.createArrowInstance(y,a,g,r,m);i.push(b)}var C=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:n,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),w=this.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));this.result.push(w,C),this.event=new te.a(this.sdk);var k=function(e,i){var n=document.getElementById("SlopeAspect-box");n||((n=document.createElement("div")).id="SlopeAspect-box",n.style.pointerEvents="none",n.style.display="none",n.style.position="absolute",n.style.background="#333333",n.style.color="#fff",n.style.color="#fff",n.style.padding="5px",n.style.fontSize="12px",n.style.borderRadius="5px",n.style.transform="translate(-50%, -10px)",n.innerHTML='\n
        坡度:
        \n \n ',document.body.appendChild(n));var o=n.getElementsByClassName("value")[0],s=Qn({},e.position),a=t.sdk.viewer.scene.pick(s);if(a&&a.id&&a.id.type&&"SlopeAspect"===a.id.type){var r=0,l=0;if(t.sdk.viewer&&t.sdk.viewer._element){var c=t.sdk.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];r=c.getBoundingClientRect().top+window.scrollY,l=c.getBoundingClientRect().left+window.scrollX}n.style.display="block",n.style.left=s.x+2+l+"px",n.style.top=s.y-20+r+"px",o.innerHTML="坡度:"+Number(Cesium.Math.toDegrees(a.id.value||0).toFixed(2))+"°"}else n.style.display="none"};this.event.mouse_move((function(e,t){var i={position:Qn({},e.endPosition)};k(i)})),this.event.mouse_left(k),this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll},this.sdk.viewer.scene.preRender.addEventListener(this._watchEvent,this)}},{key:"_watchEvent",value:function(){if(this._camera.position.x.toFixed(8)!==this.sdk.viewer.camera.position.x.toFixed(8)||this._camera.position.y.toFixed(8)!==this.sdk.viewer.camera.position.y.toFixed(8)||this._camera.position.z.toFixed(8)!==this.sdk.viewer.camera.position.z.toFixed(8)||this._camera.heading.toFixed(8)!==this.sdk.viewer.camera.heading.toFixed(8)||this._camera.pitch.toFixed(8)!==this.sdk.viewer.camera.pitch.toFixed(8)||this._camera.roll.toFixed(8)!==this.sdk.viewer.camera.roll.toFixed(8)){var e=document.getElementById("SlopeAspect-box");e&&(e.style.display="none")}this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll}}},{key:"calculateSlopeColor",value:function(e,t){return e<.00872686779075879?"rgba(85,182,43,"+t+")":e<.03492076949174773?"rgba(135,211,43,"+t+")":e<.08748866352592401?"rgba(204,244,44,"+t+")":e<.2679491924311227?"rgba(245,233,44,"+t+")":e<.7002075382097097?"rgba(255,138,43,"+t+")":e<1.4281480067421144?"rgba(255,84,43,"+t+")":"rgba(255,32,43,"+t+")"}},{key:"destroy",value:function(){var e=this;this.result&&this.result.forEach((function(t){e.viewer.scene.primitives.remove(t)})),this.result=[],this.sdk.viewer.scene.preRender.removeEventListener(this._watchEvent,this)}}])}(b.a);function to(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var io=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),window.addEventListener("resize",(function(){i.echartsObject&&i.echartsObject.resize()})),(i=to(this,t,[e])).viewer=e.viewer,i.Dialog=n,YJ.Analysis.AnalysesResults.push(i),t.create(i),i}return Me()(t,e),h()(t,[{key:"reDraw",value:function(){t.create(this)}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"formatter",value:function(e,t){if(this.polyline){var i={show:!0,pixelSize:10,color:Cesium.Color.GREEN,outlineColor:Cesium.Color.SKYBLUE,outlineWidth:3,disableDepthTestDistance:Number.POSITIVE_INFINITY};this.tipEntity?this.tipEntity.position=Cesium.Cartesian3.fromDegrees(e[0],e[1],Number(t[1])):this.tipEntity=this.sdk.viewer.entities.add({position:Cesium.Cartesian3.fromDegrees(e[0],e[1],Number(t[1])),point:i})}}},{key:"clean",value:function(){this.end(),this._currentId=null,this.entityHasCreated=!1,this.polyline&&this.viewer.entities.remove(this.polyline),this.tipEntity&&this.viewer.entities.remove(this.tipEntity),this.polyline=null,this.tipEntity=null}},{key:"destroy",value:function(){this.clean(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}}],[{key:"create",value:function(e){var i=this;this._currentId=Cesium.createGuid();var n=this._currentId;if(e.clean(),YJ.Measure.GetMeasureStatus())console.warn("上一次测量未结束");else{YJ.Measure.SetMeasureStatus(!0),e.tip=new St.a("左键确定,右键取消",e.sdk),e.event=new te.a(e.sdk),e.positions=[],e.points_ids=[];var o=[];e.event.mouse_left(function(){var s=_()(S.a.mark((function s(a,r){var l;return S.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:try{e.entityHasCreated||t.create_polyline(e),o.push(r),e.points_ids.push(e.create_point(r)),2==o.length&&(e.end(),l=[],o.forEach((function(t){l.push(e.cartesian3Towgs84(t,e.viewer))})),t.interPoints(e).then((function(t){i._currentId&&i._currentId===n&&e.clickCallBack(t)})))}catch(e){console.log(e)}case 1:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}()),e.event.mouse_right((function(t,i){o=[],e.clean()})),e.event.mouse_move((function(t,i){e.positions=o.concat(i),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500){o=[],e.end()}}))}))}}},{key:"create_polyline",value:function(e){e.entityHasCreated=!0;var t=e.randomString();return e.polyline=e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(e.color),clampToGround:!0,zIndex:99999999}})),t}},{key:"interPoints",value:(n=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,E,P,O;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=t.viewer,n=t.positions,o=[],s=[],a=0;ay&&(y=g),(b=parseInt(y/2))>150&&(b=150),b<2&&(b=2),C=m/(b-1),w=0;case 24:if(!(w\n
        \n ',i._DialogObject.contentAppChild(o),(s=document.createElement("button")).innerHTML='重新绘制',s.style.width="auto",s.addEventListener("click",(function(){t.create(i),t.initEcharts(i)})),i._DialogObject.footAppChild(s),t.initEcharts(i,n);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})},{key:"initEcharts",value:function(e,t){var i,n=[],o=[],s=t;if(s){for(var a=s[s.length-1].distance,r=Math.ceil(a),l=0;l高度:"+n[1]+"m
        坐标:"+i[0].toFixed(5)+","+i[1].toFixed(5)}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",max:r,scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:n,smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}else{var m=document.getElementsByClassName("profile-echarts")[0];e.echartsObject=echarts.init(m),i={tooltip:{trigger:"axis",textStyle:{align:"left"}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:[],smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}e.echartsObject.setOption(i)}}]);var i,n}(Dn.a);function no(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var oo=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=no(this,t,[e,n])).viewer=e.viewer,i.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},i.options={},i._elms={},i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new Ye,i.tools=new b.a(i.sdk),YJ.Analysis.AnalysesResults.push(i),t.create(i),i}return Me()(t,e),h()(t,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"destroy",value:function(){var e=this;this.resultObject.entities.forEach((function(t){e.viewer.entities.remove(t)})),this.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,YJ.Measure.SetMeasureStatus(!1)}}],[{key:"create",value:function(e){if(YJ.Measure.GetMeasureStatus())e.tools.message({text:"上一次测量未结束",type:"warning"});else{e._DialogObject&&e._DialogObject.close&&(e._DialogObject.close(),e._DialogObject=null),e.event=new te.a(e.sdk),e.tip=new St.a("左键点击创建视角起点",e.sdk),YJ.Measure.SetMeasureStatus(!0);e.event.mouse_left(function(){var i=_()(S.a.mark((function i(n,o){var s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e.tip.set_text("左键创建视角终点,右键结束通视分析"),e.resultObject.viewPoint){i.next=16;break}if(s=e.cartesian3Towgs84(o,e.viewer),!e.sdk.viewer.terrainProvider.availability){i.next=7;break}return i.next=6,Cesium.sampleTerrainMostDetailed(e.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(s.lng,s.lat)]);case 6:a=i.sent;case 7:a&&a[0].height>s.alt&&(s.alt=a[0].height),s.alt=s.alt+e.viewPointHeight,r=Cesium.Cartesian3.fromDegrees(s.lng,s.lat,s.alt),e.resultObject.viewPoint=r,l=e.viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),e.resultObject.objectExclude.push(l),e.resultObject.entities.push(l),i.next=33;break;case 16:e.resultObject.targetPoint=o,c=e.viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),e.resultObject.objectExclude.push(c),e.resultObject.entities.push(c),u=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.resultObject.targetPoint,e.resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),h=new Cesium.Ray(e.resultObject.viewPoint,u),p=e.viewer.scene.drillPickFromRay(h),d={},m=0;case 25:if(!(mv?(y=e.viewer.entities.add({polyline:{positions:[e.resultObject.viewPoint,d.position],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),e.resultObject.entities.push(y),b=e.viewer.entities.add({polyline:{positions:[d.position,e.resultObject.targetPoint],material:Cesium.Color.RED,width:3,zIndex:99999999}}),e.resultObject.entities.push(b),e.resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[f,v,g]})):(C=e.viewer.entities.add({polyline:{positions:[e.resultObject.viewPoint,e.resultObject.targetPoint],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),e.resultObject.entities.push(C),e.resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[f,v,g]})));case 33:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()),e.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.mouse_right((function(t,i){e.end()})),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){new Date-n>=500&&e.end()}))}))}}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),e.next=3,new Te.a(i.sdk.viewer._container,{title:"多点视线分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1)}});case 3:return i._DialogObject=e.sent,e.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" visibility",(n=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){t.create(i)})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"distance",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e),n=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n);var s=o.surfaceDistance;return s=Math.sqrt(Math.pow(s,2)+Math.pow(n.height-i.height,2))}}]);var i}(b.a),so=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.viewer=t.viewer,this.tools=new b.a(t);var n=this.viewer.terrainProvider.availability;if(!n)return this.error="未加载地形数据!",void this.tools.message({type:"warning",text:this.error});this.positions=i.positions,this.interfaceNum=i.interfaceNum||25,this.colorFill=i.colorFill||["#8CEA00","#B7FF4A","#FFFF37","#FFE66F","#FFD1A4","#FFCBB3","#FFBD9D","#FFAD86","#FF9D6F","#FF8F59","#FF8040","#FF5809","#F75000","#D94600","#BB3D00","#A23400","#842B00","#642100","#4D0000","#2F0000"],this.countorLineList=Cesium.defaultValue(i.countorLineList,[]),YJ.Analysis.AnalysesResults.push(this),this.createNewLine()}return h()(e,[{key:"type",get:function(){return"ContourAnalysis"}},{key:"createNewLine",value:function(){e.interpolatePoint(this)}},{key:"getObjectIndex",value:function(e,t){for(var i=0;it)return i}},{key:"clear",value:function(e){if(e){this.viewer.dataSources.remove(e);var t=this.countorLineList.indexOf(e);this.countorLineList.splice(t,1)}}},{key:"destroy",value:function(){var e=this;this.countorLineList.forEach((function(t){e.viewer.dataSources.remove(t)})),this.countorLineList=[]}}],[{key:"interpolatePoint",value:function(e){for(var t=e.positions,i=[],n={minX:360,maxX:-360,minY:180,maxY:-180},o=0;o2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=lo(this,t,[e,o])).viewer=e.viewer,n.tiles3d=i,n.options=ro({},o),n.options.regionsType=n.options.regionsType||!1,YJ.Analysis.SectionResults.push(n),n.Planes=[],n.tools=new b.a,t.start(n),n}return Me()(t,e),h()(t,[{key:"regionsType",get:function(){return this.options.regionsType},set:function(e){this.options.regionsType=e,this.Planes.length>0&&(this.Planes=[],t.planeCollection(this))}},{key:"destroy",value:function(){this.Planes=[],this.tiles3d.clippingPlanes&&(this.tiles3d.clippingPlanes.enabled=!1,this.tiles3d.clippingPlanes.removeAll())}}],[{key:"start",value:function(e){var i=e.options.positions||[];if(!e.isConvex(i))return e.tools.message({type:"warning",text:"不支持凹多边形"}),void console.log("不支持凹多边形");e.inverseTransform=function(e){var t,i=e.root.transform;t=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform);return Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}(e.tiles3d),e.Planes=[];var n=[];if(i.length>0){for(var o=0;o=0;n--)0===n?e.Planes.push(a(t[n],t[t.length-1],e.inverseTransform)):e.Planes.push(a(t[n],t[n-1],e.inverseTransform));if(e.tiles3d.clippingPlanes){e.tiles3d.clippingPlanes.removeAll();for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=uo(this,t,[e])).viewer=e.viewer,i.options=n||{},i.options.height=i.options.height||0===i.options.height?i.options.height:10,i.options.show=!i.options.show&&!1!==i.options.show||i.options.show,i.bottomImg=i.getSourceRootPath()+"/img/excavationregion_top.jpg",i.wallImg=i.getSourceRootPath()+"/img/excavationregion_side.jpg",i.splitNum=Cesium.defaultValue(n.splitNum,50),i.Draw=new Bn(i.sdk),i.bottomMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#735d4f"))}),i.wallMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#976b4e"))}),i.tools=new b.a(i.sdk);var o=new Image,s=new Image;return o.src=i.bottomImg,s.src=i.wallImg,o.crossOrigin="Anonymous",s.crossOrigin="Anonymous",o.onload=function(){var e=document.createElement("canvas");e.width=o.width,e.height=o.height,e.getContext("2d").drawImage(o,0,0,o.width,o.height);var t=e.toDataURL("image/jpg");i.bottomMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:t}}}),i.bottomSurface&&(i.bottomSurface.appearance.material=i.bottomMaterial)},s.onload=function(){var e=document.createElement("canvas");e.width=s.width,e.height=s.height,e.getContext("2d").drawImage(s,0,0,s.width,s.height);var t=e.toDataURL("image/jpg");i.wallMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:t}}}),i.wellWall&&(i.wellWall.appearance.material=i.wallMaterial)},i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e,this.switchExcavate(e)}},{key:"height",get:function(){return this.options.height},set:function(e){this.options.height=e}},{key:"init",value:function(){t.edit(this,!0)}},{key:"startCreate",value:function(){var e=this;this.Draw.start((function(t,i){if(i&&!(i.length<=2))return e.isConvex(i)?void e.updateData(i):(e.tools.message({type:"warning",text:"不支持凹多边形"}),void console.log("不支持凹多边形"));e.tools.message({type:"warning",text:"至少拥有三个坐标位置!"})}))}},{key:"updateData",value:function(e){var t=this.viewer;this.clear();for(var i=[],n=[],o=0;o=0;e--)this.viewer.scene.primitives.remove(ho[e]);ho=[],this.Draw&&this.Draw.end()}},{key:"destroy",value:function(){this.clear()}},{key:"prepareWell",value:function(e){for(var t=e.length,i=this.excavateMinHeight-this.height,n=[],o=[],s=[],a=0;a\n
        \n
        \n
        \n 挖掘高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 绘制开挖区域\n \n
        \n
        \n 清除开挖区域\n \n
        \n
        \n
        \n ',t._DialogObject.contentAppChild(n),n.getElementsByClassName("start-excavation")[0].addEventListener("click",(function(){t.startCreate()})),n.getElementsByClassName("clean-excavation")[0].addEventListener("click",(function(){t.clear()})),(o=n.querySelector("input[name='height']")).value=t.height,o.addEventListener("change",(function(e){var i=e.target.value;(i=Number(i))<.01&&(i=.01,e.target.value=i,t.height=i)})),o.addEventListener("blur",(function(e){var i=e.target.value;i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),i<.01&&(i=.01),e.target.value=i,t.height=i})),e.next=22;break;case 21:t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null);case 22:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})}]);var i}(b.a);function mo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function fo(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(c()(this,t),n=vo(this,t,[e]),r()(n,"getUniqueArray",(function(e){return e.filter((function(e,t,i){return i.indexOf(e,0)===t}))})),!i||!n.sdk||!n.sdk.viewer)return Ee()(n);if(n.options=fo({},o),n.options.id=o.id||n.randomString(),n.options.name=o.name||"压平面",n.options.positions=o.positions||[],n.options.show=!o.show&&!1!==o.show||o.show,n.tileset=i,n.Dialog=s,!n.options.height&&0!==n.options.height){for(var a=n.options.positions[0].alt,l=0;ln.options.positions[l].alt&&(a=n.options.positions[l].alt);n.options.height=a}return go[n.tileset.id]?go[n.tileset.id].push(fo({},n.options)):go[n.tileset.id]=[fo({},n.options)],n.center=i.boundingSphere.center.clone(),n.center84=n.cartesian3Towgs84(n.center,n.sdk.viewer),n.matrix=Cesium.Transforms.eastNorthUpToFixedFrame(n.center.clone()),n.localMatrix=Cesium.Matrix4.inverse(n.matrix,new Cesium.Matrix4),n.addFlat(),n}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e;for(var t=0;t= max(p1[1], p2[1])){\n continue;\n }\n float x = p1[0] + ((point[1] - p1[1]) * (p2[0] - p1[0])) / (p2[1] - p1[1]);\n if(x > point[0]){\n nCross++;\n }\n }\n return int(mod(float(nCross), float(2))) == 1;\n }\n ")})),n}},{key:"updateShader",value:function(e,t){var i=new Cesium.CustomShader({uniforms:{u_tileset_localToWorldMatrix:{type:Cesium.UniformType.MAT4,value:this.matrix},u_tileset_worldToLocalMatrix:{type:Cesium.UniformType.MAT4,value:this.localMatrix},u_flatHeight:{type:Cesium.UniformType.FLOAT,value:this.flatHeight}},vertexShaderText:"\n // 所有isPointInPolygon函数\n ".concat(e,"\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput){\n vec3 modelMC = vsInput.attributes.positionMC;\n vec4 model_local_position = vec4(modelMC.x, modelMC.y, modelMC.z, 1.0);\n vec4 tileset_local_position = u_tileset_worldToLocalMatrix * czm_model * model_local_position;\n vec2 position2D = vec2(tileset_local_position.x,tileset_local_position.y);\n float ground_z = 0.0;\n // 多个多边形区域\n ").concat(t,"\n }")});this.tileset.customShader=i,this.sdk.viewer.scene.requestRender()}},{key:"cartesiansToLocal",value:function(e){for(var t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{text:"左键开始,右键结束;"};return c()(this,t),(i=wo(this,t,[e,n])).options=Co({},n),i.event=new te.a(e),i.tip=new St.a(n.text,e),i.viewer=e.viewer,i.defaultColor="rgba(246,49,49,0.55)",i.ids=[],YJ.Measure.Measures.push(i),i._isDestroy=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(){this.setPickStatus(!1),YJ.Measure.SetMeasureStatus(!0)}},{key:"destroy",value:function(){var e=this;this._isDestroy=!0,this.end(),this.ids.forEach((function(t){e.remove_entity(t)}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"create_point",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.randomString(),n=this.cartesian3Towgs84(e,this.viewer);return this.viewer.entities.add(new Cesium.Entity({id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{show:t,image:this.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(e){this.viewer.entities.removeById(e)}}])}(b.a);function _o(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return xo(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=So(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(s=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=_o(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return s.apply(this,arguments)})},{key:"computeDisByTowPoint",value:(o=_()(S.a.mark((function e(i,n){var o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.computeDistance2([i,n]),s=10,a=function(e){if(!l._isDestroy){var i=l.getLabel("贴地距离:"+Number(e).toFixed(2)+"米");i.pixelOffset=new Cesium.Cartesian2(0,-32),l.ids.push(t.create_point(Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),{label:i},l))}},r=function(){var e=_()(S.a.mark((function e(t){var o,s,r,c,u,h,p,d,m,f;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=l.chunkLine([i,n],t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),r=[],c=_o(s),e.prev=5,c.s();case 7:if((u=c.n()).done){e.next=16;break}return h=u.value,p=s.indexOf(h),e.next=12,l.sampleHeight({lng:h[0],lat:h[1],alt:0},p);case 12:d=e.sent,r.push(d);case 14:e.next=7;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),c.e(e.t0);case 21:return e.prev=21,c.f(),e.finish(21);case 24:m=0,f=r.length-1,r.forEach((function(e,t){if(t!==f){var i=l.computeDistance2([e.position,r[t+1].position]),n=Math.abs(e.position.alt-r[t+1].position.alt),o=Math.sqrt(i*i+n*n);m+=o}})),a(m);case 28:case"end":return e.stop()}}),e,null,[[5,18,21,24]])})));return function(t){return e.apply(this,arguments)}}(),!(o>2)){e.next=10;break}return s=o/20,e.next=8,r(s);case 8:e.next=17;break;case 10:if(!(o<1)){e.next=14;break}a(o),e.next=17;break;case 14:return s=1,e.next=17,r(s);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClampToHeight(t,nt()(this.sdk.viewer.entities.values));case 2:return n=e.sent,t.alt=n,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Eo(t,"destroy",this,3)([])}},{key:"end",value:function(){Eo(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20}),zIndex:99999999}})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o,s}(ko);function Oo(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Do(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Do(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Mo(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=Oo(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:return n=e.sent,t.alt=n[0].height,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),To(t,"destroy",this,3)([])}},{key:"end",value:function(){To(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20})},zIndex:99999999})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o}(ko);function Bo(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return jo(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?jo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ao(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i.event=new te.a(e),i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=Bo(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:return n=e.sent,t.alt=n[0].height,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n(0,o):i(a,o)}))}))}}},{key:"computeAngle",value:function(e,i){var n=this.computeDistance2([e,i]),o=Math.abs(e.alt-i.alt),s=n/Math.sqrt(n*n+o*o),a=Math.acos(s),r=this.radiansToDegrees(a),l=this.getLabel("坡度:"+r.toFixed(2)+"°");l.pixelOffset=new Cesium.Cartesian2(0,-32),this.ids.push(t.create_point(Cesium.Cartesian3.fromDegrees(i.lng,i.lat,i.alt),{label:l},this))}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Lo(t,"destroy",this,3)([])}},{key:"end",value:function(){Lo(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20}),zIndex:99999999}})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o}(ko);function Ro(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function zo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Fo(this,t,[e,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Ho(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i,n=0,o=0,s=function(s,a){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(zo({},a)),e.ids.push(e.create_point(zo({},a),!1));var r=e.cartesian3Towgs84(zo({},a),e.viewer);if(r.alt>n&&(n=r.alt),e.positions=e.cachePositions.concat(zo({},a)),e.tip.setPosition(zo({},a),s.position.x,s.position.y),e.positions.length>2){var l=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);l.push({lng:i.lng,lat:i.lat})}));var c=e.computeCenter(l),u=e.computeArea(l);o=u,e.center=new Cesium.Cartesian3.fromDegrees(c.lng,c.lat,n),i=e.center,e.text="投影面积:"+u+" ㎡"}};this.event.mouse_left(s),this.event.mouse_move((function(t,i){if(e.tip.setPosition(zo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(zo({},i)),e.positions.length>2){var o=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);o.push({lng:i.lng,lat:i.lat})}));var s=e.computeCenter(o),a=e.computeArea(o);e.center=new Cesium.Cartesian3.fromDegrees(s.lng,s.lat,n),e.text="投影面积:"+a+" ㎡"}})),this.event.mouse_right((function(t,n){if(e.positions=e.cachePositions,e.center=i,e.positions.length<3){e.text="";console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),e.destroy()}else e.text="投影面积:"+o+" ㎡";e.end()})),this.event.gesture_pinck_start((function(t,i){var n=new Date,o={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-n>=500?(e.positions=e.cachePositions,e.end()):s(o,i)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polygon_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Ho(t,"destroy",this,3)([])}},{key:"end",value:function(){Ho(t,"end",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),e.viewer.entities.add(new Cesium.Entity({id:t,label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return e.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)}),!1),material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions.length?e.positions.concat(e.positions[0]):e.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.lineColor||e.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return t}}])}(ko);function Go(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Wo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Uo(this,t,[e,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Yo(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i=0,n=function(n,o){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(Wo({},o)),e.ids.push(e.create_point(Wo({},o),!1));var s=e.cartesian3Towgs84(Wo({},o),e.viewer);s.alt>i&&(i=s.alt),e.positions=e.cachePositions.concat(Wo({},o)),e.tip.setPosition(Wo({},o),n.position.x,n.position.y)},o=function(t,n){if(e.positions=e.cachePositions,e.positions.length>2){var o=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);o.push({lng:i.lng,lat:i.lat})})),setTimeout((function(){var t=e.computeCenter(o),n=e.computeSignedArea(e.viewer,o);e.center=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,i),e.text="贴地面积:"+n+" ㎡"}),0)}else{console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),e.destroy()}e.end()};this.event.mouse_left(n),this.event.mouse_move((function(t,i){e.tip.setPosition(Wo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(Wo({},i))})),this.event.mouse_right(o),this.event.gesture_pinck_start((function(t,i){var s=new Date,a={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-s>=500?o():n(a,i)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polygon_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Yo(t,"destroy",this,3)([])}},{key:"end",value:function(){Yo(t,"end",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),e.viewer.entities.add(new Cesium.Entity({id:t,label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return e.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)}),!1),material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions.length?e.positions.concat(e.positions[0]):e.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.lineColor||e.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return t}}])}(ko);function qo(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Xo(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Zo=function(e){function t(e){return c()(this,t),qo(this,t,[e])}return Me()(t,e),h()(t,[{key:"cal_center",value:function(e){var t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.computeCenter([t,i]);return Cesium.Cartesian3.fromDegrees(n.lng,n.lat,(t.alt+i.alt)/2)}},{key:"cal_distance",value:function(e){var t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.computeDistance2([t,i]);return t.alt=t.alt.toFixed(2),i.alt=i.alt.toFixed(2),t.alt===i.alt?n:0===Number(n)?Math.abs(t.alt-i.alt).toFixed(2):Math.sqrt(n*n+Math.pow(Math.abs(t.alt-i.alt).toFixed(2),2)).toFixed(2)}},{key:"createPolyline",value:function(e){var t=this,i=this.id_map.get(e);this.viewer.entities.add(new Cesium.Entity({id:e,position:new Cesium.CallbackProperty((function(){return 2===i.positions.length?t.cal_center(i.positions):Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(){return 2===i.positions.length?t.cal_distance(i.positions)+"米":"0米"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-10),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(){return i.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999}})),this.ids.push(e)}},{key:"create_angle_label",value:function(e,t,i,n){var o=this,s=new Cesium.Entity({id:i,position:new Cesium.CallbackProperty((function(){return 2===e.length?o.cal_point(e,t):Cesium.Cartesian3()})),label:{text:new Cesium.CallbackProperty((function(){return 2===e.length?o.cal_angle(e,t,n)+"°":"0°"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(15,-10)}});this.viewer.entities.add(s)}},{key:"cal_point",value:function(e,t){for(var i=0;i=500?e.end():r(o,i)}))}))}}},{key:"end",value:function(){Xo(t,"end",this,3)([])}},{key:"destroy",value:function(){Xo(t,"destroy",this,3)([])}}])}(ko);function Ko(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Qo(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var $o=function(e){function t(e){var i;return c()(this,t),(i=Ko(this,t,[e,{text:""}])).defaultColor="#f11515",i.locationID=i.randomString(),i.position=new Cesium.Cartesian3,i.text="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Qo(t,"start",this,3)([]),this.cache_id=t.create_point(this),t.createLocation(this);var i=function(t,i){e.position=i;var n=e.viewer.entities.getById(e.locationID);n&&(n.show=!0);var o=e.cartesian3Towgs84(i,e.viewer),s=Object(X.o)();if("EPSG:4326"===s)e.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=e.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);e.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}e.end()};this.event.mouse_left(i),this.event.mouse_right((function(t,i){e.destroy(),e.end()})),this.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y);var n=e.viewer.entities.getById(e.locationID);n&&(n.show=!0),e.position=i;var o=e.cartesian3Towgs84(i,e.viewer),s=Object(X.o)();if("EPSG:4326"===s)e.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=e.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);e.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}})),this.event.gesture_pinck_start((function(t,n){var o=new Date;t.position1.x,t.position2.x,t.position1.y,t.position2.y;e.event.gesture_pinck_end((function(){new Date-o>=500?(e.destroy(),e.end()):i(0,n)}))}))}}},{key:"destroy",value:function(){this.remove_entity(this.locationID),this.remove_entity(this.cache_id),Qo(t,"destroy",this,3)([])}},{key:"end",value:function(){Qo(t,"end",this,3)([])}}],[{key:"createLocation",value:function(e){e.viewer.entities.add(new Cesium.Entity({id:e.locationID,show:!1,position:new Cesium.CallbackProperty((function(){return e.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"22px Microsoft YaHei",fillColor:new Cesium.Color.fromCssColorString(e.defaultColor),style:Cesium.LabelStyle.FILL_AND_OUTLINE,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(-100,-50)},billboard:{image:e.getSourceRootPath()+"/img/location.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,width:48,height:48}}))}},{key:"create_point",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:r()({image:e.getSourceRootPath()+"/img/point.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY},"color",Cesium.Color.WHITE.withAlpha(.99))})),t}}])}(ko);function es(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function ts(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var is=function(e){function t(e){return c()(this,t),es(this,t,[e,{text:"左键开始,右键取消"}])}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){ts(t,"start",this,3)([]),this.positions=[],this.position=new Cesium.Cartesian3,this.height=0,this.text="",this.circleRadius=0;var i=0;this.firstpoint=null;var n=function(n,o){if(null===e.firstpoint&&(e.positions.push(o),e.firstpoint=e.cartesian3Towgs84(o,e.viewer),e.ids.push(t.create_polygon(e)),e.ids.push(t.create_point(e,o))),i++,e.tip.setPosition(o,n.position.x,n.position.y),2===i){if(e.firstpoint){var s=e.cartesian3Towgs84(o,e.viewer);e.positions[1]=Cesium.Cartesian3.fromDegrees(e.firstpoint.lng,e.firstpoint.lat,s.alt),e.positions[2]=o,e.position=e.positions[1],e.circleRadius=e.computeDistance2([e.firstpoint,s]),e.height=Number((s.alt-e.firstpoint.alt).toFixed(2)),e.text="相对高度:"+e.height+" 米",e.tip.set_text("左键完成,右键取消;半径:"+e.circleRadius+" 米")}e.ids.push(t.create_point(e,o,{label:{text:"半径:"+e.circleRadius+" 米"}})),e.end()}};this.event.mouse_left(n),this.event.mouse_move((function(t,i){if(e.tip.setPosition(i,t.endPosition.x,t.endPosition.y),e.firstpoint){var n=e.cartesian3Towgs84(i,e.viewer);e.positions[1]=Cesium.Cartesian3.fromDegrees(e.firstpoint.lng,e.firstpoint.lat,n.alt),e.positions[2]=i,e.position=e.positions[1],e.circleRadius=e.computeDistance2([e.firstpoint,n]),e.height=Number((n.alt-e.firstpoint.alt).toFixed(2)),e.text="相对高度:"+e.height+" 米",e.tip.set_text("左键完成,右键取消;半径:"+e.circleRadius+" 米")}})),this.event.mouse_right((function(t,i){e.end(),e.destroy()})),this.event.gesture_pinck_start((function(t,i){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?(e.end(),e.destroy()):n(s,i)}))}))}}},{key:"end",value:function(){ts(t,"end",this,3)([])}},{key:"destroy",value:function(){ts(t,"destroy",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();e.viewer.entities.add(new Cesium.Entity({id:t,billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)},position:new Cesium.CallbackProperty((function(){return e.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999},ellipse:{height:new Cesium.CallbackProperty((function(){return e.height+e.firstpoint.alt}),!1),semiMinorAxis:new Cesium.CallbackProperty((function(t){return e.circleRadius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(t){return e.circleRadius}),!1),material:new Cesium.Color.fromCssColorString(e.defaultColor)}}));return t}},{key:"create_point",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.randomString(),o=e.cartesian3Towgs84(t,e.viewer),s={id:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return i.label&&(s.label={text:i.label.text,scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15)}),e.viewer.entities.add(new Cesium.Entity(s)),n}}])}(ko);function ns(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function os(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ss=function(e){function t(e){var i;return c()(this,t),(i=ns(this,t,[e,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return Me()(t,e),h()(t,[{key:"createPolyline",value:function(){var e=this,t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}})),t}},{key:"end",value:function(){os(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;os(t,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(t){t&&e.remove_entity(t)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.cartesian3Towgs84(e[2],this.viewer),o=turf.point([t.lng,t.lat]),s=turf.point([i.lng,i.lat]),a=turf.point([n.lng,n.lat]),r={units:"kilometers"},l=turf.rhumbDistance(o,s,r),c=turf.rhumbDistance(a,s,r),u=l;l>c&&(u=c);var h=turf.rhumbBearing(o,s),p=turf.rhumbBearing(a,s),d=Math.abs((h-p+360)%360);this.bearing=d>180?360-d:d,this.bearing=this.bearing.toFixed(2);var m=h-180,f=p-180,v=turf.lineArc(s,u/3,f,m);d>180&&(v=turf.lineArc(s,u/3,m,f));for(var g=[],y=0;y2&&e.caculateAngle([e.positions[0],e.positions[1],e.positions[2]])})),this.event.mouse_right((function(t,i){e.cancel()})),this.event.gesture_pinck_start((function(t,n){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?e.cancel():i(s,n)}))}))}}}])}(ko);function as(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function rs(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ls=function(e){function t(e){var i;return c()(this,t),(i=as(this,t,[e,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return Me()(t,e),h()(t,[{key:"createPolyline",value:function(){var e=this,t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}})),t}},{key:"end",value:function(){rs(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;rs(t,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(t){t&&e.remove_entity(t)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=this.cartesian3Towgs84(e[1],this.viewer),i=this.cartesian3Towgs84(e[0],this.viewer),n=turf.point([t.lng,t.lat]),o=turf.point([i.lng,i.lat]),s=this.rhumbBearing(i,t);this.bearing=(180+s).toFixed(2);for(var a=turf.rhumbDistance(n,o,{units:"kilometers"}),r=turf.lineArc(n,a/3,0,this.bearing),l=[],c=0;c2&&e.caculateAngle([e.positions[0],e.positions[1]],[e.positions[2],e.positions[1]]),!(e.ids.length>=2)){t.next=9;break}return e.end(),t.abrupt("return");case 9:if(e.ids.push(e.create_point(n)),e.ids.push(e.create_point(n)),2!==e.ids.length){t.next=20;break}return e.label_id=Cesium.createGuid(),e.arc_id=Cesium.createGuid(),p=e.cartesian3Towgs84(n,e.viewer),t.next=17,e.sampleHeightMostDetailed([p]);case 17:d=t.sent,e.viewer.entities.add({id:e.arc_id,polyline:{positions:new Cesium.CallbackProperty((function(){return e.arcPositions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}}),e.viewer.entities.add({id:e.label_id,position:Cesium.Cartesian3.fromDegrees(p.lng,p.lat,(d[0].height||0)+.1),label:{text:new Cesium.CallbackProperty((function(){return"方位夹角:"+e.bearing+"°"}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#f1e605"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}});case 20:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();this.event.mouse_left(i),this.event.mouse_move((function(t,i){if(e.tip.setPosition(i,t.endPosition.x,t.endPosition.y),e.cachePositions.length){var n;e.positions=e.cachePositions.concat(i);var o=e.cartesian3Towgs84(i,e.viewer),s=e.cartesian3Towgs84(e.positions[1],e.viewer),a=turf.point([s.lng,s.lat]),r=turf.point([o.lng,o.lat]),l={units:"kilometers"},c=turf.rhumbDistance(a,r,l),u=turf.destination(a,c,0,l);e.positions[0]=(n=Cesium.Cartesian3).fromDegrees.apply(n,nt()(u.geometry.coordinates))}e.positions.length>2&&e.caculateAngle([e.positions[0],e.positions[1]],[e.positions[2],e.positions[1]])})),this.event.mouse_right((function(t,i){e.cancel()})),this.event.gesture_pinck_start((function(t,n){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?e.cancel():i(s,n)}))}))}}}])}(ko);function cs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var us=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=cs(this,t,[e,n])).options.curve=n.curve||!1;var o=Number(n.number);return isNaN(o)?i.options.number=1/0:i.options.number=o<2?2:o,i}return Me()(t,e),h()(t,[{key:"smoothHandle",value:function(e){if(e.length>1){for(var t=[],i=[],n=0;n=r.options.number){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var u=r.smoothHandle(c);s=[];for(var h=0;h1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polyline:{positions:new Cesium.CallbackProperty((function(){return e.options.curve?e.smoothHandle(e.positions):e.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(e.color),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a);function hs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ps(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=ds(this,t,[e,n])).polygonHasCreated=!1,i.rectObject=[],i}return Me()(t,e),h()(t,[{key:"computedLastPoint",value:function(e){var t=e[0],i=e[1],n=Cesium.Cartesian3.subtract(i,t,new Cesium.Cartesian3),o=Cesium.Cartesian3.subtract(e[2],t,new Cesium.Cartesian3),s=Cesium.Cartesian3.dot(o,n)/Cesium.Cartesian3.magnitudeSquared(n),a=Cesium.Cartesian3.multiplyByScalar(n,s,new Cesium.Cartesian3),r=Cesium.Cartesian3.add(t,a,new Cesium.Cartesian3),l=Cesium.Cartesian3.distance(e[2],r),c=Cesium.Cartesian3.subtract(e[2],r,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(c,c);var u=Cesium.Cartesian3.multiplyByScalar(c,l,new Cesium.Cartesian3),h=Cesium.Cartesian3.add(i,u,new Cesium.Cartesian3),p=Cesium.Cartesian3.add(t,u,new Cesium.Cartesian3);return[ps({},h),ps({},p)]}},{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk);var c=0;this.positions=[],this.positionsLine=[],this.points_ids=[];var u=[],h=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",c++,r.positions=u.concat(ps({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r);r.points_ids.push(o)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),3==c&&(r.end(),e(null,r.rectObject))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e("取消",""))})),this.event.mouse_move((function(e,t){if("2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(ps({},t)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(e){return r.cartesian3Towgs84(e,r.viewer)}));r.rectObject=s}})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop(),r.positions=u.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e(null,h),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r);r.points_ids.push(s)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=u.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",c++,r.positions=u.concat(ps({},n)),r.tip.setPosition(n,i.position.x+r.viewer.canvas.width,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),3==c&&(r.end(),e(null,r.rectObject))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e("取消",""))})),this.event2D.mouse_move((function(e,t){if("3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(ps({},t)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(e){return r.cartesian3Towgs84(e,r.viewer)}));r.rectObject=s}})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop(),r.positions=u.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e(null,h),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=u.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.polygonHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)})),material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions.concat(e.positions[0])})),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a),fs=i(26);function vs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var gs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),vs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.viewer;e.entities.add(new Cesium.Entity({id:g.circle_id,position:new Cesium.CallbackProperty((function(e){if(v){var t=g.computeMidpoint(f,v);return Cesium.Cartesian3.fromDegrees(t.lng,t.lat,v.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(e){return d>1e3?"半径:"+(d/1e3).toFixed(2)+" 公里":"半径:"+d+" 米"}),!1),font:"20px Microsoft YaHei",distanceDisplayCondition:1e7,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(m))}),!1),material:Cesium.Color.fromCssColorString(g.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return h}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}}))};(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键开始,右键取消",this.sdk),this.event=new te.a(this.sdk);var u=0;this.circle_id=this.randomString();var h=[],p=[],d=1,m=[],f={},v=null;this.event.mouse_left((function(t,i){"2D"!==l&&(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c()),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e(!1))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),u&&(h=p.concat(t),v=r.cartesian3Towgs84(t,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event.gesture_pinck_start((function(t,i){if("2D"!==l){var n=new Date;r.event.gesture_pinck_end((function(){new Date-n>=500?(r.end(),e(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),p.push(i),c(),r.tip.setPosition(i,(t.position1.x+t.position2.x)/2,(t.position1.y+t.position2.y)/2)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,i){"3D"!==l&&(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c(r._sdk2D.viewer)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e(!1))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),u&&(h=p.concat(t),v=r.cartesian3Towgs84(t,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event2D.gesture_pinck_start((function(t,i){if("3D"!==l){var n=new Date;r.event2D.gesture_pinck_end((function(){new Date-n>=500?(r.end(),e(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),p.push(i),c(r._sdk2D.viewer),r.tip.setPosition(i,(t.position1.x+t.position2.x)/2+r.viewer.canvas.width,(t.position1.y+t.position2.y)/2)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))}))}})));var g=this}}},{key:"end",value:function(){this.remove_entity(this.circle_id),this.remove_entity(this.point_id),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(Dn.a);function ys(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var bs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ys(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l,c=function(){var e=Cesium.Cartesian3.fromDegrees(m[0].lng,m[0].lat),t=Cesium.Cartesian3.fromDegrees(m[1].lng,m[1].lat),i=Cesium.Cartesian3.fromDegrees(m[2].lng,m[2].lat);if(1===h){g=Cesium.Cartesian3.distance(e,t),f=(v=g)/2;var n={x:p.lng,y:p.lat},o={x:m[1].lng,y:m[1].lat},s=Math.PI/180,a=n.y*s,r=o.y*s,l=n.x*s,c=o.x*s,u=Math.sin(c-l)*Math.cos(r),d=Math.cos(a)*Math.sin(r)-Math.sin(a)*Math.cos(r)*Math.cos(c-l),C=Math.atan2(u,d)%(2*Math.PI);b=450-(180*C/Math.PI<0?360+180*C/Math.PI:180*C/Math.PI)}if(2===h){Cesium.Cartesian3.distance(e,i),y=Cesium.Cartesian3.distance(t,i);var w=turf.point([m[0].lng,m[0].lat]),k=turf.point([m[1].lng,m[1].lat]),_=turf.point([m[2].lng,m[2].lat]),x=turf.rhumbBearing(w,k),S=turf.rhumbBearing(k,_),E=Math.abs(x-S),P=E>180?360-E:E;P=180-P,f=y*Math.sin(Cesium.Math.toRadians(P))}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.viewer;e.entities.add(new Cesium.Entity({id:C.elliptic_id,position:Cesium.Cartesian3.fromDegrees(p.lng,p.lat),ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(e){return f}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(e){return v}),!1),granularity:Cesium.Math.toRadians(.1),rotation:new Cesium.CallbackProperty((function(e){return Cesium.Math.toRadians(b)}),!1),material:Cesium.Color.fromCssColorString(C.color),zIndex:99999999}}))};(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.entity_ids=[],YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键开始,右键取消",this.sdk),this.event=new te.a(this.sdk);var h=0;this.elliptic_id=this.randomString();var p,d=[],m=[],f=0,v=0,g=0,y=0,b=0;this.event.mouse_left((function(t,i){if("2D"!==l){if(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),h++,r.points_ids.push(r.create_point(i)),d.push(i),1===h){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);p=n,m=[n,n,n],c(),u()}if(2===h){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}h>=3&&(r.end(),e(null,{center:p,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e(!1))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),d[h]=t,m[h]=r.cartesian3Towgs84(t,r.viewer),0!==h&&c())})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),h++,r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),d.push(i),1===h){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);p=n,m=[n,n,n],c(),u(r._sdk2D.viewer)}if(2===h){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}h>=3&&(r.end(),e(null,{center:p,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e(!1))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),d[h]=t,m[h]=r.cartesian3Towgs84(t,r.viewer),0!==h&&c())})));var C=this}}},{key:"end",value:function(){var e=this;this.remove_entity(this.elliptic_id),this.points_ids.forEach((function(t){e.remove_entity(t)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(Dn.a);function Cs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var ws=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Cs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(e,i){if("2D"!==l){l="3D";var n=r.cartesian3Towgs84(i,r.viewer),o=c[c.length-1];if(!o||o.lng!==n.lng||o.lat!==n.lat){if(!r.entityHasCreated){var s=t.create_arrow_polygon(r);r.points_ids.push(s)}r.points_ids.push(r.create_point(i)),c.push(n),u=!1}}})),this.event.mouse_right((function(t,i){if("2D"!==l){var n=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){n.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),u&&r.positions.pop(),e(null,r.positions,n)}})),this.event.mouse_move((function(e,t){"2D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,r.positions,s)}else{if(!r.entityHasCreated){var a=t.create_arrow_polygon(r);r.points_ids.push(a)}r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",!r.entityHasCreated){var n=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(i,r.viewer)),u=!1}})),this.event2D.mouse_right((function(t,i){if("3D"!==l){var n=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){n.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),u&&r.positions.pop(),e(null,r.positions,n)}})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,r.positions,s)}else{if(!r.entityHasCreated){var a=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(a)}r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2)}}))}})))}}}],[{key:"create_arrow_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeAttackArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ks(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",!r.entityHasCreated){var o=t.create_arrow_polygon(r);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,s)}}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e("取消绘制"))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),e("取消绘制");else{if(!r.entityHasCreated){var s=t.create_arrow_polygon(r);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,a)}}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",!r.entityHasCreated){var o=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,s)}}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e("取消绘制"))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),e("取消绘制");else{if(!r.entityHasCreated){var s=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,a)}}}))}})))}}}],[{key:"create_arrow_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computePincerArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=xs(this,t,[e,n])).points=null,i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n;Ss(t,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(t,s){if("2D"!==n&&(n="3D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s)),2===i.points_ids.length)){var r=[o[0],o[1]];e(null,r),i.end()}}})),this.event.mouse_move((function(e,o){if("2D"!==n&&(i.tip.setPosition(o,e.endPosition.x,e.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=t.polygon(i))}})),this.event.mouse_right((function(t,o){"2D"!==n&&(e(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=t.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),2===i.points_ids.length)){var r=[o[0],o[1]];e(null,r),i.end()}}})),this.event2D.mouse_move((function(e,o){if("3D"!==n&&(i.tip.setPosition(o,e.endPosition.x+i.viewer.canvas.width,e.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=t.polygon(i,i._sdk2D.viewer))}})),this.event2D.mouse_right((function(t,o){"3D"!==n&&(e(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=t.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Ss(t,"end",this,3)([]),this.viewer.entities.remove(this.arrowPolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.arrowPolygon)}}],[{key:"polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(new Cesium.Entity({name:"ArrowPolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeStraightArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ps(this,t,[e,n])).rhumb=n.rhumb,i.polygonHasCreated=!1,i.rect=[],i.rectObj=[],i.entity=null,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this,l=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var c;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消",l.sdk),this.event=new te.a(l.sdk),this.positions=[],this.points_ids=[];var u=0,h=null,p=null;this.event.mouse_left((function(i,n){if("2D"!==c){c="3D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=t.create_polygon(r);r.points_ids.push(s),h=o}2==u&&(p=o,r.end(),e(null,l.rectObj,[h,p]))}})),this.event.mouse_right((function(t,i){"2D"!==c&&(r.end(),e("取消",""))})),this.event.mouse_move((function(e,t){if("2D"!==c&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),1==u)){var i=r.cartesian3Towgs84(t,r.viewer);r.calrect(h,i)}})),this.event.gesture_pinck_start((function(i,n){if("2D"!==c){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=t.create_polygon(r);r.points_ids.push(a),h=s}2==u&&(r.calrect(h,s),p=s,r.end(),e(null,l.rectObj,[h,p]))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==c){c="2D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s),h=o}2==u&&(p=o,r.end(),e(null,l.rectObj,[h,p]))}})),this.event2D.mouse_right((function(t,i){"3D"!==c&&(r.end(),e("取消",""))})),this.event2D.mouse_move((function(e,t){if("3D"!==c&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),1==u)){var i=r.cartesian3Towgs84(t,r.viewer);r.calrect(h,i)}})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==c){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(a),h=s}2==u&&(r.calrect(h,s),p=s,r.end(),e(null,l.rectObj,[h,p]))}}))}})))}}},{key:"calrect",value:function(e,t){var i,n=[],o=[],s=[];if(n.push([e.lng,e.lat,e.alt],[t.lng,t.lat,t.alt]),2===n.length){var a=turf.lineString(n),r=turf.bbox(a);i=turf.bboxPolygon(r)}i&&(i.geometry.coordinates[0].forEach((function(t){o.push(t[0]),o.push(t[1]);var i={lng:t[0],lat:t[1],alt:e.alt};s.push(i)})),this.rect=[].concat(o),this.rectObj=[].concat(s),this.rectObj.pop())}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(this.entity=new Cesium.Entity({id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(e.rect))}),!1),material:Cesium.Color.fromCssColorString(e.color),arcType:e.rhumb?Cesium.ArcType.RHUMB:Cesium.ArcType.GEODESIC,zIndex:99999999}})),i}}])}(Dn.a);function Ds(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Ms(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Ts=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ds(this,t,[e,n])).points=null,i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n;Ms(t,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(t,s){if("2D"!==n&&(n="3D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];e(null,a),i.end()}})),this.event.mouse_move((function(e,s){if("2D"!==n&&(i.tip.setPosition(s,e.endPosition.x,e.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=t.polygon(i)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(e){a.push([e.lng,e.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event.mouse_right((function(t,o){"2D"!==n&&(e(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=t.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];e(null,a),i.end()}})),this.event2D.mouse_move((function(e,s){if("3D"!==n&&(i.tip.setPosition(s,e.endPosition.x+i.viewer.canvas.width,e.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=t.polygon(i,i._sdk2D.viewer)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(e){a.push([e.lng,e.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event2D.mouse_right((function(t,o){"3D"!==n&&(e(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=t.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Ms(t,"end",this,3)([]),this.viewer.entities.remove(this.assemblePolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.assemblePolygon)}},{key:"calculateVector",value:function(e,t,i){var n,o,s,a,r,l;t||(t=Math.PI/2),i||(i=1);var c=Math.sqrt(e.x*e.x+e.y*e.y);if(0==e.y)n=o=c*i*Math.cos(t)/e.x,e.x>0?a=-(s=Math.sqrt(i*i-n*n)):e.x<0&&(s=-(a=Math.sqrt(i*i-n*n))),r={x:n,y:s},l={x:o,y:a};else{var u=-e.x/e.y,h=i*c*Math.cos(t)/e.y,p=1+u*u,d=2*u*h,m=h*h-i*i;s=u*(n=(-d-Math.sqrt(d*d-4*p*m))/(2*p))+h,a=u*(o=(-d+Math.sqrt(d*d-4*p*m))/(2*p))+h,e.y>=0?(r={x:n,y:s},l={x:o,y:a}):e.y<0&&(r={x:o,y:a},l={x:n,y:s})}return[r,l]}},{key:"createCloseCardinal",value:function(e){if(null==e||e.length<3)return e;var t=e[0];e.push(t);for(var i=e,n=[],o=.4,s=i.length-1,a=0;a<=s-1;a++){var r=void 0,l=void 0,c=void 0;a==s-1?(r=i[s-1],l=i[0],c=i[1]):(r=i[a],l=i[a+1],c=i[a+2]);var u={x:void 0,y:void 0},h={x:void 0,y:void 0},p={x:l.x-r.x,y:l.y-r.y},d={x:c.x-l.x,y:c.y-l.y},m=Math.sqrt(p.x*p.x+p.y*p.y),f=Math.sqrt(d.x*d.x+d.y*d.y),v={x:p.x/m,y:p.y/m},g={x:d.x/f,y:d.y/f},y={x:v.x+g.x,y:v.y+g.y},b=Math.sqrt(y.x*y.x+y.y*y.y),C={x:y.x/b,y:y.y/b},w=(v.x*g.x+v.y*g.y)/1;Math.abs(1-w)<.005?(u.x=l.x-g.x*m*o,u.y=l.y-g.y*m*o,h.x=l.x+v.x*f*o,h.y=l.y+v.y*f*o):(u.x=l.x-C.x*m*o,u.y=l.y-C.y*m*o,h.x=l.x+C.x*f*o,h.y=l.y+C.y*f*o),a==s-1?(n[0]=l,n[1]=h,n[3*(s-2)+2+3]=u,n[3*(s-2)+2+4]=i[s]):(n[3*a+2+0]=u,n[3*a+2+1]=l,n[3*a+2+2]=h)}return n}},{key:"calculatePointsFBZ3",value:function(e,t){t||(t=20);var i=[],n=.05;t>0&&(n=1/t);for(var o=0;o=e.length&&i.push(s)}return i}}],[{key:"polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(new Cesium.Entity({name:"AssemblePolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeAssemble(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Ns(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r,l=this,c=this;YJ.Measure.GetMeasureStatus()?e("上一次测量未结束"):((n=t,o="start",s=this,a=3,r=On()(Oe()(1&a?n.prototype:n),o,s),2&a&&"function"==typeof r?function(e){return r.apply(s,e)}:r)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确认,右键取消",c.sdk),this.event=new te.a(c.sdk),this._sector_id=null,this._positions=[],this.points_ids=[],this._entities_sector=[],this._radius=0,this._startAngle=0,this._endAngle=0,this.event.mouse_left((function(t,n){if("2D"!==i&&(i="3D",l._positions.length<3?(l.points_ids.push(l.create_point(n)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),e(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=Cesium.Cartesian3.fromDegrees(l._positions[0].lng,l._positions[0].lat,l._positions[0].alt),s=n;l._radius=Cesium.Cartesian3.distance(o,s)}})),this.event.mouse_move((function(e,t){if("2D"!==i&&(l.tip.setPosition(t,e.endPosition.x,e.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(t,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(t,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event.mouse_right((function(t,n){"2D"!==i&&(l.end(),e(null))})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,n){if("3D"!==i&&(i="2D",l._positions.length<3?(l.points_ids.push(l.create_point(n,l._sdk2D.viewer)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),e(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=Cesium.Cartesian3.fromDegrees(l._positions[0].lng,l._positions[0].lat,l._positions[0].alt),s=n;l._radius=Cesium.Cartesian3.distance(o,s)}})),this.event2D.mouse_move((function(e,t){if("3D"!==i&&(l.tip.setPosition(t,e.endPosition.x+l.viewer.canvas.width,e.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(t,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(t,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(l._sdk2D.viewer),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event2D.mouse_right((function(t,n){"3D"!==i&&(l.end(),e(null))}))))}},{key:"createsector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,t=this,i=new Cesium.CallbackProperty((function(){var e=t.calSector(t._positions[0],t._radius,t._startAngle,t._endAngle);return new Cesium.PolygonHierarchy(e)})),n=t.randomString(),o=e.entities.add({id:n,position:Cesium.Cartesian3.fromDegrees(t._positions[0].lng,t._positions[0].lat),polygon:{hierarchy:i,show:!0,fill:!0,clampToGround:!0,material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999}});return t._entities_sector.push(o),n}},{key:"cartesianToLatlng",value:function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return[Cesium.Math.toDegrees(t.longitude),i]}},{key:"lonLatToMercator",value:function(e){var t=e[0],i=e[1],n=20037508.34*t/180,o=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return[n,o=20037508.34*o/180]}},{key:"WebMercator2lonLat",value:function(e){var t=e[0]/20037508.34*180,i=e[1]/20037508.34*180;return[t,180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"calculateAangle",value:function(e){function t(e,t){var i=Math.PI/180,n=e.y*i,o=t.y*i,s=e.x*i,a=t.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=e[0],n=e[1],o=e[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:t(s,a),angle2:t(s,r)}}}])}(Dn.a),js=52.35987755982988,As=3.141592653589793,Ls=.006693421622965943,Is=function(){return h()((function e(){c()(this,e)}),null,[{key:"BD09ToGCJ02",value:function(e,t){var i=+e-.0065,n=+t-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*js),s=Math.atan2(n,i)-3e-6*Math.cos(i*js);return[o*Math.cos(s),o*Math.sin(s)]}},{key:"GCJ02ToBD09",value:function(e,t){t=+t,e=+e;var i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*js),n=Math.atan2(t,e)+3e-6*Math.cos(e*js);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[e+i[0],t+i[1]]}},{key:"GCJ02ToWGS84",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}},{key:"delta",value:function(e,t){var i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35),o=t/180*As,s=Math.sin(o);s=1-Ls*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*As),n=180*n/(6378245*(1-Ls)/(s*a)*As)]}},{key:"transformLng",value:function(e,t){var i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*As)+20*Math.sin(2*e*As))/3,i+=2*(20*Math.sin(e*As)+40*Math.sin(e/3*As))/3,i+=2*(150*Math.sin(e/12*As)+300*Math.sin(e/30*As))/3}},{key:"transformLat",value:function(e,t){var i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*As)+20*Math.sin(2*e*As))/3,i+=2*(20*Math.sin(t*As)+40*Math.sin(t/3*As))/3,i+=2*(160*Math.sin(t/12*As)+320*Math.sin(t*As/30))/3}},{key:"out_of_china",value:function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}}])}();function Rs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var zs=function(e){function t(e,i){var n;return c()(this,t),(n=Rs(this,t,[e,i])).sdk.addIncetance(n.options.id,n),n.options.show&&Object(Z.f)(0,n.options.id),n}return Me()(t,e),h()(t,[{key:"setDefaultValue",value:function(){var e,i,o,s,a;(e=t,i="setDefaultValue",o=this,s=3,a=On()(Oe()(1&s?e.prototype:e),i,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.options.host=this.options.host||Object(n.a)()}},{key:"requestResource",value:function(){var e="";return e=this.options.host.endsWith("yjearth4.0")?this.options.host+"/data/service/load-compact-service":this.options.host+"/yjearth4.0/data/service/load-compact-service",fetch(e,{method:"post",body:JSON.stringify({source_id:this.options.id}),headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}})}}])}(vt);function Fs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Hs(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Vs(this,t,[e,i])).options.name=i.name||"未命名对象",n.Dialog=o,n._elms={},n}return Me()(t,e),h()(t,[{key:"setDefaultValue",value:function(){var e,i;Gs(t,"setDefaultValue",this,3)([]),this.options.alpha=null!==(e=this.options.alpha)&&void 0!==e?e:1,this.options.brightness=null!==(i=this.options.brightness)&&void 0!==i?i:1}},{key:"layerIndex",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"layer_index",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"brightness",get:function(){return this.options.brightness},set:function(e){this.options.brightness=Number(e),this.entity.brightness=Number(e)}},{key:"alpha",get:function(){return this.options.alpha},set:function(e){(e=Number(e))>1&&(e=1),e<0&&(e=0),this.entity.alpha=e,this.options.alpha=e,this._elms.alpha&&this._elms.alpha.forEach((function(t){t.value=e}))}},{key:"layerRaise",value:function(e){this.sdk.viewer.imageryLayers.raise(this.entity);for(var t=0;t0&&void 0!==r[0]&&r[0],!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(t={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),a={lng:0,lat:0},this.options.position?a=Hs({},this.options.position):this.options.positions?a=Hs({},this.options.positions[0]):this.options.center?a=Hs({},this.options.center):this.options.start?a=Hs({},this.options.start):(this.options.hasOwnProperty("lng")&&(a.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(a.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(a.alt=this.options.alt)),a.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(a);case 17:a.alt=e.sent;case 18:i=this.options.customView.relativePosition.lng+a.lng,n=this.options.customView.relativePosition.lat+a.lat,o=this.options.customView.relativePosition.alt+a.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:t}),e.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity);case 26:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"amapMercatorTilingScheme",value:function(e){return new(function(e){function t(e){var i;c()(this,t),i=Vs(this,t,[e]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(e,t){return t=Is.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),t=n.project(new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))),new Cesium.Cartesian2(t.x,t.y)},i._projection.unproject=function(e,t){var i=n.unproject(e);return t=Is.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},i}return Me()(t,e),h()(t)}(Cesium.WebMercatorTilingScheme))(e)}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),e.next=5,new Be(this.sdk,this.options,{title:"底图属性",left:"180px",top:"100px",confirmCallBack:function(e){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Object(Z.g)(s.sdk,s.options.id);var t=Object(J.a)();if(t&&t!=s.sdk)for(var i=0;i\n
        \n
        \n
        \n 名称:\n \n
        \n
        \n
        \n
        \n 透明度:\n \n
        \n
        \n
        \n ',t.innerHTML=i,n=t.getElementsByClassName("name")[0],o=t.getElementsByClassName("alpha")[0],n.value=this.name,o.value=this.alpha,n.addEventListener("input",(function(){s.name=n.value})),o.addEventListener("input",(function(){s.alpha=o.value})),this._DialogObject.contentAppChild(t),this._elms.name=[n],this._elms.alpha=[o];case 19:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){(this.entity||this._DialogObject)&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.alpha=this.options.alpha,this.brightness=this.options.brightness)}},{key:"flicker",value:function(){}}]);var i,n}(zs);function Us(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var Ys=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Us(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"createArcGis",value:(i=_()(S.a.mark((function e(t){var i,n,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=6;break}return e.next=3,Cesium.ArcGisMapServerImageryProvider.fromUrl(t);case 3:i=e.sent,e.next=7;break;case 6:i=new Cesium.ArcGisMapServerImageryProvider({url:t});case 7:for(this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i,this.options.layerIndex):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i),this.entity._id=this.options.id,n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Zs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"createGD",value:function(e){var t=new Cesium.UrlTemplateImageryProvider({url:e,minimumLevel:3,maximumLevel:18,tilingScheme:this.amapMercatorTilingScheme()});this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(t,this.options.layerIndex):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(t),this.entity._id=this.options.id;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8"),i}return Me()(t,e),h()(t)}(Ks),$s=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}"),i}return Me()(t,e),h()(t)}(Ks),ea=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"),i}return Me()(t,e),h()(t)}(Ks);function ta(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ia(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ia(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=107)){e.next=19;break}return e.next=14,Cesium.Cesium3DTileset.fromUrl(n,r);case 14:l=e.sent,this.entity=l,this.entity.imageBasedLighting.luminanceAtZenith=.1,e.next=25;break;case 19:return r.url=n,l=new Cesium.Cesium3DTileset(r),e.next=23,l.readyPromise;case 23:this.entity=e.sent,this.entity.imageBasedLighting.luminanceAtZenith=.1;case 25:return e.next=27,this.loadSceneTree(n);case 27:if(c=function(e){if(e._contents)for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=ma(this,t,[e,n])).picking=!1,i.on(),i.Dialog=o,i._elms={},i._EventBinding=new Ye,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"tileset"}},{key:"on",value:function(){return this.loadTileset(this.options)}},{key:"name",get:function(){return this.newData.name},set:function(e){this.newData.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.newData.height},set:function(e){this.newData.height=e,this.options.position.alt=e,this._elms.height&&this._elms.height.forEach((function(t){t.value=e})),this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"accuracy",get:function(){return this.newData.accuracy},set:function(e){var t=this;this.newData.accuracy=Number(e.toFixed(1)),this.newData.accuracy<.1&&(this.newData.accuracy=.1),this.entity&&(this.entity.maximumScreenSpaceError=32/this.newData.accuracy),this._elms.accuracy&&this._elms.accuracy.forEach((function(e){e.value=t.newData.accuracy}))}},{key:"lng",get:function(){return this.newData.lng},set:function(e){this.newData.lng=e,this.options.position.lng=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"lat",get:function(){return this.newData.lat},set:function(e){this.newData.lat=e,this.options.position.lat=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"roll",get:function(){return this.newData.roll},set:function(e){this.newData.roll=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"heading",get:function(){return this.newData.heading},set:function(e){this.newData.heading=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"pitch",get:function(){return this.newData.pitch},set:function(e){this.newData.pitch=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"transparency",get:function(){return this.newData.transparency},set:function(e){if(this.newData){this.newData.transparency=Number(e),this._elms.transparency&&this._elms.transparency.forEach((function(t){t.value=e}));var t=this.newData.transparency;this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+t+")"],["true","color('rgba(255,255,255,"+t+")')"]]},show:!0})}}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]&&n[0],e.abrupt("return");case 12:this._DialogObject=e.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(t=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n 精度\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n 透视\n \n
        \n
        \n
        \n ',this._DialogObject.contentAppChild(t),i=t.getElementsByTagName("*"),this._EventBinding.on(this,i),this._elms=this._EventBinding.element,e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"updateModel",value:function(e,t,i){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!e&&0!==e||!t&&0!==t||!i&&0!==i)){var c=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),u=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(a)),h=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(r)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=Cesium.Matrix4.fromRotationTranslation(h),v=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,d,v),Cesium.Matrix4.multiply(v,m,v),Cesium.Matrix4.multiply(v,f,v);var g=Cesium.Matrix4.fromUniformScale(l);Cesium.Matrix4.multiply(v,g,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:e,lat:t,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:a,z:r}),this.editObj&&this.editObj.update(),clearTimeout(this._updateModelTimeout),this._updateModelTimeout=setTimeout((function(){clearTimeout(n._updateModelTimeout);var e,t=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([t.lng,t.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=pa(n.sdk.entityMap);try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);if("BillboardObject"===r.type&&3==r.heightMode){var l=turf.point([r.lng,r.lat]);turf.booleanPointInPolygon(l,i)&&r.updateHeight()}else r.label&&(r.label.show=r.label.show)}}catch(e){o.e(e)}finally{o.f()}}),300)}}},{key:"reset",value:function(){this.editObj.destroy(),this.entity&&(this.transparency=this.oldData.transparency,this.name=this.oldData.name,this.height=this.oldData.height,this.lng=this.oldData.lng,this.lat=this.oldData.lat,this.roll=this.oldData.roll,this.heading=this.oldData.heading,this.pitch=this.oldData.pitch,this.scale=this.oldData.scale,this.accuracy=this.oldData.accuracy,this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+this.transparency+")"],["true","color('rgba(255,255,255,"+this.transparency+")')"]]},show:!0}))}}]);var i}(ha);function va(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ga(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ga(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),wa(i=Ca(this,t,[e,n]),Sa,void 0),i.picking=!1,i.features=n.features||[],i.exportStateArray=[],i.Dialog=o,i._elms={},i._EventBinding=new Ye,i.Dialog.exportState=function(e){i.exportState(e)},i.Dialog.exportProperty=function(e){i.exportProperty(i.exportStateArray)},i.features=new Map,i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"bim"}},{key:"name",get:function(){return this.newData.name},set:function(e){this.newData.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.newData.lng},set:function(e){this.newData.lng=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.newData.lat},set:function(e){this.newData.lat=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.newData.height},set:function(e){this.newData.height=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.height&&this._elms.height.forEach((function(t){t.value=e}))}},{key:"roll",get:function(){return this.newData.roll},set:function(e){this.newData.roll=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.roll&&this._elms.roll.forEach((function(t){t.value=e}))}},{key:"heading",get:function(){return this.newData.heading},set:function(e){this.newData.heading=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.heading&&this._elms.heading.forEach((function(t){t.value=e}))}},{key:"pitch",get:function(){return this.newData.pitch},set:function(e){this.newData.pitch=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.pitch&&this._elms.pitch.forEach((function(t){t.value=e}))}},{key:"scale",get:function(){return this.newData.scale},set:function(e){this.newData.scale=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.scale&&this._elms.scale.forEach((function(t){t.value=e}))}},{key:"loadSceneTree",value:(a=_()(S.a.mark((function e(t){var i,n=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=t.split("/"))[i.length-1]="scenetree.json",e.next=4,Cesium.Resource.fetchJson({url:i.join("/")}).then((function(e){n.scenetree=e;var t=function(e){e.forEach((function(e){n.features.has(e.id)?n.features.get(e.id).sphere=e.sphere:n.features.set(e.id,{sphere:e.sphere}),e.children&&t(e.children)}))};t(e.scenes[0].children)}));case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=16;break}return e.next=6,new Be(this.sdk,this.newData,{title:"BIM模型属性",left:"180px",top:"100px",resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},confirmCallBack:function(e){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o._DialogObject.close();var t=new Map;o.features.forEach((function(e,i){var n=ba({},e);delete n.features,t.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(ba(ba({},o.oldData),{},{features:t,type:o.type})),Object(Z.g)(o.sdk,o.oldData.id)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.editObj.destroy(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(e){o.newData.show=e,o.entity&&(o.entity.show=e),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0}});case 6:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" tileset-bim",(i=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n x轴\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n y轴\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n z轴\n \n
        \n
        \n
        \n
        \n 大小\n \n
        \n \n \n
        \n \n
        \n
        \n
        \n \n
        \n
        \n

        BIM属性导出选项

        \n
        \n
        \n
        \n
        \n
        \n \n 修建中\n
        \n
        \n \n 未完成\n
        \n
        \n \n 已完成\n
        \n
        \n
        \n \n
        \n
        \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,e.next=17;break;case 16:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"featureEdit",value:(n=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p,d=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}o=function(e){var t='
        \n
        \n \n \n \n \n
        \n
        '),i=document.createElement("div");i.innerHTML=t;var s=i.getElementsByClassName("property-item")[0],r=s.querySelector("input[name='key']"),l=s.querySelector("input[name='value']"),u=s.getElementsByClassName("add")[0],h=s.getElementsByClassName("delete")[0];r.addEventListener("input",(function(t){e.key=t.target.value})),l.addEventListener("input",(function(t){e.value=t.target.value})),u.addEventListener("click",(function(){var e={id:n.randomString(),key:"点击此处可编辑",value:""};a.descriptions.push(e),o(e)})),h.addEventListener("click",(function(t){for(var i=0;i.content {\n width: 440px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 110px;\n }\n .col:first-child {\n margin-right: 10px;\n }\n .col:last-child {\n margin-left: 10px;\n }\n .YJ-custom-base-dialog>.content .divide {\n position: relative;\n display: flex;\n align-items: center;\n margin: 20px 0;\n }\n .YJ-custom-base-dialog>.content .divide .line{\n height: 1px;\n background: #ddd;\n flex: 1;\n }\n .YJ-custom-base-dialog>.content .divide p{\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .property .property-item .btn{\n font-size: 24px;\n line-height: 20px;\n padding: 2px 0;\n }\n .YJ-custom-base-dialog>.content .property .property-item .input_lable {\n flex: 0 0 115px;\n border: none;\n margin-right: 15px;\n text-align: right;\n }\n .YJ-custom-base-dialog>.content .property .property-item:first-child .delete{\n display: none\n }\n .YJ-custom-base-dialog>.content .property .property-item .add{\n display: none;\n }\n .YJ-custom-base-dialog>.content .property .property-item:last-child .add{\n display: inline-block;\n }\n",e.next=24,new Te.a(this.sdk.viewer._container,{title:this.oldData.name+"-----设置状态",left:"calc(50% - 200px)",top:"calc(50% - 200px)",closeCallBack:function(){d.Dialog.closeCallBack&&d.Dialog.closeCallBack()}});case 24:return this._DialogObject=e.sent,e.next=27,this._DialogObject.init();case 27:for(document.getElementsByTagName("head")[0].appendChild(this._element_style),(r=document.createElement("div")).innerHTML='\n
        \n
        \n 构件名称\n \n
        \n
        \n
        \n
        \n 选择状态\n \n
        \n
        \n
        \n
        \n

        自定义属性

        \n
        \n
        \n
        \n
        \n ',r.querySelector("input[name='name']").value=s,(l=r.querySelector("select[name='state-select']")).value=a.state,l.addEventListener("change",(function(e){switch(a.state=e.target.value,a.state){case"0":a.stateCH="";break;case"1":a.stateCH="已完成";break;case"2":a.stateCH="未完成";break;case"3":a.stateCH="修建中"}})),c=r.getElementsByClassName("property")[0],u=0;u3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!e&&0!==e||!t&&0!==t||!i&&0!==i)){var c=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),u=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(a)),h=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(r)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=Cesium.Matrix4.fromRotationTranslation(h),v=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,d,v),Cesium.Matrix4.multiply(v,m,v),Cesium.Matrix4.multiply(v,f,v);var g=Cesium.Matrix4.fromUniformScale(l);Cesium.Matrix4.multiply(v,g,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:e,lat:t,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:a,z:r}),this.editObj&&this.editObj.update(),clearTimeout(_a(Sa,this)),ka(Sa,this,setTimeout((function(){clearTimeout(_a(Sa,n));var e,t=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([t.lng,t.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=va(n.sdk.entityMap);try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);if("BillboardObject"===r.type&&3==r.heightMode){var l=turf.point([r.lng,r.lat]);turf.booleanPointInPolygon(l,i)&&r.updateHeight()}else r.label&&(r.label.show=r.label.show)}}catch(e){o.e(e)}finally{o.f()}}),300))}}},{key:"getScenetree",value:function(){return this.scenetree}},{key:"featureColor",value:function(e,t){if(this.features.has(e)){var i=this.features.get(e).features;for(var n in i)i[n].content._model&&(i[n].color=Cesium.Color.fromCssColorString(t)),i[n].customColor=Cesium.Color.fromCssColorString(t);this.features.get(e).customColor=Cesium.Color.fromCssColorString(t)}}},{key:"getFeatureColor",value:function(e){if(this.features.has(e)){if(this.features.get(e).customColor)return this.features.get(e).customColor;var t=this.features.get(e).features;for(var i in t)if(t[i].content._model)return t[i].customColor||t[i].color}}},{key:"featureShow",value:function(e,t){if(this.features.has(e)){var i=this.features.get(e).features;for(var n in i)i[n].content._model&&(i[n].show=t),i[n].customShow=t;this.features.get(e).customShow=t}}},{key:"featureFlyto",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.features.has(t)?(i=this.features.get(t).sphere,n=new Cesium.Cartesian3(i[0],i[1],i[2]),o=this.entity._root.originalTransform,o=Cesium.Matrix4.inverse(o,new Cesium.Matrix4),s=this.entity._root.transform,a=Cesium.Matrix4.multiply(s,o,new Cesium.Matrix4),r=Cesium.Matrix4.multiplyByPoint(a,n,new Cesium.Cartesian3),l=this.cartesian3Towgs84(r,this.sdk.viewer),c=Cesium.Cartesian3.fromDegrees(l.lng,l.lat,l.alt+i[3]),Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),this.sdk.viewer.camera.flyTo({destination:c}),this.features.forEach((function(e,i){if(i===t){var n=u.getFeatureColor(t);if(u.features.has(t)&&n){var o=u.features.get(t).features;for(var s in o)o[s].content._model&&(o[s].color=n),o[s].customAlpha=1;u.features.get(t).customAlpha=1}}else{var a=u.getFeatureColor(i);if(u.features.has(i)&&a){var r=u.features.get(i).features;for(var l in r)r[l].content._model&&(r[l].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(a.red),",").concat(Cesium.Color.floatToByte(a.green),",").concat(Cesium.Color.floatToByte(a.blue),",").concat(.2*a.alpha,")"))),r[l].customAlpha=.2*a.alpha;u.features.get(i).customAlpha=.2*a.alpha}}}))):this.features.forEach((function(e,t){var i=u.features.get(t).features,n=u.getFeatureColor(t);if(n){for(var o in i)i[o].content._model&&(i[o].color=n),i[o].customAlpha=1;u.features.get(t).customAlpha=.2*n.alpha}}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"exportProperty",value:function(e){if(0!==this.exportStateArray.length){for(var t,i=["name","","","","","","","","","","","","stateCH","descriptions"],n='{rows}
        ',o=function(e,t){return e.replace(/{(\w+)}/g,(function(e,i){return t[i]}))},s="",a="",r="",l=0;l构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性'),r+="",i){if(Array.isArray(this.features[l][i[u]])){var h="";for(var p in this.features[l][i[u]])h+="".concat(this.features[l][i[u]][p].key+":"+this.features[l][i[u]][p].value," ");s={nameType:"String",data:h}}else s={nameType:"String",data:this.features[l][i[u]]||"0"};r+=o('{data}',s)}r+="",l>0&&l/6e4%1==0&&(a+=o(n,s={rows:r,nameWS:"Sheet"+l}),r="",r+='构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性')}a+=o(n,s={rows:r,nameWS:"Sheet"}),r="",t=o('Axel Richter{created}{worksheets}',s={created:(new Date).getTime(),worksheets:a});var d,m=document.createElement("A");m.href="data:application/vnd.ms-excel;base64,"+(d=t,window.btoa(unescape(encodeURIComponent(d)))),m.download=this.oldData.name+"--构件属性.xls",m.target="_blank",document.body.appendChild(m),m.click(),document.body.removeChild(m)}else window.ELEMENT&&window.ELEMENT.Message({message:"未选择属性导出选项!",type:"warning",duration:1500})}},{key:"exportState",value:function(e){var t=e.target.getElementsByTagName("input")[0];if(t.checked=!t.checked,t.checked)this.exportStateArray.push(t.value),this.exportStateArray=Array.from(new Set(this.exportStateArray));else for(var i=0;i\n
        \n
        \n
        \n 名称\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 最大比例\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 最小像素\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n 固定大小\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n
        \n
        \n

        旋转

        \n
        \n
        \n
        \n x 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n
        \n
        \n y 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n
        \n
        \n z 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n\n
        \n
        \n 缩放\n
        \n \n 是否等比例缩放\n
        \n
        \n
        \n \n \n
        \n

        高度

        \n
        \n
        \n
        \n 高度\n \n
        \n \n m\n \n
        \n
        \n
        \n\n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function Oa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Da(e){for(var t=1;t=0;j--){var A=B[j];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}}(e)})),this.MapEvent.mouse_left_down((function(i){var n=a.scene.cartesianToCanvasCoordinates(e.origin);g.x=i.position.x-Math.floor(n.x),g.y=i.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(i.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(t.activeAxis)t.activeAxis=null,t.activeModelParam=null,t.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,t.activeAxis=r.primitive,t.activeModelParam=t.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(e){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(o._params.rx=1),o._params.rx<0&&(o._params.rx=360);Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o._params.rx));o._params.ry-=r,o._params.ry>360&&(o._params.ry=1),o._params.ry<0&&(o._params.ry=360);Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o._params.ry));o._params.rz-=l,o._params.rz>360&&(o._params.rz=1),o._params.rz<0&&(o._params.rz=360),o.updateModel(o._params.tx,o._params.ty,o._params.tz,o._params.rx,o._params.ry,o._params.rz)}else{var h=Date.now();if(h-_<100)return clearTimeout(k),void(k=setTimeout((function(){e(t)}),100));clearTimeout(k),_=h;for(var p=o.coordCircles,d=0;d3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=e=parseFloat(parseFloat(e).toFixed(8)),this._params.ty=t=parseFloat(parseFloat(t).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.model.position=new Cesium.Cartesian3.fromDegrees(e,t,i),this.model.rotate={x:n,y:o,z:s};var a=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),r=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),l=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),c=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),u=Cesium.Matrix4.fromRotationTranslation(a),h=Cesium.Matrix4.fromRotationTranslation(r),p=Cesium.Matrix4.fromRotationTranslation(l),d=new Cesium.Matrix4;Cesium.Matrix4.multiply(c,u,d),Cesium.Matrix4.multiply(d,h,d),Cesium.Matrix4.multiply(d,p,this.model.modelMatrix),this.transformCallBack}},{key:"transformCallBack",get:function(){this._transformCallBack&&this._transformCallBack(this._params)},set:function(e){this._transformCallBack=e}},{key:"createAxisArrow",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(e,t,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=e,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var e=0;e=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),i=Ia(this,t,[e,n,o={}]),n.position?n.position.lng||0===n.position.lng?n.position.lat||0===n.position.lat?(i._timeoutEventObject=null,i.options.earth&&delete i.options.earth,i.picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff","number"==typeof n.scale?(i.options.scale={},i.options.scale.x=n.scale,i.options.scale.y=n.scale,i.options.scale.z=n.scale):(i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.scale.z=i.options.scale.z||0===i.options.scale.z?i.options.scale.z:1),i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.position=n.position=n.position||{},i.options.position={lng:n.position.lng,lat:n.position.lat,alt:n.position.alt},i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.entity={id:i.options.id},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i.Dialog=o,i._EventBinding=new Ye,i.on(),i):(console.warn("lat is required!"),Ee()(i)):(console.warn("lng is required!"),Ee()(i)):(console.warn("position is required!"),Ee()(i))}return Me()(t,e),h()(t,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(r=_()(S.a.mark((function e(t){var i,n,o,s=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(J.g)(this.sdk,this.options.id),this.sdk&&this.sdk.viewer&&this.sdk.viewer.scene){e.next=3;break}return e.abrupt("return");case 3:if(t=this.replaceHost(t,this.options.host),this.originalOptions=this.deepCopyObj(this.options),i={id:this.options.id,url:t,show:this.options.show,maximumScale:this.options.scaleByDistance?void 0:this.options.maximumScale,minimumPixelSize:this.options.scaleByDistance?void 0:this.options.minimumPixelSize},!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=13;break}return e.next=10,Cesium.Model.fromGltfAsync(i);case 10:this.entity=e.sent,e.next=16;break;case 13:return e.next=15,Cesium.Model.fromGltf(i);case 15:this.entity=e.sent;case 16:return this.entity.imageBasedLighting.luminanceAtZenith=.6,this.entity.color=Cesium.Color.fromCssColorString(this.options.color),e.next=20,this.sdk.viewer.scene.primitives.add(this.entity);case 20:n=Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),this.entity.position=o,this.entity.rotate=La({},this.options.rotate),this.entity.customScale=this.options.scale,this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),Number(Cesium.VERSION.split(".")[1])>=107?(this.entity.readyEvent.addEventListener((function(){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Ma(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new _t(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far},s.entity)),s.entity.isMove=!0,clearTimeout(s._timeoutEventObject),s._timeoutEventObject=setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500)})),this.activeAnimate=this.options.activeAnimate,this.modelAnimations=this.entity.loader.components.animations):this.entity.readyPromise.then((function(e){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Ma(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new _t(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far,ground:!1},s.entity)),s.entity.isMove=!0,clearTimeout(s._timeoutEventObject),s._timeoutEventObject=setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500),s.activeAnimate=s.options.activeAnimate,s.modelAnimations=s.entity.loader.components.animations})),Object(Z.g)(this.sdk,this.options.id);case 28:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getModelAnimations",value:(a=_()(S.a.mark((function e(){var t=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){Number(Cesium.VERSION.split(".")[1])>=107?t.entity.readyEvent.addEventListener((function(){t.modelAnimations=t.entity.loader.components.animations,e(t.modelAnimations)})):t.entity.readyPromise.then((function(i){t.modelAnimations=t.entity.loader.components.animations,e(t.modelAnimations)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"remove",value:function(){Ra(t,"remove",this,3)([]),this.label&&this.label.remove(),this.positionEditing=!1,this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"flyTo",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=22;break}if(t={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),a={lng:0,lat:0},this.options.position?a=La({},this.options.position):this.options.positions?a=La({},this.options.positions[0]):this.options.center?a=La({},this.options.center):this.options.start?a=La({},this.options.start):(this.options.hasOwnProperty("lng")&&(a.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(a.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(a.alt=this.options.alt)),a.hasOwnProperty("alt")){e.next=15;break}return e.next=14,this.getClampToHeight(a);case 14:a.alt=e.sent;case 15:i=this.options.customView.relativePosition.lng+a.lng,n=this.options.customView.relativePosition.lat+a.lat,o=this.options.customView.relativePosition.alt+a.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:t}),e.next=23;break;case 22:Number(Cesium.VERSION.split(".")[1])>=107?this.entity.ready&&(r=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),this.entity.originalBoundingSphereRadius*this.options.scale.z*2),this.sdk.viewer.camera.flyToBoundingSphere(r)):this.entity.readyPromise.then((function(){var e=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(l.options.position.lng,l.options.position.lat,l.options.position.alt),(l.entity.originalBoundingSphereRadius||l.entity.boundingSphere.radius)*l.options.scale.z*2);l.sdk.viewer.camera.flyToBoundingSphere(e)}));case 23:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"on",value:function(){return this.add()}},{key:"setDefaultValue",value:function(){Ra(t,"setDefaultValue",this,3)([]),this.options.host=this.options.host||Object(n.a)(),this.options.url=this.options.url||""}},{key:"name",get:function(){return this.options.name},set:function(e){console.log(e,"vvvvvvvvv"),this.options.name=e,this.options.label.text=e,this.label&&(this.label.text=e)}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.entity.color=Cesium.Color.fromCssColorString(e),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[n]=o}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position={lng:e,lat:this.options.position.lat,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){this.options.position={lng:this.options.position.lng,lat:e,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt:e},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[Number(this.options.position.lng),Number(this.options.position.lat),Number(this.options.position.alt)]),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"maximumScale",get:function(){return this.options.maximumScale},set:function(e){this.options.maximumScale=e,this.entity.maximumScale=this.scaleByDistance?void 0:e,this._elms.maximumScale&&this._elms.maximumScale.forEach((function(t){t.value=e}))}},{key:"minimumPixelSize",get:function(){return this.options.minimumPixelSize},set:function(e){this.options.minimumPixelSize=e,this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this._elms.minimumPixelSize&&this._elms.minimumPixelSize.forEach((function(t){t.value=e}))}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity.maximumScale=e?void 0:this.maximumScale,this.entity.minimumPixelSize=e?void 0:this.options.minimumPixelSize,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(t){t.checked=e}))}},{key:"rotateX",get:function(){return this.options.rotate.x},set:function(e){this.options.rotate.x=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateX&&this._elms.rotateX.forEach((function(t){t.value=e}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(e){this.options.rotate.y=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateY&&this._elms.rotateY.forEach((function(t){t.value=e}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(e){this.options.rotate.z=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateZ&&this._elms.rotateZ.forEach((function(t){t.value=e}))}},{key:"scaleX",get:function(){return this.options.scale.x},set:function(e){var t=this;this.options.scale.x=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleX&&this._elms.scaleX.forEach((function(e){e.value=t.options.scale.x}))}},{key:"scaleY",get:function(){return this.options.scale.y},set:function(e){var t=this;this.options.scale.y=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleY&&this._elms.scaleY.forEach((function(e){e.value=t.options.scale.y}))}},{key:"scaleZ",get:function(){return this.options.scale.z},set:function(e){var t=this;this.options.scale.z=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleZ&&this._elms.scaleZ.forEach((function(e){e.value=t.options.scale.z}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){this.options.label.show=e,this.show&&!this.showView||3==this.showView?this.label&&(this.label.show=e):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label&&(this.label.color=e),this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label&&(this.label.fontSize=e),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label&&(this.label.scaleByDistance=e),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t-1?t[i].style.display="block":t[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.link.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.vr.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={vrEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.vr.content;case 2:t.attributeVr=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0))for(var t=0;t0&&void 0!==f[0]&&f[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}return i=!1,this.scaleX===this.scaleY&&this.scaleX===this.scaleZ&&(i=!0),e.next=9,new Be(this.sdk,this.originalOptions,{title:"模型属性",left:"180px",top:"100px",confirmCallBack:function(e){m.name=m.options.name||"未命名对象",m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close();var t=m.deepCopyObj(m.options);t.host="",m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(t),Object(J.g)(m.sdk,m.options.id),Object(Z.g)(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.positionEditing=!1,m.editObj&&m.editObj.destroy(),m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(e){m.show=e,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing?m.positionEditing=!1:m.positionEditing=!0}},!0);case 9:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" model",(n=document.createElement("div")).innerHTML=Pa(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new Je("model-edit-tabs",void 0,this.sdk),o=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),s=this._DialogObject._element.content.getElementsByClassName("equal")[0],a=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],o.checked=i,o.addEventListener("change",(function(e){(i=e.target.checked)?(s.style.display="flex",a.style.display="none",m.scaleY=m.scaleX,m.scaleZ=m.scaleX):(s.style.display="none",a.style.display="flex")})),(r=s.getElementsByTagName("input"))[0].value=this.scaleX,r[1].value=this.scaleX,r[0].addEventListener("input",(function(e){m.scaleX=e.target.value,m.scaleY=e.target.value,m.scaleZ=e.target.value})),r[1].addEventListener("input",(function(e){m.scaleX=e.target.value,m.scaleY=e.target.value,m.scaleZ=e.target.value})),i?(s.style.display="flex",a.style.display="none"):(s.style.display="none",a.style.display="flex"),l=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){m.color=e},clear:function(){m.color="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelColor=e},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:n.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelLineColor=e},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelBackgroundColorStart=e},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelBackgroundColorEnd=e},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=n.getElementsByTagName("*"),this._EventBinding.on(this,d),this._elms=this._EventBinding.element,this._elms.color=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[h],this._elms.labelBackgroundColorEnd=[p],this._elms.scaleX.push(r[0],r[1]),setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.ISCSelect&&m.ISCSelect(),m.goodsSelect&&m.goodsSelect(),m.cameraSelect&&m.cameraSelect();var e=m.attributeSelect,t=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var i=Object(je.a)(t,".attribute-select");i.legp_search(e);for(var n=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6?arguments[6]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(parseFloat(i).toFixed(2)),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),r.x=parseFloat(r.x),r.y=parseFloat(r.y),r.z=parseFloat(r.z),this.entity.position=new Cesium.Cartesian3.fromDegrees(e,t,i),this.entity.rotate={x:o,y:s,z:a},this.entity.customScale=r;var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),h=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),p=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(h,p,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,this.entity.modelMatrix);var v=r.x,g=r.y,y=r.z;0===v&&(v=1e-5),0===g&&(g=1e-5),0===y&&(y=1e-5),Cesium.Matrix4.multiplyByScale(this.entity.modelMatrix,new Cesium.Cartesian3(v,g,y),this.entity.modelMatrix),this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this.editObj&&this.editObj.update(),this.entity.isMove=!0,clearTimeout(this._timeoutEventObject),this._timeoutEventObject=setTimeout((function(){n.entity&&(n.entity.isMove=!1)}),500)}},{key:"reset",value:function(){if(this.entity)try{this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.lng=this.originalOptions.position.lng,this.lat=this.originalOptions.position.lat,this.alt=this.originalOptions.position.alt,this.maximumScale=this.originalOptions.maximumScale,this.minimumPixelSize=this.originalOptions.minimumPixelSize,this.scaleByDistance=this.originalOptions.scaleByDistance,this.rotateX=this.originalOptions.rotate.x,this.rotateY=this.originalOptions.rotate.y,this.rotateZ=this.originalOptions.rotate.z,this.scaleX=this.originalOptions.scale.x,this.scaleY=this.originalOptions.scale.y,this.scaleZ=this.originalOptions.scale.z,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect()}catch(e){}}}]);var i,o,s,a,r}(Na);function Fa(e){return'\n
        \n
        \n 名称\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 最大比例\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 最小像素\n \n
        \n
        \n
        \n
        \n 高度\n \n
        \n
        \n 视野缩放\n \n
        \n
        \n
        \n \n \n '.concat(ct(e),'\n \n \n
        \n
        \n
        \n x轴\n \n \n
        \n
        \n
        \n
        \n y轴\n \n \n
        \n
        \n
        \n
        \n z轴\n \n \n
        \n
        \n
        \n
        \n 高度\n \n \n
        \n
        \n
        \n
        \n 缩放\n \n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ',"\n
        \n
        \n
        \n ")}function Ha(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Va(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Va(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Ua(this,t,[e,n,o={}])).picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff",i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.positions=n.positions||[],i.options.type=n.type||0,i.options.interval=n.interval||0===n.interval?n.interval:1,i.options.quantity=n.quantity,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,i.options.label=n.label=n.label||{},i.options.label.show=!(!n.label.show&&!1!==n.label.show)&&n.label.show,i.options.label.fontSize=n.label.fontSize||20,i.options.label.color=n.label.color||"#ffffff",i.options.label.near=n.label.near||0===n.label.near?n.label.near:2e3,i.options.label.far=n.label.far||0===n.label.far?n.label.far:1e5,i.options.label.scaleByDistance=n.label.scaleByDistance||!1,i.options.label.backgroundColor=n.label.backgroundColor||["#42c6ef","#42c6ef"],i.options.line=n.line=n.line||{},i.options.line.width=n.line.width||2,i.options.line.length=n.line.length||20,i.options.line.color=n.line.color||"#fff000",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||[],i.options.attributeType=n.attributeType||"richText",i.ModelPositions=[],i._elms={},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i._element_style=null,i.ControllerObject=new fi(i.sdk),i.ControllerObject.controllerCallBack=function(e){i.lng=e.position.lng,i.lat=e.position.lat,i.alt=e.position.alt},i.Dialog=o,i._EventBinding=new Ye,i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(s=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(f=function(e){return new Worker("data:,(".concat(e.toString(),")(").concat(JSON.stringify(d),")"))},m=function(e){var t=e.type,i=e.interval,n=e.positions,o=e.optionsPositions,s=e.quantity,a=e.turfUrl;importScripts(a);var r=[];switch(t){case 1:var l=turf.lineString(n[0]),u=turf.lineChunk(l,i/1e3,{units:"kilometers"});r.push({lng:u.features[0].geometry.coordinates[0][0],lat:u.features[0].geometry.coordinates[0][1]});for(var h=0;hthis.options.height&&(o=this.options.positions[s].alt);n[0].length>2?(n[0].push([this.options.positions[0].lng,this.options.positions[0].lat]),a=turf.polygon(n),r=turf.pointOnFeature(a),this.center={lng:r.geometry.coordinates[0],lat:r.geometry.coordinates[1]}):2==n[0].length?this.center={lng:(this.options.positions[0].lng+this.options.positions[1].lng)/2,lat:(this.options.positions[0].lat+this.options.positions[1].lat)/2}:this.center={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat},l=[],this.options.height||0===this.options.height||(this.options.height=o),u=document.scripts,h="",p=0;case 14:if(!(pthis.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t-1?t[i].style.display="block":t[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
        '+this.options.attribute.link.content[o].url+'
        \n
        \n \n \n
        \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0&&void 0!==u[0]&&u[0],this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=36;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 600px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:first-child {\n margin-left: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:last-child {\n margin-right: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .label {\n flex: 0 0 74px;\n }\n .YJ-custom-base-dialog>.content .DIV-cy-tab-content-pane .input-select {\n width: 100px;\n }\n",e.next=12,new Be(this.sdk,this.originalOptions,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){c.name=c.options.name||"未命名对象",c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions)},resetCallBack:function(){c.reset(),c.Dialog.resetCallBack&&c.Dialog.resetCallBack()},removeCallBack:function(){c.Dialog.removeCallBack&&c.Dialog.removeCallBack()},closeCallBack:function(){c.reset(),c.positionEditing=!1,c.ControllerObject&&c.ControllerObject.destroy(),c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},showCallBack:function(e){c.show=e,c.Dialog.showCallBack&&c.Dialog.showCallBack()},translationalCallBack:function(){c.positionEditing?c.positionEditing=!1:c.positionEditing=!0}},!0);case 12:this._DialogObject=e.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML=Fa(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,new Je("model-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){c.color=e},clear:function(){c.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("label_color")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelColor=e},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("line_color")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.lineColor=e},clear:function(){c.lineColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorStart=e},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorEnd=e},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.lineColor=[s],this._elms.labelBackgroundColorStart=[a],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content,c.cameraSelect&&c.cameraSelect();var e=c.attributeSelect,t=c._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var i=Object(je.a)(t,".attribute-select");i.legp_search(e);for(var n=c._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),n=parseFloat(n),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),this.entity.rotate={x:n,y:o,z:s};var r=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),l=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),u=new Cesium.Cartesian3.fromDegrees(e,t,i);Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z)),Cesium.Matrix4.fromRotationTranslation(r),Cesium.Matrix4.fromRotationTranslation(l),Cesium.Matrix4.fromRotationTranslation(c),new Cesium.Matrix4;Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z),this.entity.modelMatrix),this.ControllerObject.update(),this.entity.position=new Cesium.Cartesian3.fromDegrees(e,t,i)}},{key:"updateModelRotate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),n=parseFloat(n),this.sdk.viewer.scene.primitives.remove(this.entity);var o=this.options.url;if(!o.startsWith("http")&&!o.includes(":")&&this.options.host){var s=new URL(o,this.options.host);o=s.href}for(var a=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Za(this,t,[e,o])).object={},i.options.host=i.options.host||Object(n.a)(),i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"on",value:function(){return this.loadLayer(this.options)}},{key:"loadLayer",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.object=Xa({},t),i="",this.object.url.startsWith("http")?i=this.object.url:this.options.host?(n=new URL(this.object.url,this.options.host),i=n.href):i=this.object.url,o={url:i,mimmumLevel:this.object.minimumLevel,maximumLevel:this.object.maximumLevel,rectangle:new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north))},e.t0=this.object.schemaName,e.next="amapMercatorTilingScheme"===e.t0?7:""===e.t0?9:10;break;case 7:return o.tilingScheme=this.amapMercatorTilingScheme(),e.abrupt("break",12);case 9:return e.abrupt("break",12);case 10:return o.tilingScheme=new Cesium[this.object.schemaName],e.abrupt("break",12);case 12:e.t1=this.object.load_method,e.next="tms"===e.t1?15:"xyz"===e.t1?24:"wmts"===e.t1?26:28;break;case 15:if(this.object.url.endsWith("tilemapresource.xml")&&((a=this.object.url.split("/")).pop(),r=a.join("/"),o.url=r),!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=22;break}return e.next=19,Cesium.TileMapServiceImageryProvider.fromUrl(o.url,o);case 19:s=e.sent,e.next=23;break;case 22:s=new Cesium.TileMapServiceImageryProvider(o);case 23:return e.abrupt("break",30);case 24:return s=new Cesium.UrlTemplateImageryProvider(o),e.abrupt("break",30);case 26:return s=new Cesium.WebMapTileServiceImageryProvider(o),e.abrupt("break",30);case 28:return s=new Cesium.UrlTemplateImageryProvider(o),e.abrupt("break",30);case 30:if(this.sdk&&this.sdk.viewer){e.next=32;break}return e.abrupt("return");case 32:for(this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s,this.options.layerIndex):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s),this.entity._id=this.options.id,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Qa(this,t,[e,n])).loadLayer(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"loadLayer",value:function(e){var t,i={url:this.options.url,mimmumLevel:this.options.minimumLevel||0,maximumLevel:this.options.maximumLevel||20,subdomains:["0","1","2","3","4","5","6","7"]};t=new Cesium.UrlTemplateImageryProvider(i),this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(t,this.options.layerIndex):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(t),this.entity._id=this.options.id;for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c()(this,t),sr(i=or(this,t,[e,n]),cr,void 0),i.object=JSON.parse(JSON.stringify(o)),i.object.west||(i.object.west=40),i.object.south||(i.object.south=30),i.object.east||(i.object.east=160),i.object.north||(i.object.north=50),i.show=i.options.show,i._elms={},i.Dialog=s,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"terrain"}},{key:"name",get:function(){return this.options.name},set:function(e){this.options.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"show",get:function(){return!(this.sdk.viewer.scene.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)},set:function(e){e?this.open():this.close()}},{key:"open",value:(r=_()(S.a.mark((function e(){var t,i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.url){e.next=4;break}return e.abrupt("return",this.loadTerrain({url:this.options.url}));case 4:return e.next=6,this.requestResource();case 6:return t=e.sent,e.next=9,t.text();case 9:if(i=e.sent,i=JSON.parse(i),![0,200].includes(i.code)){e.next=19;break}if(!i.data.url.length){e.next=16;break}return e.abrupt("return",this.loadTerrain(i.data));case 16:return e.abrupt("return",new Promise((function(e,t){t("资源不存在")})));case 17:e.next=20;break;case 19:return e.abrupt("return",new Promise((function(e,t){t(i.msg||i.message)})));case 20:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){var e=this;this.sdk.viewer.scene.terrainProvider=new Cesium.EllipsoidTerrainProvider({});for(var t=0;t=107)){e.next=9;break}return e.next=6,Cesium.CesiumTerrainProvider.fromUrl(n);case 6:this.terrainProvider=e.sent,e.next=10;break;case 9:this.terrainProvider=new Cesium.CesiumTerrainProvider({url:n});case 10:if(this.sdk&&this.sdk.viewer){e.next=12;break}return e.abrupt("return");case 12:this.sdk.viewer.terrainProvider=this.terrainProvider,clearTimeout(rr(cr,this)),ar(cr,this,setTimeout((function(){clearTimeout(rr(cr,a)),a.terrainProvider.readyPromise.then((function(){var e,t=ir(a.sdk.entityMap);try{for(t.s();!(e=t.n()).done;){var i=s()(e.value,2),n=(i[0],i[1]);"BillboardObject"!==n.type||1!=n.heightMode&&3!=n.heightMode?n.label&&(n.label.show=n.label.show):n.updateHeight()}}catch(e){t.e(e)}finally{t.f()}}))}),1e3)),Object(Z.g)(this.sdk,this.options.id);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"remove",value:function(){this.close()}},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:3,!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=tr({},this.options.position):this.options.positions?r=tr({},this.options.positions[0]):this.options.center?r=tr({},this.options.center):this.options.start?r=tr({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i,duration:t}),e.next=27;break;case 25:l=new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north)),this.sdk.viewer.camera.flyTo({destination:l,duration:t});case 27:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"setDefaultValue",value:function(){var e,i,o,s,a;(e=t,i="setDefaultValue",o=this,s=3,a=On()(Oe()(1&s?e.prototype:e),i,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.options.host=this.options.host||Object(n.a)(),this.options.url=this.options.url||""}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o=this,s=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.length>0&&void 0!==s[0]&&s[0],e.abrupt("return");case 6:this._DialogObject=e.sent,(t=document.createElement("div")).style.width="300px",i='\n \n
        \n
        \n
        \n 名称:\n \n
        \n
        \n
        \n ',t.innerHTML=i,(n=t.getElementsByClassName("name")[0]).value=this.name,n.addEventListener("input",(function(){o.name=n.value})),this._DialogObject.contentAppChild(t),this._elms.name=[n];case 16:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name}},{key:"flicker",value:function(){}}]);var i,o,a,r}(zs);function hr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return pr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?pr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=gr(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#ff0000",n.options.endColor=i.endColor||"#fff000",n.options.startScale=i.startScale||.5,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||1,n.options.maximumParticleLife=i.maximumParticleLife||2,n.options.minimumSpeed=i.minimumSpeed||1,n.options.maximumSpeed=i.maximumSpeed||30,n.options.emissionRate=i.emissionRate||60,n.options.particleSize=i.particleSize||10,n.options.show=!1!==i.show,n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n._elms={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.originalOptions=this.deepCopyObj(this.options),t=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=t.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(30)),modelMatrix:o,updateCallback:function(e){e._billboard.id=a.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(a.entity&&a.show){var e=a.sdk.viewer.camera.positionCartographic.height;a.entity.show=!(e>=1e7)}}));case 14:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=vr({},this.options.position):this.options.positions?r=vr({},this.options.positions[0]):this.options.center?r=vr({},this.options.center):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(e){this.options.minimumSpeed=e,this.particleSystem.minimumSpeed=e,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(t){t.value=e}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(e){this.options.maximumSpeed=e,this.particleSystem.maximumSpeed=e,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(t){t.value=e}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=e,this.particleSystem.minimumParticleLife=e,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=e}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=e,this.particleSystem.maximumParticleLife=e,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=e}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=e,this.particleSystem.startScale=e,this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=e}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=e,this.particleSystem.endScale=e,this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=e}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=e,this.particleSystem.emissionRate=e,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=e}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=e,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(e,e),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(e,e),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(t=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 起始颜色\n
        \n
        \n
        \n 结束颜色\n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n 最小初速度\n \n
        \n
        \n
        \n
        \n 最大初速度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 最小存在时间\n \n
        \n
        \n
        \n
        \n 最大存在时间\n \n
        \n
        \n
        \n
        \n
        \n
        \n 起始比例\n \n
        \n
        \n
        \n
        \n 结束比例\n \n
        \n
        \n
        \n
        \n
        \n
        \n 发射速率(个/秒)\n \n
        \n
        \n
        \n
        \n 尺寸(像素)\n \n
        \n
        \n
        \n
        \n \n ',this._DialogObject.contentAppChild(t),i=new YJColorPicker({el:t.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.startColor=e},clear:function(){s.startColor="rgba(255,255,255,1)"}}),n=new YJColorPicker({el:t.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.endColor=e},clear:function(){s.endColor="rgba(255,255,255,1)"}}),o=t.getElementsByTagName("*"),mr.on(this,o),this._elms=mr.element,this._elms.startColor=[i],this._elms.endColor=[n],e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,Object(J.h)(this.entity))}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yr(t,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=8,this.sdk.removeIncetance(this.options.id);case 8:return e.next=10,Object(J.g)(this.sdk,this.options.id);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,!0===e){var i;this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:vr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.lng,t.options.lat,t.options.alt),a=t.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);t.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),t._elms.lng&&t._elms.lng.forEach((function(e){e.value=t.options.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.alt})),t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,n){if(!i||i.x!==e.position.x||i.y!==e.position.y-2){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt}t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:vr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.lng=e.lng,t.options.lat=e.lat,t.options.alt=e.alt,t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:vr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.alt}))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"flicker",value:function(){}}]);var i,n,o,s}(vt);function Cr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return wr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?wr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Er(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#00000000",n.options.endColor=i.endColor||"#0000001a",n.options.startScale=i.startScale||.1,n.options.endScale=i.endScale||10,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||10,n.options.maximumSpeed=i.maximumSpeed||15,n.options.emissionRate=i.emissionRate||28,n.options.particleSize=i.particleSize||2,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.originalOptions=this.deepCopyObj(this.options),t=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=t.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.CircleEmitter(.2),performance:!1,modelMatrix:o,updateCallback:function(e){e._billboard.id=a.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(a.entity&&a.show){var e=a.sdk.viewer.camera.positionCartographic.height;a.entity.show=!(e>=1e7)}}));case 14:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Sr({},this.options.position):this.options.positions?r=Sr({},this.options.positions[0]):this.options.center?r=Sr({},this.options.center):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(e){this.options.minimumSpeed=e,this.particleSystem.minimumSpeed=e,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(t){t.value=e}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(e){this.options.maximumSpeed=e,this.particleSystem.maximumSpeed=e,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(t){t.value=e}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=e,this.particleSystem.minimumParticleLife=e,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=e}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=e,this.particleSystem.maximumParticleLife=e,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=e}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=e,this.particleSystem.startScale=e,this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=e}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=e,this.particleSystem.endScale=e,this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=e}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=e,this.particleSystem.emissionRate=e,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=e}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=e,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(e,e),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(e,e),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(t=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 起始颜色\n
        \n
        \n
        \n 结束颜色\n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n 最小初速度\n \n
        \n
        \n
        \n
        \n 最大初速度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 最小存在时间\n \n
        \n
        \n
        \n
        \n 最大存在时间\n \n
        \n
        \n
        \n
        \n
        \n
        \n 起始比例\n \n
        \n
        \n
        \n
        \n 结束比例\n \n
        \n
        \n
        \n
        \n
        \n
        \n 发射速率(个/秒)\n \n
        \n
        \n
        \n
        \n 尺寸(像素)\n \n
        \n
        \n
        \n
        \n \n ',this._DialogObject.contentAppChild(t),i=new YJColorPicker({el:t.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.startColor=e},clear:function(){s.startColor="rgba(255,255,255,1)"}}),n=new YJColorPicker({el:t.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.endColor=e},clear:function(){s.endColor="rgba(255,255,255,1)"}}),o=t.getElementsByTagName("*"),_r.on(this,o),this._elms=_r.element,this._elms.startColor=[i],this._elms.endColor=[n],e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Pr(t,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=8,this.sdk.removeIncetance(this.options.id);case 8:return e.next=10,Object(J.g)(this.sdk,this.options.id);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,!0===e){var i;this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Sr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.lng,t.options.lat,t.options.alt),a=t.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);t.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),t._elms.lng&&t._elms.lng.forEach((function(e){e.value=t.options.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.alt})),t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,n){if(!i||i.x!==e.position.x||i.y!==e.position.y-2){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt}t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:Sr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.lng=e.lng,t.options.lat=e.lat,t.options.alt=e.alt,t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:Sr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.alt}))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"flicker",value:function(){}}]);var i,n,o,s}(vt);function Dr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Mr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Ar(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f24d",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||1,n.options.endScale=i.endScale||20,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||9,n.options.maximumSpeed=i.maximumSpeed||9.5,n.options.emissionRate=i.emissionRate||20,n.options.particleSize=i.particleSize||.5,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=function(){var e=Cesium.HeadingPitchRoll.fromDegrees(0,0,0),t=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 + */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(52),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t>2]|=e[s]<>6,l[o++]=128|63&n):n<55296||n>=57344?(l[o++]=224|n>>12,l[o++]=128|n>>6&63,l[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++s)),l[o++]=240|n>>18,l[o++]=128|n>>12&63,l[o++]=128|n>>6&63,l[o++]=128|63&n);else for(o=this.start;s>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(r[o>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,i,n,o,s,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(i=((i=(-271733879^(n=((n=(-1732584194^2004318071&e)+a[1]-117830708)<<12|n>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|i>>>15)+n<<0)&(n^e))+a[3]-1316259209)<<22|t>>>10)+i<<0:(e=this.h0,t=this.h1,i=this.h2,t=((t+=((e=((e+=((n=this.h3)^t&(i^n))+a[0]-680876936)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[1]-389564586)<<12|n>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|i>>>15)+n<<0)&(n^e))+a[3]-1044525330)<<22|t>>>10)+i<<0),t=((t+=((e=((e+=(n^t&(i^n))+a[4]-176418897)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[5]+1200080426)<<12|n>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|i>>>15)+n<<0)&(n^e))+a[7]-45705983)<<22|t>>>10)+i<<0,t=((t+=((e=((e+=(n^t&(i^n))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[9]-1958414417)<<12|n>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|i>>>15)+n<<0)&(n^e))+a[11]-1990404162)<<22|t>>>10)+i<<0,t=((t+=((e=((e+=(n^t&(i^n))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(i=((i+=(t^(n=((n+=(i^e&(t^i))+a[13]-40341101)<<12|n>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|i>>>15)+n<<0)&(n^e))+a[15]+1236535329)<<22|t>>>10)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[11]+643717713)<<14|i>>>18)+n<<0)^n))+a[0]-373897302)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[15]-660478335)<<14|i>>>18)+n<<0)^n))+a[4]-405537848)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[3]-187363961)<<14|i>>>18)+n<<0)^n))+a[8]+1163531501)<<20|t>>>12)+i<<0,t=((t+=((n=((n+=(t^i&((e=((e+=(i^n&(t^i))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|n>>>23)+e<<0)^e&((i=((i+=(e^t&(n^e))+a[7]+1735328473)<<14|i>>>18)+n<<0)^n))+a[12]-1926607734)<<20|t>>>12)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[11]+1839030562)<<16|i>>>16)+n<<0))+a[14]-35309556)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[7]-155497632)<<16|i>>>16)+n<<0))+a[10]-1094730640)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[3]-722521979)<<16|i>>>16)+n<<0))+a[6]+76029189)<<23|t>>>9)+i<<0,t=((t+=((s=(n=((n+=((o=t^i)^(e=((e+=(o^n)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|n>>>21)+e<<0)^e)^(i=((i+=(s^t)+a[15]+530742520)<<16|i>>>16)+n<<0))+a[2]-995338651)<<23|t>>>9)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[0]-198630844)<<6|e>>>26)+t<<0)|~i))+a[7]+1126891415)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[14]-1416354905)<<15|i>>>17)+n<<0)|~e))+a[5]-57434055)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~i))+a[3]-1894986606)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[10]-1051523)<<15|i>>>17)+n<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~i))+a[15]-30611744)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[6]-1560198380)<<15|i>>>17)+n<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+i<<0,t=((t+=((n=((n+=(t^((e=((e+=(i^(t|~n))+a[4]-145523070)<<6|e>>>26)+t<<0)|~i))+a[11]-1120210379)<<10|n>>>22)+e<<0)^((i=((i+=(e^(n|~t))+a[2]+718787259)<<15|i>>>17)+n<<0)|~e))+a[9]-343485551)<<21|t>>>11)+i<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=i-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+i<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,i,n="",o=this.array(),s=0;s<15;)e=o[s++],t=o[s++],i=o[s++],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|i>>>6)]+BASE64_ENCODE_CHAR[63&i];return e=o[s],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(50),__webpack_require__(51))},function(e,t,i){var n=i(5),o=i(33),s=i(53),a=i(54);function r(t){var i="function"==typeof Map?new Map:void 0;return e.exports=r=function(e){if(null===e||!s(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){e.exports=i(58)},function(e,t,i){var n=i(22).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var t,i={},s=Object.prototype,a=s.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function p(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,i){return e[t]=i}}function d(e,t,i,n){var o=t&&t.prototype instanceof b?t:b,s=Object.create(o.prototype),a=new N(n||[]);return r(s,"_invoke",{value:O(e,i,a)}),s}function m(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}i.wrap=d;var f="suspendedStart",v="executing",g="completed",y={};function b(){}function C(){}function w(){}var k={};p(k,c,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==s&&a.call(x,c)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function E(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function i(o,s,r,l){var c=m(e[o],e,s);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==n(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,r,l)}),(function(e){i("throw",e,r,l)})):t.resolve(h).then((function(e){u.value=e,r(u)}),(function(e){return i("throw",e,r,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function s(){return new t((function(t,o){i(e,n,t,o)}))}return o=o?o.then(s,s):s()}})}function O(e,i,n){var o=f;return function(s,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var r=n.delegate;if(r){var l=D(r,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=m(e,i,n);if("normal"===c.type){if(o=n.done?g:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function D(e,i){var n=i.method,o=e.iterator[n];if(o===t)return i.delegate=null,"throw"===n&&e.iterator.return&&(i.method="return",i.arg=t,D(e,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var s=m(o,e.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,y;var a=s.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,y):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e||""===e){var i=e[c];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function i(){for(;++o=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),T(i),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var o=n.arg;T(i)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,i,n){return this.delegate={iterator:B(e),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=t),y}},i}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,s,a,r=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return r}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(22).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(35);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var i,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(e){if(i===setTimeout)return setTimeout(e,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:s}catch(e){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,h=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&d())}function d(){if(!u){var e=r(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h1)for(var i=1;i=5e7&&(l=5e7-i),t.zoomOut(l)}}(e)}))}var d={moveForward:!1,moveBackward:!1,moveLeft:!1,moveRight:!1,moveUp:!1,moveDown:!1,lookUp:!1,lookDown:!1,lookLeft:!1,lookRight:!1,twistLeft:!1,twistRight:!1,zoomIn:!1,zoomOut:!1};function m(e){switch(e){case 87:return"moveForward";case 83:return"moveBackward";case 68:return"moveRight";case 65:return"moveLeft";case 81:return"moveUp";case 69:return"moveDown";case 38:return"lookUp";case 40:return"lookDown";case 37:return"lookLeft";case 39:return"lookRight";case 96:return"twistLeft";case 110:return"twistRight";case 107:return"zoomIn";case 109:return"zoomOut";default:return}}function f(e){var t;if("input"===(t=document.activeElement).tagName.toLowerCase()&&"checkbox"!==t.type||"textarea"===t.tagName.toLowerCase()||"textarea"===t.getAttribute("role"));else if(this.trackedEntity);else if(this._firstPersonView);else if(this._disableKeyboardEvent);else if(e.ctrlKey&&e.altKey){if("v"===e.key||"V"===e.key){var i=this.camera;this._CAMERA_SHORTCUT_VIEW={orientation:{heading:i.heading,pitch:i.pitch,roll:i.roll},position:{x:i.position.x,y:i.position.y,z:i.position.z}},localStorage.setItem("CAMERA_SHORTCUT_VIEW",JSON.stringify(this._CAMERA_SHORTCUT_VIEW))}if("f"===e.key||"F"===e.key){var n=localStorage.getItem("CAMERA_SHORTCUT_VIEW");this._CAMERA_SHORTCUT_VIEW=JSON.parse(n),this._CAMERA_SHORTCUT_VIEW&&this._CAMERA_SHORTCUT_VIEW.position&&this._CAMERA_SHORTCUT_VIEW.orientation&&this.camera.flyTo({destination:this._CAMERA_SHORTCUT_VIEW.position,orientation:this._CAMERA_SHORTCUT_VIEW.orientation})}}else{var o=m(e.keyCode);void 0!==o&&(d[o]=!0)}}function g(e){var t=m(e.keyCode);void 0!==t&&(d[t]=!1)}var y=i(23);var b=i(15);function C(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=e.color,this.duration=e.duration,this.fltr=e.fltr,this.image=e.image,this._time=(new Date).getTime()}Object.defineProperties(e.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:Cesium.createPropertyDescriptor("repeat"),color:Cesium.createPropertyDescriptor("color")}),e.prototype.getType=function(e){return"PolylineTrailLink"},e.prototype.getValue=function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BROWN,t.color),this.image?t.image=this.image:t.image=Cesium.Material.PolylineTrailLinkImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),!1===this.fltr?t.fltr=this.fltr:t.fltr=!0,t},e.prototype.equals=function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)},Cesium.PolylineTrailLinkMaterialProperty=e,Cesium.Material.PolylineTrailLinkType="PolylineTrailLink",Cesium.Material.PolylineTrailLinkImage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fa2020",t=512,i=32,n=new fabric.Canvas("canvas",{width:t,height:i}),o=new fabric.Rect({width:t,height:i}),s=new fabric.Gradient({type:"linear",gradientUnits:"pixels",coords:{x1:0,y1:0,x2:t,y2:0},colorStops:[{offset:.01,color:"rgba(246,241,241,0)"},{offset:1,color:e}]});return o.set("fill",s),n.add(o),n.toDataURL()}(),Cesium.Material.PolylineTrailLinkSource="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material =czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture(image,vec2(fract(st.t - time), st.t));\n vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb/20.0;\n material.emission = fragColor.rgb;\n return material;\n }",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailLinkType,{fabric:{type:Cesium.Material.PolylineTrailLinkType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.Material.PolylineTrailLinkImage,time:0},source:Cesium.Material.PolylineTrailLinkSource},translucent:function(e){return!0}})}function w(){var e,t,i,n,o,s,a,r;C(),e=new b.a,"undefined"!=typeof Cesium&&function(t){t.CustomMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.Color,t.defaultValue),o=Object.defineProperties,s=t.Event,a=t.createPropertyDescriptor,r=t.Property,l=t.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random()),u={color:new t.Color(1,1,1,1),image:i.image||e.getSourceRootPath()+"/img/material/arrow.png",time:i.time||0,repeat:new t.Cartesian2(100,100),fltr:!i.fltr&&!1!==i.fltr||i.fltr,is2D:!!i.is2D,isTranslucent:!i.isTranslucent&&!1!==i.isTranslucent||i.isTranslucent};if(this.code="",i.repeats)for(var h=t.Property.getValueOrDefault(i.repeats),p=0;p0&&void 0!==arguments[0]?arguments[0]:{};e=n(e,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeats=void 0,this._repeatSubscription=void 0,this.image=e.image,this.is2D=!!e.is2D,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)"),this.repeat=e.repeat,this.repeats=e.repeats,this.duration=e.duration||0===e.duration?e.duration:1e3,this.fltr=!e.fltr&&!1!==e.fltr||e.fltr,this._time=(new Date).getTime()}return o(d.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:t.createPropertyDescriptor("repeat"),color:a("color")}),d.prototype.getType=function(e){return c},d.prototype.getValue=function(e,i){if(t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i.time=this.duration?t.getTimestamp()%this.duration/this.duration:0,i.image=this.image,i.is2D=!!this.is2D,this.repeat&&(i.repeat=t.Property.getValueOrDefault(this.repeat)),this.repeats)for(var n=t.Property.getValueOrDefault(this.repeats),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=(e.Color,e.defaultValue),n=Object.defineProperties,o=e.Event,s=e.createPropertyDescriptor,a=e.Property,r=e.Material,l=t.MaterialType||"wallType"+parseInt(1e3*Math.random());function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=i(t,i.EMPTY_OBJECT),this._definitionChanged=new o,this._color=void 0,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)")}return n(c.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:s("color")}),c.prototype.getType=function(e){return l},c.prototype.getValue=function(t,i){return e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i},c.prototype.equals=function(e){return this===e||e instanceof c&&a.equals(this._color,e._color)},r._materialCache.addMaterial(l,{fabric:{type:l,uniforms:{color:new e.Color(1,1,1,1)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.alpha = color.a;\n \n material.diffuse = color.rgb*0.0;\n material.emission = color.rgb;\n return material;\n }",components:{specular:1,diffuse:"vec3(0.0)"}},translucent:function(e){return!0}}),new c(t)}}(Cesium),function(){var e=new b.a;"undefined"!=typeof Cesium&&function(t){t.CustomImageMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.Color,t.defaultValue),o=Object.defineProperties,s=t.Event,a=t.createPropertyDescriptor,r=t.Property,l=t.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random());function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=n(e,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.image=e.image,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)"),this.repeat=e.repeat}return o(u.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:t.createPropertyDescriptor("repeat"),color:a("color")}),u.prototype.getType=function(e){return c},u.prototype.getValue=function(e,i){return t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i.image=this.image,i.repeat=t.Property.getValueOrDefault(this.repeat),i},u.prototype.equals=function(e){return this===e||e instanceof u&&r.equals(this._color,e._color)&&r.equals(this.repeat,e._repeat)},l._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new t.Color(1,1,1,1),image:i.image||e.getSourceRootPath()+"/img/material/arrow.png",repeat:new t.Cartesian2(100,100)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = repeat * materialInput.st;\n vec4 colorImage = texture(image, st);\n \n material.diffuse = colorImage.rgb * 0.0;\n material.emission = colorImage.rgb * 0.3;\n return material;\n }"}}),new u(i)}}(Cesium)}(),i=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._duration=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.duration=t.duration||10,this.lineBackAlpha=t.lineBackAlpha||.05}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.FlowLineMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.duration=Cesium.Property.getValueOrDefault(this._duration,e,10,t.duration),t.lineBackAlpha=this.lineBackAlpha,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._duration,t.duration)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(i.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.FlowLineMaterialProperty=i,Cesium.Material.FlowLineMaterialProperty="FlowLineMaterialProperty",Cesium.Material.FlowLineMaterialType="FlowLineMaterialType",Cesium.Material.FlowLineMaterialSource="\n uniform vec4 color;\n uniform float duration;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n float time = fract(czm_frameNumber / (60.0*duration));\n //长度1/10\n time = time * (1.0 + 0.1);\n //平滑过渡函数\n float alpha = smoothstep(time-0.1,time,st.s) * step(-time,-st.s);\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowLineMaterialType,{fabric:{type:Cesium.Material.FlowLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),duration:10,lineBackAlpha:.05},source:Cesium.Material.FlowLineMaterialSource},translucent:function(e){return!0}}),n=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.lineBackAlpha=t.lineBackAlpha||.05,this.rotate=t.rotate}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.PolylineFlowMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.rotate=Cesium.Property.getValueOrDefault(this._rotate,e,!0,t.rotate),t.lineBackAlpha=this.lineBackAlpha,t.frameTime=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(n.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMaterialProperty=n,Cesium.Material.PolylineFlowMaterialProperty="PolylineFlowMaterialProperty",Cesium.Material.PolylineFlowMaterialType="PolylineFlowMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n // float time = fract(czm_frameNumber * speed / 60.0);\n // float time = fract(abs(speed) * czm_frameNumber * 0.01);\n float time = fract(frameTime / 1000.0 / abs(speed));\n //长度1/10\n // time = time * (1.0 + 0.1);\n float staticAlpha = rotate?smoothstep(0.0,1.0, 1.0-st.s) * step(-1.0,-(1.0-st.s)):smoothstep(0.0,1.0, st.s) * step(-1.0,-st.s);\n\n //平滑过渡函数\n float alpha1 = smoothstep(time-0.1,time,1.0-st.s) * step(-time,- (1.0-st.s));\n float alpha2 = smoothstep(time-0.1,time,st.s) * step(-time,- st.s);\n float alpha =(speed== 0.0)? staticAlpha:(speed < 0.0)?alpha2:alpha1;\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(e){return!0}}),o=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.lineBackAlpha=t.lineBackAlpha||.05,this.rotate=t.rotate}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.PolylineFlowMultMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.rotate=Cesium.Property.getValueOrDefault(this._rotate,e,!0,t.rotate),t.lineBackAlpha=this.lineBackAlpha,t.frameTime=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this._rotate,t.rotate)&&Cesium.Property.equals(this.lineBackAlpha,t.lineBackAlpha)}}])}(),Object.defineProperties(o.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMultMaterialProperty=o,Cesium.Material.PolylineFlowMultMaterialProperty="PolylineFlowMultMaterialProperty",Cesium.Material.PolylineFlowMultMaterialType="PolylineFlowMultMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n // 基础时间轴(控制主光带)\n float baseTime = fract(czm_frameNumber * speed / 60.0) * 1.1;\n\n // 高频时间轴(控制高光点)\n // float highlightTime = fract(czm_frameNumber * speed * 3.0 / 60.0);\n // float highlightTime = fract(abs(speed) * czm_frameNumber * 0.01);\n float highlightTime = fract(frameTime / 1000.0 / abs(speed));\n float highlightSpacing = 0.3; // 高光点间隔\n\n // 主光带透明度计算\n float mainAlpha = smoothstep(baseTime-0.1, baseTime, st.s) * step(-baseTime, -st.s);\n\n // 多高光点计算(3个周期性光斑)\n float highlight11 = smoothstep(highlightTime-0.05, highlightTime, st.s) *\n step(-highlightTime, -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - highlightTime)));\n\n float highlight21 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, st.s) *\n step(-(highlightTime+highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+highlightSpacing))));\n\n float highlight31 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight12 = smoothstep(highlightTime-0.05, highlightTime, 1.0 - st.s) *\n step(-highlightTime, -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - highlightTime)));\n\n float highlight22 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+highlightSpacing),-(1.0 - st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0-st.s - (highlightTime+highlightSpacing))));\n\n float highlight32 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight1 = !rotate?highlight11:highlight12;\n float highlight2 = !rotate?highlight21:highlight22;\n float highlight3 = !rotate?highlight31:highlight32;\n // 合并效果\n // material.alpha = mainAlpha * 0.7 +\n // (highlight1 + highlight2 + highlight3) * 0.5 +\n // lineBackAlpha;\n material.alpha = (highlight1 + highlight2 + highlight3) * 0.5 +\n lineBackAlpha;\n material.diffuse = color.rgb; // 高光区变亮\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMultMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMultMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(e){return!0}}),s=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._uType=void 0,this._space=void 0,this._dashSize=void 0,this._scale=void 0,this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.space=t.space||0,this.dashSize=t.dashSize||.03,this.uType=void 0===t.uType?1:t.uType,this.lineBackAlpha=t.lineBackAlpha||.05,this.scale=t.scale||1}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.FlowDashedLineMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.space=Cesium.Property.getValueOrDefault(this._space,e,10,t.space),t.dashSize=Cesium.Property.getValueOrDefault(this._dashSize,e,10,t.dashSize),t.uType=Cesium.Property.getValueOrDefault(this._uType,e,1,t.uType),t.scale=Cesium.Property.getValueOrDefault(this._scale,e,1,t.scale),t.lineBackAlpha=this.lineBackAlpha,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t.speed)&&Cesium.Property.equals(this._uType,t.uType)&&Cesium.Property.equals(this._lineBackAlpha,t.lineBackAlpha)&&Cesium.Property.equals(this._scale,t.scale)}}])}(),Object.defineProperties(s.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),space:Cesium.createPropertyDescriptor("space"),dashSize:Cesium.createPropertyDescriptor("dashSize"),uType:Cesium.createPropertyDescriptor("uType"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha"),scale:Cesium.createPropertyDescriptor("scale")}),Cesium.FlowDashedLineFlowMaterialProperty=s,Cesium.Material.FlowDashedLineFlowMaterialProperty="FlowDashedLineFlowMaterialProperty",Cesium.Material.FlowDashedLineMaterialType="FlowDashedLineMaterialType",Cesium.Material.FlowDashedLineMaterialSource="\n uniform vec4 color;\n uniform float speed;\n // uniform int uType;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n float dashSize = 0.1;\n float gapSize = space;\n // speed现在表示完成一次完整动画循环的秒数\n float progress = speed==0.0 ? 0.0 : fract(frameNumber / 1000.0 / speed * scale);\n float pattern = fract(st.x / dashSize * (1.0 + gapSize) + progress / dashSize * (1.0 + gapSize));\n float dash1 = step(0.0, pattern) - step(1.0/(1.0 + gapSize), pattern);\n float dash2 = smoothstep(0.0, 0.2, pattern) -\n smoothstep(1.0/(1.0 + gapSize),\n 1.0/(1.0 + gapSize) + 0.2,\n pattern);\n float dash = (float(uType) != 1.0)?dash1:dash2;\n material.alpha = dash;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowDashedLineMaterialType,{fabric:{type:Cesium.Material.FlowDashedLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:1,space:0,scale:1,dashSize:.03,frameNumber:Cesium.getTimestamp(),uType:1,lineBackAlpha:.05},source:Cesium.Material.FlowDashedLineMaterialSource},translucent:function(e){return!0}}),a=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._image=void 0,this._color=void 0,this._speed=void 0,this._repeat=void 0,this.image=t.image||"",this.color=new Cesium.Color.fromCssColorString(t.color||"rgba(255,255,255,1)"),this.speed=null!=t.speed?t.speed:1,this.repeat=t.repeat||new Cesium.Cartesian2(1,1)}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.LineTextureMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=Cesium.Property.getValueOrDefault(this._image,e,"",t.image),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,1,t.speed),t.repeat=Cesium.Property.getValueOrDefault(this._repeat,e,new Cesium.Cartesian2(1,1),t.repeat),t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._image,t._image)&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._imageW,t._imageW)&&Cesium.Property.equals(this._speed,t._speed)}}])}(),Object.defineProperties(a.prototype,{image:Cesium.createPropertyDescriptor("image"),color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),repeat:Cesium.createPropertyDescriptor("repeat")}),Cesium.LineTextureMaterialProperty=a,Cesium.Material.LineTextureMaterialProperty="LineTextureMaterialProperty",Cesium.Material.LineTextureMaterialType="LineTextureMaterialType",Cesium.Material.LineTextureMaterialSource="\n uniform vec4 color;\n uniform sampler2D image;\n uniform float speed;\n // uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat.x; // 关键:通过repeat控制纹理密度\n // vec4 colorImage = texture2D(image, vec2(fract(st.s + speed*czm_frameNumber* 0.01), st.t));\n vec4 colorImage = speed==0.0?texture2D(image, vec2(fract(st.s), st.t)):texture2D(image, vec2(fract(st.s + frameNumber / 1000.0 / speed * repeat.x / repeat.y ), st.t));\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.LineTextureMaterialType,{fabric:{type:Cesium.Material.LineTextureMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),image:"",repeat:new Cesium.Cartesian2(1,1),speed:1,frameNumber:Cesium.getTimestamp(),uTime:1},source:Cesium.Material.LineTextureMaterialSource},translucent:function(e){return!0}}),r=function(){function e(t){c()(this,e),this._definitionChanged=new Cesium.Event,this._image=void 0,this._repeat=void 0,this._stRotation=void 0,this._repeatLength=void 0,this.image=t.image||"",this.repeat=t.repeat||1,this.stRotation=t.stRotation||0}return h()(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.RoadTextureMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=Cesium.Property.getValueOrDefault(this._image,e,"",t.image),t.repeat=Cesium.Property.getValueOrDefault(this._repeat,e,1,t.repeat),t.stRotation=Cesium.Property.getValueOrDefault(this._stRotation,e,0,t.stRotation),console.log(t,"result"),t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._image,t._image)&&Cesium.Property.equals(this._repeat,t._repeat)&&Cesium.Property.equals(this._stRotation,t._stRotation)}}])}(),Object.defineProperties(r.prototype,{image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat"),repeatLength:Cesium.createPropertyDescriptor("stRotation")}),Cesium.RoadTextureMaterialProperty=r,Cesium.Material.RoadTextureMaterialProperty="RoadTextureMaterialProperty",Cesium.Material.RoadTextureMaterialType="RoadTextureMaterialType",Cesium.Material.RoadTextureMaterialSource="\n uniform sampler2D image;\n uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat;\n mat2 rot = mat2(cos(stRotation), -sin(stRotation), sin(stRotation), cos(stRotation));\n vec2 newSt = rot * (st - 0.5) + 0.5;\n\n vec4 colorImage = texture2D(image, newSt);\n material.diffuse = colorImage.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.RoadTextureMaterialType,{fabric:{type:Cesium.Material.RoadTextureMaterialType,uniforms:{image:"",repeat:1,stRotation:0},source:Cesium.Material.RoadTextureMaterialSource},translucent:function(e){return!0}})}var k=i(3),_=i.n(k),x=i(0),S=i.n(x),E=function(){return h()((function e(t,i){c()(this,e),this.dom=t,this.playerUrl=i.url,this.init()}),[{key:"init",value:function(){this.flvPlayer=flvjs.createPlayer({type:"flv",url:this.playerUrl,isLive:!0,hasAudio:!1,hasVideo:!0},{enableWorker:!0,enableStashBuffer:!1,stashInitialSize:128}),this.flvPlayer.attachMediaElement(this.dom),this.flvPlayer.load()}},{key:"on",value:function(e,t,i){this.flvPlayer.on(flvjs[e][t],i)}},{key:"destroy",value:function(){this.flvPlayer.destroy(),this.flvPlayer=null}}])}(),O=function(){return h()((function e(t,i){c()(this,e),this.dom=t,this.url=i.url,this.init()}),[{key:"init",value:function(){this.player=new Jessibuca({container:this.dom,decoder:this.getSourceRootPath()+"/3rdparty/jessibuca/decoder.js",timeout:30,heartTimeout:30,heartTimeoutReplay:!1,loadingTimeout:30,loadingTimeoutReplay:!1,wasmDecodeErrorReplay:!1,videoBuffer:.2,isResize:!1,text:"",loadingText:"",useMSE:!1,debug:!0,showBandwidth:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,recorder:!1},forceNoOffscreen:!1,isNotMute:!1}),this.player.play(this.url)}},{key:"on",value:function(e,t){this.player.on(e,t)}},{key:"destroy",value:function(){this.player.destroy(),this.player=null}},{key:"getSourceRootPath",value:function(){var e=document.querySelectorAll("script"),t="";return e.forEach((function(e){if(e.src&&e.src.indexOf("YJEarth.min.js")>-1){var i=e.src.split("/");i.pop(),t=i.join("/")}})),t}}])}();function D(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function M(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var T=/^[og]\s*(.+)?/,N=/^mtllib /,B=/^usemtl /,j=/^usemap /,A=/\s+/,L={red:1,green:1,blue:1,alpha:1};function I(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var i=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){var i=this._finalize(!1);i&&(i.inherited||i.groupCount<=0)&&this.materials.splice(i.index,1);var n={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==i?i.smooth:this.smooth,groupStart:void 0!==i?i.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(n),n},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var i=this.materials.length-1;i>=0;i--)this.materials[i].groupCount<=0&&this.materials.splice(i,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},i&&i.name&&"function"==typeof i.clone){var n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var i=parseInt(e,10);return 3*(i>=0?i-1:i+t/3)},parseNormalIndex:function(e,t){var i=parseInt(e,10);return 3*(i>=0?i-1:i+t/3)},parseUVIndex:function(e,t){var i=parseInt(e,10);return 2*(i>=0?i-1:i+t/2)},addVertex:function(e,t,i){var n=this.vertices,o=this.object.geometry.vertices;o.push(n[e+0],n[e+1],n[e+2]),o.push(n[t+0],n[t+1],n[t+2]),o.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,i){var n=this.normals,o=this.object.geometry.normals;o.push(n[e+0],n[e+1],n[e+2]),o.push(n[t+0],n[t+1],n[t+2]),o.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(e,t,i){console.warn("addFaceNormal")},addColor:function(e,t,i){var n=this.colors,o=this.object.geometry.colors;void 0!==n[e]&&o.push(n[e+0],n[e+1],n[e+2]),void 0!==n[t]&&o.push(n[t+0],n[t+1],n[t+2]),void 0!==n[i]&&o.push(n[i+0],n[i+1],n[i+2])},addUV:function(e,t,i){var n=this.uvs,o=this.object.geometry.uvs;o.push(n[e+0],n[e+1]),o.push(n[t+0],n[t+1]),o.push(n[i+0],n[i+1])},addDefaultUV:function(){var e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){var t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,i,n,o,s,a,r,l){var c=this.vertices.length,u=this.parseVertexIndex(e,c),h=this.parseVertexIndex(t,c),p=this.parseVertexIndex(i,c);if(this.addVertex(u,h,p),this.addColor(u,h,p),void 0!==a&&""!==a){var d=this.normals.length;u=this.parseNormalIndex(a,d),h=this.parseNormalIndex(r,d),p=this.parseNormalIndex(l,d),this.addNormal(u,h,p)}else this.addFaceNormal(u,h,p);if(void 0!==n&&""!==n){var m=this.uvs.length;u=this.parseUVIndex(n,m),h=this.parseUVIndex(o,m),p=this.parseUVIndex(s,m),this.addUV(u,h,p),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,i=0,n=e.length;i=7?(Cesium.Color.fromBytes(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),1,L),n.colors.push(L.red,L.green,L.blue)):n.colors.push(void 0,void 0,void 0);break;case"vn":n.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":n.uvs.push(parseFloat(u[1]),parseFloat(u[2]))}}else if("f"===c){for(var h=l.slice(1).trim().split(A),p=[],d=0,m=h.length;d0){var v=f.split("/");p.push(v)}}for(var g=p[0],y=1,b=p.length-1;y1){var D=s[1].trim().toLowerCase();n.object.smooth="0"!==D&&"off"!==D}else n.object.smooth=!0;var M=n.object.currentMaterial();M&&(M.smooth=n.object.smooth)}else{if("\0"===l)continue;console.warn('Unexpected line: "'+l+'"')}}}n.finalize();var R=new V(this.context,this.hls,this.videoId,this.host,i);if(!0===!(1===n.objects.length&&0===n.objects[0].geometry.vertices.length))for(var H=0,G=n.objects.length;H0&&(p=!0),i.colors.length>0&&(d=!0),!0===i.hasUVIndices&&(m=!0),p&&(l+="attribute vec3 normal;\n",l+="varying vec3 v_normal;\n",u+="varying vec3 v_normal;\n",h+="v_normal = normal;\n"),d&&(l+="attribute vec3 color;\n",l+="varying vec2 v_color;\n",u+="varying vec2 v_color;\n",h+="v_color = color;\n"),m&&(l+="attribute vec2 uv;\n",l+="varying vec2 v_uv;\n",u+="varying vec2 v_uv;\n",h+="v_uv = uv;\n"),l+="\n void main() {\n gl_Position = czm_modelViewProjection * vec4(position, 1.);\n ".concat(h,"\n }\n "),u+="\n\t\tuniform sampler2D colorTexture;\n void main() {\n\t\t\t vec4 color = texture2D(colorTexture, v_uv);\n\t\t\t\t\t\tgl_FragColor = color;\n }\n ",this.program=Cesium.ShaderProgram.fromCache({context:t,vertexShaderSource:l,fragmentShaderSource:u}),this.uniformMap={};var f=this;r.then((function(e){for(var t=function(){var t=e[i].diffusemap;s.uniformMap.colorTexture=function(){return t}},i=0;i0){o++;var a=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.normals),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:a,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(i.colors.length>0){o++;var r=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.colors),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:r,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(!0===i.hasUVIndices){o++;var l=Cesium.Buffer.createVertexBuffer({context:t,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.uvs),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:l,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1})}var u=new Cesium.VertexArray({context:t,attributes:n}),h=Cesium.RenderState.fromCache({cull:{enabled:!1},depthMask:!0,depthTest:{enabled:!0}});this.drawCommand=new Cesium.DrawCommand({owner:this,primitiveType:Cesium.PrimitiveType.TRIANGLES,vertexArray:u,renderState:h,pass:Cesium.Pass.OPAQUE})}),[{key:"setMaterial",value:function(e){this.material=e,e.setCommand(this.drawCommand)}},{key:"update",value:function(e){Cesium.defined(this.material)&&this.material.ready&&e.commandList.push(this.drawCommand)}},{key:"updateVideo",value:function(e,t,i){var n=!1;if(Cesium.defined(this.material)&&this.material.ready)if(i.computeVisibility(this.drawCommand.boundingVolume)>=0&&this.material.ready){var o=e.distanceToBoundingSphere(this.drawCommand.boundingVolume),s=t.width,a=t.height;o>=20&&o<100?(s=t.width/2,a=t.height/2):o>=100&&(s=t.width/10,a=t.height/10),n=!0,this.material.updateColorTexture(t,Math.floor(s),Math.floor(a))}else n=!1;this.lastState=n}}])}(),H=new WeakMap,V=function(){return h()((function e(t,i,n,o,s){c()(this,e),D(this,H,!0),this.context=t,this.videoId=n,this.host=o,this._modelMatrix=Cesium.Matrix4.IDENTITY,this.parent=null,this.children=[],this.video={dom:null,playing:!1,timeupdate:!1,width:0,height:0,tracks:null},this.time=0,this.name=s}),[{key:"show",get:function(){return t=this,(e=H).get(M(e,t));var e,t},set:function(e){var t,i,n;"boolean"==typeof e?(i=this,n=e,(t=H).set(M(t,i),n),e?this.video.player&&this.video.player.getVueInstance().play():this.video.player&&this.video.player.getVueInstance().pause()):console.error("参数必须为boolean")}},{key:"requestVideoResource",value:function(){var e=this,t="",i=(t=this.host.endsWith("yjearth4.0")?this.host:this.host+"/yjearth4.0")+"/videoFusion/"+this.videoId;return fetch(i,{method:"get",headers:{"Content-Type":"application/json"}}).then(function(){var i=_()(S.a.mark((function i(n){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:if(o=i.sent,o=JSON.parse(o),![0,200].includes(o.code)){i.next=13;break}if(!o.data.deviceCode.length){i.next=9;break}return i.abrupt("return",fetch(t+"/videoFusion/vide/stream",{method:"post",body:JSON.stringify({type:"flv",deviceCode:o.data.deviceCode}),headers:{"Content-Type":"application/json"}}).then(function(){var t=_()(S.a.mark((function t(i){var n;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.text();case 2:if(n=t.sent,n=JSON.parse(n),![0,200].includes(n.code)){t.next=9;break}return n.data.url.length?(e.video.player.url=n.data.url,e.setFlvVideo(n.data.url)):console.warn("地址不存在"),t.abrupt("return");case 9:return console.warn(n.msg||n.message),t.abrupt("return");case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 9:console.warn("设备不存在");case 10:return i.abrupt("return");case 13:return console.warn(o.msg||o.message),i.abrupt("return");case 15:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())}},{key:"modelMatrix",get:function(){return this._modelMatrix},set:function(e){this._modelMatrix=e.clone(),this.updateModelMatrix()}},{key:"updateModelMatrix",value:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};c()(this,e);var n,o,s,a,r,l=this,u={el:i.el,size:"mini",isLog:!1,disabled:i.disabled||!1,alpha:!1,clickDefineColor:p,hasClear:!0,openPickerAni:"opacity",defaultColor:i.defaultColor,pickerInputChange:g,startMainCallback:function(e){l.colorPicker&&(l.colorPicker.picker.style.opacity=0),setTimeout((function(){h()}),0)}};function h(){if(l.colorPicker&&l.colorPicker.picker){var e=!1,t=l.colorPicker.box,c=l.colorPicker.picker,u=t.getBoundingClientRect().x,h=t.getBoundingClientRect().y,f=0;c.style.left=u+"px",c.style.minWidth="325px";var y=c.getElementsByClassName("ew-alpha-slider-bar")[0];y&&(y.parentNode.style.width="16px",y.parentNode.removeChild(y));var b=document.createElement("div");b.className="icon-pen-box",b.innerHTML='',b.style.display="none",b.style.cursor="unset";var C=l.colorPicker.pickerInput;C.parentNode.insertBefore(b,C),C.style.width="188px",C.style.display="none";var w=document.createElement("div"),k=document.createElement("div");k.className="row",k.style.margin="6px 0 0 0",k.innerHTML='\n
        R
        \n
        G
        \n
        B
        \n
        \n ';var _=document.createElement("div");_.className="row",_.innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n
        \n ',w.appendChild(k),w.appendChild(_);var x=_.getElementsByTagName("input");x[0].style.width="72px",x[1].style.width="72px",x[2].style.width="72px",n=x[0],o=x[1],s=x[2];var S=c.getElementsByClassName("ew-color-dropbtns")[0];if(c.insertBefore(w,S),n.addEventListener("blur",(function(e){var t=e.target.value;(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tNumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tNumber(e.target.max)&&(t=Number(e.target.max)),e.target.min&&tR\n
        G
        \n
        B
        \n
        A
        \n
        \n ',_.appendChild(E),a.addEventListener("blur",(function(e){var t=e.target.value;(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t',B.className="yj-pre-collect-color add";var j=document.createElement("div");j.innerHTML='',j.className="yj-pre-collect-color subtract";var A=j.getElementsByClassName("icon-minus")[0],L=j.getElementsByClassName("icon-confirm")[0];N.appendChild(B),N.appendChild(j);var I=[],R=function(e){var t=document.createElement("div");t.className="yj-pre-collect-color",t.setAttribute("tabindex","0"),t.setAttribute("color-box-id",l.colorPicker.uid);var i=document.createElement("div");i.className="yj-pre-define-color-item",t.appendChild(i),i.className="yj-pre-define-color-item";var n=Cesium.Color.fromCssColorString(D[e]).toCssHexString();i.style.backgroundColor=n,i.addEventListener("click",(function(e){l.colorPicker.updateColor(e),t.className="yj-pre-collect-color yj-pre-collect-color-active",p(n)})),t.addEventListener("blur",(function(e){t.className="yj-pre-collect-color"}));var o=document.createElement("div");o.className="yj-pre-define-color-item subtract-btn",o.innerHTML='',o.style.display="none",t.appendChild(o),N.appendChild(t),o.addEventListener("click",(function(){delete D[e],localStorage.setItem("custom-color",JSON.stringify(D)),N.removeChild(t)})),I.push(o)};for(var z in D)R(z);B.addEventListener("click",(function(){if(e){e=!1;for(var t=0;twindow.innerHeight?c.style.top=h-f+"px":c.style.top=h+t.offsetHeight+4+"px",l.colorPicker.pancelTop=parseFloat(c.style.top)-2,g(Cesium.Color.fromCssColorString(l.colorPicker.config.defaultColor||"#ffffff").toCssHexString())}}function p(e){if(a){var t=Cesium.Color.fromCssColorString(e);a.value=parseInt(100*Number(t.alpha.toFixed(2)))/100}}function d(e){var t,i,n,o=e.a,s=Math.round(e.h),a=Math.round(255*e.s/100),r=Math.round(255*e.b/100);if(0===a)t=i=n=r;else{var l=(255-a)*r/255,c=s%60*(r-l)/60;360===s?(t=r,i=n=0):s<60?(t=r,i=l+c,n=l):s<120?(t=r-c,i=r,n=l):s<180?(t=l,i=r,n=l+c):s<240?(t=l,i=r-c,n=r):s<300?(t=l+c,i=l,n=r):s<360?(t=r,i=l,n=r-c):t=i=n=0}return"rgba("+Math.round(t)+","+Math.round(i)+","+Math.round(n)+","+o+")"}function m(e){var t={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};if(/rgba?/.test(e)){var i=e.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n="";return i[3],i.map((function(e,i){i<=2&&(n+=function(e){e=Math.min(Math.round(e),255);var i=Math.floor(e/16),n=e%16;return""+(t[i]||i)+(t[n]||n)}(e))})),"#"+n}}function f(e,t){var i=e.toLowerCase(),n=e.length,o=[];i=Cesium.Color.fromCssColorString(i).toCssHexString().substring(0,7);if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(i)){if(4===n){for(var s="#",a=1;a9e6&&(e=9e6),e<4e5?(this.entity.billboard.show=!0,this.entity.rectangle.show=!1):(this.entity.billboard.show=!1,this.entity.rectangle.show=!0),ne=new Cesium.Rectangle(Cesium.Math.toRadians(t.lng-e/12e4),Cesium.Math.toRadians(t.lat-e/28e4),Cesium.Math.toRadians(t.lng+e/12e4),Cesium.Math.toRadians(t.lat+e/28e4))}}function le(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ce(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ce(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),pe(this,ve,void 0),pe(this,ge,void 0),pe(this,ye,void 0),this.div_id=t,this.entityMap=new Map,this._entityZIndex=0,this.viewer=null,this.options=he({},i),Object(X.A)(Object(X.n)()),this.proj=new Y.a,this.clickTextDom=void 0,this.isLeftClick=!1,this.init(),U()}),[{key:"addIncetance",value:function(e,t){this.entityMap.set(e+"",t)}},{key:"getIncetance",value:function(e){return this.entityMap.get(e+"")}},{key:"removeIncetance",value:function(e){this.entityMap.delete(e),Object(q.m)(this,e),Object(q.n)(this,e),Object(q.o)(this,e),Object(Z.g)(this,e)}},{key:"setDefaultView",value:function(e){e?(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:e.destination||{},orientation:e.orientation||{}},Object(X.f)(this),Object(X.g)(this),this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e.destination.lng,e.destination.lat,e.destination.alt),orientation:{heading:Cesium.Math.toRadians(e.orientation.heading||0),pitch:Cesium.Math.toRadians(e.orientation.pitch||0),roll:Cesium.Math.toRadians(e.orientation.roll||0)},duration:0})):(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2),this.viewer.camera.setView({destination:Cesium.Camera.DEFAULT_VIEW_RECTANGLE}))}},{key:"init",value:function(){var e=this,t=new Cesium.Ellipsoid(6378137,6378137,6356752.314140356),i=new Cesium.GeographicProjection(t),n=this;this.options={imageryProvider:new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),baseLayerPicker:!1,geocoder:!1,animation:!1,fullscreenButton:!1,navigationHelpButton:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,shouldAnimate:!0,mapProjection:i},Number(Cesium.VERSION.split(".")[1])>=107?this.options.baseLayer=Cesium.ImageryLayer.fromProviderAsync(Cesium.TileMapServiceImageryProvider.fromUrl(Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"))):this.options.imageryProvider=new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),this.options.contextOptions={webgl:{depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0},requestWebgl2:!0},Cesium.RequestScheduler.maximumRequests=500,this.viewer=new Cesium.Viewer(this.div_id,this.options),this.viewer.scene.imageryLayers._layers[0].notes="default-base-map",this.viewer._shadows=this.viewer.shadows,this.viewer._container.style.display="flex",this.viewer.scene.screenSpaceCameraController.maximumZoomDistance=5e7,this.viewer.scene.globe.translucency.enabled=!0;var o=new b.a;this.viewer.scene.skyBox=new Cesium.SkyBox({sources:{negativeX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mx.jpg",negativeY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_my.jpg",negativeZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mz.jpg",positiveX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_px.jpg",positiveY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_py.jpg",positiveZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_pz.jpg"}}),w();for(var a=[{name:"思源黑体",value:"SourceHanSansTi",url:o.getSourceRootPath()+"/custom/fonts/SourceHanSansCN-Medium.otf",format:"opentype"},{name:"庞门正道标题体",value:"PMZDBTTi",url:o.getSourceRootPath()+"/custom/fonts/PangMenZhengDaoBiaoTiTi-1.ttf",format:"truetype"},{name:"数黑体",value:"AlimamaShuHeiTi",url:o.getSourceRootPath()+"/custom/fonts/AlimamaShuHeiTi-Bold.ttf",format:"truetype"}],r=0;r-1;i--){var o=h(t[i].style.left),s=h(t[i].style.top),a=1*t[i].clientWidth,r=1*t[i].clientHeight,l=e.position.x,c=e.position.y;if(l>o&&ls&&c1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.primitives={building:[],unit:[],dth:[]},this.options=ke({},i),this.options.host=this.options.host||Object(n.a)(),this.temporaryDth=[],this.dth={},this.PickBuildingEvent=new Cesium.Event,this.initEvents(),this.activeBuilding}),[{key:"PickCallback",value:function(e,t){this.PickBuildingEvent.addEventListener(t,e)}},{key:"initEvents",value:function(){var e=this;new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(t){if(!YJ.Measure.GetMeasureStatus()&&e.isActivate){var i=e.sdk.viewer.scene.pick(t.position);if(i){if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"==i.id.type||"yj-dth-highlight"==i.id.type))return void e.getIDBypickFeature(i);if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"==i.id.type)return e.highlightPrimitive&&e.sdk.viewer.scene.primitives.remove(e.highlightPrimitive),void e.handlePickEvent(i.id)}e.highlightPrimitive&&e.sdk.viewer.scene.primitives.remove(e.highlightPrimitive);var n=e.sdk.viewer.scene.pickPosition(t.position);if(n){var o=Cesium.Cartographic.fromCartesian(n),s=[Cesium.Math.toDegrees(o.longitude),Cesium.Math.toDegrees(o.latitude)];e.queryByPoint(s,o.height)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK);var t=this.sdk.viewer.entities.getOrCreateEntity("yj-dth-cover-label");t.show=!1;var i,n=0,o=this;function s(e){var i=o.sdk.viewer.scene.pick(e.endPosition);if(i){var n="";if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"===i.id.type||"yj-dth-highlight"===i.id.type))n=i.id.build_info.name+" - "+i.id.unit_info.name+" - "+i.id.room_num;else if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"===i.id.type)i.id.build_info.name&&(n=i.id.build_info.name+" - "+i.id.name);else{if(!(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-build"===i.id.type))return i.primitive&&i.primitive.id&&i.primitive.id.id&&"yj-dth-cover-label"===i.primitive.id.id?void(t.position=o.sdk.viewer.scene.pickPosition(e.endPosition)):void(t.show=!1);i.id.name&&(n=i.id.name)}n&&(t.position=o.sdk.viewer.scene.pickPosition(e.endPosition),t.label=new Cesium.LabelGraphics({text:n,font:"20px Helvetica",pixelOffset:{x:0,y:-30},fillColor:Cesium.Color.fromCssColorString("#ffffff"),outlineColor:Cesium.Color.BLACK,outlineWidth:1,showBackground:!0,backgroundColor:Cesium.Color.fromCssColorString("#000000").withAlpha(.8),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY}),t.show=!0)}}new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(e){if(!YJ.Measure.GetMeasureStatus())try{var t=Date.now();if(t-n<100)return clearTimeout(i),void(i=setTimeout((function(){s(e)}),100));clearTimeout(i),n=t,s(e)}catch(e){}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"queryByUserInfo",value:function(e){this.queryByPoint([e.position.lng,e.position.lat],e.position.alt,e.id)}},{key:"queryByPoint",value:(s=_()(S.a.mark((function e(t){var i,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/dth/build/query_by_point":this.options.host+"/yjearth4.0/api/v1/dth/build/query_by_point",i+="?point="+JSON.stringify({lng:t[0],lat:t[1]}),e.next=5,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 5:if(200!==(o=e.sent).status){e.next=11;break}return e.next=9,o.json();case 9:200===(s=e.sent).code||0===s.code?this.processQueryByPointResults(s.data):window.ELEMENT&&window.ELEMENT.Message({message:s.msg||s.message,type:"warning",duration:1500});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"processQueryByPointResults",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>2&&void 0!==u[2]?u[2]:{heading:0,pitch:-90,roll:0},t.build_info&&this.handlePickEvent(t),this.clearAllDthPrimitive(),this.clearAllUnitPrimitive(),this.activeBuilding&&(this.clearBuildingPrimitive(this.activeBuilding),this.activeBuilding=null),!t.build_info){e.next=26;break}if(o=JSON.parse(t.build_info.range),t.dan_yuan.length>0)for(s=0;s0?this.addDthPrimitive(t.dan_yuan[s].children,t.build_info,t.dan_yuan[s]):this.addUnitPrimitive([t.dan_yuan[s]],t.build_info,t.dan_yuan[s]);else this.activeBuilding=t.build_info.ID||t.build_info.id,this.addBuildingPrimitive([t.build_info]);if(!i){e.next=26;break}if(t.info&&t.info.dan_yuan&&(o=JSON.parse(t.info.dan_yuan.range)),!t.info||!t.info.hu){e.next=25;break}for(o=JSON.parse(t.info.hu.range),a=0;a=0;t--)if(e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.ID||e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.building[t]),this.primitives.building.splice(t,1);break}}},{key:"clearAllBuildingPrimitive",value:function(){for(var e=this.primitives.building.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.building[e]);this.primitives.building=[]}},{key:"addUnitPrimitive",value:(t=_()(S.a.mark((function e(t,i,n){var o,s,a,r,l,c;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=0;o=0;t--)if(e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.ID||e===this.primitives.building[t]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.unit[t]),this.primitives.unit.splice(t,1);break}}},{key:"clearAllUnitPrimitive",value:function(){for(var e=this.primitives.unit.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.unit[e]);this.primitives.unit=[]}},{key:"addDthPrimitive",value:function(e,t,i){for(var n=0;n=0;t--)e!==this.primitives.dth[t]._primitiveOptions.geometryInstances[0].id.ID&&e!==this.primitives.dth[t]._primitiveOptions.geometryInstances[0].id.id||(this.sdk.viewer.scene.primitives.remove(this.primitives.dth[t]),this.primitives.dth.splice(t,1))}},{key:"clearAllDthPrimitive",value:function(){this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive);for(var e=this.primitives.dth.length-1;e>=0;e--)this.sdk.viewer.scene.primitives.remove(this.primitives.dth[e]);this.primitives.dth=[]}},{key:"getIDBypickFeature",value:function(e){this.clickHighlightPrimitive&&(this.clickHighlightPrimitive.show=!0),this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive),this.highlightPrimitive=this.sdk.viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:new Cesium.GeometryInstance({id:ke(ke({},e.id),{},{type:"yj-dth-highlight"}),geometry:e.primitive._primitiveOptions.geometryInstances[0].geometry,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString("#ff9800").withAlpha(.8)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),this.highlightPrimitive.readyPromise.then((function(){e.primitive.show=!1})),this.clickHighlightPrimitive=e.primitive;var t=e.id.range;"string"==typeof e.id.range&&(t=JSON.parse(e.id.range)),this.getHilightArea(t),this.handlePickEvent(e.id)}},{key:"handlePickEvent",value:function(e){this.PickBuildingEvent.raiseEvent(e)}},{key:"getHilightArea",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];e.forEach((function(e){i.push([e.lng,e.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(t)/1e3);return o.geometry.coordinates}},{key:"flyTo",value:(e=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=c.length>1&&void 0!==c[1]?c[1]:{heading:0,pitch:-90,roll:0},n=new YJ.Tools(this.sdk),o=0,s=[],a=0;case 5:if(!(a更新高程',s.style.width="auto",s.addEventListener("click",(function(){u.options.updateHeightCallBack()})),o.appendChild(s)),this.options.secondaryEditCallBack&&((a=document.createElement("button")).className="secondaryEdit",a.innerHTML='二次编辑',this.options.updateHeightCallBack&&(a.style.marginLeft="10px"),o.appendChild(a),a.addEventListener("click",(function(){u.options.secondaryEditCallBack&&u.options.secondaryEditCallBack()}))),this.options.translationalCallBack&&((r=document.createElement("button")).className="translational",r.innerHTML='平移',(this.options.updateHeightCallBack||this.options.secondaryEditCallBack)&&(r.style.marginLeft="10px"),o.appendChild(r),r.addEventListener("click",(function(){u.options.translationalCallBack&&u.options.translationalCallBack()})))),this.options.addFootElm)for(l=0;l=0;i--)for(var n in this.info.attribute)if(t[i].value===n){this.info.attribute[n].disabled&&(t[i].disabled=!0);break}}}]);var i}(Te.a),je=i(13);function Ae(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Le(e){for(var t=1;t=1e3&&(S="㎞",O=Math.round(O/1e3));var N=x;o.beginPath(),o.moveTo(_,N),o.lineTo(_+f.width,N),o.strokeStyle=f.color,o.lineWidth=.01*f.width,o.stroke();for(var B=0,j=0;j<=f.cell;j++)B=_+j*P,o.beginPath(),o.moveTo(B,N-.1*f.width),o.lineTo(B,N),o.strokeStyle=f.color,o.lineWidth=.01*f.width,o.stroke(),o.font="".concat(E,"px Arial"),o.fillStyle=f.color,o.textAlign="center",o.textBaseline="bottom",o.fillText(j*O,B,N-.1*f.width);o.font="".concat(E,"px Arial"),o.fillStyle=f.color,o.textAlign="left",o.textBaseline="bottom",o.fillText(S,B+1.2*E,N-.1*f.width)}v.show&&l&&l.complete&&(A(o,l,g,g,v.width,"top",1),A(o,l,n.width-v.width-g,g,v.width,"right",1),A(o,l,n.width-v.width-g,n.height-v.width-g,v.width,"bottom",1),A(o,l,g,n.height-v.width-g,v.width,"left",1)),n.toBlob((function(e){var t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download="高清出图-".concat(de(),".png"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}),"image/png",.95),i=!1,F.innerHTML="打印"}function A(e,t,i,o,s,a){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(e.save(),e.translate(i+s/2,o+s/2),a){case"right":e.rotate(Math.PI/2);break;case"bottom":e.rotate(Math.PI);break;case"left":e.rotate(3*Math.PI/2)}e.beginPath(),e.moveTo(-s*r/2,-s/2),"top"===a||"bottom"===a?(e.lineTo(n.width-2*g-s/2,-s/2),e.lineTo(n.width-2*(g+s)+s/2,s/2)):(e.lineTo(n.height-2*g-s/2,-s/2),e.lineTo(n.height-2*(g+s)+s/2,s/2)),e.lineTo(s*r/2,s/2),e.closePath(),e.clip();var l,c=t.width/t.height*s;e.drawImage(t,-s/2,-s/2,c,s),l="top"===a||"bottom"===a?Math.ceil((n.width-2*g-2*v.width)/v.width):Math.ceil((n.height-2*g-2*v.width)/v.width),l++;for(var u=1;u<=l;u++)e.drawImage(t,-s/2+c*u,-s/2,c,s);e.restore()}}},de=function(){var e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),r=String(e.getMilliseconds()).padStart(3,"0");return"".concat(t).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)},pe=function(){if(t.rectangle){var e=Cesium.Math.toDegrees(t.rectangle.west),i=Cesium.Math.toDegrees(t.rectangle.east),n=Cesium.Math.toDegrees(t.rectangle.north),o=(Cesium.Math.toDegrees(t.rectangle.south),turf.point([e,n])),s=turf.point([i,n]),r=turf.distance(o,s,{units:"kilometers"});a=1e3*r/T.width}},he=function(e){var t=c;p.show&&l&&l.complete&&(t+=p.width);var i=.005*D.height;if(M.strokeStyle="red",M.lineWidth=.002*D.height,"text"in e)M.strokeRect(T.width*e.x+t,T.height*e.y+t-T.height*e.height,T.height*e.width,T.height*e.height);else if("url"in e)M.strokeRect(T.width*e.x+t,T.height*e.y+t,T.height*e.width,T.height*e.height);else if(e===m)return void M.strokeRect(T.width*e.x+t-.2*m.width,T.height*e.y+t-e.height-.5*m.height,e.width+.6*m.width,e.height+m.height);var n=le(e,t);M.fillStyle="red",n.forEach((function(e){M.beginPath(),M.arc(e.x,e.y,i,0,2*Math.PI),M.fill()}))},ue=function(e,t,i,n,o,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(e.save(),e.translate(i+o/2,n+o/2),s){case"right":e.rotate(Math.PI/2);break;case"bottom":e.rotate(Math.PI);break;case"left":e.rotate(3*Math.PI/2)}e.beginPath(),e.moveTo(-o*a/2,-o/2),"top"===s||"bottom"===s?(e.lineTo(D.width-2*c-o/2,-o/2),e.lineTo(D.width-2*(c+o)+o/2,o/2)):(e.lineTo(D.height-2*c-o/2,-o/2),e.lineTo(D.height-2*(c+o)+o/2,o/2)),e.lineTo(o*a/2,o/2),e.closePath(),e.clip();var r,l=t.width/t.height*o;e.drawImage(t,-o/2,-o/2,l,o),r="top"===s||"bottom"===s?Math.ceil((D.width-2*c-2*p.width)/p.width):Math.ceil((D.height-2*c-2*p.width)/p.width),r++;for(var u=1;u<=r;u++)e.drawImage(t,-o/2+l*u,-o/2,l,o);e.restore()},ce=function(){if(!r){var e=c;if(p.show&&l&&l.complete&&(e+=p.width),D.width=T.width+2*e,D.height=T.height+2*e,M.clearRect(0,0,D.width,D.height),M.rect(0,0,D.width,D.height),M.fillStyle="#ffffff",M.fill(),M.drawImage(T,e,e,T.width,T.height),h.show){var t=h.text,i=Math.max(5,h.height*T.height*.5);M.font="".concat(i,"px serif"),M.fillStyle=h.bgColor||"#5d5d5d",M.fillRect(e,e,D.width-2*e,h.height*T.height),M.fillStyle=h.color||"white",M.textAlign="center",M.textBaseline="middle",M.fillText(t,D.width/2,h.height*T.height/2+e)}for(var n=function(t){if(d[t].show)if("text"in d[t])M.font="".concat(T.height*d[t].height,"px serif"),M.fillStyle=d[t].color||"white",M.textAlign="left",M.textBaseline="bottom",d[t].width=M.measureText(d[t].text).width/T.height,M.fillText(d[t].text,T.width*d[t].x+e,T.height*d[t].y+e),d[t].isSelected&&he(d[t]);else if("url"in d[t])if(d[t].svg&&d[t].svg.complete)M.drawImage(d[t].svg,T.width*d[t].x+e,T.height*d[t].y+e,T.height*d[t].width,T.height*d[t].height),d[t].isSelected&&he(d[t]);else{var i=new Image;i.src=Ie.getSourceRootPath()+d[t].url,i.onload=function(){d[t].svg=i,M.drawImage(i,T.width*d[t].x+e,T.height*d[t].y+e,T.height*d[t].width,T.height*d[t].height),d[t].isSelected&&he(d[t])}}},o=0;o=1e3&&(v="㎞",b=Math.round(b/1e3));var k=f;M.beginPath(),M.moveTo(u,k),M.lineTo(u+m.width,k),M.strokeStyle=m.color,M.lineWidth=.01*m.width,M.stroke();for(var _=0,x=0;x<=m.cell;x++)_=u+x*y,M.beginPath(),M.moveTo(_,k-.1*m.width),M.lineTo(_,k),M.strokeStyle=m.color,M.lineWidth=.01*m.width,M.stroke(),M.font="".concat(g,"px Arial"),M.fillStyle=m.color,M.textAlign="center",M.textBaseline="bottom",M.fillText(x*b,_,k-.1*m.width);M.font="".concat(g,"px Arial"),M.fillStyle=m.color,M.textAlign="left",M.textBaseline="bottom",M.fillText(v,_+1.2*g,k-.1*m.width),m.isSelected&&he(m)}p.show&&l&&l.complete&&(ue(M,l,c,c,p.width,"top",1),ue(M,l,D.width-p.width-c,c,p.width,"right",1),ue(M,l,D.width-p.width-c,D.height-p.width-c,p.width,"bottom",1),ue(M,l,c,D.height-p.width-c,p.width,"left",1))}},le=function(e,t){var i=e.x*T.width+t,n=e.y*T.height+t,o=e.width*T.height,s=e.height*T.height;return"text"in e?[{x:i,y:n-s},{x:i+o,y:n-s},{x:i,y:n},{x:i+o,y:n}]:[{x:i,y:n},{x:i+o,y:n},{x:i,y:n+s},{x:i+o,y:n+s}]},re=function(e){var t,i=D.getBoundingClientRect(),n=i.width,o=i.height,s=D.width,a=D.height,r=(n-s*(t=s/a>n/o?n/s:o/a))/2;return(e.clientX-i.left-r)/t},ae=function(e){var t,i=D.getBoundingClientRect(),n=i.width,o=i.height,s=D.width,a=D.height,r=(o-a*(t=s/a>n/o?n/s:o/a))/2;return(e.clientY-i.top-r)/t},W=function(e){var t,i;p.color=e||"#000000",new YJColorPicker({el:v.getElementsByClassName("border-color")[0],size:"mini",alpha:!1,defaultColor:p.color,disabled:!1,openPickerAni:"opacity",sure:function(e){W(e)},clear:function(){W("rgba(0,0,0,1)")}}),t=e?u.replace(/fill="[^"]+"/g,'fill="'.concat(e,'"')):u,i="data:image/svg+xml;base64,"+btoa(Array.from((new TextEncoder).encode(t),(function(e){return String.fromCharCode(e)})).join("")),(l=new Image).setAttribute("crossOrigin","anonymous"),l.src=i,l.onload=function(){p.show&&ce()}},G=function(e){p.url=e,p.url&&((l=new Image).setAttribute("crossOrigin","anonymous"),p.url.endsWith("svg")?fetch(Ie.getSourceRootPath()+p.url).then(function(){var e=_()(S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=5;break}return e.next=3,t.text();case 3:u=e.sent,W(p.color);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):(l.src=Ie.getSourceRootPath()+p.url,l.onload=function(){p.show&&ce()}))},V=function(e){s=e,n=[{name:"模板一",value:"模板一",id:"1",margin:.03,title:{text:"标题一",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},border:{show:!1,url:"/custom/img/map-border1.svg",width:.01,color:""},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.87,y:.97},data:[{text:"",x:.02,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.02,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.02,y:.1,show:!1,isSelected:!1,url:"/custom/img/icon-compass1.svg",width:.1,height:.1}]},{name:"模板二",value:"模板二",id:"2",margin:.03,border:{show:!0,url:"/custom/img/map-border2.svg",width:.01},title:{text:"标题二",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.02,y:.97},data:[{text:"",x:.88,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.87,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.91,y:.1,show:!0,isSelected:!1,url:"/custom/img/icon-compass4.svg",width:.1,height:.1}]}];for(var i=0;i\n
        \n
        图件信息
        \n
        \n
        \n 模板\n
        \n
        \n
        \n
        \n
        \n 标题\n \n \n
        \n
        \n
        \n
        \n 制图日期\n \n \n
        \n
        \n
        \n
        \n 制图单位\n \n \n
        \n
        \n
        \n
        \n 图框\n
        \n
        \n \n
        \n
        \n
        \n
        \n
        地图要素
        \n
        \n
        \n 指北针\n \n
        \n
        \n '.concat(function(){for(var e="",t=0;t\n \n \n
        ')}return e}(),'\n
        \n
        \n
        \n
        \n
        \n
        \n 比例尺\n \n
        \n
        \n \n \n
        \n
        \n\n
        \n
        \n '),o.contentAppChild(v),g=v.getElementsByClassName("left")[0],y=v.getElementsByClassName("right")[0],b=g.getElementsByClassName("title-input")[0],C=g.getElementsByClassName("title-checkbox")[0],w=g.getElementsByClassName("unit-input")[0],k=g.getElementsByClassName("unit-checkbox")[0],x=g.getElementsByClassName("compass-checkbox")[0],E=g.getElementsByClassName("compass-radio"),P=g.getElementsByClassName("plotting-scale-checkbox")[0],O=g.getElementsByClassName("map-border-checkbox")[0],D=document.createElement("canvas"),M=D.getContext("2d"),y.appendChild(D),(T=new Image).src=this.thumbnailImg,T.onload=function(){r=!1,pe(),V(s)},b.value=h.text,C.checked=h.show,b.addEventListener("input",(function(){h.text=this.value,T.complete&&ce()})),C.addEventListener("change",(function(){h.show=this.checked,T.complete&&ce()})),w.value=d[1].text,k.checked=d[1].show,w.addEventListener("input",(function(){d[1].text=this.value,T&&T.complete&&ce()})),k.addEventListener("change",(function(){d[1].show=this.checked,T&&T.complete&&ce()})),x.checked=d[2].show,x.addEventListener("change",(function(){d[2].show=this.checked,T&&T.complete&&ce()})),N=S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:E[t].addEventListener("change",(function(){this.checked&&(d[2].svg=null,d[2].url=f[t],T&&T.complete&&ce())}));case 1:case"end":return e.stop()}}),e)})),B=0;case 60:if(!(B打印',me())}));var e=v.getElementsByClassName("print-date")[0];(A=v.getElementsByClassName("print-date-checkbox")[0]).checked=d[0].show,A.addEventListener("change",(function(){d[0].show=this.checked,T.complete&&ce()})),j=jeDate(e,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(e){d[0].text=e.val,T.complete&&ce()}}),d[0].text?j.setValue(d[0].text):(j.nowBtn&&j.nowBtn(),d[0].text=j.getValue(),ce());var t=Object(je.a)(o._element.content.getElementsByClassName("template-box")[0],".template");if(t){t.legp_search(n);for(var a=o._element.content.getElementsByClassName("template")[0].getElementsByTagName("input")[0],r=0;r'),value:"/custom/img/map-border1.svg",key:0},{name:''),value:"/custom/img/map-border2.svg",key:1},{name:''),value:"/custom/img/map-border3.svg",key:2},{name:''),value:"/custom/img/map-border4.svg",key:3},{name:''),value:"/custom/img/map-border5.svg",key:4},{name:''),value:"/custom/img/map-border6.svg",key:5}];if(I=Object(je.a)(o._element.content.getElementsByClassName("map-border-box")[0],".map-border")){I.legp_search(l),(R=document.createElement("span")).className="icon icon-active",R.style.width="calc(100% - 40px)",R.style.height="calc(100% - 12px)",R.style.position="absolute",R.style.top="6px",R.style.left="10px",R.style.pointerEvents="none",R.style.backgroundImage="url(".concat(Ie.getSourceRootPath()+p.url,")"),R.style.backgroundSize="auto 100%",R.style.backgroundRepeat="repeat-x",o._element.content.getElementsByClassName("map-border")[0].getElementsByClassName("cy_datalist")[0].appendChild(R),(L=o._element.content.getElementsByClassName("map-border")[0].getElementsByTagName("input")[0]).style.fontSize=0,L.style.color="transparent";for(var c=0;c=h.height*T.height+n-Y&&i<=h.height*T.height+n+Y){U=!0;for(var o=0;o=e.x-s&&t<=e.x+s&&i>=e.y-s&&i<=e.y+s&&(X=!0,q=!1,Z=n,K=t,Q=i,ne=J.width*T.height,oe=J.height*T.height,"text"in J&&(ne=J.width*T.height,se=J.height))}))}if(!X){for(var a=0;a=0;r--)if(d[r].show){if("text"in d[r]&&t>=T.width*d[r].x+n&&t<=T.width*d[r].x+n+T.height*d[r].width&&i>=T.height*d[r].y+n-T.height*d[r].height&&i<=T.height*d[r].y+n){J=d[r],d[r].isSelected=!0,q=!0,K=t,Q=i,$=T.height*d[r].y-T.height*d[r].height,ee=T.width*d[r].x+T.height*d[r].width,te=T.width*d[r].x+n,ie=T.height*d[r].y+n,ce();break}if("url"in d[r]&&d[r].svg&&d[r].svg.complete&&d[r].show&&t>=T.width*d[r].x+n&&t<=T.width*d[r].x+n+T.height*d[r].width&&i>=T.height*d[r].y+n&&i<=T.height*d[r].y+n+T.height*d[r].height){J=d[r],d[r].isSelected=!0,q=!0,K=t,Q=i,$=T.height*d[r].y+T.height*d[r].height,ee=T.width*d[r].x+T.height*d[r].width,te=T.width*d[r].x+n,ie=T.height*d[r].y+n,ce();break}}m.show&&t>=T.width*m.x+n-.2*m.width&&t<=T.width*m.x+n-.2*m.width+m.width+.6*m.width&&i>=T.height*m.y+n-m.height-.5*m.height&&i<=T.height*m.y+n-.5*m.height+m.height&&(J=m,m.isSelected=!0,q=!0,K=t,Q=i,$=T.height*m.y+n+m.height,ee=T.width*m.x+n+m.width,te=T.width*m.x+n,ie=T.height*m.y+n,ce()),J||ce()}})),D.addEventListener("mousemove",(function(e){var t=c;p.show&&l&&l.complete&&(t+=p.width);var i=re(e),n=ae(e);if(!(i<0||n<0||i>D.width||n>D.height)){if(h.show){var o=c;p.show&&l&&l.complete&&(o+=p.width),n>=h.height*T.height+o-Y&&n<=h.height*T.height+o+Y?D.style.cursor="n-resize":D.style.cursor="default",U&&(h.height=Math.min(Math.max(n-o,30)/T.height,1),ce())}if(q){var s=i-K,a=n-Q;J.x=(te+s-t)/T.width,J.y=(ie+a-t)/T.height,ce()}if(X){var r,u=i-K,d=n-Q;switch(Z){case 0:"text"in J?(r=(ne-u)/ne,J.height=Math.max(10/T.height,se*r),J.x=(ee-J.width*T.height)/T.width):"url"in J&&(J.x=(ee-J.width*T.height)/T.width,J.y=($-J.height*T.height)/T.height,J.width=Math.max(10,ne-u)/T.height,J.height=Math.max(10,oe-d)/T.height);break;case 1:"text"in J?(r=(ne+u)/ne,J.height=Math.max(10/T.height,se*r)):"url"in J&&(J.width=Math.max(10,ne+u)/T.height,J.height=Math.max(10,oe-d)/T.height,J.y=($-J.height*T.height)/T.height);break;case 2:"text"in J?(r=(ne-u)/ne,J.height=Math.max(10/T.height,se*r),J.x=(ee-J.width*T.height)/T.width,J.y=($+J.height*T.height)/T.height):"url"in J&&(J.x=(ee-J.width*T.height)/T.width,J.width=Math.max(10,ne-u)/T.height,J.height=Math.max(10,oe+d)/T.height);break;case 3:"text"in J?(r=(ne+u)/ne,J.height=Math.max(10/T.height,se*r),J.y=($+J.height*T.height)/T.height):"url"in J&&(J.width=Math.max(10,ne+u)/T.height,J.height=Math.max(10,oe+d)/T.height)}ce()}}})),document.addEventListener("mouseup",(function(){U=!1,p.show&&l&&l.complete&&p.width;for(var e=0;e1&&void 0!==o[1]?o[1]:function(){},n=t.viewer.canvas.toDataURL(),i&&i(n);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(){return(Ve=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,u,p,d,m,f=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!(f.length>1&&void 0!==f[1])||f[1],n=f.length>2?f[2]:void 0,o=f.length>3&&void 0!==f[3]?f[3]:function(){},t){e.next=5;break}return e.abrupt("return");case 5:if(i){e.next=8;break}return Fe&&(Fe.desist(),Fe=null),e.abrupt("return");case 8:for(Object(Z.b)(t),Object(J.d)(t),ze&&(ze.close(),ze=null),t.viewer.scene.screenSpaceCameraController.enableTranslate,t.viewer.scene.screenSpaceCameraController.enableTilt,t.viewer.scene.screenSpaceCameraController.enableLook,s=1*n.scaleV,r=new b.a,t.viewer.scene.screenSpaceCameraController.enableTranslate=!1,t.viewer.scene.screenSpaceCameraController.enableTilt=!1,t.viewer.scene.screenSpaceCameraController.enableLook=!1,t.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="none",(l=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/2)))||(l=t.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(t.viewer.canvas.clientWidth/2,t.viewer.canvas.clientHeight/(2-(90+t.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(l=t.viewer.camera.position),u=r.cartesian3Towgs84(t.viewer.camera.position,t.viewer).alt,p=r.cartesian3Towgs84(l,t.viewer),t.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(p.lng,p.lat,u),orientation:{heading:0,pitch:Cesium.Math.toRadians(-90),roll:0},duration:1}),d=[],m=1;m<=10;m++)d.push({name:m,value:m});Fe=new(function(){return h()((function e(){c()(this,e),this.state=!1,this.start()}),[{key:"start",value:function(){if(t.viewer.scene.imageryLayers._layers.length<=1)return this.error="未加载底图!",r.message({type:"warning",text:this.error}),void console.warn(this.error);for(var e=!1,i=0;iC.maximumLevel&&(d=C.maximumLevel),d=f;J--)for(var q=w;q>=p;q--)Y.push({x:q,y:J});var X={count:0},Z=0,K=-1,Q={count:0},$=0;function ee(){Q.count=0,$=0;for(var e=30*++K;e<30*(K+1);e++){if(e>=Y.length)return;te(e)}}function te(e){if(u.state)try{var t=Y[e].x;t<0&&(t+=h);var i,n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=_()(S.a.mark((function t(){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O.drawImage(n,256*(Y[e].x-p)-parseFloat(H.toFixed(0)),256*(Y[e].y-f)-parseFloat(V.toFixed(0)),256,256),m++,X.count++,Q.count++;case 4:case"end":return t.stop()}}),t)}))),n.onerror=function(){m++,X.count++,Q.count++},i=-1!==C.url.indexOf("{x}")&&-1!==C.url.indexOf("{y}")&&-1!==C.url.indexOf("{z}")?C.url.replace(/\{x\}/g,t).replace(/\{y\}/g,Y[e].y).replace(/\{z\}/g,d):-1!==C.url.indexOf("{TileMatrix}")&&-1!==C.url.indexOf("{TileRow}")&&-1!==C.url.indexOf("{TileCol}")?C.url.replace(/\{TileCol\}/g,t).replace(/\{TileRow\}/g,Y[e].y).replace(/\{TileMatrix\}/g,d):C._layer&&C._style&&C._tileMatrixSetID&&C._format?C.url+"&tilematrix=".concat(d,"&layer=").concat(C._layer,"&style=").concat(C._style,"&tilerow=").concat(U,"&tilecol=").concat(t,"&tilematrixset=").concat(C._tileMatrixSetID,"&format=").concat(C._format):C.url+"tile/".concat(d,"/").concat(Y[e].y,"/").concat(t),n.src=i}catch(e){m++,X.count++,Q.count++}}Object.defineProperty(Q,"count",{get:function(){return $},set:function(e){($=e)>=30&&ee()}}),Object.defineProperty(X,"count",{get:function(){return Z},set:function(a){Z=a,g[i].value=m/E*k;var r=0;for(var c in g)r+=g[c].value;if(o({width:.99*r,left:.99*r,value:Math.floor(.99*r*100)/100}),Z===(w-p+1)*(x-f+1)){var h=P.getContext("2d"),d=P.cloneNode(!0),C=d.getContext("2d"),_=h.getImageData(0,0,P.width,P.height);if(C.putImageData(_,0,0),P.width=t.viewer.canvas.width*s,P.height=t.viewer.canvas.height*s,h.drawImage(d,0,0,P.width,P.height),l){if(l.getContext("2d").drawImage(P,0,0),b!=y){var S=i+=1;return void e(S,l)}var O=l.toDataURL("image/jpeg",.95),D=document.createElement("canvas"),M=D.getContext("2d");D.width=l.width/s,D.height=l.height/s,M.drawImage(l,0,0,D.width,D.height),new Re(t,D.toDataURL("image/jpeg",.95),v,O,n.modify),o({value:100}),u.state=!1}else{if(b!=y){var T=i+=1;return void e(T,P)}var N=P.toDataURL("image/jpeg",.95),B=document.createElement("canvas"),j=B.getContext("2d");B.width=P.width/s,B.height=P.height/s,j.drawImage(P,0,0,B.width,B.height),new Re(t,B.toDataURL("image/jpeg",.95),v,N,n.modify),o({value:100}),u.state=!1}}}}),C._readyError?X.count=(w-p+1)*(x-f+1):ee()}if(C._readyError)return g[i]={value:k},void w();C.readyPromise.then((function(){w()})).catch((function(e){C._readyError=!0,g[i]={value:k},w()}))}(0)}},{key:"desist",value:function(){this.state=!1}}])}());case 29:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ge=i(30),We=i.n(Ge);var Ue=function(){function e(){c()(this,e),this.element={}}return h()(e,[{key:"getEvent",value:function(t){return e.event[t]}},{key:"getEventAll",value:function(){return e.event}},{key:"setEvent",value:function(t,i){e.event[t]=i}},{key:"on",value:function(e,t){}}])}();r()(Ue,"event",{});var Ye=Ue,Je=function(){return h()((function e(t,i,n){var o;c()(this,e);for(var s=(o="string"==typeof t?document.getElementById(t):t).getElementsByTagName("DIV-cy-tab-pane"),a='
        ',r='
        ',l=0,u=0;u\n
        '+s[u].getAttribute("label")+"
        \n
        \n ",r=r+'
        '+s[u].innerHTML+"
        ",l++}}a+="
        ",r+="";var f=document.createElement("div");"string"==typeof t&&f.setAttribute("id",t),f.setAttribute("class","DIV-cy-tabs"),f.innerHTML=a+r,o.parentNode.insertBefore(f,o),o.parentNode.removeChild(o);for(var v=f.getElementsByClassName("DIV-cy-tab-pane-title-p"),g=0;g1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=this;this.title=i,this.objectId=e,document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null;var a='\n
        \n
        \n
        \n

        '.concat(i,'

        \n \n
        \n
        \n
        \n \n
        \n ');this.richTextBox.innerHTML=a,document.body.appendChild(this.richTextBox);var r=window.wangEditor,l=r.createEditor,c=r.createToolbar,u={placeholder:"请输入正文...",MENU_CONF:{uploadImage:{fieldName:"file",server:this.uploadImageServer,customUpload:function(e,t){return _()(S.a.mark((function i(){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(e);case 2:o=i.sent,t((s.host=s.host||Object(n.a)())+"/"+o);case 4:case"end":return i.stop()}}),i)})))()}},uploadVideo:{server:this.uploadVideoServer,allowedFileTypes:["video/mp4","video/mp3","video/ogg","video/webm","video/avi"],customUpload:function(e,t){return _()(S.a.mark((function i(){var o;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(e);case 2:o=i.sent,t((s.host=s.host||Object(n.a)())+"/"+o);case 4:case"end":return i.stop()}}),i)})))()}}},onChange:function(e){e.getHtml()}};this.editor=l({selector:"#editor-container",html:"


        ",config:u,mode:"default"});var h={excludeKeys:["emotion","insertImage","insertVideo"]};c({editor:this.editor,selector:"#toolbar-container",config:h,mode:"default"});this.editor.on("fullScreen",(function(){console.log("fullScreen")})),this.editor.setHtml(o);var p=this.richTextBox.getElementsByClassName("close")[0],d=this.richTextBox.getElementsByClassName("primary")[0],m=this.richTextBox.getElementsByClassName("cancel")[0];p.addEventListener("click",(function(){t.close()})),d.addEventListener("click",(function(){var e=t.editor.getHtml();t.primaryCallBack(e),t.close()})),m.addEventListener("click",(function(){t.close()}))}},{key:"close",value:function(){document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null}},{key:"upload",value:(e=_()(S.a.mark((function e(t){var i,o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",this.host=this.host||Object(n.a)(),i=this.host.endsWith("yjearth4.0")?this.host+"/api/v1/richText/upload":this.host+"/yjearth4.0/api/v1/richText/upload",(o=new FormData).append("file",t),e.next=7,fetch(i,{method:"post",body:o,headers:{token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 7:if(200!==(s=e.sent).status){e.next=14;break}return e.next=11,s.json();case 11:if(200!==(a=e.sent).code&&0!==a.code){e.next=14;break}return e.abrupt("return",a.data.url);case 14:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"customUploadVideo",get:function(){return Ze(Qe,this)},set:function(e){Xe(Qe,this,e)}},{key:"customUploadContent",get:function(){return Ze($e,this)},set:function(e){Xe($e,this,e)}},{key:"primaryCallBack",get:function(){return Ze(et,this)},set:function(e){Xe(et,this,e)}}]);var e}()),it=i(6),nt=i.n(it),ot=i(22),st=i.n(ot);function at(e,t,i,n,o){var s=Math.ceil(t/i)||1;!function i(){var a,r="
      • 1
      • ",l="
      • ").concat(s,"
      • "),c="
      • ...
      • ",u="
      • ...
      • ",h="
        共 ".concat(t," 条
        ");if(a="
      • ",s<=6)for(var p=1;p<=s;p++)a+="
      • ").concat(p,"
      • ");else if(n<=4){for(var d=1;d<=5;d++)a+="
      • ").concat(d,"
      • ");a+=u,a+=l}else if(n>s-3){a+=r,a+=c;for(var m=s-4;m<=s;m++)a+="
      • ").concat(m,"
      • ")}else{a+=r,a+=c;for(var f=n-1;f<=n+1;f++)a+="
      • ").concat(f,"
      • ");a+=u,a+=l}a+="
      • ",a+=h,e.innerHTML=a,e.querySelector("li[pagenumber='"+n+"']").classList.add("active"),e.querySelectorAll("li[pagenumber]").forEach((function(t){t.onclick=function(){n=Number(this.innerHTML),e.querySelector("li[pagenumber='"+n+"']").classList.add("active"),a="",i(),o&&o(n)}})),e.getElementsByClassName("btnPrev")[0].addEventListener("click",(function(){n>1&&(n--,a="",i(),o&&o(n))})),e.getElementsByClassName("btnNext")[0].addEventListener("click",(function(){n10&&(n-=10,a="",i(),o&&o(n))})));var g=e.getElementsByClassName("btnGoRight")[0];g&&(g.addEventListener("mouseenter",(function(){this.innerHTML=">"})),g.addEventListener("mouseleave",(function(){this.innerHTML="..."})),g.addEventListener("click",(function(){n0){at(n,t.data.total,5,1,(function(t){e.cameraSelect(t)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var l=[],c=function(n){var o='\n
        \n
        \n \n 绑定\n
        \n
        ').concat(t.data.list[n].cameraName,'
        \n
        ').concat(i[t.data.list[n].type],'
        \n
        ').concat(t.data.list[n].ip,'
        \n
        ').concat(t.data.list[n].port,'
        \n
        ').concat(t.data.list[n].userName,'
        \n
        ').concat(t.data.list[n].passWord||t.data.list[n].password,"
        \n
        "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');l.push(r),r.addEventListener("change",(function(){if(r.checked){e.attributeCamera=[],e.attributeCamera.push(t.data.list[n]);for(var i=0;i=0;i--){for(var n=!1,o=0;o0){at(n,t.data.total,5,1,(function(t){e.ISCSelect(t)})),o.getElementsByClassName("table-empty")[0].style.display="none",s.style.display="flex";for(var r=function(i){var n='\n
        \n
        \n \n 绑定\n
        \n
        ').concat(t.data.list[i].name,'
        \n
        ').concat(t.data.list[i].status?"在线":"离线","
        \n
        "),o=document.createRange().createContextualFragment(n),a=o.querySelector('input[type="checkbox"]');a.addEventListener("change",(function(){if(a.checked)e.attributeISC.push(t.data.list[i]);else{var n=e.attributeISC.filter((function(e){return"ID"in t.data.list[i]?e.ID!==t.data.list[i].ID:e.id!==t.data.list[i].id}));e.attributeISC=n}})),s.appendChild(o);for(var r=0;r0){e._allGoodsList=t.data.list;for(var o=e.attributeGoods.length-1;o>=0;o--){for(var s=!1,r=0;r\n
        ').concat(t.data.list[i].name,'
        \n
        \n '),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in t.data.list[i]){if(t.data.list[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t.data.list[i]&&t.data.list[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t.data.list[i].name,cnt:o};"ID"in t.data.list[i]?l.ID=t.data.list[i].ID:"id"in t.data.list[i]&&(l.id=t.data.list[i].id),e.attributeGoods.push(lt({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in t.data.list[i]){if(t.data.list[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t.data.list[i]&&t.data.list[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t.data.list[i].name,cnt:o};"ID"in t.data.list[i]?l.ID=t.data.list[i].ID:"id"in t.data.list[i]&&(l.id=t.data.list[i].id),e.attributeGoods.push(lt({},l))}}})),n.appendChild(s)},c=0;c0){n.getElementsByClassName("table-empty")[0].style.display="none",o.style.display="block",o.style.maxHeight="150px";for(var s=function(i){var n='\n
        \n
        \n '.concat(i+1,'\n
        \n
        ').concat(t[i].name,'
        \n
        \n
        '),s=document.createRange().createContextualFragment(n),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in t[i]){if(t[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t[i]&&t[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t[i].name,cnt:o};"ID"in t[i]?l.ID=t[i].ID:"id"in t[i]&&(l.id=t[i].id),e.attributeGoods.push(lt({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in t[i]){if(t[i].ID===e.attributeGoods[r].ID){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}}else if("id"in t[i]&&t[i].id===e.attributeGoods[r].id){s=!0,o?e.attributeGoods[r].cnt=o:e.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:t[i].name,cnt:o};"ID"in t[i]?l.ID=t[i].ID:"id"in t[i]&&(l.id=t[i].id),e.attributeGoods.push(lt({},l))}}})),o.appendChild(s)},a=0;a\n
        \n
        \n 内容类型\n
        \n
        \n
        \n
        \n
        \n
        \n 编辑内容\n \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n 编辑内容\n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        操作
        \n
        设备名称
        \n
        设备类型
        \n
        设备IP
        \n
        设备端口
        \n
        用户名
        \n
        密码
        \n
        \n
        \n \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n
          \n
          \n
          \n
          \n \x3c!--
          \n
          \n 编辑内容\n \n \n
          \n
          --\x3e\n
          \n
          \n
          \n
          \n
          操作
          \n
          设备名称
          \n
          设备状态
          \n
          \n
          \n \n
          \n
          \n

          暂无数据

          \n
          \n
          \n
          \n
          \n
            \n
            \n
            \n
            \n
            \n 添加链接\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            名称
            \n
            链接
            \n
            操作
            \n
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 编辑内容\n \n \n
            \n
            \n
            \n
            \n
            \n
            序号
            \n
            名称
            \n
            数量
            \n
            \n
            \n \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n '}function ut(e){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n

            WGS84坐标

            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 海拔高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            转换坐标选择\n
            \n
            \n
            \n
            \n
            \n X轴:\n \n
            \n
            \n
            \n
            \n Y轴:\n \n
            \n
            \n
            \n
            \n Z轴:\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n 小数格式\n
            \n
            \n
            \n
            \n \n 度分格式\n
            \n
            \n
            \n
            \n \n 度分秒格式\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n \n \n \n \n
            \n
            \n 纬度\n \n \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n \n \n \n \n \n \n
            \n
            \n 纬度\n \n \n \n \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n

            图标设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 图标\n
            \n \n
            \n
            \n
            \n 默认图标\n
            \n \n
            \n
            \n
            \n 图标倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n

            文字设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 文字大小\n
            \n \n px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n
            \n \x3c!-- \n
            \n
            \n
            \n 扩散\n \n
            \n
            \n 半径\n \n
            \n
            \n 时间\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            \n 雷达\n \n
            \n
            \n 半径\n \n
            \n
            \n 时间\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            --\x3e\n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!-- 指令--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!-- 设置操作点--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n
            \n
            \n \n ')}var ht=i(28),pt=i(29);function dt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function mt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),i=ft(this,t,[e,o]),e&&e.viewer?(i.sdk=e,i.viewer=e.viewer,i.options=mt({},o),i.options.id=o.id||i.randomString(),i.entity=null,i.clickCallBack=null,i.rightClickCallBack=null,i.picking=!0,i.options.host=i.options.host||Object(n.a)(),i.options.customView=o.customView,i.setDefaultValue(),i._showView,i):Ee()(i)}return Me()(t,e),h()(t,[{key:"showView",get:function(){return this._showView},set:function(e){var t=Object(J.c)().sdkD;if(!t)return this._showView=e,void(this.entity&&(this.entity._showView=e));this.sdk!==t?(this._showView||this.show)&&(this.sdk!==t?(this._showView=2!=e&&3!=e?0:e,this.isShowView=!0,this._showView?this.show=2!=e:this.show=!0):this._showView=0):this._showView=0}},{key:"name",get:function(){return this.options.name},set:function(e){this.options.name=e,this.label&&(this.label.text=e),this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;if(this.isShowView&&t||(this.options.show=e,this.originalOptions&&(this.originalOptions.show=e)),this.entity&&(this.entity._showView=this.showView),"layer"==this.type&&this.entity&&(this.entity._objectState=this.options.show),this.showView&&3!=this.showView&&t?(this.entity&&(this.entity.show=!1),this.options.label&&this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1,"layer"==this.type&&t){var i=t.viewer.imageryLayers._layers[this.layerIndex],n=this.entity;if(!i)return;n._objectState?(n._showView&&2!=n._showView||(i.show=!0),3==n._showView&&(i.show=!1)):i.show=this.options.show}}else console.error("参数必须为boolean")}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"display",value:function(){this.show=!0}},{key:"hide",value:function(){this.show=!1}},{key:"flicker",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,i=arguments.length>1?arguments[1]:void 0;this.flickerAnimate&&TWEEN.remove(this.flickerAnimate),this.flickerAnimate=new TWEEN.Tween({degree:1}).to({degree:0},t/2).easing(TWEEN.Easing.Linear.None).repeat(i||0===i?2*i-1:1/0).yoyo(!0).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.sdk.viewer){t.next=3;break}return TWEEN.remove(e.flickerAnimate),t.abrupt("return");case 3:e.show&&(1===i.degree&&(e.entity&&(e.entity.show=!0),e.labelShow&&e.label&&(e.label.show=!0),e.text&&e.text&&(e.text.show=!0)),0===i.degree&&(e.entity&&(e.entity.show=!1),e.labelShow&&e.label&&(e.label.show=!1),e.text&&e.text&&(e.text.show=!1)));case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onComplete((function(t){TWEEN.remove(e.flickerAnimate),e.flickerAnimate=void 0})).start()}},{key:"flyTo",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?r=mt({},this.options.position):this.options.positions?r=mt({},this.options.positions[0]):this.options.line&&this.options.line.positions?r=mt({},this.options.line.positions[0]):this.options.center?r=mt({},this.options.center):this.options.start?r=mt({},this.options.start):this.geojson?(l=turf.bbox(this.geojson),r={lng:l[0],lat:l[1]}):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"remove",value:(o=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.removeIncetance(this.options.id);case 2:this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id);case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"onClick",get:function(){return this.clickCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.clickCallBack&&this.options&&this.options.id&&Object(ht.d)(this.options.id,this.leftClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.d)(this.options.id,this.leftClickCB,this):null==this.clickCallBack&&this.options&&this.options.id&&Object(q.j)(this.options.id,this.leftClickCB,this),this.clickCallBack=e}}},{key:"onRightClick",get:function(){return this.rightClickCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.rightClickCallBack&&this.entity&&this.entity.id&&Object(ht.f)(this.entity.id,this.rightClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.f)(this.options.id,this.leftClickCB,this):null==this.rightClickCallBack&&this.entity&&this.entity.id&&Object(q.l)(this.entity.id,this.rightClickCB,this),this.rightClickCallBack=e}}},{key:"onMouseMove",get:function(){return this.mouseMoveCallBack},set:function(e){if(e&&"function"!=typeof e)console.error("val:",e,"不是一个function");else{var t=Object(Z.a)().sdkD,i=Object(J.c)().sdkD;t&&this.sdk===t?null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&Object(ht.e)(this.entity.id,this.mouseMoveCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&Object(pt.e)(this.options.id,this.leftClickCB,this):null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&Object(q.k)(this.entity.id,this.mouseMoveCB,this),this.mouseMoveCallBack=e}}},{key:"customView",get:function(){return this.options.customView}},{key:"setCustomView",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}this.options.customView=t,e.next=16;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=mt({},n),this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?o=mt({},this.options.position):this.options.positions?o=mt({},this.options.positions[0]):this.options.line&&this.options.line.positions?o=mt({},this.options.line.positions[0]):this.options.center?o=mt({},this.options.center):this.options.start?o=mt({},this.options.start):this.geojson?(a=turf.bbox(this.geojson),o={lng:a[0],lat:a[1]}):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){e.next=13;break}return e.next=12,this.getClampToHeight(o);case 12:o.alt=e.sent;case 13:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"resetCustomView",value:function(){this.options.customView={relativePosition:void 0,orientation:void 0}}},{key:"edit",value:function(){}},{key:"leftClickCB",value:function(e,t,i,n){n.clickCallBack&&"function"==typeof n.clickCallBack&&n.clickCallBack(e,t,i)}},{key:"rightClickCB",value:function(e,t,i,n){n.rightClickCallBack&&"function"==typeof n.rightClickCallBack&&n.rightClickCallBack(e,t,i)}},{key:"mouseMoveCB",value:function(e,t,i,n){n.mouseMoveCallBack&&"function"==typeof n.mouseMoveCallBack&&n.mouseMoveCallBack(e,t,i)}},{key:"getGuid",value:function(){return Cesium.createGuid()}},{key:"setDefaultValue",value:function(){var e,t,i;this.options.id=null!==(e=this.options.id)&&void 0!==e?e:this.getGuid(),this.options.show=null===(t=this.options.show)||void 0===t||t,this.options.name=null!==(i=this.options.name)&&void 0!==i?i:"未命名对象"}},{key:"start",value:function(){}},{key:"end",value:function(){}}]);var i,o,s}(b.a);function gt(e){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 透明度\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 波纹层数\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 扩散速度\n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 半径单位\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}var yt=[{name:"黑体",value:"黑体",font:"SimHei",key:"0"},{name:"思源黑体",value:"思源黑体",font:"SourceHanSansTi",key:"1"},{name:"庞门正道标题体",value:"庞门正道标题体",font:"PMZDBTTi",key:"2"},{name:"数黑体",value:"数黑体",font:"AlimamaShuHeiTi",key:"3"}];function bt(){return yt}function Ct(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;c()(this,t),(i=kt(this,t,[e,n])).model=o,i._canvas=document.createElement("canvas"),i._canvas2=document.createElement("canvas"),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Ct(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineWidth=n.lineWidth||4,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new te.a(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return Me()(t,e),h()(t,[{key:"create",value:(i=_()(S.a.mark((function e(){var t,i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,this.options.position[2]||0===this.options.position[2]){e.next=5;break}return e.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=e.sent;case 5:this.originalOptions=xt(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(t.model){if(t.model.isMove){var e=t.model.customScale.x;t.model.customScale.y>e&&(e=t.model.customScale.y),t.model.customScale.z>e&&(e=t.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(t.options.position[0],t.options.position[1],t.options.position[2]+2*(t.model.originalBoundingSphereRadius||1)*(e||.01)),n=Cesium.Cartesian3.fromDegrees(t.options.position[0],t.options.position[1],t.options.position[2]-2*(t.model.originalBoundingSphereRadius||1)*(e||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=t.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),o=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]-2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Cartesian3.subtract(o,n,new Cesium.Cartesian3),a=Cesium.Cartesian3.normalize(s,s),r=new Cesium.Ray(n,a),l=this.viewer.scene.drillPickFromRay(r,5),c=0;c40&&(t[i]=t[i].slice(0,40-t[i].length));t.length>10&&t.splice(10-t.length),this.options.text=t.join("\n"),this.entity&&this.updateBillboardImage()}},{key:"color",get:function(){return this.options.color},set:function(e){this.options.color=e,this.entity&&(this.entity.billboard.image=this.getcanvas())}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(e){var t=e;t>this.far&&(t=this.far),this.options.near=t,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(e){var t=e;ti&&(i=a),n+=this.options.fontSize+2*this.options.outlineWidth}n=n+20+5*(t.length-1),(i+=30)0&&void 0!==arguments[0]?arguments[0]:{},t=null;if("object"==st()(e)&&null!==e)for(var i in t=e instanceof Array?[]:{},e)t[i]=xt(e[i]);else t=e;return t},St=i(14),Et=function(){return h()((function e(t){c()(this,e),e.prototype.hasOwnProperty("color")||Object.defineProperties(e.prototype,{color:Cesium.createPropertyDescriptor("color")}),e.prototype.hasOwnProperty("speed")||Object.defineProperties(e.prototype,{speed:Cesium.createPropertyDescriptor("speed")}),e.prototype.hasOwnProperty("transparency")||Object.defineProperties(e.prototype,{transparency:Cesium.createPropertyDescriptor("transparency")}),e.prototype.hasOwnProperty("count")||Object.defineProperties(e.prototype,{count:Cesium.createPropertyDescriptor("count")}),e.prototype.hasOwnProperty("gradient")||Object.defineProperties(e.prototype,{gradient:Cesium.createPropertyDescriptor("gradient")}),this._definitionChanged=new Cesium.Event,this._speed=void 0,this.id=t.id,this.color=t.color||new Cesium.Color(1,1,1,1),this.colors=t.colors||{},this.speed=t.speed,this.transparency=t.transparency,this.count=t.count,this.gradient=t.gradient;var i="",n=[];for(var o in this.colors)Object.hasOwnProperty.call(this.colors,o)&&n.push(o);n.sort((function(e,t){return t-e}));for(var s=0;s 0.0){\n if(disNum < perDis){\n bl = 1.0 - disNum / perDis;\n }\n else if(disNum - perDis < perDis){\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient))) * transparency;\n }\n }\n }\n }\n return material;\n }\n "),this._CircleRippleMaterialType="CircleRippleMaterialType"+this.id,Cesium.Material._materialCache.addMaterial(this._CircleRippleMaterialType,{fabric:{type:this._CircleRippleMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:3,transparency:1,count:4,gradient:.2,frameNumber:Cesium.getTimestamp()},source:this._source},translucent:function(e){return!0}})}),[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return this._CircleRippleMaterialType}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.transparency=this.transparency,t.count=this.count,t.gradient=this.gradient,t.frameNumber=Cesium.getTimestamp(),t}},{key:"equals",value:function(e){return this===e||e instanceof CircleRippleMaterialProperty&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this.count,e.count)&&Cesium.Property.equals(this.transparency,e.transparency)&&Cesium.Property.equals(this.gradient,e.gradient)}}])}();function Pt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ot(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),Mt(i=Dt(this,t,[e,n]),jt,null),i.options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#ff0000",i.options.transparency=n.transparency||0===n.transparency?n.transparency:1,i.options.transparency>1&&(i.options.transparency=1),i.options.speed=n.speed||0===n.speed?n.speed:5,i.options.count=n.count||0===n.count?n.count:3,n.count||0===n.count?(i.options.count=n.count,n.count>99&&(i.options.count=99)):i.options.count=3,i.options.circle=n.circle||[{radius:10,color:i.options.color}];for(var s=0;s999999&&(i.options.circle[s].radius=999999);i.options.show=!n.show&&!1!==n.show||n.show,i.event=new te.a(i.sdk),n.label=n.label||{},i._elms={},i.options.label={show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"";for(var a=0,r=0;ra&&(a=Number(i.options.circle[r].radius));return i._radius=a,i.operate={},i.Dialog=o,i._EventBinding=new Ye,i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"CircleDiffuse"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity.show=!1,this.options.label.show&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&(this.label.show=this.options.show)),this.isShowView=!1,Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e)}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=e,!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),Nt(jt,t)&&(Nt(jt,t).call(t),Tt(jt,t,null)),t.lastOptions=void 0,t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=e.lng,t.lat=e.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.lastOptions=void 0,t.positionEditing=!1}}))}))):(setTimeout((function(){t.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Tt(jt,this,e)}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e,this.label.position=[e,this.lat],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e,this.label.position=[this.lng,e],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"radius",get:function(){return this._radius}},{key:"circle",get:function(){return this.options.circle},set:function(e){this.options.circle=e||[{radius:10,color:this.options.color}];for(var i=0,n=0;n999999&&(this.options.circle[n].radius=999999),Number(this.options.circle[n].radius)>i&&(i=Number(this.options.circle[n].radius));this._radius=i,t.create(this)}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,t.create(this),this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e}))}},{key:"transparency",get:function(){return this.options.transparency},set:function(e){this.options.transparency=e>1?1:Number(e),t.create(this),this._elms.transparency&&this._elms.transparency.forEach((function(t){t.value=e}))}},{key:"count",get:function(){return this.options.count},set:function(e){this.options.count=e>99?99:e,t.create(this),this._elms.count&&this._elms.count.forEach((function(t){t.value=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=Object(J.c)().sdkD;this.options.label.show=e,!this.show||this.showView&&3!=this.showView&&t?this.label.show=!1:this.label.show=e,this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label.color=e,this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label.fontSize=e,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label.scaleByDistance=e,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==c[0]?c[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Ot({},this.options.position):this.options.positions?r=Ot({},this.options.positions[0]):this.options.center?r=Ot({},this.options.center):this.options.start?r=Ot({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=16;break}return e.next=15,this.getClampToHeight(r);case 15:r.alt=e.sent;case 16:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=27;break;case 23:return e.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:l=e.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.radius+l),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle-ciffuse",(i=document.createElement("div")).innerHTML=gt(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,this._createCircleElm(),new Je("circle-diffuse-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelColor=e},clear:function(){l.labelColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelLineColor=e},clear:function(){l.labelLineColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelBackgroundColorStart=e},clear:function(){l.labelBackgroundColorStart="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){l.labelBackgroundColorEnd=e},clear:function(){l.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),r=i.getElementsByTagName("*"),this._EventBinding.on(this,r),this._elms=this._EventBinding.element,this._elms.labelColor=[n],this._elms.labelLineColor=[o],this._elms.labelBackgroundColorStart=[s],this._elms.labelBackgroundColorEnd=[a],setTimeout((function(){l.attributeLink=l.options.attribute.link.content,l.attributeVr=l.options.attribute.vr.content,l.ISCSelect&&l.ISCSelect(),l.goodsSelect&&l.goodsSelect(),l.cameraSelect&&l.cameraSelect();var e=Object(je.a)(l._DialogObject._element.content.getElementsByClassName("input-radius-unit-box")[0],".input-radius-unit");if(e){e.legp_search([{name:"米",value:"米"},{name:"千米",value:"千米"}]);var t=l._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0];t.value="米",t.addEventListener("input",(function(){var e=l._DialogObject._element.content.getElementsByClassName("circle-content-box")[0].getElementsByClassName("input-number");switch(t.value){case"米":for(var i=0;ie&&(e=Number(this.options.circle[i].radius));this._radius=e,t.create(this)}}},{key:"remove",value:(n=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.label&&this.label.remove(),this.entity&&this.sdk.viewer.entities.remove(this.entity),this.entity2&&this.sdk.viewer.entities.remove(this.entity2),this.entity=null,this.entity2=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=10,this.sdk.removeIncetance(this.options.id);case 10:return e.next=12,Object(J.g)(this.sdk,this.options.id);case 12:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setDIV",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(e){for(var i={},n=0;n\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 扫描颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 扫描半径\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 扫描速度\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function It(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Rt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Ft(i=zt(this,t,[e,n]),Wt,null),i.options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#ff0000",i.options.radius=n.radius||10,i.options.radius>999999&&(i.options.radius=999999),i.options.speed=n.speed||0===n.speed?n.speed:20,i.options.show=!n.show&&!1!==n.show||n.show,i.event=new te.a(i.sdk),i.operate={},n.label=n.label||{},i._elms={},i.options.label={show:n.label.show||!1,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.richTextContent=n.richTextContent||"",i.Dialog=o,i._EventBinding=new Ye,i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity.show=!1,this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=e,!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),Vt(Wt,t)&&(Vt(Wt,t).call(t),Ht(Wt,t,null)),t.lastOptions=void 0,t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=e.lng,t.lat=e.lat,t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.lastOptions=void 0,t.positionEditing=!1}}))}))):(setTimeout((function(){t.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Ht(Wt,this,e)}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e,this.label.position=[e,this.lat],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e,this.label.position=[this.lng,e],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){var t=Number(e.toFixed(2));(t>999999&&(t=999999),t<.1&&(t=.1),this.options.radius=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(t=Number((t/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,this.changeMaterial(),this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e}))}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.changeMaterial(),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=Object(J.c)().sdkD;this.options.label.show=e,!this.show||this.showView&&3!=this.showView&&t?this.label.show=!1:this.label.show=e,this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label.color=e,this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label.fontSize=e,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label.scaleByDistance=e,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==c[0]?c[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Rt({},this.options.position):this.options.positions?r=Rt({},this.options.positions[0]):this.options.center?r=Rt({},this.options.center):this.options.start?r=Rt({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=16;break}return e.next=15,this.getClampToHeight(r);case 15:r.alt=e.sent;case 16:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=27;break;case 23:return e.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:l=e.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+l),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" radar-scan",(i=document.createElement("div")).innerHTML=Lt(this),this._DialogObject.contentAppChild(i),new Je("radar-scan-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){u.color=e},clear:function(){u.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelColor=e},clear:function(){u.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelLineColor=e},clear:function(){u.labelLineColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelBackgroundColorStart=e},clear:function(){u.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){u.labelBackgroundColorEnd=e},clear:function(){u.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.labelLineColor=[s],this._elms.labelBackgroundColorStart=[a],this._elms.labelBackgroundColorEnd=[r],(c=this._DialogObject._element.content.getElementsByClassName("input-radius")[0].getElementsByTagName("input")[0]).value=this.options.radius,this._elms.radius=[c],c.addEventListener("input",(function(e){var t=u._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(e.target.value||0===e.target.value){var i=e.target.value;i=Number(i),"."==e.data||"-"==e.data&&!e.target.value||(!e.target.max&&!e.target.min||i<=Number(e.target.max)/("米"===t?1:1e3)&&i>=Number(e.target.min))&&(u.radius=i*("米"===t?1:1e3))}})),c.addEventListener("blur",(function(e){var t=u._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(e.target.value||0===e.target.value){var i=e.target.value;i=Number(i),e.target.max&&i>Number(e.target.max)/("米"===t?1:1e3)&&(i=Number(e.target.max)/("米"===t?1:1e3)),e.target.min&&i0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(e){var i=function(e){if(/^#/.test(e)){var t=e.replace("#",""),i=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16),s=parseInt(t.substring(6,8),16);s||0===s?s/=255:s=1,e="rgba(".concat(i,",").concat(n,",").concat(o,",").concat(s,")")}var a=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);return a?[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),a[4]?parseFloat(a[4]):1]:null}(e.options.color),n="rgba(".concat(i[0],",").concat(i[1],",").concat(i[2],",1)");e.entity=e.sdk.viewer.entities.add({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(e.options.lng,e.options.lat)}),!1),name:"雷达扫描",ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(){return e.options.radius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(){return e.options.radius}),!1),material:new Cesium.RadarScanMaterialProperty({color:Cesium.Color.fromCssColorString(n),transparency:i[3],speed:e.options.speed}),zIndex:e.sdk._entityZIndex}}),e.sdk._entityZIndex++,"cesium-viewer 2d"===e.sdk.viewer._element.className&&(e.entity.ellipse.height=1),t.createLabel(e),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id)}},{key:"createLabel",value:(i=_()(S.a.mark((function e(t){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getClampToHeight({lng:t.options.lng,lat:t.options.lat});case 2:i=e.sent,t.options.label.position={lng:t.options.lng,lat:t.options.lat,alt:i},t.label=new _t(t.sdk,{id:t.options.id,show:!!t.options.show&&t.options.label.show,position:[t.options.label.position.lng,t.options.label.position.lat,t.options.label.position.alt],text:t.options.name,fontSize:t.options.label.fontSize,fontFamily:t.options.label.fontFamily,color:t.options.label.color,pixelOffset:t.options.label.pixelOffset,backgroundColor:t.options.label.backgroundColor,lineColor:t.options.label.lineColor,lineWidth:t.options.label.lineWidth,scaleByDistance:t.options.label.scaleByDistance,near:t.options.label.near,far:t.options.label.far,ground:!0});case 5:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"createBy2D",value:function(e){e.entity=new Cesium.EntityCollection;var i=0,n=r(e.options,e.options.radius,i),o=(new Date).getTime();e.viewer.clock.onTick.addEventListener((function(){var t=(new Date).getTime(),s=0*(t-o);o=t,i+=s,n=r(e.options,e.options.radius,i)}));var s=e.sdk.viewer.entities.add({show:e.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){var t=e.createCircle({lng:e.options.lng,lat:e.options.lat},e.options.radius);return Cesium.Cartesian3.fromDegreesArray(t)}),!1),width:2,material:Cesium.Color.fromCssColorString(e.options.color),clampToGround:!0}}),a=e.sdk.viewer.entities.add({show:e.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(n)}),!1),width:2,material:Cesium.Color.fromCssColorString(e.options.color),clampToGround:!0}});function r(e,t,i){var n=e.lng,o=e.lat,s=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,0)),a=t*Math.cos(i*Math.PI/180),r=t*Math.sin(i*Math.PI/180),l=Cesium.Cartesian3.fromElements(a,r,0),c=Cesium.Matrix4.multiplyByPoint(s,l,new Cesium.Cartesian3),u=Cesium.Cartographic.fromCartesian(c);return[n,o,Cesium.Math.toDegrees(u.longitude),Cesium.Math.toDegrees(u.latitude)]}e.entity.add(s),e.entity.add(a),e.sdk.viewer.entities.add(e.entity),t.createLabel(e),Object(J.g)(e.sdk,e.options.id)}}]);var i,n,o,s}(vt);function Yt(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Jt(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Jt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Kt(i=Zt(this,t,[e,n]),ti,null),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.options.billboard=n.billboard=n.billboard||{},i.options.billboard.show=!n.billboard.show&&!1!==n.billboard.show||n.billboard.show,i.options.billboard.image=n.billboard.image||Object(X.j)(n.billboard.defaultImage)||i.getSourceRootPath()+"/img/A-ablu-blank.png",i.options.billboard.defaultImage=n.billboard.defaultImage,i.options.billboard.scale=n.billboard.scale||0===n.billboard.scale?n.billboard.scale:3,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.position=n.position=n.position||{},i.options.position.lng=Number(Number(n.position.lng||0).toFixed(8)),i.options.position.lat=Number(Number(n.position.lat||0).toFixed(8)),i.options.position.alt=Number(Number(n.position.alt||0).toFixed(2)),i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.rtmp=i.options.attribute.rtmp||{},i.options.attribute.rtmp.content=i.options.attribute.rtmp.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.isc=i.options.attribute.isc||{},i.options.attribute.isc.content=i.options.attribute.isc.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.richTextContent=n.richTextContent||"",i.operate={},i._elms={},i.previous={position:Xt({},i.options.position)},i.entity,i._proj=i.sdk.proj,i.sdk.addIncetance(i.options.id,i),t.create(i),i.picking=!0,i.Dialog=o,i._EventBinding=new Ye,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"BillboardObject"}},{key:"selectBillboard",value:function(){var e=this;this.sdk.viewer.screenSpaceEventHandler.setInputAction((function(t){var i=e.sdk.viewer.scene.pick(t.position);Cesium.defined(i)&&i.id&&"airportBillboard"===i.id.id?e.entity.billboard&&(e.entity.billboard.color=Cesium.Color.YELLOW):e.entity.billboard&&(e.entity.billboard.color=Cesium.Color.WHITE)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"},{name:"IP摄像头",value:"IP摄像头",key:"camera"},{name:"rtmp",value:"rtmp",key:"rtmp"},{name:"全景图",value:"全景图",key:"vr"},{name:"物资",value:"物资",key:"goods"}]}},{key:"show",get:function(){return this.options.show},set:function(e){this.isShowView||(this.options.show=e,this.originalOptions.show=e),this.showView&&3!=this.showView?this.entity&&(this.entity.show=!1):this.entity&&(this.entity.show=this.options.show),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),this.isShowView=!1}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t,i=this;this.options.heightMode=e||0,this.options.heightMode=e||0==e?e:3;switch(this.options.heightMode){case"0":case 0:t=Cesium.HeightReference.NONE;break;case"1":case 1:t=Cesium.HeightReference.NONE;break;case"2":case 2:t=Cesium.HeightReference.CLAMP_TO_GROUND;break;case"3":case 3:t=Cesium.HeightReference.NONE;var n,o=[],a=Yt(this.sdk.entityMap);try{for(a.s();!(n=a.n()).done;){var r=s()(n.value,2),l=(r[0],r[1]);"RadarScanStereoscopic"===l.type&&l.entity&&o.push(l.entity)}}catch(e){a.e(e)}finally{a.f()}this.getClampToHeight(this.options.position,o).then((function(e){i.alt=Number(e.toFixed(2))}))}this.entity&&(this.entity.billboard.heightReference=t,this.entity.label.heightReference=t)}},{key:"labelText",get:function(){return this.options.label.text},set:function(e){this.options.label.text=e,this.options.name=e,this.entity&&(this.entity.label.text=e+""),this._elms.labelText&&this._elms.labelText.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=null==e||""===e?e:Number(Number(e).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){this.options.position.lat=null==e||""===e?e:Number(Number(e).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){this.options.position.alt=null==e||""===e?e:Number(Number(e).toFixed(2)),this.renewPoint(),this.coordinate=this.options.coordinate}},{key:"near",get:function(){return this.options.near},set:function(e){var t=e;t>this.far&&(t=this.far),this.options.near=t,this.renewPoint(),this._elms.near&&this._elms.near.forEach((function(e){e.value=t}))}},{key:"far",get:function(){return this.options.far},set:function(e){var t=e;t=t._frameImages.length-1?0:r+1,e}),!1)),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return a}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-a*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1)}}))}else{var l=new Image;l.src=i;var c=36,u=document.createElement("canvas");l.onload=function(){var e=l.width/l.height;l.width=100,l.height=100/e;var i=l.width,n=l.height,o=u.getContext("2d",{willReadFrequently:!0});u.width=i,u.height=n,o.drawImage(l,0,0,i,n),c=n*(31/i),t.entity.billboard.imgWidth=i,t.entity.billboard.imgHeight=n,t.entity&&(t.entity.billboard.image=u),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return c}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-c*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1),c=n*(31/i)},l.onerror=function(e){u.width=0,u.height=0,c=0,t.entity.billboard.imgWidth=0,t.entity.billboard.imgHeight=0,t.entity&&(t.entity.billboard.image=u),t.entity.billboard.height=new Cesium.CallbackProperty((function(){return 0}),!1),t.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return new Cesium.Cartesian2(0,0)}),!1),c=36}}}},{key:"billboardScale",get:function(){return this.options.billboard.scale},set:function(e){this.options.billboard.scale=e,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(t){t.value=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){this.options.label.show=e,this.entity&&(this.entity.label.show=e),this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.value=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.renewPoint();var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.renewPoint(),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e||"#00ffff",this.renewPoint(),this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.label.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(0,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.link.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.vr.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={vrEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.vr.content;case 2:t.attributeVr=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.rtmp.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={rtmpEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.rtmp.content;case 2:t.attributeRtmp=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-rtmp")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.rtmp.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.rtmp.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0&&void 0!==p[0]&&p[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" billboard-object",(i=document.createElement("div")).innerHTML=ut(this),this._DialogObject.contentAppChild(i),this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.isc.content,new Je("point-object-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){h.labelColor=e},clear:function(){h.labelColor="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.labelColor=[n],setTimeout(_()(S.a.mark((function e(){var t,i,n,o,a,r,l,c,u,p,d,m,f,v,g,y,b,C,w,k,_,x,E,P,O,D;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.attributeLink=h.options.attribute.link.content,h.attributeVr=h.options.attribute.vr.content,h.cameraSelect&&h.cameraSelect(),h.ISCSelect&&h.ISCSelect(),h.goodsSelect&&h.goodsSelect(),(t=document.createElement("div")).className="col",t.style.flex="0 0 110px",t.innerHTML='\n 属性框\n \n ',h._DialogObject._element.content.getElementsByClassName("attribute")[0].getElementsByClassName("row")[0].appendChild(t),i=h.attributeSelect,!(n=h._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0])){e.next=27;break}(o=Object(je.a)(n,".attribute-select")).legp_search(i),a=h._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],r=0;case 18:if(!(r=0)){e.next=24;break}if(!v[g].position){e.next=21;break}return f=v[g],e.abrupt("break",24);case 21:g--,e.next=17;break;case 24:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),e.prev=25,e.next=28,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 28:y=e.sent,e.next=33;break;case 31:e.prev=31,e.t0=e.catch(25);case 33:if((void 0===i||i0&&void 0!==C[0]?C[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=26;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,a=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,a),l={lng:0,lat:0},this.options.position||this.options.position?l=Xt({},this.options.position):this.options.center?l=Xt({},this.options.center):this.options.start?l=Xt({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){e.next=19;break}c=[],u=Yt(this.sdk.entityMap);try{for(u.s();!(h=u.n()).done;)(p=s()(h.value,2))[0],"RadarScanStereoscopic"===(d=p[1]).type&&d.entity&&c.push(d.entity)}catch(e){u.e(e)}finally{u.f()}return e.next=18,this.getClampToHeight(l,c);case 18:l.alt=e.sent;case 19:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,a=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,a),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),e.next=33;break;case 26:m=[],f=Yt(this.sdk.entityMap);try{for(f.s();!(v=f.n()).done;)(g=s()(v.value,2))[0],"RadarScanStereoscopic"===(y=g[1]).type&&y.entity&&m.push(y.entity)}catch(e){f.e(e)}finally{f.f()}return e.next=31,this.getClampToHeight(this.options.position,m);case 31:b=e.sent,this.sdk.viewer.camera.flyTo({orientation:t.orientation,destination:Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,b+(t.height||500))});case 33:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setPosition",value:function(e){this.options.position.lng=e.position.lng,this.options.position.lat=e.position.lat,this.options.position.alt=e.position.alt,this.renewPoint()}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,this.event&&this.event.destroy(),this.event=new te.a(this.sdk),!0===e){this.picking=!1,this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.previous={position:Xt({},this.options.position)};var i=function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.alt=n.alt,t.previous={position:Xt({},t.options.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),$t(ti,t)&&($t(ti,t).call(t),Qt(ti,t,null)),t.positionEditing=!1};this.event.mouse_move((function(e,i){t.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left(i),this.event.mouse_right((function(e,i){t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,n){var o=new Date;t.event.gesture_pinck_end((function(){var s=new Date;e.position1.x,e.position2.x,e.position1.y,e.position2.y;s-o>=500?t.positionEditing=!1:i(0,n)}))}))}else Qt(ti,this,null),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy(),this.event=null),this.tip&&this.tip.destroy(),this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt,this.renewPoint()}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,Qt(ti,this,e)}},{key:"setDIV",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};t.x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10;var i=document.getElementById(t.domid),n=Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=e.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+t.x).toFixed(0)+"px",i.style.top=(s.y+t.y).toFixed(0)+"px")}}))}},{key:"setCustomView",value:(i=_()(S.a.mark((function e(t){var i,n,o,a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}this.options.customView=t,e.next=19;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},a=Xt({},n),this.options.position?o=Xt({},this.options.position):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){e.next=16;break}r=[],l=Yt(this.sdk.entityMap);try{for(l.s();!(c=l.n()).done;)(u=s()(c.value,2))[0],"RadarScanStereoscopic"===(h=u[1]).type&&h.entity&&r.push(h.entity)}catch(e){l.e(e)}finally{l.f()}return e.next=15,this.getClampToHeight(o,r);case 15:o.alt=e.sent;case 16:a={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:a},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],[{key:"create",value:function(e){var t,i,n=36,o=e.options.position;e.originalOptions=e.deepCopyObj(e.options);var s,a=!1,r=0,l=Ct(e.labelFontFamily)||"Helvetica",c=e.replaceHost(e.options.billboard.image,e.options.host);if(e._frameImages=[],e.options.billboard.image=c||e.getSourceRootPath()+"/img/A-ablu-blank.png",c&&c.endsWith("gif")){switch(a=!0,e.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}var u=document.createElement("img");u.setAttribute("rel:animated_src",c),u.setAttribute("rel:auto_play","1"),document.createElement("div").appendChild(u);var h=Cesium.createGuid();s=new SuperGif({gif:u}),e._superGif=s,e._superGif.id=h,s.load((function(i){if(404==i)return(t=document.createElement("canvas")).width=0,t.height=0,n=0,void(e.entity&&(e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity)));if(e._superGif.id==h){for(var o=s.get_length(),a=1;a<=o;a++)s.move_to(a),e._frameImages.push(s.get_canvas().toDataURL());var l=(t=s.get_canvas()).width,c=t.height;n=c*(31/l),e.entity&&(e.entity.billboard.imgWidth=l,e.entity.billboard.imgHeight=c,e.entity.billboard.image=new Cesium.CallbackProperty((function(){var t=e._frameImages[r];return r=r>=e._frameImages.length-1?0:r+1,t}),!1),Object(y.a)(e.sdk,e.entity))}}))}else{var p=new Image;switch(p.src=c||e.getSourceRootPath()+"/img/A-ablu-blank.png",e.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}t=document.createElement("canvas"),p.onload=function(){var i=p.width/p.height;p.width=100,p.height=100/i;var o=p.width,s=p.height,a=t.getContext("2d",{willReadFrequently:!0});t.width=o,t.height=s,a.drawImage(p,0,0,o,s),n=s*(31/o),e.entity&&(e.entity.billboard.imgWidth=o,e.entity.billboard.imgHeight=s,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity))},p.onerror=function(i){t.width=0,t.height=0,n=0,e.entity&&(e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity.billboard.image=t,Object(y.a)(e.sdk,e.entity))}}e.entity=new Cesium.Entity({show:e.options.show,id:e.options.id,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:a?new Cesium.CallbackProperty((function(){var t=e._frameImages[r];return r=r>=e._frameImages.length-1?0:r+1,t}),!1):t,scale:e.options.billboard.scale,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,color:e.options.billboard.show?void 0:new Cesium.Color(1,1,1,0),width:31,height:new Cesium.CallbackProperty((function(){return n}),!1),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},label:{show:e.options.label.show,text:e.options.label.text,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,font:e.options.label.fontSize+"px "+l,fillColor:Cesium.Color.fromCssColorString(e.options.label.color),pixelOffset:new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-n*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1),outlineColor:Cesium.Color.BLACK,outlineWidth:1,style:Cesium.LabelStyle.FILL_AND_OUTLINE}}),e.entity.billboard.imgWidth=31,e.entity.billboard.imgHeight=36,e.entity.position=Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),3==e.options.heightMode&&e.updateHeight(),e.renewPoint(),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id),e.options.billboard.isSelect&&e.selectBillboard()}}]);var i,n,o,a,r}(vt);function ni(e){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 描边颜色\n
            \n
            \n
            \n 描边宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function oi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function si(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=ai(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.entity,i.event=new te.a(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.nodePoints=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"",!i.options.positions||i.options.positions.length<3)i._error="多边形最少需要三个坐标!",console.warn(i._error);else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t0&&void 0!==f[0]?f[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=si({},this.options.position):this.options.positions?r=si({},this.options.positions[0]):this.options.center?r=si({},this.options.center):this.options.start?r=si({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=51;break;case 25:l=[],e.t0=this.heightMode,e.next=0===e.t0||"0"===e.t0?29:1===e.t0||"1"===e.t0?31:2===e.t0||"2"===e.t0?33:35;break;case 29:case 31:return c=!1,e.abrupt("break",35);case 33:return c=!0,e.abrupt("break",35);case 35:if(!c){e.next=48;break}u=0;case 37:if(!(u=500?t.positionEditing=!1:g(0,i)}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!1)}else{this.previous?this.positions=nt()(this.previous.positions):this.previous={positions:nt()(this.positions)},this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var y=[[]],b=0;b0&&void 0!==arguments[0]?arguments[0]:function(){};this.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=function(){var e=_()(S.a.mark((function e(){var t,i,n,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=nt()(s.sdk.viewer.entities.values),i=0;case 2:if(!(i=3?[].concat(nt()(a),[a[0],a[1],a[2]]):a}),!1);var p=nt()(e.sdk.viewer.entities.values);if(e.options.positions.length<3)e.getClampToHeight({lng:e.options.positions[0].lng,lat:e.options.positions[0].lat},p).then((function(t){e.label.position=[e.options.positions[0].lng,e.options.positions[0].lat,t]}));else{for(var d=[[]],m=0;m=500?h():u(o,i)}))})),i()}),200)}}),50)}},{key:"closeNodeEdit",value:function(){if(this.sdk&&this.sdk.viewer){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0?new Cesium.PolygonHierarchy(m):new Cesium.PolygonHierarchy(o)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return m.length>0?[].concat(m,[m[0],m[1]]):[].concat(nt()(o),[o[0],o[1]])}),!1)}},{key:"renewPositions",value:function(){var e=this;if(!this._error){for(var t=!1,i=[],n=this.options.positions,o=0;o0&&void 0!==h[0]?h[0]:{domid:"",x:10,y:10}).x=t.x||0===t.x?t.x:10,t.y=t.y||0===t.y?t.y:10,i=[[]],n=0;n\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 线条颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n 线条形式\n
            \n
            \n
            \n
            \n
            \n 首尾相连\n \n
            \n
            \n 线段圆滑\n \n
            \n
            \n
            \n
            \n
            \n
            \n 线段缓冲\n \n
            \n
            \n 缓冲宽度\n
            \n \n m\n \n
            \n
            \n
            \n 缓冲颜色\n
            \n
            \n
            \n
            \n
            \n 首尾反向\n \n
            \n
            \n 流动速率\n
            \n \n \n
            \n
            \n
            \n 线条间距\n
            \n \n \n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n
            \n
            \n
            \n \n ')}function ci(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ui(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ui(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);iNumber(t.target.max)&&(i=Number(t.target.max),t.target.value=i),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.viwer=this.sdk.viewer,this.options=i,this.options.position=i.position||{},this.options.rotate=i.rotate||{},this.options.position.lng=this.options.position.lng||0,this.options.position.lat=this.options.position.lat||0,this.options.position.alt=this.options.position.alt||0,this.options.rotate.x=this.options.rotate.x||0,this.options.rotate.y=this.options.rotate.y||0,this.options.rotate.z=this.options.rotate.z||0,this.activeAxis,this.activeCircle,this.activeModelParam,this.origin,this.rayX,this.rayY,this.rayZ,this.arrow={},this.activeState,this.coordArrows=[],this.coordCircles=[],this.MapEvent=new te.a(this.sdk)}),[{key:"position",get:function(){return this.options.position},set:function(e){this.options.position=e,this.againArrow(),this.againCircle()}},{key:"rotate",get:function(){return this.options.rotate},set:function(e){this.options.rotate=e}},{key:"initParam",value:function(){return this._params={tx:this.options.position.lng,ty:this.options.position.lat,tz:this.options.position.alt,rx:this.options.rotate.x,ry:this.options.rotate.y,rz:this.options.rotate.z},mi(mi({},this.options.position),this.options.rotate)}},{key:"editTranslational",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C,w=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C=function(e){if(t.activeAxis){var i=e.startPosition.y-e.endPosition.y,n={x:e.endPosition.x-g.x,y:e.endPosition.y-g.y},o=a.camera.getPickRay(n),s=a.scene.globe.pick(o,a.scene),r=new Cesium.Cartesian3,l=Cesium.Transforms.eastNorthUpToFixedFrame(a.camera.position);Cesium.Matrix4.inverse(l,l),Cesium.Matrix4.multiplyByPoint(l,s,r),Cesium.Cartesian3.normalize(r,r);var c=t.initParam(),u=90+Cesium.Math.toDegrees(Math.asin(r.z)),h=Cesium.Cartographic.fromCartesian(a.camera.position).height,p=t.activeModelParam.alt,d=h/Math.cos(Cesium.Math.toRadians(u));new Cesium.EllipsoidGeodesic(Cesium.Cartographic.fromCartesian(s),Cesium.Cartographic.fromCartesian(a.camera.position)),s=Cesium.Ray.getPoint(o,d*(1-p/h));var m=Cesium.Cartographic.fromCartesian(s),f=Cesium.Math.toDegrees(m.longitude),v=Cesium.Math.toDegrees(m.latitude);switch(t.activeAxis._name){case"model_edit_xAxis":t._params.tx=f,t._params.ty=t.activeModelParam.lat,t._params.tz=p,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var w=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),k=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),_=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,w),t.rayY=new Cesium.Ray(t.origin,k),t.rayZ=new Cesium.Ray(t.origin,_);break;case"model_edit_yAxis":t._params.tx=t.activeModelParam.lng,t._params.ty=v,t._params.tz=p,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var x=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),S=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),E=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,x),t.rayY=new Cesium.Ray(t.origin,S),t.rayZ=new Cesium.Ray(t.origin,E);break;case"model_edit_zAxis":t.activeModelParam.alt+=Cesium.Cartesian3.distance(a.camera.position,Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt))/4300*i*3,t._params.tx=t.activeModelParam.lng,t._params.ty=t.activeModelParam.lat,t._params.tz=t.activeModelParam.alt,t.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t.activeModelParam.alt);var P=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,t.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),O=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,t.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),D=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t.activeModelParam.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);t.rayX=new Cesium.Ray(t.origin,P),t.rayY=new Cesium.Ray(t.origin,O),t.rayZ=new Cesium.Ray(t.origin,D)}t.updateModel(t._params.tx,t._params.ty,t._params.tz,t._params.rx,t._params.ry,t._params.rz),t.againArrow()}else{var M=Date.now();if(M-y<100)return clearTimeout(b),void(b=setTimeout((function(){C(e)}),100));clearTimeout(b),y=M;for(var T=t.coordArrows,N=0;N=0;j--){var A=B[j];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}},this.destroy(),this.activeState="translational",this.MapEvent=new te.a(this.sdk),t=this,i=this.initParam(),n=i.lng,o=i.lat,s=i.alt,a=this.viwer,this.origin=Cesium.Cartesian3.fromDegrees(n,o,s),r=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n-.001,o,s),new Cesium.Cartesian3),new Cesium.Cartesian3),l=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o-.001,s),new Cesium.Cartesian3),new Cesium.Cartesian3),c=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o,s-1),new Cesium.Cartesian3),new Cesium.Cartesian3),this.rayX=new Cesium.Ray(this.origin,r),this.rayY=new Cesium.Ray(this.origin,l),this.rayZ=new Cesium.Ray(this.origin,c),this.arrow.positionX=Cesium.Ray.getPoint(this.rayX,0),this.arrow.positionY=Cesium.Ray.getPoint(this.rayY,0),this.arrow.positionZ=Cesium.Ray.getPoint(this.rayZ,0),u=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(n,o,s)),h=a.camera.position,p=Cesium.Cartesian3.distance(h,this.origin),d=p/15,Cesium.Matrix4.multiplyByScale(u,new Cesium.Cartesian3(d,d,d),u),m=this.createAxisArrow("model_edit_xAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(1,0,0)],u,Cesium.Color.RED),f=this.createAxisArrow("model_edit_yAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,1,0)],u,Cesium.Color.LIME),v=this.createAxisArrow("model_edit_zAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,0,1)],u,Cesium.Color.BLUE),this.viwer.scene.primitives.add(m),this.viwer.scene.primitives.add(f),this.viwer.scene.primitives.add(v),this.againArrow(),this.viwer.camera.percentageChanged=.001,this.viwer.camera.changed.addEventListener(this.againArrow,{_that:this}),g={x:0,y:0},y=0,this.MapEvent.mouse_move((function(e,t){C(e)})),this.MapEvent.mouse_left_down((function(e,i){var n=a.scene.cartesianToCanvasCoordinates(w.origin);g.x=e.position.x-Math.floor(n.x),g.y=e.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(e.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(t.activeAxis)t.activeAxis=null,t.activeModelParam=null,t.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,t.activeAxis=r.primitive,t.activeModelParam=t.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(e){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(a._params.rx=1),a._params.rx<0&&(a._params.rx=360),Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(a._params.rx)),a._params.ry-=i,a._params.ry>360&&(a._params.ry=1),a._params.ry<0&&(a._params.ry=360),a._params.rz-=n,a._params.rz>360&&(a._params.rz=1),a._params.rz<0&&(a._params.rz=360),a.updateModel(a._params.tx,a._params.ty,a._params.tz,a._params.rx,a._params.ry,a._params.rz)}else{var c=Date.now();if(c-P<100)return clearTimeout(O),void(O=setTimeout((function(){D(e)}),100));clearTimeout(O),P=c;for(var u=s.coordCircles,h=0;h3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=e=parseFloat(parseFloat(e).toFixed(8)),this._params.ty=t=parseFloat(parseFloat(t).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.options.position.lng=e,this.options.position.lat=t,this.options.position.alt=i,this.options.rotate={x:n,y:o,z:s},this.controllerCallBack}},{key:"controllerCallBack",get:function(){this._controllerCallBack&&this._controllerCallBack(this.options,!this.activeAxis)},set:function(e){this._controllerCallBack=e}},{key:"createAxisArrow",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisCircular",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.EllipseGeometry({center:{x:1,y:1,z:1},semiMinorAxis:5e5,semiMajorAxis:1e6,rotation:Cesium.Math.PI_OVER_FOUR,vertexFormat:Cesium.VertexFormat.POSITION_AND_ST})}),releaseGeometryInstances:!1,appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:Cesium.Color.YELLOW}}})}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(e,t,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=e,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=yi(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options.noseToTail=n.noseToTail||!1,i.options.smooth=n.smooth||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.wordsName=n.wordsName||0,i.options.extendWidth=n.extendWidth||0===n.extendWidth?n.extendWidth:10,i.options.extendColor=n.extendColor||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.options.richTextContent=n.richTextContent||"",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(e);for(var n=function(n){if(i[n].key===Number(e))return t._elms.lineType&&t._elms.lineType.forEach((function(e){e.value=i[n].value,2this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t700?c*=m/u/(t.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Object(J.b)().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(a=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" polyline",(i=document.createElement("div")).innerHTML=li(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,new Je("polyline-object-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){c.color=e},clear:function(){c.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelColor=e},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("extendColor")[0],size:"mini",alpha:!0,defaultColor:this.extendColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.extendColor=e},clear:function(){c.extendColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelLineColor=e},clear:function(){c.labelLineColor="rgba(255,255,255,1)"}}),(void 0).labelBackgroundColorStartPicker=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorStart=e},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorEnd=e},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),pi.on(this,l),this._elms=pi.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.extendColor=[s],this._elms.labelLineColor=[a],this._elms.labelBackgroundColorStart=[(void 0).labelBackgroundColorStartPicker],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content;var e=c.attributeSelect,t=c._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var n=Object(je.a)(t,".attribute-select");n.legp_search(e);for(var o=c._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],s=0;s实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],v=Object(je.a)(c._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(v){v.legp_search(f);var g=document.createElement("i");g.className="icon icon-active",c._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(g);var y=c._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];c._elms.lineType=[y];for(var b=0;b'.concat(e+1,'\n
            \n
            \n
            \n ');var i=t.getElementsByClassName("lng")[0],n=document.createElement("span");n.innerHTML=c.options.positions[e].lng.toFixed(8),i.appendChild(n);var o=document.createElement("input");o.className="input",o.type="number",o.title="",o.min=-180,o.max=180,o.value=c.options.positions[e].lng.toFixed(8);var s=t.getElementsByClassName("lat")[0],a=document.createElement("span");a.innerHTML=c.options.positions[e].lat.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-90,r.max=90,r.value=c.options.positions[e].lat.toFixed(8);var l=t.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=c.options.positions[e].alt.toFixed(2),l.appendChild(u);var h=document.createElement("input");h.className="input",h.type="number",h.title="",h.min=-9999999,h.max=999999999,h.value=c.options.positions[e].alt.toFixed(2),i.addEventListener("dblclick",(function(){i.innerHTML="",o.value=Number(c.options.positions[e].lng.toFixed(8)),i.appendChild(o),o.focus(),c.positionEditing=!1,c.closeNodeEdit()})),o.addEventListener("blur",(function(){o.value=Number(c.options.positions[e].lng.toFixed(8)),i.innerHTML="",i.appendChild(n)})),o.addEventListener("input",(function(){c.options.positions[e].lng=Number(Number(o.value).toFixed(8)),n.innerHTML=c.options.positions[e].lng.toFixed(8);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(c.options.positions[e].lat.toFixed(8)),s.appendChild(r),r.focus(),c.positionEditing=!1,c.closeNodeEdit()})),r.addEventListener("blur",(function(){r.value=Number(c.options.positions[e].lat.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){c.options.positions[e].lat=Number(Number(r.value).toFixed(8)),a.innerHTML=c.options.positions[e].lat.toFixed(8);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),l.addEventListener("dblclick",(function(){2!=c.heightMode&&(l.innerHTML="",h.value=Number(c.options.positions[e].alt.toFixed(2)),l.appendChild(h),h.focus(),c.positionEditing=!1,c.closeNodeEdit())})),h.addEventListener("blur",(function(){h.value=Number(c.options.positions[e].alt.toFixed(2)),l.innerHTML="",l.appendChild(u)})),h.addEventListener("input",(function(){c.options.positions[e].alt=Number(Number(h.value).toFixed(2)),u.innerHTML=c.options.positions[e].alt.toFixed(2);var t=c.renewPositions(c.options.positions);c.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),c.label.position=[c.options.positions[0].lng,c.options.positions[0].lat,t[2]]})),c._elms.lng.push(n),c._elms.lngInput.push(o),c._elms.lat.push(a),c._elms.latInput.push(r),c._elms.alt.push(u),c._elms.altInput.push(h),P.appendChild(t)},D=0;D0&&void 0!==g[0]?g[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=gi({},this.options.position):this.options.positions?r=gi({},this.options.positions[0]):this.options.center?r=gi({},this.options.center):this.options.start?r=gi({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=43;break;case 25:l=[],e.t0=this.options.heightMode,e.next="0"===e.t0||0===e.t0?29:"1"===e.t0||1===e.t0?31:"2"===e.t0||2===e.t0?36:41;break;case 29:for(u=0;u=500?(t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.positionEditing=!1):leftEvent(s,i)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return r.length>0?r:i}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var l=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(l),this.renewPolygon(l),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,l[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:l[2]};break;case 2:case"2":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:l[2]}}}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"lengthChangeCallBack",get:function(){return this._lengthChangeCallBack},set:function(e){this._lengthChangeCallBack=e}},{key:"setDIV",value:function(){var e,t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=new Cesium.EntityCollection;if(e.forEach((function(e){(e instanceof ii||e instanceof ri||e instanceof At||e instanceof bi)&&t.add(e.entity)})),t.values.length){var i=Cesium.exportKml({entities:t});i.then((function(e){Ci(e.kml,(new Date).getTime()+".kml")}))}else console.error("允许导出为kml的对象为空")},ki={yingguangse:new Map,gonganlan:new Map,hong:new Map};ki.yingguangse.set("--color-sdk-base","#00ffff"),ki.yingguangse.set("--color-sdk-auxiliary","#004242"),ki.yingguangse.set("--color-sdk-auxiliary-public","#ffffff"),ki.yingguangse.set("--color-sdk-warning-0","#1BF8C3"),ki.yingguangse.set("--color-sdk-warning-1","#F16C55"),ki.yingguangse.set("--color-sdk-warning-2","#FFA145"),ki.yingguangse.set("--color-sdk-warning-3","#FFDF53"),ki.yingguangse.set("--color-sdk-text-head","#FFFFFF"),ki.yingguangse.set("--color-sdk-text-head-1","#E6F7FF"),ki.yingguangse.set("--color-sdk-text-head-2","#ADF1FF"),ki.yingguangse.set("--color-sdk-gradual","#00ffff 6.25%, #00ffff 100%"),ki.yingguangse.set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%");var _i,xi,Si,Ei,Pi,Oi,Di,Mi,Ti=0,Ni=0,Bi=function(){var e=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,C,w,k=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(w=function(e){var i=u.getElementsByClassName("tr");i.length>0&&(i[i.length-1].querySelector("input[name='time']").disabled=void 0);var n=u.getElementsByClassName("tr active")[0];n&&(n.className="tr");var c=document.createElement("div");c.className="tr active",c.innerHTML='\n
            视点'.concat(d+1,'
            \n
            \n \n
            \n
            \n \n \n \n
            \n '),c.addEventListener("click",(function(e){if(e.target.parentNode===c){var t=u.getElementsByClassName("tr active")[0];t&&(t.className="tr"),c.className="tr active";for(var n=0;nt+1?(l--,i[l-1].className="tr active"):l==t+1&&(i.length==t&&(l-=1),0!=i.length&&(i[l-1].className="tr active")),i.length>0){var n=i[i.length-1].querySelector("input[name='time']");n.disabled="disabled",n.value=0}break}o({name:s,points:m,repeat:Ti+"",defaultTime:v.value,totalTime:g.value})})),f.addEventListener("input",(function(t){y.checked=!1,e.duration=Number(f.value),e.duration<0&&(e.duration=0)})),f.addEventListener("blur",(function(){f.value=Number(Number(f.value).toFixed(2)),f.value<0&&(f.value=0)})),u.insertBefore(c,i[l]),l++,i[i.length-1].querySelector("input[name='time']").disabled="disabled"},i=k.length>1&&void 0!==k[1]?k[1]:{},n=k.length>2&&void 0!==k[2]?k[2]:{},o=k.length>3?k[3]:void 0,s=i.name||"漫游路径",i.points||(i.points=[]),i.repeat&&(Ti=Number(i.repeat)),i.defaultTime&&(document.getElementsByClassName("fly-roam")[0].querySelector("input[name='defaultTime']").value=i.defaultTime),i.totalTime&&(document.getElementsByClassName("fly-roam")[0].querySelector("input[name='totalTime']").value=i.totalTime),a=t.viewer,r=new b.a(t),l=0,c=document.getElementsByClassName("fly-roam")[0],c.getElementsByTagName("*"),u=c.getElementsByClassName("table-body")[0],h=c.getElementsByClassName("table-empty")[0],p={set:function(e,t,i){return e[t]=i,e.length>0?h.style.display="none":h.style.display="flex",!0}},d=0,m=new Proxy([],p),d=0;d0&&Ai(t,m,0)})),c.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var e=r.cartesian3Towgs84(a.camera.position,a),t=Number(c.querySelector("input[name='defaultTime']").value),i={duration:m.length===l?0:t,position:e,orientation:{heading:a.camera.heading,pitch:a.camera.pitch,roll:a.camera.roll}};m.length===l&&0!==l&&(m[m.length-1].duration=t,u.getElementsByClassName("tr")[m.length-1].querySelector("input[name='time']").value=t);m.splice(l,0,i),w(i),d++,o({name:s,points:m,repeat:Ti+"",defaultTime:v.value,totalTime:g.value})})),g=c.querySelector("input[name='totalTime']"),y=c.getElementsByClassName("isTotalTime")[0],C=c.querySelector("input[name='repeat']"),y.addEventListener("click",(function(){var e=u.getElementsByClassName("tr");if(e.length>0){for(var t=Number((Number(g.value)/(e.length-1)).toFixed(2)),i=0;i0){for(var t=Number((Number(g.value)/(e.length-1)).toFixed(2)),i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;_i&&_i.destroy(),(_i=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(t){Li(e)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var o,s=e.viewer;s.camera.cancelFlight(),Object(X.f)(e),Object(X.g)(e),s.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t[i].position.lng,t[i].position.lat,t[i].position.alt),orientation:t[i].orientation,duration:n?t[i-1].duration:.5,maximumHeight:t[i].position.alt,complete:(o=_()(S.a.mark((function n(){return S.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:++i<=t.length-1?ji(e,t,i,!0):Ni&&t.length>1?(Ni--,ji(e,t,0)):_i&&_i.destroy();case 3:case"end":return n.stop()}}),n)}))),function(){return o.apply(this,arguments)}),easingFunction:n?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})},Ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;Ni=Ti,ji(e,t,i,n)},Li=function(e){e&&e.viewer&&e.viewer.camera.cancelFlight(),_i&&_i.destroy()},Ii=null,Ri=null,zi=null,Fi=null,Hi="uniform sampler2D colorTexture;//输入的场景渲染照片\n varying vec2 v_textureCoordinates;\n uniform float tiltAngle;\n uniform float rainSize;\n uniform float rainWidth;\n uniform float rainSpeed;\n\n float hash(float x){\n return fract(sin(x*133.3)*13.13);\n }\n void main(void){\n float time = czm_frameNumber / rainSpeed;\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 c=vec3(.6,.7,.8);\n float a= tiltAngle;\n float si=sin(a),co=cos(a);\n uv*=mat2(co,-si,si,co);\n uv*=length(uv+vec2(0,4.9))*rainSize+1.;\n float v=1.-sin(hash(floor(uv.x*rainWidth))*2.);\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*20.;\n c*=v*b; //屏幕上雨的颜色\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5); //将雨和三维场景融合\n }",Vi="uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSize;\n uniform float snowSpeed;\n \n float snow(vec2 uv,float scale)\n {\n float time = czm_frameNumber / snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c = 0.0;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5);\n }\n ",Gi="\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n uniform float visibility;\n uniform vec4 fogColor;\n varying vec2 v_textureCoordinates;\n void main(void)\n {\n vec4 origcolor = texture2D(colorTexture, v_textureCoordinates);\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates);\n float f = visibility * (depthcolor.r - 0.3) / 0.2;\n if (f < 0.0) f = 0.0;\n else if (f > 1.0) f = 1.0;\n gl_FragColor = mix(origcolor, fogColor, f);\n }\n ";function Wi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var Ui=i(31);var Yi,Ji,qi=null,Xi=null,Zi=null,Ki=19,Qi=!0,$i=10,en="#ffd000",tn=!0,nn=2.5,on="#43cf7c",sn=!0,an=1.8,rn="#ff0000",ln=!1,cn=1,un="#64b6d9",hn=!1,pn=1,dn="#d084d1",mn={};function fn(){if(Ji){var e=Ji.viewer.camera.positionCartographic;Cesium.Math.toDegrees(e.height)<1e6?Ji.viewer.scene.globe.material||!0!==Qi||gn(Ji):yn(Ji)}}function vn(){return(vn=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=function(e){var t=e.target.value;return(e.target.value||"undefined"!==e.target.dataset.null&&""!==e.target.dataset.null&&!Boolean(e.target.dataset.null))&&(t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t1e6||(Xi&&Xi.destroy(),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]||e.viewer.container.appendChild(Zi),(Xi=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas)).setInputAction((function(t){var i=e.viewer.scene.pickPosition(t.endPosition);if(i){var n=0,o=0;if(e.viewer&&e.viewer._element){var s=e.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];n=s.getBoundingClientRect().top+window.scrollY,o=s.getBoundingClientRect().left+window.scrollX}Zi.style.left=t.endPosition.x-50+o+"px",Zi.style.top=t.endPosition.y-40+n+"px",Zi.style.display="block";var a=Yi.cartesian3Towgs84(i,e.viewer),r=Math.floor(a.alt/qi.uniforms.spacing)*qi.uniforms.spacing,l=a.alt-r,c=qi.uniforms.spacing/(qi.uniforms.secondaryLinesCount+1),u=Math.floor(l/c)*c+r;a.alt<0&&(a.alt=0),a.alt-u>c/2&&(u+=c),qi.uniforms.mouseHeight=a.alt,qi.uniforms.mousePosition=i,Zi.innerHTML="".concat(u.toFixed(0))}else Zi.style.display="none"}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.viewer.scene.globe.material=qi)}function yn(e){Xi&&(Xi.destroy(),Xi=null),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]&&(Zi.style.display="none",e.viewer.container.removeChild(Zi)),e.viewer.scene.globe.material=null}function bn(){Cesium.Material._materialCache._materials.ElevationContour.fabric.source="\nuniform vec4 activeColor; // 选中颜色\nuniform float spacing; // 等高距\n\n// 计曲线\nuniform bool indexContourShow;\nuniform float indexContourWidth;\nuniform vec4 indexContourColor;\n// 首曲线\nuniform bool intermediateContourShow;\nuniform float intermediateContourWidth;\nuniform vec4 intermediateContourColor;\n// 间曲线\nuniform bool halfIntervalContourShow;\nuniform float halfIntervalContourWidth;\nuniform vec4 halfIntervalContourColor;\n// 助曲线\nuniform bool supplementaryContourShow;\nuniform float supplementaryContourWidth;\nuniform vec4 supplementaryContourColor;\n\nuniform float mouseHeight;\n\nuniform float secondaryLinesCount; // 0=无次线, 1=1条次线, 2=2条次线...\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // 主等高线计算\n float distanceToMainContour = mod(materialInput.height, spacing);\n\n // 抗锯齿计算\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n float dxc = abs(dFdx(materialInput.height));\n float dyc = abs(dFdy(materialInput.height));\n float dFMain = max(dxc, dyc) * czm_pixelRatio * indexContourWidth;\n#else\n float dFMain = czm_pixelRatio * indexContourWidth;\n#endif\n\n bool isMainContour = distanceToMainContour < dFMain;\n bool isSecondaryContour = false;\n float dFSecondary = 0.0;\n float secondarySpacing = 0.0;\n bool isHalfInterval = false;\n bool isIntermediate= false;\n\n // 计算当前高度所属的等高线高度\n float mainContourHeight = floor(materialInput.height / spacing) * spacing;\n float secondaryContourHeight = floor(materialInput.height / spacing * (secondaryLinesCount + 1.0)) * spacing / (secondaryLinesCount + 1.0);\n\n // 计算次线在两条主等高线之间的相对位置\n float relativeHeight = materialInput.height - mainContourHeight;\n float normalizedPosition = relativeHeight / spacing;\n\n // 计算次线索引(从主等高线开始计数)\n float lineIndex = floor(normalizedPosition * (secondaryLinesCount + 1.0));\n\n // 只有当存在次线时才计算次线\n if(secondaryLinesCount > 0.0) {\n float secondaryLinesWidth = supplementaryContourWidth;\n secondarySpacing = spacing / (secondaryLinesCount + 1.0);\n float distanceToSecondaryContour = mod(materialInput.height, secondarySpacing);\n\n // 确保次线不会与主线重叠\n float minDistanceToMain = min(distanceToMainContour, spacing - distanceToMainContour);\n bool notCloseToMain = minDistanceToMain > dFMain * 2.0; // 2倍线宽缓冲\n\n\n if (lineIndex > 0.0 && lineIndex < secondaryLinesCount) {\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isHalfInterval = abs(mod(lineIndex, 2.0)) < 0.01;\n if(isHalfInterval) {\n secondaryLinesWidth = halfIntervalContourWidth;\n }\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isIntermediate = abs(mod(lineIndex, 4.0)) < 0.01;\n if(isIntermediate) {\n secondaryLinesWidth = intermediateContourWidth;\n }\n }\n\n\n\n\n\n\n\n\n\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n dFSecondary = max(dxc, dyc) * czm_pixelRatio * secondaryLinesWidth;\n#else\n dFSecondary = czm_pixelRatio * secondaryLinesWidth;\n#endif\n\n isSecondaryContour = (distanceToSecondaryContour < dFSecondary) && notCloseToMain;\n }\n\n // 高亮判断\n bool shouldHighlight = false;\n if(isMainContour && abs(mainContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n } else if(isSecondaryContour && abs(secondaryContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n }\n\n // 颜色输出\n vec4 outColor;\n if(shouldHighlight) {\n outColor = czm_gammaCorrect(vec4(activeColor.rgb, activeColor.a));\n } else if(isMainContour) {\n float a = indexContourColor.a;\n if(!indexContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(indexContourColor.rgb, a));\n } else if(isSecondaryContour) {\n float a = supplementaryContourColor.a;\n if(!supplementaryContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(supplementaryContourColor.rgb, a));\n if(isHalfInterval) {\n float a = halfIntervalContourColor.a;\n if(!halfIntervalContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(halfIntervalContourColor.rgb, a));\n }\n if(isIntermediate) {\n float a = intermediateContourColor.a;\n if(!intermediateContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(intermediateContourColor.rgb, a));\n }\n } else {\n outColor = vec4(0.0);\n }\n\n if(materialInput.height<0.0) {\n outColor = vec4(0.0);\n }\n\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n return material;\n}\n",qi=new Cesium.Material({fabric:{type:"ElevationContour",uniforms:{spacing:50,activeColor:Cesium.Color.fromCssColorString(en),mouseHeight:-1e5,mousePosition:new Cesium.Cartesian3(0,0,0),secondaryLinesCount:Ki,cameraHeight:0,indexContourShow:tn,indexContourWidth:nn,indexContourColor:Cesium.Color.fromCssColorString(on),intermediateContourShow:sn,intermediateContourWidth:an,intermediateContourColor:Cesium.Color.fromCssColorString(rn),halfIntervalContourShow:ln,halfIntervalContourWidth:cn,halfIntervalContourColor:Cesium.Color.fromCssColorString(un),supplementaryContourShow:hn,supplementaryContourWidth:pn,supplementaryContourColor:Cesium.Color.fromCssColorString(dn)}}})}function Cn(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function wn(e,t,i){return e.set(_n(e,t),i),i}function kn(e,t){return e.get(_n(e,t))}function _n(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(Zi=document.createElement("div")).className="YJ-customize-active-height-elm",Zi.style.position="absolute",Zi.style.left="10px",Zi.style.top="10px",Zi.style.width="100px",Zi.style.textAlign="center",Zi.style.pointerEvents="none",Zi.style.color="#ff0000",Zi.style.display="none";var xn=new WeakMap,Sn=new WeakMap,En=function(){return h()((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;c()(this,e),Cn(this,xn,null),Cn(this,Sn,{bgimg:null,img1:null,img2:null,img3:null,img4:null}),this.sdk=t,this.options=i,this.data={},this._webSocketCallback=n,this._tools=new b.a(this.sdk),this.requestResource()}),[{key:"requestResource",value:function(){var e=this;this.options.host=this.options.host||Object(n.a)();var t;t=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+t,[],{maxReconnectAttempts:8}),this.reconnecting.onopen=function(t){e.reconnecting.onmessage=function(){var t=_()(S.a.mark((function t(i){var n;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.data=JSON.parse(i.data),!e.data||!e.data.rmc){t.next=7;break}return t.next=4,e._tools.getClampToHeight(e.data.rmc);case 4:n=t.sent,e.position=new Cesium.Cartesian3.fromDegrees(e.data.rmc.lng,e.data.rmc.lat,n),e.create();case 7:e._webSocketCallback&&e._webSocketCallback(e.data);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}},{key:"create",value:function(){var e=this;if(this.getcanvas(),this.data&&this.data.rmc&&!this.entity){this.entity=new Cesium.CustomDataSource,this.sdk.viewer.dataSources.add(this.entity);var t=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:{image:this._tools.getSourceRootPath()+"/img/locate2.png",scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:1e8}),!1),width:31,height:36,pixelOffset:new Cesium.Cartesian2(0,-15)}}),i=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:{image:new Cesium.CallbackProperty((function(){return e.lableCanvas})),scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:1e8}),!1),width:220,height:140,pixelOffset:new Cesium.Cartesian2(0,-110)}});this.entity.entities.add(t),this.entity.entities.add(i)}}},{key:"loaded",value:function(e){var t;Object.defineProperty(this,"data",{get:function(){return t},set:function(i){t=i,e&&(e(),e=void 0)}})}},{key:"getcanvas",value:function(){var e=this,t=[{images:this._tools.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(this.data.rmc.lng.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(this.data.rmc.lat.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/h.png",text:"海拔:"+parseFloat(this.data.rmc.alt.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/satellite.png",text:"卫星:"+this.data.satellites||!1}];if(kn(xn,this)){var i=kn(xn,this).getContext("2d");i.clearRect(0,0,kn(xn,this).width,kn(xn,this).height),i.drawImage(kn(Sn,this).bgimg,0,0,kn(xn,this).width,kn(xn,this).height);var n=0;t.forEach((function(o,s){i.drawImage(kn(Sn,e)["img"+(s+1)],12,12+26*s),i.fillStyle="#fff",i.font="16px Arial",i.fillText(o.text,44,28+26*s),++n===t.length&&(e.lableCanvas=kn(xn,e).toDataURL())}))}else{wn(xn,this,document.createElement("canvas"));var o=kn(xn,this).getContext("2d");kn(xn,this).width=220,kn(xn,this).height=140;var s=new Image;kn(Sn,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,kn(xn,e).width,kn(xn,e).height),t.forEach((function(i,n){var s=new Image;kn(Sn,e)["img"+(n+1)]=s,s.src=i.images,s.onload=function(){o.drawImage(s,12,12+26*n),o.fillStyle="#fff",o.font="16px Arial",o.fillText(i.text,44,28+26*n),++a===t.length&&(e.lableCanvas=kn(xn,e).toDataURL())}}))}}}},{key:"flyTo",value:(e=_()(S.a.mark((function e(){var t,i,n=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},!this.data||!this.data.rmc){e.next=9;break}return e.next=4,this._tools.getClampToHeight(this.data.rmc);case 4:i=e.sent,Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),this.sdk.viewer.camera.flyTo({orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:Cesium.Cartesian3.fromDegrees(this.data.rmc.lng,this.data.rmc.lat,i+(t.height||500))});case 9:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"remove",value:function(){wn(xn,this,null),wn(Sn,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var e}();var Pn=i(17),On=i.n(Pn),Dn=i(21);function Mn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Tn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Nn(this,t,[e,n])).color=n.color||"rgba(255,0,0,0.5)",i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(e,i){if("2D"!==l){if(l="3D",r.positions=c.concat(Tn({},i)),r.tip.setPosition(i,e.position.x,e.position.y),!r.polygonHasCreated){var n=t.create_polygon(r);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(e(null,u),r.end())})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.positions=c.concat(Tn({},t)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=c.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",r.positions=c.concat(Tn({},i)),r.tip.setPosition(i,e.position.x+r.viewer.canvas.width,e.position.y),!r.polygonHasCreated){var n=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i,r._sdk2D.viewer))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(e(null,u),r.end())})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.positions=c.concat(Tn({},t)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=c.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.polygonHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)})),material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions.concat(e.positions[0])})),width:3,material:Cesium.Color.fromCssColorString(e.color).withAlpha(1),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a),jn=function(){return h()((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,e),this.sdk=t,this.viewer=t.viewer,this.height=i.height||70,this.maxHeigh=-1e6,this.precision=i.precision||125,this.Dialog=n,this.result={allArea:"",cutArea:"",cutVolume:"",fillArea:"",fillVolume:"",noArea:""},this.entities=[],this.tools=new b.a(this.sdk),this.Draw=new Bn(this.sdk),YJ.Analysis.AnalysesResults.push(this)}),[{key:"create",value:function(){var e=this;this.clean(),this.Draw.start((function(t,i){if(!i||i.length<3){e.tools.message({text:"最少需要三个坐标!",type:"warning"})}else{for(var n=[],o=0;othis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,0),height:o}}},{key:"heights",get:function(){return this.height},set:function(e){this.height=e}},{key:"precisions",get:function(){return this.precision},set:function(e){this.precision=e}},{key:"allArea",get:function(){return Number(this.result.allArea.toFixed(4))},set:function(e){this.result.allArea=e}},{key:"fillArea",get:function(){return Number(this.result.fillArea.toFixed(4))},set:function(e){this.result.fillArea=e}},{key:"fillVolume",get:function(){return Number(this.result.fillVolume.toFixed(4))},set:function(e){this.result.fillVolume=e}},{key:"cutArea",get:function(){return Number(this.result.cutArea.toFixed(4))},set:function(e){this.result.cutArea=e}},{key:"cutVolume",get:function(){return Number(this.result.cutVolume.toFixed(4))},set:function(e){this.result.cutVolume=e}},{key:"noArea",get:function(){return Number(this.result.noArea.toFixed(4))},set:function(e){this.result.noArea=e}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"clean",value:function(){this.Draw&&this.Draw.end();for(var e=0;e\n
            \n
            \n
            \n 绘制分析区域\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 基准高度\n
            \n \n m\n \n
            \n
            \n
            \n 精度\n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 总分析面积:\n 0\n \n
            \n
            \n 无须填挖面积:\n 0\n \n
            \n
            \n
            \n
            \n 填方面积:\n 0\n \n
            \n
            \n 挖方面积:\n 0\n \n
            \n
            \n
            \n
            \n 填方体积:\n 0\n \n
            \n
            \n 挖方体积:\n 0\n \n
            \n
            \n
            \n \n ',t._DialogObject.contentAppChild(i),t._DialogObject._element.body.className=t._DialogObject._element.body.className+" cut-fill",(n=i.querySelector("input[name='height']")).value=t.height,n.addEventListener("blur",(function(e){var i=e.target.value;"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=In(this,t,[e,n])).sdk=e,i.options={},i.options.name=n.name,i.options.risingSpeed=1,i.options.minWaterLevel=0,i.options.maxWaterLevel=0,i.options.waterVolume=0,i.currentWaterLaver,i.color="#00d9ff66",i.Dialog=o,i.Draw=new Bn(i.sdk),i.positions,i.status=!0,i.area=0,i._elms={},i.tools=new b.a(i.sdk),YJ.Analysis.AnalysesResults.push(i),i}return Me()(t,e),h()(t,[{key:"draw",value:function(){t.create(this)}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"waterLevels",get:function(){return this.waterLevel},set:function(e){this.waterLevel=e}},{key:"waterVolume",get:function(){return this.options.waterVolume},set:function(e){this.options.waterVolume=e}},{key:"minWaterLevel",get:function(){return this.options.minWaterLevel},set:function(e){this.options.minWaterLevel=e,this.currentWaterLaver=this.options.minWaterLevel}},{key:"maxWaterLevel",get:function(){return this.options.maxWaterLevel},set:function(e){this.options.maxWaterLevel=e}},{key:"risingSpeed",get:function(){return this.options.risingSpeed},set:function(e){this.options.risingSpeed=e}},{key:"areas",get:function(){return this.area},set:function(e){this.area=e}},{key:"move",value:function(){var e=this;if(!this.TweenAnimate){var t=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},t).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.currentWaterLaver=i.waterLevel;case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start()}}},{key:"restart",value:function(){var e=this;this.currentWaterLaver=this.options.minWaterLevel;this.TweenAnimate&&(this.TweenAnimate._isPaused,TWEEN.remove(this.TweenAnimate));var t=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},t).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var t=_()(S.a.mark((function t(i,n){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.currentWaterLaver=i.waterLevel;case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).start(),this.pause()}},{key:"start",value:function(){this.TweenAnimate&&this.TweenAnimate.resume()}},{key:"pause",value:function(){this.TweenAnimate&&this.TweenAnimate.pause()}},{key:"calculateVolumeHeight",value:function(){that.options.maxWaterLevel}},{key:"flyTo",value:function(){if(this.positions&&0!==this.positions.length){Object(X.f)(this.sdk),Object(X.g)(this.sdk);for(var e=[],t=0;ti[o].alt&&(e.options.minWaterLevel=i[o].alt),n.push(i[o].lng,i[o].lat);e.options.maxWaterLevel=i[0].alt;for(var s=0;s\n
            \n
            \n
            \n 水量\n
            \n \n \n \n
            \n
            \n
            \n 最小水位\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 水面面积\n
            \n \n \n \n
            \n
            \n
            \n 最大水位\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n 上升速度\n
            \n
            \n
            \n \n
            \n \n m/s\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            序号
            \n
            经度
            \n
            纬度
            \n
            高程
            \n
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).className="el-button",o.innerHTML="暂停",o.style.width="80px",n.getElementsByClassName("draw")[0].addEventListener("click",(function(){t.create(i)})),n.getElementsByClassName("analog")[0].addEventListener("click",(function(){i.move()})),n.getElementsByClassName("flyto")[0].addEventListener("click",(function(){i.flyTo()})),n.getElementsByClassName("reset")[0].addEventListener("click",(function(){i.restart()})),s=n.getElementsByClassName("pause")[0],a=n.getElementsByClassName("start")[0],s.addEventListener("click",(function(){i.pause(),s.style.display="none",a.style.display="flex"})),a.addEventListener("click",(function(){i.start(),a.style.display="none",s.style.display="flex"})),(r=n.querySelectorAll("input[name='risingSpeed']"))[0].value=i.options.risingSpeed,r[1].value=i.options.risingSpeed,r[0].addEventListener("input",(function(e){i.options.risingSpeed=Number(e.target.value)})),r[1].addEventListener("input",(function(e){if("."!=e.data){var t=Number(e.target.value),n=Number(r[0].max),o=Number(r[0].min);i.options.risingSpeed=t>n?n:t999999999&&(t=999999999),t<0&&(t=0),i.options.minWaterLevel=Math.floor(1e4*t)/1e4,i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}})),Object.defineProperty(i.options,"minWaterLevel",{get:function(){return Number(l.value)},set:function(e){l.value=Math.floor(1e4*Number(e))/1e4}}),(c=n.querySelector("input[name='maxWaterLevel']")).value=i.options.maxWaterLevel,c.addEventListener("input",(function(e){if("."!=e.data){var t=Number(e.target.value);t>999999999&&(t=999999999),t<0&&(t=0),t99999999999999&&(t=99999999999999),t<0&&(t=0),i.options.waterVolume=Math.floor(1e4*t)/1e4,i.area&&(i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel)}})),Object.defineProperty(i.options,"waterVolume",{get:function(){return Number(u.value)},set:function(e){u.value=e}}),(h=n.getElementsByClassName("area")[0]).value=i.area,Object.defineProperty(i,"area",{get:function(){return Number(h.value)},set:function(e){h.value=e,i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}}),p=n.getElementsByClassName("table-body")[0],d=n.getElementsByClassName("table-empty")[0],Object.defineProperty(i,"positions",{get:function(){return i._positions},set:function(e){if(e&&e.length>0){d.style.display="none";for(var t="",i=0;i\n
            '.concat(i+1,'
            \n
            ').concat(Number(e[i].lng.toFixed(10)),'
            \n
            ').concat(Number(e[i].lat.toFixed(10)),'
            \n
            ').concat(Number(e[i].alt.toFixed(4)),"
            \n ");p.innerHTML=t}else p.innerHTML="",d.style.display="flex"}});case 51:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"EventBinding",value:function(e,t){for(var i=function(){var i=[],o=!1,s=[];if(!t[n]||!t[n].attributes)return 1;var a,r=An(t[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==t[n].type?(i.push((function(t){e[r.value]=t.target.checked})),t[n].checked=e[r.value]):(i.push((function(t){var i=t.target.value;"number"==t.target.type&&(i=Number(i)),e[r.value]=i})),"IMG"==t[n].nodeName?t[n].src=e[r.value]:t[n].value=e[r.value]),e._elms[r.value]?e._elms[r.value].push(t[n]):e._elms[r.value]=[t[n]],s.push(r.name);break;case"@click":t[n].addEventListener("click",(function(t){"function"==typeof e[r.value]&&e[r.value](t)})),s.push(r.name);break;case"@change":o=!0,i.push((function(t){var i=t.target.value;"number"==t.target.type&&""!=i&&(i=Number(i),t.target.value=i),"function"==typeof e[r.value]&&e[r.value](t,i)}))}};for(r.s();!(a=r.n()).done;)l()}catch(e){r.e(e)}finally{r.f()}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Hn(this,t,[e,n])).viewer=e.viewer,i.options={},i.options.viewPosition=n.viewPosition,i.options.viewPositionEnd=n.viewPositionEnd,i.options.horizontalViewAngle=n.horizontalViewAngle||0===n.horizontalViewAngle?n.horizontalViewAngle:90,i.options.verticalViewAngle=n.verticalViewAngle||0===n.verticalViewAngle?n.verticalViewAngle:60,i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i._elms={},i.viewPointHeight=n.viewPointHeight,i.ids=[],i.Dialog=o,i.tools=new b.a(i.sdk),i._EventBinding=new Ye,i.html=null,YJ.Analysis.AnalysesResults.push(i),i}return Me()(t,e),h()(t,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"viewPosition",get:function(){return this.options.viewPosition},set:function(e){this.options.viewPosition=e,this.ids[0]&&(this.viewer.entities.getById(this.ids[0]).position=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),this.update()}},{key:"viewPositionEnd",get:function(){return this.options.viewPositionEnd},set:function(e){this.options.viewPositionEnd=e,this.ids[1]&&(this.viewer.entities.getById(this.ids[1]).position=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),this.update()}},{key:"horizontalViewAngle",get:function(){return this.options.horizontalViewAngle},set:function(e){if(this.options.horizontalViewAngle=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var t=this._DialogObject._element.content;t.querySelector("input[name='horizontalViewAngle']").value=e,t.getElementsByClassName("range-node-active")[0].getElementsByClassName("range-node-active-text")[0].innerHTML=e+"°",t.getElementsByClassName("range-process")[0].style.width=e/180*100+"%"}this.update()}},{key:"horizontalViewAngles",get:function(){return this.horizontalViewAngle},set:function(e){this.horizontalViewAngle=e}},{key:"visibleAreaColor",get:function(){return this.options.visibleAreaColor},set:function(e){this.options.visibleAreaColor=e,this.update()}},{key:"invisibleAreaColor",get:function(){return this.options.invisibleAreaColor},set:function(e){this.options.invisibleAreaColor=e,this.update()}},{key:"verticalViewAngle",get:function(){return this.options.verticalViewAngle},set:function(e){this.options.verticalViewAngle=e,this.update()}},{key:"viewDistance",get:function(){if(this.options.viewPosition){var e=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),t=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return Cesium.Cartesian3.distance(e,t)}}},{key:"viewHeading",get:function(){var e,t,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return e=o,t=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(e),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,t,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))}},{key:"viewPitch",get:function(){var e,t,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return e=o,t=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(e),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,t,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.asin(i.z))}},{key:"end",value:function(){var e=this;this.ids.forEach((function(t){var i=e.viewer.entities.getById(t);i&&(i.show=!1)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"draw",value:function(e){t.create(this,e)}},{key:"add",value:function(){this.options.viewPositionEnd&&(this.createLightCamera(),this.createShadowMap(),this.createPostStage(),this.drawSketch(),t.getcanvas(this))}},{key:"update",value:function(){this.clear(),this.add()}},{key:"clear",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,this.sketch&&(this.viewer.entities.removeById(this.sketch.id),this.sketch=null),this.frustumOutline&&(this.viewer.entities.removeById(this.frustumOutline.id),this.frustumOutline=null),this.postStage&&(this.viewer.scene.postProcessStages.remove(this.postStage),this.postStage=null)}},{key:"destroy",value:function(){var e=this;this.clear(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(t){e.viewer.entities.removeById(t)})),this.ids=[],this.viewBillboardPrimitive&&this.viewer.scene.primitives.remove(this.viewBillboardPrimitive),this.viewBillboardPrimitive=null,this.options.viewPosition=null,this.options.viewPositionEnd=null,YJ.Measure.SetMeasureStatus(!1),this._originalShadowMap&&(this.viewer.scene.shadowMap=this._originalShadowMap,this._originalShadowMap=null),this.viewer.shadows=this.viewer._shadows}},{key:"close",value:function(){var e=this;YJ.Measure.SetMeasureStatus(!1),this.end(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(t){e.viewer.entities.removeById(t)}))}},{key:"nodeEdit",value:function(){var e,t=this;YJ.Measure.GetMeasureStatus()?this.tools.message({text:"上一次测量未结束",type:"warning"}):(this.editevent&&this.editevent.destroy(),this.ids.forEach((function(e){t.viewer.entities.getById(e).show=!0})),YJ.Measure.SetMeasureStatus(!0),this.editevent=new te.a(this.sdk),this.editevent.mouse_left((function(i,n){var o=t.viewer.scene.pick(i.position);o&&o.id&&o.id.id&&-1!=t.ids.indexOf(o.id.id)&&(!e||e.id!=o.id.id)&&(e=o.id,t.viewer.entities.getById(t.ids[0]).position=new Cesium.Cartesian3.fromDegrees(t.viewPosition.lng,t.viewPosition.lat,t.viewPosition.alt),t.viewer.entities.getById(t.ids[1]).position=new Cesium.Cartesian3.fromDegrees(t.viewPositionEnd.lng,t.viewPositionEnd.lat,t.viewPositionEnd.alt),t.ControllerObject&&t.ControllerObject.destroy(),t.ControllerObject=new fi(t.sdk,{position:Fn({},t.cartesian3Towgs84(e.position._value,t.sdk.viewer))}),t.ControllerObject.controllerCallBack=function(i,n){i.position.alt<0&&(i.position.alt=0),e.position=new Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt),n&&(0==t.ids.indexOf(o.id.id)?t.viewPosition=i.position:t.viewPositionEnd=i.position,YJ.Measure.SetMeasureStatus(!0))},t.ControllerObject.editTranslational())})),this.editevent.mouse_right((function(i,n){YJ.Measure.SetMeasureStatus(!1),t.editevent&&t.editevent.destroy(),t.ControllerObject&&t.ControllerObject.destroy(),t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),e=null})),this.editevent.mouse_move((function(e,t){})),this.editevent.gesture_pinck_start((function(i,n){var o=new Date;t.editevent.gesture_pinck_end((function(){new Date-o>=500&&(YJ.Measure.SetMeasureStatus(!1),t.editevent&&t.editevent.destroy(),t.ControllerObject&&t.ControllerObject.destroy(),t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),e=null)}))})))}},{key:"createLightCamera",value:function(){if(this.options.viewPosition){this.lightCamera=new Cesium.Camera(this.viewer.scene),this.lightCamera.position=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),this.lightCamera.frustum.near=.001*this.viewDistance,this.lightCamera.frustum.far=this.viewDistance;var e=Cesium.Math.toRadians(this.horizontalViewAngle),t=Cesium.Math.toRadians(this.verticalViewAngle),i=this.viewDistance*Math.tan(e/2)*2/(this.viewDistance*Math.tan(t/2)*2);this.lightCamera.frustum.aspectRatio=i,this.lightCamera.frustum.fov=e>t?e:t,this.lightCamera.setView({destination:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:{heading:Cesium.Math.toRadians(this.viewHeading||0),pitch:Cesium.Math.toRadians(this.viewPitch||0),roll:0}})}}},{key:"createShadowMap",value:function(){this.shadowMap=new Cesium.ShadowMap({context:this.viewer.scene.context,lightCamera:this.lightCamera,enabled:!0,isPointLight:!0,pointLightRadius:this.viewDistance,cascadesEnabled:!1,size:2048,softShadows:!0,normalOffset:!1,fromLightSource:!1}),this._originalShadowMap||(this._originalShadowMap=this.viewer.scene.shadowMap),this.viewer.scene.shadowMap=this.shadowMap}},{key:"createPostStage",value:function(){var e=this;Number(Cesium.VERSION.split(".")[1])>=102&&We()("fs");var t=new Cesium.PostProcessStage({fragmentShader:"\n #define USE_CUBE_MAP_SHADOW true\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n varying vec2 v_textureCoordinates;\n uniform mat4 camera_projection_matrix;\n uniform mat4 camera_view_matrix;\n uniform samplerCube shadowMap_textureCube;\n uniform mat4 shadowMap_matrix;\n uniform vec4 shadowMap_lightPositionEC;\n uniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\n uniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\n uniform float helsing_viewDistance;\n uniform vec4 helsing_visibleAreaColor;\n uniform vec4 helsing_invisibleAreaColor;\n\n struct zx_shadowParameters\n {\n vec3 texCoords;\n float depthBias;\n float depth;\n float nDotL;\n vec2 texelStepSize;\n float normalShadingSmooth;\n float darkness;\n };\n\n float czm_shadowVisibility(samplerCube shadowMap, zx_shadowParameters shadowParameters)\n {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec3 uvw = shadowParameters.texCoords;\n depth -= depthBias;\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n }\n\n vec4 getPositionEC(){\n return czm_windowToEyeCoordinates(gl_FragCoord);\n }\n\n vec3 getNormalEC(){\n return vec3(1.);\n }\n\n vec4 toEye(in vec2 uv,in float depth){\n vec2 xy=vec2((uv.x*2.-1.),(uv.y*2.-1.));\n vec4 posInCamera=czm_inverseProjection*vec4(xy,depth,1.);\n posInCamera=posInCamera/posInCamera.w;\n return posInCamera;\n }\n\n vec3 pointProjectOnPlane(in vec3 planeNormal,in vec3 planeOrigin,in vec3 point){\n vec3 v01=point-planeOrigin;\n float d=dot(planeNormal,v01);\n return(point-planeNormal*d);\n }\n\n float getDepth(in vec4 depth){\n float z_window=czm_unpackDepth(depth);\n z_window=czm_reverseLogDepth(z_window);\n float n_range=czm_depthRange.near;\n float f_range=czm_depthRange.far;\n return(2.*z_window-n_range-f_range)/(f_range-n_range);\n }\n\n float shadow(in vec4 positionEC){\n vec3 normalEC=getNormalEC();\n zx_shadowParameters shadowParameters;\n shadowParameters.texelStepSize=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy;\n shadowParameters.depthBias=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z;\n shadowParameters.normalShadingSmooth=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w;\n shadowParameters.darkness=shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w;\n vec3 directionEC=positionEC.xyz-shadowMap_lightPositionEC.xyz;\n float distance=length(directionEC);\n directionEC=normalize(directionEC);\n float radius=shadowMap_lightPositionEC.w;\n if(distance>radius)\n {\n return 2.0;\n }\n vec3 directionWC=czm_inverseViewRotation*directionEC;\n shadowParameters.depth=distance/radius-0.0003;\n shadowParameters.nDotL=clamp(dot(normalEC,-directionEC),0.,1.);\n shadowParameters.texCoords=directionWC;\n float visibility=czm_shadowVisibility(shadowMap_textureCube,shadowParameters);\n return visibility;\n }\n\n bool visible(in vec4 result)\n {\n result.x/=result.w;\n result.y/=result.w;\n result.z/=result.w;\n return result.x>=-1.&&result.x<=1.\n &&result.y>=-1.&&result.y<=1.\n &&result.z>=-1.&&result.z<=1.;\n }\n\n void main(){\n // 釉色 = 结构二维(颜色纹理, 纹理坐标)\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\n // 深度 = 获取深度(结构二维(深度纹理, 纹理坐标))\n float depth = getDepth(texture2D(depthTexture, v_textureCoordinates));\n // 视角 = (纹理坐标, 深度)\n vec4 viewPos = toEye(v_textureCoordinates, depth);\n // 世界坐标\n vec4 wordPos = czm_inverseView * viewPos;\n // 虚拟相机中坐标\n vec4 vcPos = camera_view_matrix * wordPos;\n float near = .001 * helsing_viewDistance;\n float dis = length(vcPos.xyz);\n if(dis > near && dis < helsing_viewDistance){\n // 透视投影\n vec4 posInEye = camera_projection_matrix * vcPos;\n // 可视区颜色\n // vec4 helsing_visibleAreaColor=vec4(0.,1.,0.,.5);\n // vec4 helsing_invisibleAreaColor=vec4(1.,0.,0.,.5);\n if(visible(posInEye)){\n float vis = shadow(viewPos);\n if(vis > 0.3){\n gl_FragColor = mix(gl_FragColor,helsing_visibleAreaColor,.5);\n } else{\n gl_FragColor = mix(gl_FragColor,helsing_invisibleAreaColor,.5);\n }\n }\n }\n }",uniforms:{shadowMap_textureCube:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_shadowMapTexture")},shadowMap_matrix:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_shadowMapMatrix")},shadowMap_lightPositionEC:function(){return e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState")),Reflect.get(e.shadowMap,"_lightPositionEC")},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState"));var t=e.shadowMap._pointBias;return Cesium.Cartesian4.fromElements(t.normalOffsetScale,e.shadowMap._distance,e.shadowMap.maximumDistance,0,new Cesium.Cartesian4)},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){e.shadowMap.update(Reflect.get(e.viewer.scene,"_frameState"));var t=e.shadowMap._pointBias,i=new Cesium.Cartesian2;return i.x=1/e.shadowMap._textureSize.x,i.y=1/e.shadowMap._textureSize.y,Cesium.Cartesian4.fromElements(i.x,i.y,t.depthBias,t.normalShadingSmooth,new Cesium.Cartesian4)},camera_projection_matrix:this.lightCamera.frustum.projectionMatrix,camera_view_matrix:this.lightCamera.viewMatrix,helsing_viewDistance:function(){return e.viewDistance},helsing_visibleAreaColor:Cesium.Color.fromCssColorString(this.visibleAreaColor),helsing_invisibleAreaColor:Cesium.Color.fromCssColorString(this.invisibleAreaColor)}});this.postStage=this.viewer.scene.postProcessStages.add(t)}},{key:"drawFrustumOutline",value:function(){var e=new Cesium.Cartesian3,t=new Cesium.Matrix3,i=new Cesium.Quaternion,n=(this.lightCamera.positionWC,this.lightCamera.directionWC),o=this.lightCamera.upWC,s=this.lightCamera.rightWC;s=Cesium.Cartesian3.negate(s,e);var a=t;Cesium.Matrix3.setColumn(a,0,s,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,n,a);var r=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:r}),id:Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOWGREEN),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumOutline=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:[l],appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1})}))}},{key:"drawSketch",value:function(){this.sketch=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN}}),this.frustumOutline=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),innerRadii:new Cesium.Cartesian3(1e-4,1e-4,1e-4),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:1,slicePartitions:1,outlineColor:Cesium.Color.YELLOWGREEN}})}}],[{key:"create",value:function(e,i){e.destroy();var n=0;YJ.Measure.GetMeasureStatus()?(this.tools.message({text:"上一次测量未结束",type:"warning"}),i(!1)):(e.event=new te.a(e.sdk),e.tip=new St.a("左键选择观测点位置,右键取消",e.sdk),YJ.Measure.SetMeasureStatus(!0),e.event.mouse_left((function(o,s){e.viewPosition||(e.options.viewPosition=e.cartesian3Towgs84(s,e.viewer),e.ids.push(t.create_point(e,s)),e.tip.set_text("左键选择最远观测点位置,右键取消")),2===++n&&(e.options.viewPositionEnd=e.cartesian3Towgs84(s,e.viewer),e.ids.push(t.create_point(e,s)),e.end(),e.update(),i(!0))})),e.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.mouse_right((function(t,n){e.ids.forEach((function(t){e.viewer.entities.removeById(t)})),e.ids=[],e.end(),i(!1)})),e.event.gesture_pinck_start((function(t,n){var o=new Date;e.event.gesture_pinck_end((function(){new Date-o>=500&&(e.ids.forEach((function(t){e.viewer.entities.removeById(t)})),e.ids=[],e.end(),i(!1))}))})))}},{key:"create_point",value:function(e,t){var i=e.randomString(),n=e.cartesian3Towgs84(t,e.viewer),o={id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return e.viewer.entities.add(new Cesium.Entity(o)),i}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var n,o,s,a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),e.next=3,new Te.a(i.sdk.viewer._container,{title:"可视域分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),i.editevent&&i.editevent.destroy(),i.ControllerObject&&i.ControllerObject.destroy(),i.ids.forEach((function(e){i.viewer.entities.removeById(e)}))}});case 3:return i._DialogObject=e.sent,e.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" view-shed",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 位置拾取(起点、终点)\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n 视域夹角\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n 45°\n 90°\n 135°\n 180°\n
            \n
            \n \n
            \n
            \n
            \n
            \n \n ',i._DialogObject.contentAppChild(n),i._DialogObject._element.body.getElementsByClassName("edit")[0].addEventListener("click",(function(){i.nodeEdit()})),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){t.create(i)})),i._DialogObject.footAppChild(o),i.html=n,s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element,(a=n.querySelector("input[name='horizontalViewAngle']")).value=i.options.horizontalViewAngle,r=n.getElementsByClassName("range-node-active")[0],l=r.getElementsByClassName("range-node-active-text")[0],c=n.getElementsByClassName("range-process")[0],u=i.horizontalViewAngle/180*100,r.style.left=u+"%",c.style.width=u+"%",l.innerHTML=i.horizontalViewAngle+"°",a.addEventListener("input",(function(){var e=a.value/180*100;r.style.left=e+"%",c.style.width=e+"%",l.innerHTML=a.value+"°"})),a.addEventListener("change",(function(){clearTimeout(h),h=setTimeout((function(){i.horizontalViewAngle=a.value}),300)}));case 31:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getcanvas",value:function(e){if(e.viewPosition){e.viewBillboardPrimitive&&(e.viewer.scene.primitives.remove(e.viewBillboardPrimitive),e.viewBillboardPrimitive=null);var t=document.createElement("canvas"),i=t.getContext("2d");t.width=220,t.height=180,t.style.background="#000000";var n=new Image,o=[{images:e.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(e.viewPosition.lng.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(e.viewPosition.lat.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/h.png",text:"高度:"+Number((parseFloat(e.viewPosition.alt.toFixed(2))+Number(e.viewPointHeight)).toFixed(2))+" m"},{images:e.getSourceRootPath()+"/img/bubble/heading.png",text:"偏航角:"+parseFloat(e.viewHeading.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/pitch.png",text:"俯仰角:"+parseFloat(e.viewPitch.toFixed(10))+"°"}];n.src=e.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;n.onload=function(){i.drawImage(n,0,0,t.width,t.height),o.forEach((function(n,a){var r=new Image;r.src=n.images,r.onload=function(){i.drawImage(r,12,12+26*a),i.fillStyle="#fff",i.font="12px Arial",i.fillText(n.text,44,28+26*a),++s===o.length&&(e.viewBillboardPrimitive=e.viewer.scene.primitives.add(new Cesium.BillboardCollection),e.viewBillboardPrimitive.add({position:Cesium.Cartesian3.fromDegrees(e.viewPosition.lng,e.viewPosition.lat,e.viewPosition.alt+e.viewPointHeight),image:t,width:200,height:180,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}))}}))}}}}]);var i}(b.a);function Gn(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Wn(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Wn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),Yn(i=Un(this,t,[e,n]),Xn,new Map),i.viewer=e.viewer,i.options={},i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i.ids=[],i.primitives=[],i.viewpointPrimitive=null,i._elms={},i.precision=n.precision,i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new Ye,i.html=null,i.tools=new b.a(e),YJ.Analysis.AnalysesResults.push(i);var s=i.viewer.terrainProvider.availability;return s?i:(i.tools.message({type:"warning",text:"未加载地形数据!"}),Ee()(i))}return Me()(t,e),h()(t,[{key:"draw",value:function(){t.create(this)}},{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"viewPointHeights",get:function(){return this.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.viewPointHeight=t}},{key:"precision",get:function(){return this.options.precision},set:function(e){var t=Math.floor(Number(e));isNaN(t)?t=20:t<1&&(t=1),this.options.precision=t,this._elms.precision&&this._elms.precision.forEach((function(e){e.value=t}))}},{key:"precisions",get:function(){return this.precision},set:function(e){this.precision=e}},{key:"analyse",value:function(){var e=this,i=[this.center.lng,this.center.lat],n=this.radius/1e3,o=turf.circle(i,n,{steps:180,units:"kilometers",properties:{foo:"bar"}});this.viewpointPrimitive||(this.viewpointPrimitive=this.viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection)),this.viewBillboardPrimitive||(this.viewBillboardPrimitive=this.viewer.scene.primitives.add(new Cesium.BillboardCollection));for(var s=[],a=n/this.precision,r=1;r=s.length){var t=Jn(Xn,e).get(f);t&&clearInterval(t.event)}else!function(e){for(var t=[],n=e,o=0;o.01&&Math.abs(b.position.y-f.y)>.01&&Math.abs(b.position.z-f.z)>.01&&(w=Cesium.Color.RED);var k=new Cesium.GroundPolylineGeometry({positions:Cesium.Cartesian3.fromDegreesArray([].concat(nt()(a),nt()(r),nt()(l),nt()(c),nt()(a))),width:2}),_=new Cesium.GeometryInstance({geometry:k,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(w),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});t.push(_)}m.primitives.push(m.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:t,appearance:new Cesium.PolylineColorAppearance})))}(d),d+=1}),0);Jn(Xn,this).set(f,{event:v})}},{key:"destroy",value:function(){var e,t,i,n,o=Gn(Jn(Xn,this));try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);clearInterval(r.event)}}catch(e){o.e(e)}finally{o.f()}t=Xn,i=this,n=new Map,t.set(qn(t,i),n);for(var l=0;l\n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 采样精度\n \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){i.viewer.terrainProvider.availability?t.create(i):window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500})})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getcanvas",value:function(e){var t=document.createElement("canvas"),i=t.getContext("2d");t.width=220,t.height=140,t.style.background="#000000";var n=new Image,o=[{images:e.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(e.center.lng.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(e.center.lat.toFixed(10))+"°"},{images:e.getSourceRootPath()+"/img/bubble/h.png",text:"视高:"+e.viewPointHeight+" m"},{images:e.getSourceRootPath()+"/img/bubble/radius.png",text:"半径:"+e.radius+" m"}];n.src=e.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;return new Promise(function(){var e=_()(S.a.mark((function e(a,r){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.onload=function(){i.drawImage(n,0,0,t.width,t.height),o.forEach((function(e,n){var r=new Image;r.src=e.images,r.onload=function(){i.drawImage(r,12,12+26*n),i.fillStyle="#fff",i.font="12px Arial",i.fillText(e.text,44,28+26*n),++s===o.length&&a(t)}}))};case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}())}}]);var i}(b.a);function Kn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qn(e){for(var t=1;t35?35:200*e;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<=2)t.tools.message({type:"warning",text:"至少拥有三个坐标位置!"});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?h:r,l=p>l?p:l}o.push(o[0]);var d=[s,a,r,l],m=turf.polygon([o]),f=turf.squareGrid(d,e,{mask:m});t.createEllipse(f)}}))}},{key:"createNew4Num",value:function(e){var t=this,i=e;this.Draw.start((function(e,n){if(!n||n.length<=2)t.tools.message({type:"warning",text:"至少拥有三个坐标位置!"});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?h:r,l=p>l?p:l}o.push(o[0]);var d=[s,a,r,l],m=r-s,f=l-a;f=f>m?f:m;var v=turf.polygon([o]),g=turf.area(v);g>5e12?i-=25:g>1e12?i-=20:g>5e11?i-=15:g>1e11?i-=10:g>6e10&&(i-=5);var y=f/i,b=2e3*y>35?35:2e3*y;t.arrowWidth=b<15?15:b;var C=turf.squareGrid(d,y,{units:"degrees",mask:v});t.createEllipse(C)}}))}},{key:"createEllipse",value:function(e){for(var t=[],i=0;i0&&function e(i){Cesium.sampleTerrainMostDetailed(p.viewer.scene.terrainProvider,i).then((function(i){m++;var n=t.slice(m*d,(m+1)*d);n.length>0&&e(n);var o=[],s=i.reduce((function(e,t,i,n){var s=10*i,a=s+10,r=n.slice(s,a);return 0!=r.length&&(o[i]=r),o}),[]);p.calculateSlope(s)}))}(f)}},{key:"createPolygonInsrance",value:function(e,t,i){for(var n=[],o=1;o0?[Cesium.Cartographic.toCartesian(s),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(s)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:r,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}},{key:"calculateSlope",value:function(e){for(var t=this,i=[],n=[],o=0;or&&(r=u,l=c)}var h=new Cesium.Cartographic(a.longitude,a.latitude,0),p=new Cesium.Cartographic(s[l].longitude,s[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(h),Cesium.Cartographic.toCartesian(p)),m=Math.abs(r/d),f=this.calculateSlopeColor(m,.4),v=this.createPolygonInsrance(s,f,m);n.push(v);var g=l>4?s[l-4]:s[l+4],y=s[l],b=this.createArrowInstance(y,a,g,r,m);i.push(b)}var C=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:n,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),w=this.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));this.result.push(w,C),this.event=new te.a(this.sdk);var k=function(e,i){var n=document.getElementById("SlopeAspect-box");n||((n=document.createElement("div")).id="SlopeAspect-box",n.style.pointerEvents="none",n.style.display="none",n.style.position="absolute",n.style.background="#333333",n.style.color="#fff",n.style.color="#fff",n.style.padding="5px",n.style.fontSize="12px",n.style.borderRadius="5px",n.style.transform="translate(-50%, -10px)",n.innerHTML='\n
            坡度:
            \n \n ',document.body.appendChild(n));var o=n.getElementsByClassName("value")[0],s=Qn({},e.position),a=t.sdk.viewer.scene.pick(s);if(a&&a.id&&a.id.type&&"SlopeAspect"===a.id.type){var r=0,l=0;if(t.sdk.viewer&&t.sdk.viewer._element){var c=t.sdk.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];r=c.getBoundingClientRect().top+window.scrollY,l=c.getBoundingClientRect().left+window.scrollX}n.style.display="block",n.style.left=s.x+2+l+"px",n.style.top=s.y-20+r+"px",o.innerHTML="坡度:"+Number(Cesium.Math.toDegrees(a.id.value||0).toFixed(2))+"°"}else n.style.display="none"};this.event.mouse_move((function(e,t){var i={position:Qn({},e.endPosition)};k(i)})),this.event.mouse_left(k),this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll},this.sdk.viewer.scene.preRender.addEventListener(this._watchEvent,this)}},{key:"_watchEvent",value:function(){if(this._camera.position.x.toFixed(8)!==this.sdk.viewer.camera.position.x.toFixed(8)||this._camera.position.y.toFixed(8)!==this.sdk.viewer.camera.position.y.toFixed(8)||this._camera.position.z.toFixed(8)!==this.sdk.viewer.camera.position.z.toFixed(8)||this._camera.heading.toFixed(8)!==this.sdk.viewer.camera.heading.toFixed(8)||this._camera.pitch.toFixed(8)!==this.sdk.viewer.camera.pitch.toFixed(8)||this._camera.roll.toFixed(8)!==this.sdk.viewer.camera.roll.toFixed(8)){var e=document.getElementById("SlopeAspect-box");e&&(e.style.display="none")}this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll}}},{key:"calculateSlopeColor",value:function(e,t){return e<.00872686779075879?"rgba(85,182,43,"+t+")":e<.03492076949174773?"rgba(135,211,43,"+t+")":e<.08748866352592401?"rgba(204,244,44,"+t+")":e<.2679491924311227?"rgba(245,233,44,"+t+")":e<.7002075382097097?"rgba(255,138,43,"+t+")":e<1.4281480067421144?"rgba(255,84,43,"+t+")":"rgba(255,32,43,"+t+")"}},{key:"destroy",value:function(){var e=this;this.result&&this.result.forEach((function(t){e.viewer.scene.primitives.remove(t)})),this.result=[],this.sdk.viewer.scene.preRender.removeEventListener(this._watchEvent,this)}}])}(b.a);function to(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var io=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),window.addEventListener("resize",(function(){i.echartsObject&&i.echartsObject.resize()})),(i=to(this,t,[e])).viewer=e.viewer,i.Dialog=n,YJ.Analysis.AnalysesResults.push(i),t.create(i),i}return Me()(t,e),h()(t,[{key:"reDraw",value:function(){t.create(this)}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"formatter",value:function(e,t){if(this.polyline){var i={show:!0,pixelSize:10,color:Cesium.Color.GREEN,outlineColor:Cesium.Color.SKYBLUE,outlineWidth:3,disableDepthTestDistance:Number.POSITIVE_INFINITY};this.tipEntity?this.tipEntity.position=Cesium.Cartesian3.fromDegrees(e[0],e[1],Number(t[1])):this.tipEntity=this.sdk.viewer.entities.add({position:Cesium.Cartesian3.fromDegrees(e[0],e[1],Number(t[1])),point:i})}}},{key:"clean",value:function(){this.end(),this._currentId=null,this.entityHasCreated=!1,this.polyline&&this.viewer.entities.remove(this.polyline),this.tipEntity&&this.viewer.entities.remove(this.tipEntity),this.polyline=null,this.tipEntity=null}},{key:"destroy",value:function(){this.clean(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}}],[{key:"create",value:function(e){var i=this;this._currentId=Cesium.createGuid();var n=this._currentId;if(e.clean(),YJ.Measure.GetMeasureStatus())console.warn("上一次测量未结束");else{YJ.Measure.SetMeasureStatus(!0),e.tip=new St.a("左键确定,右键取消",e.sdk),e.event=new te.a(e.sdk),e.positions=[],e.points_ids=[];var o=[];e.event.mouse_left(function(){var s=_()(S.a.mark((function s(a,r){var l;return S.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:try{e.entityHasCreated||t.create_polyline(e),o.push(r),e.points_ids.push(e.create_point(r)),2==o.length&&(e.end(),l=[],o.forEach((function(t){l.push(e.cartesian3Towgs84(t,e.viewer))})),t.interPoints(e).then((function(t){i._currentId&&i._currentId===n&&e.clickCallBack(t)})))}catch(e){console.log(e)}case 1:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}()),e.event.mouse_right((function(t,i){o=[],e.clean()})),e.event.mouse_move((function(t,i){e.positions=o.concat(i),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500){o=[],e.end()}}))}))}}},{key:"create_polyline",value:function(e){e.entityHasCreated=!0;var t=e.randomString();return e.polyline=e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(e.color),clampToGround:!0,zIndex:99999999}})),t}},{key:"interPoints",value:(n=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,E,P,O;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=t.viewer,n=t.positions,o=[],s=[],a=0;ay&&(y=g),(b=parseInt(y/2))>150&&(b=150),b<2&&(b=2),C=m/(b-1),w=0;case 24:if(!(w\n
            \n ',i._DialogObject.contentAppChild(o),(s=document.createElement("button")).innerHTML='重新绘制',s.style.width="auto",s.addEventListener("click",(function(){t.create(i),t.initEcharts(i)})),i._DialogObject.footAppChild(s),t.initEcharts(i,n);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})},{key:"initEcharts",value:function(e,t){var i,n=[],o=[],s=t;if(s){for(var a=s[s.length-1].distance,r=Math.ceil(a),l=0;l高度:"+n[1]+"m
            坐标:"+i[0].toFixed(5)+","+i[1].toFixed(5)}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",max:r,scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:n,smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}else{var m=document.getElementsByClassName("profile-echarts")[0];e.echartsObject=echarts.init(m),i={tooltip:{trigger:"axis",textStyle:{align:"left"}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:[],smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}e.echartsObject.setOption(i)}}]);var i,n}(Dn.a);function no(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var oo=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=no(this,t,[e,n])).viewer=e.viewer,i.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},i.options={},i._elms={},i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new Ye,i.tools=new b.a(i.sdk),YJ.Analysis.AnalysesResults.push(i),t.create(i),i}return Me()(t,e),h()(t,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(e){var t=Math.floor(10*Number(e))/10;isNaN(t)&&(t=1.8),t<0&&(t=0),this.options.viewPointHeight=t,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(e){e.value=t}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"destroy",value:function(){var e=this;this.resultObject.entities.forEach((function(t){e.viewer.entities.remove(t)})),this.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,YJ.Measure.SetMeasureStatus(!1)}}],[{key:"create",value:function(e){if(YJ.Measure.GetMeasureStatus())e.tools.message({text:"上一次测量未结束",type:"warning"});else{e._DialogObject&&e._DialogObject.close&&(e._DialogObject.close(),e._DialogObject=null),e.event=new te.a(e.sdk),e.tip=new St.a("左键点击创建视角起点",e.sdk),YJ.Measure.SetMeasureStatus(!0);e.event.mouse_left(function(){var i=_()(S.a.mark((function i(n,o){var s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C;return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e.tip.set_text("左键创建视角终点,右键结束通视分析"),e.resultObject.viewPoint){i.next=16;break}if(s=e.cartesian3Towgs84(o,e.viewer),!e.sdk.viewer.terrainProvider.availability){i.next=7;break}return i.next=6,Cesium.sampleTerrainMostDetailed(e.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(s.lng,s.lat)]);case 6:a=i.sent;case 7:a&&a[0].height>s.alt&&(s.alt=a[0].height),s.alt=s.alt+e.viewPointHeight,r=Cesium.Cartesian3.fromDegrees(s.lng,s.lat,s.alt),e.resultObject.viewPoint=r,l=e.viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),e.resultObject.objectExclude.push(l),e.resultObject.entities.push(l),i.next=33;break;case 16:e.resultObject.targetPoint=o,c=e.viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),e.resultObject.objectExclude.push(c),e.resultObject.entities.push(c),u=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.resultObject.targetPoint,e.resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),h=new Cesium.Ray(e.resultObject.viewPoint,u),p=e.viewer.scene.drillPickFromRay(h),d={},m=0;case 25:if(!(mv?(y=e.viewer.entities.add({polyline:{positions:[e.resultObject.viewPoint,d.position],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),e.resultObject.entities.push(y),b=e.viewer.entities.add({polyline:{positions:[d.position,e.resultObject.targetPoint],material:Cesium.Color.RED,width:3,zIndex:99999999}}),e.resultObject.entities.push(b),e.resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[f,v,g]})):(C=e.viewer.entities.add({polyline:{positions:[e.resultObject.viewPoint,e.resultObject.targetPoint],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),e.resultObject.entities.push(C),e.resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[f,v,g]})));case 33:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()),e.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),e.event.mouse_right((function(t,i){e.end()})),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){new Date-n>=500&&e.end()}))}))}}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),e.next=3,new Te.a(i.sdk.viewer._container,{title:"多点视线分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1)}});case 3:return i._DialogObject=e.sent,e.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" visibility",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){t.create(i)})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"distance",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e),n=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n);var s=o.surfaceDistance;return s=Math.sqrt(Math.pow(s,2)+Math.pow(n.height-i.height,2))}}]);var i}(b.a),so=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.viewer=t.viewer,this.tools=new b.a(t);var n=this.viewer.terrainProvider.availability;if(!n)return this.error="未加载地形数据!",void this.tools.message({type:"warning",text:this.error});this.positions=i.positions,this.interfaceNum=i.interfaceNum||25,this.colorFill=i.colorFill||["#8CEA00","#B7FF4A","#FFFF37","#FFE66F","#FFD1A4","#FFCBB3","#FFBD9D","#FFAD86","#FF9D6F","#FF8F59","#FF8040","#FF5809","#F75000","#D94600","#BB3D00","#A23400","#842B00","#642100","#4D0000","#2F0000"],this.countorLineList=Cesium.defaultValue(i.countorLineList,[]),YJ.Analysis.AnalysesResults.push(this),this.createNewLine()}return h()(e,[{key:"type",get:function(){return"ContourAnalysis"}},{key:"createNewLine",value:function(){e.interpolatePoint(this)}},{key:"getObjectIndex",value:function(e,t){for(var i=0;it)return i}},{key:"clear",value:function(e){if(e){this.viewer.dataSources.remove(e);var t=this.countorLineList.indexOf(e);this.countorLineList.splice(t,1)}}},{key:"destroy",value:function(){var e=this;this.countorLineList.forEach((function(t){e.viewer.dataSources.remove(t)})),this.countorLineList=[]}}],[{key:"interpolatePoint",value:function(e){for(var t=e.positions,i=[],n={minX:360,maxX:-360,minY:180,maxY:-180},o=0;o2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=lo(this,t,[e,o])).viewer=e.viewer,n.tiles3d=i,n.options=ro({},o),n.options.regionsType=n.options.regionsType||!1,YJ.Analysis.SectionResults.push(n),n.Planes=[],n.tools=new b.a,t.start(n),n}return Me()(t,e),h()(t,[{key:"regionsType",get:function(){return this.options.regionsType},set:function(e){this.options.regionsType=e,this.Planes.length>0&&(this.Planes=[],t.planeCollection(this))}},{key:"destroy",value:function(){this.Planes=[],this.tiles3d.clippingPlanes&&(this.tiles3d.clippingPlanes.enabled=!1,this.tiles3d.clippingPlanes.removeAll())}}],[{key:"start",value:function(e){var i=e.options.positions||[];if(!e.isConvex(i))return e.tools.message({type:"warning",text:"不支持凹多边形"}),void console.log("不支持凹多边形");e.inverseTransform=function(e){var t,i=e.root.transform;t=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform);return Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}(e.tiles3d),e.Planes=[];var n=[];if(i.length>0){for(var o=0;o=0;n--)0===n?e.Planes.push(a(t[n],t[t.length-1],e.inverseTransform)):e.Planes.push(a(t[n],t[n-1],e.inverseTransform));if(e.tiles3d.clippingPlanes){e.tiles3d.clippingPlanes.removeAll();for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=uo(this,t,[e])).viewer=e.viewer,i.options=n||{},i.options.height=i.options.height||0===i.options.height?i.options.height:10,i.options.show=!i.options.show&&!1!==i.options.show||i.options.show,i.bottomImg=i.getSourceRootPath()+"/img/excavationregion_top.jpg",i.wallImg=i.getSourceRootPath()+"/img/excavationregion_side.jpg",i.splitNum=Cesium.defaultValue(n.splitNum,50),i.Draw=new Bn(i.sdk),i.bottomMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#735d4f"))}),i.wallMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#976b4e"))}),i.tools=new b.a(i.sdk);var o=new Image,s=new Image;return o.src=i.bottomImg,s.src=i.wallImg,o.crossOrigin="Anonymous",s.crossOrigin="Anonymous",o.onload=function(){var e=document.createElement("canvas");e.width=o.width,e.height=o.height,e.getContext("2d").drawImage(o,0,0,o.width,o.height);var t=e.toDataURL("image/jpg");i.bottomMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:t}}}),i.bottomSurface&&(i.bottomSurface.appearance.material=i.bottomMaterial)},s.onload=function(){var e=document.createElement("canvas");e.width=s.width,e.height=s.height,e.getContext("2d").drawImage(s,0,0,s.width,s.height);var t=e.toDataURL("image/jpg");i.wallMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:t}}}),i.wellWall&&(i.wellWall.appearance.material=i.wallMaterial)},i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e,this.switchExcavate(e)}},{key:"height",get:function(){return this.options.height},set:function(e){this.options.height=e}},{key:"init",value:function(){t.edit(this,!0)}},{key:"startCreate",value:function(){var e=this;this.Draw.start((function(t,i){if(i&&!(i.length<=2))return e.isConvex(i)?void e.updateData(i):(e.tools.message({type:"warning",text:"不支持凹多边形"}),void console.log("不支持凹多边形"));e.tools.message({type:"warning",text:"至少拥有三个坐标位置!"})}))}},{key:"updateData",value:function(e){var t=this.viewer;this.clear();for(var i=[],n=[],o=0;o=0;e--)this.viewer.scene.primitives.remove(ho[e]);ho=[],this.Draw&&this.Draw.end()}},{key:"destroy",value:function(){this.clear()}},{key:"prepareWell",value:function(e){for(var t=e.length,i=this.excavateMinHeight-this.height,n=[],o=[],s=[],a=0;a\n
            \n
            \n
            \n 挖掘高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 绘制开挖区域\n \n
            \n
            \n 清除开挖区域\n \n
            \n
            \n
            \n ',t._DialogObject.contentAppChild(n),n.getElementsByClassName("start-excavation")[0].addEventListener("click",(function(){t.startCreate()})),n.getElementsByClassName("clean-excavation")[0].addEventListener("click",(function(){t.clear()})),(o=n.querySelector("input[name='height']")).value=t.height,o.addEventListener("change",(function(e){var i=e.target.value;(i=Number(i))<.01&&(i=.01,e.target.value=i,t.height=i)})),o.addEventListener("blur",(function(e){var i=e.target.value;i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),i<.01&&(i=.01),e.target.value=i,t.height=i})),e.next=22;break;case 21:t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null);case 22:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})}]);var i}(b.a);function mo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function fo(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(c()(this,t),n=vo(this,t,[e]),r()(n,"getUniqueArray",(function(e){return e.filter((function(e,t,i){return i.indexOf(e,0)===t}))})),!i||!n.sdk||!n.sdk.viewer)return Ee()(n);if(n.options=fo({},o),n.options.id=o.id||n.randomString(),n.options.name=o.name||"压平面",n.options.positions=o.positions||[],n.options.show=!o.show&&!1!==o.show||o.show,n.tileset=i,n.Dialog=s,!n.options.height&&0!==n.options.height){for(var a=n.options.positions[0].alt,l=0;ln.options.positions[l].alt&&(a=n.options.positions[l].alt);n.options.height=a}return go[n.tileset.id]?go[n.tileset.id].push(fo({},n.options)):go[n.tileset.id]=[fo({},n.options)],n.center=i.boundingSphere.center.clone(),n.center84=n.cartesian3Towgs84(n.center,n.sdk.viewer),n.matrix=Cesium.Transforms.eastNorthUpToFixedFrame(n.center.clone()),n.localMatrix=Cesium.Matrix4.inverse(n.matrix,new Cesium.Matrix4),n.addFlat(),n}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e;for(var t=0;t= max(p1[1], p2[1])){\n continue;\n }\n float x = p1[0] + ((point[1] - p1[1]) * (p2[0] - p1[0])) / (p2[1] - p1[1]);\n if(x > point[0]){\n nCross++;\n }\n }\n return int(mod(float(nCross), float(2))) == 1;\n }\n ")})),n}},{key:"updateShader",value:function(e,t){var i=new Cesium.CustomShader({uniforms:{u_tileset_localToWorldMatrix:{type:Cesium.UniformType.MAT4,value:this.matrix},u_tileset_worldToLocalMatrix:{type:Cesium.UniformType.MAT4,value:this.localMatrix},u_flatHeight:{type:Cesium.UniformType.FLOAT,value:this.flatHeight}},vertexShaderText:"\n // 所有isPointInPolygon函数\n ".concat(e,"\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput){\n vec3 modelMC = vsInput.attributes.positionMC;\n vec4 model_local_position = vec4(modelMC.x, modelMC.y, modelMC.z, 1.0);\n vec4 tileset_local_position = u_tileset_worldToLocalMatrix * czm_model * model_local_position;\n vec2 position2D = vec2(tileset_local_position.x,tileset_local_position.y);\n float ground_z = 0.0;\n // 多个多边形区域\n ").concat(t,"\n }")});this.tileset.customShader=i,this.sdk.viewer.scene.requestRender()}},{key:"cartesiansToLocal",value:function(e){for(var t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{text:"左键开始,右键结束;"};return c()(this,t),(i=wo(this,t,[e,n])).options=Co({},n),i.event=new te.a(e),i.tip=new St.a(n.text,e),i.viewer=e.viewer,i.defaultColor="rgba(246,49,49,0.55)",i.ids=[],YJ.Measure.Measures.push(i),i._isDestroy=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(){this.setPickStatus(!1),YJ.Measure.SetMeasureStatus(!0)}},{key:"destroy",value:function(){var e=this;this._isDestroy=!0,this.end(),this.ids.forEach((function(t){e.remove_entity(t)}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"create_point",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.randomString(),n=this.cartesian3Towgs84(e,this.viewer);return this.viewer.entities.add(new Cesium.Entity({id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{show:t,image:this.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(e){this.viewer.entities.removeById(e)}}])}(b.a);function _o(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return xo(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=So(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(s=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=_o(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return s.apply(this,arguments)})},{key:"computeDisByTowPoint",value:(o=_()(S.a.mark((function e(i,n){var o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.computeDistance2([i,n]),s=10,a=function(e){if(!l._isDestroy){var i=l.getLabel("贴地距离:"+Number(e).toFixed(2)+"米");i.pixelOffset=new Cesium.Cartesian2(0,-32),l.ids.push(t.create_point(Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),{label:i},l))}},r=function(){var e=_()(S.a.mark((function e(t){var o,s,r,c,u,h,p,d,m,f;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=l.chunkLine([i,n],t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),r=[],c=_o(s),e.prev=5,c.s();case 7:if((u=c.n()).done){e.next=16;break}return h=u.value,p=s.indexOf(h),e.next=12,l.sampleHeight({lng:h[0],lat:h[1],alt:0},p);case 12:d=e.sent,r.push(d);case 14:e.next=7;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),c.e(e.t0);case 21:return e.prev=21,c.f(),e.finish(21);case 24:m=0,f=r.length-1,r.forEach((function(e,t){if(t!==f){var i=l.computeDistance2([e.position,r[t+1].position]),n=Math.abs(e.position.alt-r[t+1].position.alt),o=Math.sqrt(i*i+n*n);m+=o}})),a(m);case 28:case"end":return e.stop()}}),e,null,[[5,18,21,24]])})));return function(t){return e.apply(this,arguments)}}(),!(o>2)){e.next=10;break}return s=o/20,e.next=8,r(s);case 8:e.next=17;break;case 10:if(!(o<1)){e.next=14;break}a(o),e.next=17;break;case 14:return s=1,e.next=17,r(s);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClampToHeight(t,nt()(this.sdk.viewer.entities.values));case 2:return n=e.sent,t.alt=n,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Eo(t,"destroy",this,3)([])}},{key:"end",value:function(){Eo(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20}),zIndex:99999999}})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o,s}(ko);function Oo(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Do(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Do(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Mo(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=Oo(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:return n=e.sent,t.alt=n[0].height,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),To(t,"destroy",this,3)([])}},{key:"end",value:function(){To(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20})},zIndex:99999999})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o}(ko);function Bo(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return jo(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?jo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ao(this,t,[e,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i.event=new te.a(e),i}return Me()(t,e),h()(t,[{key:"clampToGroundMeasure",value:(o=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],this.ids.forEach((function(e,t){var i=p.viewer.entities.getById(e).position.getValue();n.push(p.cartesian3Towgs84(i,p.viewer))})),o=this.chunkLine(n,t),s=[],o.forEach((function(e,t){0===t?s=nt()(e.geometry.coordinates):s.push(e.geometry.coordinates[1])})),a=s.length,r=Bo(s),e.prev=7,r.s();case 9:if((l=r.n()).done){e.next=18;break}return c=l.value,u=s.indexOf(c),e.next=14,this.getHeight({lng:c[0],lat:c[1],alt:0},u,a);case 14:h=e.sent,i(null,h);case 16:e.next=9;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(7),r.e(e.t0);case 23:return e.prev=23,r.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[7,20,23,26]])}))),function(e,t){return o.apply(this,arguments)})},{key:"sampleHeight",value:(n=_()(S.a.mark((function e(t,i){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:return n=e.sent,t.alt=n[0].height,e.abrupt("return",{position:t,index:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getHeight",value:(i=_()(S.a.mark((function e(t,i,n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sampleHeightMostDetailed([t]);case 2:if(o=e.sent,t.alt=o[0].height,this.clampPositions.push({position:t,index:i}),n!==this.clampPositions.length){e.next=8;break}return s=this.startCompute(),e.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return e.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var e=this;this.clampPositions.sort((function(e,t){return e.index=500?n(0,o):i(a,o)}))}))}}},{key:"computeAngle",value:function(e,i){var n=this.computeDistance2([e,i]),o=Math.abs(e.alt-i.alt),s=n/Math.sqrt(n*n+o*o),a=Math.acos(s),r=this.radiansToDegrees(a),l=this.getLabel("坡度:"+r.toFixed(2)+"°");l.pixelOffset=new Cesium.Cartesian2(0,-32),this.ids.push(t.create_point(Cesium.Cartesian3.fromDegrees(i.lng,i.lat,i.alt),{label:l},this))}},{key:"destroy",value:function(){var e=this;[this.polyline_id,this.end_id,this.start_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Lo(t,"destroy",this,3)([])}},{key:"end",value:function(){Lo(t,"end",this,3)([])}}],[{key:"createPolyline",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),dashLength:20}),zIndex:99999999}})),t}},{key:"create_point",value:function(e,t,i){var n=t.label,o=t.image,s=void 0===o?"point.png":o,a=t.width,r=t.height,l=i.randomString(),c=i.cartesian3Towgs84(e,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,o}(ko);function Ro(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function zo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Fo(this,t,[e,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Ho(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i,n=0,o=0,s=function(s,a){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(zo({},a)),e.ids.push(e.create_point(zo({},a),!1));var r=e.cartesian3Towgs84(zo({},a),e.viewer);if(r.alt>n&&(n=r.alt),e.positions=e.cachePositions.concat(zo({},a)),e.tip.setPosition(zo({},a),s.position.x,s.position.y),e.positions.length>2){var l=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);l.push({lng:i.lng,lat:i.lat})}));var c=e.computeCenter(l),u=e.computeArea(l);o=u,e.center=new Cesium.Cartesian3.fromDegrees(c.lng,c.lat,n),i=e.center,e.text="投影面积:"+u+" ㎡"}};this.event.mouse_left(s),this.event.mouse_move((function(t,i){if(e.tip.setPosition(zo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(zo({},i)),e.positions.length>2){var o=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);o.push({lng:i.lng,lat:i.lat})}));var s=e.computeCenter(o),a=e.computeArea(o);e.center=new Cesium.Cartesian3.fromDegrees(s.lng,s.lat,n),e.text="投影面积:"+a+" ㎡"}})),this.event.mouse_right((function(t,n){if(e.positions=e.cachePositions,e.center=i,e.positions.length<3){e.text="";console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),e.destroy()}else e.text="投影面积:"+o+" ㎡";e.end()})),this.event.gesture_pinck_start((function(t,i){var n=new Date,o={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-n>=500?(e.positions=e.cachePositions,e.end()):s(o,i)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polygon_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Ho(t,"destroy",this,3)([])}},{key:"end",value:function(){Ho(t,"end",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),e.viewer.entities.add(new Cesium.Entity({id:t,label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return e.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)}),!1),material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions.length?e.positions.concat(e.positions[0]):e.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.lineColor||e.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return t}}])}(ko);function Go(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Wo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Uo(this,t,[e,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Yo(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i=0,n=function(n,o){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(Wo({},o)),e.ids.push(e.create_point(Wo({},o),!1));var s=e.cartesian3Towgs84(Wo({},o),e.viewer);s.alt>i&&(i=s.alt),e.positions=e.cachePositions.concat(Wo({},o)),e.tip.setPosition(Wo({},o),n.position.x,n.position.y)},o=function(t,n){if(e.positions=e.cachePositions,e.positions.length>2){var o=[];e.positions.forEach((function(t){var i=e.cartesian3Towgs84(t,e.viewer);o.push({lng:i.lng,lat:i.lat})})),setTimeout((function(){var t=e.computeCenter(o),n=e.computeSignedArea(e.viewer,o);e.center=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,i),e.text="贴地面积:"+n+" ㎡"}),0)}else{console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),e.destroy()}e.end()};this.event.mouse_left(n),this.event.mouse_move((function(t,i){e.tip.setPosition(Wo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(Wo({},i))})),this.event.mouse_right(o),this.event.gesture_pinck_start((function(t,i){var s=new Date,a={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-s>=500?o():n(a,i)}))}))}}},{key:"destroy",value:function(){var e=this;[this.polygon_id].concat(nt()(this.ids)).forEach((function(t){e.remove_entity(t)})),Yo(t,"destroy",this,3)([])}},{key:"end",value:function(){Yo(t,"end",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),e.viewer.entities.add(new Cesium.Entity({id:t,label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return e.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)}),!1),material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions.length?e.positions.concat(e.positions[0]):e.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(e.options.lineColor||e.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return t}}])}(ko);function qo(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Xo(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Zo=function(e){function t(e){return c()(this,t),qo(this,t,[e])}return Me()(t,e),h()(t,[{key:"cal_center",value:function(e){var t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.computeCenter([t,i]);return Cesium.Cartesian3.fromDegrees(n.lng,n.lat,(t.alt+i.alt)/2)}},{key:"cal_distance",value:function(e){var t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.computeDistance2([t,i]);return t.alt=t.alt.toFixed(2),i.alt=i.alt.toFixed(2),t.alt===i.alt?n:0===Number(n)?Math.abs(t.alt-i.alt).toFixed(2):Math.sqrt(n*n+Math.pow(Math.abs(t.alt-i.alt).toFixed(2),2)).toFixed(2)}},{key:"createPolyline",value:function(e){var t=this,i=this.id_map.get(e);this.viewer.entities.add(new Cesium.Entity({id:e,position:new Cesium.CallbackProperty((function(){return 2===i.positions.length?t.cal_center(i.positions):Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(){return 2===i.positions.length?t.cal_distance(i.positions)+"米":"0米"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-10),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(){return i.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999}})),this.ids.push(e)}},{key:"create_angle_label",value:function(e,t,i,n){var o=this,s=new Cesium.Entity({id:i,position:new Cesium.CallbackProperty((function(){return 2===e.length?o.cal_point(e,t):Cesium.Cartesian3()})),label:{text:new Cesium.CallbackProperty((function(){return 2===e.length?o.cal_angle(e,t,n)+"°":"0°"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(15,-10)}});this.viewer.entities.add(s)}},{key:"cal_point",value:function(e,t){for(var i=0;i=500?e.end():r(o,i)}))}))}}},{key:"end",value:function(){Xo(t,"end",this,3)([])}},{key:"destroy",value:function(){Xo(t,"destroy",this,3)([])}}])}(ko);function Ko(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Qo(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var $o=function(e){function t(e){var i;return c()(this,t),(i=Ko(this,t,[e,{text:""}])).defaultColor="#f11515",i.locationID=i.randomString(),i.position=new Cesium.Cartesian3,i.text="",i}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Qo(t,"start",this,3)([]),this.cache_id=t.create_point(this),t.createLocation(this);var i=function(t,i){e.position=i;var n=e.viewer.entities.getById(e.locationID);n&&(n.show=!0);var o=e.cartesian3Towgs84(i,e.viewer),s=Object(X.o)();if("EPSG:4326"===s)e.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=e.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);e.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}e.end()};this.event.mouse_left(i),this.event.mouse_right((function(t,i){e.destroy(),e.end()})),this.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y);var n=e.viewer.entities.getById(e.locationID);n&&(n.show=!0),e.position=i;var o=e.cartesian3Towgs84(i,e.viewer),s=Object(X.o)();if("EPSG:4326"===s)e.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=e.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);e.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}})),this.event.gesture_pinck_start((function(t,n){var o=new Date;t.position1.x,t.position2.x,t.position1.y,t.position2.y;e.event.gesture_pinck_end((function(){new Date-o>=500?(e.destroy(),e.end()):i(0,n)}))}))}}},{key:"destroy",value:function(){this.remove_entity(this.locationID),this.remove_entity(this.cache_id),Qo(t,"destroy",this,3)([])}},{key:"end",value:function(){Qo(t,"end",this,3)([])}}],[{key:"createLocation",value:function(e){e.viewer.entities.add(new Cesium.Entity({id:e.locationID,show:!1,position:new Cesium.CallbackProperty((function(){return e.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),font:"22px Microsoft YaHei",fillColor:new Cesium.Color.fromCssColorString(e.defaultColor),style:Cesium.LabelStyle.FILL_AND_OUTLINE,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(-100,-50)},billboard:{image:e.getSourceRootPath()+"/img/location.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,width:48,height:48}}))}},{key:"create_point",value:function(e){var t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,position:new Cesium.CallbackProperty((function(){return e.position}),!1),billboard:r()({image:e.getSourceRootPath()+"/img/point.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY},"color",Cesium.Color.WHITE.withAlpha(.99))})),t}}])}(ko);function es(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function ts(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var is=function(e){function t(e){return c()(this,t),es(this,t,[e,{text:"左键开始,右键取消"}])}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){ts(t,"start",this,3)([]),this.positions=[],this.position=new Cesium.Cartesian3,this.height=0,this.text="",this.circleRadius=0;var i=0;this.firstpoint=null;var n=function(n,o){if(null===e.firstpoint&&(e.positions.push(o),e.firstpoint=e.cartesian3Towgs84(o,e.viewer),e.ids.push(t.create_polygon(e)),e.ids.push(t.create_point(e,o))),i++,e.tip.setPosition(o,n.position.x,n.position.y),2===i){if(e.firstpoint){var s=e.cartesian3Towgs84(o,e.viewer);e.positions[1]=Cesium.Cartesian3.fromDegrees(e.firstpoint.lng,e.firstpoint.lat,s.alt),e.positions[2]=o,e.position=e.positions[1],e.circleRadius=e.computeDistance2([e.firstpoint,s]),e.height=Number((s.alt-e.firstpoint.alt).toFixed(2)),e.text="相对高度:"+e.height+" 米",e.tip.set_text("左键完成,右键取消;半径:"+e.circleRadius+" 米")}e.ids.push(t.create_point(e,o,{label:{text:"半径:"+e.circleRadius+" 米"}})),e.end()}};this.event.mouse_left(n),this.event.mouse_move((function(t,i){if(e.tip.setPosition(i,t.endPosition.x,t.endPosition.y),e.firstpoint){var n=e.cartesian3Towgs84(i,e.viewer);e.positions[1]=Cesium.Cartesian3.fromDegrees(e.firstpoint.lng,e.firstpoint.lat,n.alt),e.positions[2]=i,e.position=e.positions[1],e.circleRadius=e.computeDistance2([e.firstpoint,n]),e.height=Number((n.alt-e.firstpoint.alt).toFixed(2)),e.text="相对高度:"+e.height+" 米",e.tip.set_text("左键完成,右键取消;半径:"+e.circleRadius+" 米")}})),this.event.mouse_right((function(t,i){e.end(),e.destroy()})),this.event.gesture_pinck_start((function(t,i){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?(e.end(),e.destroy()):n(s,i)}))}))}}},{key:"end",value:function(){ts(t,"end",this,3)([])}},{key:"destroy",value:function(){ts(t,"destroy",this,3)([])}}],[{key:"create_polygon",value:function(e){var t=e.randomString();e.viewer.entities.add(new Cesium.Entity({id:t,billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)},position:new Cesium.CallbackProperty((function(){return e.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return e.text}),!1),scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999},ellipse:{height:new Cesium.CallbackProperty((function(){return e.height+e.firstpoint.alt}),!1),semiMinorAxis:new Cesium.CallbackProperty((function(t){return e.circleRadius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(t){return e.circleRadius}),!1),material:new Cesium.Color.fromCssColorString(e.defaultColor)}}));return t}},{key:"create_point",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.randomString(),o=e.cartesian3Towgs84(t,e.viewer),s={id:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:e.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return i.label&&(s.label={text:i.label.text,scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15)}),e.viewer.entities.add(new Cesium.Entity(s)),n}}])}(ko);function ns(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function os(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ss=function(e){function t(e){var i;return c()(this,t),(i=ns(this,t,[e,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return Me()(t,e),h()(t,[{key:"createPolyline",value:function(){var e=this,t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}})),t}},{key:"end",value:function(){os(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;os(t,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(t){t&&e.remove_entity(t)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.cartesian3Towgs84(e[0],this.viewer),i=this.cartesian3Towgs84(e[1],this.viewer),n=this.cartesian3Towgs84(e[2],this.viewer),o=turf.point([t.lng,t.lat]),s=turf.point([i.lng,i.lat]),a=turf.point([n.lng,n.lat]),r={units:"kilometers"},l=turf.rhumbDistance(o,s,r),c=turf.rhumbDistance(a,s,r),u=l;l>c&&(u=c);var h=turf.rhumbBearing(o,s),p=turf.rhumbBearing(a,s),d=Math.abs((h-p+360)%360);this.bearing=d>180?360-d:d,this.bearing=this.bearing.toFixed(2);var m=h-180,f=p-180,v=turf.lineArc(s,u/3,f,m);d>180&&(v=turf.lineArc(s,u/3,m,f));for(var g=[],y=0;y2&&e.caculateAngle([e.positions[0],e.positions[1],e.positions[2]])})),this.event.mouse_right((function(t,i){e.cancel()})),this.event.gesture_pinck_start((function(t,n){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?e.cancel():i(s,n)}))}))}}}])}(ko);function as(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function rs(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ls=function(e){function t(e){var i;return c()(this,t),(i=as(this,t,[e,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return Me()(t,e),h()(t,[{key:"createPolyline",value:function(){var e=this,t=e.randomString();return e.viewer.entities.add(new Cesium.Entity({id:t,polyline:{positions:new Cesium.CallbackProperty((function(){return e.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}})),t}},{key:"end",value:function(){rs(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;rs(t,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(t){t&&e.remove_entity(t)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=this.cartesian3Towgs84(e[1],this.viewer),i=this.cartesian3Towgs84(e[0],this.viewer),n=turf.point([t.lng,t.lat]),o=turf.point([i.lng,i.lat]),s=this.rhumbBearing(i,t);this.bearing=(180+s).toFixed(2);for(var a=turf.rhumbDistance(n,o,{units:"kilometers"}),r=turf.lineArc(n,a/3,0,this.bearing),l=[],c=0;c2&&e.caculateAngle([e.positions[0],e.positions[1]],[e.positions[2],e.positions[1]]),!(e.ids.length>=2)){t.next=9;break}return e.end(),t.abrupt("return");case 9:if(e.ids.push(e.create_point(n)),e.ids.push(e.create_point(n)),2!==e.ids.length){t.next=20;break}return e.label_id=Cesium.createGuid(),e.arc_id=Cesium.createGuid(),p=e.cartesian3Towgs84(n,e.viewer),t.next=17,e.sampleHeightMostDetailed([p]);case 17:d=t.sent,e.viewer.entities.add({id:e.arc_id,polyline:{positions:new Cesium.CallbackProperty((function(){return e.arcPositions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(e.options.color||e.defaultColor),zIndex:99999999}}),e.viewer.entities.add({id:e.label_id,position:Cesium.Cartesian3.fromDegrees(p.lng,p.lat,(d[0].height||0)+.1),label:{text:new Cesium.CallbackProperty((function(){return"方位夹角:"+e.bearing+"°"}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#f1e605"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}});case 20:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();this.event.mouse_left(i),this.event.mouse_move((function(t,i){if(e.tip.setPosition(i,t.endPosition.x,t.endPosition.y),e.cachePositions.length){var n;e.positions=e.cachePositions.concat(i);var o=e.cartesian3Towgs84(i,e.viewer),s=e.cartesian3Towgs84(e.positions[1],e.viewer),a=turf.point([s.lng,s.lat]),r=turf.point([o.lng,o.lat]),l={units:"kilometers"},c=turf.rhumbDistance(a,r,l),u=turf.destination(a,c,0,l);e.positions[0]=(n=Cesium.Cartesian3).fromDegrees.apply(n,nt()(u.geometry.coordinates))}e.positions.length>2&&e.caculateAngle([e.positions[0],e.positions[1]],[e.positions[2],e.positions[1]])})),this.event.mouse_right((function(t,i){e.cancel()})),this.event.gesture_pinck_start((function(t,n){var o=new Date,s={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e.event.gesture_pinck_end((function(){new Date-o>=500?e.cancel():i(s,n)}))}))}}}])}(ko);function cs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var us=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=cs(this,t,[e,n])).options.curve=n.curve||!1;var o=Number(n.number);return isNaN(o)?i.options.number=1/0:i.options.number=o<2?2:o,i}return Me()(t,e),h()(t,[{key:"smoothHandle",value:function(e){if(e.length>1){for(var t=[],i=[],n=0;n=r.options.number){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var u=r.smoothHandle(c);s=[];for(var h=0;h1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polyline:{positions:new Cesium.CallbackProperty((function(){return e.options.curve?e.smoothHandle(e.positions):e.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(e.color),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a);function hs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ps(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=ds(this,t,[e,n])).polygonHasCreated=!1,i.rectObject=[],i}return Me()(t,e),h()(t,[{key:"computedLastPoint",value:function(e){var t=e[0],i=e[1],n=Cesium.Cartesian3.subtract(i,t,new Cesium.Cartesian3),o=Cesium.Cartesian3.subtract(e[2],t,new Cesium.Cartesian3),s=Cesium.Cartesian3.dot(o,n)/Cesium.Cartesian3.magnitudeSquared(n),a=Cesium.Cartesian3.multiplyByScalar(n,s,new Cesium.Cartesian3),r=Cesium.Cartesian3.add(t,a,new Cesium.Cartesian3),l=Cesium.Cartesian3.distance(e[2],r),c=Cesium.Cartesian3.subtract(e[2],r,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(c,c);var u=Cesium.Cartesian3.multiplyByScalar(c,l,new Cesium.Cartesian3),h=Cesium.Cartesian3.add(i,u,new Cesium.Cartesian3),p=Cesium.Cartesian3.add(t,u,new Cesium.Cartesian3);return[ps({},h),ps({},p)]}},{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk);var c=0;this.positions=[],this.positionsLine=[],this.points_ids=[];var u=[],h=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",c++,r.positions=u.concat(ps({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r);r.points_ids.push(o)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),3==c&&(r.end(),e(null,r.rectObject))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e("取消",""))})),this.event.mouse_move((function(e,t){if("2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(ps({},t)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(e){return r.cartesian3Towgs84(e,r.viewer)}));r.rectObject=s}})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop(),r.positions=u.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e(null,h),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r);r.points_ids.push(s)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=u.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",c++,r.positions=u.concat(ps({},n)),r.tip.setPosition(n,i.position.x+r.viewer.canvas.width,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),3==c&&(r.end(),e(null,r.rectObject))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e("取消",""))})),this.event2D.mouse_move((function(e,t){if("3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(ps({},t)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(e){return r.cartesian3Towgs84(e,r.viewer)}));r.rectObject=s}})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),h.pop(),r.positions=u.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e(null,h),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}u.push(n),h.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=u.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.polygonHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(e.positions)})),material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return e.positions.concat(e.positions[0])})),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),i}}])}(Dn.a),fs=i(26);function vs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var gs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),vs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.viewer;e.entities.add(new Cesium.Entity({id:g.circle_id,position:new Cesium.CallbackProperty((function(e){if(v){var t=g.computeMidpoint(f,v);return Cesium.Cartesian3.fromDegrees(t.lng,t.lat,v.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(e){return d>1e3?"半径:"+(d/1e3).toFixed(2)+" 公里":"半径:"+d+" 米"}),!1),font:"20px Microsoft YaHei",distanceDisplayCondition:1e7,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(m))}),!1),material:Cesium.Color.fromCssColorString(g.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return h}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}}))};(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键开始,右键取消",this.sdk),this.event=new te.a(this.sdk);var u=0;this.circle_id=this.randomString();var h=[],p=[],d=1,m=[],f={},v=null;this.event.mouse_left((function(t,i){"2D"!==l&&(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c()),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e(!1))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),u&&(h=p.concat(t),v=r.cartesian3Towgs84(t,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event.gesture_pinck_start((function(t,i){if("2D"!==l){var n=new Date;r.event.gesture_pinck_end((function(){new Date-n>=500?(r.end(),e(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),p.push(i),c(),r.tip.setPosition(i,(t.position1.x+t.position2.x)/2,(t.position1.y+t.position2.y)/2)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,i){"3D"!==l&&(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c(r._sdk2D.viewer)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e(!1))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),u&&(h=p.concat(t),v=r.cartesian3Towgs84(t,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event2D.gesture_pinck_start((function(t,i){if("3D"!==l){var n=new Date;r.event2D.gesture_pinck_end((function(){new Date-n>=500?(r.end(),e(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),p.push(i),c(r._sdk2D.viewer),r.tip.setPosition(i,(t.position1.x+t.position2.x)/2+r.viewer.canvas.width,(t.position1.y+t.position2.y)/2)),2===u&&(h=p.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),e(null,{center:f,radius:Number(d)})))}))}})));var g=this}}},{key:"end",value:function(){this.remove_entity(this.circle_id),this.remove_entity(this.point_id),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(Dn.a);function ys(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var bs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ys(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l,c=function(){var e=Cesium.Cartesian3.fromDegrees(m[0].lng,m[0].lat),t=Cesium.Cartesian3.fromDegrees(m[1].lng,m[1].lat),i=Cesium.Cartesian3.fromDegrees(m[2].lng,m[2].lat);if(1===h){g=Cesium.Cartesian3.distance(e,t),f=(v=g)/2;var n={x:p.lng,y:p.lat},o={x:m[1].lng,y:m[1].lat},s=Math.PI/180,a=n.y*s,r=o.y*s,l=n.x*s,c=o.x*s,u=Math.sin(c-l)*Math.cos(r),d=Math.cos(a)*Math.sin(r)-Math.sin(a)*Math.cos(r)*Math.cos(c-l),C=Math.atan2(u,d)%(2*Math.PI);b=450-(180*C/Math.PI<0?360+180*C/Math.PI:180*C/Math.PI)}if(2===h){Cesium.Cartesian3.distance(e,i),y=Cesium.Cartesian3.distance(t,i);var w=turf.point([m[0].lng,m[0].lat]),k=turf.point([m[1].lng,m[1].lat]),_=turf.point([m[2].lng,m[2].lat]),x=turf.rhumbBearing(w,k),S=turf.rhumbBearing(k,_),E=Math.abs(x-S),P=E>180?360-E:E;P=180-P,f=y*Math.sin(Cesium.Math.toRadians(P))}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.viewer;e.entities.add(new Cesium.Entity({id:C.elliptic_id,position:Cesium.Cartesian3.fromDegrees(p.lng,p.lat),ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(e){return f}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(e){return v}),!1),granularity:Cesium.Math.toRadians(.1),rotation:new Cesium.CallbackProperty((function(e){return Cesium.Math.toRadians(b)}),!1),material:Cesium.Color.fromCssColorString(C.color),zIndex:99999999}}))};(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.entity_ids=[],YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键开始,右键取消",this.sdk),this.event=new te.a(this.sdk);var h=0;this.elliptic_id=this.randomString();var p,d=[],m=[],f=0,v=0,g=0,y=0,b=0;this.event.mouse_left((function(t,i){if("2D"!==l){if(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),h++,r.points_ids.push(r.create_point(i)),d.push(i),1===h){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);p=n,m=[n,n,n],c(),u()}if(2===h){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}h>=3&&(r.end(),e(null,{center:p,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e(!1))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),d[h]=t,m[h]=r.cartesian3Towgs84(t,r.viewer),0!==h&&c())})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),h++,r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),d.push(i),1===h){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);p=n,m=[n,n,n],c(),u(r._sdk2D.viewer)}if(2===h){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}h>=3&&(r.end(),e(null,{center:p,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e(!1))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),d[h]=t,m[h]=r.cartesian3Towgs84(t,r.viewer),0!==h&&c())})));var C=this}}},{key:"end",value:function(){var e=this;this.remove_entity(this.elliptic_id),this.points_ids.forEach((function(t){e.remove_entity(t)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(Dn.a);function Cs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var ws=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Cs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(e,i){if("2D"!==l){l="3D";var n=r.cartesian3Towgs84(i,r.viewer),o=c[c.length-1];if(!o||o.lng!==n.lng||o.lat!==n.lat){if(!r.entityHasCreated){var s=t.create_arrow_polygon(r);r.points_ids.push(s)}r.points_ids.push(r.create_point(i)),c.push(n),u=!1}}})),this.event.mouse_right((function(t,i){if("2D"!==l){var n=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){n.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),u&&r.positions.pop(),e(null,r.positions,n)}})),this.event.mouse_move((function(e,t){"2D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,r.positions,s)}else{if(!r.entityHasCreated){var a=t.create_arrow_polygon(r);r.points_ids.push(a)}r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",!r.entityHasCreated){var n=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(i,r.viewer)),u=!1}})),this.event2D.mouse_right((function(t,i){if("3D"!==l){var n=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){n.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),u&&r.positions.pop(),e(null,r.positions,n)}})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,r.positions,s)}else{if(!r.entityHasCreated){var a=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(a)}r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2)}}))}})))}}}],[{key:"create_arrow_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeAttackArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ks(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var l;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",!r.entityHasCreated){var o=t.create_arrow_polygon(r);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,s)}}})),this.event.mouse_right((function(t,i){"2D"!==l&&(r.end(),e("取消绘制"))})),this.event.mouse_move((function(e,t){"2D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(e,t){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),e("取消绘制");else{if(!r.entityHasCreated){var s=t.create_arrow_polygon(r);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,a)}}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",!r.entityHasCreated){var o=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){s.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,s)}}})),this.event2D.mouse_right((function(t,i){"3D"!==l&&(r.end(),e("取消绘制"))})),this.event2D.mouse_move((function(e,t){"3D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(t,r.viewer)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(e,t){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),e("取消绘制");else{if(!r.entityHasCreated){var s=t.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(e){a.push(r.cartesian3Towgs84(e,r.viewer))}));r.end(),e(null,c,a)}}}))}})))}}}],[{key:"create_arrow_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer;e.entityHasCreated=!0;var i=e.randomString();return t.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computePincerArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=xs(this,t,[e,n])).points=null,i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n;Ss(t,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(t,s){if("2D"!==n&&(n="3D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s)),2===i.points_ids.length)){var r=[o[0],o[1]];e(null,r),i.end()}}})),this.event.mouse_move((function(e,o){if("2D"!==n&&(i.tip.setPosition(o,e.endPosition.x,e.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=t.polygon(i))}})),this.event.mouse_right((function(t,o){"2D"!==n&&(e(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=t.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),2===i.points_ids.length)){var r=[o[0],o[1]];e(null,r),i.end()}}})),this.event2D.mouse_move((function(e,o){if("3D"!==n&&(i.tip.setPosition(o,e.endPosition.x+i.viewer.canvas.width,e.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=t.polygon(i,i._sdk2D.viewer))}})),this.event2D.mouse_right((function(t,o){"3D"!==n&&(e(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=t.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Ss(t,"end",this,3)([]),this.viewer.entities.remove(this.arrowPolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.arrowPolygon)}}],[{key:"polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(new Cesium.Entity({name:"ArrowPolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeStraightArrow(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ps(this,t,[e,n])).rhumb=n.rhumb,i.polygonHasCreated=!1,i.rect=[],i.rectObj=[],i.entity=null,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r=this,l=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var c;(i=t,n="start",o=this,s=3,a=On()(Oe()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消",l.sdk),this.event=new te.a(l.sdk),this.positions=[],this.points_ids=[];var u=0,h=null,p=null;this.event.mouse_left((function(i,n){if("2D"!==c){c="3D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=t.create_polygon(r);r.points_ids.push(s),h=o}2==u&&(p=o,r.end(),e(null,l.rectObj,[h,p]))}})),this.event.mouse_right((function(t,i){"2D"!==c&&(r.end(),e("取消",""))})),this.event.mouse_move((function(e,t){if("2D"!==c&&(r.tip.setPosition(t,e.endPosition.x,e.endPosition.y),1==u)){var i=r.cartesian3Towgs84(t,r.viewer);r.calrect(h,i)}})),this.event.gesture_pinck_start((function(i,n){if("2D"!==c){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)e("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=t.create_polygon(r);r.points_ids.push(a),h=s}2==u&&(r.calrect(h,s),p=s,r.end(),e(null,l.rectObj,[h,p]))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==c){c="2D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s),h=o}2==u&&(p=o,r.end(),e(null,l.rectObj,[h,p]))}})),this.event2D.mouse_right((function(t,i){"3D"!==c&&(r.end(),e("取消",""))})),this.event2D.mouse_move((function(e,t){if("3D"!==c&&(r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y),1==u)){var i=r.cartesian3Towgs84(t,r.viewer);r.calrect(h,i)}})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==c){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)e("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=t.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(a),h=s}2==u&&(r.calrect(h,s),p=s,r.end(),e(null,l.rectObj,[h,p]))}}))}})))}}},{key:"calrect",value:function(e,t){var i,n=[],o=[],s=[];if(n.push([e.lng,e.lat,e.alt],[t.lng,t.lat,t.alt]),2===n.length){var a=turf.lineString(n),r=turf.bbox(a);i=turf.bboxPolygon(r)}i&&(i.geometry.coordinates[0].forEach((function(t){o.push(t[0]),o.push(t[1]);var i={lng:t[0],lat:t[1],alt:e.alt};s.push(i)})),this.rect=[].concat(o),this.rectObj=[].concat(s),this.rectObj.pop())}}],[{key:"create_polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(this.entity=new Cesium.Entity({id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(e.rect))}),!1),material:Cesium.Color.fromCssColorString(e.color),arcType:e.rhumb?Cesium.ArcType.RHUMB:Cesium.ArcType.GEODESIC,zIndex:99999999}})),i}}])}(Dn.a);function Ds(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}function Ms(e,t,i,n){var o=On()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Ts=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ds(this,t,[e,n])).points=null,i.polygonHasCreated=!1,i}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n;Ms(t,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确定,右键取消;",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(t,s){if("2D"!==n&&(n="3D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];e(null,a),i.end()}})),this.event.mouse_move((function(e,s){if("2D"!==n&&(i.tip.setPosition(s,e.endPosition.x,e.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=t.polygon(i)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(e){a.push([e.lng,e.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event.mouse_right((function(t,o){"2D"!==n&&(e(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=t.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];e(null,a),i.end()}})),this.event2D.mouse_move((function(e,s){if("3D"!==n&&(i.tip.setPosition(s,e.endPosition.x+i.viewer.canvas.width,e.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=t.polygon(i,i._sdk2D.viewer)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(e){a.push([e.lng,e.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event2D.mouse_right((function(t,o){"3D"!==n&&(e(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),e(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),e(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=t.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Ms(t,"end",this,3)([]),this.viewer.entities.remove(this.assemblePolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.assemblePolygon)}},{key:"calculateVector",value:function(e,t,i){var n,o,s,a,r,l;t||(t=Math.PI/2),i||(i=1);var c=Math.sqrt(e.x*e.x+e.y*e.y);if(0==e.y)n=o=c*i*Math.cos(t)/e.x,e.x>0?a=-(s=Math.sqrt(i*i-n*n)):e.x<0&&(s=-(a=Math.sqrt(i*i-n*n))),r={x:n,y:s},l={x:o,y:a};else{var u=-e.x/e.y,h=i*c*Math.cos(t)/e.y,p=1+u*u,d=2*u*h,m=h*h-i*i;s=u*(n=(-d-Math.sqrt(d*d-4*p*m))/(2*p))+h,a=u*(o=(-d+Math.sqrt(d*d-4*p*m))/(2*p))+h,e.y>=0?(r={x:n,y:s},l={x:o,y:a}):e.y<0&&(r={x:o,y:a},l={x:n,y:s})}return[r,l]}},{key:"createCloseCardinal",value:function(e){if(null==e||e.length<3)return e;var t=e[0];e.push(t);for(var i=e,n=[],o=.4,s=i.length-1,a=0;a<=s-1;a++){var r=void 0,l=void 0,c=void 0;a==s-1?(r=i[s-1],l=i[0],c=i[1]):(r=i[a],l=i[a+1],c=i[a+2]);var u={x:void 0,y:void 0},h={x:void 0,y:void 0},p={x:l.x-r.x,y:l.y-r.y},d={x:c.x-l.x,y:c.y-l.y},m=Math.sqrt(p.x*p.x+p.y*p.y),f=Math.sqrt(d.x*d.x+d.y*d.y),v={x:p.x/m,y:p.y/m},g={x:d.x/f,y:d.y/f},y={x:v.x+g.x,y:v.y+g.y},b=Math.sqrt(y.x*y.x+y.y*y.y),C={x:y.x/b,y:y.y/b},w=(v.x*g.x+v.y*g.y)/1;Math.abs(1-w)<.005?(u.x=l.x-g.x*m*o,u.y=l.y-g.y*m*o,h.x=l.x+v.x*f*o,h.y=l.y+v.y*f*o):(u.x=l.x-C.x*m*o,u.y=l.y-C.y*m*o,h.x=l.x+C.x*f*o,h.y=l.y+C.y*f*o),a==s-1?(n[0]=l,n[1]=h,n[3*(s-2)+2+3]=u,n[3*(s-2)+2+4]=i[s]):(n[3*a+2+0]=u,n[3*a+2+1]=l,n[3*a+2+2]=h)}return n}},{key:"calculatePointsFBZ3",value:function(e,t){t||(t=20);var i=[],n=.05;t>0&&(n=1/t);for(var o=0;o=e.length&&i.push(s)}return i}}],[{key:"polygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.viewer,i=e.randomString();return t.entities.add(new Cesium.Entity({name:"AssemblePolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(t){for(var i=e.computeAssemble(e.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Ns(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"start",value:function(e){var i,n,o,s,a,r,l=this,c=this;YJ.Measure.GetMeasureStatus()?e("上一次测量未结束"):((n=t,o="start",s=this,a=3,r=On()(Oe()(1&a?n.prototype:n),o,s),2&a&&"function"==typeof r?function(e){return r.apply(s,e)}:r)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确认,右键取消",c.sdk),this.event=new te.a(c.sdk),this._sector_id=null,this._positions=[],this.points_ids=[],this._entities_sector=[],this._radius=0,this._startAngle=0,this._endAngle=0,this.event.mouse_left((function(t,n){if("2D"!==i&&(i="3D",l._positions.length<3?(l.points_ids.push(l.create_point(n)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),e(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=Cesium.Cartesian3.fromDegrees(l._positions[0].lng,l._positions[0].lat,l._positions[0].alt),s=n;l._radius=Cesium.Cartesian3.distance(o,s)}})),this.event.mouse_move((function(e,t){if("2D"!==i&&(l.tip.setPosition(t,e.endPosition.x,e.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(t,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(t,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event.mouse_right((function(t,n){"2D"!==i&&(l.end(),e(null))})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,n){if("3D"!==i&&(i="2D",l._positions.length<3?(l.points_ids.push(l.create_point(n,l._sdk2D.viewer)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),e(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=Cesium.Cartesian3.fromDegrees(l._positions[0].lng,l._positions[0].lat,l._positions[0].alt),s=n;l._radius=Cesium.Cartesian3.distance(o,s)}})),this.event2D.mouse_move((function(e,t){if("3D"!==i&&(l.tip.setPosition(t,e.endPosition.x+l.viewer.canvas.width,e.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(t,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(t,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(l._sdk2D.viewer),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event2D.mouse_right((function(t,n){"3D"!==i&&(l.end(),e(null))}))))}},{key:"createsector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,t=this,i=new Cesium.CallbackProperty((function(){var e=t.calSector(t._positions[0],t._radius,t._startAngle,t._endAngle);return new Cesium.PolygonHierarchy(e)})),n=t.randomString(),o=e.entities.add({id:n,position:Cesium.Cartesian3.fromDegrees(t._positions[0].lng,t._positions[0].lat),polygon:{hierarchy:i,show:!0,fill:!0,clampToGround:!0,material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999}});return t._entities_sector.push(o),n}},{key:"cartesianToLatlng",value:function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return[Cesium.Math.toDegrees(t.longitude),i]}},{key:"lonLatToMercator",value:function(e){var t=e[0],i=e[1],n=20037508.34*t/180,o=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return[n,o=20037508.34*o/180]}},{key:"WebMercator2lonLat",value:function(e){var t=e[0]/20037508.34*180,i=e[1]/20037508.34*180;return[t,180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"calculateAangle",value:function(e){function t(e,t){var i=Math.PI/180,n=e.y*i,o=t.y*i,s=e.x*i,a=t.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=e[0],n=e[1],o=e[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:t(s,a),angle2:t(s,r)}}}])}(Dn.a),js=52.35987755982988,As=3.141592653589793,Ls=.006693421622965943,Is=function(){return h()((function e(){c()(this,e)}),null,[{key:"BD09ToGCJ02",value:function(e,t){var i=+e-.0065,n=+t-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*js),s=Math.atan2(n,i)-3e-6*Math.cos(i*js);return[o*Math.cos(s),o*Math.sin(s)]}},{key:"GCJ02ToBD09",value:function(e,t){t=+t,e=+e;var i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*js),n=Math.atan2(t,e)+3e-6*Math.cos(e*js);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[e+i[0],t+i[1]]}},{key:"GCJ02ToWGS84",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}},{key:"delta",value:function(e,t){var i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35),o=t/180*As,s=Math.sin(o);s=1-Ls*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*As),n=180*n/(6378245*(1-Ls)/(s*a)*As)]}},{key:"transformLng",value:function(e,t){var i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*As)+20*Math.sin(2*e*As))/3,i+=2*(20*Math.sin(e*As)+40*Math.sin(e/3*As))/3,i+=2*(150*Math.sin(e/12*As)+300*Math.sin(e/30*As))/3}},{key:"transformLat",value:function(e,t){var i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*As)+20*Math.sin(2*e*As))/3,i+=2*(20*Math.sin(t*As)+40*Math.sin(t/3*As))/3,i+=2*(160*Math.sin(t/12*As)+320*Math.sin(t*As/30))/3}},{key:"out_of_china",value:function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}}])}();function Rs(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var zs=function(e){function t(e,i){var n;return c()(this,t),(n=Rs(this,t,[e,i])).sdk.addIncetance(n.options.id,n),n.options.show&&Object(Z.f)(0,n.options.id),n}return Me()(t,e),h()(t,[{key:"setDefaultValue",value:function(){var e,i,o,s,a;(e=t,i="setDefaultValue",o=this,s=3,a=On()(Oe()(1&s?e.prototype:e),i,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.options.host=this.options.host||Object(n.a)()}},{key:"requestResource",value:function(){var e="";return e=this.options.host.endsWith("yjearth4.0")?this.options.host+"/data/service/load-compact-service":this.options.host+"/yjearth4.0/data/service/load-compact-service",fetch(e,{method:"post",body:JSON.stringify({source_id:this.options.id}),headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}})}}])}(vt);function Fs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Hs(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Vs(this,t,[e,i])).options.name=i.name||"未命名对象",n.Dialog=o,n._elms={},n}return Me()(t,e),h()(t,[{key:"setDefaultValue",value:function(){var e,i;Gs(t,"setDefaultValue",this,3)([]),this.options.alpha=null!==(e=this.options.alpha)&&void 0!==e?e:1,this.options.brightness=null!==(i=this.options.brightness)&&void 0!==i?i:1}},{key:"layerIndex",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"layer_index",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"brightness",get:function(){return this.options.brightness},set:function(e){this.options.brightness=Number(e),this.entity.brightness=Number(e)}},{key:"alpha",get:function(){return this.options.alpha},set:function(e){(e=Number(e))>1&&(e=1),e<0&&(e=0),this.entity.alpha=e,this.options.alpha=e,this._elms.alpha&&this._elms.alpha.forEach((function(t){t.value=e}))}},{key:"layerRaise",value:function(e){this.sdk.viewer.imageryLayers.raise(this.entity);for(var t=0;t0&&void 0!==r[0]&&r[0],!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(t={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),a={lng:0,lat:0},this.options.position?a=Hs({},this.options.position):this.options.positions?a=Hs({},this.options.positions[0]):this.options.center?a=Hs({},this.options.center):this.options.start?a=Hs({},this.options.start):(this.options.hasOwnProperty("lng")&&(a.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(a.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(a.alt=this.options.alt)),a.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(a);case 17:a.alt=e.sent;case 18:i=this.options.customView.relativePosition.lng+a.lng,n=this.options.customView.relativePosition.lat+a.lat,o=this.options.customView.relativePosition.alt+a.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:t}),e.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity);case 26:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"amapMercatorTilingScheme",value:function(e){return new(function(e){function t(e){var i;c()(this,t),i=Vs(this,t,[e]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(e,t){return t=Is.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),t=n.project(new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))),new Cesium.Cartesian2(t.x,t.y)},i._projection.unproject=function(e,t){var i=n.unproject(e);return t=Is.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},i}return Me()(t,e),h()(t)}(Cesium.WebMercatorTilingScheme))(e)}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),e.next=5,new Be(this.sdk,this.options,{title:"底图属性",left:"180px",top:"100px",confirmCallBack:function(e){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Object(Z.g)(s.sdk,s.options.id);var t=Object(J.a)();if(t&&t!=s.sdk)for(var i=0;i\n
            \n
            \n
            \n 名称:\n \n
            \n
            \n
            \n
            \n 透明度:\n \n
            \n
            \n
            \n ',t.innerHTML=i,n=t.getElementsByClassName("name")[0],o=t.getElementsByClassName("alpha")[0],n.value=this.name,o.value=this.alpha,n.addEventListener("input",(function(){s.name=n.value})),o.addEventListener("input",(function(){s.alpha=o.value})),this._DialogObject.contentAppChild(t),this._elms.name=[n],this._elms.alpha=[o];case 19:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){(this.entity||this._DialogObject)&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.alpha=this.options.alpha,this.brightness=this.options.brightness)}},{key:"flicker",value:function(){}}]);var i,n}(zs);function Us(e,t,i){return t=Oe()(t),Ee()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var Ys=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Us(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"createArcGis",value:(i=_()(S.a.mark((function e(t){var i,n,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=6;break}return e.next=3,Cesium.ArcGisMapServerImageryProvider.fromUrl(t);case 3:i=e.sent,e.next=7;break;case 6:i=new Cesium.ArcGisMapServerImageryProvider({url:t});case 7:for(this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i,this.options.layerIndex):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i),this.entity._id=this.options.id,n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Zs(this,t,[e,i])}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"createGD",value:function(e){var t=new Cesium.UrlTemplateImageryProvider({url:e,minimumLevel:3,maximumLevel:18,tilingScheme:this.amapMercatorTilingScheme()});this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(t,this.options.layerIndex):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(t),this.entity._id=this.options.id;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8"),i}return Me()(t,e),h()(t)}(Ks),$s=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}"),i}return Me()(t,e),h()(t)}(Ks),ea=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Zs(this,t,[e,n])).createGD("https://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"),i}return Me()(t,e),h()(t)}(Ks);function ta(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ia(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ia(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=107)){e.next=19;break}return e.next=14,Cesium.Cesium3DTileset.fromUrl(n,r);case 14:l=e.sent,this.entity=l,this.entity.imageBasedLighting.luminanceAtZenith=.1,e.next=25;break;case 19:return r.url=n,l=new Cesium.Cesium3DTileset(r),e.next=23,l.readyPromise;case 23:this.entity=e.sent,this.entity.imageBasedLighting.luminanceAtZenith=.1;case 25:return e.next=27,this.loadSceneTree(n);case 27:if(c=function(e){if(e._contents)for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=ma(this,t,[e,n])).picking=!1,i.on(),i.Dialog=o,i._elms={},i._EventBinding=new Ye,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"tileset"}},{key:"on",value:function(){return this.loadTileset(this.options)}},{key:"name",get:function(){return this.newData.name},set:function(e){this.newData.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.newData.height},set:function(e){this.newData.height=e,this.options.position.alt=e,this._elms.height&&this._elms.height.forEach((function(t){t.value=e})),this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"accuracy",get:function(){return this.newData.accuracy},set:function(e){var t=this;this.newData.accuracy=Number(e.toFixed(1)),this.newData.accuracy<.1&&(this.newData.accuracy=.1),this.entity&&(this.entity.maximumScreenSpaceError=32/this.newData.accuracy),this._elms.accuracy&&this._elms.accuracy.forEach((function(e){e.value=t.newData.accuracy}))}},{key:"lng",get:function(){return this.newData.lng},set:function(e){this.newData.lng=e,this.options.position.lng=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"lat",get:function(){return this.newData.lat},set:function(e){this.newData.lat=e,this.options.position.lat=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"roll",get:function(){return this.newData.roll},set:function(e){this.newData.roll=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"heading",get:function(){return this.newData.heading},set:function(e){this.newData.heading=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"pitch",get:function(){return this.newData.pitch},set:function(e){this.newData.pitch=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"transparency",get:function(){return this.newData.transparency},set:function(e){if(this.newData){this.newData.transparency=Number(e),this._elms.transparency&&this._elms.transparency.forEach((function(t){t.value=e}));var t=this.newData.transparency;this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+t+")"],["true","color('rgba(255,255,255,"+t+")')"]]},show:!0})}}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]&&n[0],e.abrupt("return");case 12:this._DialogObject=e.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(t=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 精度\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 透视\n \n
            \n
            \n
            \n ',this._DialogObject.contentAppChild(t),i=t.getElementsByTagName("*"),this._EventBinding.on(this,i),this._elms=this._EventBinding.element,e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"updateModel",value:function(e,t,i){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!e&&0!==e||!t&&0!==t||!i&&0!==i)){var c=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),u=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(a)),h=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(r)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=Cesium.Matrix4.fromRotationTranslation(h),v=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,d,v),Cesium.Matrix4.multiply(v,m,v),Cesium.Matrix4.multiply(v,f,v);var g=Cesium.Matrix4.fromUniformScale(l);Cesium.Matrix4.multiply(v,g,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:e,lat:t,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:a,z:r}),this.editObj&&this.editObj.update(),clearTimeout(this._updateModelTimeout),this._updateModelTimeout=setTimeout((function(){clearTimeout(n._updateModelTimeout);var e,t=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([t.lng,t.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=pa(n.sdk.entityMap);try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);if("BillboardObject"===r.type&&3==r.heightMode){var l=turf.point([r.lng,r.lat]);turf.booleanPointInPolygon(l,i)&&r.updateHeight()}else r.label&&(r.label.show=r.label.show)}}catch(e){o.e(e)}finally{o.f()}}),300)}}},{key:"reset",value:function(){this.editObj.destroy(),this.entity&&(this.transparency=this.oldData.transparency,this.name=this.oldData.name,this.height=this.oldData.height,this.lng=this.oldData.lng,this.lat=this.oldData.lat,this.roll=this.oldData.roll,this.heading=this.oldData.heading,this.pitch=this.oldData.pitch,this.scale=this.oldData.scale,this.accuracy=this.oldData.accuracy,this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+this.transparency+")"],["true","color('rgba(255,255,255,"+this.transparency+")')"]]},show:!0}))}}]);var i}(ha);function va(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return ga(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ga(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),wa(i=Ca(this,t,[e,n]),Sa,void 0),i.picking=!1,i.features=n.features||[],i.exportStateArray=[],i.Dialog=o,i._elms={},i._EventBinding=new Ye,i.Dialog.exportState=function(e){i.exportState(e)},i.Dialog.exportProperty=function(e){i.exportProperty(i.exportStateArray)},i.features=new Map,i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"bim"}},{key:"name",get:function(){return this.newData.name},set:function(e){this.newData.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.newData.lng},set:function(e){this.newData.lng=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.newData.lat},set:function(e){this.newData.lat=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.newData.height},set:function(e){this.newData.height=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.height&&this._elms.height.forEach((function(t){t.value=e}))}},{key:"roll",get:function(){return this.newData.roll},set:function(e){this.newData.roll=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.roll&&this._elms.roll.forEach((function(t){t.value=e}))}},{key:"heading",get:function(){return this.newData.heading},set:function(e){this.newData.heading=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.heading&&this._elms.heading.forEach((function(t){t.value=e}))}},{key:"pitch",get:function(){return this.newData.pitch},set:function(e){this.newData.pitch=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.pitch&&this._elms.pitch.forEach((function(t){t.value=e}))}},{key:"scale",get:function(){return this.newData.scale},set:function(e){this.newData.scale=e,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.scale&&this._elms.scale.forEach((function(t){t.value=e}))}},{key:"loadSceneTree",value:(a=_()(S.a.mark((function e(t){var i,n=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=t.split("/"))[i.length-1]="scenetree.json",e.next=4,Cesium.Resource.fetchJson({url:i.join("/")}).then((function(e){n.scenetree=e;var t=function(e){e.forEach((function(e){n.features.has(e.id)?n.features.get(e.id).sphere=e.sphere:n.features.set(e.id,{sphere:e.sphere}),e.children&&t(e.children)}))};t(e.scenes[0].children)}));case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n,o=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=16;break}return e.next=6,new Be(this.sdk,this.newData,{title:"BIM模型属性",left:"180px",top:"100px",resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},confirmCallBack:function(e){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o._DialogObject.close();var t=new Map;o.features.forEach((function(e,i){var n=ba({},e);delete n.features,t.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(ba(ba({},o.oldData),{},{features:t,type:o.type})),Object(Z.g)(o.sdk,o.oldData.id)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.editObj.destroy(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(e){o.newData.show=e,o.entity&&(o.entity.show=e),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0}});case 6:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" tileset-bim",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n x轴\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n y轴\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n z轴\n \n
            \n
            \n
            \n
            \n 大小\n \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n
            \n
            \n

            BIM属性导出选项

            \n
            \n
            \n
            \n
            \n
            \n \n 修建中\n
            \n
            \n \n 未完成\n
            \n
            \n \n 已完成\n
            \n
            \n
            \n \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,e.next=17;break;case 16:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"featureEdit",value:(n=_()(S.a.mark((function e(t,i){var n,o,s,a,r,l,c,u,h,p,d=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}o=function(e){var t='
            \n
            \n \n \n \n \n
            \n
            '),i=document.createElement("div");i.innerHTML=t;var s=i.getElementsByClassName("property-item")[0],r=s.querySelector("input[name='key']"),l=s.querySelector("input[name='value']"),u=s.getElementsByClassName("add")[0],h=s.getElementsByClassName("delete")[0];r.addEventListener("input",(function(t){e.key=t.target.value})),l.addEventListener("input",(function(t){e.value=t.target.value})),u.addEventListener("click",(function(){var e={id:n.randomString(),key:"点击此处可编辑",value:""};a.descriptions.push(e),o(e)})),h.addEventListener("click",(function(t){for(var i=0;i.content {\n width: 440px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 110px;\n }\n .col:first-child {\n margin-right: 10px;\n }\n .col:last-child {\n margin-left: 10px;\n }\n .YJ-custom-base-dialog>.content .divide {\n position: relative;\n display: flex;\n align-items: center;\n margin: 20px 0;\n }\n .YJ-custom-base-dialog>.content .divide .line{\n height: 1px;\n background: #ddd;\n flex: 1;\n }\n .YJ-custom-base-dialog>.content .divide p{\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .property .property-item .btn{\n font-size: 24px;\n line-height: 20px;\n padding: 2px 0;\n }\n .YJ-custom-base-dialog>.content .property .property-item .input_lable {\n flex: 0 0 115px;\n border: none;\n margin-right: 15px;\n text-align: right;\n }\n .YJ-custom-base-dialog>.content .property .property-item:first-child .delete{\n display: none\n }\n .YJ-custom-base-dialog>.content .property .property-item .add{\n display: none;\n }\n .YJ-custom-base-dialog>.content .property .property-item:last-child .add{\n display: inline-block;\n }\n",e.next=24,new Te.a(this.sdk.viewer._container,{title:this.oldData.name+"-----设置状态",left:"calc(50% - 200px)",top:"calc(50% - 200px)",closeCallBack:function(){d.Dialog.closeCallBack&&d.Dialog.closeCallBack()}});case 24:return this._DialogObject=e.sent,e.next=27,this._DialogObject.init();case 27:for(document.getElementsByTagName("head")[0].appendChild(this._element_style),(r=document.createElement("div")).innerHTML='\n
            \n
            \n 构件名称\n \n
            \n
            \n
            \n
            \n 选择状态\n \n
            \n
            \n
            \n
            \n

            自定义属性

            \n
            \n
            \n
            \n
            \n ',r.querySelector("input[name='name']").value=s,(l=r.querySelector("select[name='state-select']")).value=a.state,l.addEventListener("change",(function(e){switch(a.state=e.target.value,a.state){case"0":a.stateCH="";break;case"1":a.stateCH="已完成";break;case"2":a.stateCH="未完成";break;case"3":a.stateCH="修建中"}})),c=r.getElementsByClassName("property")[0],u=0;u3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!e&&0!==e||!t&&0!==t||!i&&0!==i)){var c=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),u=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(a)),h=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(r)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=Cesium.Matrix4.fromRotationTranslation(h),v=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,d,v),Cesium.Matrix4.multiply(v,m,v),Cesium.Matrix4.multiply(v,f,v);var g=Cesium.Matrix4.fromUniformScale(l);Cesium.Matrix4.multiply(v,g,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:e,lat:t,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:a,z:r}),this.editObj&&this.editObj.update(),clearTimeout(_a(Sa,this)),ka(Sa,this,setTimeout((function(){clearTimeout(_a(Sa,n));var e,t=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([t.lng,t.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=va(n.sdk.entityMap);try{for(o.s();!(e=o.n()).done;){var a=s()(e.value,2),r=(a[0],a[1]);if("BillboardObject"===r.type&&3==r.heightMode){var l=turf.point([r.lng,r.lat]);turf.booleanPointInPolygon(l,i)&&r.updateHeight()}else r.label&&(r.label.show=r.label.show)}}catch(e){o.e(e)}finally{o.f()}}),300))}}},{key:"getScenetree",value:function(){return this.scenetree}},{key:"featureColor",value:function(e,t){if(this.features.has(e)){var i=this.features.get(e).features;for(var n in i)i[n].content._model&&(i[n].color=Cesium.Color.fromCssColorString(t)),i[n].customColor=Cesium.Color.fromCssColorString(t);this.features.get(e).customColor=Cesium.Color.fromCssColorString(t)}}},{key:"getFeatureColor",value:function(e){if(this.features.has(e)){if(this.features.get(e).customColor)return this.features.get(e).customColor;var t=this.features.get(e).features;for(var i in t)if(t[i].content._model)return t[i].customColor||t[i].color}}},{key:"featureShow",value:function(e,t){if(this.features.has(e)){var i=this.features.get(e).features;for(var n in i)i[n].content._model&&(i[n].show=t),i[n].customShow=t;this.features.get(e).customShow=t}}},{key:"featureFlyto",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.features.has(t)?(i=this.features.get(t).sphere,n=new Cesium.Cartesian3(i[0],i[1],i[2]),o=this.entity._root.originalTransform,o=Cesium.Matrix4.inverse(o,new Cesium.Matrix4),s=this.entity._root.transform,a=Cesium.Matrix4.multiply(s,o,new Cesium.Matrix4),r=Cesium.Matrix4.multiplyByPoint(a,n,new Cesium.Cartesian3),l=this.cartesian3Towgs84(r,this.sdk.viewer),c=Cesium.Cartesian3.fromDegrees(l.lng,l.lat,l.alt+i[3]),Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),this.sdk.viewer.camera.flyTo({destination:c}),this.features.forEach((function(e,i){if(i===t){var n=u.getFeatureColor(t);if(u.features.has(t)&&n){var o=u.features.get(t).features;for(var s in o)o[s].content._model&&(o[s].color=n),o[s].customAlpha=1;u.features.get(t).customAlpha=1}}else{var a=u.getFeatureColor(i);if(u.features.has(i)&&a){var r=u.features.get(i).features;for(var l in r)r[l].content._model&&(r[l].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(a.red),",").concat(Cesium.Color.floatToByte(a.green),",").concat(Cesium.Color.floatToByte(a.blue),",").concat(.2*a.alpha,")"))),r[l].customAlpha=.2*a.alpha;u.features.get(i).customAlpha=.2*a.alpha}}}))):this.features.forEach((function(e,t){var i=u.features.get(t).features,n=u.getFeatureColor(t);if(n){for(var o in i)i[o].content._model&&(i[o].color=n),i[o].customAlpha=1;u.features.get(t).customAlpha=.2*n.alpha}}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"exportProperty",value:function(e){if(0!==this.exportStateArray.length){for(var t,i=["name","","","","","","","","","","","","stateCH","descriptions"],n='{rows}
            ',o=function(e,t){return e.replace(/{(\w+)}/g,(function(e,i){return t[i]}))},s="",a="",r="",l=0;l构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性'),r+="",i){if(Array.isArray(this.features[l][i[u]])){var h="";for(var p in this.features[l][i[u]])h+="".concat(this.features[l][i[u]][p].key+":"+this.features[l][i[u]][p].value," ");s={nameType:"String",data:h}}else s={nameType:"String",data:this.features[l][i[u]]||"0"};r+=o('{data}',s)}r+="",l>0&&l/6e4%1==0&&(a+=o(n,s={rows:r,nameWS:"Sheet"+l}),r="",r+='构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性')}a+=o(n,s={rows:r,nameWS:"Sheet"}),r="",t=o('Axel Richter{created}{worksheets}',s={created:(new Date).getTime(),worksheets:a});var d,m=document.createElement("A");m.href="data:application/vnd.ms-excel;base64,"+(d=t,window.btoa(unescape(encodeURIComponent(d)))),m.download=this.oldData.name+"--构件属性.xls",m.target="_blank",document.body.appendChild(m),m.click(),document.body.removeChild(m)}else window.ELEMENT&&window.ELEMENT.Message({message:"未选择属性导出选项!",type:"warning",duration:1500})}},{key:"exportState",value:function(e){var t=e.target.getElementsByTagName("input")[0];if(t.checked=!t.checked,t.checked)this.exportStateArray.push(t.value),this.exportStateArray=Array.from(new Set(this.exportStateArray));else for(var i=0;i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 最大比例\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 最小像素\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 固定大小\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n
            \n
            \n

            旋转

            \n
            \n
            \n
            \n x 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n y 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n z 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n\n
            \n
            \n 缩放\n
            \n \n 是否等比例缩放\n
            \n
            \n
            \n \n \n
            \n

            高度

            \n
            \n
            \n
            \n 高度\n \n
            \n \n m\n \n
            \n
            \n
            \n\n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Oa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Da(e){for(var t=1;t=0;j--){var A=B[j];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}}(e)})),this.MapEvent.mouse_left_down((function(i){var n=a.scene.cartesianToCanvasCoordinates(e.origin);g.x=i.position.x-Math.floor(n.x),g.y=i.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(i.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(t.activeAxis)t.activeAxis=null,t.activeModelParam=null,t.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,t.activeAxis=r.primitive,t.activeModelParam=t.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(e){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(o._params.rx=1),o._params.rx<0&&(o._params.rx=360);Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o._params.rx));o._params.ry-=r,o._params.ry>360&&(o._params.ry=1),o._params.ry<0&&(o._params.ry=360);Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o._params.ry));o._params.rz-=l,o._params.rz>360&&(o._params.rz=1),o._params.rz<0&&(o._params.rz=360),o.updateModel(o._params.tx,o._params.ty,o._params.tz,o._params.rx,o._params.ry,o._params.rz)}else{var h=Date.now();if(h-_<100)return clearTimeout(k),void(k=setTimeout((function(){e(t)}),100));clearTimeout(k),_=h;for(var p=o.coordCircles,d=0;d3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=e=parseFloat(parseFloat(e).toFixed(8)),this._params.ty=t=parseFloat(parseFloat(t).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.model.position=new Cesium.Cartesian3.fromDegrees(e,t,i),this.model.rotate={x:n,y:o,z:s};var a=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),r=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),l=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),c=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),u=Cesium.Matrix4.fromRotationTranslation(a),h=Cesium.Matrix4.fromRotationTranslation(r),p=Cesium.Matrix4.fromRotationTranslation(l),d=new Cesium.Matrix4;Cesium.Matrix4.multiply(c,u,d),Cesium.Matrix4.multiply(d,h,d),Cesium.Matrix4.multiply(d,p,this.model.modelMatrix),this.transformCallBack}},{key:"transformCallBack",get:function(){this._transformCallBack&&this._transformCallBack(this._params)},set:function(e){this._transformCallBack=e}},{key:"createAxisArrow",value:function(e,t,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=e,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(e,t,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:e,geometry:new Cesium.PolylineGeometry({positions:t,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=e,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var e=0;e=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),i=Ia(this,t,[e,n,o={}]),n.position?n.position.lng||0===n.position.lng?n.position.lat||0===n.position.lat?(i._timeoutEventObject=null,i.options.earth&&delete i.options.earth,i.picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff","number"==typeof n.scale?(i.options.scale={},i.options.scale.x=n.scale,i.options.scale.y=n.scale,i.options.scale.z=n.scale):(i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.scale.z=i.options.scale.z||0===i.options.scale.z?i.options.scale.z:1),i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.position=n.position=n.position||{},i.options.position={lng:n.position.lng,lat:n.position.lat,alt:n.position.alt},i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.entity={id:i.options.id},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i.Dialog=o,i._EventBinding=new Ye,i.on(),i):(console.warn("lat is required!"),Ee()(i)):(console.warn("lng is required!"),Ee()(i)):(console.warn("position is required!"),Ee()(i))}return Me()(t,e),h()(t,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(r=_()(S.a.mark((function e(t){var i,n,o,s=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(J.g)(this.sdk,this.options.id),this.sdk&&this.sdk.viewer&&this.sdk.viewer.scene){e.next=3;break}return e.abrupt("return");case 3:if(t=this.replaceHost(t,this.options.host),this.originalOptions=this.deepCopyObj(this.options),i={id:this.options.id,url:t,show:this.options.show,maximumScale:this.options.scaleByDistance?void 0:this.options.maximumScale,minimumPixelSize:this.options.scaleByDistance?void 0:this.options.minimumPixelSize},!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=13;break}return e.next=10,Cesium.Model.fromGltfAsync(i);case 10:this.entity=e.sent,e.next=16;break;case 13:return e.next=15,Cesium.Model.fromGltf(i);case 15:this.entity=e.sent;case 16:return this.entity.imageBasedLighting.luminanceAtZenith=.6,this.entity.color=Cesium.Color.fromCssColorString(this.options.color),e.next=20,this.sdk.viewer.scene.primitives.add(this.entity);case 20:n=Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),this.entity.position=o,this.entity.rotate=La({},this.options.rotate),this.entity.customScale=this.options.scale,this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),Number(Cesium.VERSION.split(".")[1])>=107?(this.entity.readyEvent.addEventListener((function(){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Ma(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new _t(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far},s.entity)),s.entity.isMove=!0,clearTimeout(s._timeoutEventObject),s._timeoutEventObject=setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500)})),this.activeAnimate=this.options.activeAnimate,this.modelAnimations=this.entity.loader.components.animations):this.entity.readyPromise.then((function(e){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Ma(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new _t(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far,ground:!1},s.entity)),s.entity.isMove=!0,clearTimeout(s._timeoutEventObject),s._timeoutEventObject=setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500),s.activeAnimate=s.options.activeAnimate,s.modelAnimations=s.entity.loader.components.animations})),Object(Z.g)(this.sdk,this.options.id);case 28:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getModelAnimations",value:(a=_()(S.a.mark((function e(){var t=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){Number(Cesium.VERSION.split(".")[1])>=107?t.entity.readyEvent.addEventListener((function(){t.modelAnimations=t.entity.loader.components.animations,e(t.modelAnimations)})):t.entity.readyPromise.then((function(i){t.modelAnimations=t.entity.loader.components.animations,e(t.modelAnimations)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"remove",value:function(){Ra(t,"remove",this,3)([]),this.label&&this.label.remove(),this.positionEditing=!1,this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"flyTo",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=22;break}if(t={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),a={lng:0,lat:0},this.options.position?a=La({},this.options.position):this.options.positions?a=La({},this.options.positions[0]):this.options.center?a=La({},this.options.center):this.options.start?a=La({},this.options.start):(this.options.hasOwnProperty("lng")&&(a.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(a.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(a.alt=this.options.alt)),a.hasOwnProperty("alt")){e.next=15;break}return e.next=14,this.getClampToHeight(a);case 14:a.alt=e.sent;case 15:i=this.options.customView.relativePosition.lng+a.lng,n=this.options.customView.relativePosition.lat+a.lat,o=this.options.customView.relativePosition.alt+a.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:t}),e.next=23;break;case 22:Number(Cesium.VERSION.split(".")[1])>=107?this.entity.ready&&(r=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),this.entity.originalBoundingSphereRadius*this.options.scale.z*2),this.sdk.viewer.camera.flyToBoundingSphere(r)):this.entity.readyPromise.then((function(){var e=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(l.options.position.lng,l.options.position.lat,l.options.position.alt),(l.entity.originalBoundingSphereRadius||l.entity.boundingSphere.radius)*l.options.scale.z*2);l.sdk.viewer.camera.flyToBoundingSphere(e)}));case 23:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"on",value:function(){return this.add()}},{key:"setDefaultValue",value:function(){Ra(t,"setDefaultValue",this,3)([]),this.options.host=this.options.host||Object(n.a)(),this.options.url=this.options.url||""}},{key:"name",get:function(){return this.options.name},set:function(e){console.log(e,"vvvvvvvvv"),this.options.name=e,this.options.label.text=e,this.label&&(this.label.text=e)}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.entity.color=Cesium.Color.fromCssColorString(e),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[n]=o}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position={lng:e,lat:this.options.position.lat,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){this.options.position={lng:this.options.position.lng,lat:e,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt:e},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[Number(this.options.position.lng),Number(this.options.position.lat),Number(this.options.position.alt)]),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"maximumScale",get:function(){return this.options.maximumScale},set:function(e){this.options.maximumScale=e,this.entity.maximumScale=this.scaleByDistance?void 0:e,this._elms.maximumScale&&this._elms.maximumScale.forEach((function(t){t.value=e}))}},{key:"minimumPixelSize",get:function(){return this.options.minimumPixelSize},set:function(e){this.options.minimumPixelSize=e,this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this._elms.minimumPixelSize&&this._elms.minimumPixelSize.forEach((function(t){t.value=e}))}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity.maximumScale=e?void 0:this.maximumScale,this.entity.minimumPixelSize=e?void 0:this.options.minimumPixelSize,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(t){t.checked=e}))}},{key:"rotateX",get:function(){return this.options.rotate.x},set:function(e){this.options.rotate.x=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateX&&this._elms.rotateX.forEach((function(t){t.value=e}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(e){this.options.rotate.y=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateY&&this._elms.rotateY.forEach((function(t){t.value=e}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(e){this.options.rotate.z=e,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateZ&&this._elms.rotateZ.forEach((function(t){t.value=e}))}},{key:"scaleX",get:function(){return this.options.scale.x},set:function(e){var t=this;this.options.scale.x=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleX&&this._elms.scaleX.forEach((function(e){e.value=t.options.scale.x}))}},{key:"scaleY",get:function(){return this.options.scale.y},set:function(e){var t=this;this.options.scale.y=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleY&&this._elms.scaleY.forEach((function(e){e.value=t.options.scale.y}))}},{key:"scaleZ",get:function(){return this.options.scale.z},set:function(e){var t=this;this.options.scale.z=Number(Number(e).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleZ&&this._elms.scaleZ.forEach((function(e){e.value=t.options.scale.z}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){this.options.label.show=e,this.show&&!this.showView||3==this.showView?this.label&&(this.label.show=e):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(t){t.checked=e}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(e){this.options.label.fontFamily=e||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var t=wt(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(e){var t=this;this.options.label.color=e,this.label&&(this.label.color=e),this._elms.labelColor&&this._elms.labelColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.labelColor=e},clear:function(){t.labelColor="rgba(255,255,255,1)"}});t._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(e){this.options.label.fontSize=e,this.label&&(this.label.fontSize=e),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(t){t.value=e}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(e){this.options.label.scaleByDistance=e,this.label&&(this.label.scaleByDistance=e),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(e){var t=e;t>this.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t-1?t[i].style.display="block":t[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.link.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.vr.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={vrEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.vr.content;case 2:t.attributeVr=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.vr.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0))for(var t=0;t0&&void 0!==f[0]&&f[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}return i=!1,this.scaleX===this.scaleY&&this.scaleX===this.scaleZ&&(i=!0),e.next=9,new Be(this.sdk,this.originalOptions,{title:"模型属性",left:"180px",top:"100px",confirmCallBack:function(e){m.name=m.options.name||"未命名对象",m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close();var t=m.deepCopyObj(m.options);t.host="",m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(t),Object(J.g)(m.sdk,m.options.id),Object(Z.g)(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.positionEditing=!1,m.editObj&&m.editObj.destroy(),m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(e){m.show=e,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing?m.positionEditing=!1:m.positionEditing=!0}},!0);case 9:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" model",(n=document.createElement("div")).innerHTML=Pa(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new Je("model-edit-tabs",void 0,this.sdk),o=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),s=this._DialogObject._element.content.getElementsByClassName("equal")[0],a=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],o.checked=i,o.addEventListener("change",(function(e){(i=e.target.checked)?(s.style.display="flex",a.style.display="none",m.scaleY=m.scaleX,m.scaleZ=m.scaleX):(s.style.display="none",a.style.display="flex")})),(r=s.getElementsByTagName("input"))[0].value=this.scaleX,r[1].value=this.scaleX,r[0].addEventListener("input",(function(e){m.scaleX=e.target.value,m.scaleY=e.target.value,m.scaleZ=e.target.value})),r[1].addEventListener("input",(function(e){m.scaleX=e.target.value,m.scaleY=e.target.value,m.scaleZ=e.target.value})),i?(s.style.display="flex",a.style.display="none"):(s.style.display="none",a.style.display="flex"),l=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){m.color=e},clear:function(){m.color="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelColor=e},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:n.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelLineColor=e},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelBackgroundColorStart=e},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){m.labelBackgroundColorEnd=e},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=n.getElementsByTagName("*"),this._EventBinding.on(this,d),this._elms=this._EventBinding.element,this._elms.color=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[h],this._elms.labelBackgroundColorEnd=[p],this._elms.scaleX.push(r[0],r[1]),setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.ISCSelect&&m.ISCSelect(),m.goodsSelect&&m.goodsSelect(),m.cameraSelect&&m.cameraSelect();var e=m.attributeSelect,t=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var i=Object(je.a)(t,".attribute-select");i.legp_search(e);for(var n=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6?arguments[6]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(parseFloat(i).toFixed(2)),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),r.x=parseFloat(r.x),r.y=parseFloat(r.y),r.z=parseFloat(r.z),this.entity.position=new Cesium.Cartesian3.fromDegrees(e,t,i),this.entity.rotate={x:o,y:s,z:a},this.entity.customScale=r;var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),h=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(e,t,i)),p=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(h,p,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,this.entity.modelMatrix);var v=r.x,g=r.y,y=r.z;0===v&&(v=1e-5),0===g&&(g=1e-5),0===y&&(y=1e-5),Cesium.Matrix4.multiplyByScale(this.entity.modelMatrix,new Cesium.Cartesian3(v,g,y),this.entity.modelMatrix),this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this.editObj&&this.editObj.update(),this.entity.isMove=!0,clearTimeout(this._timeoutEventObject),this._timeoutEventObject=setTimeout((function(){n.entity&&(n.entity.isMove=!1)}),500)}},{key:"reset",value:function(){if(this.entity)try{this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.lng=this.originalOptions.position.lng,this.lat=this.originalOptions.position.lat,this.alt=this.originalOptions.position.alt,this.maximumScale=this.originalOptions.maximumScale,this.minimumPixelSize=this.originalOptions.minimumPixelSize,this.scaleByDistance=this.originalOptions.scaleByDistance,this.rotateX=this.originalOptions.rotate.x,this.rotateY=this.originalOptions.rotate.y,this.rotateZ=this.originalOptions.rotate.z,this.scaleX=this.originalOptions.scale.x,this.scaleY=this.originalOptions.scale.y,this.scaleZ=this.originalOptions.scale.z,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect()}catch(e){}}}]);var i,o,s,a,r}(Na);function Fa(e){return'\n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 最大比例\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 最小像素\n \n
            \n
            \n
            \n
            \n 高度\n \n
            \n
            \n 视野缩放\n \n
            \n
            \n
            \n \n \n '.concat(ct(e),'\n \n \n
            \n
            \n
            \n x轴\n \n \n
            \n
            \n
            \n
            \n y轴\n \n \n
            \n
            \n
            \n
            \n z轴\n \n \n
            \n
            \n
            \n
            \n 高度\n \n \n
            \n
            \n
            \n
            \n 缩放\n \n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Ha(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Va(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Va(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Ua(this,t,[e,n,o={}])).picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff",i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.positions=n.positions||[],i.options.type=n.type||0,i.options.interval=n.interval||0===n.interval?n.interval:1,i.options.quantity=n.quantity,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,i.options.label=n.label=n.label||{},i.options.label.show=!(!n.label.show&&!1!==n.label.show)&&n.label.show,i.options.label.fontSize=n.label.fontSize||20,i.options.label.color=n.label.color||"#ffffff",i.options.label.near=n.label.near||0===n.label.near?n.label.near:2e3,i.options.label.far=n.label.far||0===n.label.far?n.label.far:1e5,i.options.label.scaleByDistance=n.label.scaleByDistance||!1,i.options.label.backgroundColor=n.label.backgroundColor||["#42c6ef","#42c6ef"],i.options.line=n.line=n.line||{},i.options.line.width=n.line.width||2,i.options.line.length=n.line.length||20,i.options.line.color=n.line.color||"#fff000",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||[],i.options.attributeType=n.attributeType||"richText",i.ModelPositions=[],i._elms={},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i._element_style=null,i.ControllerObject=new fi(i.sdk),i.ControllerObject.controllerCallBack=function(e){i.lng=e.position.lng,i.lat=e.position.lat,i.alt=e.position.alt},i.Dialog=o,i._EventBinding=new Ye,i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(s=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c,u,h,p,d,m,f,v=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(f=function(e){return new Worker("data:,(".concat(e.toString(),")(").concat(JSON.stringify(d),")"))},m=function(e){var t=e.type,i=e.interval,n=e.positions,o=e.optionsPositions,s=e.quantity,a=e.turfUrl;importScripts(a);var r=[];switch(t){case 1:var l=turf.lineString(n[0]),u=turf.lineChunk(l,i/1e3,{units:"kilometers"});r.push({lng:u.features[0].geometry.coordinates[0][0],lat:u.features[0].geometry.coordinates[0][1]});for(var h=0;hthis.options.height&&(o=this.options.positions[s].alt);n[0].length>2?(n[0].push([this.options.positions[0].lng,this.options.positions[0].lat]),a=turf.polygon(n),r=turf.pointOnFeature(a),this.center={lng:r.geometry.coordinates[0],lat:r.geometry.coordinates[1]}):2==n[0].length?this.center={lng:(this.options.positions[0].lng+this.options.positions[1].lng)/2,lat:(this.options.positions[0].lat+this.options.positions[1].lat)/2}:this.center={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat},l=[],this.options.height||0===this.options.height||(this.options.height=o),u=document.scripts,h="",p=0;case 14:if(!(pthis.labelFar&&(t=this.labelFar),this.options.label.near=t,this.label.near=t,this._elms.labelNear&&this._elms.labelNear.forEach((function(e){e.value=t}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(e){var t=e;t-1?t[i].style.display="block":t[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(e){var t=this;if(this.options.attribute.link.content=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var o=0;o\n
            '+this.options.attribute.link.content[o].url+'
            \n
            \n \n \n
            \n ',a=document.createRange().createContextualFragment(s);n.appendChild(a)}for(var r,l=n.getElementsByClassName("tr"),c={linkEdit:(r=_()(S.a.mark((function e(i){var n,o,s,a,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.options.attribute.link.content;case 2:t.attributeLink=e.sent,n=t._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),a=S.a.mark((function e(n){var o,a,r,l,u,h,p;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==n){e.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(a=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].name,a[1].getElementsByClassName("input")[0].value=t.options.attribute.link.content[i].url,r=s[n].getElementsByTagName("button"),l=0;case 11:if(!(l0&&void 0!==u[0]&&u[0],this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=36;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 600px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:first-child {\n margin-left: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:last-child {\n margin-right: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .label {\n flex: 0 0 74px;\n }\n .YJ-custom-base-dialog>.content .DIV-cy-tab-content-pane .input-select {\n width: 100px;\n }\n",e.next=12,new Be(this.sdk,this.originalOptions,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){c.name=c.options.name||"未命名对象",c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions)},resetCallBack:function(){c.reset(),c.Dialog.resetCallBack&&c.Dialog.resetCallBack()},removeCallBack:function(){c.Dialog.removeCallBack&&c.Dialog.removeCallBack()},closeCallBack:function(){c.reset(),c.positionEditing=!1,c.ControllerObject&&c.ControllerObject.destroy(),c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},showCallBack:function(e){c.show=e,c.Dialog.showCallBack&&c.Dialog.showCallBack()},translationalCallBack:function(){c.positionEditing?c.positionEditing=!1:c.positionEditing=!0}},!0);case 12:this._DialogObject=e.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML=Fa(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,new Je("model-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){c.color=e},clear:function(){c.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("label_color")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelColor=e},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("line_color")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(e){c.lineColor=e},clear:function(){c.lineColor="rgba(255,255,255,1)"}}),a=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorStart=e},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(e){c.labelBackgroundColorEnd=e},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.lineColor=[s],this._elms.labelBackgroundColorStart=[a],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content,c.cameraSelect&&c.cameraSelect();var e=c.attributeSelect,t=c._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(t){var i=Object(je.a)(t,".attribute-select");i.legp_search(e);for(var n=c._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),n=parseFloat(n),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),this.entity.rotate={x:n,y:o,z:s};var r=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),l=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),u=new Cesium.Cartesian3.fromDegrees(e,t,i);Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z)),Cesium.Matrix4.fromRotationTranslation(r),Cesium.Matrix4.fromRotationTranslation(l),Cesium.Matrix4.fromRotationTranslation(c),new Cesium.Matrix4;Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z),this.entity.modelMatrix),this.ControllerObject.update(),this.entity.position=new Cesium.Cartesian3.fromDegrees(e,t,i)}},{key:"updateModelRotate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),n=parseFloat(n),this.sdk.viewer.scene.primitives.remove(this.entity);var o=this.options.url;if(!o.startsWith("http")&&!o.includes(":")&&this.options.host){var s=new URL(o,this.options.host);o=s.href}for(var a=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Za(this,t,[e,o])).object={},i.options.host=i.options.host||Object(n.a)(),i.on(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"on",value:function(){return this.loadLayer(this.options)}},{key:"loadLayer",value:(i=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l,c;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.object=Xa({},t),i="",this.object.url.startsWith("http")?i=this.object.url:this.options.host?(n=new URL(this.object.url,this.options.host),i=n.href):i=this.object.url,o={url:i,mimmumLevel:this.object.minimumLevel,maximumLevel:this.object.maximumLevel,rectangle:new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north))},e.t0=this.object.schemaName,e.next="amapMercatorTilingScheme"===e.t0?7:""===e.t0?9:10;break;case 7:return o.tilingScheme=this.amapMercatorTilingScheme(),e.abrupt("break",12);case 9:return e.abrupt("break",12);case 10:return o.tilingScheme=new Cesium[this.object.schemaName],e.abrupt("break",12);case 12:e.t1=this.object.load_method,e.next="tms"===e.t1?15:"xyz"===e.t1?24:"wmts"===e.t1?26:28;break;case 15:if(this.object.url.endsWith("tilemapresource.xml")&&((a=this.object.url.split("/")).pop(),r=a.join("/"),o.url=r),!(Number(Cesium.VERSION.split(".")[1])>=107)){e.next=22;break}return e.next=19,Cesium.TileMapServiceImageryProvider.fromUrl(o.url,o);case 19:s=e.sent,e.next=23;break;case 22:s=new Cesium.TileMapServiceImageryProvider(o);case 23:return e.abrupt("break",30);case 24:return s=new Cesium.UrlTemplateImageryProvider(o),e.abrupt("break",30);case 26:return s=new Cesium.WebMapTileServiceImageryProvider(o),e.abrupt("break",30);case 28:return s=new Cesium.UrlTemplateImageryProvider(o),e.abrupt("break",30);case 30:if(this.sdk&&this.sdk.viewer){e.next=32;break}return e.abrupt("return");case 32:for(this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s,this.options.layerIndex):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s),this.entity._id=this.options.id,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Qa(this,t,[e,n])).loadLayer(),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{key:"loadLayer",value:function(e){var t,i={url:this.options.url,mimmumLevel:this.options.minimumLevel||0,maximumLevel:this.options.maximumLevel||20,subdomains:["0","1","2","3","4","5","6","7"]};t=new Cesium.UrlTemplateImageryProvider(i),this.options.hasOwnProperty("layerIndex")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(t,this.options.layerIndex):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(t),this.entity._id=this.options.id;for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c()(this,t),sr(i=or(this,t,[e,n]),cr,void 0),i.object=JSON.parse(JSON.stringify(o)),i.object.west||(i.object.west=40),i.object.south||(i.object.south=30),i.object.east||(i.object.east=160),i.object.north||(i.object.north=50),i.show=i.options.show,i._elms={},i.Dialog=s,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"terrain"}},{key:"name",get:function(){return this.options.name},set:function(e){this.options.name=e,this._elms.name&&this._elms.name.forEach((function(t){t.value=e}))}},{key:"show",get:function(){return!(this.sdk.viewer.scene.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)},set:function(e){e?this.open():this.close()}},{key:"open",value:(r=_()(S.a.mark((function e(){var t,i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.url){e.next=4;break}return e.abrupt("return",this.loadTerrain({url:this.options.url}));case 4:return e.next=6,this.requestResource();case 6:return t=e.sent,e.next=9,t.text();case 9:if(i=e.sent,i=JSON.parse(i),![0,200].includes(i.code)){e.next=19;break}if(!i.data.url.length){e.next=16;break}return e.abrupt("return",this.loadTerrain(i.data));case 16:return e.abrupt("return",new Promise((function(e,t){t("资源不存在")})));case 17:e.next=20;break;case 19:return e.abrupt("return",new Promise((function(e,t){t(i.msg||i.message)})));case 20:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){var e=this;this.sdk.viewer.scene.terrainProvider=new Cesium.EllipsoidTerrainProvider({});for(var t=0;t=107)){e.next=9;break}return e.next=6,Cesium.CesiumTerrainProvider.fromUrl(n);case 6:this.terrainProvider=e.sent,e.next=10;break;case 9:this.terrainProvider=new Cesium.CesiumTerrainProvider({url:n});case 10:if(this.sdk&&this.sdk.viewer){e.next=12;break}return e.abrupt("return");case 12:this.sdk.viewer.terrainProvider=this.terrainProvider,clearTimeout(rr(cr,this)),ar(cr,this,setTimeout((function(){clearTimeout(rr(cr,a)),a.terrainProvider.readyPromise.then((function(){var e,t=ir(a.sdk.entityMap);try{for(t.s();!(e=t.n()).done;){var i=s()(e.value,2),n=(i[0],i[1]);"BillboardObject"!==n.type||1!=n.heightMode&&3!=n.heightMode?n.label&&(n.label.show=n.label.show):n.updateHeight()}}catch(e){t.e(e)}finally{t.f()}}))}),1e3)),Object(Z.g)(this.sdk,this.options.id);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"remove",value:function(){this.close()}},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:3,!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=tr({},this.options.position):this.options.positions?r=tr({},this.options.positions[0]):this.options.center?r=tr({},this.options.center):this.options.start?r=tr({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i,duration:t}),e.next=27;break;case 25:l=new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north)),this.sdk.viewer.camera.flyTo({destination:l,duration:t});case 27:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"setDefaultValue",value:function(){var e,i,o,s,a;(e=t,i="setDefaultValue",o=this,s=3,a=On()(Oe()(1&s?e.prototype:e),i,o),2&s&&"function"==typeof a?function(e){return a.apply(o,e)}:a)([]),this.options.host=this.options.host||Object(n.a)(),this.options.url=this.options.url||""}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o=this,s=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.length>0&&void 0!==s[0]&&s[0],e.abrupt("return");case 6:this._DialogObject=e.sent,(t=document.createElement("div")).style.width="300px",i='\n \n
            \n
            \n
            \n 名称:\n \n
            \n
            \n
            \n ',t.innerHTML=i,(n=t.getElementsByClassName("name")[0]).value=this.name,n.addEventListener("input",(function(){o.name=n.value})),this._DialogObject.contentAppChild(t),this._elms.name=[n];case 16:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name}},{key:"flicker",value:function(){}}]);var i,o,a,r}(zs);function hr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return pr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?pr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=gr(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#ff0000",n.options.endColor=i.endColor||"#fff000",n.options.startScale=i.startScale||.5,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||1,n.options.maximumParticleLife=i.maximumParticleLife||2,n.options.minimumSpeed=i.minimumSpeed||1,n.options.maximumSpeed=i.maximumSpeed||30,n.options.emissionRate=i.emissionRate||60,n.options.particleSize=i.particleSize||10,n.options.show=!1!==i.show,n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n._elms={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.originalOptions=this.deepCopyObj(this.options),t=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=t.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(30)),modelMatrix:o,updateCallback:function(e){e._billboard.id=a.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(a.entity&&a.show){var e=a.sdk.viewer.camera.positionCartographic.height;a.entity.show=!(e>=1e7)}}));case 14:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=vr({},this.options.position):this.options.positions?r=vr({},this.options.positions[0]):this.options.center?r=vr({},this.options.center):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(e){this.options.minimumSpeed=e,this.particleSystem.minimumSpeed=e,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(t){t.value=e}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(e){this.options.maximumSpeed=e,this.particleSystem.maximumSpeed=e,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(t){t.value=e}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=e,this.particleSystem.minimumParticleLife=e,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=e}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=e,this.particleSystem.maximumParticleLife=e,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=e}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=e,this.particleSystem.startScale=e,this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=e}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=e,this.particleSystem.endScale=e,this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=e}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=e,this.particleSystem.emissionRate=e,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=e}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=e,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(e,e),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(e,e),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(t=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(t),i=new YJColorPicker({el:t.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.startColor=e},clear:function(){s.startColor="rgba(255,255,255,1)"}}),n=new YJColorPicker({el:t.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.endColor=e},clear:function(){s.endColor="rgba(255,255,255,1)"}}),o=t.getElementsByTagName("*"),mr.on(this,o),this._elms=mr.element,this._elms.startColor=[i],this._elms.endColor=[n],e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,Object(J.h)(this.entity))}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yr(t,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=8,this.sdk.removeIncetance(this.options.id);case 8:return e.next=10,Object(J.g)(this.sdk,this.options.id);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,!0===e){var i;this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:vr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.lng,t.options.lat,t.options.alt),a=t.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);t.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),t._elms.lng&&t._elms.lng.forEach((function(e){e.value=t.options.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.alt})),t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,n){if(!i||i.x!==e.position.x||i.y!==e.position.y-2){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt}t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:vr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.lng=e.lng,t.options.lat=e.lat,t.options.alt=e.alt,t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:vr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.alt}))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"flicker",value:function(){}}]);var i,n,o,s}(vt);function Cr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return wr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?wr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Er(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#00000000",n.options.endColor=i.endColor||"#0000001a",n.options.startScale=i.startScale||.1,n.options.endScale=i.endScale||10,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||10,n.options.maximumSpeed=i.maximumSpeed||15,n.options.emissionRate=i.emissionRate||28,n.options.particleSize=i.particleSize||2,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.originalOptions=this.deepCopyObj(this.options),t=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=t.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.CircleEmitter(.2),performance:!1,modelMatrix:o,updateCallback:function(e){e._billboard.id=a.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(a.entity&&a.show){var e=a.sdk.viewer.camera.positionCartographic.height;a.entity.show=!(e>=1e7)}}));case 14:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Sr({},this.options.position):this.options.positions?r=Sr({},this.options.positions[0]):this.options.center?r=Sr({},this.options.center):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(e){this.options.minimumSpeed=e,this.particleSystem.minimumSpeed=e,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(t){t.value=e}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(e){this.options.maximumSpeed=e,this.particleSystem.maximumSpeed=e,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(t){t.value=e}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=e,this.particleSystem.minimumParticleLife=e,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=e}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=e,this.particleSystem.maximumParticleLife=e,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=e}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=e,this.particleSystem.startScale=e,this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=e}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=e,this.particleSystem.endScale=e,this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=e}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=e,this.particleSystem.emissionRate=e,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=e}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=e,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(e,e),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(e,e),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(t=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(t),i=new YJColorPicker({el:t.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.startColor=e},clear:function(){s.startColor="rgba(255,255,255,1)"}}),n=new YJColorPicker({el:t.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.endColor=e},clear:function(){s.endColor="rgba(255,255,255,1)"}}),o=t.getElementsByTagName("*"),_r.on(this,o),this._elms=_r.element,this._elms.startColor=[i],this._elms.endColor=[n],e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Pr(t,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=8,this.sdk.removeIncetance(this.options.id);case 8:return e.next=10,Object(J.g)(this.sdk,this.options.id);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,!0===e){var i;this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Sr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.lng,t.options.lat,t.options.alt),a=t.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);t.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),t._elms.lng&&t._elms.lng.forEach((function(e){e.value=t.options.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.alt})),t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,n){if(!i||i.x!==e.position.x||i.y!==e.position.y-2){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt}t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:Sr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.lng=e.lng,t.options.lat=e.lat,t.options.alt=e.alt,t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:Sr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.alt}))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"flicker",value:function(){}}]);var i,n,o,s}(vt);function Dr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Mr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Ar(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f24d",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||1,n.options.endScale=i.endScale||20,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||9,n.options.maximumSpeed=i.maximumSpeed||9.5,n.options.emissionRate=i.emissionRate||20,n.options.particleSize=i.particleSize||.5,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=function(){var e=Cesium.HeadingPitchRoll.fromDegrees(0,0,0),t=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 return t.translation=Cesium.Cartesian3.fromElements(0,0,0),t.rotation=Cesium.Quaternion.fromHeadingPitchRoll(e),Cesium.Matrix4.fromTranslationRotationScale(t)},c=function(e,i){e._billboard.id=t.options.id;var n=e.position;Cesium.Cartesian3.normalize(n,r),Cesium.Cartesian3.multiplyByScalar(r,l*i,r),e.velocity=Cesium.Cartesian3.add(e.velocity,r,e.velocity)},t=this,this.originalOptions=this.deepCopyObj(this.options),i=this.sdk.viewer.scene,new Cesium.Cartesian3,n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),s=Cesium.Transforms.eastNorthUpToFixedFrame(o),Cesium.Matrix4.multiplyByScale(s,new Cesium.Cartesian3(1,1,1),s),a=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=i.primitives.add(new Cesium.ParticleSystem({show:!(a>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/fountain.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,lifetime:.5,imageSize:new Cesium.Cartesian2(this.options.particleSize,2*this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(.2)),modelMatrix:s,emitterModelMatrix:u(),updateCallback:c})),r=new Cesium.Cartesian3,l=-3.5,this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(h.entity&&h.show){var e=h.sdk.viewer.camera.positionCartographic.height;h.entity.show=!(e>=1e7)}}));case 21:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},!this._error){e.next=3;break}return e.abrupt("return");case 3:if(Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=jr({},this.options.position):this.options.positions?r=jr({},this.options.positions[0]):this.options.center?r=jr({},this.options.center):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(r);case 17:r.alt=e.sent;case 18:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(e){this.options.minimumSpeed=e,this.particleSystem.minimumSpeed=e,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(t){t.value=e}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(e){this.options.maximumSpeed=e,this.particleSystem.maximumSpeed=e,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(t){t.value=e}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=Number(e),this.particleSystem.minimumParticleLife=Number(e),this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=Number(e)}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=Number(e),this.particleSystem.maximumParticleLife=Number(e),this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=Number(e)}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=e,this.particleSystem.startScale=e,this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=e}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=e,this.particleSystem.endScale=e,this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=e}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=e,this.particleSystem.emissionRate=e,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=e}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=e,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(e,e),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(e,e),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=e}))}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s=this,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>0&&void 0!==a[0]&&a[0],e.abrupt("return");case 8:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(t=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(t),i=new YJColorPicker({el:t.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.startColor=e},clear:function(){s.startColor="rgba(255,255,255,1)"}}),n=new YJColorPicker({el:t.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){s.endColor=e},clear:function(){s.endColor="rgba(255,255,255,1)"}}),o=t.getElementsByTagName("*"),Nr.on(this,o),this._elms=Nr.element,this._elms.startColor=[i],this._elms.endColor=[n],e.next=22;break;case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Lr(t,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),e.next=8,this.sdk.removeIncetance(this.options.id);case 8:return e.next=10,Object(J.g)(this.sdk,this.options.id);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=e,!0===e){var i;this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:jr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.lng,t.options.lat,t.options.alt),a=t.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);t.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),t._elms.lng&&t._elms.lng.forEach((function(e){e.value=t.options.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.alt})),t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(e,n){if(!i||i.x!==e.position.x||i.y!==e.position.y-2){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.lng=o.lng,t.options.lat=o.lat,t.options.alt=o.alt}t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:jr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1})),this.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500)t.options.lng=t.entity.position.lng,t.options.lat=t.entity.position.lat,t.options.alt=t.entity.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.lng=e.lng,t.options.lat=e.lat,t.options.alt=e.alt,t.entity.position={lng:t.options.lng,lat:t.options.lat,alt:t.options.alt},t.previous={positions:jr({},t.entity.position)},t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.event.gesture_pinck_end((function(){})),t.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.alt}))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"flicker",value:function(){}}]);var i,n,o,s}(vt);function Rr(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return zr(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Vr(this,t,[e,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f2",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||.2,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||12,n.options.maximumParticleLife=i.maximumParticleLife||12,n.options.emissionRate=i.emissionRate||100,n.options.particleSize=i.particleSize||1,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.start.lng,lat:n.options.start.lat,alt:n.options.start.alt}},n.Dialog=o,n.event=new te.a(n.sdk),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.c)().sdkD;this.isShowView&&t||(this.options.show=e),this.showView&&3!=this.showView&&t?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=e),Object(J.g)(this.sdk,this.options.id),Object(Z.g)(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(s=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y,b,C=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b=function(e,t){var i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(e);return Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,t,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))},y=function(){var e=Cesium.HeadingPitchRoll.fromDegrees(t.options.heading+90,t.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 return i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(e),Cesium.Matrix4.fromTranslationRotationScale(i)},g=function(e,i){e._billboard.id=t.options.id;var n=e.position;Cesium.Cartesian3.normalize(n,a),Cesium.Cartesian3.multiplyByScalar(a,r*i,a),e.velocity=Cesium.Cartesian3.add(e.velocity,a,e.velocity)},t=this,this.originalOptions=this.deepCopyObj(this.options),i=this.sdk.viewer.scene,n=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),s=Cesium.Transforms.eastNorthUpToFixedFrame(o),Cesium.Matrix4.multiplyByScale(s,new Cesium.Cartesian3(1,1,1),s),a=new Cesium.Cartesian3,r=-3.8,l=Cesium.Cartesian3.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),c=Cesium.Cartesian3.fromDegrees(this.options.end.lng,this.options.end.lat,this.options.end.alt),this.options.heading||0===this.options.heading||(this.options.heading=b(l,c)),u=this.options.end.alt-this.options.start.alt,h=Cesium.Cartesian3.distance(l,Cesium.Cartesian3.fromDegrees(this.options.end.lng,this.options.end.lat,this.options.start.alt)),p=u?2*u/h:0,d=Math.atan(p)*(180/Math.PI),m=Math.sqrt(Math.abs(p)*h/-r),f=-r*m/Math.abs(Math.cos(d)),this.options.pitch||0===this.options.pitch||(this.options.pitch=90-d),this.options.speed||0===this.options.speed||(this.options.speed=f),v=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=i.primitives.add(new Cesium.ParticleSystem({show:!(v>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.speed,maximumSpeed:this.options.speed,lifetime:.5,imageSize:new Cesium.Cartesian2(this.options.particleSize,2*this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,loop:!0,emitter:new Cesium.CircleEmitter(.2),modelMatrix:s,emitterModelMatrix:y(),updateCallback:g})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(C.entity&&C.show){var e=C.sdk.viewer.camera.positionCartographic.height;C.entity.show=!(e>=1e7)}}));case 31:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(o=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),r={lng:0,lat:0},this.options.position?r=Hr({},this.options.position):this.options.positions?r=Hr({},this.options.positions[0]):this.options.line&&this.options.line.positions?r=Hr({},this.options.line.positions[0]):this.options.center?r=Hr({},this.options.center):this.options.start?r=Hr({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){e.next=16;break}return e.next=15,this.getClampToHeight(r);case 15:r.alt=e.sent;case 16:n=this.options.customView.relativePosition.lng+r.lng,o=this.options.customView.relativePosition.lat+r.lat,s=this.options.customView.relativePosition.alt+r.alt,a=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:a,orientation:i}),e.next=24;break;case 23:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt+500),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(e){var t=this;this.options.startColor=e,this.particleSystem.startColor=Cesium.Color.fromCssColorString(e),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.startColor=e},clear:function(){t.startColor="rgba(255,255,255,1)"}});t._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(e){var t=this;this.options.endColor=e,this.particleSystem.endColor=Cesium.Color.fromCssColorString(e),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:e,disabled:!1,openPickerAni:"opacity",sure:function(e){t.endColor=e},clear:function(){t.endColor="rgba(255,255,255,1)"}});t._elms.endColor[n]=o}))}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=Number(e),this.particleSystem.minimumSpeed=Number(e),this.particleSystem.maximumSpeed=Number(e),this._elms.speed&&this._elms.speed.forEach((function(t){t.value=Number(e)}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(e){this.options.minimumParticleLife=Number(e),this.particleSystem.minimumParticleLife=Number(e),this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(t){t.value=Number(e)}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(e){this.options.maximumParticleLife=Number(e),this.particleSystem.maximumParticleLife=Number(e),this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(t){t.value=Number(e)}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(e){this.options.startScale=Number(e),this.particleSystem.startScale=Number(e),this._elms.startScale&&this._elms.startScale.forEach((function(t){t.value=Number(e)}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(e){this.options.endScale=Number(e),this.particleSystem.endScale=Number(e),this._elms.endScale&&this._elms.endScale.forEach((function(t){t.value=Number(e)}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(e){this.options.emissionRate=Number(e),this.particleSystem.emissionRate=Number(e),this._elms.emissionRate&&this._elms.emissionRate.forEach((function(t){t.value=Number(e)}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(e){this.options.particleSize=Number(e),this.particleSystem.minimumImageSize=new Cesium.Cartesian2(Number(e),2*Number(e)),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(Number(e),2*Number(e)),this._elms.particleSize&&this._elms.particleSize.forEach((function(t){t.value=Number(e)}))}},{key:"lng",get:function(){return this.options.start.lng},set:function(e){this.options.start.lng=e;var t=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.start.lat},set:function(e){this.options.start.lat=e;var t=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"alt",get:function(){return this.options.start.alt},set:function(e){this.options.start.alt=e;var t=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(t);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"heading",get:function(){return this.options.heading},set:function(e){this.options.heading=Number(e);var t=Cesium.HeadingPitchRoll.fromDegrees(this.options.heading+90,this.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(t);var n=Cesium.Matrix4.fromTranslationRotationScale(i);this.particleSystem.emitterModelMatrix=n,this._elms.heading&&this._elms.heading.forEach((function(t){t.value=Number(e)}))}},{key:"pitch",get:function(){return this.options.pitch},set:function(e){this.options.pitch=Number(e);var t=Cesium.HeadingPitchRoll.fromDegrees(this.options.heading+90,this.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 diff --git a/src/renderer/src/views/components/headers/components/setPup/components/engineering.vue b/src/renderer/src/views/components/headers/components/setPup/components/engineering.vue index 8a54b10..4e9717f 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/engineering.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/engineering.vue @@ -209,7 +209,7 @@ const routeImport = () => { filters: [ { name: '路网', //、底图 - extensions: ['pbf'] + extensions: ['pbf', 'pbfl'] } ] } diff --git a/src/renderer/src/views/components/headers/components/setPup/setPup.vue b/src/renderer/src/views/components/headers/components/setPup/setPup.vue index 5a018b5..0739831 100644 --- a/src/renderer/src/views/components/headers/components/setPup/setPup.vue +++ b/src/renderer/src/views/components/headers/components/setPup/setPup.vue @@ -141,7 +141,6 @@ const activeName = ref('authorize') const isShowPup = ref(false) const open = (data) => { isShowPup.value = true - console.log(data, 'kkkkkkkk') if (data !== 'current') { //如果不是传curent打开就回到第一个tab activeName.value = 'authorize' @@ -159,7 +158,6 @@ const changeTab = (x, j) => { default: break } - console.log(x, j, 'activeName.value') } const close = () => { isShowPup.value = false diff --git a/src/renderer/src/views/components/headers/components/setTool/setTool.vue b/src/renderer/src/views/components/headers/components/setTool/setTool.vue index 6c957e9..1a7e22e 100644 --- a/src/renderer/src/views/components/headers/components/setTool/setTool.vue +++ b/src/renderer/src/views/components/headers/components/setTool/setTool.vue @@ -67,6 +67,9 @@ const logout = async (e) => { // localStorage.clear() } } +const openSet = () => { + setPupRef.value?.open() +} const fullScreen = (item) => { ipcRenderer.send('toggle-fullscreen') @@ -114,7 +117,8 @@ const setList = ref([ name: 'set', className: 'header_public', dbcallback: null, - callback: setShow + // callback: setShow + callback: openSet }, // {id: 4, index: 2, icon: 'layerTitleBg', className: 'header_public', callback: this.setShow}, {