From cec103b66586240b92b59310e3e2feb3c0b01671 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Fri, 5 Dec 2025 18:21:33 +0800 Subject: [PATCH] 12-5 --- electron-builder.yml | 1 + installer.nsh | 49 ++++++-- resources/java/app/application.yml | 4 +- resources/java/app/yjearth.jar | Bin 116806585 -> 116818583 bytes src/main/index.ts | 1 + src/renderer/public/sdk/YJEarth.min.js | 8 +- src/renderer/public/sdk/custom/css/index.css | 5 +- src/renderer/src/I18n/zh-CN.ts | 12 ++ src/renderer/src/I18n/zh-EN.ts | 12 ++ src/renderer/src/I18n/zh-TW.ts | 12 ++ src/renderer/src/assets/styles/global.css | 4 + src/renderer/src/common/initMapData.ts | 2 +- .../setPup/components/engineering.vue | 31 ++--- .../components/setPup/components/setting.vue | 10 +- .../components/leftSide/leftSideSecond.vue | 7 +- .../components/propertyBox/CircleObject.vue | 4 +- .../components/propertyBox/CircleViewShed.vue | 4 +- .../views/components/propertyBox/Contour.vue | 13 +- .../components/propertyBox/attackArrow.vue | 4 +- .../components/propertyBox/circleDiffuse.vue | 4 +- .../propertyBox/curvelineObject.vue | 4 +- .../views/components/propertyBox/graph.vue | 6 +- .../components/propertyBox/graphObject.vue | 25 ++-- .../components/propertyBox/polygonObject.vue | 4 +- .../propertyBox/polyhedronObject.vue | 4 +- .../components/propertyBox/radarScan.vue | 4 +- .../propertyBox/radarScanStereoscopic.vue | 4 +- .../views/components/propertyBox/vector.vue | 2 +- .../components/propertyBox/vectorAttr.vue | 26 ++-- .../propertyBox/wallRealStereoscopic.vue | 118 +++++++++++------- .../propertyBox/wallStereoscopic.vue | 4 +- .../tree/components/hooks/renderVector.ts | 2 +- .../tree/components/hooks/rightOperate.ts | 92 +++++--------- .../src/views/components/tree/hooks/tree.ts | 2 +- .../views/components/tree/hooks/treeNode.ts | 2 +- .../src/views/components/tree/index.vue | 17 ++- src/renderer/src/views/login/index.vue | 2 +- src/renderer/src/views/login/useSetUp.ts | 54 ++++---- 38 files changed, 347 insertions(+), 212 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 3c0413c..a7e1cda 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -37,6 +37,7 @@ win: executableName: 实景三维电子沙盘系统 icon: build/icons/81.ico nsis: + unicode: true artifactName: 实景三维电子沙盘系统-${version}-setup.${ext} shortcutName: 实景三维电子沙盘系统 uninstallDisplayName: 实景三维电子沙盘系统 diff --git a/installer.nsh b/installer.nsh index 0b4cafa..4cc2aee 100644 --- a/installer.nsh +++ b/installer.nsh @@ -1,9 +1,44 @@ +Unicode True +!include "LogicLib.nsh" + +Var defaultInstallDir + !macro preInit - SetRegView 64 - WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES\${APP_ID}" - WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES\${APP_ID}" - #writeUninstaller $INSTDIR\uninstaller.exe - SetRegView 32 - WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES\${APP_ID}" - WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES\${APP_ID}" + + IfFileExists "D:\*.*" DDriveExists CDriveDefault + + CDriveDefault: + StrCpy $defaultInstallDir "$PROGRAMFILES\${APP_ID}" + Goto doneDetect + + DDriveExists: + StrCpy $defaultInstallDir "D:\${APP_ID}" + + doneDetect: + + StrCpy $INSTDIR "$defaultInstallDir" + !macroend + +!macro init + ${If} $INSTDIR == "" + StrCpy $INSTDIR "$defaultInstallDir" + ${EndIf} +!macroend + + +!insertmacro preInit +!insertmacro init + +Section "MainSection" SEC01 + CreateDirectory "$INSTDIR" + SetRegView 64 + WriteRegStr HKLM "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR" + WriteRegStr HKCU "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR" + SetRegView 32 + WriteRegStr HKLM "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR" + WriteRegStr HKCU "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR" +SectionEnd + +Page Directory +Page InstFiles \ No newline at end of file diff --git a/resources/java/app/application.yml b/resources/java/app/application.yml index 41e4c70..7536787 100644 --- a/resources/java/app/application.yml +++ b/resources/java/app/application.yml @@ -1,7 +1,7 @@ server: host: 127.0.0.1 - port: 8848 - path: C:\Users\Administrator\AppData\Roaming\dzsp_shijingjun_offline_Y_save + port: 8849 + path: C:\Users\MSI\AppData\Roaming\dzsp_shijingjun_offline_Y_save poi: global: enabled: false diff --git a/resources/java/app/yjearth.jar b/resources/java/app/yjearth.jar index 7897bba4bb34ef1be12798a519cfb6d4aa60a979..09bcd2bd1c828c4e67727642e36b4fc4efbfe82a 100644 GIT binary patch delta 197909 zcmb5V1ytNkvpxue1$PMU?(P;mxH|-Qcb(wwGPpYg_u%fX!QI^n37h2opS`Y1v3s;j!HyML`ED_o%9Z(K-wxkGr+Fa%yz_@yz{$B% zQG`VBcL;U>Z*%~lwm|&)4=AVw!1?D*M+-m@!u;1?ezpMUux8^}E#bh3!G6EM!QO*` z-J>FOnC6h|+(Bc2KD7hh{Snn~1u*`lXiqDE{Vzpn+W^AS9k^d6)+cr?#H8gVe)_*W3ewmijEp`u$1Dfsu{LM`I?O(XwUt#vYPu1U| ze!aiK?0*;iP3}c6fcr1UnumkJ1ahE;g#^X)0Wkg&Q;gGTsE1OMcLU%H@jwv2yGv7DM;*uQbfZ}R@knO|76|6puP zg8-4gH0@VjV*_;$0U+_2{^Y5@Bkz|2_MGm6J7~neRP%@JD??b+|6mlqXl4gpg~G!8 zXPCcTC;kL4%E(^_?;o#syWanOBKz&WUre#(FnioX!~Q3U<(F3k{*u|QQ2_5>i2e>) z#<9N++3c~u3fbS^3O^3u`in$h`b+dzZ9ocQwnKpd<&OW#Nt6G5P0Xl<{eP{Af9jMR z7P2{TB9NjpAKX8m5rvNdI62wXLEvyXpU>~0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L0+UjO*0Z-1a<4C+sFh})t6TB6$-57*3 z1Xl5)nSc9SYrX1adyJUWR%G-+#LhiNS1ifWD!9G&KU_vIU436w)E_qvE}ON8#;P(S zBHGG~0kCO6dOXvp7vYN;DUC+H0!8|)$UA~&3Y*AE!H8ogDk)%R57MoC5R%{B!H3F;3xzu1n=i>%~&|CshlZQl#SUESk4R@$K(Xg?N zqqd8f(L`bqme+Ax3lje8F>?ziU%vY59qgrgSyuPm#V=F~WZlxgaf*fbAR&+2hsqe& z!;^DK^g~~AkI901Vzd4+^8(c<^(h!&INxLP9%hR%2rub1#KpyBi1ws-_*MppFAriO mMX>$}6pwT34c>gna3F70Ia0~}-Dk_$@0&&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=o.viewer.imageryLayers._layers.length-1?n.viewer.imageryLayers.raiseToTop(s):t=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;o=k.viewer.imageryLayers._layers.length-1?k.viewer.imageryLayers.raiseToTop(n):t0&&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({x:n.x,y:n.y,z:n.z},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(8)),"°
\n
纬度:").concat(Number(n.lat.toFixed(8)),"°
\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(2)),"
\n
y:").concat(Number(s.points[0].y.toFixed(2)),"
\n
z:").concat(Number(s.points[0].z.toFixed(2)),"
\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(8)),"° \n
纬度:").concat(Number(s.lat.toFixed(8)),"°
\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(2)),"
\n
y:").concat(Number(a.points[0].y.toFixed(2)),"
\n
z:").concat(Number(a.points[0].z.toFixed(2)),"
\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=o.viewer.imageryLayers._layers.length-1?n.viewer.imageryLayers.raiseToTop(s):t=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;o=k.viewer.imageryLayers._layers.length-1?k.viewer.imageryLayers.raiseToTop(n):t0&&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({x:n.x,y:n.y,z:n.z},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),n=document.createElement("a");n.href=t,n.download="高清出图-".concat(de(),".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((function(){i=!1,F.innerHTML="打印"}),100)}),"image/png",.95)}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.loadLayer(i.options),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{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),n=document.createElement("a");n.href=t,n.download="高清出图-".concat(de(),".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((function(){i=!1,F.innerHTML="打印"}),100)}),"image/png",.95)}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);this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(l),this.renewPolygon(l);var c=this.heightMode;switch(this._isNodeEdit&&(c=0),c){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]:{},s=arguments.length>3?arguments[3]:void 0;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),i.callback=s,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||(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,t=this;if(!this.TweenAnimate&&this.options.risingSpeed){var i=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},i).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)}}()).onComplete((function(){t.callback()})).start()}else this.options.risingSpeed||t.callback()}},{key:"restart",value:function(){var e=this;this.currentWaterLaver=this.options.minWaterLevel;var t=this;this.TweenAnimate&&(this.TweenAnimate._isPaused,TWEEN.remove(this.TweenAnimate));var i=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},i).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)}}()).onComplete((function(){t.callback()})).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.loadLayer(i.options),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"layer"}},{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;//!!!发射粒子的方向 -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.pitch&&this._elms.pitch.forEach((function(t){t.value=Number(e)}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var i,n,o,s,a,r=this,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){e.next=20;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"喷射水柱属性",left:"180px",top:"100px",confirmCallBack:function(e){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Object(J.g)(r.sdk,r.options.id),Object(Z.g)(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(e){r.show=e,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(n=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
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(n),o=new YJColorPicker({el:n.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){r.startColor=e},clear:function(){r.startColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:n.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){r.endColor=e},clear:function(){r.endColor="rgba(255,255,255,1)"}}),a=n.getElementsByTagName("*"),t.EventBinding(this,a),this._elms.startColor=[o],this._elms.endColor=[s],e.next=20;break;case 20: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.speed=this.originalOptions.speed,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.start.lng,this.lat=this.originalOptions.start.lat,this.alt=this.originalOptions.start.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 Gr(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:Hr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.start.lng=o.lng,t.options.start.lat=o.lat,t.options.start.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.start.lng,t.options.start.lat,t.options.start.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.start.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.start.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.start.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.start.lng=o.lng,t.options.start.lat=o.lat,t.options.start.alt=o.alt}t.entity.position={lng:t.options.start.lng,lat:t.options.start.lat,alt:t.options.start.alt},t.previous={positions:Hr({},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.start.lng=t.entity.position.lng,t.options.start.lat=t.entity.position.lat,t.options.start.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:Hr({},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.start.lng=this.entity.position.lng,this.options.start.lat=this.entity.position.lat,this.options.start.alt=this.entity.position.alt;var 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);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.start.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.start.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.start.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(){}}],[{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=Rr(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&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 m\n \n
            \n
            \n \x3c!--
            \n 拉伸高度\n \n
            --\x3e\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 Yr(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 Jr(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)?Jr(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 Jr(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.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Zr(this,t,[e,n])).options.color=n.color||"#ff0000",i.options.show=!n.show&&!1!==n.show||n.show,i.options.height=n.height||0===n.height?n.height:10,i.options.height<=.01&&(i.options.height=.01),i.options.extrudedHeight=n.extrudedHeight||0===n.extrudedHeight?n.extrudedHeight:0,i.entity,i.nodePoints=[],i.operate={},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||[],i.options.richTextContent=n.richTextContent||"",i._elms={},i.Dialog=o,!i.options.positions||i.options.positions.length<3?(i._error="多面体最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),t.create(i)),i}return Me()(t,e),h()(t,[{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=this;if(this.event&&this.event.destroy(),this.event=new te.a(this.sdk),this.operate.positionEditing=e,this.previous={positions:nt()(this.positions)},!0===e){var n;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)"));var o=Cesium.Color.fromCssColorString(this.options.color).withAlpha(.99);2===this.sdk.viewer.scene.mode&&(o=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=o,this.picking=!1;for(var s=[],a=this.positions,r=[],l=0;l=500)t.positionEditing=!1;else{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.event.destroy();var e=t.cartesian3Towgs84(i,t.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(e.lng,e.lat);f=[],t.options.positions=[];for(var s=0;s0?new Cesium.PolygonHierarchy(f):new Cesium.PolygonHierarchy(a)}),!1)}else{this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)"));var v=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(v=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=v,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.tip&&this.tip.destroy();for(var g=[[]],y=0;ythis.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!==arguments[0]?arguments[0]:function(){},t=this;if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个顶点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];var o=!1,s=function(e,s){if(i){t.options.positions[i.index]=t.cartesian3Towgs84(s,t.sdk.viewer),n=t.options.positions[i.index],o=!0;var a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(t.options.positions[i.index].lng,t.options.positions[i.index].lat,t.options.extrudedHeight),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}});t.nodePoints.splice(i.index,0,a),t.options.positions.splice(i.index,0,t.options.positions[i.index]),t.areaByMeter=t.computeArea(t.options.positions),t.areaChangeCallBack&&t.areaChangeCallBack();for(var r=[[]],l=0;l=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}else{var h=t.sdk.viewer.scene.pick(e.position);h&&h.id&&h.id.name&&"node-secondary-edit-point"===h.id.name&&(i=h.id,t.nodePoints.splice(h.id.index,1),t.sdk.viewer.entities.remove(h.id),t.tip.set_text("左键确认,右键结束,CTRL+右键撤销"),n=t.cartesian3Towgs84(i.position._value,t.sdk.viewer))}},a=function(s,a){if(i){t.options.positions[i.index]=n,o&&t.options.positions.splice(i.index,1),t.areaByMeter=t.computeArea(t.options.positions),t.areaChangeCallBack&&t.areaChangeCallBack();for(var r=t.options.positions,l=[],c=0;c=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?a(o,i):s(o,i)}))})),t.event.mouse_right_keyboard_ctrl((function(e,n){i&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=0),t.nodePoints.pop())}));for(var r=0;r0&&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;for(var i=[[]],n=0;ni[s].alt&&(o=i[s].alt);e.options.extrudedHeight=o;for(var 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 '.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 el(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 tl(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=il(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",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,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||[],i.options.richTextContent=n.richTextContent||"",delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.nodePoints=[],!i.options.positions||i.options.positions.length<3)i._error="集结地最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=tl({},this.options.position):this.options.positions?r=tl({},this.options.positions[0]):this.options.center?r=tl({},this.options.center):this.options.start?r=tl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:function(){};if(this.positionEditing=!1,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()(e),[e[0],e[1]]):nt()(e)}),!1);for(var h=[[]],p=[],d=0;d=500?u():c(o,i)}))})),i()}),200)}}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeAssemble(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 sl(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 al(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)?al(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 al(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]:{};if(c()(this,t),(i=cl(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,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.nodePoints=[],i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontFamily:n.label.fontFamily?n.label.fontFamily:0,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,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),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=ll({},this.options.position):this.options.positions?r=ll({},this.options.positions[0]):this.options.center?r=ll({},this.options.center):this.options.start?r=ll({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&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(!(i3&&n.index===e.options.positions.length-1&&e.options.positions.splice(n.index+1,1)):e.options.positions.pop(),e._elms.lng&&e._elms.lng[n.index]&&(e._elms.lng[n.index].innerHTML=e.options.positions[n.index].lng.toFixed(8)),e._elms.lat&&e._elms.lat[n.index]&&(e._elms.lat[n.index].innerHTML=e.options.positions[n.index].lat.toFixed(8))),e.heightMode=e.heightMode,e.previous=null};e.entity.polyline.clampToGround=!0,e.entity.polyline.arcType=Cesium.ArcType.GEODESIC,e.entity.polygon.perPositionHeight=!1,e.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(s.positionsH)}),!1),e.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(s.positionsH),[s.positionsH[0],s.positionsH[1]])}),!1);for(var c=[[]],u=[],h=0;h=500?l():r(o,i)}))})),i()}),200)}}),0)}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeAttackArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){e.next=12;break}if(!(t.distance>=h[o])){e.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),e.abrupt("break",12);case 9:o--,e.next=4;break;case 12:for(s=[],a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 pl(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 dl(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=ml(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,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.options.height=n.height,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i._elms={},i.nodePoints=[],i.spreadTime=n.spreadTime,i.entity,i.event,i.operate={},i.Dialog=o,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<5)i._error="双箭头最少需要五个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=dl({},this.options.position):this.options.positions?r=dl({},this.options.positions[0]):this.options.center?r=dl({},this.options.center):this.options.start?r=dl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&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=500?l():r(o,i)}))}));for(var t=[[]],o=[],s=0;s0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computePincerArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance1/this.TweenAnimate._valuesEnd.distance1*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=212;y--){var b=this.cartesian3Towgs84(o[y],this.sdk.viewer);u.push([b.lng,b.lat,b.alt])}f?u.push([this.options.positions[2].lng,this.options.positions[2].lat,this.options.positions[2].alt]):u.push([this.options.positions[3].lng,this.options.positions[3].lat,this.options.positions[3].alt]),h.push([(this.options.positions[0].lng+this.options.positions[1].lng)/2,(this.options.positions[0].lat+this.options.positions[1].lat)/2],[this.options.positions[4].lng,this.options.positions[4].lat]);var C=this.deepCopyObj(this.options.positions),w=turf.lineString(c),k=turf.length(w,{units:"kilometers"}),x=turf.lineString(u),E=turf.length(x,{units:"kilometers"}),P=turf.lineString(h),O=turf.length(P,{units:"kilometers"}),D=t/this.spreadTime;this.TweenAnimate=new TWEEN.Tween({distance1:k*D,distance2:E*D,distance3:O*D}).to({distance1:k,distance2:E,distance3:O},this.spreadTime-t).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){t&&e.setSpreadProgressByTime()})).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.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(e.sdk.viewer){t.next=6;break}return e.removeAnimate(),t.abrupt("return");case 6:M(i);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onStart((function(){e.options.spreadState=!0,e._elms.spreadState&&e._elms.spreadState.forEach((function(e){e.checked=!0}))})).onComplete((function(t){e.removeAnimate()})),this.spreadState?this.TweenAnimate.start():M({distance1:k*D,distance2:E*D,distance3:O*D}),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positionsH)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positionsH),[i.positionsH[0],i.positionsH[1]])}),!1)}}}function M(e){return T.apply(this,arguments)}function T(){return(T=_()(S.a.mark((function e(t){var n,o,s,a,r,l,c,u;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.show){e.next=2;break}return e.abrupt("return");case 2:if(n=2,o=3,f&&(n=3,o=2),t.distance1){e.next=10;break}C[n].lng=C[1].lng,C[n].lat=C[1].lat,e.next=16;break;case 10:return e.next=12,turf.lineSliceAlong(w,0,t.distance1,{units:"kilometers"});case 12:s=e.sent,a=nt()(s.geometry.coordinates[s.geometry.coordinates.length-1]),C[n].lng=a[0],C[n].lat=a[1];case 16:if(t.distance2){e.next=21;break}C[o].lng=C[0].lng,C[3].lat=C[0].lat,e.next=27;break;case 21:return e.next=23,turf.lineSliceAlong(x,0,t.distance2,{units:"kilometers"});case 23:r=e.sent,l=nt()(r.geometry.coordinates[r.geometry.coordinates.length-1]),C[o].lng=l[0],C[o].lat=l[1];case 27:if(t.distance3){e.next=32;break}C[4].lng=h[0][0],C[4].lat=h[0][1],e.next=38;break;case 32:return e.next=34,turf.lineSliceAlong(P,0,t.distance3,{units:"kilometers"});case 34:c=e.sent,u=nt()(c.geometry.coordinates[c.geometry.coordinates.length-1]),C[4].lng=u[0],C[4].lat=u[1];case 38:i.renewPositions(C);case 39:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}},{key:"removeAnimate",value:function(){this.spreadState=!1,this.TweenAnimate&&(TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positionsH),this.entity.polyline.positions=[].concat(nt()(this.positionsH),[this.positionsH[0],this.positionsH[1]]))}},{key:"renewPositions",value:function(e){var t=this;if(!this._error&&this.sdk.viewer){var i=!1,n=this.options.positions;e&&(n=e);for(var o=[],s=0;s\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 gl(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 yl(e){for(var t=1;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 Cl(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]:{};if(c()(this,t),(i=wl(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",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.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new te.a(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,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||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.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.options.richTextContent=n.richTextContent||"",i.nodePoints=[],!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{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;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(!(l'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=yl({},this.options.position):this.options.positions?r=yl({},this.options.positions[0]):this.options.center?r=yl({},this.options.center):this.options.start?r=yl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),u=[];for(var e=0;e0)for(var t=0;t0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeStraightArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){e.next=12;break}if(!(t.distance>=h[o])){e.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),e.abrupt("break",12);case 9:o--,e.next=4;break;case 12:for(s=[],a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(e.positionEditing=!1,YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i,n,o=function(){var t=_()(S.a.mark((function t(){var i,n,o,s;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=nt()(e.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(nt()(t),[t[0],t[1]]):nt()(t)}),!1),setTimeout((function(){e.event.mouse_left(l),e.event.mouse_right(c),e.event.mouse_move(r),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){var e=new Date,o={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e-n>=500?c():l(o,i)}))}));for(var t=[[]],i=[],n=0;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 ")}function xl(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 Sl(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)?Sl(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 Sl(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=Ol(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.radius=n.radius||0===n.radius?n.radius:10,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"CircleObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){this.options.radius=Number(e),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positions),this.entity.polyline.positions=[].concat(nt()(this.positions),[this.positions[0],this.positions[1]])}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e}))}},{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.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!==x[0]?x[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=Pl({},this.options.position):this.options.positions?r=Pl({},this.options.positions[0]):this.options.center?r=Pl({},this.options.center):this.options.start?r=Pl({},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=60;break;case 23:l=this.entity.polygon.hierarchy.getValue(Cesium.JulianDate.now()).positions,c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=Number(e.lng.toFixed(8)),t.options.center.lat=Number(e.lat.toFixed(8)),t.center=t.options.center,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.previous={positions:Pl({},t.options.center)},t.positionEditing=!1}}))})),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)):(this.label&&this.label.entity&&this.label.entity.billboard&&(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.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!0))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"areaChangeCallBack",get:function(){return this._areaChangeCallBack},set:function(e){this._areaChangeCallBack=e}},{key:"nodeEdit",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};if(this.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var i=function(){var e=_()(S.a.mark((function e(){var t,i,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=nt()(n.sdk.viewer.entities.values),e.next=3,n.getClampToHeight(n.options.center,t);case 3:i=e.sent,o=n.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(n.options.center.lng,n.options.center.lat,i),billboard:{image:n.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),n.nodePoints.push(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=this;this.event&&this.event.destroy(),this.event=new te.a(this.sdk),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确认,右键取消",this.sdk),this.event=new te.a(this.sdk),this.nodePoints=[];var o,s=[],a=Pl({},this.options.center),r=null;s=this.createCircle(this.options.center,this.options.radius),this.entity.polyline.clampToGround=!0,this.entity.polyline.arcType=Cesium.ArcType.GEODESIC,this.entity.polygon.perPositionHeight=!1,this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(s))}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(s)}),!1),setTimeout((function(){var t=nt()(e.sdk.viewer.entities.values);e.getClampToHeight({lng:e.options.center.lng,lat:e.options.center.lat},t).then((function(t){e.label.position=[e.options.center.lng,e.options.center.lat,t]}))}),50),setTimeout((function(){e.event.mouse_left((function(i,n){o&&(e.sdk.viewer.entities.remove(o),o=null),a=e.cartesian3Towgs84(n,e.viewer);var s=e.computeDistance2([e.options.center,a]);e.radius=s,YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip.destroy(),e.heightMode=e.heightMode,t("",Pl({},e.options.center))})),e.event.mouse_right((function(t,i){o&&(e.sdk.viewer.entities.remove(o),o=null),YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip.destroy(),e.heightMode=e.heightMode})),e.event.mouse_move((function(t,i){o&&(o.show=!0),a=e.cartesian3Towgs84(i,e.viewer),r=e.computeDistance2([e.options.center,a]),s=e.createCircle(e.options.center,r),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),i()}),200),o=this.sdk.viewer.entities.add(new Cesium.Entity({show:!1,position:new Cesium.CallbackProperty((function(t){if(a){var i=e.computeMidpoint(e.options.center,a);return Cesium.Cartesian3.fromDegrees(i.lng,i.lat,a.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(e){return r>1e3?"半径:"+(r/1e3).toFixed(2)+" 公里":"半径:"+r+" 米"}),!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},polyline:{positions:new Cesium.CallbackProperty((function(t){return Cesium.Cartesian3.fromDegreesArray([e.options.center.lng,e.options.center.lat,a.lng,a.lat])}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),this.nodePoints.push(o)}}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.createCircle(e,this.options.radius),s=[];if(i)this.positions=Cesium.Cartesian3.fromDegreesArray(o),setTimeout((function(){var i=nt()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:e.lng,lat:e.lat},i).then((function(i){t.label&&(t.label.position=[e.lng,e.lat,i])}))}),100);else{for(var a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\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 ")}function Tl(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 Nl(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)?Nl(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 Nl(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=Al(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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||[],i.options.richTextContent=n.richTextContent||"",i.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"EllipseObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;this.entity.polygon.hierarchy=[],!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),this.previous=null,t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"semiMinorAxis",get:function(){return this.options.semiMinorAxis},set:function(e){this.options.semiMinorAxis=e,this.height=this.height}},{key:"semiMajorAxis",get:function(){return this.options.semiMajorAxis},set:function(e){this.options.semiMajorAxis=e,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"bearing",get:function(){return this.options.bearing},set:function(e){this.options.bearing=e,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){var t=this;this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t.options.line.width}))}},{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.show=e: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.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!==x[0]?x[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!this.options.customView){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=jl({},this.options.position):this.options.positions?r=jl({},this.options.positions[0]):this.options.center?r=jl({},this.options.center):this.options.start?r=jl({},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=60;break;case 23:l=this.entity.polyline.positions.getValue(),c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{[];var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=e.lng,t.options.center.lat=e.lat,t.center=t.options.center,t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis}),t.label.position=[e.lng,e.lat],t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.previous={center:t.deepCopyObj(t.options.center)},t.positionEditing=!1}}))})),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.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!0)}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"nodeEdit",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=this;if(i.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var n,o=function(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 450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)},s=function(){var e=_()(S.a.mark((function e(t,n){var o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.cartesian3Towgs84(t,i.sdk.viewer),e.next=3,i.getClampToHeight(o,d);case 3:s=e.sent,a=i.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:i.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),i.nodePoints.push(a);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();i.event&&i.event.destroy(),i.event=new te.a(i.sdk),YJ.Measure.SetMeasureStatus(!0),i.tip=new St.a("请选择一个编辑点,右键取消",i.sdk),i.event=new te.a(i.sdk),i.nodePoints=[];var a=Cesium.Cartesian3.fromDegrees(i.center.lng,i.center.lat),r=i.options.semiMinorAxis,l=i.options.semiMajorAxis,c=i.options.bearing,u=i.createEllipse(i.options.center,{bearing:i.options.bearing,semiMinorAxis:i.options.semiMinorAxis,semiMajorAxis:i.options.semiMajorAxis});i.entity.polyline.clampToGround=!0,i.entity.polyline.arcType=Cesium.ArcType.GEODESIC,i.entity.polygon.perPositionHeight=!1,i.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(u)}),!1),i.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(u),[u[0],u[1]])}),!1);var h=i.entity.polyline.positions.getValue(),p=h.length,d=nt()(i.sdk.viewer.entities.values);setTimeout((function(){i.event.mouse_left((function(e,t){if(n)i.options.semiMinorAxis=r,i.options.semiMajorAxis=l,i.options.bearing=c,i.event&&i.event.destroy(),i.tip&&i.tip.destroy(),i.tip=null,n=null,YJ.Measure.SetMeasureStatus(!1),i.heightMode=i.heightMode;else{var s=i.sdk.viewer.scene.pick(e.position);if(s&&s.id&&s.id.name&&"node-secondary-edit-point"===s.id.name&&("semiMinorAxis"===s.id._type||"semiMajorAxis"===s.id._type)){i.tip.set_text("左键确认,右键取消"),n=s.id;for(var h=0;h0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}return this.positions=this.createEllipse(e,{bearing:this.options.bearing,semiMinorAxis:this.options.semiMinorAxis,semiMajorAxis:this.options.semiMajorAxis,height:e.alt+n}),i?setTimeout((function(){t.getClampToHeight({lng:e.lng,lat:e.lat}).then((function(i){t.label&&(t.label.position=[e.lng,e.lat,i])}))}),100):this.label&&(this.label.position=[e.lng,e.lat,e.alt+n]),this.areaByMeter=Number((Cesium.Math.PI*this.options.semiMinorAxis*this.options.semiMajorAxis).toFixed(2)),this.areaChangeCallBack&&this.areaChangeCallBack(),this.positions}}}],[{key:"create",value:function(e){var i,n=0;switch(e.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=e.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.options.center.lng,e.options.center.lat))||0,i=!1;break;case"2":case 2:i=!0}e.options.label.position||(e.options.label.position={lng:e.options.center.lng,lat:e.options.center.lat,alt:e.options.center.alt+n});var o=Cesium.Color.fromCssColorString(e.options.color);2===e.sdk.viewer.scene.mode&&(i=!1,o=new Cesium.CustomColorMaterialSource({color:e.options.color}));var s=e.createEllipse(e.options.center,{bearing:e.options.bearing,semiMinorAxis:e.options.semiMinorAxis,semiMajorAxis:e.options.semiMajorAxis,height:e.options.center.alt+n});e.entity=e.sdk.viewer.entities.add({id:e.options.id,show:e.options.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(s),perPositionHeight:!i,material:o,zIndex:e.sdk._entityZIndex},polyline:{positions:[].concat(nt()(s),[s[0],s[1]]),width:e.options.line.width,material:Cesium.Color.fromCssColorString(e.options.line.color),clampToGround:!!i,arcType:i?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,zIndex:e.sdk._entityZIndex}}),e.sdk._entityZIndex++,t.createLabel(e),e.areaByMeter=Number((Cesium.Math.PI*e.options.semiMajorAxis*e.options.semiMinorAxis).toFixed(2)),e.areaChangeCallBack&&e.areaChangeCallBack(),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){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0: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:t.options.label.ground});case 1: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=Tl(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\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 '.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 Rl(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 zl(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)?zl(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 zl(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.min&&nNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Vl(this,t,[e,i])).options.color=i.color||"#ff0000",n.options.extrudedHeight=i.extrudedHeight||2.4,n.options.positions=i.positions,n.options.material=Number(i.material)||0===Number(i.material)?Number(i.material):3,n.options.duration=i.duration||0===i.duration?i.duration:1e3,n.options.show=!i.show&&!1!==i.show||i.show,n.options.noseToTail=i.noseToTail||!1,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={show:i.label.show||!1,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],delete n.options.attribute.camera,delete n.options.attribute.vr,delete n.options.attribute.goods,n.options.richTextContent=i.richTextContent||"",n.Dialog=o,n._elms={},!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),t.create(n)),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"wallStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e||"#ff0000",this.entity.polylineVolume.material=this.getMaterial(),this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[i]=n}))}},{key:"material",get:function(){return this.options.material},set:function(e){var t=this;this.options.material=Number(e)||0===Number(e)?Number(e):3,this.entity.polylineVolume.material=this.getMaterial(),this._elms.material&&this._elms.material.forEach((function(e){e.value=t.options.material}))}},{key:"noseToTail",get:function(){return this.options.noseToTail},set:function(e){this.options.noseToTail=e;for(var t=this.options.positions,i=[],n=0;nthis.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纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'上升墙',value:"上升墙",key:1,icon:"icon-wall-gradient"},{name:'箭头墙',value:"箭头墙",key:2,icon:"icon-wall-arrow"},{name:'警戒墙',value:"警戒墙",key:3,icon:"icon-wall-warn"}],(o=Object(je.a)(i.getElementsByClassName("material-box")[0],".material")).legp_search(n),(s=document.createElement("i")).className="icon icon-active",i.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(s),a=i.getElementsByClassName("material")[0].getElementsByTagName("input")[0],r=0;case 23:if(!(r=1e5&&(s=!0),o.push(r),n+=r}var l=n/t.options.extrudedHeight;if(l/=1,s)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:function(){},t=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个顶点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=[],a=0;a=500?c(o,i):l(o,i)}))}));for(var h=0;h0&&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;o\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 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 '.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 Ul(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 Yl(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)?Yl(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 Yl(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.min&&nNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Xl(this,t,[e,i]))._elms={},n.options.color=i.color||"#ffffff",n.options.width=i.width||.24,n.options.noseToTail=i.noseToTail||!1,n.options.extrudedHeight=i.extrudedHeight||2.4,n.cornerType=i.cornerType,n.options.positions=i.positions,n.options.material=Number(i.material)||0,n.options.show=!i.show&&!1!==i.show||i.show,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],delete n.options.attribute.camera,delete n.options.attribute.vr,delete n.options.attribute.goods,n.options.richTextContent=i.richTextContent||"",n.Dialog=o,!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),t.create(n)),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"WallRealStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e,this.entity)for(var i=0;ithis.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){var O=_;_=E+180,E=O+180,P=!1}var D=turf.sector([C.lng,C.lat,C.alt],this.options.width/1e3/2,_,E,{units:"kilometers"});if(console.log("sector",D),0==b&&(o.push(t[b]),s.push(i[b])),console.log("face",P),P){o.push(t[b+1],t[b+2]);for(var M=1;M0;T--)o.push([].concat(nt()(D.geometry.coordinates[0][T]),[t[b+1][2]]));s.push(i[b+1],i[b+2])}b==t.length-4&&(o.push(t[b+3]),s.push(i[b+3]))}n=[].concat(o);for(var N=s.length-1;N>=0;N--)n.push(s[N]);return n.push(n[0]),console.log("positions",n),n}},{key:"calculatePositions2",value:function(){for(var e=[],t=0;t180&&(h=360-h),h}return e}},{key:"calculatePositions",value:function(){var e=this.deepCopyObj(this.options.positions);this.noseToTail&&e.push(e[0],e[1]);for(var t=[],i=[],n=0;n0){var _=b;b=k+180,k=_+180,!1}var x=Math.abs(b-k);x>180&&(x=360-x);var S=this.options.width/2/Math.cos(Cesium.Math.toRadians(x/2));S>5*this.options.width&&(S=5*this.options.width);var E=turf.sector([v.lng,v.lat],this.options.width/1e3/2,b,k,{units:"kilometers",steps:3600}),P=turf.point([v.lng,v.lat]),O=turf.point(nt()(E.geometry.coordinates[0][Math.ceil(E.geometry.coordinates[0].length/2)])),D=turf.bearing(P,O),M=turf.destination(P,S/1e3,D,{units:"kilometers"}),T=[];T.push([].concat(nt()(E.geometry.coordinates[0][0]),[v.alt])),T.push([].concat(nt()(E.geometry.coordinates[0][1]),[v.alt])),T.push([].concat(nt()(M.geometry.coordinates),[v.alt])),T.push([].concat(nt()(E.geometry.coordinates[0][E.geometry.coordinates[0].length-2]),[v.alt])),i.push(T),i.push(t[f])}else if(1===this.cornerType)for(var N=1;N0){var H=I;I=F+180,F=H+180}for(var V=turf.sector([j.lng,j.lat],this.options.width/1e3/2,I,F,{units:"kilometers"}),G=[],W=0;W直角',value:"直角",key:0,icon:"yj-icon-zj"},{name:'斜角',value:"斜角",key:1,icon:"yj-icon-xj"},{name:'圆角',value:"圆角",key:2,icon:"yj-icon-yj"}],(o=Object(je.a)(i.getElementsByClassName("corner-type-box")[0],".corner-type")).legp_search(n),(s=document.createElement("i")).className="icon-active",i.getElementsByClassName("corner-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(s),a=i.getElementsByClassName("corner-type")[0].getElementsByTagName("input")[0],r=0;case 20:if(!(r'),e.abrupt("break",29);case 26:r++,e.next=20;break;case 29:a.addEventListener("input",(function(e,t){for(var i=0;i');break}})),l=[{name:'纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'红砖墙',value:"红砖墙",key:1,icon:"icon-wall-brick1"},{name:'黄砖墙',value:"黄砖墙",key:2,icon:"icon-wall-brick2"},{name:'灰瓷墙',value:"灰瓷墙",key:3,icon:"icon-wall-brick3"}],(c=Object(je.a)(i.getElementsByClassName("material-box")[0],".material")).legp_search(l),(u=document.createElement("i")).className="icon icon-active",i.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(u),h=i.getElementsByClassName("material")[0].getElementsByTagName("input")[0],p=0;case 38:if(!(p0&&void 0!==arguments[0]?arguments[0]:function(){},i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n,o,s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.entity){for(var n=i.calculatePositions(),o=0;o=500?u(o,t):c(o,t)}))}));for(var h=0;h0&&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;o\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 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 ').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 Ql(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 $l(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)?$l(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 $l(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.min&&i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=oc(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.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);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,u=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=Kl(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){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("extendColor")[0],size:"mini",alpha:!0,defaultColor:this.extendColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.extendColor=e},clear:function(){u.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){u.labelLineColor=e},clear:function(){u.labelLineColor="rgba(255,255,255,1)"}}),r=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)"}}),l=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)"}}),c=i.getElementsByTagName("*"),tc.on(this,c),this._elms=tc.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.extendColor=[s],this._elms.labelLineColor=[a],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],setTimeout((function(){u.attributeLink=u.options.attribute.link.content;var e=u.attributeSelect,t=u._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=u._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)(u._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",u._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(g);var y=u._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];u._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=u.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=u.options.positions[e].lng.toFixed(8);var s=t.getElementsByClassName("lat")[0],a=document.createElement("span");a.innerHTML=u.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=u.options.positions[e].lat.toFixed(8);var l=t.getElementsByClassName("alt")[0],c=document.createElement("span");c.innerHTML=u.options.positions[e].alt.toFixed(2),l.appendChild(c);var h=document.createElement("input");h.className="input",h.type="number",h.title="",h.min=-9999999,h.max=999999999,h.value=u.options.positions[e].alt.toFixed(2),i.addEventListener("dblclick",(function(){i.innerHTML="",o.value=Number(u.options.positions[e].lng.toFixed(8)),i.appendChild(o),o.focus(),u.positionEditing=!1,u.closeNodeEdit()})),o.addEventListener("blur",(function(){o.value=Number(u.options.positions[e].lng.toFixed(8)),i.innerHTML="",i.appendChild(n)})),o.addEventListener("input",(function(){u.options.positions[e].lng=Number(Number(o.value).toFixed(8)),n.innerHTML=u.options.positions[e].lng.toFixed(8);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(u.options.positions[e].lat.toFixed(8)),s.appendChild(r),r.focus(),u.positionEditing=!1,u.closeNodeEdit()})),r.addEventListener("blur",(function(){r.value=Number(u.options.positions[e].lat.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){u.options.positions[e].lat=Number(Number(r.value).toFixed(8)),a.innerHTML=u.options.positions[e].lat.toFixed(8);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),l.addEventListener("dblclick",(function(){2!=u.heightMode&&(l.innerHTML="",h.value=Number(u.options.positions[e].alt.toFixed(2)),l.appendChild(h),h.focus(),u.positionEditing=!1,u.closeNodeEdit())})),h.addEventListener("blur",(function(){h.value=Number(u.options.positions[e].alt.toFixed(2)),l.innerHTML="",l.appendChild(c)})),h.addEventListener("input",(function(){u.options.positions[e].alt=Number(Number(h.value).toFixed(2)),c.innerHTML=u.options.positions[e].alt.toFixed(2);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),u._elms.lng.push(n),u._elms.lngInput.push(o),u._elms.lat.push(a),u._elms.latInput.push(r),u._elms.alt.push(c),u._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.f)(this.sdk),Object(X.g)(this.sdk),Object(X.w)(0),!this.options.customView){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=nc({},this.options.position):this.options.positions?r=nc({},this.options.positions[0]):this.options.center?r=nc({},this.options.center):this.options.start?r=nc({},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 Cesium.Cartesian3.fromDegreesArrayHeights(n)}),!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 u=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(u),this.renewPolygon(u),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,u[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:u[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:u[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;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=lc(this,t,[e,n])).viewer=e.viewer,i.options.show=!n.show&&!1!==n.show||n.show,i.options.name=i.options.name||"未命名对象",i.options.size=i.options.size||0===i.options.size?i.options.size:80,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.event=new te.a(i.sdk),i.Dialog=o,i.operate={},i._elms={},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"Explosion"}},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n;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+" explosion",(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
            \n
            \n 爆炸范围\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,this.scaleByDistance=this.options.scaleByDistance;case 16:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"flyTo",value:(n=_()(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=rc({},this.options.position):this.options.positions?r=rc({},this.options.positions[0]):this.options.center?r=rc({},this.options.center):this.options.start?r=rc({},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.position.lng,this.options.position.lat,this.options.position.alt+8*this.options.size),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-85),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.previous=null,this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.size=this.originalOptions.size,this.scaleByDistance=this.originalOptions.scaleByDistance,this.lng=this.options.position.lng,this.lat=this.options.position.lat)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity.billboard.sizeInMeters=e,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(t){t.checked=e}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=e,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=e,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=e,this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"size",get:function(){return this.options.size},set:function(e){this.options.size=e,this.entity.billboard.width=this.options.size,this.entity.billboard.height=this.options.size,this._elms.size&&this._elms.size.forEach((function(t){t.value=e}))}},{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.previous={position:rc({},this.options.position)},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.alt=n.alt,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.alt=n.alt,t.previous={position:rc({},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._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),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.alt=e.alt,t.previous={position:rc({},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.positionEditing=!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.previous&&(this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt)))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.viewer.entities.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=7,this.sdk.removeIncetance(this.options.id);case 7:return e.next=9,Object(J.g)(this.sdk,this.options.id);case 9:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(e){for(var t=[],i=10001;i<=10120;i++){var n=e.getSourceRootPath()+"/img/frameAnimation/explosion/b".concat(i,".png");t.push(n)}var o=new Cesium.Entity({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt)}),!1),billboard:{image:new Cesium.CallbackProperty((function(){var e=t[o.imgIndex];return o.imgIndex++,o.imgIndex>=t.length&&(o.imgIndex=0),e}),!1),disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),width:e.options.size,height:e.options.size,sizeInMeters:e.options.scaleByDistance,pixelOffset:{x:0,y:-20}}});o.imgIndex=0,e.entity=e.viewer.entities.add(o),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id)}}]);var i,n,o}(vt);function uc(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 m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 持续时间\n
            \n \n ms\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 '.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 hc(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 pc(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=dc(this,t,[e,i])).options.lng=i.lng,n.options.lat=i.lat,n.options.alt=i.alt,n.options.colorOut=i.colorOut||"rgba(255,255,0,0.3)",n.options.colorIn=i.colorIn||"rgba(255,0,0,0.3)",n.options.radius=i.radius||10,n.options.radius>999999&&(n.options.radius=999999),n.options.duration=i.duration||2e3,n.event=new te.a(n.sdk),i.label=i.label||{},n.options.label={show:i.label.show||!1,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.richTextContent=i.richTextContent||"",n._elms={},n.Dialog=o,n._EventBinding=new Ye,n.ControllerObject=new fi(n.sdk),n.sdk.addIncetance(n.options.id,n),t.radarSolidScan(n),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"RadarScanStereoscopic"}},{key:"positionEditing",get:function(){return"translational"===this.ControllerObject.getActiveState()},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(e?(this.picking=!1,this.ControllerObject.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this.ControllerObject.editTranslational(),this.ControllerObject.controllerCallBack=function(e){t.lng=e.position.lng,t.lat=e.position.lat,t.alt=e.position.alt,t._positionEditingCallback&&t._positionEditingCallback()}):(setTimeout((function(){t.picking=!0}),500),this.ControllerObject.destroy(),this._positionEditingCallback=null))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=Number(e),this.label.position=[e,this.lat,this.alt+this.radius],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=Number(e),this.label.position=[this.lng,e,this.alt+this.radius],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=Number(e),this.label.position=[this.lng,this.lat,e+this.radius],this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"radius",get:function(){return this.options.radius},set:function(e){var i=Number(e.toFixed(2));(i>999999&&(i=999999),i<.1&&(i=.1),this.options.radius=i,this.label.position=[this.lng,this.lat,this.alt+e],this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(i=Number((i/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(e){e.value=i})),t.changeParam(this)}},{key:"duration",get:function(){return this.options.duration},set:function(e){this.options.duration=e,this._elms.duration&&this._elms.duration.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"colorOut",get:function(){return this.options.colorOut},set:function(e){var t=this;this.options.colorOut=e,this.entity.ellipsoid.material=Cesium.Color.fromCssColorString(e),this.entity.ellipsoid.outlineColor=Cesium.Color.fromCssColorString(e),this._elms.colorOut&&this._elms.colorOut.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.colorOut=e},clear:function(){t.colorOut="rgba(255,255,255,1)"}});t._elms.colorOut[n]=o}))}},{key:"colorIn",get:function(){return this.options.colorIn},set:function(e){var t=this;this.options.colorIn=e,this.entity.wall.material=Cesium.Color.fromCssColorString(e),this._elms.colorIn&&this._elms.colorIn.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.colorIn=e},clear:function(){t.colorIn="rgba(255,255,255,1)"}});t._elms.colorIn[n]=o}))}},{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.show=e: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.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;t=Number(e.target.min))&&(h.radius=i*("米"===t?1:1e3))}})),u.addEventListener("blur",(function(e){var t=h._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!==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=pc({},this.options.position):this.options.positions?r=pc({},this.options.positions[0]):this.options.center?r=pc({},this.options.center):this.options.start?r=pc({},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 o.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,this.colorOut=this.originalOptions.colorOut,this.colorIn=this.originalOptions.colorIn,this.radius=this.originalOptions.radius,this.duration=this.originalOptions.duration,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.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,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.positionEditing=!1)}},{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.remove(),this.sdk.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=6,this.sdk.removeIncetance(this.options.id);case 6:return e.next=8,Object(J.g)(this.sdk,this.options.id);case 8: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.options.alt+this.options.radius);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:"radarSolidScan",value:function(e){var i=e.sdk.viewer,n=e.options,o=(n.radius,n.lng,n.lat,n.alt,e.options.duration?360/e.options.duration*Cesium.getTimestamp():0),s=a(e.options,e.options.radius,o);(new Date).getTime();function a(e,t,i){var n=e.lng,o=e.lat,s=e.alt,a=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,s)),r=t*Math.cos(i*Math.PI/180),l=t*Math.sin(i*Math.PI/180),c=Cesium.Cartesian3.fromElements(r,l,s),u=Cesium.Matrix4.multiplyByPoint(a,c,new Cesium.Cartesian3),h=Cesium.Cartographic.fromCartesian(u);return function(e,t,i,n,o){var s=[],a=[];s.push(e,t,o),a.push(o);for(var r=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(e,t),Cesium.Cartesian3.fromDegrees(i,n)),l=0;l<=90;l++){var c=r*Math.sin(l*Math.PI/180),u=Math.cos(l*Math.PI/180),h=(i-e)*u+e,p=(n-t)*u+t;s.push(h,p,c+o),a.push(o)}return{positionArr:s,bottomArr:a}}(n,o,Cesium.Math.toDegrees(h.longitude),Cesium.Math.toDegrees(h.latitude),s)}i.clock.onTick.addEventListener((function(){o=e.options.duration?360/e.options.duration*Cesium.getTimestamp():0,s=a(e.options,e.options.radius,o)})),e.entity=i.entities.add({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3.fromDegrees(e.options.lng,e.options.lat,e.options.alt)}),!1),ellipsoid:{radii:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3(e.options.radius,e.options.radius,e.options.radius)}),!1),material:Cesium.Color.fromCssColorString(n.colorOut),outline:!0,outlineColor:Cesium.Color.fromCssColorString(n.colorOut),outlineWidth:1,maximumCone:Cesium.Math.toRadians(90)},wall:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(s.positionArr)}),!1),material:Cesium.Color.fromCssColorString(n.colorIn),minimumHeights:new Cesium.CallbackProperty((function(){return s.bottomArr}),!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,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.options.alt){e.next=4;break}i=t.options.alt+t.options.radius,e.next=8;break;case 4:return n=nt()(t.sdk.viewer.entities.values),e.next=7,t.getClampToHeight({lng:t.options.lng,lat:t.options.lat},n);case 7:i=e.sent;case 8: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,ground:!1,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});case 10:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"changeParam",value:function(e){}}]);var i,n,o,s}(vt);function fc(e){return'\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 ")}function vc(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 gc(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)?gc(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 gc(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=Cc(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"SectorObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"startAngle",get:function(){return this.options.startAngle},set:function(e){this.options.startAngle=e,this.height=this.height}},{key:"endAngle",get:function(){return this.options.endAngle},set:function(e){this.options.endAngle=e,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){this.options.radius=e,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){var t=this;this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t.options.line.width}))}},{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.show=e: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.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!==x[0]?x[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!this.options.customView){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=bc({},this.options.position):this.options.positions?r=bc({},this.options.positions[0]):this.options.center?r=bc({},this.options.center):this.options.start?r=bc({},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=60;break;case 23:l=this.entity.polyline.positions.getValue(),c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=e.lng,t.options.center.lat=e.lat,t.center=t.options.center,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.previous={center:t.deepCopyObj(t.options.center)},t.positionEditing=!1}}))})),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)):(this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.label&&this.label.entity&&this.label.entity.billboard&&(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.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),this.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),this.previous=null)}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"areaChangeCallBack",get:function(){return this._areaChangeCallBack},set:function(e){this._areaChangeCallBack=e}},{key:"nodeEdit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=this;if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var i,n=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)}},o=function(){var e=_()(S.a.mark((function e(i,n){var o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.cartesian3Towgs84(i,t.sdk.viewer),e.next=3,t.getClampToHeight(o);case 3:s=e.sent,a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY}}),t.nodePoints.push(a);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();t.event&&t.event.destroy(),t.event=new te.a(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个编辑点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];var s=t.calSector(t.options.center,t.options.radius,t.options.startAngle,t.options.endAngle),a=[],r=t.options.radius,l={angle1:t.options.startAngle,angle2:t.options.endAngle};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(s)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(s),[s[0],s[1]])}),!1);var c=t.entity.polyline.positions.getValue();a=[bc({},t.center),t.cartesian3Towgs84(c[1],t.sdk.viewer),t.cartesian3Towgs84(c[c.length-4],t.sdk.viewer)];var u=nt()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:t.options.center.lng,lat:t.options.center.lat},u).then((function(e){t.label.position=[t.options.center.lng,t.options.center.lat,e]})),setTimeout((function(){o(c[1],"sector-start"),o(c[c.length-4],"sector-end"),t.event.mouse_left((function(e,n){if(i)t.options.startAngle=l.angle1,t.options.endAngle=l.angle2,t.options.radius=r,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,i=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var o=t.sdk.viewer.scene.pick(e.position);if(o&&o.id&&o.id.name&&"node-secondary-edit-point"===o.id.name&&("sector-start"===o.id._type||"sector-end"===o.id._type)){t.tip.set_text("左键确认,右键取消"),i=o.id;for(var s=0;s0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.calSector(e,this.options.radius,this.options.startAngle,this.options.endAngle,360,!0),s=[];if(i){for(var a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=kc(this,t,[e,n])).source=new Cesium.CustomDataSource(i.options.id),i.detail=[],i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.source&&(this.source.show=e,this.options.show=e)}},{key:"setDefaultValue",value:function(){var e;this.options.id=this.options.id||Cesium.createGuid(),this.options.url=this.options.url||"",this.options.show=null===(e=this.options.show)||void 0===e||e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.length>0&&void 0!==r[0]?r[0]:3,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?(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),this.sdk.viewer.camera.flyTo({destination:a,orientation:i,duration:t})):this.source&&this.viewer.flyTo(this.source,{duration:t});case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var e,i,n,o,s;(e=t,i="remove",n=this,o=3,s=On()(Oe()(1&o?e.prototype:e),i,n),2&o&&"function"==typeof s?function(e){return s.apply(n,e)}:s)([]),this.viewer.dataSources.remove(this.source),this.source=null}},{key:"on",value:(i=_()(S.a.mark((function e(){var t=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.show=this.options.show,e.next=3,Cesium.KmlDataSource.load(this.options.url,{camera:this.viewer.scene.camera,canvas:this.viewer.scene.canvas});case 3:return e.sent.entities.values.forEach((function(e,i){if(t.detail.push({name:e.name,id:e.id}),e.label){var n=1;e.billboard&&(n=e.billboard.scale._value),e.label.pixelOffset=new Cesium.Cartesian2(0,-32*n-15),e.label.horizontalOrigin=Cesium.HorizontalOrigin.CENTER,e.label.disableDepthTestDistance=Number.POSITIVE_INFINITY}if(e.polygon){var o={hierarchy:e.polygon.hierarchy.getValue().positions,material:e.polygon.material,classificationType:Cesium.ClassificationType.BOTH};if(e.polygon.outline.getValue()){var s=e.polygon.hierarchy.getValue().positions,a=new Cesium.Entity({id:t.getOutlineId(e.id),polyline:{positions:s,width:e.polygon.outlineWidth.getValue(),material:e.polygon.outlineColor.getValue(),clampToGround:!0,zIndex:t.sdk._entityZIndex}});t.source.entities.add(a)}e.polygon=o}e.billboard&&(e.billboard.heightReference=Cesium.HeightReference.CLAMP_TO_GROUND),e.polyline&&(e.polyline={positions:e.polyline.positions.getValue(),material:e.polyline.material,clampToGround:!0,width:e.polyline.width?e.polyline.width.getValue():1}),e.show=!0,t.source.entities.add(e)})),e.next=7,this.viewer.dataSources.add(this.source);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getOutlineId",value:function(e){return[e,"outline"].join("_")}}]);var i,n}(vt);function xc(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 Sc=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=xc(this,t,[e,n])).primitive=void 0,i.positions=[],i.loading=!0,i}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)(),this.options.color=this.options.color||"rgb(239, 6, 6, 1)",this.options.width=this.options.width||1}},{key:"show",get:function(){return this.options.show},set:function(e){if(this.options.show=e,this.entity)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Oc(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(32,67,135,0.5)",i.options.positions=n.positions||[],i.options.frequency=n.frequency||10,i.options.animationSpeed=n.animationSpeed||1,i.options.amplitude=n.amplitude||10,i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.entity&&(this.entity.appearance.material.uniforms.baseWaterColor=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:"frequency",get:function(){return this.options.frequency},set:function(e){this.options.frequency=e,this.entity&&(this.entity.appearance.material.uniforms.frequency=10*e),this._elms.frequency&&this._elms.frequency.forEach((function(t){t.value=e}))}},{key:"animationSpeed",get:function(){return this.options.animationSpeed},set:function(e){this.options.animationSpeed=e,this.entity&&(this.entity.appearance.material.uniforms.animationSpeed=.01*e),this._elms.animationSpeed&&this._elms.animationSpeed.forEach((function(t){t.value=e}))}},{key:"amplitude",get:function(){return this.options.amplitude},set:function(e){this.options.amplitude=e,this.entity&&(this.entity.appearance.material.uniforms.amplitude=e),this._elms.amplitude&&this._elms.amplitude.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.options.height},set:function(e){this.options.height=e;var t=this.options.positions[0],i=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,e),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,this.entity.originalHeight);this.entity.modelMatrix=Cesium.Matrix4.setTranslation(this.entity.modelMatrix,new Cesium.Cartesian3(i.x-n.x,i.y-n.y,i.z-n.z),new Cesium.Matrix4),this._elms.height&&this._elms.height.forEach((function(t){t.value=e}))}},{key:"edit",value:(o=_()(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:if(t=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),!t){e.next=19;break}return e.next=7,new Be(this.sdk,this.originalOptions,{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(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" water-surface",(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 \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 ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("water-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 19:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.frequency=this.originalOptions.frequency,this.animationSpeed=this.originalOptions.animationSpeed,this.amplitude=this.originalOptions.amplitude,this.height=this.originalOptions.height)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[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=Pc({},this.options.position):this.options.positions?r=Pc({},this.options.positions[0]):this.options.center?r=Pc({},this.options.center):this.options.start?r=Pc({},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=28;break;case 23:l=Cesium.Rectangle.fromCartesianArray(this.entity.geometryInstances.geometry._polygonHierarchy.positions),c=this.sdk.viewer.camera.getRectangleCameraCoordinates(l),u=this.cartesian3Towgs84(c,this.sdk.viewer),h=Cesium.Cartesian3.fromDegrees(u.lng,u.lat,u.alt+this.height),this.sdk.viewer.camera.flyTo({orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:h});case 28:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=5,this.sdk.removeIncetance(this.options.id);case 5:return e.next=7,Object(J.g)(this.sdk,this.options.id);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(e){for(var t=e.options.positions,i=[],n=t[0].alt,o=0;o=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 Tc(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),Ac(i=jc(this,t,[e,n]),Ic,null),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.speed<=0&&(i.options.speed=.01),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.model=n.model=n.model||{},i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.height=Number(i.options.height.toFixed(2)),i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.model.show=!n.model.show&&!1!==n.model.show||n.model.show,i.options.model.url=n.model.url||"",i.options.model.pixelSize=n.model.pixelSize||70,i.options.model.heading=n.model.heading||0,i.options.model.pitch=n.model.pitch||0,i.options.model.roll=n.model.roll||0,i.options.model.scale=n.model.scale||0===n.model.scale?n.model.scale:1,i.options.model.animate=n.model.animate||"无",i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.reverse=n.reverse||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._lineEdit=!1,i._keyPoint=!1,i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i.distance,n.label=n.label||{},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.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),i.ControllerObject=new fi(i.sdk),i._EventBinding=new Ye,i.options.viewFollow=!1,i.options.firstPersonView=!1,t.addLine(i),i.firstPersonView=!1),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TrajectoryMotion"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.a)();if(this.isShowView&&t||(this.options.show=e,this.originalOptions&&(this.originalOptions.show=e)),this.options.show){this.firstPersonView?this.model.show=!1:this.model.show=(!this.showView||3==this.showView||!t)&&this.modelShow,this.showView&&3!=this.showView&&t?this.line.polyline.material=new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20}):this.line.polyline.material=this.lineShow?new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff"),dashLength:20}):new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20});for(var i=0;i0)for(var i=0;i=500?(t.keyPointShow=!1,YJ.Measure.SetMeasureStatus(!1),t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,t.ControllerObject.destroy()):s(o)}))})),this.line.polyline.positions=new Cesium.CallbackProperty((function(){return i}),!1),this.keyPointShow=e}else this.lineEdit&&(YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null),this.keyPointShow=e,this.ControllerObject.destroy();this._lineEdit=e,this._elms.lineEdit&&this._elms.lineEdit.forEach((function(t){t.checked=e}))}},{key:"routeDirection",get:function(){return this.options.routeDirection},set:function(e){this.options.routeDirection=e,this._elms.routeDirection&&this._elms.routeDirection.forEach((function(t){t.checked=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&this.TweenAnimate._isPlaying&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"firstPersonView",get:function(){return this.options.firstPersonView},set:function(e){var t=this,i=Object(J.a)(),n=Object(Z.a)();if((Object(J.a)()||n.sdkD||!this.show)&&(e=!1),cancelAnimationFrame(this._requestAnimationFrameEventId),this._firstPersonViewEvent&&this._firstPersonViewEvent.destroy(),this.sdk.viewer._firstPersonView=e,this.options.firstPersonView=e,this.options.firstPersonView){if(this.viewFollow=!0,this.firstPersonHeadingPitch={heading:0,pitch:-10},this.state=!0,this.model&&(this.model.show=!1),this._DialogObject&&this._DialogObject._element.content){var o=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");o[0].className="btn is-active",o[1].className="btn"}this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),Object(X.a)(this.sdk,!1);var s,a=Object(Z.a)(),r=(s=this.sdk===a.sdkP?a.sdkD:a.sdkP)?s.entityMap.get(this.options.id):void 0;this.sdk&&(this._firstPersonViewEvent=new te.a(this.sdk)),this._firstPersonViewEvent.mouse_right_down((function(e,i){var n=Bc({},e.position);t._firstPersonViewEvent.mouse_move((function(e,i){t.firstPersonHeadingPitch.heading=t.firstPersonHeadingPitch.heading+(e.endPosition.x-n.x)/20,t.firstPersonHeadingPitch.pitch=t.firstPersonHeadingPitch.pitch+(n.y-e.endPosition.y)/10,r&&(r.firstPersonHeadingPitch=Bc({},t.firstPersonHeadingPitch)),n=Bc({},e.endPosition)}),!0)}),!0),this._firstPersonViewEvent.mouse_right_up((function(e,i){t._firstPersonViewEvent.mouse_move((function(){}))}),!0)}else{if(Object(X.a)(this.sdk,!0),this.model&&this.modelShow&&this.show){var l=!0;l=!(!this.show||this.showView&&3!=this.showView&&i),this.model.show=l}if(this._DialogObject&&this._DialogObject._element.content){var c=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");c[0]&&c[1]&&(c[0].className="btn",c[1].className="btn is-active")}if(this.viewFollow&&this.show){if(this.sdk.viewer.trackedEntity&&this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),3===this.sdk.viewer.scene.mode){var u=this.sdk.viewer.entities.add({position:this.positions_smooth[0],point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=u}this.viewFollow=this.viewFollow}}Object(Z.g)(this.sdk,this.options.id)}},{key:"viewFollow",get:function(){return this.options.viewFollow},set:function(e){Object(Z.a)();var t=Object(J.a)();if(this.show||(e=!1),this.options.viewFollow=e,this.options.viewFollow?(this.editObj&&(this.editObj.destroy(),this.editObj=null,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn")),Object(X.f)(this.sdk),this.lineEdit=!1):this.firstPersonView=!1,this.options.firstPersonView){if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),this._DialogObject&&this._DialogObject._element.content){var i=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");i[0]&&i[1]&&(i[0].className="btn",i[1].className="btn is-active")}}else if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),e&&this.show&&this.model){var n=this.sdk.viewer.entities.add({position:this.model.position,point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=n}var o=Object(J.b)();if(o)if(this.sdk!=o){var s=o.entityMap.get(this.options.id);s&&s.viewFollow!=e&&(s.viewFollow=e)}else if(t){var a=t.entityMap.get(this.options.id);a&&a.viewFollow!=e&&(a.viewFollow=e,this.TweenAnimate&&this.TweenAnimate._isPlaying&&a.setMovePositionByDistance(this.TweenAnimate._object.distance))}Object(Z.g)(this.sdk,this.options.id),this._elms.viewFollow&&this._elms.viewFollow.forEach((function(t){t.checked=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=this;this.options.label.show=e;var i=Object(J.a)(),n=e;n=!(!this.show||this.showView&&3!=this.showView&&i)&&e,this.show?this.label&&(this.label.show=n,this.label.pixelOffset=this.options.label.pixelOffset,this.options.label.position&&setTimeout((function(){t.options.label.position.alt?t.label&&(t.label.position=[t.options.label.position.lng,t.options.label.position.lat,t.options.label.position.alt]):t.getClampToHeight({lng:t.options.label.position.lng,lat:t.options.label.position.lat}).then((function(e){t.label&&(t.label.position=[t.options.label.position.lng,t.options.label.position.lat,e])}))}),0)):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.label.pixelOffset=this.options.label.pixelOffset,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&&(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;tt/n.distance)){e.next=69;break}return e.abrupt("break",74);case 69:j=n.spline.evaluate(B/1e3),N.push(j);case 71:B++,e.next=66;break;case 74:N.push(M),n.realTimePositions=N;case 76:if(d=b(n.model.position,u),f&&f.position&&(m=b(f.position,u),d.pitch=m.pitch),f.position=n.model.position,Cesium.HeadingPitchRoll.fromDegrees(n.options.model.heading,n.options.model.pitch,n.options.model.roll),A=0,L=0,I=0,R=Cesium.Transforms.eastNorthUpToFixedFrame(u),!n.options.routeDirection||n.lineEdit){e.next=96;break}if(A=d.heading*(180/Math.PI)-90-n.options.model.heading,L=d.pitch*(180/Math.PI)-n.options.model.pitch,I=n.options.model.roll,z=Object(J.b)()?Object(J.b)().entityMap.get(n.options.id):o.sdkP&&o.sdkP.entityMap.get(n.options.id),n.state||z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)&&(A=z.model.heading,L=z.model.pitch,I=z.model.roll),!(isNaN(A)||isNaN(L)||isNaN(I))){e.next=92;break}return e.abrupt("return");case 92:n.state||(z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)?(A=z.model.heading,L=z.model.pitch,I=z.model.roll):(A=n.model.heading||0===n.model.heading?n.model.heading:n.options.model.heading,L=n.model.pitch||0===n.model.pitch?n.model.pitch:n.options.model.pitch,I=n.model.roll||0===n.model.roll?n.model.roll:n.options.model.roll)),n.model.modelMatrix=Cesium.Matrix4.multiplyByMatrix3(R,Cesium.Matrix3.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(A,L,I)),n.model.modelMatrix),e.next=112;break;case 96:if(!n.entity){e.next=112;break}if(A=n.options.model.heading,L=n.options.model.pitch,I=n.options.model.roll,!(isNaN(A)||isNaN(L)||isNaN(I))){e.next=102;break}return e.abrupt("return");case 102:F=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(I)),H=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(L)),V=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(A)),G=Cesium.Matrix4.fromRotationTranslation(F),W=Cesium.Matrix4.fromRotationTranslation(H),U=Cesium.Matrix4.fromRotationTranslation(V),Y=new Cesium.Matrix4,Cesium.Matrix4.multiply(R,G,Y),Cesium.Matrix4.multiply(Y,W,Y),Cesium.Matrix4.multiply(Y,U,n.entity.modelMatrix);case 112:if(n.model.position=u,n.model.roll=I,n.model.pitch=L,n.model.heading=A,u){e.next=118;break}return e.abrupt("return");case 118:q=n.cartesian3Towgs84(u,n.sdk.viewer),n.label.position=[q.lng,q.lat,q.alt],n.realTimeRouteArray.push(u),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(A+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}}):3===n.sdk.viewer.scene.mode?n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=u):n.sdk.viewer.trackedEntity&&n.sdk.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],n.sdk.viewer.camera.positionCartographic.height),orientation:{heading:Cesium.Math.toRadians(-90),pitch:0,roll:0}}));case 123:case"end":return e.stop()}}),e,null,[[35,42]])})))).apply(this,arguments)},g=function(e){return y.apply(this,arguments)},i=w.length>1&&void 0!==w[1]?w[1]:{time:0},cancelAnimationFrame(this._requestAnimationFrameEventId),n=this,o=i.time||0,a=i.distance,r=this.sdk.viewer,this.model&&this.sdk&&this.sdk.viewer){e.next=11;break}return e.abrupt("return");case 11:for(this.removeModelAnimate(),l=[],c=0;cthis.distance&&(a=this.distance),o=a/this.distance*p):(a=1e-6,o&&(o>p&&(o=p),a=o/p*this.distance)),f={},this.TweenAnimate=new TWEEN.Tween({distance:a}).to({distance:this.distance},1e3*(p-o)).delay(1e3*this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){(o||a)&&C.modelMove(t)})).onUpdate(function(){var e=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(C.sdk.viewer){e.next=6;break}return C.removeModelAnimate(),e.abrupt("return");case 6:isNaN(t.distance)||g(t.distance);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onEveryStart((function(){C.realTimeRouteArray=[]})).onComplete((function(e){C.state=!1})),this.state?this.TweenAnimate.start():(v=function(){if(n._requestAnimationFrameEventId2=requestAnimationFrame(v),n.options.firstPersonView){var e=Bc({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:e,orientation:{heading:Cesium.Math.toRadians(n.model.heading+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}})}},g(a),setTimeout((function(){n.model.isMove=!1}),1e3),v());case 24:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(e){var t=this.renewLinePositions(this.options.line.positions);this.modelMove(t,{distance:e})}},{key:"setMovePositionByTime",value:function(e){var t=this.renewLinePositions(this.options.line.positions);this.modelMove(t,{time:e})}},{key:"edit",value:(u=_()(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 3:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}return e.next=9,new Be(this.sdk,this.options,{title:"轨迹运动属性",left:"180px",top:"100px",confirmCallBack:function(e){u.name=u.name.trim(),u.name||(u.name="未命名对象"),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close();var t=u.deepCopyObj(u.options);t.host="",u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(t),Object(J.g)(u.sdk,u.options.id),Object(Z.g)(u.sdk,u.options.id)},removeCallBack:function(){u.sdk.viewer.trackedEntity&&(u.sdk.viewer.entities.remove(u.sdk.viewer.trackedEntity),u.sdk.viewer.trackedEntity=null),u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u._DialogObject=null,u.reset(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack(),u.editObj&&(u.editObj.destroy(),u.editObj=null),u.keyPointShow=!1,u.event&&u.event.destroy(),u.tip&&u.tip.destroy(),u.tip=null,u.ControllerObject.destroy(),u.firstPersonView!==u.originalOptions.firstPersonView&&(u.firstPersonView=u.originalOptions.firstPersonView),u.firstPersonView&&u.modelShow&&u.model&&(u.model.show=!1)},showCallBack:function(e){u.show=e,u.Dialog.showCallBack&&u.Dialog.showCallBack()}});case 9:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" trajectory-motion",(i=document.createElement("div")).innerHTML='\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 m/s\n \n
            \n
            \n
            \n 延迟运动\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 更换模型\n \n
            \n
            \n 模型方向\n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 路径显隐\n \n
            \n
            \n 模型显隐\n \n
            \n
            \n 实时路径\n \n
            \n
            \n
            \n
            \n 编辑\n \n
            \n
            \n 路径圆滑\n \n
            \n
            \n 环线\n \n
            \n
            \n
            \n
            \n 轨迹贴地\n \n
            \n
            \n 轨迹循环\n \n
            \n
            \n 轨迹动画\n \n
            \n
            \n
            \n
            \n 路径方向\n \n
            \n
            \n 视角跟随\n \n
            \n
            \n 模型动画\n
            \n
            \n
            \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 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 油耗\n
            \n \n L/100km\n \n
            \n
            \n
            \n 总油耗\n \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),this.editObj?(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="结束调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn is-active"):(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn"),n=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=""}}),o=this._DialogObject._element.content.getElementsByClassName("height-box")[0],s=i.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.heightBox=o,this._elms.labelColor=[n],this.model&&(a=function(){var e=u.model.loader.components.animations;if(u._DialogObject){if(e){for(var t=[{name:"无",value:"无"}],n=0;n=107?this.model.ready?a():this.model.readyEvent.addEventListener((function(){a()})):this.model.readyPromise.then((function(e){a()}))),this.ground?this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"):this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box"),(r=i.querySelectorAll("button[name='firstPerson']"))[0].addEventListener("click",(function(e){var t=Object(Z.a)();Object(J.a)()||t.sdkD||(u.firstPersonView||(u.viewFollow=!0),u.firstPersonView=!0)})),r[1].addEventListener("click",(function(e){u.firstPersonView&&(u.viewFollow=!0),u.firstPersonView=!1})),this.options.firstPersonView?(r[0].className="btn is-active",r[1].className="btn",this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null)):(r[0].className="btn",r[1].className="btn is-active"),(l=document.createElement("div")).className="custom-rubric-box",l.style.transformOrigin="center bottom",l.style.position="absolute",l.style.top="180px",l.style.right="3px",l.style.padding="5px 10px",l.style.backgroundColor="#3e4249",l.style.borderRadius="5px",l.style.fontSize="12px",l.style.color="#ff5733",l.style.display="none",l.innerHTML='场景正东方向为轨迹前进正方向
            ',(c=i.getElementsByClassName("icon-rubric")[0]).addEventListener("mouseenter",(function(e){l.style.display="block"})),document.addEventListener("mousemove",(function(e){c.contains(e.target)||(l.style.display="none")})),this._DialogObject._element.content.appendChild(l),setTimeout((function(){var e=bt(),t=Object(je.a)(u._DialogObject._element.content.getElementsByClassName("font-select-box")[0],".font-select");if(t){t.legp_search(e);var i=u._DialogObject._element.content.getElementsByClassName("font-select")[0].getElementsByTagName("input")[0];i.value=e[u.labelFontFamily].value;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Object(X.w)(0),Object(X.f)(this.sdk),this.options.customView&&this.options.customView.position&&this.options.customView.orientation?this.sdk.viewer.camera.flyTo({destination:this.options.customView.position,orientation:this.options.customView.orientation}):this.line&&this.sdk.viewer.flyTo(this.line,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}})}},{key:"remove",value:(l=_()(S.a.mark((function e(){var t,i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.scene.primitives.remove(this.model),this.sdk.viewer.entities.remove(this.line),this.sdk.viewer.entities.remove(this.realTimeLine),this.label&&this.label.remove(),t=0;t=107)){e.next=15;break}return e.next=9,Cesium.Model.fromGltfAsync(o);case 9:this.model=e.sent,this.model.position=n,this.sdk.viewer.scene.primitives.add(this.model),this.model.readyEvent.addEventListener((function(){s(),a.model.modelMatrix=i})),e.next=18;break;case 15:this.model=this.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),this.model.position=n,this.model.readyPromise.then((function(e){s(),a.model.modelMatrix=i}));case 18:this.model.imageBasedLighting.luminanceAtZenith=.6;case 19:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"controllerCallBack",get:function(){return function(e){}},set:function(e){this._controllerCallBack=e}},{key:"renewLinePositions",value:function(e){var t=nt()(e);this.noseToTail&&(t=[].concat(nt()(e),[e[0]])),this.reverse&&t.reverse();for(var i=[],n=[],o=[],s=0;s=107)){e.next=11;break}return e.next=5,Cesium.Model.fromGltfAsync(o);case 5:i.model=e.sent,i.model.originalBoundingSphereRadius=0,i.sdk.viewer.scene.primitives.add(i.model),i.model.readyEvent.addEventListener((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate})),e.next=14;break;case 11:i.model=i.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),i.model.originalBoundingSphereRadius=0,i.model.readyPromise.then((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate}));case 14:for(i.model.imageBasedLighting.luminanceAtZenith=.6,s=Cesium.Transforms.eastNorthUpToFixedFrame(i.positions_smooth[0]),i.model.modelMatrix=s,i.model.position=i.positions_smooth[0],i.model.customScale={x:i.options.model.scale,y:i.options.model.scale,z:i.options.model.scale},a=i.options.line.positions,r=[],l=0;l=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 Fc(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),Wc(i=Gc(this,t,[e,n]),Jc,!1),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.totalTime=n.totalTime,(n.totalTime||0===n.totalTime)&&(i.totalTime=n.totalTime),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=n.height||0===n.height?n.height:i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i._current={heading:0,pitch:0,roll:0},i.distance,i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.ControllerObject=new fi(i.sdk),i._EventBinding=new Ye,t.addLine(i),i.firstPersonView=!1,i.options.viewFollow=!1),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TrajectoryMotionObject"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){if(this.options.show=e,e){this.line.show=this.lineShow;for(var t=0;tt/n.distance)){e.next=47;break}return e.abrupt("break",52);case 47:P=n.spline.evaluate(x/100),_.push(P);case 49:x++,e.next=44;break;case 52:_.push(k),n.realTimePositions=_;case 54:if(d=E(n.current.position,l),f&&f.position&&(m=E(f.position,l),d.pitch=m.pitch),f.position=n.current.position,O=Cesium.HeadingPitchRoll.fromDegrees(n.current.heading,n.current.pitch,n.current.roll),D=0,M=0,T=0,n.options.routeDirection?(D=(d.heading-O.heading)*(180/Math.PI)-90+n.current.heading,M=d.pitch*(180/Math.PI)):(D=n.current.heading,M=n.current.pitch),T=n.current.roll,!(isNaN(D)||isNaN(M)||isNaN(T))){e.next=65;break}return e.abrupt("return");case 65:(D<0||D>180)&&(M=-M),n.current={position:l,heading:D,pitch:M,roll:T},w&&(w=!1,n._first={position:l,heading:D,pitch:M,roll:T}),n.realTimeRouteArray.push(l),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:c,orientation:{heading:n.sdk.viewer.camera.heading,pitch:n.sdk.viewer.camera.pitch,roll:n.sdk.viewer.camera.roll}}):n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=l));case 71:case"end":return e.stop()}}),e,null,[[19,26]])})))).apply(this,arguments)},k=function(e){return x.apply(this,arguments)},i=O.length>1&&void 0!==O[1]?O[1]:{time:0},n=this,o=i.time||0,a=i.distance||0,r=this.sdk.viewer,this.removeModelAnimate(),l=[],c=0;cp&&(o=p),a=o/p*this.distance),f={},v=[],g=zc(this.sdk.entityMap);try{for(g.s();!(y=g.n()).done;)(b=s()(y.value,2))[0],(C=b[1]).type&&"glb"===C.type&&v.push(C.entity)}catch(e){g.e(e)}finally{g.f()}w=!0,this.TweenAnimate=new TWEEN.Tween({distance:a}).to({distance:this.distance},1e3*(p-o)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){o&&P.modelMove(t)})).onUpdate(function(){var e=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(P.sdk.viewer){e.next=6;break}return P.removeModelAnimate(),e.abrupt("return");case 6:k(t.distance);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onEveryStart((function(){P.realTimeRouteArray=[]})).onComplete((function(e){P.state=!1,P.removeModelAnimate()})),this.state?this.TweenAnimate.start():k(a);case 26:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(e){var t=this._renewLine(this.options.line.positions);this.modelMove(t,{distance:e})}},{key:"setMovePositionByTime",value:function(e){var t=this._renewLine(this.options.line.positions);this.modelMove(t,{time:e}),this.state||this.modelMove(t,{time:e+.01})}},{key:"pause",value:function(){this.state=!1}},{key:"resume",value:function(){this.state=!0}},{key:"flyTo",value:(n=_()(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),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=22;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},(r=Vc({},this.options.line.positions[0])).hasOwnProperty("alt")){e.next=15;break}return e.next=14,this.getClampToHeight(r);case 14:r.alt=e.sent;case 15: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=23;break;case 22:this.line&&this.sdk.viewer.flyTo(this.line,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 23:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.entities.remove(this.line),this.line=null,this.removeModelAnimate()}},{key:"reset",value:function(){this.modelMove(this.line.polyline.positions._value),this.state=!1,this.current=this._first}},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"_renewLine",value:function(e){this.options.line.positions=e;var t=e;this.noseToTail&&(t=[].concat(nt()(e),[e[0]]));for(var i=[],n=[],o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Xc(this,t,[e,n])).options.width=n.width||1,i.options.color=n.color||"#ff0000",i._elms={},i.tools=new b.a(e),i._EventBinding=new Ye,t.edit(i,!0),i}return Me()(t,e),h()(t,[{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color&&(this.options.color=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:"width",get:function(){return this.options.width},set:function(e){this.options.width=e,this._elms.width&&this._elms.width.forEach((function(t){t.value=e}))}},{key:"start",value:function(){var e,i,n,o,s,a=this;if(YJ.Measure.GetMeasureStatus())this.tools.message({type:"warning",text:"上一次测量未结束"});else{this.sdk.viewer;Object(X.a)(this.sdk,!1),(e=t,i="start",n=this,o=3,s=On()(Oe()(1&o?e.prototype:e),i,n),2&o&&"function"==typeof s?function(e){return s.apply(n,e)}:s)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("长按左键,拖动鼠标进行涂鸦,右键结束涂鸦",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var r=[],l=[];this.event.mouse_left_down((function(e,t){l=[];var i=a.sdk.viewer.entities.add({name:"涂鸦",polyline:{positions:new Cesium.CallbackProperty((function(){return l}),!1),width:a.width,clampToGround:!0,material:Cesium.Color.fromCssColorString(a.color),zIndex:99999999}});r.push(i),a.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y),l.push(t)}))})),this.event.mouse_left_up((function(e,t){r[r.length-1].polyline.positions=l,a.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y)}))})),this.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y)})),this.event.mouse_right((function(e,t){a.end()})),this.event.gesture_pinck_start((function(e,t){var i=new Date;a.event.gesture_pinck_end((function(){new Date-i>=500&&a.end()}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event=void 0,this.tip&&this.tip.destroy(),this.tip=void 0,Object(X.a)(this.sdk,!0)}},{key:"remove",value:function(){this.end(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);for(var e=this.sdk.viewer.entities.values,t=e.length-1;t>=0;t--)"涂鸦"===e[t].name&&this.sdk.viewer.entities.remove(e[t])}},{key:"flicker",value:function(){}}],[{key:"edit",value:(i=_()(S.a.mark((function e(t,i){var n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i?(n=document.getElementsByClassName("graffiti")[0],o=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:t.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}}),s=n.getElementsByTagName("*"),t._EventBinding.on(t,s),t._elms=t._EventBinding.element,t._elms.color=[o]):t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null);case 1:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})}]);var i}(Dn.a),Kc=i(32),Qc=i.n(Kc);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 eu(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)?eu(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 eu(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=nu(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.show=!n.show&&!1!==n.show||n.show,i.options.url=n.url,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.position=n.position,i.options.offset=n.offset||{x:.5,y:1},i.options.mode=i.options.mode?1:0,i.options.billboard=n.billboard||{},i.options.billboard.scale=i.options.billboard.scale||1,i.options.billboard.near=i.options.billboard.near||0===i.options.billboard.near?i.options.billboard.near:2e3,i.options.billboard.far=i.options.billboard.far||0===i.options.billboard.far?i.options.billboard.far:1e5,i.options.billboard.scaleByDistance=!!i.options.billboard.scaleByDistance,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.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.entity={id:i.options.id},i._positionEditing=!1,i.Dialog=o,i._elms={},i._proj=i.sdk.proj,i.previous={position:iu({},i.options.position)},i._EventBinding=new Ye,i.event=new te.a(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return Me()(t,e),h()(t,[{key:"name",get:function(){return this.options.name},set:function(e){var i,n,o,s,a,r;i=t,n="name",o=e,s=this,a=1,r=1,Qc()(Oe()(r?i.prototype:i),n,o,s,a),this.options.label.text=this.options.name,this.entity&&(this.entity.label.text=this.options.label.text)}},{key:"mode",get:function(){return this.options.mode},set:function(e){var t=this;this.options.mode=e?1:0;for(var i=[{name:"贴地",value:"贴地",key:0},{name:"立体",value:"立体",key:1}],n=function(e){if(i[e].key===t.options.mode)return t._elms.mode&&t._elms.mode.forEach((function(t){t.value=i[e].value})),1},o=0;o99&&(t=99),t<.1&&(t=.1),this.options.billboard.scale=t,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(t){t.value=e}))}},{key:"billboardScaleByDistance",get:function(){return this.options.billboard.scaleByDistance},set:function(e){this.options.billboard.scaleByDistance=e,this.renewPoint(),this._elms.billboardScaleByDistance&&this._elms.billboardScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"billboardNear",get:function(){return this.options.billboard.near},set:function(e){var t=e;t>this.billboardFar&&(t=this.billboardFar),this.options.billboard.near=t,this.renewPoint(),this._elms.billboardNear&&this._elms.billboardNear.forEach((function(e){e.value=t}))}},{key:"billboardFar",get:function(){return this.options.billboard.far},set:function(e){var t=e;t1&&(s.x=1),s.y<0&&(s.y=0),s.y>1&&(s.y=1),c={x:s.x,y:s.y},l.style.top="calc(".concat(100*c.y,"% - 5px)"),l.style.left="calc(".concat(100*c.x,"% - 5px)")}else t(i.offsetParent)}(e.target)},o=function(){a&&a._element.body.removeEventListener("mousemove",n)},e.next=8,new Be(this.sdk,this.originalOptions,{title:"军标属性",left:"180px",top:"100px",confirmCallBack:function(e){b.name=b.name.trim(),b.name||(b.name="未命名对象"),b.originalOptions=b.deepCopyObj(b.options),b._DialogObject.close(),b.Dialog.confirmCallBack&&b.Dialog.confirmCallBack(b.originalOptions)},resetCallBack:function(){b.reset(),b.Dialog.resetCallBack&&b.Dialog.resetCallBack()},removeCallBack:function(){b.Dialog.removeCallBack&&b.Dialog.removeCallBack()},closeCallBack:function(){b.previous=null,b.reset(),a&&a.close&&a.close(),b.Dialog.closeCallBack&&b.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),b.positionEditing=!1},showCallBack:function(e){b.show=e,b.Dialog.showCallBack&&b.Dialog.showCallBack()},translationalCallBack:function(){b.positionEditing=!b.positionEditing},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"Y轴翻转",event:["click",function(){b.flipeY=!b.flipeY}]},{tagName:"button",className:"flipe-over-x",innerHTML:"X轴翻转",event:["click",function(){b.flipeX=!b.flipeX}]}]},!0);case 8:for(this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-image",(u=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 \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 m\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 px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(u),h=u.getElementsByTagName("*"),this._EventBinding.on(this,h),this._elms=this._EventBinding.element,u.getElementsByClassName("anchor")[0].addEventListener("click",_()(S.a.mark((function e(){var t,s,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a&&a.close&&a.close(),document.body.addEventListener("mouseup",o),t=i._DialogObject._element.body.getBoundingClientRect(),e.next=5,new Be(b.sdk,b.originalOptions,{title:"锚点设置",left:t.left+80+"px",top:t.top+200+"px",confirmCallBack:function(e){i.offset={x:c.x,y:c.y},s.close()},closeCallBack:function(){document.body.removeEventListener("mouseup",o)}},!1);case 5:s=e.sent,a=s,s._element.body.className=s._element.body.className+" anchor-point",u=document.createElement("div"),(h=new Image).src=b.replaceHost(b.options.url,b.options.host),h.onload=function(){var e=150/(h.width/h.height),t=(r=document.createElement("canvas")).getContext("2d",{willReadFrequently:!0});r.width=150,r.height=e,r.style.display="block",t.drawImage(h,0,0,150,e),u.appendChild(r),s.contentAppChild(u),(l=document.createElement("span")).className="point",u.appendChild(l),c={x:i.offset.x,y:i.offset.y},l.style.top="calc(".concat(100*Number(c.y),"% - 6px)"),l.style.left="calc(".concat(100*Number(c.x),"% - 6px)"),r.addEventListener("click",(function(e){var t=e.offsetX,i=e.offsetY,n={x:Number((t/r.width).toFixed(2)),y:Number((i/r.height).toFixed(2))};n.x<0&&(n.x=0),n.x>1&&(n.x=1),n.y<0&&(n.y=0),n.y>1&&(n.y=1),c={x:n.x,y:n.y},l.style.top="calc(".concat(100*c.y,"% - 5px)"),l.style.left="calc(".concat(100*c.x,"% - 5px)")})),l.addEventListener("mousedown",(function(e){s._element.body.addEventListener("mousemove",n)}))};case 12:case"end":return e.stop()}}),e)})))),p=u.getElementsByClassName("row"),d=u.getElementsByTagName("h4"),m=0;m=500)t.options.position.lng=t.previous.position.lng,t.options.position.lat=t.previous.position.lat,t.options.position.alt=t.previous.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.position.lng=e.lng,t.options.position.lat=e.lat,t.options.position.alt=e.alt,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}}))}))):(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.previous||(this.previous={position:iu({},this.options.position)}),this.position=iu({},this.previous.position)))}},{key:"flyTo",value:(o=_()(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,k,_,x,E,P=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=P.length>0&&void 0!==P[0]?P[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=iu({},this.options.position):this.options.position?r=iu({},this.options.position[0]):this.options.center?r=iu({},this.options.center):this.options.start?r=iu({},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=59;break;case 23:l=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),c=[[this.options.position.lng-1e-4*this.options.scale,this.options.position.lat-l],[this.options.position.lng+1e-4*this.options.scale,this.options.position.lat+l]],u=[],h=0,p=this.options.position,d=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,0),m=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 36:if(!(C=0)){e.next=22;break}if(!v[g].position){e.next=19;break}return f=v[g],e.abrupt("break",22);case 19:g--,e.next=15;break;case 22:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),e.prev=23,e.next=26,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 26:y=e.sent,e.next=31;break;case 29:e.prev=29,e.t0=e.catch(23);case 31:if((void 0===i||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 X 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n Y 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \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 最近距离\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 ")}var au=i(40),ru=i.n(au),lu=i(25),cu=i.n(lu);function uu(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}function hu(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}()} +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.pitch&&this._elms.pitch.forEach((function(t){t.value=Number(e)}))}},{key:"edit",value:(n=_()(S.a.mark((function e(){var i,n,o,s,a,r=this,l=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){e.next=20;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"喷射水柱属性",left:"180px",top:"100px",confirmCallBack:function(e){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Object(J.g)(r.sdk,r.options.id),Object(Z.g)(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(e){r.show=e,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(n=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
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(n),o=new YJColorPicker({el:n.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(e){r.startColor=e},clear:function(){r.startColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:n.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(e){r.endColor=e},clear:function(){r.endColor="rgba(255,255,255,1)"}}),a=n.getElementsByTagName("*"),t.EventBinding(this,a),this._elms.startColor=[o],this._elms.endColor=[s],e.next=20;break;case 20: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.speed=this.originalOptions.speed,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.start.lng,this.lat=this.originalOptions.start.lat,this.alt=this.originalOptions.start.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 Gr(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:Hr({},this.entity.position)},this.event.mouse_move((function(e,n){i=e.endPosition;var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.options.start.lng=o.lng,t.options.start.lat=o.lat,t.options.start.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(t.options.start.lng,t.options.start.lat,t.options.start.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.start.lng})),t._elms.lat&&t._elms.lat.forEach((function(e){e.value=t.options.start.lat})),t._elms.alt&&t._elms.alt.forEach((function(e){e.value=t.options.start.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.start.lng=o.lng,t.options.start.lat=o.lat,t.options.start.alt=o.alt}t.entity.position={lng:t.options.start.lng,lat:t.options.start.lat,alt:t.options.start.alt},t.previous={positions:Hr({},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.start.lng=t.entity.position.lng,t.options.start.lat=t.entity.position.lat,t.options.start.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:Hr({},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.start.lng=this.entity.position.lng,this.options.start.lat=this.entity.position.lat,this.options.start.alt=this.entity.position.alt;var 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);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t.options.start.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t.options.start.lat})),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t.options.start.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(){}}],[{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=Rr(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&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 m\n \n
            \n
            \n \x3c!--
            \n 拉伸高度\n \n
            --\x3e\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 Yr(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 Jr(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)?Jr(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 Jr(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.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Zr(this,t,[e,n])).options.color=n.color||"#ff0000",i.options.show=!n.show&&!1!==n.show||n.show,i.options.height=n.height||0===n.height?n.height:10,i.options.height<=.01&&(i.options.height=.01),i.options.extrudedHeight=n.extrudedHeight||0===n.extrudedHeight?n.extrudedHeight:0,i.entity,i.nodePoints=[],i.operate={},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||[],i.options.richTextContent=n.richTextContent||"",i._elms={},i.Dialog=o,!i.options.positions||i.options.positions.length<3?(i._error="多面体最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),t.create(i)),i}return Me()(t,e),h()(t,[{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(e){var t=this;if(!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=this;if(this.event&&this.event.destroy(),this.event=new te.a(this.sdk),this.operate.positionEditing=e,this.previous={positions:nt()(this.positions)},!0===e){var n;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)"));var o=Cesium.Color.fromCssColorString(this.options.color).withAlpha(.99);2===this.sdk.viewer.scene.mode&&(o=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=o,this.picking=!1;for(var s=[],a=this.positions,r=[],l=0;l=500)t.positionEditing=!1;else{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.event.destroy();var e=t.cartesian3Towgs84(i,t.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(e.lng,e.lat);f=[],t.options.positions=[];for(var s=0;s0?new Cesium.PolygonHierarchy(f):new Cesium.PolygonHierarchy(a)}),!1)}else{this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)"));var v=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(v=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=v,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.tip&&this.tip.destroy();for(var g=[[]],y=0;ythis.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!==arguments[0]?arguments[0]:function(){},t=this;if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个顶点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];var o=!1,s=function(e,s){if(i){t.options.positions[i.index]=t.cartesian3Towgs84(s,t.sdk.viewer),n=t.options.positions[i.index],o=!0;var a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(t.options.positions[i.index].lng,t.options.positions[i.index].lat,t.options.extrudedHeight),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}});t.nodePoints.splice(i.index,0,a),t.options.positions.splice(i.index,0,t.options.positions[i.index]),t.areaByMeter=t.computeArea(t.options.positions),t.areaChangeCallBack&&t.areaChangeCallBack();for(var r=[[]],l=0;l=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}else{var h=t.sdk.viewer.scene.pick(e.position);h&&h.id&&h.id.name&&"node-secondary-edit-point"===h.id.name&&(i=h.id,t.nodePoints.splice(h.id.index,1),t.sdk.viewer.entities.remove(h.id),t.tip.set_text("左键确认,右键结束,CTRL+右键撤销"),n=t.cartesian3Towgs84(i.position._value,t.sdk.viewer))}},a=function(s,a){if(i){t.options.positions[i.index]=n,o&&t.options.positions.splice(i.index,1),t.areaByMeter=t.computeArea(t.options.positions),t.areaChangeCallBack&&t.areaChangeCallBack();for(var r=t.options.positions,l=[],c=0;c=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?a(o,i):s(o,i)}))})),t.event.mouse_right_keyboard_ctrl((function(e,n){i&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=0),t.nodePoints.pop())}));for(var r=0;r0&&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;for(var i=[[]],n=0;ni[s].alt&&(o=i[s].alt);e.options.extrudedHeight=o;for(var 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 '.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 el(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 tl(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=il(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",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,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||[],i.options.richTextContent=n.richTextContent||"",delete i.options.attribute.camera,delete i.options.attribute.vr,delete i.options.attribute.goods,i.nodePoints=[],!i.options.positions||i.options.positions.length<3)i._error="集结地最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=tl({},this.options.position):this.options.positions?r=tl({},this.options.positions[0]):this.options.center?r=tl({},this.options.center):this.options.start?r=tl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:function(){};if(this.positionEditing=!1,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()(e),[e[0],e[1]]):nt()(e)}),!1);for(var h=[[]],p=[],d=0;d=500?u():c(o,i)}))})),i()}),200)}}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeAssemble(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 sl(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 al(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)?al(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 al(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]:{};if(c()(this,t),(i=cl(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,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.nodePoints=[],i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontFamily:n.label.fontFamily?n.label.fontFamily:0,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,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),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=ll({},this.options.position):this.options.positions?r=ll({},this.options.positions[0]):this.options.center?r=ll({},this.options.center):this.options.start?r=ll({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&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(!(i3&&n.index===e.options.positions.length-1&&e.options.positions.splice(n.index+1,1)):e.options.positions.pop(),e._elms.lng&&e._elms.lng[n.index]&&(e._elms.lng[n.index].innerHTML=e.options.positions[n.index].lng.toFixed(8)),e._elms.lat&&e._elms.lat[n.index]&&(e._elms.lat[n.index].innerHTML=e.options.positions[n.index].lat.toFixed(8))),e.heightMode=e.heightMode,e.previous=null};e.entity.polyline.clampToGround=!0,e.entity.polyline.arcType=Cesium.ArcType.GEODESIC,e.entity.polygon.perPositionHeight=!1,e.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(s.positionsH)}),!1),e.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(s.positionsH),[s.positionsH[0],s.positionsH[1]])}),!1);for(var c=[[]],u=[],h=0;h=500?l():r(o,i)}))})),i()}),200)}}),0)}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeAttackArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){e.next=12;break}if(!(t.distance>=h[o])){e.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),e.abrupt("break",12);case 9:o--,e.next=4;break;case 12:for(s=[],a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 pl(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 dl(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=ml(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,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.options.height=n.height,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i._elms={},i.nodePoints=[],i.spreadTime=n.spreadTime,i.entity,i.event,i.operate={},i.Dialog=o,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<5)i._error="双箭头最少需要五个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});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;t'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=dl({},this.options.position):this.options.positions?r=dl({},this.options.positions[0]):this.options.center?r=dl({},this.options.center):this.options.start?r=dl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),m=[];for(var e=0;e0)for(var t=0;t0&&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=500?l():r(o,i)}))}));for(var t=[[]],o=[],s=0;s0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computePincerArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance1/this.TweenAnimate._valuesEnd.distance1*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=212;y--){var b=this.cartesian3Towgs84(o[y],this.sdk.viewer);u.push([b.lng,b.lat,b.alt])}f?u.push([this.options.positions[2].lng,this.options.positions[2].lat,this.options.positions[2].alt]):u.push([this.options.positions[3].lng,this.options.positions[3].lat,this.options.positions[3].alt]),h.push([(this.options.positions[0].lng+this.options.positions[1].lng)/2,(this.options.positions[0].lat+this.options.positions[1].lat)/2],[this.options.positions[4].lng,this.options.positions[4].lat]);var C=this.deepCopyObj(this.options.positions),w=turf.lineString(c),k=turf.length(w,{units:"kilometers"}),x=turf.lineString(u),E=turf.length(x,{units:"kilometers"}),P=turf.lineString(h),O=turf.length(P,{units:"kilometers"}),D=t/this.spreadTime;this.TweenAnimate=new TWEEN.Tween({distance1:k*D,distance2:E*D,distance3:O*D}).to({distance1:k,distance2:E,distance3:O},this.spreadTime-t).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){t&&e.setSpreadProgressByTime()})).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.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(e.sdk.viewer){t.next=6;break}return e.removeAnimate(),t.abrupt("return");case 6:M(i);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onStart((function(){e.options.spreadState=!0,e._elms.spreadState&&e._elms.spreadState.forEach((function(e){e.checked=!0}))})).onComplete((function(t){e.removeAnimate()})),this.spreadState?this.TweenAnimate.start():M({distance1:k*D,distance2:E*D,distance3:O*D}),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positionsH)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positionsH),[i.positionsH[0],i.positionsH[1]])}),!1)}}}function M(e){return T.apply(this,arguments)}function T(){return(T=_()(S.a.mark((function e(t){var n,o,s,a,r,l,c,u;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.show){e.next=2;break}return e.abrupt("return");case 2:if(n=2,o=3,f&&(n=3,o=2),t.distance1){e.next=10;break}C[n].lng=C[1].lng,C[n].lat=C[1].lat,e.next=16;break;case 10:return e.next=12,turf.lineSliceAlong(w,0,t.distance1,{units:"kilometers"});case 12:s=e.sent,a=nt()(s.geometry.coordinates[s.geometry.coordinates.length-1]),C[n].lng=a[0],C[n].lat=a[1];case 16:if(t.distance2){e.next=21;break}C[o].lng=C[0].lng,C[3].lat=C[0].lat,e.next=27;break;case 21:return e.next=23,turf.lineSliceAlong(x,0,t.distance2,{units:"kilometers"});case 23:r=e.sent,l=nt()(r.geometry.coordinates[r.geometry.coordinates.length-1]),C[o].lng=l[0],C[o].lat=l[1];case 27:if(t.distance3){e.next=32;break}C[4].lng=h[0][0],C[4].lat=h[0][1],e.next=38;break;case 32:return e.next=34,turf.lineSliceAlong(P,0,t.distance3,{units:"kilometers"});case 34:c=e.sent,u=nt()(c.geometry.coordinates[c.geometry.coordinates.length-1]),C[4].lng=u[0],C[4].lat=u[1];case 38:i.renewPositions(C);case 39:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}},{key:"removeAnimate",value:function(){this.spreadState=!1,this.TweenAnimate&&(TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positionsH),this.entity.polyline.positions=[].concat(nt()(this.positionsH),[this.positionsH[0],this.positionsH[1]]))}},{key:"renewPositions",value:function(e){var t=this;if(!this._error&&this.sdk.viewer){var i=!1,n=this.options.positions;e&&(n=e);for(var o=[],s=0;s\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\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 gl(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 yl(e){for(var t=1;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 Cl(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]:{};if(c()(this,t),(i=wl(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",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.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new te.a(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,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||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.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.options.richTextContent=n.richTextContent||"",i.nodePoints=[],!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{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;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(!(l'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var h=o.getElementsByClassName("alt")[0],p=document.createElement("span");p.innerHTML=n.height.toFixed(2),h.appendChild(p);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),h.addEventListener("dblclick",(function(){2!=n.heightMode&&(h.innerHTML="",d.value=Number(n.height.toFixed(2)),h.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),t.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),h.innerHTML="",h.appendChild(p)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),p.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(p),n._elms.altInput.push(d),e.appendChild(o)},o=0;o0&&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=yl({},this.options.position):this.options.positions?r=yl({},this.options.positions[0]):this.options.center?r=yl({},this.options.center):this.options.start?r=yl({},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;else{t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),u=[];for(var e=0;e0)for(var t=0;t0)for(var v=0;v=3?[].concat(nt()(g),[g[0],g[1]]):nt()(g)}),!1))}},{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=this.computeStraightArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(t=9999999),this.options.spreadTime=t,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(e){e.value=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(e){this.options.spreadState=e,this.TweenAnimate?e?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():e&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(t){t.checked=e}))}},{key:"setSpreadProgressByTime",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){e.next=12;break}if(!(t.distance>=h[o])){e.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),e.abrupt("break",12);case 9:o--,e.next=4;break;case 12:for(s=[],a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(e.positionEditing=!1,YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i,n,o=function(){var t=_()(S.a.mark((function t(){var i,n,o,s;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=nt()(e.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(nt()(t),[t[0],t[1]]):nt()(t)}),!1),setTimeout((function(){e.event.mouse_left(l),e.event.mouse_right(c),e.event.mouse_move(r),e.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){var e=new Date,o={position:{x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2}};e-n>=500?c():l(o,i)}))}));for(var t=[[]],i=[],n=0;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 ")}function xl(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 Sl(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)?Sl(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 Sl(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=Ol(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.radius=n.radius||0===n.radius?n.radius:10,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"CircleObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){this.options.radius=Number(e),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positions),this.entity.polyline.positions=[].concat(nt()(this.positions),[this.positions[0],this.positions[1]])}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e}))}},{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.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!==x[0]?x[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=Pl({},this.options.position):this.options.positions?r=Pl({},this.options.positions[0]):this.options.center?r=Pl({},this.options.center):this.options.start?r=Pl({},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=60;break;case 23:l=this.entity.polygon.hierarchy.getValue(Cesium.JulianDate.now()).positions,c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=Number(e.lng.toFixed(8)),t.options.center.lat=Number(e.lat.toFixed(8)),t.center=t.options.center,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.previous={positions:Pl({},t.options.center)},t.positionEditing=!1}}))})),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)):(this.label&&this.label.entity&&this.label.entity.billboard&&(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.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!0))}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"areaChangeCallBack",get:function(){return this._areaChangeCallBack},set:function(e){this._areaChangeCallBack=e}},{key:"nodeEdit",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};if(this.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var i=function(){var e=_()(S.a.mark((function e(){var t,i,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=nt()(n.sdk.viewer.entities.values),e.next=3,n.getClampToHeight(n.options.center,t);case 3:i=e.sent,o=n.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(n.options.center.lng,n.options.center.lat,i),billboard:{image:n.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),n.nodePoints.push(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=this;this.event&&this.event.destroy(),this.event=new te.a(this.sdk),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("左键确认,右键取消",this.sdk),this.event=new te.a(this.sdk),this.nodePoints=[];var o,s=[],a=Pl({},this.options.center),r=null;s=this.createCircle(this.options.center,this.options.radius),this.entity.polyline.clampToGround=!0,this.entity.polyline.arcType=Cesium.ArcType.GEODESIC,this.entity.polygon.perPositionHeight=!1,this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(s))}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(s)}),!1),setTimeout((function(){var t=nt()(e.sdk.viewer.entities.values);e.getClampToHeight({lng:e.options.center.lng,lat:e.options.center.lat},t).then((function(t){e.label.position=[e.options.center.lng,e.options.center.lat,t]}))}),50),setTimeout((function(){e.event.mouse_left((function(i,n){o&&(e.sdk.viewer.entities.remove(o),o=null),a=e.cartesian3Towgs84(n,e.viewer);var s=e.computeDistance2([e.options.center,a]);e.radius=s,YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip.destroy(),e.heightMode=e.heightMode,t("",Pl({},e.options.center))})),e.event.mouse_right((function(t,i){o&&(e.sdk.viewer.entities.remove(o),o=null),YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip.destroy(),e.heightMode=e.heightMode})),e.event.mouse_move((function(t,i){o&&(o.show=!0),a=e.cartesian3Towgs84(i,e.viewer),r=e.computeDistance2([e.options.center,a]),s=e.createCircle(e.options.center,r),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),i()}),200),o=this.sdk.viewer.entities.add(new Cesium.Entity({show:!1,position:new Cesium.CallbackProperty((function(t){if(a){var i=e.computeMidpoint(e.options.center,a);return Cesium.Cartesian3.fromDegrees(i.lng,i.lat,a.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(e){return r>1e3?"半径:"+(r/1e3).toFixed(2)+" 公里":"半径:"+r+" 米"}),!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},polyline:{positions:new Cesium.CallbackProperty((function(t){return Cesium.Cartesian3.fromDegreesArray([e.options.center.lng,e.options.center.lat,a.lng,a.lat])}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),this.nodePoints.push(o)}}},{key:"closeNodeEdit",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null;for(var e=0;e0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.createCircle(e,this.options.radius),s=[];if(i)this.positions=Cesium.Cartesian3.fromDegreesArray(o),setTimeout((function(){var i=nt()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:e.lng,lat:e.lat},i).then((function(i){t.label&&(t.label.position=[e.lng,e.lat,i])}))}),100);else{for(var a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\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 ")}function Tl(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 Nl(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)?Nl(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 Nl(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=Al(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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||[],i.options.richTextContent=n.richTextContent||"",i.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"EllipseObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;this.entity.polygon.hierarchy=[],!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),this.previous=null,t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"semiMinorAxis",get:function(){return this.options.semiMinorAxis},set:function(e){this.options.semiMinorAxis=e,this.height=this.height}},{key:"semiMajorAxis",get:function(){return this.options.semiMajorAxis},set:function(e){this.options.semiMajorAxis=e,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"bearing",get:function(){return this.options.bearing},set:function(e){this.options.bearing=e,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){var t=this;this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t.options.line.width}))}},{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.show=e: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.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!==x[0]?x[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!this.options.customView){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=jl({},this.options.position):this.options.positions?r=jl({},this.options.positions[0]):this.options.center?r=jl({},this.options.center):this.options.start?r=jl({},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=60;break;case 23:l=this.entity.polyline.positions.getValue(),c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{[];var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=e.lng,t.options.center.lat=e.lat,t.center=t.options.center,t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis}),t.label.position=[e.lng,e.lat],t.event.mouse_move((function(){})),t.event.mouse_left((function(){})),t.event.mouse_right((function(){})),t.event.gesture_pinck_start((function(){})),t.previous={center:t.deepCopyObj(t.options.center)},t.positionEditing=!1}}))})),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.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(i.positions),[i.positions[0],i.positions[1]])}),!0)}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"nodeEdit",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=this;if(i.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var n,o=function(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 450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)},s=function(){var e=_()(S.a.mark((function e(t,n){var o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.cartesian3Towgs84(t,i.sdk.viewer),e.next=3,i.getClampToHeight(o,d);case 3:s=e.sent,a=i.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:i.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),i.nodePoints.push(a);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();i.event&&i.event.destroy(),i.event=new te.a(i.sdk),YJ.Measure.SetMeasureStatus(!0),i.tip=new St.a("请选择一个编辑点,右键取消",i.sdk),i.event=new te.a(i.sdk),i.nodePoints=[];var a=Cesium.Cartesian3.fromDegrees(i.center.lng,i.center.lat),r=i.options.semiMinorAxis,l=i.options.semiMajorAxis,c=i.options.bearing,u=i.createEllipse(i.options.center,{bearing:i.options.bearing,semiMinorAxis:i.options.semiMinorAxis,semiMajorAxis:i.options.semiMajorAxis});i.entity.polyline.clampToGround=!0,i.entity.polyline.arcType=Cesium.ArcType.GEODESIC,i.entity.polygon.perPositionHeight=!1,i.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(u)}),!1),i.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(u),[u[0],u[1]])}),!1);var h=i.entity.polyline.positions.getValue(),p=h.length,d=nt()(i.sdk.viewer.entities.values);setTimeout((function(){i.event.mouse_left((function(e,t){if(n)i.options.semiMinorAxis=r,i.options.semiMajorAxis=l,i.options.bearing=c,i.event&&i.event.destroy(),i.tip&&i.tip.destroy(),i.tip=null,n=null,YJ.Measure.SetMeasureStatus(!1),i.heightMode=i.heightMode;else{var s=i.sdk.viewer.scene.pick(e.position);if(s&&s.id&&s.id.name&&"node-secondary-edit-point"===s.id.name&&("semiMinorAxis"===s.id._type||"semiMajorAxis"===s.id._type)){i.tip.set_text("左键确认,右键取消"),n=s.id;for(var h=0;h0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}return this.positions=this.createEllipse(e,{bearing:this.options.bearing,semiMinorAxis:this.options.semiMinorAxis,semiMajorAxis:this.options.semiMajorAxis,height:e.alt+n}),i?setTimeout((function(){t.getClampToHeight({lng:e.lng,lat:e.lat}).then((function(i){t.label&&(t.label.position=[e.lng,e.lat,i])}))}),100):this.label&&(this.label.position=[e.lng,e.lat,e.alt+n]),this.areaByMeter=Number((Cesium.Math.PI*this.options.semiMinorAxis*this.options.semiMajorAxis).toFixed(2)),this.areaChangeCallBack&&this.areaChangeCallBack(),this.positions}}}],[{key:"create",value:function(e){var i,n=0;switch(e.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=e.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.options.center.lng,e.options.center.lat))||0,i=!1;break;case"2":case 2:i=!0}e.options.label.position||(e.options.label.position={lng:e.options.center.lng,lat:e.options.center.lat,alt:e.options.center.alt+n});var o=Cesium.Color.fromCssColorString(e.options.color);2===e.sdk.viewer.scene.mode&&(i=!1,o=new Cesium.CustomColorMaterialSource({color:e.options.color}));var s=e.createEllipse(e.options.center,{bearing:e.options.bearing,semiMinorAxis:e.options.semiMinorAxis,semiMajorAxis:e.options.semiMajorAxis,height:e.options.center.alt+n});e.entity=e.sdk.viewer.entities.add({id:e.options.id,show:e.options.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(s),perPositionHeight:!i,material:o,zIndex:e.sdk._entityZIndex},polyline:{positions:[].concat(nt()(s),[s[0],s[1]]),width:e.options.line.width,material:Cesium.Color.fromCssColorString(e.options.line.color),clampToGround:!!i,arcType:i?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,zIndex:e.sdk._entityZIndex}}),e.sdk._entityZIndex++,t.createLabel(e),e.areaByMeter=Number((Cesium.Math.PI*e.options.semiMajorAxis*e.options.semiMinorAxis).toFixed(2)),e.areaChangeCallBack&&e.areaChangeCallBack(),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){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0: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:t.options.label.ground});case 1: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=Tl(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i\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 '.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 Rl(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 zl(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)?zl(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 zl(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.min&&nNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Vl(this,t,[e,i])).options.color=i.color||"#ff0000",n.options.extrudedHeight=i.extrudedHeight||2.4,n.options.positions=i.positions,n.options.material=Number(i.material)||0===Number(i.material)?Number(i.material):3,n.options.duration=i.duration||0===i.duration?i.duration:1e3,n.options.show=!i.show&&!1!==i.show||i.show,n.options.noseToTail=i.noseToTail||!1,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={show:i.label.show||!1,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],delete n.options.attribute.camera,delete n.options.attribute.vr,delete n.options.attribute.goods,n.options.richTextContent=i.richTextContent||"",n.Dialog=o,n._elms={},!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),t.create(n)),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"wallStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e||"#ff0000",this.entity.polylineVolume.material=this.getMaterial(),this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}});t._elms.color[i]=n}))}},{key:"material",get:function(){return this.options.material},set:function(e){var t=this;this.options.material=Number(e)||0===Number(e)?Number(e):3,this.entity.polylineVolume.material=this.getMaterial(),this._elms.material&&this._elms.material.forEach((function(e){e.value=t.options.material}))}},{key:"noseToTail",get:function(){return this.options.noseToTail},set:function(e){this.options.noseToTail=e;for(var t=this.options.positions,i=[],n=0;nthis.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纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'上升墙',value:"上升墙",key:1,icon:"icon-wall-gradient"},{name:'箭头墙',value:"箭头墙",key:2,icon:"icon-wall-arrow"},{name:'警戒墙',value:"警戒墙",key:3,icon:"icon-wall-warn"}],(o=Object(je.a)(i.getElementsByClassName("material-box")[0],".material")).legp_search(n),(s=document.createElement("i")).className="icon icon-active",i.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(s),a=i.getElementsByClassName("material")[0].getElementsByTagName("input")[0],r=0;case 23:if(!(r=1e5&&(s=!0),o.push(r),n+=r}var l=n/t.options.extrudedHeight;if(l/=1,s)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:function(){},t=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个顶点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=[],a=0;a=500?c(o,i):l(o,i)}))}));for(var h=0;h0&&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;o\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 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 '.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 Ul(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 Yl(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)?Yl(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 Yl(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.min&&nNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Xl(this,t,[e,i]))._elms={},n.options.color=i.color||"#ffffff",n.options.width=i.width||.24,n.options.noseToTail=i.noseToTail||!1,n.options.extrudedHeight=i.extrudedHeight||2.4,n.cornerType=i.cornerType,n.options.positions=i.positions,n.options.material=Number(i.material)||0,n.options.show=!i.show&&!1!==i.show||i.show,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],delete n.options.attribute.camera,delete n.options.attribute.vr,delete n.options.attribute.goods,n.options.richTextContent=i.richTextContent||"",n.Dialog=o,!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),t.create(n)),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"WallRealStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e,this.entity)for(var i=0;ithis.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){var O=_;_=E+180,E=O+180,P=!1}var D=turf.sector([C.lng,C.lat,C.alt],this.options.width/1e3/2,_,E,{units:"kilometers"});if(console.log("sector",D),0==b&&(o.push(t[b]),s.push(i[b])),console.log("face",P),P){o.push(t[b+1],t[b+2]);for(var M=1;M0;T--)o.push([].concat(nt()(D.geometry.coordinates[0][T]),[t[b+1][2]]));s.push(i[b+1],i[b+2])}b==t.length-4&&(o.push(t[b+3]),s.push(i[b+3]))}n=[].concat(o);for(var N=s.length-1;N>=0;N--)n.push(s[N]);return n.push(n[0]),console.log("positions",n),n}},{key:"calculatePositions2",value:function(){for(var e=[],t=0;t180&&(h=360-h),h}return e}},{key:"calculatePositions",value:function(){var e=this.deepCopyObj(this.options.positions);this.noseToTail&&e.push(e[0],e[1]);for(var t=[],i=[],n=0;n0){var _=b;b=k+180,k=_+180,!1}var x=Math.abs(b-k);x>180&&(x=360-x);var S=this.options.width/2/Math.cos(Cesium.Math.toRadians(x/2));S>5*this.options.width&&(S=5*this.options.width);var E=turf.sector([v.lng,v.lat],this.options.width/1e3/2,b,k,{units:"kilometers",steps:3600}),P=turf.point([v.lng,v.lat]),O=turf.point(nt()(E.geometry.coordinates[0][Math.ceil(E.geometry.coordinates[0].length/2)])),D=turf.bearing(P,O),M=turf.destination(P,S/1e3,D,{units:"kilometers"}),T=[];T.push([].concat(nt()(E.geometry.coordinates[0][0]),[v.alt])),T.push([].concat(nt()(E.geometry.coordinates[0][1]),[v.alt])),T.push([].concat(nt()(M.geometry.coordinates),[v.alt])),T.push([].concat(nt()(E.geometry.coordinates[0][E.geometry.coordinates[0].length-2]),[v.alt])),i.push(T),i.push(t[f])}else if(1===this.cornerType)for(var N=1;N0){var H=I;I=F+180,F=H+180}for(var V=turf.sector([j.lng,j.lat],this.options.width/1e3/2,I,F,{units:"kilometers"}),G=[],W=0;W直角',value:"直角",key:0,icon:"yj-icon-zj"},{name:'斜角',value:"斜角",key:1,icon:"yj-icon-xj"},{name:'圆角',value:"圆角",key:2,icon:"yj-icon-yj"}],(o=Object(je.a)(i.getElementsByClassName("corner-type-box")[0],".corner-type")).legp_search(n),(s=document.createElement("i")).className="icon-active",i.getElementsByClassName("corner-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(s),a=i.getElementsByClassName("corner-type")[0].getElementsByTagName("input")[0],r=0;case 20:if(!(r'),e.abrupt("break",29);case 26:r++,e.next=20;break;case 29:a.addEventListener("input",(function(e,t){for(var i=0;i');break}})),l=[{name:'纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'红砖墙',value:"红砖墙",key:1,icon:"icon-wall-brick1"},{name:'黄砖墙',value:"黄砖墙",key:2,icon:"icon-wall-brick2"},{name:'灰瓷墙',value:"灰瓷墙",key:3,icon:"icon-wall-brick3"}],(c=Object(je.a)(i.getElementsByClassName("material-box")[0],".material")).legp_search(l),(u=document.createElement("i")).className="icon icon-active",i.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(u),h=i.getElementsByClassName("material")[0].getElementsByTagName("input")[0],p=0;case 38:if(!(p0&&void 0!==arguments[0]?arguments[0]:function(){},i=this;if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n,o,s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.entity){for(var n=i.calculatePositions(),o=0;o=500?u(o,t):c(o,t)}))}));for(var h=0;h0&&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;o\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 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 ').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 Ql(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 $l(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)?$l(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 $l(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.min&&i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c()(this,t),(i=oc(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.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);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,u=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=Kl(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){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("extendColor")[0],size:"mini",alpha:!0,defaultColor:this.extendColor,disabled:!1,openPickerAni:"opacity",sure:function(e){u.extendColor=e},clear:function(){u.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){u.labelLineColor=e},clear:function(){u.labelLineColor="rgba(255,255,255,1)"}}),r=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)"}}),l=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)"}}),c=i.getElementsByTagName("*"),tc.on(this,c),this._elms=tc.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.extendColor=[s],this._elms.labelLineColor=[a],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],setTimeout((function(){u.attributeLink=u.options.attribute.link.content;var e=u.attributeSelect,t=u._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=u._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)(u._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",u._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(g);var y=u._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];u._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=u.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=u.options.positions[e].lng.toFixed(8);var s=t.getElementsByClassName("lat")[0],a=document.createElement("span");a.innerHTML=u.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=u.options.positions[e].lat.toFixed(8);var l=t.getElementsByClassName("alt")[0],c=document.createElement("span");c.innerHTML=u.options.positions[e].alt.toFixed(2),l.appendChild(c);var h=document.createElement("input");h.className="input",h.type="number",h.title="",h.min=-9999999,h.max=999999999,h.value=u.options.positions[e].alt.toFixed(2),i.addEventListener("dblclick",(function(){i.innerHTML="",o.value=Number(u.options.positions[e].lng.toFixed(8)),i.appendChild(o),o.focus(),u.positionEditing=!1,u.closeNodeEdit()})),o.addEventListener("blur",(function(){o.value=Number(u.options.positions[e].lng.toFixed(8)),i.innerHTML="",i.appendChild(n)})),o.addEventListener("input",(function(){u.options.positions[e].lng=Number(Number(o.value).toFixed(8)),n.innerHTML=u.options.positions[e].lng.toFixed(8);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(u.options.positions[e].lat.toFixed(8)),s.appendChild(r),r.focus(),u.positionEditing=!1,u.closeNodeEdit()})),r.addEventListener("blur",(function(){r.value=Number(u.options.positions[e].lat.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){u.options.positions[e].lat=Number(Number(r.value).toFixed(8)),a.innerHTML=u.options.positions[e].lat.toFixed(8);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),l.addEventListener("dblclick",(function(){2!=u.heightMode&&(l.innerHTML="",h.value=Number(u.options.positions[e].alt.toFixed(2)),l.appendChild(h),h.focus(),u.positionEditing=!1,u.closeNodeEdit())})),h.addEventListener("blur",(function(){h.value=Number(u.options.positions[e].alt.toFixed(2)),l.innerHTML="",l.appendChild(c)})),h.addEventListener("input",(function(){u.options.positions[e].alt=Number(Number(h.value).toFixed(2)),c.innerHTML=u.options.positions[e].alt.toFixed(2);var t=u.renewPositions(u.options.positions);u.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(t),u.label.position=[u.options.positions[0].lng,u.options.positions[0].lat,t[2]]})),u._elms.lng.push(n),u._elms.lngInput.push(o),u._elms.lat.push(a),u._elms.latInput.push(r),u._elms.alt.push(c),u._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.f)(this.sdk),Object(X.g)(this.sdk),Object(X.w)(0),!this.options.customView){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=nc({},this.options.position):this.options.positions?r=nc({},this.options.positions[0]):this.options.center?r=nc({},this.options.center):this.options.start?r=nc({},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 Cesium.Cartesian3.fromDegreesArrayHeights(n)}),!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 u=this.renewPositions(this.options.positions);this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(u),this.renewPolygon(u);var h=this.heightMode;switch(this._isNodeEdit&&(h=0),h){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,u[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:u[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:u[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;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=lc(this,t,[e,n])).viewer=e.viewer,i.options.show=!n.show&&!1!==n.show||n.show,i.options.name=i.options.name||"未命名对象",i.options.size=i.options.size||0===i.options.size?i.options.size:80,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.event=new te.a(i.sdk),i.Dialog=o,i.operate={},i._elms={},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"Explosion"}},{key:"edit",value:(o=_()(S.a.mark((function e(t){var i,n;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+" explosion",(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
            \n
            \n 爆炸范围\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,this.scaleByDistance=this.options.scaleByDistance;case 16:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"flyTo",value:(n=_()(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=rc({},this.options.position):this.options.positions?r=rc({},this.options.positions[0]):this.options.center?r=rc({},this.options.center):this.options.start?r=rc({},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.position.lng,this.options.position.lat,this.options.position.alt+8*this.options.size),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-85),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.previous=null,this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.size=this.originalOptions.size,this.scaleByDistance=this.originalOptions.scaleByDistance,this.lng=this.options.position.lng,this.lat=this.options.position.lat)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(e){this.options.scaleByDistance=e,this.entity.billboard.sizeInMeters=e,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(t){t.checked=e}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=e,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=e,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=e,this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e}))}},{key:"size",get:function(){return this.options.size},set:function(e){this.options.size=e,this.entity.billboard.width=this.options.size,this.entity.billboard.height=this.options.size,this._elms.size&&this._elms.size.forEach((function(t){t.value=e}))}},{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.previous={position:rc({},this.options.position)},this.event.mouse_move((function(e,i){var n=t.cartesian3Towgs84(i,t.sdk.viewer);t.lng=n.lng,t.lat=n.lat,t.alt=n.alt,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.alt=n.alt,t.previous={position:rc({},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._positionEditingCallback&&(t._positionEditingCallback(),t._positionEditingCallback=null),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.alt=e.alt,t.previous={position:rc({},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.positionEditing=!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.previous&&(this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt)))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.viewer.entities.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=7,this.sdk.removeIncetance(this.options.id);case 7:return e.next=9,Object(J.g)(this.sdk,this.options.id);case 9:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(e){for(var t=[],i=10001;i<=10120;i++){var n=e.getSourceRootPath()+"/img/frameAnimation/explosion/b".concat(i,".png");t.push(n)}var o=new Cesium.Entity({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt)}),!1),billboard:{image:new Cesium.CallbackProperty((function(){var e=t[o.imgIndex];return o.imgIndex++,o.imgIndex>=t.length&&(o.imgIndex=0),e}),!1),disableDepthTestDistance:new Cesium.CallbackProperty((function(){return Object(X.s)()?void 0:Number.POSITIVE_INFINITY}),!1),width:e.options.size,height:e.options.size,sizeInMeters:e.options.scaleByDistance,pixelOffset:{x:0,y:-20}}});o.imgIndex=0,e.entity=e.viewer.entities.add(o),Object(J.g)(e.sdk,e.options.id),e.options.show&&Object(Z.f)(0,e.options.id)}}]);var i,n,o}(vt);function uc(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 m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 持续时间\n
            \n \n ms\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 '.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 hc(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 pc(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=dc(this,t,[e,i])).options.lng=i.lng,n.options.lat=i.lat,n.options.alt=i.alt,n.options.colorOut=i.colorOut||"rgba(255,255,0,0.3)",n.options.colorIn=i.colorIn||"rgba(255,0,0,0.3)",n.options.radius=i.radius||10,n.options.radius>999999&&(n.options.radius=999999),n.options.duration=i.duration||2e3,n.event=new te.a(n.sdk),i.label=i.label||{},n.options.label={show:i.label.show||!1,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.richTextContent=i.richTextContent||"",n._elms={},n.Dialog=o,n._EventBinding=new Ye,n.ControllerObject=new fi(n.sdk),n.sdk.addIncetance(n.options.id,n),t.radarSolidScan(n),n}return Me()(t,e),h()(t,[{key:"type",get:function(){return"RadarScanStereoscopic"}},{key:"positionEditing",get:function(){return"translational"===this.ControllerObject.getActiveState()},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(e?(this.picking=!1,this.ControllerObject.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this.ControllerObject.editTranslational(),this.ControllerObject.controllerCallBack=function(e){t.lng=e.position.lng,t.lat=e.position.lat,t.alt=e.position.alt,t._positionEditingCallback&&t._positionEditingCallback()}):(setTimeout((function(){t.picking=!0}),500),this.ControllerObject.destroy(),this._positionEditingCallback=null))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"closePositionEditing",value:function(){this.positionEditing=!1,this._positionEditingCallback=null}},{key:"lng",get:function(){return this.options.lng},set:function(e){this.options.lng=Number(e),this.label.position=[e,this.lat,this.alt+this.radius],this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"lat",get:function(){return this.options.lat},set:function(e){this.options.lat=Number(e),this.label.position=[this.lng,e,this.alt+this.radius],this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"alt",get:function(){return this.options.alt},set:function(e){this.options.alt=Number(e),this.label.position=[this.lng,this.lat,e+this.radius],this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"radius",get:function(){return this.options.radius},set:function(e){var i=Number(e.toFixed(2));(i>999999&&(i=999999),i<.1&&(i=.1),this.options.radius=i,this.label.position=[this.lng,this.lat,this.alt+e],this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(i=Number((i/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(e){e.value=i})),t.changeParam(this)}},{key:"duration",get:function(){return this.options.duration},set:function(e){this.options.duration=e,this._elms.duration&&this._elms.duration.forEach((function(t){t.value=e})),t.changeParam(this)}},{key:"colorOut",get:function(){return this.options.colorOut},set:function(e){var t=this;this.options.colorOut=e,this.entity.ellipsoid.material=Cesium.Color.fromCssColorString(e),this.entity.ellipsoid.outlineColor=Cesium.Color.fromCssColorString(e),this._elms.colorOut&&this._elms.colorOut.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.colorOut=e},clear:function(){t.colorOut="rgba(255,255,255,1)"}});t._elms.colorOut[n]=o}))}},{key:"colorIn",get:function(){return this.options.colorIn},set:function(e){var t=this;this.options.colorIn=e,this.entity.wall.material=Cesium.Color.fromCssColorString(e),this._elms.colorIn&&this._elms.colorIn.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.colorIn=e},clear:function(){t.colorIn="rgba(255,255,255,1)"}});t._elms.colorIn[n]=o}))}},{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.show=e: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.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;t=Number(e.target.min))&&(h.radius=i*("米"===t?1:1e3))}})),u.addEventListener("blur",(function(e){var t=h._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!==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=pc({},this.options.position):this.options.positions?r=pc({},this.options.positions[0]):this.options.center?r=pc({},this.options.center):this.options.start?r=pc({},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 o.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,this.colorOut=this.originalOptions.colorOut,this.colorIn=this.originalOptions.colorIn,this.radius=this.originalOptions.radius,this.duration=this.originalOptions.duration,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.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,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.positionEditing=!1)}},{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.remove(),this.sdk.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=6,this.sdk.removeIncetance(this.options.id);case 6:return e.next=8,Object(J.g)(this.sdk,this.options.id);case 8: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.options.alt+this.options.radius);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:"radarSolidScan",value:function(e){var i=e.sdk.viewer,n=e.options,o=(n.radius,n.lng,n.lat,n.alt,e.options.duration?360/e.options.duration*Cesium.getTimestamp():0),s=a(e.options,e.options.radius,o);(new Date).getTime();function a(e,t,i){var n=e.lng,o=e.lat,s=e.alt,a=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,s)),r=t*Math.cos(i*Math.PI/180),l=t*Math.sin(i*Math.PI/180),c=Cesium.Cartesian3.fromElements(r,l,s),u=Cesium.Matrix4.multiplyByPoint(a,c,new Cesium.Cartesian3),h=Cesium.Cartographic.fromCartesian(u);return function(e,t,i,n,o){var s=[],a=[];s.push(e,t,o),a.push(o);for(var r=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(e,t),Cesium.Cartesian3.fromDegrees(i,n)),l=0;l<=90;l++){var c=r*Math.sin(l*Math.PI/180),u=Math.cos(l*Math.PI/180),h=(i-e)*u+e,p=(n-t)*u+t;s.push(h,p,c+o),a.push(o)}return{positionArr:s,bottomArr:a}}(n,o,Cesium.Math.toDegrees(h.longitude),Cesium.Math.toDegrees(h.latitude),s)}i.clock.onTick.addEventListener((function(){o=e.options.duration?360/e.options.duration*Cesium.getTimestamp():0,s=a(e.options,e.options.radius,o)})),e.entity=i.entities.add({id:e.options.id,show:e.options.show,position:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3.fromDegrees(e.options.lng,e.options.lat,e.options.alt)}),!1),ellipsoid:{radii:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3(e.options.radius,e.options.radius,e.options.radius)}),!1),material:Cesium.Color.fromCssColorString(n.colorOut),outline:!0,outlineColor:Cesium.Color.fromCssColorString(n.colorOut),outlineWidth:1,maximumCone:Cesium.Math.toRadians(90)},wall:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(s.positionArr)}),!1),material:Cesium.Color.fromCssColorString(n.colorIn),minimumHeights:new Cesium.CallbackProperty((function(){return s.bottomArr}),!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,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.options.alt){e.next=4;break}i=t.options.alt+t.options.radius,e.next=8;break;case 4:return n=nt()(t.sdk.viewer.entities.values),e.next=7,t.getClampToHeight({lng:t.options.lng,lat:t.options.lat},n);case 7:i=e.sent;case 8: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,ground:!1,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});case 10:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"changeParam",value:function(e){}}]);var i,n,o,s}(vt);function fc(e){return'\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 ")}function vc(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 gc(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)?gc(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 gc(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=Cc(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},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)",n.label=n.label||{},i._elms={},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.event=new te.a(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"SectorObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(e){var t=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(t.options.heightMode=e||0==e?e:2,t.positionEditing=!1,t.entity){var i="";t.closeNodeEdit();var n=!1,o=!1;switch(t.renewPositions(),t.entity.polyline.positions=[].concat(nt()(t.positions),[t.positions[0],t.positions[1]]),t.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(t.positions),t.options.heightMode){case"0":case 0:i="海拔高度";break;case"1":case 1:i="相对地表";break;case"2":case 2:n=!0,o=!0,i="依附模型"}t.label.ground=n,t.entity.polyline.clampToGround=n,t.entity.polyline.arcType=n?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,t.entity.polygon.perPositionHeight=!n,t._elms.heightMode&&(t._elms.heightMode.value=i),t._elms.heightModeObject&&t._elms.heightModeObject.legp_searchActive(i),o?(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),t._elms.heightConfirm&&t._elms.heightConfirm.setAttribute("disabled","disabled")):(t._elms.heightBox&&(t._elms.heightBox.className="input-number input-number-unit-1 height-box"),t._elms.heightConfirm&&t._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(e){var t,i=this;!e||isNaN(Number(e))?this.options.center.alt=0:this.options.center.alt=Number(Number(e).toFixed(2)),t=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!t,i.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!t,i.entity.polyline.arcType=t?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(e){e.innerHTML=i.options.center.alt}))}},{key:"startAngle",get:function(){return this.options.startAngle},set:function(e){this.options.startAngle=e,this.height=this.height}},{key:"endAngle",get:function(){return this.options.endAngle},set:function(e){this.options.endAngle=e,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(e){var t=this;this.options.center=e,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(e){e.innerHTML=t.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(e){e.innerHTML=t.options.center.lat}))}},{key:"radius",get:function(){return this.options.radius},set:function(e){this.options.radius=e,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,0,0,0.5)"}});t._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(e){var t=this;this.options.line.color=e||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.lineColor=e},clear:function(){t.lineColor="rgba(255,0,0,0.5)"}});t._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(e){var t=this;this.options.line.width=e||0===e?e:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t.options.line.width}))}},{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.show=e: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.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!==x[0]?x[0]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!this.options.customView){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=bc({},this.options.position):this.options.positions?r=bc({},this.options.positions[0]):this.options.center?r=bc({},this.options.center):this.options.start?r=bc({},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=60;break;case 23:l=this.entity.polyline.positions.getValue(),c=[],u=0,h=this.cartesian3Towgs84(l[0],this.sdk.viewer),p=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),m=Cesium.Cartesian3.subtract(d,p,new Cesium.Cartesian3),f=Cesium.Cartesian3.normalize(m,m),v=new Cesium.Ray(p,f),g={},y=this.sdk.viewer.scene.drillPickFromRay(v),b=0;case 35:if(!(b=500)t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.center.lng=e.lng,t.options.center.lat=e.lat,t.center=t.options.center,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.previous={center:t.deepCopyObj(t.options.center)},t.positionEditing=!1}}))})),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)):(this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.label&&this.label.entity&&this.label.entity.billboard&&(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.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),this.entity.polyline.positions=[].concat(nt()(i.positions),[i.positions[0],i.positions[1]]),this.previous=null)}}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"areaChangeCallBack",get:function(){return this._areaChangeCallBack},set:function(e){this._areaChangeCallBack=e}},{key:"nodeEdit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=this;if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var i,n=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)}},o=function(){var e=_()(S.a.mark((function e(i,n){var o,s,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.cartesian3Towgs84(i,t.sdk.viewer),e.next=3,t.getClampToHeight(o);case 3:s=e.sent,a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY}}),t.nodePoints.push(a);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();t.event&&t.event.destroy(),t.event=new te.a(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new St.a("请选择一个编辑点,右键取消",t.sdk),t.event=new te.a(t.sdk),t.nodePoints=[];var s=t.calSector(t.options.center,t.options.radius,t.options.startAngle,t.options.endAngle),a=[],r=t.options.radius,l={angle1:t.options.startAngle,angle2:t.options.endAngle};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(s)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(nt()(s),[s[0],s[1]])}),!1);var c=t.entity.polyline.positions.getValue();a=[bc({},t.center),t.cartesian3Towgs84(c[1],t.sdk.viewer),t.cartesian3Towgs84(c[c.length-4],t.sdk.viewer)];var u=nt()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:t.options.center.lng,lat:t.options.center.lat},u).then((function(e){t.label.position=[t.options.center.lng,t.options.center.lat,e]})),setTimeout((function(){o(c[1],"sector-start"),o(c[c.length-4],"sector-end"),t.event.mouse_left((function(e,n){if(i)t.options.startAngle=l.angle1,t.options.endAngle=l.angle2,t.options.radius=r,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,i=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var o=t.sdk.viewer.scene.pick(e.position);if(o&&o.id&&o.id.name&&"node-secondary-edit-point"===o.id.name&&("sector-start"===o.id._type||"sector-end"===o.id._type)){t.tip.set_text("左键确认,右键取消"),i=o.id;for(var s=0;s0&&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.center.lng,this.options.center.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:"renewPositions",value:function(e){var t=this;if(!this._error){var i=!1;e||(e=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(e.lng,e.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.calSector(e,this.options.radius,this.options.startAngle,this.options.endAngle,360,!0),s=[];if(i){for(var a=0;aNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=kc(this,t,[e,n])).source=new Cesium.CustomDataSource(i.options.id),i.detail=[],i}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.source&&(this.source.show=e,this.options.show=e)}},{key:"setDefaultValue",value:function(){var e;this.options.id=this.options.id||Cesium.createGuid(),this.options.url=this.options.url||"",this.options.show=null===(e=this.options.show)||void 0===e||e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.length>0&&void 0!==r[0]?r[0]:3,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?(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),this.sdk.viewer.camera.flyTo({destination:a,orientation:i,duration:t})):this.source&&this.viewer.flyTo(this.source,{duration:t});case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var e,i,n,o,s;(e=t,i="remove",n=this,o=3,s=On()(Oe()(1&o?e.prototype:e),i,n),2&o&&"function"==typeof s?function(e){return s.apply(n,e)}:s)([]),this.viewer.dataSources.remove(this.source),this.source=null}},{key:"on",value:(i=_()(S.a.mark((function e(){var t=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.show=this.options.show,e.next=3,Cesium.KmlDataSource.load(this.options.url,{camera:this.viewer.scene.camera,canvas:this.viewer.scene.canvas});case 3:return e.sent.entities.values.forEach((function(e,i){if(t.detail.push({name:e.name,id:e.id}),e.label){var n=1;e.billboard&&(n=e.billboard.scale._value),e.label.pixelOffset=new Cesium.Cartesian2(0,-32*n-15),e.label.horizontalOrigin=Cesium.HorizontalOrigin.CENTER,e.label.disableDepthTestDistance=Number.POSITIVE_INFINITY}if(e.polygon){var o={hierarchy:e.polygon.hierarchy.getValue().positions,material:e.polygon.material,classificationType:Cesium.ClassificationType.BOTH};if(e.polygon.outline.getValue()){var s=e.polygon.hierarchy.getValue().positions,a=new Cesium.Entity({id:t.getOutlineId(e.id),polyline:{positions:s,width:e.polygon.outlineWidth.getValue(),material:e.polygon.outlineColor.getValue(),clampToGround:!0,zIndex:t.sdk._entityZIndex}});t.source.entities.add(a)}e.polygon=o}e.billboard&&(e.billboard.heightReference=Cesium.HeightReference.CLAMP_TO_GROUND),e.polyline&&(e.polyline={positions:e.polyline.positions.getValue(),material:e.polyline.material,clampToGround:!0,width:e.polyline.width?e.polyline.width.getValue():1}),e.show=!0,t.source.entities.add(e)})),e.next=7,this.viewer.dataSources.add(this.source);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getOutlineId",value:function(e){return[e,"outline"].join("_")}}]);var i,n}(vt);function xc(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 Sc=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=xc(this,t,[e,n])).primitive=void 0,i.positions=[],i.loading=!0,i}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)(),this.options.color=this.options.color||"rgb(239, 6, 6, 1)",this.options.width=this.options.width||1}},{key:"show",get:function(){return this.options.show},set:function(e){if(this.options.show=e,this.entity)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Oc(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(32,67,135,0.5)",i.options.positions=n.positions||[],i.options.frequency=n.frequency||10,i.options.animationSpeed=n.animationSpeed||1,i.options.amplitude=n.amplitude||10,i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.sdk.addIncetance(i.options.id,i),t.create(i),i}return Me()(t,e),h()(t,[{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color=e,this.entity&&(this.entity.appearance.material.uniforms.baseWaterColor=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:"frequency",get:function(){return this.options.frequency},set:function(e){this.options.frequency=e,this.entity&&(this.entity.appearance.material.uniforms.frequency=10*e),this._elms.frequency&&this._elms.frequency.forEach((function(t){t.value=e}))}},{key:"animationSpeed",get:function(){return this.options.animationSpeed},set:function(e){this.options.animationSpeed=e,this.entity&&(this.entity.appearance.material.uniforms.animationSpeed=.01*e),this._elms.animationSpeed&&this._elms.animationSpeed.forEach((function(t){t.value=e}))}},{key:"amplitude",get:function(){return this.options.amplitude},set:function(e){this.options.amplitude=e,this.entity&&(this.entity.appearance.material.uniforms.amplitude=e),this._elms.amplitude&&this._elms.amplitude.forEach((function(t){t.value=e}))}},{key:"height",get:function(){return this.options.height},set:function(e){this.options.height=e;var t=this.options.positions[0],i=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,e),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,this.entity.originalHeight);this.entity.modelMatrix=Cesium.Matrix4.setTranslation(this.entity.modelMatrix,new Cesium.Cartesian3(i.x-n.x,i.y-n.y,i.z-n.z),new Cesium.Matrix4),this._elms.height&&this._elms.height.forEach((function(t){t.value=e}))}},{key:"edit",value:(o=_()(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:if(t=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),!t){e.next=19;break}return e.next=7,new Be(this.sdk,this.originalOptions,{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(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" water-surface",(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 \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 ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("water-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 19:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.frequency=this.originalOptions.frequency,this.animationSpeed=this.originalOptions.animationSpeed,this.amplitude=this.originalOptions.amplitude,this.height=this.originalOptions.height)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[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=Pc({},this.options.position):this.options.positions?r=Pc({},this.options.positions[0]):this.options.center?r=Pc({},this.options.center):this.options.start?r=Pc({},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=28;break;case 23:l=Cesium.Rectangle.fromCartesianArray(this.entity.geometryInstances.geometry._polygonHierarchy.positions),c=this.sdk.viewer.camera.getRectangleCameraCoordinates(l),u=this.cartesian3Towgs84(c,this.sdk.viewer),h=Cesium.Cartesian3.fromDegrees(u.lng,u.lat,u.alt+this.height),this.sdk.viewer.camera.flyTo({orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:h});case 28:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=5,this.sdk.removeIncetance(this.options.id);case 5:return e.next=7,Object(J.g)(this.sdk,this.options.id);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(e){for(var t=e.options.positions,i=[],n=t[0].alt,o=0;o=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 Tc(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),Ac(i=jc(this,t,[e,n]),Ic,null),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.speed<=0&&(i.options.speed=.01),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.model=n.model=n.model||{},i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.height=Number(i.options.height.toFixed(2)),i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.model.show=!n.model.show&&!1!==n.model.show||n.model.show,i.options.model.url=n.model.url||"",i.options.model.pixelSize=n.model.pixelSize||70,i.options.model.heading=n.model.heading||0,i.options.model.pitch=n.model.pitch||0,i.options.model.roll=n.model.roll||0,i.options.model.scale=n.model.scale||0===n.model.scale?n.model.scale:1,i.options.model.animate=n.model.animate||"无",i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.reverse=n.reverse||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._lineEdit=!1,i._keyPoint=!1,i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i.distance,n.label=n.label||{},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.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),i.ControllerObject=new fi(i.sdk),i._EventBinding=new Ye,i.options.viewFollow=!1,i.options.firstPersonView=!1,t.addLine(i),i.firstPersonView=!1),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TrajectoryMotion"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){var t=Object(J.a)();if(this.isShowView&&t||(this.options.show=e,this.originalOptions&&(this.originalOptions.show=e)),this.options.show){this.firstPersonView?this.model.show=!1:this.model.show=(!this.showView||3==this.showView||!t)&&this.modelShow,this.showView&&3!=this.showView&&t?this.line.polyline.material=new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20}):this.line.polyline.material=this.lineShow?new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff"),dashLength:20}):new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20});for(var i=0;i0)for(var i=0;i=500?(t.keyPointShow=!1,YJ.Measure.SetMeasureStatus(!1),t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,t.ControllerObject.destroy()):s(o)}))})),this.line.polyline.positions=new Cesium.CallbackProperty((function(){return i}),!1),this.keyPointShow=e}else this.lineEdit&&(YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null),this.keyPointShow=e,this.ControllerObject.destroy();this._lineEdit=e,this._elms.lineEdit&&this._elms.lineEdit.forEach((function(t){t.checked=e}))}},{key:"routeDirection",get:function(){return this.options.routeDirection},set:function(e){this.options.routeDirection=e,this._elms.routeDirection&&this._elms.routeDirection.forEach((function(t){t.checked=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(e){this.options.loop=e,this.TweenAnimate&&this.TweenAnimate._isPlaying&&(e?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(t){t.checked=e}))}},{key:"firstPersonView",get:function(){return this.options.firstPersonView},set:function(e){var t=this,i=Object(J.a)(),n=Object(Z.a)();if((Object(J.a)()||n.sdkD||!this.show)&&(e=!1),cancelAnimationFrame(this._requestAnimationFrameEventId),this._firstPersonViewEvent&&this._firstPersonViewEvent.destroy(),this.sdk.viewer._firstPersonView=e,this.options.firstPersonView=e,this.options.firstPersonView){if(this.viewFollow=!0,this.firstPersonHeadingPitch={heading:0,pitch:-10},this.state=!0,this.model&&(this.model.show=!1),this._DialogObject&&this._DialogObject._element.content){var o=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");o[0].className="btn is-active",o[1].className="btn"}this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),Object(X.a)(this.sdk,!1);var s,a=Object(Z.a)(),r=(s=this.sdk===a.sdkP?a.sdkD:a.sdkP)?s.entityMap.get(this.options.id):void 0;this.sdk&&(this._firstPersonViewEvent=new te.a(this.sdk)),this._firstPersonViewEvent.mouse_right_down((function(e,i){var n=Bc({},e.position);t._firstPersonViewEvent.mouse_move((function(e,i){t.firstPersonHeadingPitch.heading=t.firstPersonHeadingPitch.heading+(e.endPosition.x-n.x)/20,t.firstPersonHeadingPitch.pitch=t.firstPersonHeadingPitch.pitch+(n.y-e.endPosition.y)/10,r&&(r.firstPersonHeadingPitch=Bc({},t.firstPersonHeadingPitch)),n=Bc({},e.endPosition)}),!0)}),!0),this._firstPersonViewEvent.mouse_right_up((function(e,i){t._firstPersonViewEvent.mouse_move((function(){}))}),!0)}else{if(Object(X.a)(this.sdk,!0),this.model&&this.modelShow&&this.show){var l=!0;l=!(!this.show||this.showView&&3!=this.showView&&i),this.model.show=l}if(this._DialogObject&&this._DialogObject._element.content){var c=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");c[0]&&c[1]&&(c[0].className="btn",c[1].className="btn is-active")}if(this.viewFollow&&this.show){if(this.sdk.viewer.trackedEntity&&this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),3===this.sdk.viewer.scene.mode){var u=this.sdk.viewer.entities.add({position:this.positions_smooth[0],point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=u}this.viewFollow=this.viewFollow}}Object(Z.g)(this.sdk,this.options.id)}},{key:"viewFollow",get:function(){return this.options.viewFollow},set:function(e){Object(Z.a)();var t=Object(J.a)();if(this.show||(e=!1),this.options.viewFollow=e,this.options.viewFollow?(this.editObj&&(this.editObj.destroy(),this.editObj=null,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn")),Object(X.f)(this.sdk),this.lineEdit=!1):this.firstPersonView=!1,this.options.firstPersonView){if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),this._DialogObject&&this._DialogObject._element.content){var i=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");i[0]&&i[1]&&(i[0].className="btn",i[1].className="btn is-active")}}else if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),e&&this.show&&this.model){var n=this.sdk.viewer.entities.add({position:this.model.position,point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=n}var o=Object(J.b)();if(o)if(this.sdk!=o){var s=o.entityMap.get(this.options.id);s&&s.viewFollow!=e&&(s.viewFollow=e)}else if(t){var a=t.entityMap.get(this.options.id);a&&a.viewFollow!=e&&(a.viewFollow=e,this.TweenAnimate&&this.TweenAnimate._isPlaying&&a.setMovePositionByDistance(this.TweenAnimate._object.distance))}Object(Z.g)(this.sdk,this.options.id),this._elms.viewFollow&&this._elms.viewFollow.forEach((function(t){t.checked=e}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(e){var t=this;this.options.label.show=e;var i=Object(J.a)(),n=e;n=!(!this.show||this.showView&&3!=this.showView&&i)&&e,this.show?this.label&&(this.label.show=n,this.label.pixelOffset=this.options.label.pixelOffset,this.options.label.position&&setTimeout((function(){t.options.label.position.alt?t.label&&(t.label.position=[t.options.label.position.lng,t.options.label.position.lat,t.options.label.position.alt]):t.getClampToHeight({lng:t.options.label.position.lng,lat:t.options.label.position.lat}).then((function(e){t.label&&(t.label.position=[t.options.label.position.lng,t.options.label.position.lat,e])}))}),0)):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.label.pixelOffset=this.options.label.pixelOffset,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&&(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;tt/n.distance)){e.next=69;break}return e.abrupt("break",74);case 69:j=n.spline.evaluate(B/1e3),N.push(j);case 71:B++,e.next=66;break;case 74:N.push(M),n.realTimePositions=N;case 76:if(d=b(n.model.position,u),f&&f.position&&(m=b(f.position,u),d.pitch=m.pitch),f.position=n.model.position,Cesium.HeadingPitchRoll.fromDegrees(n.options.model.heading,n.options.model.pitch,n.options.model.roll),A=0,L=0,I=0,R=Cesium.Transforms.eastNorthUpToFixedFrame(u),!n.options.routeDirection||n.lineEdit){e.next=96;break}if(A=d.heading*(180/Math.PI)-90-n.options.model.heading,L=d.pitch*(180/Math.PI)-n.options.model.pitch,I=n.options.model.roll,z=Object(J.b)()?Object(J.b)().entityMap.get(n.options.id):o.sdkP&&o.sdkP.entityMap.get(n.options.id),n.state||z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)&&(A=z.model.heading,L=z.model.pitch,I=z.model.roll),!(isNaN(A)||isNaN(L)||isNaN(I))){e.next=92;break}return e.abrupt("return");case 92:n.state||(z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)?(A=z.model.heading,L=z.model.pitch,I=z.model.roll):(A=n.model.heading||0===n.model.heading?n.model.heading:n.options.model.heading,L=n.model.pitch||0===n.model.pitch?n.model.pitch:n.options.model.pitch,I=n.model.roll||0===n.model.roll?n.model.roll:n.options.model.roll)),n.model.modelMatrix=Cesium.Matrix4.multiplyByMatrix3(R,Cesium.Matrix3.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(A,L,I)),n.model.modelMatrix),e.next=112;break;case 96:if(!n.entity){e.next=112;break}if(A=n.options.model.heading,L=n.options.model.pitch,I=n.options.model.roll,!(isNaN(A)||isNaN(L)||isNaN(I))){e.next=102;break}return e.abrupt("return");case 102:F=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(I)),H=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(L)),V=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(A)),G=Cesium.Matrix4.fromRotationTranslation(F),W=Cesium.Matrix4.fromRotationTranslation(H),U=Cesium.Matrix4.fromRotationTranslation(V),Y=new Cesium.Matrix4,Cesium.Matrix4.multiply(R,G,Y),Cesium.Matrix4.multiply(Y,W,Y),Cesium.Matrix4.multiply(Y,U,n.entity.modelMatrix);case 112:if(n.model.position=u,n.model.roll=I,n.model.pitch=L,n.model.heading=A,u){e.next=118;break}return e.abrupt("return");case 118:q=n.cartesian3Towgs84(u,n.sdk.viewer),n.label.position=[q.lng,q.lat,q.alt],n.realTimeRouteArray.push(u),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(A+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}}):3===n.sdk.viewer.scene.mode?n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=u):n.sdk.viewer.trackedEntity&&n.sdk.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],n.sdk.viewer.camera.positionCartographic.height),orientation:{heading:Cesium.Math.toRadians(-90),pitch:0,roll:0}}));case 123:case"end":return e.stop()}}),e,null,[[35,42]])})))).apply(this,arguments)},g=function(e){return y.apply(this,arguments)},i=w.length>1&&void 0!==w[1]?w[1]:{time:0},cancelAnimationFrame(this._requestAnimationFrameEventId),n=this,o=i.time||0,a=i.distance,r=this.sdk.viewer,this.model&&this.sdk&&this.sdk.viewer){e.next=11;break}return e.abrupt("return");case 11:for(this.removeModelAnimate(),l=[],c=0;cthis.distance&&(a=this.distance),o=a/this.distance*p):(a=1e-6,o&&(o>p&&(o=p),a=o/p*this.distance)),f={},this.TweenAnimate=new TWEEN.Tween({distance:a}).to({distance:this.distance},1e3*(p-o)).delay(1e3*this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){(o||a)&&C.modelMove(t)})).onUpdate(function(){var e=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(C.sdk.viewer){e.next=6;break}return C.removeModelAnimate(),e.abrupt("return");case 6:isNaN(t.distance)||g(t.distance);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onEveryStart((function(){C.realTimeRouteArray=[]})).onComplete((function(e){C.state=!1})),this.state?this.TweenAnimate.start():(v=function(){if(n._requestAnimationFrameEventId2=requestAnimationFrame(v),n.options.firstPersonView){var e=Bc({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:e,orientation:{heading:Cesium.Math.toRadians(n.model.heading+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}})}},g(a),setTimeout((function(){n.model.isMove=!1}),1e3),v());case 24:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(e){var t=this.renewLinePositions(this.options.line.positions);this.modelMove(t,{distance:e})}},{key:"setMovePositionByTime",value:function(e){var t=this.renewLinePositions(this.options.line.positions);this.modelMove(t,{time:e})}},{key:"edit",value:(u=_()(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 3:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=46;break}return e.next=9,new Be(this.sdk,this.options,{title:"轨迹运动属性",left:"180px",top:"100px",confirmCallBack:function(e){u.name=u.name.trim(),u.name||(u.name="未命名对象"),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close();var t=u.deepCopyObj(u.options);t.host="",u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(t),Object(J.g)(u.sdk,u.options.id),Object(Z.g)(u.sdk,u.options.id)},removeCallBack:function(){u.sdk.viewer.trackedEntity&&(u.sdk.viewer.entities.remove(u.sdk.viewer.trackedEntity),u.sdk.viewer.trackedEntity=null),u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u._DialogObject=null,u.reset(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack(),u.editObj&&(u.editObj.destroy(),u.editObj=null),u.keyPointShow=!1,u.event&&u.event.destroy(),u.tip&&u.tip.destroy(),u.tip=null,u.ControllerObject.destroy(),u.firstPersonView!==u.originalOptions.firstPersonView&&(u.firstPersonView=u.originalOptions.firstPersonView),u.firstPersonView&&u.modelShow&&u.model&&(u.model.show=!1)},showCallBack:function(e){u.show=e,u.Dialog.showCallBack&&u.Dialog.showCallBack()}});case 9:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" trajectory-motion",(i=document.createElement("div")).innerHTML='\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 m/s\n \n
            \n
            \n
            \n 延迟运动\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 更换模型\n \n
            \n
            \n 模型方向\n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 路径显隐\n \n
            \n
            \n 模型显隐\n \n
            \n
            \n 实时路径\n \n
            \n
            \n
            \n
            \n 编辑\n \n
            \n
            \n 路径圆滑\n \n
            \n
            \n 环线\n \n
            \n
            \n
            \n
            \n 轨迹贴地\n \n
            \n
            \n 轨迹循环\n \n
            \n
            \n 轨迹动画\n \n
            \n
            \n
            \n
            \n 路径方向\n \n
            \n
            \n 视角跟随\n \n
            \n
            \n 模型动画\n
            \n
            \n
            \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 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 油耗\n
            \n \n L/100km\n \n
            \n
            \n
            \n 总油耗\n \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),this.editObj?(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="结束调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn is-active"):(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn"),n=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=""}}),o=this._DialogObject._element.content.getElementsByClassName("height-box")[0],s=i.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.heightBox=o,this._elms.labelColor=[n],this.model&&(a=function(){var e=u.model.loader.components.animations;if(u._DialogObject){if(e){for(var t=[{name:"无",value:"无"}],n=0;n=107?this.model.ready?a():this.model.readyEvent.addEventListener((function(){a()})):this.model.readyPromise.then((function(e){a()}))),this.ground?this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"):this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box"),(r=i.querySelectorAll("button[name='firstPerson']"))[0].addEventListener("click",(function(e){var t=Object(Z.a)();Object(J.a)()||t.sdkD||(u.firstPersonView||(u.viewFollow=!0),u.firstPersonView=!0)})),r[1].addEventListener("click",(function(e){u.firstPersonView&&(u.viewFollow=!0),u.firstPersonView=!1})),this.options.firstPersonView?(r[0].className="btn is-active",r[1].className="btn",this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null)):(r[0].className="btn",r[1].className="btn is-active"),(l=document.createElement("div")).className="custom-rubric-box",l.style.transformOrigin="center bottom",l.style.position="absolute",l.style.top="180px",l.style.right="3px",l.style.padding="5px 10px",l.style.backgroundColor="#3e4249",l.style.borderRadius="5px",l.style.fontSize="12px",l.style.color="#ff5733",l.style.display="none",l.innerHTML='场景正东方向为轨迹前进正方向
            ',(c=i.getElementsByClassName("icon-rubric")[0]).addEventListener("mouseenter",(function(e){l.style.display="block"})),document.addEventListener("mousemove",(function(e){c.contains(e.target)||(l.style.display="none")})),this._DialogObject._element.content.appendChild(l),setTimeout((function(){var e=bt(),t=Object(je.a)(u._DialogObject._element.content.getElementsByClassName("font-select-box")[0],".font-select");if(t){t.legp_search(e);var i=u._DialogObject._element.content.getElementsByClassName("font-select")[0].getElementsByTagName("input")[0];i.value=e[u.labelFontFamily].value;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Object(X.w)(0),Object(X.f)(this.sdk),this.options.customView&&this.options.customView.position&&this.options.customView.orientation?this.sdk.viewer.camera.flyTo({destination:this.options.customView.position,orientation:this.options.customView.orientation}):this.line&&this.sdk.viewer.flyTo(this.line,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}})}},{key:"remove",value:(l=_()(S.a.mark((function e(){var t,i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.scene.primitives.remove(this.model),this.sdk.viewer.entities.remove(this.line),this.sdk.viewer.entities.remove(this.realTimeLine),this.label&&this.label.remove(),t=0;t=107)){e.next=15;break}return e.next=9,Cesium.Model.fromGltfAsync(o);case 9:this.model=e.sent,this.model.position=n,this.sdk.viewer.scene.primitives.add(this.model),this.model.readyEvent.addEventListener((function(){s(),a.model.modelMatrix=i})),e.next=18;break;case 15:this.model=this.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),this.model.position=n,this.model.readyPromise.then((function(e){s(),a.model.modelMatrix=i}));case 18:this.model.imageBasedLighting.luminanceAtZenith=.6;case 19:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"controllerCallBack",get:function(){return function(e){}},set:function(e){this._controllerCallBack=e}},{key:"renewLinePositions",value:function(e){var t=nt()(e);this.noseToTail&&(t=[].concat(nt()(e),[e[0]])),this.reverse&&t.reverse();for(var i=[],n=[],o=[],s=0;s=107)){e.next=11;break}return e.next=5,Cesium.Model.fromGltfAsync(o);case 5:i.model=e.sent,i.model.originalBoundingSphereRadius=0,i.sdk.viewer.scene.primitives.add(i.model),i.model.readyEvent.addEventListener((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate})),e.next=14;break;case 11:i.model=i.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),i.model.originalBoundingSphereRadius=0,i.model.readyPromise.then((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate}));case 14:for(i.model.imageBasedLighting.luminanceAtZenith=.6,s=Cesium.Transforms.eastNorthUpToFixedFrame(i.positions_smooth[0]),i.model.modelMatrix=s,i.model.position=i.positions_smooth[0],i.model.customScale={x:i.options.model.scale,y:i.options.model.scale,z:i.options.model.scale},a=i.options.line.positions,r=[],l=0;l=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 Fc(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),Wc(i=Gc(this,t,[e,n]),Jc,!1),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.totalTime=n.totalTime,(n.totalTime||0===n.totalTime)&&(i.totalTime=n.totalTime),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=n.height||0===n.height?n.height:i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i._current={heading:0,pitch:0,roll:0},i.distance,i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.ControllerObject=new fi(i.sdk),i._EventBinding=new Ye,t.addLine(i),i.firstPersonView=!1,i.options.viewFollow=!1),i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TrajectoryMotionObject"}},{key:"show",get:function(){return this.options.show},set:function(e){if("boolean"==typeof e){if(this.options.show=e,e){this.line.show=this.lineShow;for(var t=0;tt/n.distance)){e.next=47;break}return e.abrupt("break",52);case 47:P=n.spline.evaluate(x/100),_.push(P);case 49:x++,e.next=44;break;case 52:_.push(k),n.realTimePositions=_;case 54:if(d=E(n.current.position,l),f&&f.position&&(m=E(f.position,l),d.pitch=m.pitch),f.position=n.current.position,O=Cesium.HeadingPitchRoll.fromDegrees(n.current.heading,n.current.pitch,n.current.roll),D=0,M=0,T=0,n.options.routeDirection?(D=(d.heading-O.heading)*(180/Math.PI)-90+n.current.heading,M=d.pitch*(180/Math.PI)):(D=n.current.heading,M=n.current.pitch),T=n.current.roll,!(isNaN(D)||isNaN(M)||isNaN(T))){e.next=65;break}return e.abrupt("return");case 65:(D<0||D>180)&&(M=-M),n.current={position:l,heading:D,pitch:M,roll:T},w&&(w=!1,n._first={position:l,heading:D,pitch:M,roll:T}),n.realTimeRouteArray.push(l),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:c,orientation:{heading:n.sdk.viewer.camera.heading,pitch:n.sdk.viewer.camera.pitch,roll:n.sdk.viewer.camera.roll}}):n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=l));case 71:case"end":return e.stop()}}),e,null,[[19,26]])})))).apply(this,arguments)},k=function(e){return x.apply(this,arguments)},i=O.length>1&&void 0!==O[1]?O[1]:{time:0},n=this,o=i.time||0,a=i.distance||0,r=this.sdk.viewer,this.removeModelAnimate(),l=[],c=0;cp&&(o=p),a=o/p*this.distance),f={},v=[],g=zc(this.sdk.entityMap);try{for(g.s();!(y=g.n()).done;)(b=s()(y.value,2))[0],(C=b[1]).type&&"glb"===C.type&&v.push(C.entity)}catch(e){g.e(e)}finally{g.f()}w=!0,this.TweenAnimate=new TWEEN.Tween({distance:a}).to({distance:this.distance},1e3*(p-o)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){o&&P.modelMove(t)})).onUpdate(function(){var e=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(P.sdk.viewer){e.next=6;break}return P.removeModelAnimate(),e.abrupt("return");case 6:k(t.distance);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onEveryStart((function(){P.realTimeRouteArray=[]})).onComplete((function(e){P.state=!1,P.removeModelAnimate()})),this.state?this.TweenAnimate.start():k(a);case 26:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(e){var t=this._renewLine(this.options.line.positions);this.modelMove(t,{distance:e})}},{key:"setMovePositionByTime",value:function(e){var t=this._renewLine(this.options.line.positions);this.modelMove(t,{time:e}),this.state||this.modelMove(t,{time:e+.01})}},{key:"pause",value:function(){this.state=!1}},{key:"resume",value:function(){this.state=!0}},{key:"flyTo",value:(n=_()(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),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){e.next=22;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},(r=Vc({},this.options.line.positions[0])).hasOwnProperty("alt")){e.next=15;break}return e.next=14,this.getClampToHeight(r);case 14:r.alt=e.sent;case 15: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=23;break;case 22:this.line&&this.sdk.viewer.flyTo(this.line,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 23:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.entities.remove(this.line),this.line=null,this.removeModelAnimate()}},{key:"reset",value:function(){this.modelMove(this.line.polyline.positions._value),this.state=!1,this.current=this._first}},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"_renewLine",value:function(e){this.options.line.positions=e;var t=e;this.noseToTail&&(t=[].concat(nt()(e),[e[0]]));for(var i=[],n=[],o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Xc(this,t,[e,n])).options.width=n.width||1,i.options.color=n.color||"#ff0000",i._elms={},i.tools=new b.a(e),i._EventBinding=new Ye,t.edit(i,!0),i}return Me()(t,e),h()(t,[{key:"color",get:function(){return this.options.color},set:function(e){var t=this;this.options.color&&(this.options.color=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:"width",get:function(){return this.options.width},set:function(e){this.options.width=e,this._elms.width&&this._elms.width.forEach((function(t){t.value=e}))}},{key:"start",value:function(){var e,i,n,o,s,a=this;if(YJ.Measure.GetMeasureStatus())this.tools.message({type:"warning",text:"上一次测量未结束"});else{this.sdk.viewer;Object(X.a)(this.sdk,!1),(e=t,i="start",n=this,o=3,s=On()(Oe()(1&o?e.prototype:e),i,n),2&o&&"function"==typeof s?function(e){return s.apply(n,e)}:s)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a("长按左键,拖动鼠标进行涂鸦,右键结束涂鸦",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var r=[],l=[];this.event.mouse_left_down((function(e,t){l=[];var i=a.sdk.viewer.entities.add({name:"涂鸦",polyline:{positions:new Cesium.CallbackProperty((function(){return l}),!1),width:a.width,clampToGround:!0,material:Cesium.Color.fromCssColorString(a.color),zIndex:99999999}});r.push(i),a.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y),l.push(t)}))})),this.event.mouse_left_up((function(e,t){r[r.length-1].polyline.positions=l,a.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y)}))})),this.event.mouse_move((function(e,t){a.tip.setPosition(t,e.endPosition.x,e.endPosition.y)})),this.event.mouse_right((function(e,t){a.end()})),this.event.gesture_pinck_start((function(e,t){var i=new Date;a.event.gesture_pinck_end((function(){new Date-i>=500&&a.end()}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event=void 0,this.tip&&this.tip.destroy(),this.tip=void 0,Object(X.a)(this.sdk,!0)}},{key:"remove",value:function(){this.end(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);for(var e=this.sdk.viewer.entities.values,t=e.length-1;t>=0;t--)"涂鸦"===e[t].name&&this.sdk.viewer.entities.remove(e[t])}},{key:"flicker",value:function(){}}],[{key:"edit",value:(i=_()(S.a.mark((function e(t,i){var n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i?(n=document.getElementsByClassName("graffiti")[0],o=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:t.color,disabled:!1,openPickerAni:"opacity",sure:function(e){t.color=e},clear:function(){t.color="rgba(255,255,255,1)"}}),s=n.getElementsByTagName("*"),t._EventBinding.on(t,s),t._elms=t._EventBinding.element,t._elms.color=[o]):t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null);case 1:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})}]);var i}(Dn.a),Kc=i(32),Qc=i.n(Kc);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 eu(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)?eu(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 eu(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=nu(this,t,[e,n])).options.name=n.name||"未命名对象",i.options.show=!n.show&&!1!==n.show||n.show,i.options.url=n.url,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.position=n.position,i.options.offset=n.offset||{x:.5,y:1},i.options.mode=i.options.mode?1:0,i.options.billboard=n.billboard||{},i.options.billboard.scale=i.options.billboard.scale||1,i.options.billboard.near=i.options.billboard.near||0===i.options.billboard.near?i.options.billboard.near:2e3,i.options.billboard.far=i.options.billboard.far||0===i.options.billboard.far?i.options.billboard.far:1e5,i.options.billboard.scaleByDistance=!!i.options.billboard.scaleByDistance,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.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.entity={id:i.options.id},i._positionEditing=!1,i.Dialog=o,i._elms={},i._proj=i.sdk.proj,i.previous={position:iu({},i.options.position)},i._EventBinding=new Ye,i.event=new te.a(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return Me()(t,e),h()(t,[{key:"name",get:function(){return this.options.name},set:function(e){var i,n,o,s,a,r;i=t,n="name",o=e,s=this,a=1,r=1,Qc()(Oe()(r?i.prototype:i),n,o,s,a),this.options.label.text=this.options.name,this.entity&&(this.entity.label.text=this.options.label.text)}},{key:"mode",get:function(){return this.options.mode},set:function(e){var t=this;this.options.mode=e?1:0;for(var i=[{name:"贴地",value:"贴地",key:0},{name:"立体",value:"立体",key:1}],n=function(e){if(i[e].key===t.options.mode)return t._elms.mode&&t._elms.mode.forEach((function(t){t.value=i[e].value})),1},o=0;o99&&(t=99),t<.1&&(t=.1),this.options.billboard.scale=t,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(t){t.value=e}))}},{key:"billboardScaleByDistance",get:function(){return this.options.billboard.scaleByDistance},set:function(e){this.options.billboard.scaleByDistance=e,this.renewPoint(),this._elms.billboardScaleByDistance&&this._elms.billboardScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"billboardNear",get:function(){return this.options.billboard.near},set:function(e){var t=e;t>this.billboardFar&&(t=this.billboardFar),this.options.billboard.near=t,this.renewPoint(),this._elms.billboardNear&&this._elms.billboardNear.forEach((function(e){e.value=t}))}},{key:"billboardFar",get:function(){return this.options.billboard.far},set:function(e){var t=e;t1&&(s.x=1),s.y<0&&(s.y=0),s.y>1&&(s.y=1),c={x:s.x,y:s.y},l.style.top="calc(".concat(100*c.y,"% - 5px)"),l.style.left="calc(".concat(100*c.x,"% - 5px)")}else t(i.offsetParent)}(e.target)},o=function(){a&&a._element.body.removeEventListener("mousemove",n)},e.next=8,new Be(this.sdk,this.originalOptions,{title:"军标属性",left:"180px",top:"100px",confirmCallBack:function(e){b.name=b.name.trim(),b.name||(b.name="未命名对象"),b.originalOptions=b.deepCopyObj(b.options),b._DialogObject.close(),b.Dialog.confirmCallBack&&b.Dialog.confirmCallBack(b.originalOptions)},resetCallBack:function(){b.reset(),b.Dialog.resetCallBack&&b.Dialog.resetCallBack()},removeCallBack:function(){b.Dialog.removeCallBack&&b.Dialog.removeCallBack()},closeCallBack:function(){b.previous=null,b.reset(),a&&a.close&&a.close(),b.Dialog.closeCallBack&&b.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),b.positionEditing=!1},showCallBack:function(e){b.show=e,b.Dialog.showCallBack&&b.Dialog.showCallBack()},translationalCallBack:function(){b.positionEditing=!b.positionEditing},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"Y轴翻转",event:["click",function(){b.flipeY=!b.flipeY}]},{tagName:"button",className:"flipe-over-x",innerHTML:"X轴翻转",event:["click",function(){b.flipeX=!b.flipeX}]}]},!0);case 8:for(this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-image",(u=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 \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 m\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 px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(u),h=u.getElementsByTagName("*"),this._EventBinding.on(this,h),this._elms=this._EventBinding.element,u.getElementsByClassName("anchor")[0].addEventListener("click",_()(S.a.mark((function e(){var t,s,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a&&a.close&&a.close(),document.body.addEventListener("mouseup",o),t=i._DialogObject._element.body.getBoundingClientRect(),e.next=5,new Be(b.sdk,b.originalOptions,{title:"锚点设置",left:t.left+80+"px",top:t.top+200+"px",confirmCallBack:function(e){i.offset={x:c.x,y:c.y},s.close()},closeCallBack:function(){document.body.removeEventListener("mouseup",o)}},!1);case 5:s=e.sent,a=s,s._element.body.className=s._element.body.className+" anchor-point",u=document.createElement("div"),(h=new Image).src=b.replaceHost(b.options.url,b.options.host),h.onload=function(){var e=150/(h.width/h.height),t=(r=document.createElement("canvas")).getContext("2d",{willReadFrequently:!0});r.width=150,r.height=e,r.style.display="block",t.drawImage(h,0,0,150,e),u.appendChild(r),s.contentAppChild(u),(l=document.createElement("span")).className="point",u.appendChild(l),c={x:i.offset.x,y:i.offset.y},l.style.top="calc(".concat(100*Number(c.y),"% - 6px)"),l.style.left="calc(".concat(100*Number(c.x),"% - 6px)"),r.addEventListener("click",(function(e){var t=e.offsetX,i=e.offsetY,n={x:Number((t/r.width).toFixed(2)),y:Number((i/r.height).toFixed(2))};n.x<0&&(n.x=0),n.x>1&&(n.x=1),n.y<0&&(n.y=0),n.y>1&&(n.y=1),c={x:n.x,y:n.y},l.style.top="calc(".concat(100*c.y,"% - 5px)"),l.style.left="calc(".concat(100*c.x,"% - 5px)")})),l.addEventListener("mousedown",(function(e){s._element.body.addEventListener("mousemove",n)}))};case 12:case"end":return e.stop()}}),e)})))),p=u.getElementsByClassName("row"),d=u.getElementsByTagName("h4"),m=0;m=500)t.options.position.lng=t.previous.position.lng,t.options.position.lat=t.previous.position.lat,t.options.position.alt=t.previous.position.alt,t.positionEditing=!1;else{var e=t.cartesian3Towgs84(i,t.sdk.viewer);t.options.position.lng=e.lng,t.options.position.lat=e.lat,t.options.position.alt=e.alt,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}}))}))):(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.previous||(this.previous={position:iu({},this.options.position)}),this.position=iu({},this.previous.position)))}},{key:"flyTo",value:(o=_()(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,k,_,x,E,P=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=P.length>0&&void 0!==P[0]?P[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=iu({},this.options.position):this.options.position?r=iu({},this.options.position[0]):this.options.center?r=iu({},this.options.center):this.options.start?r=iu({},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=59;break;case 23:l=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),c=[[this.options.position.lng-1e-4*this.options.scale,this.options.position.lat-l],[this.options.position.lng+1e-4*this.options.scale,this.options.position.lat+l]],u=[],h=0,p=this.options.position,d=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,0),m=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 36:if(!(C=0)){e.next=22;break}if(!v[g].position){e.next=19;break}return f=v[g],e.abrupt("break",22);case 19:g--,e.next=15;break;case 22:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),e.prev=23,e.next=26,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 26:y=e.sent,e.next=31;break;case 29:e.prev=29,e.t0=e.catch(23);case 31:if((void 0===i||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 X 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n Y 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \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 最近距离\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 ")}var au=i(40),ru=i.n(au),lu=i(25),cu=i.n(lu);function uu(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}function hu(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}()} /** * @license * Copyright 2010-2024 Three.js Authors * SPDX-License-Identifier: MIT - */()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var pu=1014,du=1020,mu=2400,fu=2401,vu="srgb",gu="srgb-linear",yu="display-p3",bu="display-p3-linear",Cu="linear",wu="srgb",ku="rec709",_u=7680,xu=35044,Su=2e3,Eu=2001,Pu=function(){return h()((function e(){c()(this,e)}),[{key:"addEventListener",value:function(e,t){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[e]&&(i[e]=[]),-1===i[e].indexOf(t)&&i[e].push(t)}},{key:"hasEventListener",value:function(e,t){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[e]&&-1!==i[e].indexOf(t)}},{key:"removeEventListener",value:function(e,t){if(void 0!==this._listeners){var i=this._listeners[e];if(void 0!==i){var n=i.indexOf(t);-1!==n&&i.splice(n,1)}}}},{key:"dispatchEvent",value:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var i=t.slice(0),n=0,o=i.length;n>8&255]+Ou[e>>16&255]+Ou[e>>24&255]+"-"+Ou[255&t]+Ou[t>>8&255]+"-"+Ou[t>>16&15|64]+Ou[t>>24&255]+"-"+Ou[63&i|128]+Ou[i>>8&255]+"-"+Ou[i>>16&255]+Ou[i>>24&255]+Ou[255&n]+Ou[n>>8&255]+Ou[n>>16&255]+Ou[n>>24&255]).toLowerCase()}function Tu(e,t,i){return Math.max(t,Math.min(i,e))}function Nu(e,t){return(e%t+t)%t}function Bu(e,t,i){return(1-i)*e+i*t}function ju(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Au(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}var Lu=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,e),e.prototype.isVector2=!0,this.x=t,this.y=i}),[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,i=this.y,n=e.elements;return this.x=n[0]*t+n[3]*i+n[6],this.y=n[1]*t+n[4]*i+n[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){return Math.atan2(-this.y,-this.x)+Math.PI}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var i=this.dot(e)/t;return Math.acos(Tu(i,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var i=Math.cos(t),n=Math.sin(t),o=this.x-e.x,s=this.y-e.y;return this.x=o*i-s*n+e.x,this.y=o*n+s*i+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))}])}(),Iu=function(){return h()((function e(t,i,n,o,s,a,r,l,u){c()(this,e),e.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,i,n,o,s,a,r,l,u)}),[{key:"set",value:function(e,t,i,n,o,s,a,r,l){var c=this.elements;return c[0]=e,c[1]=n,c[2]=a,c[3]=t,c[4]=o,c[5]=r,c[6]=i,c[7]=s,c[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(e){var t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}},{key:"extractBasis",value:function(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var i=e.elements,n=t.elements,o=this.elements,s=i[0],a=i[3],r=i[6],l=i[1],c=i[4],u=i[7],h=i[2],p=i[5],d=i[8],m=n[0],f=n[3],v=n[6],g=n[1],y=n[4],b=n[7],C=n[2],w=n[5],k=n[8];return o[0]=s*m+a*g+r*C,o[3]=s*f+a*y+r*w,o[6]=s*v+a*b+r*k,o[1]=l*m+c*g+u*C,o[4]=l*f+c*y+u*w,o[7]=l*v+c*b+u*k,o[2]=h*m+p*g+d*C,o[5]=h*f+p*y+d*w,o[8]=h*v+p*b+d*k,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8];return t*s*c-t*a*l-i*o*c+i*a*r+n*o*l-n*s*r}},{key:"invert",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8],u=c*s-a*l,h=a*r-c*o,p=l*o-s*r,d=t*u+i*h+n*p;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);var m=1/d;return e[0]=u*m,e[1]=(n*l-c*i)*m,e[2]=(a*i-n*s)*m,e[3]=h*m,e[4]=(c*t-n*r)*m,e[5]=(n*o-a*t)*m,e[6]=p*m,e[7]=(i*r-l*t)*m,e[8]=(s*t-i*o)*m,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,i,n,o,s,a){var r=Math.cos(o),l=Math.sin(o);return this.set(i*r,i*l,-i*(r*s+l*a)+s+e,-n*l,n*r,-n*(-l*s+r*a)+a+t,0,0,1),this}},{key:"scale",value:function(e,t){return this.premultiply(Ru.makeScale(e,t)),this}},{key:"rotate",value:function(e){return this.premultiply(Ru.makeRotation(-e)),this}},{key:"translate",value:function(e,t){return this.premultiply(Ru.makeTranslation(e,t)),this}},{key:"makeTranslation",value:function(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}},{key:"makeRotation",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}},{key:"makeScale",value:function(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}},{key:"equals",value:function(e){for(var t=this.elements,i=e.elements,n=0;n<9;n++)if(t[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<9;i++)this.elements[i]=e[i+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}])}(),Ru=new Iu;function zu(e){for(var t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Fu(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}var Hu={};function Vu(e){e in Hu||(Hu[e]=!0,console.warn(e))}var Gu,Wu=(new Iu).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Uu=(new Iu).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Yu=r()(r()(r()(r()({},gu,{transfer:Cu,primaries:ku,toReference:function(e){return e},fromReference:function(e){return e}}),vu,{transfer:wu,primaries:ku,toReference:function(e){return e.convertSRGBToLinear()},fromReference:function(e){return e.convertLinearToSRGB()}}),bu,{transfer:Cu,primaries:"p3",toReference:function(e){return e.applyMatrix3(Uu)},fromReference:function(e){return e.applyMatrix3(Wu)}}),yu,{transfer:wu,primaries:"p3",toReference:function(e){return e.convertSRGBToLinear().applyMatrix3(Uu)},fromReference:function(e){return e.applyMatrix3(Wu).convertLinearToSRGB()}}),Ju=new Set([gu,bu]),qu={enabled:!0,_workingColorSpace:gu,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Ju.has(e))throw new Error('Unsupported working color space, "'.concat(e,'".'));this._workingColorSpace=e},convert:function(e,t,i){if(!1===this.enabled||t===i||!t||!i)return e;var n=Yu[t].toReference;return(0,Yu[i].fromReference)(n(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return Yu[e].primaries},getTransfer:function(e){return""===e?Cu:Yu[e].transfer}};function Xu(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Zu(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Ku=function(){return h()((function e(){c()(this,e)}),null,[{key:"getDataURL",value:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Gu&&(Gu=Fu("canvas")),Gu.width=e.width,Gu.height=e.height;var i=Gu.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Gu}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}},{key:"sRGBToLinear",value:function(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var t=Fu("canvas");t.width=e.width,t.height=e.height;var i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);for(var n=i.getImageData(0,0,e.width,e.height),o=n.data,s=0;s0&&void 0!==arguments[0]?arguments[0]:null;c()(this,e),this.isSource=!0,Object.defineProperty(this,"id",{value:Qu++}),this.uuid=Mu(),this.data=t,this.dataReady=!0,this.version=0}),[{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];var i={uuid:this.uuid,url:""},n=this.data;if(null!==n){var o;if(Array.isArray(n)){o=[];for(var s=0,a=n.length;s0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_IMAGE,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_MAPPING,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1001,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1001,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1006,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1008,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1023,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1009,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:t.DEFAULT_ANISOTROPY,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";return c()(this,t),(e=hu(this,t)).isTexture=!0,Object.defineProperty(cu()(e),"id",{value:th++}),e.uuid=Mu(),e.name="",e.source=new $u(i),e.mipmaps=[],e.mapping=n,e.channel=0,e.wrapS=o,e.wrapT=s,e.magFilter=a,e.minFilter=r,e.anisotropy=h,e.format=l,e.internalFormat=null,e.type=u,e.offset=new Lu(0,0),e.repeat=new Lu(1,1),e.center=new Lu(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new Iu,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.colorSpace=p,e.userData={},e.version=0,e.onUpdate=null,e.isRenderTargetTexture=!1,e.pmremVersion=0,e}return Me()(t,e),h()(t,[{key:"image",get:function(){return this.source.data},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.source.data=e}},{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case 1e3:e.x=e.x-Math.floor(e.x);break;case 1001:e.x=e.x<0?0:1;break;case 1002:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case 1e3:e.y=e.y-Math.floor(e.y);break;case 1001:e.y=e.y<0?0:1;break;case 1002:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}},{key:"needsPMREMUpdate",set:function(e){!0===e&&this.pmremVersion++}}])}(Pu);ih.DEFAULT_IMAGE=null,ih.DEFAULT_MAPPING=300,ih.DEFAULT_ANISOTROPY=1;var nh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,e),e.prototype.isVector4=!0,this.x=t,this.y=i,this.z=n,this.w=o}),[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,i,n){return this.x=e,this.y=t,this.z=i,this.w=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,i=this.y,n=this.z,o=this.w,s=e.elements;return this.x=s[0]*t+s[4]*i+s[8]*n+s[12]*o,this.y=s[1]*t+s[5]*i+s[9]*n+s[13]*o,this.z=s[2]*t+s[6]*i+s[10]*n+s[14]*o,this.w=s[3]*t+s[7]*i+s[11]*n+s[15]*o,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,i,n,o,s=.01,a=.1,r=e.elements,l=r[0],c=r[4],u=r[8],h=r[1],p=r[5],d=r[9],m=r[2],f=r[6],v=r[10];if(Math.abs(c-h)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:return e.next=8,this.w;case 8:case"end":return e.stop()}}),e,this)}))}])}(),oh=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return c()(this,t),(e=hu(this,t,[null])).isDataArrayTexture=!0,e.image={data:i,width:n,height:o,depth:s},e.magFilter=1003,e.minFilter=1003,e.wrapR=1001,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Me()(t,e),h()(t)}(ih),sh=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return c()(this,t),(e=hu(this,t,[null])).isData3DTexture=!0,e.image={data:i,width:n,height:o,depth:s},e.magFilter=1003,e.minFilter=1003,e.wrapR=1001,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Me()(t,e),h()(t)}(ih),ah=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,e),this.isQuaternion=!0,this._x=t,this._y=i,this._z=n,this._w=o}),[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}},{key:"set",value:function(e,t,i,n){return this._x=e,this._y=t,this._z=i,this._w=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e._x,n=e._y,o=e._z,s=e._order,a=Math.cos,r=Math.sin,l=a(i/2),c=a(n/2),u=a(o/2),h=r(i/2),p=r(n/2),d=r(o/2);switch(s){case"XYZ":this._x=h*c*u+l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u-h*p*d;break;case"YXZ":this._x=h*c*u+l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u+h*p*d;break;case"ZXY":this._x=h*c*u-l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u-h*p*d;break;case"ZYX":this._x=h*c*u-l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u+h*p*d;break;case"YZX":this._x=h*c*u+l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u-h*p*d;break;case"XZY":this._x=h*c*u-l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u+h*p*d;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!0===t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var i=t/2,n=Math.sin(i);return this._x=e.x*n,this._y=e.y*n,this._z=e.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,i=t[0],n=t[4],o=t[8],s=t[1],a=t[5],r=t[9],l=t[2],c=t[6],u=t[10],h=i+a+u;if(h>0){var p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(c-r)*p,this._y=(o-l)*p,this._z=(s-n)*p}else if(i>a&&i>u){var d=2*Math.sqrt(1+i-a-u);this._w=(c-r)/d,this._x=.25*d,this._y=(n+s)/d,this._z=(o+l)/d}else if(a>u){var m=2*Math.sqrt(1+a-i-u);this._w=(o-l)/m,this._x=(n+s)/m,this._y=.25*m,this._z=(r+c)/m}else{var f=2*Math.sqrt(1+u-i-a);this._w=(s-n)/f,this._x=(o+l)/f,this._y=(r+c)/f,this._z=.25*f}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Tu(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var i=this.angleTo(e);if(0===i)return this;var n=Math.min(1,t/i);return this.slerp(e,n),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e){return this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var i=e._x,n=e._y,o=e._z,s=e._w,a=t._x,r=t._y,l=t._z,c=t._w;return this._x=i*c+s*a+n*l-o*r,this._y=n*c+s*r+o*a-i*l,this._z=o*c+s*l+i*r-n*a,this._w=s*c-i*a-n*r-o*l,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var i=this._x,n=this._y,o=this._z,s=this._w,a=s*e._w+i*e._x+n*e._y+o*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=s,this._x=i,this._y=n,this._z=o,this;var r=1-a*a;if(r<=Number.EPSILON){var l=1-t;return this._w=l*s+t*this._w,this._x=l*i+t*this._x,this._y=l*n+t*this._y,this._z=l*o+t*this._z,this.normalize(),this}var c=Math.sqrt(r),u=Math.atan2(c,a),h=Math.sin((1-t)*u)/c,p=Math.sin(t*u)/c;return this._w=s*h+this._w*p,this._x=i*h+this._x*p,this._y=n*h+this._y*p,this._z=o*h+this._z*p,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(e,t,i){return this.copy(e).slerp(t,i)}},{key:"random",value:function(){var e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),o=Math.sqrt(i);return this.set(n*Math.sin(e),n*Math.cos(e),o*Math.sin(t),o*Math.cos(t))}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}},{key:"toJSON",value:function(){return this.toArray()}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._x;case 2:return e.next=4,this._y;case 4:return e.next=6,this._z;case 6:return e.next=8,this._w;case 8:case"end":return e.stop()}}),e,this)}))}],[{key:"slerpFlat",value:function(e,t,i,n,o,s,a){var r=i[n+0],l=i[n+1],c=i[n+2],u=i[n+3],h=o[s+0],p=o[s+1],d=o[s+2],m=o[s+3];if(0===a)return e[t+0]=r,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===a)return e[t+0]=h,e[t+1]=p,e[t+2]=d,void(e[t+3]=m);if(u!==m||r!==h||l!==p||c!==d){var f=1-a,v=r*h+l*p+c*d+u*m,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),C=Math.atan2(b,v*g);f=Math.sin(f*C)/b,a=Math.sin(a*C)/b}var w=a*g;if(r=r*f+h*w,l=l*f+p*w,c=c*f+d*w,u=u*f+m*w,f===1-a){var k=1/Math.sqrt(r*r+l*l+c*c+u*u);r*=k,l*=k,c*=k,u*=k}}e[t]=r,e[t+1]=l,e[t+2]=c,e[t+3]=u}},{key:"multiplyQuaternionsFlat",value:function(e,t,i,n,o,s){var a=i[n],r=i[n+1],l=i[n+2],c=i[n+3],u=o[s],h=o[s+1],p=o[s+2],d=o[s+3];return e[t]=a*d+c*u+r*p-l*h,e[t+1]=r*d+c*h+l*u-a*p,e[t+2]=l*d+c*p+a*h-r*u,e[t+3]=c*d-a*u-r*h-l*p,e}}])}(),rh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;c()(this,e),e.prototype.isVector3=!0,this.x=t,this.y=i,this.z=n}),[{key:"set",value:function(e,t,i){return void 0===i&&(i=this.z),this.x=e,this.y=t,this.z=i,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return this.applyQuaternion(ch.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(ch.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements;return this.x=o[0]*t+o[3]*i+o[6]*n,this.y=o[1]*t+o[4]*i+o[7]*n,this.z=o[2]*t+o[5]*i+o[8]*n,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements,s=1/(o[3]*t+o[7]*i+o[11]*n+o[15]);return this.x=(o[0]*t+o[4]*i+o[8]*n+o[12])*s,this.y=(o[1]*t+o[5]*i+o[9]*n+o[13])*s,this.z=(o[2]*t+o[6]*i+o[10]*n+o[14])*s,this}},{key:"applyQuaternion",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.x,s=e.y,a=e.z,r=e.w,l=2*(s*n-a*i),c=2*(a*t-o*n),u=2*(o*i-s*t);return this.x=t+r*l+s*u-a*c,this.y=i+r*c+a*l-o*u,this.z=n+r*u+o*c-s*l,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*n,this.y=o[1]*t+o[5]*i+o[9]*n,this.z=o[2]*t+o[6]*i+o[10]*n,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}},{key:"cross",value:function(e){return this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var i=e.x,n=e.y,o=e.z,s=t.x,a=t.y,r=t.z;return this.x=n*r-o*a,this.y=o*s-i*r,this.z=i*a-n*s,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}},{key:"projectOnPlane",value:function(e){return lh.copy(this).projectOnVector(e),this.sub(lh)}},{key:"reflect",value:function(e){return this.sub(lh.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var i=this.dot(e)/t;return Math.acos(Tu(i,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,i=this.y-e.y,n=this.z-e.z;return t*t+i*i+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,i){var n=Math.sin(t)*e;return this.x=n*Math.sin(i),this.y=Math.cos(t)*e,this.z=n*Math.cos(i),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),n=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=n,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"setFromEuler",value:function(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}},{key:"setFromColor",value:function(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var e=Math.random()*Math.PI*2,t=2*Math.random()-1,i=Math.sqrt(1-t*t);return this.x=i*Math.cos(e),this.y=t,this.z=i*Math.sin(e),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:case"end":return e.stop()}}),e,this)}))}])}(),lh=new rh,ch=new ah,uh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh(-1/0,-1/0,-1/0);c()(this,e),this.isBox3=!0,this.min=t,this.max=i}),[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){this.makeEmpty();for(var t=0,i=e.length;t1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x1&&void 0!==arguments[1]&&arguments[1];e.updateWorldMatrix(!1,!1);var i=e.geometry;if(void 0!==i){var n=i.getAttribute("position");if(!0===t&&void 0!==n&&!0!==e.isInstancedMesh)for(var o=0,s=n.count;othis.max.x||e.ythis.max.y||e.zthis.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,ph),ph.distanceToSquared(e.center)<=e.radius*e.radius}},{key:"intersectsPlane",value:function(e){var t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(Ch),wh.subVectors(this.max,Ch),mh.subVectors(e.a,Ch),fh.subVectors(e.b,Ch),vh.subVectors(e.c,Ch),gh.subVectors(fh,mh),yh.subVectors(vh,fh),bh.subVectors(mh,vh);var t=[0,-gh.z,gh.y,0,-yh.z,yh.y,0,-bh.z,bh.y,gh.z,0,-gh.x,yh.z,0,-yh.x,bh.z,0,-bh.x,-gh.y,gh.x,0,-yh.y,yh.x,0,-bh.y,bh.x,0];return!!xh(t,mh,fh,vh,wh)&&(!!xh(t=[1,0,0,0,1,0,0,0,1],mh,fh,vh,wh)&&(kh.crossVectors(gh,yh),xh(t=[kh.x,kh.y,kh.z],mh,fh,vh,wh)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return this.clampPoint(e,ph).distanceTo(e)}},{key:"getBoundingSphere",value:function(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(ph).length()),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()||(hh[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),hh[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),hh[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),hh[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),hh[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),hh[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),hh[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),hh[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(hh)),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}])}(),hh=[new rh,new rh,new rh,new rh,new rh,new rh,new rh,new rh],ph=new rh,dh=new uh,mh=new rh,fh=new rh,vh=new rh,gh=new rh,yh=new rh,bh=new rh,Ch=new rh,wh=new rh,kh=new rh,_h=new rh;function xh(e,t,i,n,o){for(var s=0,a=e.length-3;s<=a;s+=3){_h.fromArray(e,s);var r=o.x*Math.abs(_h.x)+o.y*Math.abs(_h.y)+o.z*Math.abs(_h.z),l=t.dot(_h),c=i.dot(_h),u=n.dot(_h);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var Sh=new uh,Eh=new rh,Ph=new rh,Oh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;c()(this,e),this.isSphere=!0,this.center=t,this.radius=i}),[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var i=this.center;void 0!==t?i.copy(t):Sh.setFromPoints(e).getCenter(i);for(var n=0,o=0,s=e.length;othis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"expandByPoint",value:function(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Eh.subVectors(e,this.center);var t=Eh.lengthSq();if(t>this.radius*this.radius){var i=Math.sqrt(t),n=.5*(i-this.radius);this.center.addScaledVector(Eh,n/i),this.radius+=n}return this}},{key:"union",value:function(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Ph.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Eh.copy(e.center).add(Ph)),this.expandByPoint(Eh.copy(e.center).sub(Ph))),this)}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Dh=new rh,Mh=new rh,Th=new rh,Nh=new rh,Bh=new rh,jh=new rh,Ah=new rh,Lh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh(0,0,-1);c()(this,e),this.origin=t,this.direction=i}),[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,Dh)),this}},{key:"closestPointToPoint",value:function(e,t){t.subVectors(e,this.origin);var i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=Dh.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Dh.copy(this.origin).addScaledVector(this.direction,t),Dh.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,i,n){Mh.copy(e).add(t).multiplyScalar(.5),Th.copy(t).sub(e).normalize(),Nh.copy(this.origin).sub(Mh);var o,s,a,r,l=.5*e.distanceTo(t),c=-this.direction.dot(Th),u=Nh.dot(this.direction),h=-Nh.dot(Th),p=Nh.lengthSq(),d=Math.abs(1-c*c);if(d>0)if(s=c*u-h,r=l*d,(o=c*h-u)>=0)if(s>=-r)if(s<=r){var m=1/d;a=(o*=m)*(o+c*(s*=m)+2*u)+s*(c*o+s+2*h)+p}else s=l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;else s=-l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;else s<=-r?a=-(o=Math.max(0,-(-c*l+u)))*o+(s=o>0?-l:Math.min(Math.max(-l,-h),l))*(s+2*h)+p:s<=r?(o=0,a=(s=Math.min(Math.max(-l,-h),l))*(s+2*h)+p):a=-(o=Math.max(0,-(c*l+u)))*o+(s=o>0?l:Math.min(Math.max(-l,-h),l))*(s+2*h)+p;else s=c>0?-l:l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;return i&&i.copy(this.origin).addScaledVector(this.direction,o),n&&n.copy(Mh).addScaledVector(Th,s),a}},{key:"intersectSphere",value:function(e,t){Dh.subVectors(e.center,this.origin);var i=Dh.dot(this.direction),n=Dh.dot(Dh)-i*i,o=e.radius*e.radius;if(n>o)return null;var s=Math.sqrt(o-n),a=i-s,r=i+s;return r<0?null:a<0?this.at(r,t):this.at(a,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}},{key:"intersectPlane",value:function(e,t){var i=this.distanceToPlane(e);return null===i?null:this.at(i,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}},{key:"intersectBox",value:function(e,t){var i,n,o,s,a,r,l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(i=(e.min.x-h.x)*l,n=(e.max.x-h.x)*l):(i=(e.max.x-h.x)*l,n=(e.min.x-h.x)*l),c>=0?(o=(e.min.y-h.y)*c,s=(e.max.y-h.y)*c):(o=(e.max.y-h.y)*c,s=(e.min.y-h.y)*c),i>s||o>n?null:((o>i||isNaN(i))&&(i=o),(s=0?(a=(e.min.z-h.z)*u,r=(e.max.z-h.z)*u):(a=(e.max.z-h.z)*u,r=(e.min.z-h.z)*u),i>r||a>n?null:((a>i||i!=i)&&(i=a),(r=0?i:n,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,Dh)}},{key:"intersectTriangle",value:function(e,t,i,n,o){Bh.subVectors(t,e),jh.subVectors(i,e),Ah.crossVectors(Bh,jh);var s,a=this.direction.dot(Ah);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Nh.subVectors(this.origin,e);var r=s*this.direction.dot(jh.crossVectors(Nh,jh));if(r<0)return null;var l=s*this.direction.dot(Bh.cross(Nh));if(l<0)return null;if(r+l>a)return null;var c=-s*Nh.dot(Ah);return c<0?null:this.at(c/a,o)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Ih=function(){function e(t,i,n,o,s,a,r,l,u,h,p,d,m,f,v,g){c()(this,e),e.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,i,n,o,s,a,r,l,u,h,p,d,m,f,v,g)}return h()(e,[{key:"set",value:function(e,t,i,n,o,s,a,r,l,c,u,h,p,d,m,f){var v=this.elements;return v[0]=e,v[4]=t,v[8]=i,v[12]=n,v[1]=o,v[5]=s,v[9]=a,v[13]=r,v[2]=l,v[6]=c,v[10]=u,v[14]=h,v[3]=p,v[7]=d,v[11]=m,v[15]=f,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}},{key:"setFromMatrix3",value:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,i=e.elements,n=1/Rh.setFromMatrixColumn(e,0).length(),o=1/Rh.setFromMatrixColumn(e,1).length(),s=1/Rh.setFromMatrixColumn(e,2).length();return t[0]=i[0]*n,t[1]=i[1]*n,t[2]=i[2]*n,t[3]=0,t[4]=i[4]*o,t[5]=i[5]*o,t[6]=i[6]*o,t[7]=0,t[8]=i[8]*s,t[9]=i[9]*s,t[10]=i[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){var t=this.elements,i=e.x,n=e.y,o=e.z,s=Math.cos(i),a=Math.sin(i),r=Math.cos(n),l=Math.sin(n),c=Math.cos(o),u=Math.sin(o);if("XYZ"===e.order){var h=s*c,p=s*u,d=a*c,m=a*u;t[0]=r*c,t[4]=-r*u,t[8]=l,t[1]=p+d*l,t[5]=h-m*l,t[9]=-a*r,t[2]=m-h*l,t[6]=d+p*l,t[10]=s*r}else if("YXZ"===e.order){var f=r*c,v=r*u,g=l*c,y=l*u;t[0]=f+y*a,t[4]=g*a-v,t[8]=s*l,t[1]=s*u,t[5]=s*c,t[9]=-a,t[2]=v*a-g,t[6]=y+f*a,t[10]=s*r}else if("ZXY"===e.order){var b=r*c,C=r*u,w=l*c,k=l*u;t[0]=b-k*a,t[4]=-s*u,t[8]=w+C*a,t[1]=C+w*a,t[5]=s*c,t[9]=k-b*a,t[2]=-s*l,t[6]=a,t[10]=s*r}else if("ZYX"===e.order){var _=s*c,x=s*u,S=a*c,E=a*u;t[0]=r*c,t[4]=S*l-x,t[8]=_*l+E,t[1]=r*u,t[5]=E*l+_,t[9]=x*l-S,t[2]=-l,t[6]=a*r,t[10]=s*r}else if("YZX"===e.order){var P=s*r,O=s*l,D=a*r,M=a*l;t[0]=r*c,t[4]=M-P*u,t[8]=D*u+O,t[1]=u,t[5]=s*c,t[9]=-a*c,t[2]=-l*c,t[6]=O*u+D,t[10]=P-M*u}else if("XZY"===e.order){var T=s*r,N=s*l,B=a*r,j=a*l;t[0]=r*c,t[4]=-u,t[8]=l*c,t[1]=T*u+j,t[5]=s*c,t[9]=N*u-B,t[2]=B*u-N,t[6]=a*c,t[10]=j*u+T}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(Fh,e,Hh)}},{key:"lookAt",value:function(e,t,i){var n=this.elements;return Wh.subVectors(e,t),0===Wh.lengthSq()&&(Wh.z=1),Wh.normalize(),Vh.crossVectors(i,Wh),0===Vh.lengthSq()&&(1===Math.abs(i.z)?Wh.x+=1e-4:Wh.z+=1e-4,Wh.normalize(),Vh.crossVectors(i,Wh)),Vh.normalize(),Gh.crossVectors(Wh,Vh),n[0]=Vh.x,n[4]=Gh.x,n[8]=Wh.x,n[1]=Vh.y,n[5]=Gh.y,n[9]=Wh.y,n[2]=Vh.z,n[6]=Gh.z,n[10]=Wh.z,this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var i=e.elements,n=t.elements,o=this.elements,s=i[0],a=i[4],r=i[8],l=i[12],c=i[1],u=i[5],h=i[9],p=i[13],d=i[2],m=i[6],f=i[10],v=i[14],g=i[3],y=i[7],b=i[11],C=i[15],w=n[0],k=n[4],_=n[8],x=n[12],S=n[1],E=n[5],P=n[9],O=n[13],D=n[2],M=n[6],T=n[10],N=n[14],B=n[3],j=n[7],A=n[11],L=n[15];return o[0]=s*w+a*S+r*D+l*B,o[4]=s*k+a*E+r*M+l*j,o[8]=s*_+a*P+r*T+l*A,o[12]=s*x+a*O+r*N+l*L,o[1]=c*w+u*S+h*D+p*B,o[5]=c*k+u*E+h*M+p*j,o[9]=c*_+u*P+h*T+p*A,o[13]=c*x+u*O+h*N+p*L,o[2]=d*w+m*S+f*D+v*B,o[6]=d*k+m*E+f*M+v*j,o[10]=d*_+m*P+f*T+v*A,o[14]=d*x+m*O+f*N+v*L,o[3]=g*w+y*S+b*D+C*B,o[7]=g*k+y*E+b*M+C*j,o[11]=g*_+y*P+b*T+C*A,o[15]=g*x+y*O+b*N+C*L,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],i=e[4],n=e[8],o=e[12],s=e[1],a=e[5],r=e[9],l=e[13],c=e[2],u=e[6],h=e[10],p=e[14];return e[3]*(+o*r*u-n*l*u-o*a*h+i*l*h+n*a*p-i*r*p)+e[7]*(+t*r*p-t*l*h+o*s*h-n*s*p+n*l*c-o*r*c)+e[11]*(+t*l*u-t*a*p-o*s*u+i*s*p+o*a*c-i*l*c)+e[15]*(-n*a*c-t*r*u+t*a*h+n*s*u-i*s*h+i*r*c)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,i){var n=this.elements;return e.isVector3?(n[12]=e.x,n[13]=e.y,n[14]=e.z):(n[12]=e,n[13]=t,n[14]=i),this}},{key:"invert",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8],u=e[9],h=e[10],p=e[11],d=e[12],m=e[13],f=e[14],v=e[15],g=u*f*l-m*h*l+m*r*p-a*f*p-u*r*v+a*h*v,y=d*h*l-c*f*l-d*r*p+s*f*p+c*r*v-s*h*v,b=c*m*l-d*u*l+d*a*p-s*m*p-c*a*v+s*u*v,C=d*u*r-c*m*r-d*a*h+s*m*h+c*a*f-s*u*f,w=t*g+i*y+n*b+o*C;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var k=1/w;return e[0]=g*k,e[1]=(m*h*o-u*f*o-m*n*p+i*f*p+u*n*v-i*h*v)*k,e[2]=(a*f*o-m*r*o+m*n*l-i*f*l-a*n*v+i*r*v)*k,e[3]=(u*r*o-a*h*o-u*n*l+i*h*l+a*n*p-i*r*p)*k,e[4]=y*k,e[5]=(c*f*o-d*h*o+d*n*p-t*f*p-c*n*v+t*h*v)*k,e[6]=(d*r*o-s*f*o-d*n*l+t*f*l+s*n*v-t*r*v)*k,e[7]=(s*h*o-c*r*o+c*n*l-t*h*l-s*n*p+t*r*p)*k,e[8]=b*k,e[9]=(d*u*o-c*m*o-d*i*p+t*m*p+c*i*v-t*u*v)*k,e[10]=(s*m*o-d*a*o+d*i*l-t*m*l-s*i*v+t*a*v)*k,e[11]=(c*a*o-s*u*o-c*i*l+t*u*l+s*i*p-t*a*p)*k,e[12]=C*k,e[13]=(c*m*n-d*u*n+d*i*h-t*m*h-c*i*f+t*u*f)*k,e[14]=(d*a*n-s*m*n-d*i*r+t*m*r+s*i*f-t*a*f)*k,e[15]=(s*u*n-c*a*n+c*i*r-t*u*r-s*i*h+t*a*h)*k,this}},{key:"scale",value:function(e){var t=this.elements,i=e.x,n=e.y,o=e.z;return t[0]*=i,t[4]*=n,t[8]*=o,t[1]*=i,t[5]*=n,t[9]*=o,t[2]*=i,t[6]*=n,t[10]*=o,t[3]*=i,t[7]*=n,t[11]*=o,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],n=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,n))}},{key:"makeTranslation",value:function(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var i=Math.cos(t),n=Math.sin(t),o=1-i,s=e.x,a=e.y,r=e.z,l=o*s,c=o*a;return this.set(l*s+i,l*a-n*r,l*r+n*a,0,l*a+n*r,c*a+i,c*r-n*s,0,l*r-n*a,c*r+n*s,o*r*r+i,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,i,n,o,s){return this.set(1,i,o,0,e,1,s,0,t,n,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,i){var n=this.elements,o=t._x,s=t._y,a=t._z,r=t._w,l=o+o,c=s+s,u=a+a,h=o*l,p=o*c,d=o*u,m=s*c,f=s*u,v=a*u,g=r*l,y=r*c,b=r*u,C=i.x,w=i.y,k=i.z;return n[0]=(1-(m+v))*C,n[1]=(p+b)*C,n[2]=(d-y)*C,n[3]=0,n[4]=(p-b)*w,n[5]=(1-(h+v))*w,n[6]=(f+g)*w,n[7]=0,n[8]=(d+y)*k,n[9]=(f-g)*k,n[10]=(1-(h+m))*k,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,this}},{key:"decompose",value:function(e,t,i){var n=this.elements,o=Rh.set(n[0],n[1],n[2]).length(),s=Rh.set(n[4],n[5],n[6]).length(),a=Rh.set(n[8],n[9],n[10]).length();this.determinant()<0&&(o=-o),e.x=n[12],e.y=n[13],e.z=n[14],zh.copy(this);var r=1/o,l=1/s,c=1/a;return zh.elements[0]*=r,zh.elements[1]*=r,zh.elements[2]*=r,zh.elements[4]*=l,zh.elements[5]*=l,zh.elements[6]*=l,zh.elements[8]*=c,zh.elements[9]*=c,zh.elements[10]*=c,t.setFromRotationMatrix(zh),i.x=o,i.y=s,i.z=a,this}},{key:"makePerspective",value:function(e,t,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=2*o/(t-e),h=2*o/(i-n),p=(t+e)/(t-e),d=(i+n)/(i-n);if(l===Su)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==Eu)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+l);a=-s/(s-o),r=-s*o/(s-o)}return c[0]=u,c[4]=0,c[8]=p,c[12]=0,c[1]=0,c[5]=h,c[9]=d,c[13]=0,c[2]=0,c[6]=0,c[10]=a,c[14]=r,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}},{key:"makeOrthographic",value:function(e,t,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=1/(t-e),h=1/(i-n),p=1/(s-o),d=(t+e)*u,m=(i+n)*h;if(l===Su)a=(s+o)*p,r=-2*p;else{if(l!==Eu)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+l);a=o*p,r=-1*p}return c[0]=2*u,c[4]=0,c[8]=0,c[12]=-d,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=r,c[14]=-a,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,i=e.elements,n=0;n<16;n++)if(t[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<16;i++)this.elements[i]=e[i+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}])}(),Rh=new rh,zh=new Ih,Fh=new rh(0,0,0),Hh=new rh(1,1,1),Vh=new rh,Gh=new rh,Wh=new rh,Uh=new Ih,Yh=new ah,Jh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DEFAULT_ORDER;c()(this,e),this.isEuler=!0,this._x=t,this._y=i,this._z=n,this._order=o}),[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}},{key:"set",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=i,this._order=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.elements,o=n[0],s=n[4],a=n[8],r=n[1],l=n[5],c=n[9],u=n[2],h=n[6],p=n[10];switch(t){case"XYZ":this._y=Math.asin(Tu(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,p),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Tu(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,p),this._z=Math.atan2(r,l)):(this._y=Math.atan2(-u,o),this._z=0);break;case"ZXY":this._x=Math.asin(Tu(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,p),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(r,o));break;case"ZYX":this._y=Math.asin(-Tu(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(r,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(Tu(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,o)):(this._x=0,this._y=Math.atan2(a,p));break;case"XZY":this._z=Math.asin(-Tu(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-c,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===i&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,i){return Uh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Uh,t,i)}},{key:"setFromVector3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}},{key:"reorder",value:function(e){return Yh.setFromEuler(this),this.setFromQuaternion(Yh,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._x;case 2:return e.next=4,this._y;case 4:return e.next=6,this._z;case 6:return e.next=8,this._order;case 8:case"end":return e.stop()}}),e,this)}))}])}();Jh.DEFAULT_ORDER="XYZ";var qh=function(){return h()((function e(){c()(this,e),this.mask=1}),[{key:"set",value:function(e){this.mask=(1<>>0}},{key:"enable",value:function(e){this.mask|=1<1){for(var t=0;t1){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:[];this[e]===t&&i.push(this);for(var n=this.children,o=0,s=n.length;o0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map((function(e){return{boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()}})),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=o(e.geometries,this.geometry);var s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){var a=s.shapes;if(Array.isArray(a))for(var r=0,l=a.length;r0){n.children=[];for(var d=0;d0){n.animations=[];for(var m=0;m0&&(i.geometries=v),g.length>0&&(i.materials=g),y.length>0&&(i.textures=y),b.length>0&&(i.images=b),C.length>0&&(i.shapes=C),w.length>0&&(i.skeletons=w),k.length>0&&(i.animations=k),_.length>0&&(i.nodes=_)}return i.object=n,i;function x(e){var t=[];for(var i in e){var n=e[i];delete n.metadata,t.push(n)}return t}}},{key:"clone",value:function(e){return(new this.constructor).copy(this,e)}},{key:"copy",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh;c()(this,e),this.a=t,this.b=i,this.c=n}return h()(e,[{key:"set",value:function(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}},{key:"setFromPointsAndIndices",value:function(e,t,i,n){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[n]),this}},{key:"setFromAttributeAndIndices",value:function(e,t,i,n){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return hp.subVectors(this.c,this.b),pp.subVectors(this.a,this.b),.5*hp.cross(pp).length()}},{key:"getMidpoint",value:function(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,i){return e.getBarycoord(t,this.a,this.b,this.c,i)}},{key:"getInterpolation",value:function(t,i,n,o,s){return e.getInterpolation(t,this.a,this.b,this.c,i,n,o,s)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){var i,n,o=this.a,s=this.b,a=this.c;fp.subVectors(s,o),vp.subVectors(a,o),yp.subVectors(e,o);var r=fp.dot(yp),l=vp.dot(yp);if(r<=0&&l<=0)return t.copy(o);bp.subVectors(e,s);var c=fp.dot(bp),u=vp.dot(bp);if(c>=0&&u<=c)return t.copy(s);var h=r*u-c*l;if(h<=0&&r>=0&&c<=0)return i=r/(r-c),t.copy(o).addScaledVector(fp,i);Cp.subVectors(e,a);var p=fp.dot(Cp),d=vp.dot(Cp);if(d>=0&&p<=d)return t.copy(a);var m=p*l-r*d;if(m<=0&&l>=0&&d<=0)return n=l/(l-d),t.copy(o).addScaledVector(vp,n);var f=c*d-p*u;if(f<=0&&u-c>=0&&p-d>=0)return gp.subVectors(a,s),n=(u-c)/(u-c+(p-d)),t.copy(s).addScaledVector(gp,n);var v=1/(f+m+h);return i=m*v,n=h*v,t.copy(o).addScaledVector(fp,i).addScaledVector(vp,n)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,i,n){n.subVectors(i,t),hp.subVectors(e,t),n.cross(hp);var o=n.lengthSq();return o>0?n.multiplyScalar(1/Math.sqrt(o)):n.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,i,n,o){hp.subVectors(n,t),pp.subVectors(i,t),dp.subVectors(e,t);var s=hp.dot(hp),a=hp.dot(pp),r=hp.dot(dp),l=pp.dot(pp),c=pp.dot(dp),u=s*l-a*a;if(0===u)return o.set(0,0,0),null;var h=1/u,p=(l*r-a*c)*h,d=(s*c-a*r)*h;return o.set(1-p-d,d,p)}},{key:"containsPoint",value:function(e,t,i,n){return null!==this.getBarycoord(e,t,i,n,mp)&&mp.x>=0&&mp.y>=0&&mp.x+mp.y<=1}},{key:"getInterpolation",value:function(e,t,i,n,o,s,a,r){return null===this.getBarycoord(e,t,i,n,mp)?(r.x=0,r.y=0,"z"in r&&(r.z=0),"w"in r&&(r.w=0),null):(r.setScalar(0),r.addScaledVector(o,mp.x),r.addScaledVector(s,mp.y),r.addScaledVector(a,mp.z),r)}},{key:"isFrontFacing",value:function(e,t,i,n){return hp.subVectors(i,t),pp.subVectors(e,t),hp.cross(pp).dot(n)<0}}])}(),kp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_p={h:0,s:0,l:0},xp={h:0,s:0,l:0};function Sp(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+6*(t-e)*(2/3-i):e}var Ep=function(){return h()((function e(t,i,n){return c()(this,e),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,i,n)}),[{key:"set",value:function(e,t,i){if(void 0===t&&void 0===i){var n=e;n&&n.isColor?this.copy(n):"number"==typeof n?this.setHex(n):"string"==typeof n&&this.setStyle(n)}else this.setRGB(e,t,i);return this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,qu.toWorkingColorSpace(this,t),this}},{key:"setRGB",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qu.workingColorSpace;return this.r=e,this.g=t,this.b=i,qu.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qu.workingColorSpace;if(e=Nu(e,1),t=Tu(t,0,1),i=Tu(i,0,1),0===t)this.r=this.g=this.b=i;else{var o=i<=.5?i*(1+t):i+t-i*t,s=2*i-o;this.r=Sp(s,o,e+1/3),this.g=Sp(s,o,e),this.b=Sp(s,o,e-1/3)}return qu.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu;function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(t=/^(\w+)\(([^\)]*)\)/.exec(e)){var o,s=t[1],a=t[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,i);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,i);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(t=/^\#([A-Fa-f\d]+)$/.exec(e)){var r=t[1],l=r.length;if(3===l)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,i);if(6===l)return this.setHex(parseInt(r,16),i);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,i);return this}},{key:"setColorName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu,i=kp[e.toLowerCase()];return void 0!==i?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copySRGBToLinear",value:function(e){return this.r=Xu(e.r),this.g=Xu(e.g),this.b=Xu(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=Zu(e.r),this.g=Zu(e.g),this.b=Zu(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;return qu.fromWorkingColorSpace(Pp.copy(this),e),65536*Math.round(Tu(255*Pp.r,0,255))+256*Math.round(Tu(255*Pp.g,0,255))+Math.round(Tu(255*Pp.b,0,255))}},{key:"getHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;return("000000"+this.getHex(e).toString(16)).slice(-6)}},{key:"getHSL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qu.workingColorSpace;qu.fromWorkingColorSpace(Pp.copy(this),t);var i,n,o=Pp.r,s=Pp.g,a=Pp.b,r=Math.max(o,s,a),l=Math.min(o,s,a),c=(l+r)/2;if(l===r)i=0,n=0;else{var u=r-l;switch(n=c<=.5?u/(r+l):u/(2-r-l),r){case o:i=(s-a)/u+(s1&&void 0!==arguments[1]?arguments[1]:qu.workingColorSpace;return qu.fromWorkingColorSpace(Pp.copy(this),t),e.r=Pp.r,e.g=Pp.g,e.b=Pp.b,e}},{key:"getStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;qu.fromWorkingColorSpace(Pp.copy(this),e);var t=Pp.r,i=Pp.g,n=Pp.b;return e!==vu?"color(".concat(e," ").concat(t.toFixed(3)," ").concat(i.toFixed(3)," ").concat(n.toFixed(3),")"):"rgb(".concat(Math.round(255*t),",").concat(Math.round(255*i),",").concat(Math.round(255*n),")")}},{key:"offsetHSL",value:function(e,t,i){return this.getHSL(_p),this.setHSL(_p.h+e,_p.s+t,_p.l+i)}},{key:"add",value:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}},{key:"addColors",value:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}},{key:"addScalar",value:function(e){return this.r+=e,this.g+=e,this.b+=e,this}},{key:"sub",value:function(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}},{key:"multiply",value:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}},{key:"multiplyScalar",value:function(e){return this.r*=e,this.g*=e,this.b*=e,this}},{key:"lerp",value:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}},{key:"lerpColors",value:function(e,t,i){return this.r=e.r+(t.r-e.r)*i,this.g=e.g+(t.g-e.g)*i,this.b=e.b+(t.b-e.b)*i,this}},{key:"lerpHSL",value:function(e,t){this.getHSL(_p),e.getHSL(xp);var i=Bu(_p.h,xp.h,t),n=Bu(_p.s,xp.s,t),o=Bu(_p.l,xp.l,t);return this.setHSL(i,n,o),this}},{key:"setFromVector3",value:function(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}},{key:"applyMatrix3",value:function(e){var t=this.r,i=this.g,n=this.b,o=e.elements;return this.r=o[0]*t+o[3]*i+o[6]*n,this.g=o[1]*t+o[4]*i+o[7]*n,this.b=o[2]*t+o[5]*i+o[8]*n,this}},{key:"equals",value:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.r;case 2:return e.next=4,this.g;case 4:return e.next=6,this.b;case 6:case"end":return e.stop()}}),e,this)}))}])}(),Pp=new Ep;Ep.NAMES=kp;var Op=0,Dp=function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).isMaterial=!0,Object.defineProperty(cu()(e),"id",{value:Op++}),e.uuid=Mu(),e.name="",e.type="Material",e.blending=1,e.side=0,e.vertexColors=!1,e.opacity=1,e.transparent=!1,e.alphaHash=!1,e.blendSrc=204,e.blendDst=205,e.blendEquation=100,e.blendSrcAlpha=null,e.blendDstAlpha=null,e.blendEquationAlpha=null,e.blendColor=new Ep(0,0,0),e.blendAlpha=0,e.depthFunc=3,e.depthTest=!0,e.depthWrite=!0,e.stencilWriteMask=255,e.stencilFunc=519,e.stencilRef=0,e.stencilFuncMask=255,e.stencilFail=_u,e.stencilZFail=_u,e.stencilZPass=_u,e.stencilWrite=!1,e.clippingPlanes=null,e.clipIntersection=!1,e.clipShadows=!1,e.shadowSide=null,e.colorWrite=!0,e.precision=null,e.polygonOffset=!1,e.polygonOffsetFactor=0,e.polygonOffsetUnits=0,e.dithering=!1,e.alphaToCoverage=!1,e.premultipliedAlpha=!1,e.forceSinglePass=!1,e.visible=!0,e.toneMapped=!0,e.userData={},e.version=0,e._alphaTest=0,e}return Me()(t,e),h()(t,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(e){if(void 0!==e)for(var t in e){var i=e[t];if(void 0!==i){var n=this[t];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[t]=i:console.warn("THREE.Material: '".concat(t,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(t,"' has value of undefined."))}}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(e){var t=[];for(var i in e){var n=e[i];delete n.metadata,t.push(n)}return t}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),0!==this.side&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),204!==this.blendSrc&&(i.blendSrc=this.blendSrc),205!==this.blendDst&&(i.blendDst=this.blendDst),100!==this.blendEquation&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==_u&&(i.stencilFail=this.stencilFail),this.stencilZFail!==_u&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==_u&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),t){var o=n(e.textures),s=n(e.images);o.length>0&&(i.textures=o),s.length>0&&(i.images=s)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,i=null;if(null!==t){var n=t.length;i=new Array(n);for(var o=0;o!==n;++o)i[o]=t[o].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}])}(Pu),Mp=function(e){function t(e){var i;return c()(this,t),(i=hu(this,t)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new Ep(16777215),i.map=null,i.lightMap=null,i.lightMapIntensity=1,i.aoMap=null,i.aoMapIntensity=1,i.specularMap=null,i.alphaMap=null,i.envMap=null,i.envMapRotation=new Jh,i.combine=0,i.reflectivity=1,i.refractionRatio=.98,i.wireframe=!1,i.wireframeLinewidth=1,i.wireframeLinecap="round",i.wireframeLinejoin="round",i.fog=!0,i.setValues(e),i}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}])}(Dp);!function(){for(var e=new ArrayBuffer(4),t=new Float32Array(e),i=new Uint32Array(e),n=new Uint32Array(512),o=new Uint32Array(512),s=0;s<256;++s){var a=s-127;a<-27?(n[s]=0,n[256|s]=32768,o[s]=24,o[256|s]=24):a<-14?(n[s]=1024>>-a-14,n[256|s]=1024>>-a-14|32768,o[s]=-a-1,o[256|s]=-a-1):a<=15?(n[s]=a+15<<10,n[256|s]=a+15<<10|32768,o[s]=13,o[256|s]=13):a<128?(n[s]=31744,n[256|s]=64512,o[s]=24,o[256|s]=24):(n[s]=31744,n[256|s]=64512,o[s]=13,o[256|s]=13)}for(var r=new Uint32Array(2048),l=new Uint32Array(64),c=new Uint32Array(64),u=1;u<1024;++u){for(var h=u<<13,p=0;0==(8388608&h);)h<<=1,p-=8388608;h&=-8388609,p+=947912704,r[u]=h|p}for(var d=1024;d<2048;++d)r[d]=939524096+(d-1024<<13);for(var m=1;m<31;++m)l[m]=m<<23;l[31]=1199570944,l[32]=2147483648;for(var f=33;f<63;++f)l[f]=2147483648+(f-32<<23);l[63]=3347054592;for(var v=1;v<64;++v)32!==v&&(c[v]=1024)}();var Tp=new rh,Np=new Lu,Bp=function(){return h()((function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(c()(this,e),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=i,this.count=void 0!==t?t.length/i:0,this.normalized=n,this.usage=xu,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=1015,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"updateRange",get:function(){return Vu("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"addUpdateRange",value:function(e,t){this.updateRanges.push({start:e,count:t})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}},{key:"copyAt",value:function(e,t,i){e*=this.itemSize,i*=t.itemSize;for(var n=0,o=this.itemSize;n1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"getComponent",value:function(e,t){var i=this.array[e*this.itemSize+t];return this.normalized&&(i=ju(i,this.array)),i}},{key:"setComponent",value:function(e,t,i){return this.normalized&&(i=Au(i,this.array)),this.array[e*this.itemSize+t]=i,this}},{key:"getX",value:function(e){var t=this.array[e*this.itemSize];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setX",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize]=t,this}},{key:"getY",value:function(e){var t=this.array[e*this.itemSize+1];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setY",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+1]=t,this}},{key:"getZ",value:function(e){var t=this.array[e*this.itemSize+2];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setZ",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+2]=t,this}},{key:"getW",value:function(e){var t=this.array[e*this.itemSize+3];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setW",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+3]=t,this}},{key:"setXY",value:function(e,t,i){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array)),this.array[e+0]=t,this.array[e+1]=i,this}},{key:"setXYZ",value:function(e,t,i,n){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array),n=Au(n,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=n,this}},{key:"setXYZW",value:function(e,t,i,n,o){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array),n=Au(n,this.array),o=Au(o,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=n,this.array[e+3]=o,this}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==xu&&(e.usage=this.usage),e}}])}(),jp=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Uint16Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Ap=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Uint32Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Lp=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Float32Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Ip=0,Rp=new Ih,zp=new up,Fp=new rh,Hp=new uh,Vp=new uh,Gp=new rh,Wp=function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).isBufferGeometry=!0,Object.defineProperty(cu()(e),"id",{value:Ip++}),e.uuid=Mu(),e.name="",e.type="BufferGeometry",e.index=null,e.attributes={},e.morphAttributes={},e.morphTargetsRelative=!1,e.groups=[],e.boundingBox=null,e.boundingSphere=null,e.drawRange={start:0,count:1/0},e.userData={},e}return Me()(t,e),h()(t,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return Array.isArray(e)?this.index=new(zu(e)?Ap:jp)(e,1):this.index=e,this}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setAttribute",value:function(e,t){return this.attributes[e]=t,this}},{key:"deleteAttribute",value:function(e){return delete this.attributes[e],this}},{key:"hasAttribute",value:function(e){return void 0!==this.attributes[e]}},{key:"addGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(e,t){this.drawRange.start=e,this.drawRange.count=t}},{key:"applyMatrix4",value:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var n=(new Iu).getNormalMatrix(e);i.applyNormalMatrix(n),i.needsUpdate=!0}var o=this.attributes.tangent;return void 0!==o&&(o.transformDirection(e),o.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(e){return Rp.makeRotationFromQuaternion(e),this.applyMatrix4(Rp),this}},{key:"rotateX",value:function(e){return Rp.makeRotationX(e),this.applyMatrix4(Rp),this}},{key:"rotateY",value:function(e){return Rp.makeRotationY(e),this.applyMatrix4(Rp),this}},{key:"rotateZ",value:function(e){return Rp.makeRotationZ(e),this.applyMatrix4(Rp),this}},{key:"translate",value:function(e,t,i){return Rp.makeTranslation(e,t,i),this.applyMatrix4(Rp),this}},{key:"scale",value:function(e,t,i){return Rp.makeScale(e,t,i),this.applyMatrix4(Rp),this}},{key:"lookAt",value:function(e){return zp.lookAt(e),zp.updateMatrix(),this.applyMatrix4(zp.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Fp).negate(),this.translate(Fp.x,Fp.y,Fp.z),this}},{key:"setFromPoints",value:function(e){for(var t=[],i=0,n=e.length;i0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var i in t)void 0!==t[i]&&(e[i]=t[i]);return e}e.data={attributes:{}};var n=this.index;null!==n&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});var o=this.attributes;for(var s in o){var a=o[s];e.data.attributes[s]=a.toJSON(e.data)}var r={},l=!1;for(var c in this.morphAttributes){for(var u=this.morphAttributes[c],h=[],p=0,d=u.length;p0&&(r[c]=h,l=!0)}l&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);var f=this.groups;f.length>0&&(e.data.groups=JSON.parse(JSON.stringify(f)));var v=this.boundingSphere;return null!==v&&(e.data.boundingSphere={center:v.center.toArray(),radius:v.radius}),e}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var i=e.index;null!==i&&this.setIndex(i.clone(t));var n=e.attributes;for(var o in n){var s=n[o];this.setAttribute(o,s.clone(t))}var a=e.morphAttributes;for(var r in a){for(var l=[],c=a[r],u=0,h=c.length;u0&&void 0!==arguments[0]?arguments[0]:new Wp,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Mp;return c()(this,t),(e=hu(this,t)).isMesh=!0,e.type="Mesh",e.geometry=i,e.material=n,e.updateMorphTargets(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e,i){return uu(t,"copy",this,3)([e,i]),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}},{key:"updateMorphTargets",value:function(){var e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){var i=e[t[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var n=0,o=i.length;nMath.pow(e.far-e.near,2))return}Up.copy(o).invert(),Yp.copy(e.ray).applyMatrix4(Up),null!==i.boundingBox&&!1===Yp.intersectsBox(i.boundingBox)||this._computeIntersections(e,t,Yp)}}},{key:"_computeIntersections",value:function(e,t,i){var n,o=this.geometry,s=this.material,a=o.index,r=o.attributes.position,l=o.attributes.uv,c=o.attributes.uv1,u=o.attributes.normal,h=o.groups,p=o.drawRange;if(null!==a)if(Array.isArray(s))for(var d=0,m=h.length;di.far?null:{distance:l,point:rd.clone(),object:e}}(e,t,i,n,Xp,Zp,Kp,ad);if(u){o&&(ed.fromBufferAttribute(o,r),td.fromBufferAttribute(o,l),id.fromBufferAttribute(o,c),u.uv=wp.getInterpolation(ad,Xp,Zp,Kp,ed,td,id,new Lu)),s&&(ed.fromBufferAttribute(s,r),td.fromBufferAttribute(s,l),id.fromBufferAttribute(s,c),u.uv1=wp.getInterpolation(ad,Xp,Zp,Kp,ed,td,id,new Lu)),a&&(nd.fromBufferAttribute(a,r),od.fromBufferAttribute(a,l),sd.fromBufferAttribute(a,c),u.normal=wp.getInterpolation(ad,Xp,Zp,Kp,nd,od,sd,new rh),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var h={a:r,b:l,c:c,normal:new rh,materialIndex:0};wp.getNormal(Xp,Zp,Kp,h.normal),u.face=h}return u}var ud=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;c()(this,t),(e=hu(this,t)).type="BoxGeometry",e.parameters={width:i,height:n,depth:o,widthSegments:s,heightSegments:a,depthSegments:r};var l=e;s=Math.floor(s),a=Math.floor(a),r=Math.floor(r);var u=[],h=[],p=[],d=[],m=0,f=0;function v(e,t,i,n,o,s,a,r,c,v,g){for(var y=s/c,b=a/v,C=s/2,w=a/2,k=r/2,_=c+1,x=v+1,S=0,E=0,P=new rh,O=0;O0?1:-1,p.push(P.x,P.y,P.z),d.push(M/c),d.push(1-O/v),S+=1}for(var N=0;N0&&void 0!==arguments[0]?arguments[0]:new rh(1,0,0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,e),this.isPlane=!0,this.normal=t,this.constant=i}),[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,i,n){return this.normal.set(e,t,i),this.constant=n,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,i){var n=fd.subVectors(i,t).cross(vd.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(n,e),this}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}},{key:"intersectLine",value:function(e,t){var i=e.delta(fd),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;var o=-(e.start.dot(this.normal)+this.constant)/n;return o<0||o>1?null:t.copy(e.start).addScaledVector(i,o)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var i=t||gd.getNormalMatrix(e),n=this.coplanarPoint(fd).applyMatrix4(e),o=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(o),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),bd=new Oh,Cd=new rh,wd=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new yd,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new yd,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new yd,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new yd,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new yd,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new yd;c()(this,e),this.planes=[t,i,n,o,s,a]}),[{key:"set",value:function(e,t,i,n,o,s){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(n),a[4].copy(o),a[5].copy(s),this}},{key:"copy",value:function(e){for(var t=this.planes,i=0;i<6;i++)t[i].copy(e.planes[i]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=this.planes,n=e.elements,o=n[0],s=n[1],a=n[2],r=n[3],l=n[4],c=n[5],u=n[6],h=n[7],p=n[8],d=n[9],m=n[10],f=n[11],v=n[12],g=n[13],y=n[14],b=n[15];if(i[0].setComponents(r-o,h-l,f-p,b-v).normalize(),i[1].setComponents(r+o,h+l,f+p,b+v).normalize(),i[2].setComponents(r+s,h+c,f+d,b+g).normalize(),i[3].setComponents(r-s,h-c,f-d,b-g).normalize(),i[4].setComponents(r-a,h-u,f-m,b-y).normalize(),t===Su)i[5].setComponents(r+a,h+u,f+m,b+y).normalize();else{if(t!==Eu)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);i[5].setComponents(a,u,m,y).normalize()}return this}},{key:"intersectsObject",value:function(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),bd.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{var t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),bd.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(bd)}},{key:"intersectsSprite",value:function(e){return bd.center.set(0,0,0),bd.radius=.7071067811865476,bd.applyMatrix4(e.matrixWorld),this.intersectsSphere(bd)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,i=e.center,n=-e.radius,o=0;o<6;o++)if(t[o].distanceToPoint(i)0?e.max.x:e.min.x,Cd.y=n.normal.y>0?e.max.y:e.min.y,Cd.z=n.normal.z>0?e.max.z:e.min.z,n.distanceToPoint(Cd)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}();var kd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,t),(e=hu(this,t)).type="PlaneGeometry",e.parameters={width:i,height:n,widthSegments:o,heightSegments:s};for(var a=i/2,r=n/2,l=Math.floor(o),u=Math.floor(s),h=l+1,p=u+1,d=i/l,m=n/u,f=[],v=[],g=[],y=[],b=0;b 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},xd={common:{diffuse:{value:new Ep(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Iu},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Iu}},envmap:{envMap:{value:null},envMapRotation:{value:new Iu},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Iu}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Iu}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Iu},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Iu},normalScale:{value:new Lu(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Iu},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Iu}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Iu}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Iu}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ep(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ep(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0},uvTransform:{value:new Iu}},sprite:{diffuse:{value:new Ep(16777215)},opacity:{value:1},center:{value:new Lu(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Iu},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0}}},Sd={basic:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.fog]),vertexShader:_d.meshbasic_vert,fragmentShader:_d.meshbasic_frag},lambert:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)}}]),vertexShader:_d.meshlambert_vert,fragmentShader:_d.meshlambert_frag},phong:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)},specular:{value:new Ep(1118481)},shininess:{value:30}}]),vertexShader:_d.meshphong_vert,fragmentShader:_d.meshphong_frag},standard:{uniforms:pd([xd.common,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.roughnessmap,xd.metalnessmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:_d.meshphysical_vert,fragmentShader:_d.meshphysical_frag},toon:{uniforms:pd([xd.common,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.gradientmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)}}]),vertexShader:_d.meshtoon_vert,fragmentShader:_d.meshtoon_frag},matcap:{uniforms:pd([xd.common,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,{matcap:{value:null}}]),vertexShader:_d.meshmatcap_vert,fragmentShader:_d.meshmatcap_frag},points:{uniforms:pd([xd.points,xd.fog]),vertexShader:_d.points_vert,fragmentShader:_d.points_frag},dashed:{uniforms:pd([xd.common,xd.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:_d.linedashed_vert,fragmentShader:_d.linedashed_frag},depth:{uniforms:pd([xd.common,xd.displacementmap]),vertexShader:_d.depth_vert,fragmentShader:_d.depth_frag},normal:{uniforms:pd([xd.common,xd.bumpmap,xd.normalmap,xd.displacementmap,{opacity:{value:1}}]),vertexShader:_d.meshnormal_vert,fragmentShader:_d.meshnormal_frag},sprite:{uniforms:pd([xd.sprite,xd.fog]),vertexShader:_d.sprite_vert,fragmentShader:_d.sprite_frag},background:{uniforms:{uvTransform:{value:new Iu},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:_d.background_vert,fragmentShader:_d.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Iu}},vertexShader:_d.backgroundCube_vert,fragmentShader:_d.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:_d.cube_vert,fragmentShader:_d.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:_d.equirect_vert,fragmentShader:_d.equirect_frag},distanceRGBA:{uniforms:pd([xd.common,xd.displacementmap,{referencePosition:{value:new rh},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:_d.distanceRGBA_vert,fragmentShader:_d.distanceRGBA_frag},shadow:{uniforms:pd([xd.lights,xd.fog,{color:{value:new Ep(0)},opacity:{value:1}}]),vertexShader:_d.shadow_vert,fragmentShader:_d.shadow_frag}};Sd.physical={uniforms:pd([Sd.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Iu},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Iu},clearcoatNormalScale:{value:new Lu(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Iu},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Iu},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Iu},sheen:{value:0},sheenColor:{value:new Ep(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Iu},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Iu},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Iu},transmissionSamplerSize:{value:new Lu},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Iu},attenuationDistance:{value:0},attenuationColor:{value:new Ep(0)},specularColor:{value:new Ep(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Iu},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Iu},anisotropyVector:{value:new Lu},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Iu}}]),vertexShader:_d.meshphysical_vert,fragmentShader:_d.meshphysical_frag};new Jh,new Ih;var Ed=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return c()(this,t),(e=hu(this,t)).isOrthographicCamera=!0,e.type="OrthographicCamera",e.zoom=1,e.view=null,e.left=i,e.right=n,e.top=o,e.bottom=s,e.near=a,e.far=r,e.updateProjectionMatrix(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e,i){return uu(t,"copy",this,3)([e,i]),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}},{key:"setViewOffset",value:function(e,t,i,n,o,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,o=i-e,s=i+e,a=n+t,r=n-t;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s=(o+=l*this.view.offsetX)+l*this.view.width,r=(a-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,r,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var i=uu(t,"toJSON",this,3)([e]);return i.object.zoom=this.zoom,i.object.left=this.left,i.object.right=this.right,i.object.top=this.top,i.object.bottom=this.bottom,i.object.near=this.near,i.object.far=this.far,null!==this.view&&(i.object.view=Object.assign({},this.view)),i}}])}(dd),Pd=(new Ed,new Ep,(1+Math.sqrt(5))/2),Od=1/Pd;new rh(-Pd,Od,0),new rh(Pd,Od,0),new rh(-Od,0,Pd),new rh(Od,0,Pd),new rh(0,Pd,-Od),new rh(0,Pd,Od),new rh(-1,1,-1),new rh(1,1,-1),new rh(-1,1,1),new rh(1,1,1);var Dd=function(e){function t(e,i,n,o,s,a,r,l,u,h){var p;if(c()(this,t),1026!==(h=void 0!==h?h:1026)&&1027!==h)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===n&&1026===h&&(n=pu),void 0===n&&1027===h&&(n=du),(p=hu(this,t,[null,o,s,a,r,l,h,n,u])).isDepthTexture=!0,p.image={width:e,height:i},p.magFilter=void 0!==r?r:1003,p.minFilter=void 0!==l?l:1003,p.flipY=!1,p.generateMipmaps=!1,p.compareFunction=null,p}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.compareFunction=e.compareFunction,this}},{key:"toJSON",value:function(e){var i=uu(t,"toJSON",this,3)([e]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(ih),Md=(new ih,new Dd(1,1));Md.compareFunction=515;new oh,new sh,new md,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new Jh,new Ih;new rh,new rh,new rh,new rh,new Lu,new Lu,new Ih,new rh,new rh,new rh,new Lu,new Lu,new Lu;new rh,new rh,new rh,new nh,new nh,new rh,new Ih,new rh,new Oh,new Ih,new Lh,new Ih,new Ih,new Ih,new Ih,new uh,new Ih,new ld,new Oh;var Td=function(){return h()((function e(){c()(this,e),this.index=0,this.pool=[],this.list=[]}),[{key:"push",value:function(e,t){var i=this.pool,n=this.list;this.index>=i.length&&i.push({start:-1,count:-1,z:-1});var o=i[this.index];n.push(o),this.index++,o.start=e.start,o.count=e.count,o.z=t}},{key:"reset",value:function(){this.list.length=0,this.index=0}}])}();new Ih,new Ih,new Ih,new Ih,new wd,new uh,new Oh,new rh,new Td,new ld;new rh,new rh,new Ih,new Lh,new Oh,new rh,new rh;new rh,new rh,new Ih,new Lh,new Oh,new rh;var Nd=function(){return h()((function e(){c()(this,e),this.type="Curve",this.arcLengthDivisions=200}),[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(e,t){var i=this.getUtoTmapping(e);return this.getPoint(i,t)}},{key:"getPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],i=0;i<=e;i++)t.push(this.getPoint(i/e));return t}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],i=0;i<=e;i++)t.push(this.getPointAt(i/e));return t}},{key:"getLength",value:function(){var e=this.getLengths();return e[e.length-1]}},{key:"getLengths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,i=[],n=this.getPoint(0),o=0;i.push(0);for(var s=1;s<=e;s++)o+=(t=this.getPoint(s/e)).distanceTo(n),i.push(o),n=t;return this.cacheArcLengths=i,i}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(e,t){var i,n=this.getLengths(),o=0,s=n.length;i=t||e*n[s-1];for(var a,r=0,l=s-1;r<=l;)if((a=n[o=Math.floor(r+(l-r)/2)]-i)<0)r=o+1;else{if(!(a>0)){l=o;break}l=o-1}if(n[o=l]===i)return o/(s-1);var c=n[o];return(o+(i-c)/(n[o+1]-c))/(s-1)}},{key:"getTangent",value:function(e,t){var i=1e-4,n=e-i,o=e+i;n<0&&(n=0),o>1&&(o=1);var s=this.getPoint(n),a=this.getPoint(o),r=t||(s.isVector2?new Lu:new rh);return r.copy(a).sub(s).normalize(),r}},{key:"getTangentAt",value:function(e,t){var i=this.getUtoTmapping(e);return this.getTangent(i,t)}},{key:"computeFrenetFrames",value:function(e,t){for(var i=new rh,n=[],o=[],s=[],a=new rh,r=new Ih,l=0;l<=e;l++){var c=l/e;n[l]=this.getTangentAt(c,new rh)}o[0]=new rh,s[0]=new rh;var u=Number.MAX_VALUE,h=Math.abs(n[0].x),p=Math.abs(n[0].y),d=Math.abs(n[0].z);h<=u&&(u=h,i.set(1,0,0)),p<=u&&(u=p,i.set(0,1,0)),d<=u&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),o[0].crossVectors(n[0],a),s[0].crossVectors(n[0],o[0]);for(var m=1;m<=e;m++){if(o[m]=o[m-1].clone(),s[m]=s[m-1].clone(),a.crossVectors(n[m-1],n[m]),a.length()>Number.EPSILON){a.normalize();var f=Math.acos(Tu(n[m-1].dot(n[m]),-1,1));o[m].applyMatrix4(r.makeRotationAxis(a,f))}s[m].crossVectors(n[m],o[m])}if(!0===t){var v=Math.acos(Tu(o[0].dot(o[e]),-1,1));v/=e,n[0].dot(a.crossVectors(o[0],o[e]))>0&&(v=-v);for(var g=1;g<=e;g++)o[g].applyMatrix4(r.makeRotationAxis(n[g],v*g)),s[g].crossVectors(n[g],o[g])}return{tangents:n,normals:o,binormals:s}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},{key:"toJSON",value:function(){var e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}},{key:"fromJSON",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}])}(),Bd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return c()(this,t),(e=hu(this,t)).isEllipseCurve=!0,e.type="EllipseCurve",e.aX=i,e.aY=n,e.xRadius=o,e.yRadius=s,e.aStartAngle=a,e.aEndAngle=r,e.aClockwise=l,e.aRotation=u,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=2*Math.PI,o=this.aEndAngle-this.aStartAngle,s=Math.abs(o)n;)o-=n;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return c()(this,t),(e=hu(this,t)).isCatmullRomCurve3=!0,e.type="CatmullRomCurve3",e.points=i,e.closed=n,e.curveType=o,e.tension=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=n,s=this.points,a=s.length,r=(a-(this.closed?0:1))*e,l=Math.floor(r),c=r-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/a)+1)*a:0===c&&l===a-1&&(l=a-2,c=1),this.closed||l>0?t=s[(l-1)%a]:(Ld.subVectors(s[0],s[1]).add(s[0]),t=Ld);var u=s[l%a],h=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Lu,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Lu;return c()(this,t),(e=hu(this,t)).isCubicBezierCurve=!0,e.type="CubicBezierCurve",e.v0=i,e.v1=n,e.v2=o,e.v3=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Gd(e,n.x,o.x,s.x,a.x),Gd(e,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}])}(Nd),Ud=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new rh;return c()(this,t),(e=hu(this,t)).isCubicBezierCurve3=!0,e.type="CubicBezierCurve3",e.v0=i,e.v1=n,e.v2=o,e.v3=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Gd(e,n.x,o.x,s.x,a.x),Gd(e,n.y,o.y,s.y,a.y),Gd(e,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}])}(Nd),Yd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu;return c()(this,t),(e=hu(this,t)).isLineCurve=!0,e.type="LineCurve",e.v1=i,e.v2=n,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t;return 1===e?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(e).add(this.v1)),i}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu;return t.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(e,t){return this.getTangent(e,t)}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Jd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh;return c()(this,t),(e=hu(this,t)).isLineCurve3=!0,e.type="LineCurve3",e.v1=i,e.v2=n,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t;return 1===e?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(e).add(this.v1)),i}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh;return t.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(e,t){return this.getTangent(e,t)}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),qd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Lu;return c()(this,t),(e=hu(this,t)).isQuadraticBezierCurve=!0,e.type="QuadraticBezierCurve",e.v0=i,e.v1=n,e.v2=o,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Vd(e,n.x,o.x,s.x),Vd(e,n.y,o.y,s.y)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Xd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh;return c()(this,t),(e=hu(this,t)).isQuadraticBezierCurve3=!0,e.type="QuadraticBezierCurve3",e.v0=i,e.v1=n,e.v2=o,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Vd(e,n.x,o.x,s.x),Vd(e,n.y,o.y,s.y),Vd(e,n.z,o.z,s.z)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Zd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c()(this,t),(e=hu(this,t)).isSplineCurve=!0,e.type="SplineCurve",e.points=i,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.points,o=(n.length-1)*e,s=Math.floor(o),a=o-s,r=n[0===s?s:s-1],l=n[s],c=n[s>n.length-2?n.length-1:s+1],u=n[s>n.length-3?n.length-1:s+2];return i.set(Hd(a,r.x,l.x,c.x,u.x),Hd(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(e){uu(t,"copy",this,3)([e]),this.points=[];for(var i=0,n=e.points.length;i0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);return this.currentPoint.copy(u),this}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.currentPoint.fromArray(e.currentPoint),this}}])}(function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).type="CurvePath",e.curves=[],e.autoClose=!1,e}return Me()(t,e),h()(t,[{key:"add",value:function(e){this.curves.push(e)}},{key:"closePath",value:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){var i=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new Kd[i](t,e))}return this}},{key:"getPoint",value:function(e,t){for(var i=e*this.getLength(),n=this.getCurveLengths(),o=0;o=i){var s=n[o]-i,a=this.curves[o],r=a.getLength(),l=0===r?0:1-s/r;return a.getPointAt(l,t)}o++}return null}},{key:"getLength",value:function(){var e=this.getCurveLengths();return e[e.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,i=0,n=this.curves.length;i0&&void 0!==arguments[0]?arguments[0]:40,t=[],i=0;i<=e;i++)t.push(this.getPoint(i/e));return this.autoClose&&t.push(t[0]),t}},{key:"getPoints",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,i=[],n=0,o=this.curves;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},{key:"copy",value:function(e){uu(t,"copy",this,3)([e]),this.curves=[];for(var i=0,n=e.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new Lu(0,-.5),new Lu(.5,0),new Lu(0,.5)],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="LatheGeometry",e.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=Tu(s,0,2*Math.PI);for(var a=[],r=[],l=[],u=[],h=[],p=1/n,d=new rh,m=new Lu,f=new rh,v=new rh,g=new rh,y=0,b=0,C=0;C<=i.length-1;C++)switch(C){case 0:y=i[C+1].x-i[C].x,b=i[C+1].y-i[C].y,f.x=1*b,f.y=-y,f.z=0*b,g.copy(f),f.normalize(),u.push(f.x,f.y,f.z);break;case i.length-1:u.push(g.x,g.y,g.z);break;default:y=i[C+1].x-i[C].x,b=i[C+1].y-i[C].y,f.x=1*b,f.y=-y,f.z=0*b,v.copy(f),f.x+=g.x,f.y+=g.y,f.z+=g.z,f.normalize(),u.push(f.x,f.y,f.z),g.copy(v)}for(var w=0;w<=n;w++)for(var k=o+w*p*s,_=Math.sin(k),x=Math.cos(k),S=0;S<=i.length-1;S++){d.x=i[S].x*_,d.y=i[S].y,d.z=i[S].x*x,r.push(d.x,d.y,d.z),m.x=w/n,m.y=S/(i.length-1),l.push(m.x,m.y);var E=u[3*S+0]*_,P=u[3*S+1],O=u[3*S+0]*x;h.push(E,P,O)}for(var D=0;D0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;c()(this,t);var a=new Qd;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(e=hu(this,t,[a.getPoints(o),s])).type="CapsuleGeometry",e.parameters={radius:i,length:n,capSegments:o,radialSegments:s},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.length,e.capSegments,e.radialSegments)}}])}($d),tm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="CircleGeometry",e.parameters={radius:i,segments:n,thetaStart:o,thetaLength:s},n=Math.max(3,n);var a=[],r=[],l=[],u=[],h=new rh,p=new Lu;r.push(0,0,0),l.push(0,0,1),u.push(.5,.5);for(var d=0,m=3;d<=n;d++,m+=3){var f=o+d/n*s;h.x=i*Math.cos(f),h.y=i*Math.sin(f),r.push(h.x,h.y,h.z),l.push(0,0,1),p.x=(r[m]/i+1)/2,p.y=(r[m+1]/i+1)/2,u.push(p.x,p.y)}for(var v=1;v<=n;v++)a.push(v,v+1,0);return e.setIndex(a),e.setAttribute("position",new Lp(r,3)),e.setAttribute("normal",new Lp(l,3)),e.setAttribute("uv",new Lp(u,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.segments,e.thetaStart,e.thetaLength)}}])}(Wp),im=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="CylinderGeometry",e.parameters={radiusTop:i,radiusBottom:n,height:o,radialSegments:s,heightSegments:a,openEnded:r,thetaStart:l,thetaLength:u};var h=e;s=Math.floor(s),a=Math.floor(a);var p=[],d=[],m=[],f=[],v=0,g=[],y=o/2,b=0;function C(e){for(var t=v,o=new Lu,a=new rh,r=0,c=!0===e?i:n,g=!0===e?1:-1,C=1;C<=s;C++)d.push(0,y*g,0),m.push(0,g,0),f.push(.5,.5),v++;for(var w=v,k=0;k<=s;k++){var _=k/s*u+l,x=Math.cos(_),S=Math.sin(_);a.x=c*S,a.y=y*g,a.z=c*x,d.push(a.x,a.y,a.z),m.push(0,g,0),o.x=.5*x+.5,o.y=.5*S*g+.5,f.push(o.x,o.y),v++}for(var E=0;E0&&C(!0),n>0&&C(!1)),e.setIndex(p),e.setAttribute("position",new Lp(d,3)),e.setAttribute("normal",new Lp(m,3)),e.setAttribute("uv",new Lp(f,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}])}(Wp),nm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2*Math.PI;return c()(this,t),(e=hu(this,t,[0,i,n,o,s,a,r,l])).type="ConeGeometry",e.parameters={radius:i,height:n,radialSegments:o,heightSegments:s,openEnded:a,thetaStart:r,thetaLength:l},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}])}(im),om=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;c()(this,t),(e=hu(this,t)).type="PolyhedronGeometry",e.parameters={vertices:i,indices:n,radius:o,detail:s};var a=[],r=[];function l(e,t,i,n){for(var o=n+1,s=[],a=0;a<=o;a++){s[a]=[];for(var r=e.clone().lerp(i,a/o),l=t.clone().lerp(i,a/o),c=o-a,h=0;h<=c;h++)s[a][h]=0===h&&a===o?r:r.clone().lerp(l,h/c)}for(var p=0;p.9&&s<.1&&(t<.2&&(r[e+0]+=1),i<.2&&(r[e+2]+=1),n<.2&&(r[e+4]+=1))}}()}(),e.setAttribute("position",new Lp(a,3)),e.setAttribute("normal",new Lp(a.slice(),3)),e.setAttribute("uv",new Lp(r,2)),0===s?e.computeVertexNormals():e.normalizeNormals(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.vertices,e.indices,e.radius,e.details)}}])}(Wp),sm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,t);var o=(1+Math.sqrt(5))/2,s=1/o;return(e=hu(this,t,[[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-s,-o,0,-s,o,0,s,-o,0,s,o,-s,-o,0,-s,o,0,s,-o,0,s,o,0,-o,0,-s,o,0,-s,-o,0,s,o,0,s],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],i,n])).type="DodecahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),am=new rh,rm=new rh,lm=new rh,cm=new wp,um=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(c()(this,t),(e=hu(this,t)).type="EdgesGeometry",e.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(Du*n),r=i.getIndex(),l=i.getAttribute("position"),u=r?r.count:l.count,h=[0,0,0],p=["a","b","c"],d=new Array(3),m={},f=[],v=0;v0)for(s=t;s=t;s-=n)a=Bm(s,e[s],e[s+1],a);return a&&Pm(a,a.next)&&(jm(a),a=a.next),a}function dm(e,t){if(!e)return e;t||(t=e);var i,n=e;do{if(i=!1,n.steiner||!Pm(n,n.next)&&0!==Em(n.prev,n,n.next))n=n.next;else{if(jm(n),(n=t=n.prev)===n.next)break;i=!0}}while(i||n!==t);return t}function mm(e,t,i,n,o,s,a){if(e){!a&&s&&function(e,t,i,n){var o=e;do{0===o.z&&(o.z=km(o.x,o.y,t,i,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,i,n,o,s,a,r,l,c=1;do{for(i=e,e=null,s=null,a=0;i;){for(a++,n=i,r=0,t=0;t0||l>0&&n;)0!==r&&(0===l||!n||i.z<=n.z)?(o=i,i=i.nextZ,r--):(o=n,n=n.nextZ,l--),s?s.nextZ=o:e=o,o.prevZ=s,s=o;i=n}s.nextZ=null,c*=2}while(a>1)}(o)}(e,n,o,s);for(var r,l,c=e;e.prev!==e.next;)if(r=e.prev,l=e.next,s?vm(e,n,o,s):fm(e))t.push(r.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),jm(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?mm(e=gm(dm(e),t,i),t,i,n,o,s,2):2===a&&ym(e,t,i,n,o,s):mm(dm(e),t,i,n,o,s,1);break}}}function fm(e){var t=e.prev,i=e,n=e.next;if(Em(t,i,n)>=0)return!1;for(var o=t.x,s=i.x,a=n.x,r=t.y,l=i.y,c=n.y,u=os?o>a?o:a:s>a?s:a,d=r>l?r>c?r:c:l>c?l:c,m=n.next;m!==t;){if(m.x>=u&&m.x<=p&&m.y>=h&&m.y<=d&&xm(o,r,s,l,a,c,m.x,m.y)&&Em(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function vm(e,t,i,n){var o=e.prev,s=e,a=e.next;if(Em(o,s,a)>=0)return!1;for(var r=o.x,l=s.x,c=a.x,u=o.y,h=s.y,p=a.y,d=rl?r>c?r:c:l>c?l:c,v=u>h?u>p?u:p:h>p?h:p,g=km(d,m,t,i,n),y=km(f,v,t,i,n),b=e.prevZ,C=e.nextZ;b&&b.z>=g&&C&&C.z<=y;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&xm(r,u,l,h,c,p,b.x,b.y)&&Em(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&xm(r,u,l,h,c,p,C.x,C.y)&&Em(C.prev,C,C.next)>=0)return!1;C=C.nextZ}for(;b&&b.z>=g;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&xm(r,u,l,h,c,p,b.x,b.y)&&Em(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;C&&C.z<=y;){if(C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&xm(r,u,l,h,c,p,C.x,C.y)&&Em(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function gm(e,t,i){var n=e;do{var o=n.prev,s=n.next.next;!Pm(o,s)&&Om(o,n,n.next,s)&&Tm(o,s)&&Tm(s,o)&&(t.push(o.i/i|0),t.push(n.i/i|0),t.push(s.i/i|0),jm(n),jm(n.next),n=e=s),n=n.next}while(n!==e);return dm(n)}function ym(e,t,i,n,o,s){var a=e;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&Sm(a,r)){var l=Nm(a,r);return a=dm(a,a.next),l=dm(l,l.next),mm(a,t,i,n,o,s,0),void mm(l,t,i,n,o,s,0)}r=r.next}a=a.next}while(a!==e)}function bm(e,t){return e.x-t.x}function Cm(e,t){var i=function(e,t){var i,n=t,o=-1/0,s=e.x,a=e.y;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var r=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(r<=s&&r>o&&(o=r,i=n.x=n.x&&n.x>=u&&s!==n.x&&xm(ai.x||n.x===i.x&&wm(i,n)))&&(i=n,p=l)),n=n.next}while(n!==c);return i}(e,t);if(!i)return t;var n=Nm(i,e);return dm(n,n.next),dm(i,i.next)}function wm(e,t){return Em(e.prev,e,t.prev)<0&&Em(t.next,e,e.next)<0}function km(e,t,i,n,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function _m(e){var t=e,i=e;do{(t.x=(e-a)*(s-r)&&(e-a)*(n-r)>=(i-a)*(t-r)&&(i-a)*(s-r)>=(o-a)*(n-r)}function Sm(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&Om(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Tm(e,t)&&Tm(t,e)&&function(e,t){var i=e,n=!1,o=(e.x+t.x)/2,s=(e.y+t.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&o<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==e);return n}(e,t)&&(Em(e.prev,e,t.prev)||Em(e,t.prev,t))||Pm(e,t)&&Em(e.prev,e,e.next)>0&&Em(t.prev,t,t.next)>0)}function Em(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Pm(e,t){return e.x===t.x&&e.y===t.y}function Om(e,t,i,n){var o=Mm(Em(e,t,i)),s=Mm(Em(e,t,n)),a=Mm(Em(i,n,e)),r=Mm(Em(i,n,t));return o!==s&&a!==r||!(0!==o||!Dm(e,i,t))||!(0!==s||!Dm(e,n,t))||!(0!==a||!Dm(i,e,n))||!(0!==r||!Dm(i,t,n))}function Dm(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Mm(e){return e>0?1:e<0?-1:0}function Tm(e,t){return Em(e.prev,e,e.next)<0?Em(e,t,e.next)>=0&&Em(e,e.prev,t)>=0:Em(e,t,e.prev)<0||Em(e,e.next,t)<0}function Nm(e,t){var i=new Am(e.i,e.x,e.y),n=new Am(t.i,t.x,t.y),o=e.next,s=t.prev;return e.next=t,t.prev=e,i.next=o,o.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function Bm(e,t,i,n){var o=new Am(e,t,i);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function jm(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Am(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}var Lm=function(){function e(){c()(this,e)}return h()(e,null,[{key:"area",value:function(e){for(var t=e.length,i=0,n=t-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:2,u=t&&t.length,h=u?t[0]*c:e.length,p=pm(e,0,h,c,!0),d=[];if(!p||p.next===p.prev)return d;if(u&&(p=function(e,t,i,n){var o,s,a,r=[];for(o=0,s=t.length;o80*c){i=o=e[0],n=s=e[1];for(var m=c;mo&&(o=a),r>s&&(s=r);l=0!==(l=Math.max(o-i,s-n))?32767/l:0}return mm(p,d,c,i,n,l,0),d}(i,n),l=0;l2&&e[t-1].equals(e[0])&&e.pop()}function Rm(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new hm([new Lu(.5,.5),new Lu(-.5,.5),new Lu(-.5,-.5),new Lu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(e=hu(this,t)).type="ExtrudeGeometry",e.parameters={shapes:i,options:n},i=Array.isArray(i)?i:[i];for(var o=e,s=[],a=[],r=0,l=i.length;rNumber.EPSILON){var p=Math.sqrt(u),d=Math.sqrt(l*l+c*c),m=t.x-r/p,f=t.y+a/p,v=((i.x-c/d-m)*c-(i.y+l/d-f)*l)/(a*c-r*l),g=(n=m+a*v-e.x)*n+(o=f+r*v-e.y)*o;if(g<=2)return new Lu(n,o);s=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(r)===Math.sign(c)&&(y=!0),y?(n=-r,o=a,s=Math.sqrt(u)):(n=a,o=r,s=Math.sqrt(u/2))}return new Lu(n/s,o/s)}for(var I=[],R=0,z=D.length,F=z-1,H=R+1;R=0;ge--){for(var ye=ge/y,be=f*Math.cos(ye*Math.PI/2),Ce=v*Math.sin(ye*Math.PI/2)+g,we=0,ke=D.length;we=0;){var n=i,o=i-1;o<0&&(o=e.length-1);for(var s=0,a=p+2*y;s0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,t);var o=(1+Math.sqrt(5))/2;return(e=hu(this,t,[[-1,o,0,1,o,0,-1,-o,0,1,-o,0,0,-1,o,0,1,o,0,-1,-o,0,1,-o,o,0,-1,o,0,1,-o,0,-1,-o,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],i,n])).type="IcosahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Vm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return c()(this,t),(e=hu(this,t,[[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],i,n])).type="OctahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Gm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="RingGeometry",e.parameters={innerRadius:i,outerRadius:n,thetaSegments:o,phiSegments:s,thetaStart:a,thetaLength:r},o=Math.max(3,o);for(var l=[],u=[],h=[],p=[],d=i,m=(n-i)/(s=Math.max(1,s)),f=new rh,v=new Lu,g=0;g<=s;g++){for(var y=0;y<=o;y++){var b=a+y/o*r;f.x=d*Math.cos(b),f.y=d*Math.sin(b),u.push(f.x,f.y,f.z),h.push(0,0,1),v.x=(f.x/n+1)/2,v.y=(f.y/n+1)/2,p.push(v.x,v.y)}d+=m}for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:new hm([new Lu(0,.5),new Lu(-.5,-.5),new Lu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;c()(this,t),(e=hu(this,t)).type="ShapeGeometry",e.parameters={shapes:i,curveSegments:n};var o=[],s=[],a=[],r=[],l=0,u=0;if(!1===Array.isArray(i))p(i);else for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Math.PI;c()(this,t),(e=hu(this,t)).type="SphereGeometry",e.parameters={radius:i,widthSegments:n,heightSegments:o,phiStart:s,phiLength:a,thetaStart:r,thetaLength:l},n=Math.max(3,Math.floor(n)),o=Math.max(2,Math.floor(o));for(var u=Math.min(r+l,Math.PI),h=0,p=[],d=new rh,m=new rh,f=[],v=[],g=[],y=[],b=0;b<=o;b++){var C=[],w=b/o,k=0;0===b&&0===r?k=.5/n:b===o&&u===Math.PI&&(k=-.5/n);for(var _=0;_<=n;_++){var x=_/n;d.x=-i*Math.cos(s+x*a)*Math.sin(r+w*l),d.y=i*Math.cos(r+w*l),d.z=i*Math.sin(s+x*a)*Math.sin(r+w*l),v.push(d.x,d.y,d.z),m.copy(d).normalize(),g.push(m.x,m.y,m.z),y.push(x+k,1-w),C.push(h++)}p.push(C)}for(var S=0;S0)&&f.push(P,O,M),(S!==o-1||u0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return c()(this,t),(e=hu(this,t,[[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],i,n])).type="TetrahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Jm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:48,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="TorusGeometry",e.parameters={radius:i,tube:n,radialSegments:o,tubularSegments:s,arc:a},o=Math.floor(o),s=Math.floor(s);for(var r=[],l=[],u=[],h=[],p=new rh,d=new rh,m=new rh,f=0;f<=o;f++)for(var v=0;v<=s;v++){var g=v/s*a,y=f/o*Math.PI*2;d.x=(i+n*Math.cos(y))*Math.cos(g),d.y=(i+n*Math.cos(y))*Math.sin(g),d.z=n*Math.sin(y),l.push(d.x,d.y,d.z),p.x=i*Math.cos(g),p.y=i*Math.sin(g),m.subVectors(d,p).normalize(),u.push(m.x,m.y,m.z),h.push(v/s),h.push(f/o)}for(var b=1;b<=o;b++)for(var C=1;C<=s;C++){var w=(s+1)*b+C-1,k=(s+1)*(b-1)+C-1,_=(s+1)*(b-1)+C,x=(s+1)*b+C;r.push(w,k,x),r.push(k,_,x)}return e.setIndex(r),e.setAttribute("position",new Lp(l,3)),e.setAttribute("normal",new Lp(u,3)),e.setAttribute("uv",new Lp(h,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}])}(Wp),qm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3;c()(this,t),(e=hu(this,t)).type="TorusKnotGeometry",e.parameters={radius:i,tube:n,tubularSegments:o,radialSegments:s,p:a,q:r},o=Math.floor(o),s=Math.floor(s);for(var l=[],u=[],h=[],p=[],d=new rh,m=new rh,f=new rh,v=new rh,g=new rh,y=new rh,b=new rh,C=0;C<=o;++C){var w=C/o*a*Math.PI*2;N(w,a,r,i,f),N(w+.01,a,r,i,v),y.subVectors(v,f),b.addVectors(v,f),g.crossVectors(y,b),b.crossVectors(g,y),g.normalize(),b.normalize();for(var k=0;k<=s;++k){var _=k/s*Math.PI*2,x=-n*Math.cos(_),S=n*Math.sin(_);d.x=f.x+(x*b.x+S*g.x),d.y=f.y+(x*b.y+S*g.y),d.z=f.z+(x*b.z+S*g.z),u.push(d.x,d.y,d.z),m.subVectors(d,f).normalize(),h.push(m.x,m.y,m.z),p.push(C/o),p.push(k/s)}}for(var E=1;E<=o;E++)for(var P=1;P<=s;P++){var O=(s+1)*(E-1)+(P-1),D=(s+1)*E+(P-1),M=(s+1)*E+P,T=(s+1)*(E-1)+P;l.push(O,D,T),l.push(D,M,T)}function N(e,t,i,n,o){var s=Math.cos(e),a=Math.sin(e),r=i/t*e,l=Math.cos(r);o.x=n*(2+l)*.5*s,o.y=n*(2+l)*a*.5,o.z=n*Math.sin(r)*.5}return e.setIndex(l),e.setAttribute("position",new Lp(u,3)),e.setAttribute("normal",new Lp(h,3)),e.setAttribute("uv",new Lp(p,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}])}(Wp),Xm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Xd(new rh(-1,-1,0),new rh(-1,1,0),new rh(1,1,0)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];c()(this,t),(e=hu(this,t)).type="TubeGeometry",e.parameters={path:i,tubularSegments:n,radius:o,radialSegments:s,closed:a};var r=i.computeFrenetFrames(n,a);e.tangents=r.tangents,e.normals=r.normals,e.binormals=r.binormals;var l=new rh,u=new rh,h=new Lu,p=new rh,d=[],m=[],f=[],v=[];function g(e){p=i.getPointAt(e/n,p);for(var t=r.normals[e],a=r.binormals[e],c=0;c<=s;c++){var h=c/s*Math.PI*2,f=Math.sin(h),v=-Math.cos(h);u.x=v*t.x+f*a.x,u.y=v*t.y+f*a.y,u.z=v*t.z+f*a.z,u.normalize(),m.push(u.x,u.y,u.z),l.x=p.x+o*u.x,l.y=p.y+o*u.y,l.z=p.z+o*u.z,d.push(l.x,l.y,l.z)}}return function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null;if(c()(this,t),(e=hu(this,t)).type="WireframeGeometry",e.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new rh,a=new rh;if(null!==i.index){var r=i.attributes.position,l=i.index,u=i.groups;0===u.length&&(u=[{start:0,count:l.count,materialIndex:0}]);for(var h=0,p=u.length;h=o)break e;var r=t[1];e=(o=t[--i-1]))break t}s=i,i=0}for(;i>>1;et;)--s;if(++s,0!==o||s!==n){o>=s&&(o=(s=Math.max(s,1))-1);var a=this.getValueSize();this.times=i.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}},{key:"validate",value:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var i=this.times,n=this.values,o=i.length;0===o&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var s=null,a=0;a!==o;a++){var r=i[a];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,r),e=!1;break}if(null!==s&&s>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,r,s),e=!1;break}s=r}if(void 0!==n&&$m(n))for(var l=0,c=n.length;l!==c;++l){var u=n[l];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,u),e=!1;break}}return e}},{key:"optimize",value:function(){for(var e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),n=2302===this.getInterpolation(),o=e.length-1,s=1,a=1;a0){e[s]=e[o];for(var g=o*i,y=s*i,b=0;b!==i;++b)t[y+b]=t[g+b];++s}return s!==e.length?(this.times=e.slice(0,s),this.values=t.slice(0,s*i)):(this.times=e,this.values=t),this}},{key:"clone",value:function(){var e=this.times.slice(),t=this.values.slice(),i=new(0,this.constructor)(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}],[{key:"toJSON",value:function(e){var t,i=e.constructor;if(i.toJSON!==this.toJSON)t=i.toJSON(e);else{t={name:e.name,times:Qm(e.times,Array),values:Qm(e.values,Array)};var n=e.getInterpolation();n!==e.DefaultInterpolation&&(t.interpolation=n)}return t.type=e.ValueTypeName,t}}])}();sf.prototype.TimeBufferType=Float32Array,sf.prototype.ValueBufferType=Float32Array,sf.prototype.DefaultInterpolation=2301;var af=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);af.prototype.ValueTypeName="bool",af.prototype.ValueBufferType=Array,af.prototype.DefaultInterpolation=2300,af.prototype.InterpolantFactoryMethodLinear=void 0,af.prototype.InterpolantFactoryMethodSmooth=void 0;var rf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);rf.prototype.ValueTypeName="color";var lf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);lf.prototype.ValueTypeName="number";var cf=function(e){function t(e,i,n,o){return c()(this,t),hu(this,t,[e,i,n,o])}return Me()(t,e),h()(t,[{key:"interpolate_",value:function(e,t,i,n){for(var o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,r=(i-t)/(n-t),l=e*a,c=l+a;l!==c;l+=4)ah.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(ef),uf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new cf(this.times,this.values,this.getValueSize(),e)}}])}(sf);uf.prototype.ValueTypeName="quaternion",uf.prototype.DefaultInterpolation=2301,uf.prototype.InterpolantFactoryMethodSmooth=void 0;var hf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);hf.prototype.ValueTypeName="string",hf.prototype.ValueBufferType=Array,hf.prototype.DefaultInterpolation=2300,hf.prototype.InterpolantFactoryMethodLinear=void 0,hf.prototype.InterpolantFactoryMethodSmooth=void 0;var pf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);pf.prototype.ValueTypeName="vector";var df=h()((function e(t,i,n){c()(this,e);var o,s=this,a=!1,r=0,l=0,u=[];this.onStart=void 0,this.onLoad=t,this.onProgress=i,this.onError=n,this.itemStart=function(e){l++,!1===a&&void 0!==s.onStart&&s.onStart(e,r,l),a=!0},this.itemEnd=function(e){r++,void 0!==s.onProgress&&s.onProgress(e,r,l),r===l&&(a=!1,void 0!==s.onLoad&&s.onLoad())},this.itemError=function(e){void 0!==s.onError&&s.onError(e)},this.resolveURL=function(e){return o?o(e):e},this.setURLModifier=function(e){return o=e,this},this.addHandler=function(e,t){return u.push(e,t),this},this.removeHandler=function(e){var t=u.indexOf(e);return-1!==t&&u.splice(t,2),this},this.getHandler=function(e){for(var t=0,i=u.length;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 Ef(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),i=Pf(this,t,[e,n]);var s="\n importScripts('".concat(i.getSourceRootPath(),"/3rdparty/turf.min.js');\n self.addEventListener('message', function (e) {\n let features = []\n eval(e.data.code);\n self.postMessage(features);\n }, false);\n "),a="data:text/javascript;charset=utf-8,"+encodeURIComponent(s);if(i._worker=new Worker(a),i.options.angle=i.options.angle||0,i.loaded=!1,i.ismove=!1,i._loadEvent=void 0,i._loaded=!1,i.options.position.lat>83.5&&(i.options.position.lat=83.5),i.options.position.lat<-83.5&&(i.options.position.lat=-83.5),i.options.show=!n.show&&!1!==n.show||n.show,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.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,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.attributeType=n.attributeType||"richText",n.text=n.text||{},i.options.text={value:n.text.value||"",show:!n.text.show&&!1!==n.text.show||n.text.show,position:n.text.position,fontSize:n.text.fontSize||0===n.text.fontSize?n.text.fontSize:20,color:n.text.color||"#ffffff",scaleByDistance:n.text.scaleByDistance||!1,near:n.text.near||0===n.text.near?n.text.near:2e3,far:n.text.far||0===n.text.far?n.text.far:1e5},i.options.text.position){var r=turf.point([i.options.position.lng,i.options.position.lat]),l=turf.point([i.options.text.position.lng,i.options.text.position.lat]),u=turf.distance(r,l,{units:"kilometers"}),h=turf.rhumbBearing(r,l);i._textToCenter={distance:u,angle:h}}return i.hierarchys=[],i._elms={},i.Dialog=o,i._isdrag=!1,i._EventBinding=new Ye,i.sdk.entityMap.get(i.options.id)?Ee()(i):(i.sdk.addIncetance(i.options.id,i),i.picking=!0,i.options.show&&Object(Z.f)(0,i.options.id),i._entityArray=[],i.init(),i)}return Me()(t,e),h()(t,[{key:"type",get:function(){return"GroundSvg"}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{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.options.show},set:function(e){var i,n,o,s,a,r;"boolean"==typeof e?(this.options.text&&this.options.text.show&&this.text&&(this.showView&&3!=this.showView?this.text.show=!1:this.text.show=e),i=t,n="show",o=e,s=this,a=1,r=1,Qc()(Oe()(r?i.prototype:i),n,o,s,a)):console.error("参数必须为boolean")}},{key:"position",get:function(){return this.options.position},set:function(e){var t=this;if(this.options.position=e,this.options.position.lat>83.5&&(this.options.position.lat=83.5),this.options.position.lat<-83.5&&(this.options.position.lat=-83.5),this._update(),this._textToCenter){var i=turf.point([this.options.position.lng,this.options.position.lat]),n=turf.destination(i,this._textToCenter.distance,this._textToCenter.angle,{units:"kilometers"}).geometry.coordinates;this.getClampToHeight({lng:n[0],lat:n[1]}).then((function(e){var i=[n[0],n[1],e];t.text&&(t.text.position=i)}))}}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e,this.options.color)for(var i=0;i0&&0===i&&(this.options.angle=360),this._elms.angle&&this._elms.angle.forEach((function(e){e.value=t.options.angle})),this._update()}},{key:"scale",get:function(){return this.options.scale},set:function(e){this.options.scale.x=e.x,this.options.scale.y=e.y,this._elms&&(this._elms.xRange&&(this._elms.xRange.value=this.options.scale.x),this._elms.yRange&&(this._elms.yRange.value=this.options.scale.y),this._elms.xInput&&(this._elms.xInput.value=this.options.scale.x),this._elms.yInput&&(this._elms.yInput.value=this.options.scale.y)),this._update()}},{key:"flipeY",get:function(){return this.options.flipe.y},set:function(e){"boolean"==typeof e?(this.options.flipe.y=e,this._update()):console.error("参数必须为boolean")}},{key:"flipeX",get:function(){return this.options.flipe.x},set:function(e){"boolean"==typeof e?(this.options.flipe.x=e,this._update()):console.error("参数必须为boolean")}},{key:"textValue",get:function(){return this.options.text.value},set:function(e){this.options.text.value=e,this.text?this.text.text=e:t.createText(this),this._elms.textValue&&this._elms.textValue.forEach((function(t){t.value=e}))}},{key:"textShow",get:function(){return this.options.text.show},set:function(e){var t=this;this.options.text.show=e,this.show?(this.showView&&3!=this.showView?this.text&&(this.text.show=!1):this.text&&(this.text.show=e),this.options.text.position&&setTimeout((function(){t.options.text.position.alt?t.text&&(t.text.position=[t.options.text.position.lng,t.options.text.position.lat,t.options.text.position.alt]):t.getClampToHeight({lng:t.options.text.position.lng,lat:t.options.text.position.lat}).then((function(e){t.text&&(t.text.position=[t.options.text.position.lng,t.options.text.position.lat,e])}))}),0)):this.text&&(this.text.show=!1),this._elms.textShow&&this._elms.textShow.forEach((function(t){t.checked=e}))}},{key:"textColor",get:function(){return this.options.text.color},set:function(e){var t=this;this.options.text.color=e,this.text&&(this.text.color=e),this._elms.textColor&&this._elms.textColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.textColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.textColor=e},clear:function(){t.textColor="rgba(255,255,255,1)"}});t._elms.textColor[i]=n}))}},{key:"textFontSize",get:function(){return this.options.text.fontSize},set:function(e){this.options.text.fontSize=e,this.text&&(this.text.fontSize=e,this.text.pixelOffset=e),this._elms.textFontSize&&this._elms.textFontSize.forEach((function(t){t.value=e}))}},{key:"textScaleByDistance",get:function(){return this.options.text.scaleByDistance},set:function(e){this.options.text.scaleByDistance=e,this.text&&(this.text.scaleByDistance=e),this._elms.textScaleByDistance&&this._elms.textScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"textNear",get:function(){return this.options.text.near},set:function(e){var t=e;t>this.textFar&&(t=this.textFar),this.options.text.near=t,this.text&&(this.text.near=t),this._elms.textNear&&this._elms.textNear.forEach((function(e){e.value=t}))}},{key:"textFar",get:function(){return this.options.text.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(!(lS[E]&&(w=S[E]),k(k=Math.abs(k))&&(k=w);var P=k,O=4e3/(k=k*(10/3)*100)/5;P*=O;for(var D=0;D=Number(e.target.min))&&(p.scale={x:t,y:p.scale.y})})),c.addEventListener("blur",(function(e){var t=e.target.value;t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t=Number(e.target.min))&&(p.scale={x:p.scale.x,y:t})})),h.addEventListener("blur",(function(e){var t=e.target.value;t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t-270&&y<-90||y<270&&y>90)&&(y+=180,B=!0),((b=D-M)>-360&&b<-90||b<360&&b>90)&&(b+=180,j=!0),B&&j?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):j?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),p=Math.PI/180*y,d=Math.PI/180*b,m=Math.cos(p)*N*2,f=Math.cos(d)*N*2,i.scale.x=Math.abs(m)/3.5,i.scale.y=Math.abs(f)/3.5,e.abrupt("break",102);case 57:return M=(turf.rhumbBearing(E,turf.point(k[2]))+360-i.angle)%360,(b=D-M)>-270&&b<-90||b<270&&b>90?(b+=180,i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,f=Math.cos(d)*N*2,i.scale.y=f/3.5,e.abrupt("break",102);case 64:return T=(turf.rhumbBearing(E,turf.point(k[6]))+360-i.angle)%360,M=(turf.rhumbBearing(E,turf.point(k[2]))+360-i.angle)%360,((y=D-T)>-360&&y<-90||y<360&&y>90)&&(y+=180,B=!0),((b=D-M)>-360&&b<-90||b<360&&b>90)&&(b+=180,j=!0),B&&j?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):j?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),p=Math.PI/180*y,d=Math.PI/180*b,m=Math.cos(p)*N*2,f=Math.cos(d)*N*2,i.scale.x=Math.abs(m)/3.5,i.scale.y=Math.abs(f)/3.5,e.abrupt("break",102);case 78:return T=(turf.rhumbBearing(E,turf.point(k[4]))+360-i.angle)%360,(y=D-T)>-360&&y<-90||y<360&&y>90?(y+=180,i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")),p=Math.PI/180*y,m=Math.cos(p)*N*2,i.scale.x=m/3.5,e.abrupt("break",102);case 85:return c.lat>83.5&&(c.lat=83.5),c.lat<-83.5&&(c.lat=-83.5),i.position={lng:c.lng,lat:c.lat},A=c.lng-l.lng,L=c.lat-l.lat,i.bbox[0]=i.bbox[0]+A,i.bbox[1]=i.bbox[1]+L,i.bbox[2]=i.bbox[2]+A,i.bbox[3]=i.bbox[3]+L,e.abrupt("break",102);case 95:return T=(turf.rhumbBearing(E,turf.point(k[6]))+360-i.angle)%360,(y=D-T)>-360&&y<-90||y<360&&y>90?(y+=180,i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")),p=Math.PI/180*y,m=Math.cos(p)*N*2,i.scale.x=m/3.5,e.abrupt("break",102);case 102:u=u/(n/2)*100,h=h/(o/2)*100,(I=xf({},i.scale)).x=I.x+u,I.y=I.y-h,I.y>200&&(I.y=200),I.y<.001&&(I.y=.001),I.x>200&&(I.x=200),I.x<.001&&(I.x=.001),i.scale=xf({},I),e.next=141;break;case 114:R=i.sdk.viewer.scene.drillPick(t.endPosition),F=0;case 116:if(!(F90&&(c+=180);var h=[c,u],p=turf.point(h),d=turf.rhumbDestination(p,o[s][r].distance,o[s][r].angle,{units:"kilometers"}),m=nt()(d.geometry.coordinates);m[2]=10,a.push((l=Cesium.Cartesian3).fromDegrees.apply(l,nt()(m)))}0===s?i.positions=a:n.push(a)}return i.holes=n,i}}},{key:"_updateGeojson",value:function(e,t,i){if(this._loaded){var n=Math.abs(this.bbox[0]-this.bbox[2]),o=Math.abs(this.bbox[1]-this.bbox[3]);if("object"===st()(e[0]))for(var s=0;so[2]&&(t=o[0],o[0]=o[2],o[2]=t),o[1]>o[3]&&(t=o[1],o[1]=o[3],o[3]=t);for(var c=[],u=JSON.parse(JSON.stringify(this.geojson)),h=function(t){for(var i=0;i=0;t--)this.sdk.viewer.entities.remove(this.entity.values[t]);return this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=14,Object(J.g)(this.sdk,this.options.id);case 14:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(e){this.options.attribute.link.content.push({name:"链接",url:e}),this.attributeLink=this.options.attribute.link.content}},{key:"openRichTextEditor",value:function(e){var t=this;tt.open(this.options.id,this.options.name,this.options.richTextContent),tt.primaryCallBack=function(e){t.options.richTextContent=e}}},{key:"setPosition",value:function(e){if(e){this.ismove=!0;var t={};t.lng=e.position.lng,t.lat=e.position.lat,this.position=t}else this.ismove=!1;this._update()}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[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=24;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=xf({},this.options.position)).hasOwnProperty("alt")){e.next=17;break}return e.next=16,this.getClampToHeight(r);case 16:r.alt=e.sent;case 17: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=37;break;case 24:l=[],c=0;case 26:if(!(c=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 Mf(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=Tf(this,t,[e,n]),YJ.RoutePlanningArrays.push(i),i.options.width=n.width||4,i.options.color=n.color||"#ff0000",i.options.gps=n.gps||!1,i.Dialog=o,i._elms={},i.start={lng:null,lat:null},i.end={lng:null,lat:null},i.tools=new b.a(e),i.init(),i}return Me()(t,e),h()(t,[{key:"init",value:function(){var e=this;this.startEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-start"),!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity.show=!1:this.startEntity.show=!0,this.startEntity.position=new Cesium.CallbackProperty((function(){var t=e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.startLng,e.startLat));return e.clickCallBack({start:t,end:e.endEntity.position}),t}),!1),this.startEntity.billboard={image:this.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.endEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-end"),!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity.show=!1:this.endEntity.show=!0,this.endEntity.position=new Cesium.CallbackProperty((function(){var t=e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat));return e.clickCallBack({start:e.startEntity.position,end:t}),t}),!1),this.endEntity.billboard={image:this.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.edit(!0),this.clear()}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"startLng",get:function(){return this.start.lng},set:function(e){this.start.lng=e,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLng&&this._elms.startLng.forEach((function(t){t.value=e}))}},{key:"startLat",get:function(){return this.start.lat},set:function(e){this.start.lat=e,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLat&&this._elms.startLat.forEach((function(t){t.value=e}))}},{key:"endLng",get:function(){return this.end.lng},set:function(e){this.end.lng=e,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLng&&this._elms.endLng.forEach((function(t){t.value=e}))}},{key:"endLat",get:function(){return this.end.lat},set:function(e){this.end.lat=e,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLat&&this._elms.endLat.forEach((function(t){t.value=e}))}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var 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),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),i?(this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),document.getElementById("routeQuery").addEventListener("click",(function(){!a.startLng&&0!==a.startLng||!a.startLat&&0!==a.startLat||!a.endLng&&0!==a.endLng||!a.endLat&&0!==a.endLat?a.tools.message({type:"warning",text:"请先设置起点和终点坐标!"}):(!a.startEntity&&(a.startEntity=a.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return a.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(a.startLng,a.startLat))}),!1),billboard:{image:a.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),a.startEntity.show=!0,!a.endEntity&&(a.endEntity=a.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return a.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(a.endLng,a.endLat))}),!1),billboard:{image:a.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),a.endEntity.show=!0,a.Dialog.queryCallBack&&a.Dialog.queryCallBack({start:[a.startLng,a.startLat],end:[a.endLng,a.endLat]}))})),document.getElementById("clearRoute").addEventListener("click",(function(){a.clear()})),document.getElementsByTagName("head")[0].appendChild(this._element_style),n=document.getElementsByClassName("RoutePlanning")[0],this.options.gps&&((o=document.createElement("button")).innerHTML="当前位置",o.style.marginLeft="10px",o.setAttribute("data-is","start"),o.addEventListener("click",(function(e){a.getLocateCurrent(e)})),n.getElementsByClassName("start-col")[0].appendChild(o),n._element.body.getElementsByClassName("end-pick-btn")[0].style.marginRight="91px"),s=n.getElementsByTagName("*"),t.EventBinding(this,s)):(this._element_style&&(document.getElementsByTagName("head")[0].removeChild(this._element_style),this._element_style=null),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:function(){this.startEntity&&(this.sdk.viewer.entities.remove(this.startEntity),this.startEntity=null),this.endEntity&&(this.sdk.viewer.entities.remove(this.endEntity),this.endEntity=null),this.entity&&(this.sdk.viewer.entities.remove(this.entity),this.entity=null),this.startExtensionEntity&&(this.sdk.viewer.entities.remove(this.startExtensionEntity),this.startExtensionEntity=null),this.endExtensionEntity&&(this.sdk.viewer.entities.remove(this.endExtensionEntity),this.endExtensionEntity=null)}},{key:"destroy",value:function(){this.clear(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"getLocateCurrent",value:function(e){var t=this;this.reconnecting&&this.reconnecting.close(),this.options.host=this.options.host||Object(n.a)();var i;i=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+i),this.reconnecting.onopen=function(i){t.reconnecting.onmessage=function(i){t.data=JSON.parse(i.data),t.data&&t.data.rmc&&(t.reconnecting.close(),"start"===e.srcElement.getAttribute("data-is")?(t.startLng=t.data.rmc.lng,t.startLat=t.data.rmc.lat,!t.startEntity&&(t.startEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.startLng,t.startLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.startEntity.show=!0):(t.endLng=t.data.rmc.lng,t.endLat=t.data.rmc.lat,!t.endEntity&&(t.endEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.endEntity.show=!0))}}}},{key:"createRoute",value:function(e){for(var t=[],i=0;i=500?(t.tip&&t.tip.destroy(),t.event&&t.event.destroy()):i(0,n)}))}))}},{key:"pickEndPos",value:function(e){var t=this;this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=new St.a("左键选择终点坐标,右键取消",this.sdk),this.event=new te.a(this.sdk),this.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(i,n){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.endLng=o.lng,t.endLat=o.lat,e(o),!t.endEntity&&(t.endEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.endEntity.show=!0,t.tip&&t.tip.destroy(),t.event&&t.event.destroy()})),this.event.mouse_right((function(e,i){t.tip&&t.tip.destroy(),t.event&&t.event.destroy()}))}},{key:"flicker",value:function(){}}],[{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=Df(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i
            ').concat(s[t].properties.fid,"
            ")),s[t].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
            ').concat(s[t].properties[o],"
            "));e+=i=i+n+""}return e},e.next=8,new Te.a(t.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Nf=e.sent,e.next=11,Nf.init();case 11:for(g in r=nt()(t.geojson.features),i=r.length,s=r.slice(o*(n-1),o*n),l=a(),(c=document.createElement("div")).style.height="100%",'',u='
            ',h='
            ',p="",d='',m='
            ',f="",v=1,"fid"in t.geojson.features[0].properties&&(p+=''),f+=''),d+=''),v++),t.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(p+=''),f+=''),d+='"),v++);'
            暂无数据
            ',u=u+(h=h+(p+='')+(d+="")+"
            fid
            ').concat(g,"
            ")+(m=m+(f+="")+(""+l+"")+'
            暂无数据
            ')+"",c.innerHTML=''+u+'',y=c.getElementsByClassName("el-table__empty-block")[0],0==s.length?y.style.display="flex":y.style.display="none",Nf.contentAppChild(c),b=c.getElementsByClassName("el-table__header-wrapper")[0],(C=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){b.scrollLeft=e.target.scrollLeft})),Nf._element.title.style.height="40px",Nf._element.body.style.width="65%",Nf._element.body.style.height="80%",Nf._element.content.style.height="calc(100% - 40px)",Nf._element.content.style.overflow="hidden",Nf._element.foot.style.display="none",C.style.height="calc(100% - ".concat(b.offsetHeight,"px)"),at(w=c.getElementsByClassName("pagination")[0],i,o,n,(function(e){n=e,s=r.slice(o*(n-1),o*n);var t=a();c.getElementsByTagName("tbody")[0].innerHTML=t,0==s.length?y.style.display="flex":y.style.display="none"})),k=function(){for(var e=c.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],l=[],u=0;u
            ').concat(n[t].properties.fid,"
            ")),n[t].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
            ').concat(n[t].properties[s],"
            "));e+=i=i+o+""}return e},s=!1,a=0;case 5:if(!(a',u='
            ',h="",p='',d='
            ',m="",f=1,"fid"in t.geojson.features[0].properties&&(h+=''),m+=''),p+=''),f++),t.geojson.features[0].properties)"id"!==v&&"ID"!==v&&"fid"!==v&&(h+=''),m+=''),p+='"),f++);if(g='\n \n \n '.concat((c=c+(u=u+(h+='')+(p+="")+"
            fid
            ').concat(v,"
            ")+(d=d+(m+="")+(""+r+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(y='\n \n '.concat(n[0].content.richTextContent,"\n \n "),g+=y),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(b=0;b\n \n \n '),g+=w;for(g+="",l.innerHTML=g,Lf.contentAppChild(l),new Je("shp-list-id-tabs"),(k=l.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",k.style.display="flex",k.style.flexDirection="column",k.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=k.getElementsByClassName("DIV-cy-tab-content-pane"),x=0;x<_.length;x++)_[x].style.height="100%";E=l.getElementsByClassName("el-table__header-wrapper")[0],(P=l.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){E.scrollLeft=e.target.scrollLeft})),Lf._element.title.style.height="40px",Lf._element.body.style.width="65%",Lf._element.body.style.height="80%",Lf._element.content.style.height="calc(100% - 40px)",Lf._element.foot.style.display="none",P.style.height="calc(100% - ".concat(E.offsetHeight,"px)");case 64:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function zf(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 Ff(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)?Ff(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 Ff(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=Gf(this,t,[e,n])).viewer=e.viewer,i.options.path?(i.options.fileName=n.fileName||"未命名对象",i.options.field=n.field||"id",i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i):(i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),Ee()(i))}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.setShow(e)}},{key:"on",value:function(){if(this.options.path)return this.init()}},{key:"init",value:(a=_()(S.a.mark((function e(){var i,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",this.options.host=this.options.host||Object(n.a)(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load":this.options.host+"/yjearth4.0/api/v1/vector/load",i+="?path="+this.options.path,e.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 6:if(200!==(o=e.sent).status){e.next=19;break}return e.next=10,o.json();case 10:if(200!==(s=e.sent).code&&0!==s.code){e.next=18;break}return this.data=s.data,e.next=15,this.formatData();case 15:return e.abrupt("return",t.create(this));case 18:return e.abrupt("return",console.error(s.message));case 19:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"formatData",value:(s=_()(S.a.mark((function e(){var t,i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){if(e.data){var o;(o=i.list).push.apply(o,nt()(e.data));for(var s=0;s0&&void 0!==h[0]&&h[0],i=h.length>1&&void 0!==h[1]?h[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=25;break}return e.next=7,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){u.fileName=u.fileName.trim(),u.fileName||(u.fileName="未命名对象"),u.originalOptions.fileName=u.fileName,u.originalOptions.field=u.field,u._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:u.options.id,fileName:u.originalOptions.fileName,field:u.originalOptions.field})},closeCallBack:function(){u.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:for(l in this._DialogObject=e.sent,n='\n
            \n
            \n 文件名称:\n \n
            \n
            \n
            \n
            \n 名称字段选择:\n \n
            \n
            \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){u.options.fileName=s.value})),a=o.getElementsByClassName("input-select")[0],r="",this.geojson.features[0].properties)c='"),r+=c;a.innerHTML=r,a.value=this.options.field,a.addEventListener("input",(function(){u.options.field=a.value})),this._elms.fileName=s,this._elms.field=a,e.next=26;break;case 25:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"editById",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=this,y=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y.length>0&&void 0!==y[0]&&y[0],i=y.length>1?y[1]:void 0,n=y.length>2&&void 0!==y[2]?y[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),o="",!t){e.next=48;break}a={},r=0;case 8:if(!(r\n
            \n 内容类型:\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 ',(c=document.createElement("div")).innerHTML=l,this._DialogObject.contentAppChild(c),c.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",u=c.getElementsByClassName("attribute-select")[0],h=c.getElementsByClassName("link_add_btn")[0],p=c.getElementsByClassName("open-richText-btn")[0],d=this._DialogObject._element.content.getElementsByClassName("attribute-content"),m=0;m-1?d[m].style.display="block":d[m].style.display="none";u.addEventListener("change",(function(){g._DialogObject.attribute.attributeType=u.value;for(var e=0;e-1?d[e].style.display="block":d[e].style.display="none"})),h.addEventListener("click",_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(g._DialogObject.attribute.link.content.push({name:"链接",url:g._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),g._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",g.setAttributeLinkById(i,g._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return e.stop()}}),e)})))),p.addEventListener("click",(function(){tt.open(i,i,g._DialogObject.attribute.richTextContent),tt.primaryCallBack=function(e){g._DialogObject.attribute.richTextContent=e}})),f=c.getElementsByClassName("camera-name")[0],v=c.getElementsByClassName("camera-select")[0],f.addEventListener("input",(function(){o=f.value})),this.cameraSelect&&this.cameraSelect(o),v.addEventListener("click",(function(){g.cameraSelect&&g.cameraSelect(o)})),e.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"editContentById",value:function(e,t){for(var i=0;i0?o.getElementsByClassName("table-empty")[0].style.display="none":o.getElementsByClassName("table-empty")[0].style.display="flex";for(var a=0;a\n
              '+this._DialogObject.attribute.link.content[a].url+'
              \n
              \n \n \n
              \n ',l=document.createRange().createContextualFragment(r);s.appendChild(l)}for(var c=s.getElementsByClassName("tr"),u={linkEdit:(i=_()(S.a.mark((function t(i){var o,s,a,r,l;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.setAttributeLinkById(e,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],a=s.getElementsByClassName("tr"),r=S.a.mark((function e(t){var o,s,r,l,c,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==t){e.next=33;break}a[t].innerHTML='\n
              \n \n
              \n
              \n
              \n \n \n
              \n
              \n
              \n \n \n
              ',(o=a[t].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=a[t].getElementsByTagName("button"),r=0;case 8:if(!(r1&&void 0!==arguments[1]?arguments[1]:{};if(e){for(var i=0;i0){at(n,t.data.total,10,1,(function(t){i.cameraSelect&&i.cameraSelect(e,t)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(e){var n='\n
              \n
              \n \n 绑定\n
              \n
              ').concat(t.data.list[e].cameraName,'
              \n
              ').concat(o[t.data.list[e].type],'
              \n
              ').concat(t.data.list[e].ip,'
              \n
              ').concat(t.data.list[e].port,'
              \n
              ').concat(t.data.list[e].userName,'
              \n
              ').concat(t.data.list[e].passWord,"
              \n
              "),s=document.createRange().createContextualFragment(n),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(t.data.list[e]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==t.data.list[e].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;l0){var l=turf.featureCollection(i),c=turf.envelope(l);c&&c.bbox&&4==c.bbox.length&&(e.range={max_x:c.bbox[2],max_y:c.bbox[3],min_x:c.bbox[0],min_y:c.bbox[1]})}}},{key:"createPoints",value:function(e,t){if(t){for(var i=new Cesium.PointPrimitiveCollection({scene:e.viewer.scene}),n=0;n0&&e.entity.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineColorAppearance}))}}},{key:"createPolygons",value:function(e,t){if(t){for(var i=[],n=0;n0){var c=new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})});e.entity.add(c)}}}},{key:"createTableContent",value:function(e){for(var t="",i=0;i
              ').concat(e.currentData[i].attr[s],"
              ");t+=n=n+o+""}return t}}]);var i,o,s,a}(vt);function Yf(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 Jf(e){for(var t=1;t
              ').concat(s[t].properties.fid,"
              ")),s[t].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
              ').concat(s[t].properties[o],"
              "));e+=i=i+n+""}return e},e.next=8,new Te.a(t.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Wf=e.sent,e.next=11,Wf.init();case 11:for(g in r=nt()(t.geojson.features),i=r.length,s=r.slice(o*(n-1),o*n),l=a(),(c=document.createElement("div")).style.height="100%",'',u='
              ',h='
              ',p="",d='',m='
              ',f="",v=1,"fid"in t.geojson.features[0].properties&&(p+=''),f+=''),d+=''),v++),t.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(p+=''),f+=''),d+='"),v++);'
              暂无数据
              ',u=u+(h=h+(p+='')+(d+="")+"
              fid
              ').concat(g,"
              ")+(m=m+(f+="")+(""+l+"")+'
              暂无数据
              ')+"",c.innerHTML=''+u+'',y=c.getElementsByClassName("el-table__empty-block")[0],0==s.length?y.style.display="flex":y.style.display="none",Wf.contentAppChild(c),b=c.getElementsByClassName("el-table__header-wrapper")[0],(C=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){b.scrollLeft=e.target.scrollLeft})),Wf._element.title.style.height="40px",Wf._element.body.style.width="65%",Wf._element.body.style.height="80%",Wf._element.content.style.height="calc(100% - 40px)",Wf._element.content.style.overflow="hidden",Wf._element.foot.style.display="none",C.style.height="calc(100% - ".concat(b.offsetHeight,"px)"),at(w=c.getElementsByClassName("pagination")[0],i,o,n,(function(e){n=e,s=r.slice(o*(n-1),o*n);var t=a();c.getElementsByTagName("tbody")[0].innerHTML=t,0==s.length?y.style.display="flex":y.style.display="none"})),k=function(){for(var e=c.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],l=[],u=0;u
              ').concat(n[t].properties.fid,"
              ")),n[t].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
              ').concat(n[t].properties[s],"
              "));e+=i=i+o+""}return e},s=!1,a=0;case 5:if(!(a',u='
              ',h="",p='',d='
              ',m="",f=1,"fid"in t.geojson.features[0].properties&&(h+=''),m+=''),p+=''),f++),t.geojson.features[0].properties)"id"!==v&&"ID"!==v&&"fid"!==v&&(h+=''),m+=''),p+='"),f++);if(g='\n \n \n '.concat((c=c+(u=u+(h+='')+(p+="")+"
              fid
              ').concat(v,"
              ")+(d=d+(m+="")+(""+r+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(y='\n \n '.concat(n[0].content.richTextContent,"\n \n "),g+=y),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(b=0;b\n \n \n '),g+=w;for(g+="",l.innerHTML=g,qf.contentAppChild(l),new Je("shp-list-id-tabs"),(k=l.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",k.style.display="flex",k.style.flexDirection="column",k.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=k.getElementsByClassName("DIV-cy-tab-content-pane"),x=0;x<_.length;x++)_[x].style.height="100%";E=l.getElementsByClassName("el-table__header-wrapper")[0],(P=l.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){E.scrollLeft=e.target.scrollLeft})),qf._element.title.style.height="40px",qf._element.body.style.width="65%",qf._element.body.style.height="80%",qf._element.content.style.height="calc(100% - 40px)",qf._element.foot.style.display="none",P.style.height="calc(100% - ".concat(E.offsetHeight,"px)");case 64:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function Kf(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 Qf(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)?Qf(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 Qf(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]:{};if(c()(this,t),iv(i=tv(this,t,[e,n]),rv,void 0),iv(i,lv,!1),iv(i,cv,[]),i.viewer=e.viewer,!i.options.path)return i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),Ee()(i);for(var s in i.colors=av,i.options.headTables=n.headTables||[],i.options.name=n.name||"未命名对象",i.options.path.endsWith(".kml")||(i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.opacity=n.opacity||0===n.opacity?n.opacity:1),i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i.sdk.addIncetance(i.options.id,i),i.disaster_type_colors=av[i.options.disaster_type]?ev({},av[i.options.disaster_type]):void 0,i.disaster_type_colors)i.disaster_type_colors[s]=i.cmykToRgb(i.disaster_type_colors[s]);return i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"vector"}},{key:"show",get:function(){return this.options.show},set:function(e){this.setShow(e)}},{key:"opacity",get:function(){return this.options.opacity},set:function(e){this.options.opacity=e,this.entity&&this.entity.entities.values.forEach((function(t){t.point&&(t.point.color=t.point.color._value.withAlpha(e)),t.polygon&&(t.polygon.material=t.polygon.material.color._value.withAlpha(e)),t.polyline&&(t.polyline.material=t.polyline.material.color._value.withAlpha(e))}))}},{key:"on",value:function(){if(this.sdk&&this.viewer&&this.options.path)return this.init()}},{key:"init",value:(l=_()(S.a.mark((function e(){var i=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_()(S.a.mark((function e(o,s){var a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.options.host=i.options.host||Object(n.a)(),a=i.options.host+"/gdal/import",(r=new FormData).append("path",i.options.path),e.next=7,fetch(a,{method:"post",headers:{Authorization:Object(n.b)()},body:r});case 7:if(l=e.sent,console.log("response",l),200!==l.status){e.next=21;break}return e.next=12,l.arrayBuffer();case 12:return c=e.sent,u=new Uint8Array(c),h=i.decompressGzip(u),0===i.data.length&&(i.data=JSON.parse(h)),console.log("this.data",i.data),e.next=19,i.formatData();case 19:t.create(i),o();case 21:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return l.apply(this,arguments)})},{key:"formatData",value:(r=_()(S.a.mark((function e(){var t,i,n,o,a,r,l,c,u;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],i=function(e,t,n){if(e)if(Array.isArray(e)){for(var o=!1,s=0;s0&&void 0!==C[0]&&C[0],i=C.length>1&&void 0!==C[1]?C[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=74;break}return e.next=7,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){b.name=b.name.trim(),b.name||(b.name="未命名对象"),b.originalOptions.name=b.name,b.originalOptions.field=b.field,b._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:b.options.id,name:b.originalOptions.name,field:b.originalOptions.field})},closeCallBack:function(){b.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:this._DialogObject=e.sent,n='\n
              \n
              \n 文件名称:\n \n
              \n
              \n
              \n
              \n 名称字段选择:\n
              \n
              \n
              \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.name,s.addEventListener("input",(function(){b.options.name=s.value})),a=[],e.t0=S.a.keys(this.geojson.features[0].properties);case 17:if((e.t1=e.t0()).done){e.next=31;break}r=e.t1.value,l=r,c=0;case 21:if(!(c').concat(v,""),m+=y,e.next=52;break;case 67:d.innerHTML=m,d.value=this.options.field,d.addEventListener("input",(function(){b.options.field=d.value})),this._elms.name=s,this._elms.field=d,e.next=75;break;case 74:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 75:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"editContentById",value:function(e,t){for(var i=0;i0?o.getElementsByClassName("table-empty")[0].style.display="none":o.getElementsByClassName("table-empty")[0].style.display="flex";for(var a=0;a\n
              '+this._DialogObject.attribute.link.content[a].url+'
              \n
              \n \n \n
              \n ',l=document.createRange().createContextualFragment(r);s.appendChild(l)}for(var c=s.getElementsByClassName("tr"),u={linkEdit:(i=_()(S.a.mark((function t(i){var o,s,a,r,l;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.setAttributeLinkById(e,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],a=s.getElementsByClassName("tr"),r=S.a.mark((function e(t){var o,s,r,l,c,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==t){e.next=33;break}a[t].innerHTML='\n
              \n \n
              \n
              \n
              \n \n \n
              \n
              \n
              \n \n \n
              ',(o=a[t].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=a[t].getElementsByTagName("button"),r=0;case 8:if(!(r1&&void 0!==d[1]?d[1]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!t){e.next=14;break}n=S.a.mark((function e(n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p.geojson.features[n].id===t&&("Point"===p.geojson.features[n].geometry.type?p.getClampToHeight({lng:p.geojson.features[n].geometry.coordinates[0],lat:p.geojson.features[n].geometry.coordinates[1]}).then((function(e){p.sdk.viewer.camera.flyTo({orientation:i.orientation,destination:Cesium.Cartesian3.fromDegrees(p.geojson.features[n].geometry.coordinates[0],p.geojson.features[n].geometry.coordinates[1],e+(i.height||500))})})):(o=p.geojson.features[n].geometry.range)&&(s=[],p.getClampToHeight({lng:o[0],lat:o[1]}).then((function(e){var t=Cesium.Cartesian3.fromDegrees(o[0],o[1],e);s.push(t.x,t.y,t.z),p.getClampToHeight({lng:o[2],lat:o[3]}).then((function(e){var t=Cesium.Cartesian3.fromDegrees(o[2],o[3],e);s.push(t.x,t.y,t.z);var n=Cesium.BoundingSphere.fromVertices(s);p.sdk.viewer.camera.flyToBoundingSphere(n,{offset:i.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}})}))}))));case 1:case"end":return e.stop()}}),e)})),o=0;case 7:if(!(oo&&(o=l),s+=16}s=s+10+5*(n.length-1),o+=30,t.width=o,t.height=s;var c=i.createLinearGradient(0,0,o,s);return i.fillStyle=c,i.fillRect(0,0,o,s),i.fillStyle="#ffffff",i.font="16px YaHei",i.strokeStyle="#000000",i.strokeText(n,15,16*n.length+6.25+5*n.length),i.fillText(n,15,16*n.length+6.25+n.length-5),i.moveTo(o/2,s),i.stroke(),i.closePath(),t.toDataURL()}},{key:"createTableContent",value:function(e){for(var t="",i=0;i
              ').concat(e.currentData[i].attr[s],"
              ");t+=n=n+o+""}return t}}]);var i,o,a,r,l}(vt);function hv(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 pv(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),(i=dv(this,t,[e,n])).options.text=n.text||"未命名对象";for(var s=i.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));if(s.length>70&&s.splice(70-s.length),i.options.text=s.join("\n"),i.options.show=!n.show&&!1!==n.show||n.show,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.color=n.color||"#FFC107",i.options.position=n.position,delete i.options.name,!i.options.position&&i.options.positions){var r=function(e,t){var i=t[0]-e[0],n=t[1]-e[1];return Math.atan2(n,i)};i.options.position={lng:(i.options.positions[0].lng+i.options.positions[1].lng)/2,lat:(i.options.positions[0].lat+i.options.positions[1].lat)/2};var l=turf.point([i.options.positions[0].lng,i.options.positions[0].lat]),u=turf.point([i.options.positions[1].lng,i.options.positions[1].lat]),h={units:"miles"},p=turf.rhumbDistance(l,u,h),d=r([i.options.positions[0].lng,i.options.positions[0].lat],[i.options.positions[1].lng,i.options.positions[1].lat]);i.options.angle=(360+Cesium.Math.toDegrees(d))%360;var m=1e-4*Math.abs(Math.cos(Math.PI/180*i.options.position.lat)),f=i.getcanvas(),v=f.height/f.width,g=i.options.position.lng-1e-4/v,y=i.options.position.lat-m,b=i.options.position.lng+1e-4/v,C=i.options.position.lat+m,w=(y+C)/2,k=turf.point([g,w]),_=turf.point([b,w]),x=turf.rhumbDistance(k,_,h),S=Cesium.Math.toRadians(i.options.position.lat);x*=1+Math.abs(Math.sin(d)*Math.tan(S)*Math.sin(S)*Math.sin(S)),i.options.scale=p/x}return i.duration=5e4,i.entity,i._positionEditing=!1,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.previous={position:pv({},i.options.position)},i.event=new te.a(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return Me()(t,e),h()(t,[{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=e,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=e,this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"name",get:function(){}},{key:"text",get:function(){return this.options.text},set:function(e){var t=this;this.options.text=e;for(var i=this.options.text.split("\n"),n=0;n80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),i[n]=i[n].slice(0,80-i[n].length)}if(i.length>70){i.splice(70-i.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=i.join("\n"),this.entity){var o=this.getcanvas(),s=o.height/o.width;this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:o.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this.entity.rectangle.coordinates=new Cesium.CallbackProperty((function(){var e,i=Math.abs(Math.cos(Math.PI/180*t.options.position.lat))*(1e-4*t.options.scale),n=[t.options.position.lng-1e-4*t.options.scale/s,t.options.position.lat-i,t.options.position.lng+1e-4*t.options.scale/s,t.options.position.lat+i];return(e=Cesium.Rectangle).fromDegrees.apply(e,n)}),!1)}this._elms.text&&this._elms.text.forEach((function(e){e.value=t.options.text}))}},{key:"angle",get:function(){return this.options.angle},set:function(e){this.options.angle=Number(e),this._elms.angle&&this._elms.angle.forEach((function(t){t.value=e}))}},{key:"scale",get:function(){return this.options.scale},set:function(e){this.options.scale=Number(e),this._elms.scale&&this._elms.scale.forEach((function(t){t.value=e}))}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=Number(e);var t=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:t.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),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;var i=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:i.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),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:"create",value:function(){var e=this,t=this.getcanvas(),i=t.height/t.width;this.entity=this.sdk.viewer.entities.add({id:this.options.id,show:this.options.show,rectangle:{coordinates:new Cesium.CallbackProperty((function(){var t,n=Math.abs(Math.cos(Math.PI/180*e.options.position.lat))*(1e-4*e.options.scale),o=[e.options.position.lng-1e-4*e.options.scale/i,e.options.position.lat-n,e.options.position.lng+1e-4*e.options.scale/i,e.options.position.lat+n];return(t=Cesium.Rectangle).fromDegrees.apply(t,o)}),!1),material:new Cesium.CustomMaterialSource({image:t.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),rotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(e.options.angle)}),!1),stRotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(e.options.angle)}),!1)}}),"cesium-viewer 2d"===this.sdk.viewer._element.className&&(this.entity.rectangle.height=10),Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id)}},{key:"edit",value:(o=_()(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(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=18;break}return e.next=6,new Be(this.sdk,this.originalOptions,{title:"贴地文字属性",left:"180px",top:"100px",confirmCallBack:function(e){s.text=s.text.trim(),s.text||(s.text="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Object(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.positionEditing=!1,s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()},translationalCallBack:function(){s.positionEditing=!s.positionEditing}},!0);case 6:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-text",(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
              \n
              \n 纬度\n \n
              \n
              \n
              \n \n
              \n
              \n
              \n 旋转角度\n \n
              \n \n °\n \n
              \n
              \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(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,o=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),this._elms.color=[o],e.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"positionEditing",get:function(){return this._positionEditing},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(this._positionEditing=e,this.previous={position:pv({},this.options.position)},!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),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(){})),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.lng=t.previous.position.lng,t.lat=t.previous.position.lat,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.lng=t.previous.position.lng,t.lat=t.previous.position.lat,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.positionEditing=!1}}))}))):(this._positionEditingCallback&&(this._positionEditingCallback(),this._positionEditingCallback=null),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()))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y.length>0&&void 0!==y[0]?y[0]:{},i=this.getcanvas(),n=i.height/i.width,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(o={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)},s=this.options.customView.relativePosition.lng,a=this.options.customView.relativePosition.lat,r=this.options.customView.relativePosition.alt,l=Cesium.Cartesian3.fromDegrees(s,a,r),c={lng:0,lat:0},this.options.position?c=pv({},this.options.position):this.options.positions?c=pv({},this.options.positions[0]):this.options.center?c=pv({},this.options.center):this.options.start?c=pv({},this.options.start):(this.options.hasOwnProperty("lng")&&(c.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(c.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(c.alt=this.options.alt)),c.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(c);case 17:c.alt=e.sent;case 18:s=this.options.customView.relativePosition.lng+c.lng,a=this.options.customView.relativePosition.lat+c.lat,r=this.options.customView.relativePosition.alt+c.alt,l=Cesium.Cartesian3.fromDegrees(s,a,r),this.sdk.viewer.camera.flyTo({destination:l,orientation:o}),e.next=34;break;case 25:return u=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),h=[[this.options.position.lng-1e-4*this.options.scale/n,this.options.position.lat-u],[this.options.position.lng+1e-4*this.options.scale/n,this.options.position.lat+u]],e.next=29,this.getClampToHeight(this.options.position);case 29:for(p=e.sent,d=[],m=0;m80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),(n=fv(this,t,[e,i])).options.text=i.text||"未命名对象";for(var s=n.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));return s.length>70&&s.splice(70-s.length),n.options.text=s.join("\n"),n.options.color=i.color||"#FFC107",n.options.positions=i.positions,n.options.speed=i.speed||0===i.speed?i.speed:1,n.options.show=!i.show&&!1!==i.show||i.show,n.nodePoints=[],n.entity,delete n.options.name,n.extrudedHeight,n._EventBinding=new Ye,n.Dialog=o,n._elms={},n.sdk.addIncetance(n.options.id,n),t.create(n),n}return Me()(t,e),h()(t,[{key:"name",get:function(){}},{key:"text",get:function(){return this.options.text},set:function(e){this.options.text=e;for(var t=this.options.text.split("\n"),i=0;i80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),t[i]=t[i].slice(0,80-t[i].length)}if(t.length>70){t.splice(70-t.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=t.join("\n"),this.entity){for(var n=this.options.positions,o=[],s=[],a=[],r=this.getMaterial(),l=this.computeDistance2(n),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u\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(i),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"reset",value:function(){if(this.entity){this.options=this.deepCopyObj(this.originalOptions),this.text=this.originalOptions.text,this.color=this.originalOptions.color,this.speed=this.originalOptions.speed;for(var e=this.options.positions,t=[],i=[],n=[],o=this.computeDistance2(e),s=this.aspectRatio?o/this.aspectRatio:0,a=0;a80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s0&&void 0!==arguments[0]?arguments[0]:function(){};if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),this._nodeEditCallback=t,this.tip=new St.a("请选择一个顶点,右键取消",this.sdk),this.event=new te.a(this.sdk),this.nodePoints=[];for(var o=this.options.positions,s=[],a=[],r=[],l=this.computeDistance2(o),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u=500?d(o,i):p(o,i)}))}));for(var m=0;m2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(o=bv(this,t)).sdk=e,o.viwer=e.viewer,o.options=yv({},i),o.options.host=i.host||Object(n.a)(),o.options.name=i.name||"未命名对象",o.options.show=!i.show&&!1!==i.show||i.show,"number"==typeof i.scale?(o.options.scale={},o.options.scale.x=i.scale,o.options.scale.y=i.scale,o.options.scale.z=i.scale):(o.options.scale=i.scale||{},o.options.scale.x=o.options.scale.x||0===o.options.scale.x?o.options.scale.x:1,o.options.scale.y=o.options.scale.y||0===o.options.scale.y?o.options.scale.y:1,o.options.scale.z=o.options.scale.z||0===o.options.scale.z?o.options.scale.z:1),o.primitive=null,o._loadEvent=void 0,o._loaded=!1,o._elms={},o.Dialog=s,o._EventBinding=new Ye,t.setDefaultValue(o),o.requestResource(),o.ControllerObject=new fi(o.sdk,{position:yv({},o.options.position),rotate:{x:(360+o.options.roll%360)%360,y:(360+-o.options.pitch%360)%360,z:(360+-o.options.heading%360)%360}}),o.ControllerObject.controllerCallBack=o.controllerCallBack,o.HeadingPitchRollCallBack=o.Dialog.HeadingPitchRollCallBack,o}return Me()(t,e),h()(t,[{key:"requestResource",value:function(){this.addResource().then((function(e){}))}},{key:"addResource",value:(s=_()(S.a.mark((function e(){var t,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((t=this).options.xmlURL=t.options.objUrl.replace(".obj",".xml"),""===t.options.xmlURL){e.next=34;break}return e.next=5,fetch(t.options.xmlURL);case 5:if(!(i=e.sent).ok){e.next=32;break}return e.next=9,i.text();case 9:return n=e.sent,o=new DOMParser,s=o.parseFromString(n,"text/xml"),a=s.getElementsByTagName("Position")[0].textContent.split(","),r=s.getElementsByTagName("Crs")[0].textContent,l=t.convert([{x:a[0],y:a[1],z:a[2]}],r,"EPSG:4326"),t.options.position=t.options.position||{lng:l.points[0].x,lat:l.points[0].y,alt:l.points[0].z},t.ControllerObject.position=t.options.position,c=t.viwer.scene,u=Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt),h=Cesium.Transforms.headingPitchRollToFixedFrame(u,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(.85),Cesium.Math.toRadians(0),Cesium.Math.toRadians(0))),e.next=22,window.objLoader.Load(t.options.objUrl);case 22:(p=e.sent).show=t.options.show,p.modelMatrix=h,p.setFlvVideo(t.options.videoUrl),c.primitives.add(p),t.primitive=p,t.controllerCallBack({rotate:{x:t.options.roll,y:-t.options.pitch,z:-t.options.heading},position:yv({},t.options.position)}),this.loaded=!0,this._loaded=!0,this._loadEvent&&this._loadEvent();case 32:e.next=36;break;case 34:return console.error("请填写xml路径"),e.abrupt("return");case 36:if(""!==t.options.objUrl){e.next=39;break}return console.error("请填写obj模型路径"),e.abrupt("return");case 39: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,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[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=yv({},this.options.position):this.options.positions?r=yv({},this.options.positions[0]):this.options.center?r=yv({},this.options.center):this.options.start?r=yv({},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=28;break;case 25:l=100*Math.tan(60),c=l/111319.55,this.sdk.viewer.camera.flyTo({destination:new Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat-c,this.options.position.alt+100),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 28:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=this,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.length>0&&void 0!==u[0]&&u[0],t=!1,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),e.next=6,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){c.name=c.name.trim(),c.name||(c.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.Dialog.closeCallBack&&c.Dialog.closeCallBack()},rotateCallBack:function(){c.rotationEditing?c.rotationEditing=!1:c.rotationEditing=!0},translationalCallBack:function(){c.positionEditing?c.positionEditing=!1:c.positionEditing=!0}},!0);case 6:for(this._DialogObject=e.sent,(i=document.createElement("div")).style.width="448px",i.innerHTML='\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 ',this._DialogObject.contentAppChild(i),n=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),o=this._DialogObject._element.content.getElementsByClassName("equal")[0],s=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],n.checked=t,n.addEventListener("change",(function(e){(t=e.target.checked)?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex")})),(a=o.getElementsByTagName("input"))[0].value=this.scaleX,a[1].value=this.scaleX,a[0].addEventListener("input",(function(e){c.scaleX=e.target.value,c.scaleY=e.target.value,c.scaleZ=e.target.value})),a[1].addEventListener("input",(function(e){c.scaleX=e.target.value,c.scaleY=e.target.value,c.scaleZ=e.target.value})),t?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex"),setTimeout((function(){if(c._DialogObject._element.foot){var e=c._DialogObject._element.foot.getElementsByClassName("rotate")[0];e&&(e.style.position="absolute",e.style.left="100px")}}),0),r=i.getElementsByTagName("*"),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.options=Ev({},i),this.options.show=!i.show&&!1!==i.show||i.show,this.options.host=this.options.host||Object(n.a)(),this.objModelObject=[],this._loaded=!1,this._loadEvent=void 0,this.on()}),[{key:"show",get:function(){return this.options.show},set:function(e){var t=this;if("boolean"==typeof e){this.options.show=e;for(var i=function(i){t.objModelObject[i].load((function(){t.objModelObject[i].show=e}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Tv(i=Mv(this,t,[e,n]),Av,void 0),i.options.id=n.id||i.randomString(),i.options.name=n.name||"漫游路径",i.options.points=n.points||[],i.options.repeat&&(i.options.repeat=Number(i.options.repeat)),i.Dialog=o,i}return Me()(t,e),h()(t,[{key:"repeat",get:function(){return this.options.repeat},set:function(e){if(this.options.repeat!=Number(e)&&(this.options.repeat=Number(e),this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)){var t=this._DialogObject._element.content.querySelector("input[name='repeat']");t.checked=e===1/0,this.Dialog.changeRepeatStateCallBack&&this.Dialog.changeRepeatStateCallBack(t.checked)}}},{key:"edit",value:(i=_()(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:if(i=this,n=this.sdk.viewer,o=0,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=44;break}return s=function(e){var t=r.getElementsByClassName("tr");t.length>0&&(t[t.length-1].querySelector("input[name='time']").disabled=void 0);var s=r.getElementsByClassName("tr active")[0];s&&(s.className="tr");var a=document.createElement("div");a.className="tr active",a.innerHTML='\n
              视点'.concat(c+1,'
              \n
              \n \n
              \n
              \n
              \n '),a.addEventListener("click",(function(e){if(e.target.parentNode===a){var i=r.getElementsByClassName("tr active")[0];i&&(i.className="tr"),a.className="tr active";for(var n=0;nn+1?(o--,t[o-1].className="tr active"):o==n+1&&(t.length==n&&(o-=1),0!=t.length&&(t[o-1].className="tr active")),t.length>0){var s=t[t.length-1].querySelector("input[name='time']");s.disabled="disabled",s.value=0}break}})),p.addEventListener("input",(function(t){m.checked=!1,e.duration=Number(p.value),e.duration<0&&(e.duration=0)})),p.addEventListener("blur",(function(){p.value=Number(Number(p.value).toFixed(2)),p.value<0&&(p.value=0)})),r.insertBefore(a,t[o]),o++,t[t.length-1].querySelector("input[name='time']").disabled="disabled"},e.next=8,new Te.a(n._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){v.cease()}});case 8:return this._DialogObject=e.sent,e.next=11,this._DialogObject.init();case 11:for((a=document.createElement("div")).className="fly-roam",a.innerHTML='\n \n
              \n
              \n
              \n 名称\n \n
              \n
              \n
              \n
              \n \n
              \n
              \n
              \n \n 设置总时长\n
              \n \n 秒(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
              时长(s)
              \n
              操作
              \n
              \n
              \n
              \n
              \n
              \n

              暂无数据

              \n
              \n
              \n
              \n
              \n \n ',this._DialogObject.contentAppChild(a),a.getElementsByTagName("*"),r=a.getElementsByClassName("table-body")[0],l=a.getElementsByClassName("table-empty")[0],c=0,u=new Proxy([],{set:function(e,t,i){return e[t]=i,e.length>0?l.style.display="none":l.style.display="flex",!0}}),c=0;c0&&v.flyTo(0)})),a.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var e={duration:0,position:v.cartesian3Towgs84(n.camera.position,n),orientation:{heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll}};u.splice(o,0,e),v.options.points.splice(o,0,e),s(e),c++})),a.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(o){var e=v.cartesian3Towgs84(n.camera.position,n);v.options.points[o-1].position=u[o-1].position=e,v.options.points[o-1].orientation=u[o-1].orientation={heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll},v.message({text:"操作成功"})}})),d=a.querySelector("input[name='totalTime']"),m=a.querySelector("input[name='isTotalTime']"),f=a.querySelector("input[name='repeat']"),m.addEventListener("change",(function(){var e=r.getElementsByClassName("tr");if(m.checked&&e.length>0){for(var t=Number((Number(d.value)/(e.length-1)).toFixed(2)),i=0;i0){for(var t=Number((Number(d.value)/(e.length-1)).toFixed(2)),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;Object(X.w)(0);var i=this,n=this.options.points,o=this.repeat;Object(X.f)(i.sdk);var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;Bv(Av,e)&&Bv(Av,e).destroy();var a=e;Nv(Av,e,new Cesium.ScreenSpaceEventHandler(a.sdk.viewer.canvas)),Bv(Av,e).setInputAction((function(t){e.cease()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var r,l=a.sdk.viewer;Object(X.w)(0),l.camera.cancelFlight(),l.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(n[t].position.lng,n[t].position.lat,n[t].position.alt),orientation:n[t].orientation,duration:i?n[t-1].duration:.5,maximumHeight:n[t].position.alt,complete:(r=_()(S.a.mark((function i(){return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t++,e.repeat===1/0?o=1/0:o===1/0&&(o=e.repeat),t<=n.length-1?s(t,!0):o?(o--,s(0)):Bv(Av,e)&&Bv(Av,e).destroy();case 3:case"end":return i.stop()}}),i)}))),function(){return r.apply(this,arguments)}),easingFunction:i?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})};s(t)}},{key:"cease",value:function(){this.sdk&&this.sdk.viewer&&this.sdk.viewer.camera.cancelFlight(),Bv(Av,this)&&Bv(Av,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(vt);function Iv(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 Rv=function(){return h()((function e(t,i,n){c()(this,e),this.options=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"move",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("move"===e){var o=turf.point([this.options.position.lng,this.options.position.lat]),s=Cesium.Math.toDegrees(this.hpr.heading),a=s+i,r={units:"degrees"},l=turf.destination(o,t,a,r).geometry.coordinates;this.position=Cesium.Cartesian3.fromDegrees(l[0],l[1],this.options.position.alt+this.options.normalHeight),this.options.position.lng=l[0],this.options.position.lat=l[1],this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],this.viewer.camera.positionCartographic.height)})}"update"===e&&(this.position=t,this.options.videoUrl&&this.updatePolygonPosition()),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"syncHpr",value:function(){if(this.viewer1){var e=this.options.position,t=e.lng,i=e.lat,n=e.alt,o=-this.hpr.pitch-Cesium.Math.toRadians(-90);this.viewer1.camera.setView({destination:Cesium.Cartesian3.fromDegrees(t,i,n+this.options.normalHeight),orientation:{heading:this.hpr.heading+Cesium.Math.toRadians(-90),pitch:o,roll:this.hpr.roll}})}}},{key:"updateFrustumHPR",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.head,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pitch,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";function s(e){return e*Math.PI/180}"alone"==o?(this.hpr.heading=s(e),this.hpr.pitch=s(t),this.hpr.roll=s(i)):(this.hpr.heading=Cesium.Math.negativePiToPi(e),this.hpr.pitch=Cesium.Math.negativePiToPi(t),this.hpr.roll=Cesium.Math.negativePiToPi(i)),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"updateFrustumAttributes",value:function(){if(this.position&&this.hpr){var e=Cesium.Transforms.headingPitchRollToFixedFrame(this.position,this.hpr);if(e)try{var t=new Cesium.FrustumOutlineGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(e,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(e,new Cesium.Matrix3))}),i=new Cesium.PolylineColorAppearance({translucent:!1}),n=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW),o=new Cesium.FrustumGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(e,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(e,new Cesium.Matrix3))}),s=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.YELLOW.withAlpha(.5)}),translucent:!0}),a=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED.withAlpha(.5));this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:t,attributes:{color:n}}),appearance:i,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumOutline),this.currentFrustumFilled=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:o,attributes:{color:a}}),appearance:s,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumFilled)}catch(e){console.error("Error in drawFrustum:",e)}else console.error("Transform generation failed.")}else console.error("Position or HPR is not defined:",this.position,this.hpr)}},{key:"updateFrustumNearFar",value:function(e,t){this.frustum.near=e,this.frustum.far=t,this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"updateFrustumFov",value:function(e){this.frustum.fov=Cesium.Math.toRadians(e),this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"show",get:function(){return this.options.show},set:function(e){"boolean"==typeof e&&(this.options.show=e,this.currentFrustumOutline.show=e,this.currentFrustumFilled.show=e)}},{key:"remove",value:function(){document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("keyup",this.keyupHandler),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.videoEntity&&this.viewer.entities.remove(this.videoEntity)}}],[{key:"setDefaultValue",value:function(e){var t;e.options.position=e.options.position||{},e.options.fov=e.options.fov||30,e.options.aspectRatio=e.options.aspectRatio||1,e.options.near=e.options.near||1,e.options.far=e.options.far||120,e.options.heading=e.options.heading||0,e.options.pitch=e.options.pitch||90,e.options.roll=e.options.roll||0,e.options.show=null===(t=e.options.show)||void 0===t||t,e.options.videoUrl=e.options.videoUrl||"",e.options.index=e.options.index||0,e.options.arr=e.options.arr||[],e.options.normalHeight=e.options.normalHeight||100}}]);var e,t}();function zv(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 Fv=function(){return h()((function e(t,i){c()(this,e),this.options=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;c()(this,e),this.options=Vv({},t),this.viewer=i,this.viewer1=n,this.entity=null,this.frustum=null,this.billordPointLineMaps=[],this.index=0,this.positions=[],e.setDefaultValue(this),this.create()}),[{key:"create",value:function(){var e=this;if(!(this.options.positions.length<2)){var t=this.options.frustumShow;this.entity=this.viewer.entities.add({show:this.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){for(var t=[],i=0;ithis.options.positions.length-1||this.index<0){var t=this.index>0?"已选中最后一个航点":"已选中第一个航点";alert(t)}else for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Wv(this,t,[e,n])).options.tipText=n.tipText?n.tipText:"左键确定,右键结束;",i}return Me()(t,e),h()(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 St.a(this.options.tipText,this.sdk),this.event=new te.a(this.sdk),this.isEntity=!1,this.event.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer),a=t.viewer.scene.pick(n.position);Cesium.defined(a)&&Cesium.defined(a.id)&&a.id.id===window.airportEntity.options.id&&(t.isEntity=!0),e(null,s,t.isEntity)})),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)}}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip.destroy()}}])}(Dn.a);function Yv(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 Jv(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),(i=qv(this,t,[e,n])).viewer=i.sdk.viewer,i.options.name=n.name||"飞线",i.options.pointNumber=n.pointNumber||200,i.options.height=n.height||200,i.options.heightDifference=n.heightDifference||3e3,i.options.width=n.width||2,i.options.duration=n.duration||10,i.options.color=n.color||"rgba(255,255,255,1)",i.options.lineBackAlpha=n.lineBackAlpha||.05,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.positionArea=[],i.positions=[],i.sdk.addIncetance(i.options.id,i),t.drawLine(i),i}return Me()(t,e),h()(t,[{key:"getRandomPointsInCesiumPolygon",value:function(e,t){var i=[],n=[],o=[];e.forEach((function(e){i.push(e.lng),n.push(e.lat),o.push([e.lng,e.lat])})),o.push([o[0][0],o[0][1]]);for(var s=Math.min.apply(Math,i),a=Math.max.apply(Math,i),r=Math.min.apply(Math,n),l=Math.max.apply(Math,n),c=[];c.length0&&void 0!==a[0]&&a[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=19;break}return e.next=7,new Be(this.sdk,this.originalOptions,{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(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(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 \n \n
              \n
              \n
              \n 飞线宽度\n
              \n \n \n
              \n
              \n
              \n
              \n
              \n
              \n\n
              \n 飞线高度\n
              \n \n \n
              \n
              \n
              \n 飞线高度差\n
              \n \n \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n 单次运动时长(s)\n
              \n \n \n
              \n
              \n
              \n 轨迹透明度\n
              \n \n \n
              \n
              \n
              \n
              \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("flowLine-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 19:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.pointNumber=this.originalOptions.pointNumber,this.height=this.originalOptions.height,this.heightDifference=this.originalOptions.heightDifference,this.width=this.originalOptions.width,this.duration=this.originalOptions.duration,this.color=this.originalOptions.color,this.lineBackAlpha=this.originalOptions.lineBackAlpha)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.length>0&&void 0!==h[0]&&h[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)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=Jv({},this.options.position):this.options.positions?a=Jv({},this.options.positions[0]):this.options.center?a=Jv({},this.options.center):this.options.start?a=Jv({},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)),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});else{for(r=[],l=0;l=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 Kv(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=Number(t.target.min))&&(i=i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i0&&t[o].addEventListener(e,(function(t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,e),this.viewer=t.viewer,this.options=ng({},i),this.sdk=ng({},t);var o=new Date;o.setHours(0,0,0,0),this.options.time=i.time,this.options.hour=i.hour,this.options.speed=i.speed||1e3,this.options.darkness=i.darkness||.4,this.options.softShadow=i.softShadow||!0,this.options.show=!0===i.show,this.Dialog=n,this.timeLine,this._EventBinding=new $v,this._elms={},e.start(this)}),[{key:"darkness",get:function(){return this.options.darkness},set:function(e){this.options.darkness=e,this.viewer.shadowMap.darkness=1-this.options.darkness,this._elms.darkness&&this._elms.darkness.forEach((function(t){t.value=e}))}},{key:"time",get:function(){return this.options.time},set:function(e){this.options.time=e;var t=(new Date).setHours(0,0,0,0);this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t))}},{key:"timeBar",set:function(e){var t=this.time+" "+e;this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),this.viewer.scene.requestRender()}},{key:"realTime",set:function(e){var t=new Date;this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(t)}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e})),this.viewer.clock.multiplier=this.options.speed}},{key:"softShadow",get:function(){return this.options.softShadow},set:function(e){this.options.softShadow=e,this.viewer.shadowMap.softShadows=this.options.softShadow}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0],i=new b.a,this.originalOptions=i.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t&&(n=this,this.timeLine=new tg(this.sdk,this.options.speed),this.timeLine.moveComplay((function(e){var t=n.time+" "+e;n.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),n.viewer.scene.requestRender()})),s=contentElm.getElementsByClassName("sunshine-date")[0],o=jeDate(s,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(e){this.time=e.val;var t=(new Date).setHours(0,0,0,0);n.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),n.timeLine.updateTime(t)}}),this.time?o.setValue(this.time):(o.nowBtn&&o.nowBtn(),this.time=o.getValue()),a=contentElm.getElementsByTagName("*"),this._EventBinding.on(this,a),this._elms=this._EventBinding.element,this._elms.color=[o]);case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.time=this.originalOptions.time,this.speed=this.originalOptions.speed,this.darkness=this.originalOptions.darkness)}},{key:"flyTo",value:(t=_()(S.a.mark((function e(){var t=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(t.length>0&&void 0!==t[0])||t[0];case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"remove",value:(e=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.viewer.scene.globe.enableLighting=!1,this.viewer.shadows=!1,this.viewer.clock.multiplier=1,this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date),this.entity=null,this.timeLine&&this.timeLine.clear(),this.viewer.shadowMap.cascadesEnabled=!1,this.viewer.shadowMap.size=1024,this.viewer.shadowMap.numberOfCascades=3,this.viewer.shadowMap._lightCamera,this.viewer.shadowMap.normalOffset=!1,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=14,Object(J.g)(this.sdk,this.options.id);case 14:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"start",value:function(e){var t;e.viewer.scene.globe.enableLighting=!0,e.viewer.shadows=!0,e.viewer.scene.globe.enableLighting=!0,e.viewer.terrainShadows=Cesium.ShadowMode.RECEIVE_ONLY,e.viewer.shadowMap.darkness=1-e.options.darkness,e.options.time&&e.options.hour?t=new Date(e.options.time+" "+e.options.hour):(t=new Date).setHours(0,0,0,0),e.viewer.clock.currentTime=Cesium.JulianDate.fromDate(t),e.viewer.clock.multiplier=e.options.speed,e.viewer.shadowMap.softShadows=e.options.softShadow,e.viewer.shadowMap.cascadesEnabled=!0,e.viewer.shadowMap.size=2048,e.viewer.shadowMap.numberOfCascades=4,e.viewer.shadowMap.maximumDistance=5e3;var i=e.viewer.shadowMap._lightCamera;i.frustum.near=.1,i.frustum.far=1e4,e.viewer.shadowMap.normalOffset=!0}}]);var e,t,i}();function sg(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 ag(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t,i){for(var n=[],o=[],s=[],a=0;am&&m>-1.001)o.push(v);else{var C=[];C[0]=v[1],C[1]=v[2],C[2]=v[3],C[3]=v[0],o.push(C)}},r=0;r2&&void 0!==arguments[2]?arguments[2]:.01;if(!t.width||!t.height)throw new Error("Texture size must contain width and height in pixels");for(var n=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(e),vertexFormat:Cesium.VertexFormat.POSITION_ONLY})),o=0,s=n.indices,a=n.attributes.position.values,r=0;r0)return Cesium.Cartesian3.fromDegrees(u.features[0].geometry.coordinates[0],u.features[0].geometry.coordinates[1])}},{key:"getLonLat",value:function(e){var t=Cesium.Cartographic.fromCartesian(e);return{lon:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude)}}},{key:"createLineBufferPolygon",value:function(e,t,i){for(var n=[],o=0;o0?n.unshift(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3)):i<0&&n.push(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3))}return n}},{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)}}},{key:"carRoadWidth",get:function(){return this.options.carRoadWidth},set:function(e){this.options.carRoadWidth=e,t.create(this)}},{key:"sideWidth",get:function(){return this.options.sideWidth},set:function(e){this.options.sideWidth=e,t.create(this)}},{key:"edit",value:(o=_()(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:if(t=s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=17;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"道路属性",left:"180px",top:"100px",confirmCallBack:function(e){o.name=o.name.trim(),o.name||(o.name="道路"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Object(J.g)(o.sdk,o.options.id),Object(Z.g)(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},closeCallBack:function(){o.reset(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(e){o.show=e,o.Dialog.showCallBack&&o.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" road-surface",(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 \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 17:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.carRoadWidth=this.originalOptions.carRoadWidth,this.sideWidth=this.originalOptions.sideWidth,this.positions=this.originalOptions.positions,this.roadImage=this.originalOptions.roadImage,this.sideImage=this.originalOptions.sideImage)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.length>0&&void 0!==h[0]&&h[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)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=ag({},this.options.position):this.options.positions?a=ag({},this.options.positions[0]):this.options.center?a=ag({},this.options.center):this.options.start?a=ag({},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)),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});else{for(r=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return c()(this,t),(i=hg(this,t,[e,n])).options.position=n.position||[],i.options.text=n.text||"",i.options.show=!n.show&&!1!==n.show||n.show,i.clickTextDom=void 0,i.handler=void 0,i.textDom=void 0,i.create(i),i.sdk.addIncetance(i.options.id,i),i.callback=o,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TextBox"}},{key:"create",value:(u=_()(S.a.mark((function e(t){var i,n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.sdk.viewer,(n=document.createElement("span")).id=t.options.id,n.className="popup-textarea",n.style.zIndex=1,(o=document.createElement("textarea")).className="textarea",o.value=t.options.text,o.rows=6,o.style.resize="none",n.appendChild(o),!t.options.show&&(n.style.display="none"),i.cesiumWidget.container.appendChild(n),s=Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt),t.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,s);if(e){var t=1*n.clientWidth,o=1*n.clientHeight;n.style.left="".concat(e.x-t/2,"px"),n.style.top="".concat(e.y-o,"px")}},i.scene.postRender.addEventListener(t.handler),t.textDom=n;case 17:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"isClick",value:(l=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.clickCallBack({position:t},i,null);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"setHandeler",value:(r=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this,(n=this.sdk.viewer.scene.pickPosition(new Cesium.Cartesian2(t.x,t.y)))||(o=this.sdk.viewer.camera.getPickRay(new Cesium.Cartesian2(t.x,t.y)),n=this.sdk.viewer.scene.globe.pick(o,this.sdk.viewer.scene)),!Cesium.defined(n)){e.next=15;break}return i.sdk.viewer.scene.postRender.removeEventListener(i.handler),s=Cesium.Cartographic.fromCartesian(n),a=Cesium.Math.toDegrees(s.longitude),r=Cesium.Math.toDegrees(s.latitude),e.next=10,i.getClampToHeight({lng:a,lat:r});case 10:e.sent,i.position={lng:a,lat:r,alt:s.height},l=Cesium.Cartesian3.fromDegrees(a,r,s.height),i.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,l);if(e){var t=1*i.textDom.clientWidth,n=1*i.textDom.clientHeight;i.textDom.style.left="".concat(e.x-t/2,"px"),i.textDom.style.top="".concat(e.y-n,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getwords",value:(a=_()(S.a.mark((function e(t){var i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.options.text=t,this.callback(this.options),i=Object(J.c)(),n=i.sdkP,this.sdk===n&&n?Object(J.g)(this.sdk,this.options.id):n?(n.entityMap.get(this.options.id).text=t,n.entityMap.get(this.options.id).twoToThree(this.options.position)):n||Object(J.g)(this.sdk,this.options.id);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"twoToThree",value:(s=_()(S.a.mark((function e(t){var i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=this).sdk.viewer.scene.postRender.removeEventListener(i.handler),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),i.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,n);if(e){var t=1*i.textDom.clientWidth,o=1*i.textDom.clientHeight;i.textDom.style.left="".concat(e.x-t/2,"px"),i.textDom.style.top="".concat(e.y-o,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"returnFun",value:(o=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.handler);case 1:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"text",get:function(){return this.options.text},set:function(e){this.options.text=e,this.textDom.querySelector("textarea").value=e,this.callback(this.options)}},{key:"onClick",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e,this.textDom&&(this.textDom.style.display=e?"block":"none"),Object(J.g)(this.sdk,this.options.id)}},{key:"position",get:function(){return this.options.position},set:function(e){this.options.position=e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.length>0&&void 0!==u[0]&&u[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?(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=ug({},this.options.position):this.options.position?a=ug({},this.options.position[0]):this.options.center?a=ug({},this.options.center):this.options.start?a=ug({},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)),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})):(r=[],l=Cesium.Cartesian3.fromDegrees(this.position.lng,this.position.lat,this.position.alt),r.push(l.x,l.y,l.z),c=Cesium.BoundingSphere.fromVertices(r),this.viewer.camera.flyToBoundingSphere(c,{offset:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-20),roll:Cesium.Math.toRadians(0)}}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler&&(this.sdk.viewer.scene.postRender.removeEventListener(this.handler),this.handler=void 0),this.textDom&&this.textDom.parentNode&&this.sdk.viewer.cesiumWidget.container.removeChild(this.textDom),e.next=4,this.sdk.removeIncetance(this.options.id);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,o,s,a,r,l,u}(vt);function dg(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 mg(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c()(this,t),(i=fg(this,t,[e,n])).viewer=i.sdk.viewer,i.options.name=n.name||"批量模型",i.options.type=n.type||"面",i.options.url=n.url||"",i.options.spacing=1*n.spacing||50,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.callback=o,i.Dialog=s,i._EventBinding=new Ye,i._elms={},i.pointArr=[],i.sdk.addIncetance(i.options.id,i);var a=new b.a(e);if("点"!=n.type&&(i.options.spacing<0||1*n.spacing==0))return a.message({type:"warning",text:"请输入正确的间距!"}),Ee()(i);if(n.type&&null!=n.spacing||"点"==n.type){var r;switch(n.type){case"点":r=new fs.default(i.sdk);break;case"线":r=new us(i.sdk);break;case"面":r=new ms(i.sdk)}r&&r.start((function(e,o){if(i.options.positions=o,"面"==n.type){var s=o.map((function(e){return Cesium.Cartesian3.fromDegrees(e.lng,e.lat)})),r=Cesium.Cartesian3.distance(s[0],s[1]),l=Cesium.Cartesian3.distance(s[1],s[2]);if(r/i.options.spacing*(l/i.options.spacing)>100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}else if("线"==n.type){for(var c=o.map((function(e){return Cesium.Cartesian3.fromDegrees(e.lng,e.lat)})),u=0,h=0;h100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}(i.options.positions.length||i.options.positions.lng)&&t.computeDis(i)}))}else i.edit(!0);return i}return Me()(t,e),h()(t,[{key:"linePoint",value:(u=_()(S.a.mark((function e(t,i){var n,o,a,r,l,c,u,h,p,d,m,f,v,g;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],o=[],a=0;case 3:if(!(a0&&void 0!==u[0]&&u[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){e.next=33;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"默认模型参数设置",left:"180px",top:"100px",confirmCallBack:function(e){var i;switch(c.name=c.name.trim(),c.name||(c.name="飞线"),c.options.type){case"点":i=new fs.default(c.sdk);break;case"线":i=new us(c.sdk);break;case"面":i=new ms(c.sdk)}i&&i.start((function(e,i){c.options.positions=i,(c.options.positions.length||c.options.positions.lng)&&t.computeDis(c)})),c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions),Object(J.g)(c.sdk,c.options.id),Object(Z.g)(c.sdk,c.options.id)},closeCallBack:function(){c.reset(),c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"重置",event:["click",function(){c.reset()}]}]},!0);case 7:if(this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(n=document.createElement("div")).innerHTML='\n \n
              \n
              \n
              \n 添加方式\n
              \n
              \n
              \n 间距\n
              \n \n \n \n
              \n
              \n
              \n
              \n \n ',this._DialogObject.contentAppChild(n),o=n.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,s=[{name:"点",value:"点"},{name:"线",value:"线"},{name:"面",value:"面"}],!(a=Object(je.a)(this._DialogObject._element.content.getElementsByClassName("add-type-box")[0],".add-type"))){e.next=31;break}a.legp_search(s),r=this._DialogObject._element.content.getElementsByClassName("add-type")[0].getElementsByTagName("input")[0],this._elms.type=[r],r.value=this.options.type,l=0;case 23:if(!(l0&&void 0!==h[0]&&h[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)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=mg({},this.options.position):this.options.positions?a=mg({},this.options.positions[0]):this.options.center?a=mg({},this.options.center):this.options.start?a=mg({},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)),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});else if(r=[],this.options.positions.length>0){for(l=0;l=0;n--)t.removeChild(i[n]);Ti=0,Ni=0},flyTo:Ai,setRepeat:function(e){Ti!=Number(e)&&(Ti=Number(e),Ni=Ti)},cease:Li},flyTo:X.i,efflect:{rain:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ii&&e.viewer.scene.postProcessStages.remove(Ii),t&&(Ii=new Cesium.PostProcessStage({name:"rain",fragmentShader:Hi,uniforms:{tiltAngle:-.4,rainSize:.3,rainWidth:40,rainSpeed:100}}),e.viewer.scene.postProcessStages.add(Ii))},snow:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ri&&e.viewer.scene.postProcessStages.remove(Ri),t&&(Ri=new Cesium.PostProcessStage({name:"snow",fragmentShader:Vi,uniforms:{snowSize:2,snowSpeed:60}}),e.viewer.scene.postProcessStages.add(Ri))},fog:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];zi&&e.viewer.scene.postProcessStages.remove(zi),t&&(zi=new Cesium.PostProcessStage({name:"fog",fragmentShader:Gi,uniforms:{visibility:.2,fogColor:Cesium.Color.WHITE}}),e.viewer.scene.postProcessStages.add(zi))},nightVision:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Fi&&e.viewer.scene.postProcessStages.remove(Fi),t&&(Fi=Cesium.PostProcessStageLibrary.createNightVisionStage(),e.viewer.scene.postProcessStages.add(Fi))},skyStarry:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.viewer.scene.skyAtmosphere.show=!t},illumination:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.viewer.shadows=t,e.viewer._shadows=t},Sunshine:og},CameraController:X.a,CesiumContainer:X.b,setBillboardDefaultUrl:X.x,getBillboardDefaultUrl:X.j,multiViewportMode:{on:J.e,off:J.d,get2DView:J.a,getSdk:J.c},MouseCoordinate:function(e,t){if(e&&e.viewer){Di=e,(Mi=Object(J.c)().sdkD)||(Mi=Object(Z.a)().sdkD);var i=new b.a(e),n=e.proj;if(t){var o=function(){Pi=requestAnimationFrame(o),l()};xi&&xi.destroy(),Si&&(Si.destroy(),Si=void 0),xi=new te.a(e),Oi=null;var s,a={x:"",y:"",z:""};Ei?s=Ei:((s=document.createElement("div")).style.position="absolute",s.style["z-index"]=777,s.style.color="#ffffff",s.style.left="0px",s.style.top="0px",s.style.width="100%",s.style.height="100%",s.style["font-size"]="12px",s.style["pointer-events"]="none",s.style.background="url(".concat(i.getSourceRootPath(),"/img/cross.png) no-repeat 100% 100%"),s.style["background-size"]="200% 200%",Ei=s),e.viewer.container.appendChild(s),xi.mouse_move((function(t,i){Di=e,Oi=function(e){for(var t=1;t

              经度:").concat(d.lng.toFixed(6),"°

              维度:").concat(d.lat.toFixed(6),"°

              海拔:").concat(d.alt.toFixed(2)," m

              ");break;case"度分":s.innerHTML="

              经度:").concat(n.degreesToDMS(d.lng,!0),"

              维度:").concat(n.degreesToDMS(d.lat,!0),"

              海拔:").concat(d.alt.toFixed(2)," m

              ");break;case"度分秒":s.innerHTML="

              经度:").concat(n.degreesToDMS(d.lng,!1),"

              维度:").concat(n.degreesToDMS(d.lat,!1),"

              海拔:").concat(d.alt.toFixed(2)," m

              ")}else{var v=i.convert([{x:d.lng,y:d.lat,z:d.alt}],"EPSG:4326",function(e,t){var i;switch(e){case"EPSG:32601":var n=Math.round((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}(m,d));a=v.points[0],s.innerHTML="

              x:").concat(a.x.toFixed(6),"

              y:").concat(a.y.toFixed(6),"

              z:").concat(a.z.toFixed(6),"

              ")}}else{var g=Object(X.o)();s.innerHTML="EPSG:4326"===g?"

              经度:-

              维度:-

              海拔:-

              "):"

              x:-

              y:-

              z:-

              ")}}}};o()}else xi&&xi.destroy(),Si&&(Si.destroy(),Si=void 0),Ei&&(e.viewer.container.removeChild(Ei),Ei=void 0),Pi&&cancelAnimationFrame(Pi)}},MouseRightMenu:Ui.a,setGroundCover:X.E,getGroundCover:X.s,setBimPickStatus:X.y,getBimPickStatus:X.k,FlwStatusSwitch:X.c,JwwStatusSwitch:X.d,rotateAround:X.v,getCoordinateSystem:X.o,setCoordinateSystem:X.B,getDMS:X.q,setDMS:X.C,DTH:_e,cameraChanged:X.e,setMaximumRequestsPerServer:X.G,setKeyboardEventActive:X.F,setSkin:function(e){document.documentElement.style.setProperty("--color-sdk-base","rgba(0, 55, 55, 1)")},getTheme:X.u,setTheme:X.H,getCesiumManageIndexexDBState:X.n,setCesiumManageIndexexDBState:X.A,getCesiumIndexedDBMaxSize:X.m,setCesiumIndexedDBMaxSize:X.z,getCesiumIndexedDBCurrentSize:X.l,enablePerspective:X.h,closeRotateAround:X.f,SheetIndexStatusSwitch:Ce.a,SheetIndexShangeScale:Ce.b,splitScreen:{on:Z.c,off:Z.b,setActiveId:Z.d,getSdk:Z.a},Contour:function(e){return vn.apply(this,arguments)},ContourStartDraw:function(e,t){if(Qi=t,Object.keys(mn).forEach((function(e){qi.uniforms[e]=mn[e]})),Qi){if(e.viewer.camera.positionCartographic.height>16360){var i=e.viewer.camera.positionCartographic,n={position:{lng:Cesium.Math.toDegrees(i.longitude),lat:Cesium.Math.toDegrees(i.latitude),alt:16360}};Object(X.i)(e,n,.5)}gn(e)}else yn(e)},ContourReset:function(){Ki=19,$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"}},Measure:{GetMeasureStatus:function(){return YJ.Measure[gg]},SetMeasureStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[gg]=e},Clear:function(){YJ.Measure.Measures.forEach((function(e){e.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:Po,MeasureProjectionDistance:No,MeasureSlopeDistance:Io,MeasureTyArea:Vo,MeasureTdArea:Jo,MeasureTriangle:Zo,MeasureLocation:$o,MeasureHeight:is,MeasureAngle:ss,MeasureAzimuth:ls},Draw:{DrawPolyline:us,DrawPolygon:Bn,DrawPoint:fs.default,DrawCircle:gs,DrawElliptic:bs,DrawAttackArrow:ws,DrawPincerArrow:_s,DrawStraightArrow:Es,DrawRect:Os,DrawAssemble:Ts,DrawSector:Bs,DrawTakeOff:Uv,DrawThreeRect:ms},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(e){e.destroy()}))},CutFillAnalysis:jn,Submerge:Rn,ViewShed:Vn,CircleViewShed:Zn,SlopeAspect:eo,Profile:io,Visibility:oo,Contour:so,Section:co,TerrainExcavation:po,Flat:yo,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(e){e.destroy()}))}},CoordTransform:Is,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(e){e.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=xv,window.YJ.Obj.BatchLoadObjModel=Pv)}]); \ No newline at end of file + */()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var pu=1014,du=1020,mu=2400,fu=2401,vu="srgb",gu="srgb-linear",yu="display-p3",bu="display-p3-linear",Cu="linear",wu="srgb",ku="rec709",_u=7680,xu=35044,Su=2e3,Eu=2001,Pu=function(){return h()((function e(){c()(this,e)}),[{key:"addEventListener",value:function(e,t){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[e]&&(i[e]=[]),-1===i[e].indexOf(t)&&i[e].push(t)}},{key:"hasEventListener",value:function(e,t){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[e]&&-1!==i[e].indexOf(t)}},{key:"removeEventListener",value:function(e,t){if(void 0!==this._listeners){var i=this._listeners[e];if(void 0!==i){var n=i.indexOf(t);-1!==n&&i.splice(n,1)}}}},{key:"dispatchEvent",value:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var i=t.slice(0),n=0,o=i.length;n>8&255]+Ou[e>>16&255]+Ou[e>>24&255]+"-"+Ou[255&t]+Ou[t>>8&255]+"-"+Ou[t>>16&15|64]+Ou[t>>24&255]+"-"+Ou[63&i|128]+Ou[i>>8&255]+"-"+Ou[i>>16&255]+Ou[i>>24&255]+Ou[255&n]+Ou[n>>8&255]+Ou[n>>16&255]+Ou[n>>24&255]).toLowerCase()}function Tu(e,t,i){return Math.max(t,Math.min(i,e))}function Nu(e,t){return(e%t+t)%t}function Bu(e,t,i){return(1-i)*e+i*t}function ju(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Au(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}var Lu=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,e),e.prototype.isVector2=!0,this.x=t,this.y=i}),[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,i=this.y,n=e.elements;return this.x=n[0]*t+n[3]*i+n[6],this.y=n[1]*t+n[4]*i+n[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){return Math.atan2(-this.y,-this.x)+Math.PI}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var i=this.dot(e)/t;return Math.acos(Tu(i,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var i=Math.cos(t),n=Math.sin(t),o=this.x-e.x,s=this.y-e.y;return this.x=o*i-s*n+e.x,this.y=o*n+s*i+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))}])}(),Iu=function(){return h()((function e(t,i,n,o,s,a,r,l,u){c()(this,e),e.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,i,n,o,s,a,r,l,u)}),[{key:"set",value:function(e,t,i,n,o,s,a,r,l){var c=this.elements;return c[0]=e,c[1]=n,c[2]=a,c[3]=t,c[4]=o,c[5]=r,c[6]=i,c[7]=s,c[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(e){var t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}},{key:"extractBasis",value:function(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var i=e.elements,n=t.elements,o=this.elements,s=i[0],a=i[3],r=i[6],l=i[1],c=i[4],u=i[7],h=i[2],p=i[5],d=i[8],m=n[0],f=n[3],v=n[6],g=n[1],y=n[4],b=n[7],C=n[2],w=n[5],k=n[8];return o[0]=s*m+a*g+r*C,o[3]=s*f+a*y+r*w,o[6]=s*v+a*b+r*k,o[1]=l*m+c*g+u*C,o[4]=l*f+c*y+u*w,o[7]=l*v+c*b+u*k,o[2]=h*m+p*g+d*C,o[5]=h*f+p*y+d*w,o[8]=h*v+p*b+d*k,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8];return t*s*c-t*a*l-i*o*c+i*a*r+n*o*l-n*s*r}},{key:"invert",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8],u=c*s-a*l,h=a*r-c*o,p=l*o-s*r,d=t*u+i*h+n*p;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);var m=1/d;return e[0]=u*m,e[1]=(n*l-c*i)*m,e[2]=(a*i-n*s)*m,e[3]=h*m,e[4]=(c*t-n*r)*m,e[5]=(n*o-a*t)*m,e[6]=p*m,e[7]=(i*r-l*t)*m,e[8]=(s*t-i*o)*m,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,i,n,o,s,a){var r=Math.cos(o),l=Math.sin(o);return this.set(i*r,i*l,-i*(r*s+l*a)+s+e,-n*l,n*r,-n*(-l*s+r*a)+a+t,0,0,1),this}},{key:"scale",value:function(e,t){return this.premultiply(Ru.makeScale(e,t)),this}},{key:"rotate",value:function(e){return this.premultiply(Ru.makeRotation(-e)),this}},{key:"translate",value:function(e,t){return this.premultiply(Ru.makeTranslation(e,t)),this}},{key:"makeTranslation",value:function(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}},{key:"makeRotation",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}},{key:"makeScale",value:function(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}},{key:"equals",value:function(e){for(var t=this.elements,i=e.elements,n=0;n<9;n++)if(t[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<9;i++)this.elements[i]=e[i+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}])}(),Ru=new Iu;function zu(e){for(var t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Fu(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}var Hu={};function Vu(e){e in Hu||(Hu[e]=!0,console.warn(e))}var Gu,Wu=(new Iu).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Uu=(new Iu).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Yu=r()(r()(r()(r()({},gu,{transfer:Cu,primaries:ku,toReference:function(e){return e},fromReference:function(e){return e}}),vu,{transfer:wu,primaries:ku,toReference:function(e){return e.convertSRGBToLinear()},fromReference:function(e){return e.convertLinearToSRGB()}}),bu,{transfer:Cu,primaries:"p3",toReference:function(e){return e.applyMatrix3(Uu)},fromReference:function(e){return e.applyMatrix3(Wu)}}),yu,{transfer:wu,primaries:"p3",toReference:function(e){return e.convertSRGBToLinear().applyMatrix3(Uu)},fromReference:function(e){return e.applyMatrix3(Wu).convertLinearToSRGB()}}),Ju=new Set([gu,bu]),qu={enabled:!0,_workingColorSpace:gu,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Ju.has(e))throw new Error('Unsupported working color space, "'.concat(e,'".'));this._workingColorSpace=e},convert:function(e,t,i){if(!1===this.enabled||t===i||!t||!i)return e;var n=Yu[t].toReference;return(0,Yu[i].fromReference)(n(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return Yu[e].primaries},getTransfer:function(e){return""===e?Cu:Yu[e].transfer}};function Xu(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Zu(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Ku=function(){return h()((function e(){c()(this,e)}),null,[{key:"getDataURL",value:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Gu&&(Gu=Fu("canvas")),Gu.width=e.width,Gu.height=e.height;var i=Gu.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Gu}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}},{key:"sRGBToLinear",value:function(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var t=Fu("canvas");t.width=e.width,t.height=e.height;var i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);for(var n=i.getImageData(0,0,e.width,e.height),o=n.data,s=0;s0&&void 0!==arguments[0]?arguments[0]:null;c()(this,e),this.isSource=!0,Object.defineProperty(this,"id",{value:Qu++}),this.uuid=Mu(),this.data=t,this.dataReady=!0,this.version=0}),[{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];var i={uuid:this.uuid,url:""},n=this.data;if(null!==n){var o;if(Array.isArray(n)){o=[];for(var s=0,a=n.length;s0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_IMAGE,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_MAPPING,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1001,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1001,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1006,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1008,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1023,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1009,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:t.DEFAULT_ANISOTROPY,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";return c()(this,t),(e=hu(this,t)).isTexture=!0,Object.defineProperty(cu()(e),"id",{value:th++}),e.uuid=Mu(),e.name="",e.source=new $u(i),e.mipmaps=[],e.mapping=n,e.channel=0,e.wrapS=o,e.wrapT=s,e.magFilter=a,e.minFilter=r,e.anisotropy=h,e.format=l,e.internalFormat=null,e.type=u,e.offset=new Lu(0,0),e.repeat=new Lu(1,1),e.center=new Lu(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new Iu,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.colorSpace=p,e.userData={},e.version=0,e.onUpdate=null,e.isRenderTargetTexture=!1,e.pmremVersion=0,e}return Me()(t,e),h()(t,[{key:"image",get:function(){return this.source.data},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.source.data=e}},{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case 1e3:e.x=e.x-Math.floor(e.x);break;case 1001:e.x=e.x<0?0:1;break;case 1002:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case 1e3:e.y=e.y-Math.floor(e.y);break;case 1001:e.y=e.y<0?0:1;break;case 1002:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}},{key:"needsPMREMUpdate",set:function(e){!0===e&&this.pmremVersion++}}])}(Pu);ih.DEFAULT_IMAGE=null,ih.DEFAULT_MAPPING=300,ih.DEFAULT_ANISOTROPY=1;var nh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,e),e.prototype.isVector4=!0,this.x=t,this.y=i,this.z=n,this.w=o}),[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,i,n){return this.x=e,this.y=t,this.z=i,this.w=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,i=this.y,n=this.z,o=this.w,s=e.elements;return this.x=s[0]*t+s[4]*i+s[8]*n+s[12]*o,this.y=s[1]*t+s[5]*i+s[9]*n+s[13]*o,this.z=s[2]*t+s[6]*i+s[10]*n+s[14]*o,this.w=s[3]*t+s[7]*i+s[11]*n+s[15]*o,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,i,n,o,s=.01,a=.1,r=e.elements,l=r[0],c=r[4],u=r[8],h=r[1],p=r[5],d=r[9],m=r[2],f=r[6],v=r[10];if(Math.abs(c-h)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:return e.next=8,this.w;case 8:case"end":return e.stop()}}),e,this)}))}])}(),oh=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return c()(this,t),(e=hu(this,t,[null])).isDataArrayTexture=!0,e.image={data:i,width:n,height:o,depth:s},e.magFilter=1003,e.minFilter=1003,e.wrapR=1001,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Me()(t,e),h()(t)}(ih),sh=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return c()(this,t),(e=hu(this,t,[null])).isData3DTexture=!0,e.image={data:i,width:n,height:o,depth:s},e.magFilter=1003,e.minFilter=1003,e.wrapR=1001,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Me()(t,e),h()(t)}(ih),ah=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,e),this.isQuaternion=!0,this._x=t,this._y=i,this._z=n,this._w=o}),[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}},{key:"set",value:function(e,t,i,n){return this._x=e,this._y=t,this._z=i,this._w=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e._x,n=e._y,o=e._z,s=e._order,a=Math.cos,r=Math.sin,l=a(i/2),c=a(n/2),u=a(o/2),h=r(i/2),p=r(n/2),d=r(o/2);switch(s){case"XYZ":this._x=h*c*u+l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u-h*p*d;break;case"YXZ":this._x=h*c*u+l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u+h*p*d;break;case"ZXY":this._x=h*c*u-l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u-h*p*d;break;case"ZYX":this._x=h*c*u-l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u+h*p*d;break;case"YZX":this._x=h*c*u+l*p*d,this._y=l*p*u+h*c*d,this._z=l*c*d-h*p*u,this._w=l*c*u-h*p*d;break;case"XZY":this._x=h*c*u-l*p*d,this._y=l*p*u-h*c*d,this._z=l*c*d+h*p*u,this._w=l*c*u+h*p*d;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!0===t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var i=t/2,n=Math.sin(i);return this._x=e.x*n,this._y=e.y*n,this._z=e.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,i=t[0],n=t[4],o=t[8],s=t[1],a=t[5],r=t[9],l=t[2],c=t[6],u=t[10],h=i+a+u;if(h>0){var p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(c-r)*p,this._y=(o-l)*p,this._z=(s-n)*p}else if(i>a&&i>u){var d=2*Math.sqrt(1+i-a-u);this._w=(c-r)/d,this._x=.25*d,this._y=(n+s)/d,this._z=(o+l)/d}else if(a>u){var m=2*Math.sqrt(1+a-i-u);this._w=(o-l)/m,this._x=(n+s)/m,this._y=.25*m,this._z=(r+c)/m}else{var f=2*Math.sqrt(1+u-i-a);this._w=(s-n)/f,this._x=(o+l)/f,this._y=(r+c)/f,this._z=.25*f}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Tu(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var i=this.angleTo(e);if(0===i)return this;var n=Math.min(1,t/i);return this.slerp(e,n),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e){return this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var i=e._x,n=e._y,o=e._z,s=e._w,a=t._x,r=t._y,l=t._z,c=t._w;return this._x=i*c+s*a+n*l-o*r,this._y=n*c+s*r+o*a-i*l,this._z=o*c+s*l+i*r-n*a,this._w=s*c-i*a-n*r-o*l,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var i=this._x,n=this._y,o=this._z,s=this._w,a=s*e._w+i*e._x+n*e._y+o*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=s,this._x=i,this._y=n,this._z=o,this;var r=1-a*a;if(r<=Number.EPSILON){var l=1-t;return this._w=l*s+t*this._w,this._x=l*i+t*this._x,this._y=l*n+t*this._y,this._z=l*o+t*this._z,this.normalize(),this}var c=Math.sqrt(r),u=Math.atan2(c,a),h=Math.sin((1-t)*u)/c,p=Math.sin(t*u)/c;return this._w=s*h+this._w*p,this._x=i*h+this._x*p,this._y=n*h+this._y*p,this._z=o*h+this._z*p,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(e,t,i){return this.copy(e).slerp(t,i)}},{key:"random",value:function(){var e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),o=Math.sqrt(i);return this.set(n*Math.sin(e),n*Math.cos(e),o*Math.sin(t),o*Math.cos(t))}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}},{key:"toJSON",value:function(){return this.toArray()}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._x;case 2:return e.next=4,this._y;case 4:return e.next=6,this._z;case 6:return e.next=8,this._w;case 8:case"end":return e.stop()}}),e,this)}))}],[{key:"slerpFlat",value:function(e,t,i,n,o,s,a){var r=i[n+0],l=i[n+1],c=i[n+2],u=i[n+3],h=o[s+0],p=o[s+1],d=o[s+2],m=o[s+3];if(0===a)return e[t+0]=r,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===a)return e[t+0]=h,e[t+1]=p,e[t+2]=d,void(e[t+3]=m);if(u!==m||r!==h||l!==p||c!==d){var f=1-a,v=r*h+l*p+c*d+u*m,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),C=Math.atan2(b,v*g);f=Math.sin(f*C)/b,a=Math.sin(a*C)/b}var w=a*g;if(r=r*f+h*w,l=l*f+p*w,c=c*f+d*w,u=u*f+m*w,f===1-a){var k=1/Math.sqrt(r*r+l*l+c*c+u*u);r*=k,l*=k,c*=k,u*=k}}e[t]=r,e[t+1]=l,e[t+2]=c,e[t+3]=u}},{key:"multiplyQuaternionsFlat",value:function(e,t,i,n,o,s){var a=i[n],r=i[n+1],l=i[n+2],c=i[n+3],u=o[s],h=o[s+1],p=o[s+2],d=o[s+3];return e[t]=a*d+c*u+r*p-l*h,e[t+1]=r*d+c*h+l*u-a*p,e[t+2]=l*d+c*p+a*h-r*u,e[t+3]=c*d-a*u-r*h-l*p,e}}])}(),rh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;c()(this,e),e.prototype.isVector3=!0,this.x=t,this.y=i,this.z=n}),[{key:"set",value:function(e,t,i){return void 0===i&&(i=this.z),this.x=e,this.y=t,this.z=i,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return this.applyQuaternion(ch.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(ch.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements;return this.x=o[0]*t+o[3]*i+o[6]*n,this.y=o[1]*t+o[4]*i+o[7]*n,this.z=o[2]*t+o[5]*i+o[8]*n,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements,s=1/(o[3]*t+o[7]*i+o[11]*n+o[15]);return this.x=(o[0]*t+o[4]*i+o[8]*n+o[12])*s,this.y=(o[1]*t+o[5]*i+o[9]*n+o[13])*s,this.z=(o[2]*t+o[6]*i+o[10]*n+o[14])*s,this}},{key:"applyQuaternion",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.x,s=e.y,a=e.z,r=e.w,l=2*(s*n-a*i),c=2*(a*t-o*n),u=2*(o*i-s*t);return this.x=t+r*l+s*u-a*c,this.y=i+r*c+a*l-o*u,this.z=n+r*u+o*c-s*l,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,i=this.y,n=this.z,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*n,this.y=o[1]*t+o[5]*i+o[9]*n,this.z=o[2]*t+o[6]*i+o[10]*n,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}},{key:"cross",value:function(e){return this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var i=e.x,n=e.y,o=e.z,s=t.x,a=t.y,r=t.z;return this.x=n*r-o*a,this.y=o*s-i*r,this.z=i*a-n*s,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}},{key:"projectOnPlane",value:function(e){return lh.copy(this).projectOnVector(e),this.sub(lh)}},{key:"reflect",value:function(e){return this.sub(lh.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var i=this.dot(e)/t;return Math.acos(Tu(i,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,i=this.y-e.y,n=this.z-e.z;return t*t+i*i+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,i){var n=Math.sin(t)*e;return this.x=n*Math.sin(i),this.y=Math.cos(t)*e,this.z=n*Math.cos(i),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),n=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=n,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"setFromEuler",value:function(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}},{key:"setFromColor",value:function(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var e=Math.random()*Math.PI*2,t=2*Math.random()-1,i=Math.sqrt(1-t*t);return this.x=i*Math.cos(e),this.y=t,this.z=i*Math.sin(e),this}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:case"end":return e.stop()}}),e,this)}))}])}(),lh=new rh,ch=new ah,uh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh(-1/0,-1/0,-1/0);c()(this,e),this.isBox3=!0,this.min=t,this.max=i}),[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){this.makeEmpty();for(var t=0,i=e.length;t1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x1&&void 0!==arguments[1]&&arguments[1];e.updateWorldMatrix(!1,!1);var i=e.geometry;if(void 0!==i){var n=i.getAttribute("position");if(!0===t&&void 0!==n&&!0!==e.isInstancedMesh)for(var o=0,s=n.count;othis.max.x||e.ythis.max.y||e.zthis.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,ph),ph.distanceToSquared(e.center)<=e.radius*e.radius}},{key:"intersectsPlane",value:function(e){var t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(Ch),wh.subVectors(this.max,Ch),mh.subVectors(e.a,Ch),fh.subVectors(e.b,Ch),vh.subVectors(e.c,Ch),gh.subVectors(fh,mh),yh.subVectors(vh,fh),bh.subVectors(mh,vh);var t=[0,-gh.z,gh.y,0,-yh.z,yh.y,0,-bh.z,bh.y,gh.z,0,-gh.x,yh.z,0,-yh.x,bh.z,0,-bh.x,-gh.y,gh.x,0,-yh.y,yh.x,0,-bh.y,bh.x,0];return!!xh(t,mh,fh,vh,wh)&&(!!xh(t=[1,0,0,0,1,0,0,0,1],mh,fh,vh,wh)&&(kh.crossVectors(gh,yh),xh(t=[kh.x,kh.y,kh.z],mh,fh,vh,wh)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return this.clampPoint(e,ph).distanceTo(e)}},{key:"getBoundingSphere",value:function(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(ph).length()),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()||(hh[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),hh[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),hh[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),hh[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),hh[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),hh[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),hh[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),hh[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(hh)),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}])}(),hh=[new rh,new rh,new rh,new rh,new rh,new rh,new rh,new rh],ph=new rh,dh=new uh,mh=new rh,fh=new rh,vh=new rh,gh=new rh,yh=new rh,bh=new rh,Ch=new rh,wh=new rh,kh=new rh,_h=new rh;function xh(e,t,i,n,o){for(var s=0,a=e.length-3;s<=a;s+=3){_h.fromArray(e,s);var r=o.x*Math.abs(_h.x)+o.y*Math.abs(_h.y)+o.z*Math.abs(_h.z),l=t.dot(_h),c=i.dot(_h),u=n.dot(_h);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var Sh=new uh,Eh=new rh,Ph=new rh,Oh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;c()(this,e),this.isSphere=!0,this.center=t,this.radius=i}),[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var i=this.center;void 0!==t?i.copy(t):Sh.setFromPoints(e).getCenter(i);for(var n=0,o=0,s=e.length;othis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"expandByPoint",value:function(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Eh.subVectors(e,this.center);var t=Eh.lengthSq();if(t>this.radius*this.radius){var i=Math.sqrt(t),n=.5*(i-this.radius);this.center.addScaledVector(Eh,n/i),this.radius+=n}return this}},{key:"union",value:function(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Ph.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Eh.copy(e.center).add(Ph)),this.expandByPoint(Eh.copy(e.center).sub(Ph))),this)}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Dh=new rh,Mh=new rh,Th=new rh,Nh=new rh,Bh=new rh,jh=new rh,Ah=new rh,Lh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh(0,0,-1);c()(this,e),this.origin=t,this.direction=i}),[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,Dh)),this}},{key:"closestPointToPoint",value:function(e,t){t.subVectors(e,this.origin);var i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=Dh.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Dh.copy(this.origin).addScaledVector(this.direction,t),Dh.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,i,n){Mh.copy(e).add(t).multiplyScalar(.5),Th.copy(t).sub(e).normalize(),Nh.copy(this.origin).sub(Mh);var o,s,a,r,l=.5*e.distanceTo(t),c=-this.direction.dot(Th),u=Nh.dot(this.direction),h=-Nh.dot(Th),p=Nh.lengthSq(),d=Math.abs(1-c*c);if(d>0)if(s=c*u-h,r=l*d,(o=c*h-u)>=0)if(s>=-r)if(s<=r){var m=1/d;a=(o*=m)*(o+c*(s*=m)+2*u)+s*(c*o+s+2*h)+p}else s=l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;else s=-l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;else s<=-r?a=-(o=Math.max(0,-(-c*l+u)))*o+(s=o>0?-l:Math.min(Math.max(-l,-h),l))*(s+2*h)+p:s<=r?(o=0,a=(s=Math.min(Math.max(-l,-h),l))*(s+2*h)+p):a=-(o=Math.max(0,-(c*l+u)))*o+(s=o>0?l:Math.min(Math.max(-l,-h),l))*(s+2*h)+p;else s=c>0?-l:l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*h)+p;return i&&i.copy(this.origin).addScaledVector(this.direction,o),n&&n.copy(Mh).addScaledVector(Th,s),a}},{key:"intersectSphere",value:function(e,t){Dh.subVectors(e.center,this.origin);var i=Dh.dot(this.direction),n=Dh.dot(Dh)-i*i,o=e.radius*e.radius;if(n>o)return null;var s=Math.sqrt(o-n),a=i-s,r=i+s;return r<0?null:a<0?this.at(r,t):this.at(a,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}},{key:"intersectPlane",value:function(e,t){var i=this.distanceToPlane(e);return null===i?null:this.at(i,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}},{key:"intersectBox",value:function(e,t){var i,n,o,s,a,r,l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(i=(e.min.x-h.x)*l,n=(e.max.x-h.x)*l):(i=(e.max.x-h.x)*l,n=(e.min.x-h.x)*l),c>=0?(o=(e.min.y-h.y)*c,s=(e.max.y-h.y)*c):(o=(e.max.y-h.y)*c,s=(e.min.y-h.y)*c),i>s||o>n?null:((o>i||isNaN(i))&&(i=o),(s=0?(a=(e.min.z-h.z)*u,r=(e.max.z-h.z)*u):(a=(e.max.z-h.z)*u,r=(e.min.z-h.z)*u),i>r||a>n?null:((a>i||i!=i)&&(i=a),(r=0?i:n,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,Dh)}},{key:"intersectTriangle",value:function(e,t,i,n,o){Bh.subVectors(t,e),jh.subVectors(i,e),Ah.crossVectors(Bh,jh);var s,a=this.direction.dot(Ah);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Nh.subVectors(this.origin,e);var r=s*this.direction.dot(jh.crossVectors(Nh,jh));if(r<0)return null;var l=s*this.direction.dot(Bh.cross(Nh));if(l<0)return null;if(r+l>a)return null;var c=-s*Nh.dot(Ah);return c<0?null:this.at(c/a,o)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Ih=function(){function e(t,i,n,o,s,a,r,l,u,h,p,d,m,f,v,g){c()(this,e),e.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,i,n,o,s,a,r,l,u,h,p,d,m,f,v,g)}return h()(e,[{key:"set",value:function(e,t,i,n,o,s,a,r,l,c,u,h,p,d,m,f){var v=this.elements;return v[0]=e,v[4]=t,v[8]=i,v[12]=n,v[1]=o,v[5]=s,v[9]=a,v[13]=r,v[2]=l,v[6]=c,v[10]=u,v[14]=h,v[3]=p,v[7]=d,v[11]=m,v[15]=f,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}},{key:"setFromMatrix3",value:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,i=e.elements,n=1/Rh.setFromMatrixColumn(e,0).length(),o=1/Rh.setFromMatrixColumn(e,1).length(),s=1/Rh.setFromMatrixColumn(e,2).length();return t[0]=i[0]*n,t[1]=i[1]*n,t[2]=i[2]*n,t[3]=0,t[4]=i[4]*o,t[5]=i[5]*o,t[6]=i[6]*o,t[7]=0,t[8]=i[8]*s,t[9]=i[9]*s,t[10]=i[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){var t=this.elements,i=e.x,n=e.y,o=e.z,s=Math.cos(i),a=Math.sin(i),r=Math.cos(n),l=Math.sin(n),c=Math.cos(o),u=Math.sin(o);if("XYZ"===e.order){var h=s*c,p=s*u,d=a*c,m=a*u;t[0]=r*c,t[4]=-r*u,t[8]=l,t[1]=p+d*l,t[5]=h-m*l,t[9]=-a*r,t[2]=m-h*l,t[6]=d+p*l,t[10]=s*r}else if("YXZ"===e.order){var f=r*c,v=r*u,g=l*c,y=l*u;t[0]=f+y*a,t[4]=g*a-v,t[8]=s*l,t[1]=s*u,t[5]=s*c,t[9]=-a,t[2]=v*a-g,t[6]=y+f*a,t[10]=s*r}else if("ZXY"===e.order){var b=r*c,C=r*u,w=l*c,k=l*u;t[0]=b-k*a,t[4]=-s*u,t[8]=w+C*a,t[1]=C+w*a,t[5]=s*c,t[9]=k-b*a,t[2]=-s*l,t[6]=a,t[10]=s*r}else if("ZYX"===e.order){var _=s*c,x=s*u,S=a*c,E=a*u;t[0]=r*c,t[4]=S*l-x,t[8]=_*l+E,t[1]=r*u,t[5]=E*l+_,t[9]=x*l-S,t[2]=-l,t[6]=a*r,t[10]=s*r}else if("YZX"===e.order){var P=s*r,O=s*l,D=a*r,M=a*l;t[0]=r*c,t[4]=M-P*u,t[8]=D*u+O,t[1]=u,t[5]=s*c,t[9]=-a*c,t[2]=-l*c,t[6]=O*u+D,t[10]=P-M*u}else if("XZY"===e.order){var T=s*r,N=s*l,B=a*r,j=a*l;t[0]=r*c,t[4]=-u,t[8]=l*c,t[1]=T*u+j,t[5]=s*c,t[9]=N*u-B,t[2]=B*u-N,t[6]=a*c,t[10]=j*u+T}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(Fh,e,Hh)}},{key:"lookAt",value:function(e,t,i){var n=this.elements;return Wh.subVectors(e,t),0===Wh.lengthSq()&&(Wh.z=1),Wh.normalize(),Vh.crossVectors(i,Wh),0===Vh.lengthSq()&&(1===Math.abs(i.z)?Wh.x+=1e-4:Wh.z+=1e-4,Wh.normalize(),Vh.crossVectors(i,Wh)),Vh.normalize(),Gh.crossVectors(Wh,Vh),n[0]=Vh.x,n[4]=Gh.x,n[8]=Wh.x,n[1]=Vh.y,n[5]=Gh.y,n[9]=Wh.y,n[2]=Vh.z,n[6]=Gh.z,n[10]=Wh.z,this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var i=e.elements,n=t.elements,o=this.elements,s=i[0],a=i[4],r=i[8],l=i[12],c=i[1],u=i[5],h=i[9],p=i[13],d=i[2],m=i[6],f=i[10],v=i[14],g=i[3],y=i[7],b=i[11],C=i[15],w=n[0],k=n[4],_=n[8],x=n[12],S=n[1],E=n[5],P=n[9],O=n[13],D=n[2],M=n[6],T=n[10],N=n[14],B=n[3],j=n[7],A=n[11],L=n[15];return o[0]=s*w+a*S+r*D+l*B,o[4]=s*k+a*E+r*M+l*j,o[8]=s*_+a*P+r*T+l*A,o[12]=s*x+a*O+r*N+l*L,o[1]=c*w+u*S+h*D+p*B,o[5]=c*k+u*E+h*M+p*j,o[9]=c*_+u*P+h*T+p*A,o[13]=c*x+u*O+h*N+p*L,o[2]=d*w+m*S+f*D+v*B,o[6]=d*k+m*E+f*M+v*j,o[10]=d*_+m*P+f*T+v*A,o[14]=d*x+m*O+f*N+v*L,o[3]=g*w+y*S+b*D+C*B,o[7]=g*k+y*E+b*M+C*j,o[11]=g*_+y*P+b*T+C*A,o[15]=g*x+y*O+b*N+C*L,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],i=e[4],n=e[8],o=e[12],s=e[1],a=e[5],r=e[9],l=e[13],c=e[2],u=e[6],h=e[10],p=e[14];return e[3]*(+o*r*u-n*l*u-o*a*h+i*l*h+n*a*p-i*r*p)+e[7]*(+t*r*p-t*l*h+o*s*h-n*s*p+n*l*c-o*r*c)+e[11]*(+t*l*u-t*a*p-o*s*u+i*s*p+o*a*c-i*l*c)+e[15]*(-n*a*c-t*r*u+t*a*h+n*s*u-i*s*h+i*r*c)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,i){var n=this.elements;return e.isVector3?(n[12]=e.x,n[13]=e.y,n[14]=e.z):(n[12]=e,n[13]=t,n[14]=i),this}},{key:"invert",value:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],o=e[3],s=e[4],a=e[5],r=e[6],l=e[7],c=e[8],u=e[9],h=e[10],p=e[11],d=e[12],m=e[13],f=e[14],v=e[15],g=u*f*l-m*h*l+m*r*p-a*f*p-u*r*v+a*h*v,y=d*h*l-c*f*l-d*r*p+s*f*p+c*r*v-s*h*v,b=c*m*l-d*u*l+d*a*p-s*m*p-c*a*v+s*u*v,C=d*u*r-c*m*r-d*a*h+s*m*h+c*a*f-s*u*f,w=t*g+i*y+n*b+o*C;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var k=1/w;return e[0]=g*k,e[1]=(m*h*o-u*f*o-m*n*p+i*f*p+u*n*v-i*h*v)*k,e[2]=(a*f*o-m*r*o+m*n*l-i*f*l-a*n*v+i*r*v)*k,e[3]=(u*r*o-a*h*o-u*n*l+i*h*l+a*n*p-i*r*p)*k,e[4]=y*k,e[5]=(c*f*o-d*h*o+d*n*p-t*f*p-c*n*v+t*h*v)*k,e[6]=(d*r*o-s*f*o-d*n*l+t*f*l+s*n*v-t*r*v)*k,e[7]=(s*h*o-c*r*o+c*n*l-t*h*l-s*n*p+t*r*p)*k,e[8]=b*k,e[9]=(d*u*o-c*m*o-d*i*p+t*m*p+c*i*v-t*u*v)*k,e[10]=(s*m*o-d*a*o+d*i*l-t*m*l-s*i*v+t*a*v)*k,e[11]=(c*a*o-s*u*o-c*i*l+t*u*l+s*i*p-t*a*p)*k,e[12]=C*k,e[13]=(c*m*n-d*u*n+d*i*h-t*m*h-c*i*f+t*u*f)*k,e[14]=(d*a*n-s*m*n-d*i*r+t*m*r+s*i*f-t*a*f)*k,e[15]=(s*u*n-c*a*n+c*i*r-t*u*r-s*i*h+t*a*h)*k,this}},{key:"scale",value:function(e){var t=this.elements,i=e.x,n=e.y,o=e.z;return t[0]*=i,t[4]*=n,t[8]*=o,t[1]*=i,t[5]*=n,t[9]*=o,t[2]*=i,t[6]*=n,t[10]*=o,t[3]*=i,t[7]*=n,t[11]*=o,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],n=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,n))}},{key:"makeTranslation",value:function(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var i=Math.cos(t),n=Math.sin(t),o=1-i,s=e.x,a=e.y,r=e.z,l=o*s,c=o*a;return this.set(l*s+i,l*a-n*r,l*r+n*a,0,l*a+n*r,c*a+i,c*r-n*s,0,l*r-n*a,c*r+n*s,o*r*r+i,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,i,n,o,s){return this.set(1,i,o,0,e,1,s,0,t,n,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,i){var n=this.elements,o=t._x,s=t._y,a=t._z,r=t._w,l=o+o,c=s+s,u=a+a,h=o*l,p=o*c,d=o*u,m=s*c,f=s*u,v=a*u,g=r*l,y=r*c,b=r*u,C=i.x,w=i.y,k=i.z;return n[0]=(1-(m+v))*C,n[1]=(p+b)*C,n[2]=(d-y)*C,n[3]=0,n[4]=(p-b)*w,n[5]=(1-(h+v))*w,n[6]=(f+g)*w,n[7]=0,n[8]=(d+y)*k,n[9]=(f-g)*k,n[10]=(1-(h+m))*k,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,this}},{key:"decompose",value:function(e,t,i){var n=this.elements,o=Rh.set(n[0],n[1],n[2]).length(),s=Rh.set(n[4],n[5],n[6]).length(),a=Rh.set(n[8],n[9],n[10]).length();this.determinant()<0&&(o=-o),e.x=n[12],e.y=n[13],e.z=n[14],zh.copy(this);var r=1/o,l=1/s,c=1/a;return zh.elements[0]*=r,zh.elements[1]*=r,zh.elements[2]*=r,zh.elements[4]*=l,zh.elements[5]*=l,zh.elements[6]*=l,zh.elements[8]*=c,zh.elements[9]*=c,zh.elements[10]*=c,t.setFromRotationMatrix(zh),i.x=o,i.y=s,i.z=a,this}},{key:"makePerspective",value:function(e,t,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=2*o/(t-e),h=2*o/(i-n),p=(t+e)/(t-e),d=(i+n)/(i-n);if(l===Su)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==Eu)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+l);a=-s/(s-o),r=-s*o/(s-o)}return c[0]=u,c[4]=0,c[8]=p,c[12]=0,c[1]=0,c[5]=h,c[9]=d,c[13]=0,c[2]=0,c[6]=0,c[10]=a,c[14]=r,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}},{key:"makeOrthographic",value:function(e,t,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=1/(t-e),h=1/(i-n),p=1/(s-o),d=(t+e)*u,m=(i+n)*h;if(l===Su)a=(s+o)*p,r=-2*p;else{if(l!==Eu)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+l);a=o*p,r=-1*p}return c[0]=2*u,c[4]=0,c[8]=0,c[12]=-d,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=r,c[14]=-a,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,i=e.elements,n=0;n<16;n++)if(t[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<16;i++)this.elements[i]=e[i+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}])}(),Rh=new rh,zh=new Ih,Fh=new rh(0,0,0),Hh=new rh(1,1,1),Vh=new rh,Gh=new rh,Wh=new rh,Uh=new Ih,Yh=new ah,Jh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DEFAULT_ORDER;c()(this,e),this.isEuler=!0,this._x=t,this._y=i,this._z=n,this._order=o}),[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}},{key:"set",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=i,this._order=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.elements,o=n[0],s=n[4],a=n[8],r=n[1],l=n[5],c=n[9],u=n[2],h=n[6],p=n[10];switch(t){case"XYZ":this._y=Math.asin(Tu(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,p),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Tu(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,p),this._z=Math.atan2(r,l)):(this._y=Math.atan2(-u,o),this._z=0);break;case"ZXY":this._x=Math.asin(Tu(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,p),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(r,o));break;case"ZYX":this._y=Math.asin(-Tu(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(r,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(Tu(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,o)):(this._x=0,this._y=Math.atan2(a,p));break;case"XZY":this._z=Math.asin(-Tu(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-c,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===i&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,i){return Uh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Uh,t,i)}},{key:"setFromVector3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}},{key:"reorder",value:function(e){return Yh.setFromEuler(this),this.setFromQuaternion(Yh,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._x;case 2:return e.next=4,this._y;case 4:return e.next=6,this._z;case 6:return e.next=8,this._order;case 8:case"end":return e.stop()}}),e,this)}))}])}();Jh.DEFAULT_ORDER="XYZ";var qh=function(){return h()((function e(){c()(this,e),this.mask=1}),[{key:"set",value:function(e){this.mask=(1<>>0}},{key:"enable",value:function(e){this.mask|=1<1){for(var t=0;t1){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:[];this[e]===t&&i.push(this);for(var n=this.children,o=0,s=n.length;o0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map((function(e){return{boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()}})),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=o(e.geometries,this.geometry);var s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){var a=s.shapes;if(Array.isArray(a))for(var r=0,l=a.length;r0){n.children=[];for(var d=0;d0){n.animations=[];for(var m=0;m0&&(i.geometries=v),g.length>0&&(i.materials=g),y.length>0&&(i.textures=y),b.length>0&&(i.images=b),C.length>0&&(i.shapes=C),w.length>0&&(i.skeletons=w),k.length>0&&(i.animations=k),_.length>0&&(i.nodes=_)}return i.object=n,i;function x(e){var t=[];for(var i in e){var n=e[i];delete n.metadata,t.push(n)}return t}}},{key:"clone",value:function(e){return(new this.constructor).copy(this,e)}},{key:"copy",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new rh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh;c()(this,e),this.a=t,this.b=i,this.c=n}return h()(e,[{key:"set",value:function(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}},{key:"setFromPointsAndIndices",value:function(e,t,i,n){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[n]),this}},{key:"setFromAttributeAndIndices",value:function(e,t,i,n){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return hp.subVectors(this.c,this.b),pp.subVectors(this.a,this.b),.5*hp.cross(pp).length()}},{key:"getMidpoint",value:function(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,i){return e.getBarycoord(t,this.a,this.b,this.c,i)}},{key:"getInterpolation",value:function(t,i,n,o,s){return e.getInterpolation(t,this.a,this.b,this.c,i,n,o,s)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){var i,n,o=this.a,s=this.b,a=this.c;fp.subVectors(s,o),vp.subVectors(a,o),yp.subVectors(e,o);var r=fp.dot(yp),l=vp.dot(yp);if(r<=0&&l<=0)return t.copy(o);bp.subVectors(e,s);var c=fp.dot(bp),u=vp.dot(bp);if(c>=0&&u<=c)return t.copy(s);var h=r*u-c*l;if(h<=0&&r>=0&&c<=0)return i=r/(r-c),t.copy(o).addScaledVector(fp,i);Cp.subVectors(e,a);var p=fp.dot(Cp),d=vp.dot(Cp);if(d>=0&&p<=d)return t.copy(a);var m=p*l-r*d;if(m<=0&&l>=0&&d<=0)return n=l/(l-d),t.copy(o).addScaledVector(vp,n);var f=c*d-p*u;if(f<=0&&u-c>=0&&p-d>=0)return gp.subVectors(a,s),n=(u-c)/(u-c+(p-d)),t.copy(s).addScaledVector(gp,n);var v=1/(f+m+h);return i=m*v,n=h*v,t.copy(o).addScaledVector(fp,i).addScaledVector(vp,n)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,i,n){n.subVectors(i,t),hp.subVectors(e,t),n.cross(hp);var o=n.lengthSq();return o>0?n.multiplyScalar(1/Math.sqrt(o)):n.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,i,n,o){hp.subVectors(n,t),pp.subVectors(i,t),dp.subVectors(e,t);var s=hp.dot(hp),a=hp.dot(pp),r=hp.dot(dp),l=pp.dot(pp),c=pp.dot(dp),u=s*l-a*a;if(0===u)return o.set(0,0,0),null;var h=1/u,p=(l*r-a*c)*h,d=(s*c-a*r)*h;return o.set(1-p-d,d,p)}},{key:"containsPoint",value:function(e,t,i,n){return null!==this.getBarycoord(e,t,i,n,mp)&&mp.x>=0&&mp.y>=0&&mp.x+mp.y<=1}},{key:"getInterpolation",value:function(e,t,i,n,o,s,a,r){return null===this.getBarycoord(e,t,i,n,mp)?(r.x=0,r.y=0,"z"in r&&(r.z=0),"w"in r&&(r.w=0),null):(r.setScalar(0),r.addScaledVector(o,mp.x),r.addScaledVector(s,mp.y),r.addScaledVector(a,mp.z),r)}},{key:"isFrontFacing",value:function(e,t,i,n){return hp.subVectors(i,t),pp.subVectors(e,t),hp.cross(pp).dot(n)<0}}])}(),kp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_p={h:0,s:0,l:0},xp={h:0,s:0,l:0};function Sp(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+6*(t-e)*(2/3-i):e}var Ep=function(){return h()((function e(t,i,n){return c()(this,e),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,i,n)}),[{key:"set",value:function(e,t,i){if(void 0===t&&void 0===i){var n=e;n&&n.isColor?this.copy(n):"number"==typeof n?this.setHex(n):"string"==typeof n&&this.setStyle(n)}else this.setRGB(e,t,i);return this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,qu.toWorkingColorSpace(this,t),this}},{key:"setRGB",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qu.workingColorSpace;return this.r=e,this.g=t,this.b=i,qu.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qu.workingColorSpace;if(e=Nu(e,1),t=Tu(t,0,1),i=Tu(i,0,1),0===t)this.r=this.g=this.b=i;else{var o=i<=.5?i*(1+t):i+t-i*t,s=2*i-o;this.r=Sp(s,o,e+1/3),this.g=Sp(s,o,e),this.b=Sp(s,o,e-1/3)}return qu.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu;function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(t=/^(\w+)\(([^\)]*)\)/.exec(e)){var o,s=t[1],a=t[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,i);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,i);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(t=/^\#([A-Fa-f\d]+)$/.exec(e)){var r=t[1],l=r.length;if(3===l)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,i);if(6===l)return this.setHex(parseInt(r,16),i);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,i);return this}},{key:"setColorName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vu,i=kp[e.toLowerCase()];return void 0!==i?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copySRGBToLinear",value:function(e){return this.r=Xu(e.r),this.g=Xu(e.g),this.b=Xu(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=Zu(e.r),this.g=Zu(e.g),this.b=Zu(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;return qu.fromWorkingColorSpace(Pp.copy(this),e),65536*Math.round(Tu(255*Pp.r,0,255))+256*Math.round(Tu(255*Pp.g,0,255))+Math.round(Tu(255*Pp.b,0,255))}},{key:"getHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;return("000000"+this.getHex(e).toString(16)).slice(-6)}},{key:"getHSL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qu.workingColorSpace;qu.fromWorkingColorSpace(Pp.copy(this),t);var i,n,o=Pp.r,s=Pp.g,a=Pp.b,r=Math.max(o,s,a),l=Math.min(o,s,a),c=(l+r)/2;if(l===r)i=0,n=0;else{var u=r-l;switch(n=c<=.5?u/(r+l):u/(2-r-l),r){case o:i=(s-a)/u+(s1&&void 0!==arguments[1]?arguments[1]:qu.workingColorSpace;return qu.fromWorkingColorSpace(Pp.copy(this),t),e.r=Pp.r,e.g=Pp.g,e.b=Pp.b,e}},{key:"getStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vu;qu.fromWorkingColorSpace(Pp.copy(this),e);var t=Pp.r,i=Pp.g,n=Pp.b;return e!==vu?"color(".concat(e," ").concat(t.toFixed(3)," ").concat(i.toFixed(3)," ").concat(n.toFixed(3),")"):"rgb(".concat(Math.round(255*t),",").concat(Math.round(255*i),",").concat(Math.round(255*n),")")}},{key:"offsetHSL",value:function(e,t,i){return this.getHSL(_p),this.setHSL(_p.h+e,_p.s+t,_p.l+i)}},{key:"add",value:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}},{key:"addColors",value:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}},{key:"addScalar",value:function(e){return this.r+=e,this.g+=e,this.b+=e,this}},{key:"sub",value:function(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}},{key:"multiply",value:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}},{key:"multiplyScalar",value:function(e){return this.r*=e,this.g*=e,this.b*=e,this}},{key:"lerp",value:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}},{key:"lerpColors",value:function(e,t,i){return this.r=e.r+(t.r-e.r)*i,this.g=e.g+(t.g-e.g)*i,this.b=e.b+(t.b-e.b)*i,this}},{key:"lerpHSL",value:function(e,t){this.getHSL(_p),e.getHSL(xp);var i=Bu(_p.h,xp.h,t),n=Bu(_p.s,xp.s,t),o=Bu(_p.l,xp.l,t);return this.setHSL(i,n,o),this}},{key:"setFromVector3",value:function(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}},{key:"applyMatrix3",value:function(e){var t=this.r,i=this.g,n=this.b,o=e.elements;return this.r=o[0]*t+o[3]*i+o[6]*n,this.g=o[1]*t+o[4]*i+o[7]*n,this.b=o[2]*t+o[5]*i+o[8]*n,this}},{key:"equals",value:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.r;case 2:return e.next=4,this.g;case 4:return e.next=6,this.b;case 6:case"end":return e.stop()}}),e,this)}))}])}(),Pp=new Ep;Ep.NAMES=kp;var Op=0,Dp=function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).isMaterial=!0,Object.defineProperty(cu()(e),"id",{value:Op++}),e.uuid=Mu(),e.name="",e.type="Material",e.blending=1,e.side=0,e.vertexColors=!1,e.opacity=1,e.transparent=!1,e.alphaHash=!1,e.blendSrc=204,e.blendDst=205,e.blendEquation=100,e.blendSrcAlpha=null,e.blendDstAlpha=null,e.blendEquationAlpha=null,e.blendColor=new Ep(0,0,0),e.blendAlpha=0,e.depthFunc=3,e.depthTest=!0,e.depthWrite=!0,e.stencilWriteMask=255,e.stencilFunc=519,e.stencilRef=0,e.stencilFuncMask=255,e.stencilFail=_u,e.stencilZFail=_u,e.stencilZPass=_u,e.stencilWrite=!1,e.clippingPlanes=null,e.clipIntersection=!1,e.clipShadows=!1,e.shadowSide=null,e.colorWrite=!0,e.precision=null,e.polygonOffset=!1,e.polygonOffsetFactor=0,e.polygonOffsetUnits=0,e.dithering=!1,e.alphaToCoverage=!1,e.premultipliedAlpha=!1,e.forceSinglePass=!1,e.visible=!0,e.toneMapped=!0,e.userData={},e.version=0,e._alphaTest=0,e}return Me()(t,e),h()(t,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(e){if(void 0!==e)for(var t in e){var i=e[t];if(void 0!==i){var n=this[t];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[t]=i:console.warn("THREE.Material: '".concat(t,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(t,"' has value of undefined."))}}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(e){var t=[];for(var i in e){var n=e[i];delete n.metadata,t.push(n)}return t}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),0!==this.side&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),204!==this.blendSrc&&(i.blendSrc=this.blendSrc),205!==this.blendDst&&(i.blendDst=this.blendDst),100!==this.blendEquation&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==_u&&(i.stencilFail=this.stencilFail),this.stencilZFail!==_u&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==_u&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),t){var o=n(e.textures),s=n(e.images);o.length>0&&(i.textures=o),s.length>0&&(i.images=s)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,i=null;if(null!==t){var n=t.length;i=new Array(n);for(var o=0;o!==n;++o)i[o]=t[o].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}])}(Pu),Mp=function(e){function t(e){var i;return c()(this,t),(i=hu(this,t)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new Ep(16777215),i.map=null,i.lightMap=null,i.lightMapIntensity=1,i.aoMap=null,i.aoMapIntensity=1,i.specularMap=null,i.alphaMap=null,i.envMap=null,i.envMapRotation=new Jh,i.combine=0,i.reflectivity=1,i.refractionRatio=.98,i.wireframe=!1,i.wireframeLinewidth=1,i.wireframeLinecap="round",i.wireframeLinejoin="round",i.fog=!0,i.setValues(e),i}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}])}(Dp);!function(){for(var e=new ArrayBuffer(4),t=new Float32Array(e),i=new Uint32Array(e),n=new Uint32Array(512),o=new Uint32Array(512),s=0;s<256;++s){var a=s-127;a<-27?(n[s]=0,n[256|s]=32768,o[s]=24,o[256|s]=24):a<-14?(n[s]=1024>>-a-14,n[256|s]=1024>>-a-14|32768,o[s]=-a-1,o[256|s]=-a-1):a<=15?(n[s]=a+15<<10,n[256|s]=a+15<<10|32768,o[s]=13,o[256|s]=13):a<128?(n[s]=31744,n[256|s]=64512,o[s]=24,o[256|s]=24):(n[s]=31744,n[256|s]=64512,o[s]=13,o[256|s]=13)}for(var r=new Uint32Array(2048),l=new Uint32Array(64),c=new Uint32Array(64),u=1;u<1024;++u){for(var h=u<<13,p=0;0==(8388608&h);)h<<=1,p-=8388608;h&=-8388609,p+=947912704,r[u]=h|p}for(var d=1024;d<2048;++d)r[d]=939524096+(d-1024<<13);for(var m=1;m<31;++m)l[m]=m<<23;l[31]=1199570944,l[32]=2147483648;for(var f=33;f<63;++f)l[f]=2147483648+(f-32<<23);l[63]=3347054592;for(var v=1;v<64;++v)32!==v&&(c[v]=1024)}();var Tp=new rh,Np=new Lu,Bp=function(){return h()((function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(c()(this,e),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=i,this.count=void 0!==t?t.length/i:0,this.normalized=n,this.usage=xu,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=1015,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"updateRange",get:function(){return Vu("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"addUpdateRange",value:function(e,t){this.updateRanges.push({start:e,count:t})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}},{key:"copyAt",value:function(e,t,i){e*=this.itemSize,i*=t.itemSize;for(var n=0,o=this.itemSize;n1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"getComponent",value:function(e,t){var i=this.array[e*this.itemSize+t];return this.normalized&&(i=ju(i,this.array)),i}},{key:"setComponent",value:function(e,t,i){return this.normalized&&(i=Au(i,this.array)),this.array[e*this.itemSize+t]=i,this}},{key:"getX",value:function(e){var t=this.array[e*this.itemSize];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setX",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize]=t,this}},{key:"getY",value:function(e){var t=this.array[e*this.itemSize+1];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setY",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+1]=t,this}},{key:"getZ",value:function(e){var t=this.array[e*this.itemSize+2];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setZ",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+2]=t,this}},{key:"getW",value:function(e){var t=this.array[e*this.itemSize+3];return this.normalized&&(t=ju(t,this.array)),t}},{key:"setW",value:function(e,t){return this.normalized&&(t=Au(t,this.array)),this.array[e*this.itemSize+3]=t,this}},{key:"setXY",value:function(e,t,i){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array)),this.array[e+0]=t,this.array[e+1]=i,this}},{key:"setXYZ",value:function(e,t,i,n){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array),n=Au(n,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=n,this}},{key:"setXYZW",value:function(e,t,i,n,o){return e*=this.itemSize,this.normalized&&(t=Au(t,this.array),i=Au(i,this.array),n=Au(n,this.array),o=Au(o,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=n,this.array[e+3]=o,this}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==xu&&(e.usage=this.usage),e}}])}(),jp=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Uint16Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Ap=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Uint32Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Lp=function(e){function t(e,i,n){return c()(this,t),hu(this,t,[new Float32Array(e),i,n])}return Me()(t,e),h()(t)}(Bp),Ip=0,Rp=new Ih,zp=new up,Fp=new rh,Hp=new uh,Vp=new uh,Gp=new rh,Wp=function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).isBufferGeometry=!0,Object.defineProperty(cu()(e),"id",{value:Ip++}),e.uuid=Mu(),e.name="",e.type="BufferGeometry",e.index=null,e.attributes={},e.morphAttributes={},e.morphTargetsRelative=!1,e.groups=[],e.boundingBox=null,e.boundingSphere=null,e.drawRange={start:0,count:1/0},e.userData={},e}return Me()(t,e),h()(t,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return Array.isArray(e)?this.index=new(zu(e)?Ap:jp)(e,1):this.index=e,this}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setAttribute",value:function(e,t){return this.attributes[e]=t,this}},{key:"deleteAttribute",value:function(e){return delete this.attributes[e],this}},{key:"hasAttribute",value:function(e){return void 0!==this.attributes[e]}},{key:"addGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(e,t){this.drawRange.start=e,this.drawRange.count=t}},{key:"applyMatrix4",value:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var n=(new Iu).getNormalMatrix(e);i.applyNormalMatrix(n),i.needsUpdate=!0}var o=this.attributes.tangent;return void 0!==o&&(o.transformDirection(e),o.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(e){return Rp.makeRotationFromQuaternion(e),this.applyMatrix4(Rp),this}},{key:"rotateX",value:function(e){return Rp.makeRotationX(e),this.applyMatrix4(Rp),this}},{key:"rotateY",value:function(e){return Rp.makeRotationY(e),this.applyMatrix4(Rp),this}},{key:"rotateZ",value:function(e){return Rp.makeRotationZ(e),this.applyMatrix4(Rp),this}},{key:"translate",value:function(e,t,i){return Rp.makeTranslation(e,t,i),this.applyMatrix4(Rp),this}},{key:"scale",value:function(e,t,i){return Rp.makeScale(e,t,i),this.applyMatrix4(Rp),this}},{key:"lookAt",value:function(e){return zp.lookAt(e),zp.updateMatrix(),this.applyMatrix4(zp.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Fp).negate(),this.translate(Fp.x,Fp.y,Fp.z),this}},{key:"setFromPoints",value:function(e){for(var t=[],i=0,n=e.length;i0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var i in t)void 0!==t[i]&&(e[i]=t[i]);return e}e.data={attributes:{}};var n=this.index;null!==n&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});var o=this.attributes;for(var s in o){var a=o[s];e.data.attributes[s]=a.toJSON(e.data)}var r={},l=!1;for(var c in this.morphAttributes){for(var u=this.morphAttributes[c],h=[],p=0,d=u.length;p0&&(r[c]=h,l=!0)}l&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);var f=this.groups;f.length>0&&(e.data.groups=JSON.parse(JSON.stringify(f)));var v=this.boundingSphere;return null!==v&&(e.data.boundingSphere={center:v.center.toArray(),radius:v.radius}),e}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var i=e.index;null!==i&&this.setIndex(i.clone(t));var n=e.attributes;for(var o in n){var s=n[o];this.setAttribute(o,s.clone(t))}var a=e.morphAttributes;for(var r in a){for(var l=[],c=a[r],u=0,h=c.length;u0&&void 0!==arguments[0]?arguments[0]:new Wp,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Mp;return c()(this,t),(e=hu(this,t)).isMesh=!0,e.type="Mesh",e.geometry=i,e.material=n,e.updateMorphTargets(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e,i){return uu(t,"copy",this,3)([e,i]),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}},{key:"updateMorphTargets",value:function(){var e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){var i=e[t[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var n=0,o=i.length;nMath.pow(e.far-e.near,2))return}Up.copy(o).invert(),Yp.copy(e.ray).applyMatrix4(Up),null!==i.boundingBox&&!1===Yp.intersectsBox(i.boundingBox)||this._computeIntersections(e,t,Yp)}}},{key:"_computeIntersections",value:function(e,t,i){var n,o=this.geometry,s=this.material,a=o.index,r=o.attributes.position,l=o.attributes.uv,c=o.attributes.uv1,u=o.attributes.normal,h=o.groups,p=o.drawRange;if(null!==a)if(Array.isArray(s))for(var d=0,m=h.length;di.far?null:{distance:l,point:rd.clone(),object:e}}(e,t,i,n,Xp,Zp,Kp,ad);if(u){o&&(ed.fromBufferAttribute(o,r),td.fromBufferAttribute(o,l),id.fromBufferAttribute(o,c),u.uv=wp.getInterpolation(ad,Xp,Zp,Kp,ed,td,id,new Lu)),s&&(ed.fromBufferAttribute(s,r),td.fromBufferAttribute(s,l),id.fromBufferAttribute(s,c),u.uv1=wp.getInterpolation(ad,Xp,Zp,Kp,ed,td,id,new Lu)),a&&(nd.fromBufferAttribute(a,r),od.fromBufferAttribute(a,l),sd.fromBufferAttribute(a,c),u.normal=wp.getInterpolation(ad,Xp,Zp,Kp,nd,od,sd,new rh),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var h={a:r,b:l,c:c,normal:new rh,materialIndex:0};wp.getNormal(Xp,Zp,Kp,h.normal),u.face=h}return u}var ud=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;c()(this,t),(e=hu(this,t)).type="BoxGeometry",e.parameters={width:i,height:n,depth:o,widthSegments:s,heightSegments:a,depthSegments:r};var l=e;s=Math.floor(s),a=Math.floor(a),r=Math.floor(r);var u=[],h=[],p=[],d=[],m=0,f=0;function v(e,t,i,n,o,s,a,r,c,v,g){for(var y=s/c,b=a/v,C=s/2,w=a/2,k=r/2,_=c+1,x=v+1,S=0,E=0,P=new rh,O=0;O0?1:-1,p.push(P.x,P.y,P.z),d.push(M/c),d.push(1-O/v),S+=1}for(var N=0;N0&&void 0!==arguments[0]?arguments[0]:new rh(1,0,0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,e),this.isPlane=!0,this.normal=t,this.constant=i}),[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,i,n){return this.normal.set(e,t,i),this.constant=n,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,i){var n=fd.subVectors(i,t).cross(vd.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(n,e),this}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}},{key:"intersectLine",value:function(e,t){var i=e.delta(fd),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;var o=-(e.start.dot(this.normal)+this.constant)/n;return o<0||o>1?null:t.copy(e.start).addScaledVector(i,o)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var i=t||gd.getNormalMatrix(e),n=this.coplanarPoint(fd).applyMatrix4(e),o=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(o),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),bd=new Oh,Cd=new rh,wd=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new yd,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new yd,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new yd,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new yd,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new yd,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new yd;c()(this,e),this.planes=[t,i,n,o,s,a]}),[{key:"set",value:function(e,t,i,n,o,s){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(n),a[4].copy(o),a[5].copy(s),this}},{key:"copy",value:function(e){for(var t=this.planes,i=0;i<6;i++)t[i].copy(e.planes[i]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=this.planes,n=e.elements,o=n[0],s=n[1],a=n[2],r=n[3],l=n[4],c=n[5],u=n[6],h=n[7],p=n[8],d=n[9],m=n[10],f=n[11],v=n[12],g=n[13],y=n[14],b=n[15];if(i[0].setComponents(r-o,h-l,f-p,b-v).normalize(),i[1].setComponents(r+o,h+l,f+p,b+v).normalize(),i[2].setComponents(r+s,h+c,f+d,b+g).normalize(),i[3].setComponents(r-s,h-c,f-d,b-g).normalize(),i[4].setComponents(r-a,h-u,f-m,b-y).normalize(),t===Su)i[5].setComponents(r+a,h+u,f+m,b+y).normalize();else{if(t!==Eu)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);i[5].setComponents(a,u,m,y).normalize()}return this}},{key:"intersectsObject",value:function(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),bd.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{var t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),bd.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(bd)}},{key:"intersectsSprite",value:function(e){return bd.center.set(0,0,0),bd.radius=.7071067811865476,bd.applyMatrix4(e.matrixWorld),this.intersectsSphere(bd)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,i=e.center,n=-e.radius,o=0;o<6;o++)if(t[o].distanceToPoint(i)0?e.max.x:e.min.x,Cd.y=n.normal.y>0?e.max.y:e.min.y,Cd.z=n.normal.z>0?e.max.z:e.min.z,n.distanceToPoint(Cd)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}();var kd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;c()(this,t),(e=hu(this,t)).type="PlaneGeometry",e.parameters={width:i,height:n,widthSegments:o,heightSegments:s};for(var a=i/2,r=n/2,l=Math.floor(o),u=Math.floor(s),h=l+1,p=u+1,d=i/l,m=n/u,f=[],v=[],g=[],y=[],b=0;b 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},xd={common:{diffuse:{value:new Ep(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Iu},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Iu}},envmap:{envMap:{value:null},envMapRotation:{value:new Iu},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Iu}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Iu}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Iu},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Iu},normalScale:{value:new Lu(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Iu},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Iu}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Iu}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Iu}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ep(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ep(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0},uvTransform:{value:new Iu}},sprite:{diffuse:{value:new Ep(16777215)},opacity:{value:1},center:{value:new Lu(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Iu},alphaMap:{value:null},alphaMapTransform:{value:new Iu},alphaTest:{value:0}}},Sd={basic:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.fog]),vertexShader:_d.meshbasic_vert,fragmentShader:_d.meshbasic_frag},lambert:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)}}]),vertexShader:_d.meshlambert_vert,fragmentShader:_d.meshlambert_frag},phong:{uniforms:pd([xd.common,xd.specularmap,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)},specular:{value:new Ep(1118481)},shininess:{value:30}}]),vertexShader:_d.meshphong_vert,fragmentShader:_d.meshphong_frag},standard:{uniforms:pd([xd.common,xd.envmap,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.roughnessmap,xd.metalnessmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:_d.meshphysical_vert,fragmentShader:_d.meshphysical_frag},toon:{uniforms:pd([xd.common,xd.aomap,xd.lightmap,xd.emissivemap,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.gradientmap,xd.fog,xd.lights,{emissive:{value:new Ep(0)}}]),vertexShader:_d.meshtoon_vert,fragmentShader:_d.meshtoon_frag},matcap:{uniforms:pd([xd.common,xd.bumpmap,xd.normalmap,xd.displacementmap,xd.fog,{matcap:{value:null}}]),vertexShader:_d.meshmatcap_vert,fragmentShader:_d.meshmatcap_frag},points:{uniforms:pd([xd.points,xd.fog]),vertexShader:_d.points_vert,fragmentShader:_d.points_frag},dashed:{uniforms:pd([xd.common,xd.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:_d.linedashed_vert,fragmentShader:_d.linedashed_frag},depth:{uniforms:pd([xd.common,xd.displacementmap]),vertexShader:_d.depth_vert,fragmentShader:_d.depth_frag},normal:{uniforms:pd([xd.common,xd.bumpmap,xd.normalmap,xd.displacementmap,{opacity:{value:1}}]),vertexShader:_d.meshnormal_vert,fragmentShader:_d.meshnormal_frag},sprite:{uniforms:pd([xd.sprite,xd.fog]),vertexShader:_d.sprite_vert,fragmentShader:_d.sprite_frag},background:{uniforms:{uvTransform:{value:new Iu},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:_d.background_vert,fragmentShader:_d.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Iu}},vertexShader:_d.backgroundCube_vert,fragmentShader:_d.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:_d.cube_vert,fragmentShader:_d.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:_d.equirect_vert,fragmentShader:_d.equirect_frag},distanceRGBA:{uniforms:pd([xd.common,xd.displacementmap,{referencePosition:{value:new rh},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:_d.distanceRGBA_vert,fragmentShader:_d.distanceRGBA_frag},shadow:{uniforms:pd([xd.lights,xd.fog,{color:{value:new Ep(0)},opacity:{value:1}}]),vertexShader:_d.shadow_vert,fragmentShader:_d.shadow_frag}};Sd.physical={uniforms:pd([Sd.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Iu},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Iu},clearcoatNormalScale:{value:new Lu(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Iu},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Iu},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Iu},sheen:{value:0},sheenColor:{value:new Ep(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Iu},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Iu},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Iu},transmissionSamplerSize:{value:new Lu},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Iu},attenuationDistance:{value:0},attenuationColor:{value:new Ep(0)},specularColor:{value:new Ep(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Iu},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Iu},anisotropyVector:{value:new Lu},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Iu}}]),vertexShader:_d.meshphysical_vert,fragmentShader:_d.meshphysical_frag};new Jh,new Ih;var Ed=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return c()(this,t),(e=hu(this,t)).isOrthographicCamera=!0,e.type="OrthographicCamera",e.zoom=1,e.view=null,e.left=i,e.right=n,e.top=o,e.bottom=s,e.near=a,e.far=r,e.updateProjectionMatrix(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e,i){return uu(t,"copy",this,3)([e,i]),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}},{key:"setViewOffset",value:function(e,t,i,n,o,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,o=i-e,s=i+e,a=n+t,r=n-t;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s=(o+=l*this.view.offsetX)+l*this.view.width,r=(a-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,r,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var i=uu(t,"toJSON",this,3)([e]);return i.object.zoom=this.zoom,i.object.left=this.left,i.object.right=this.right,i.object.top=this.top,i.object.bottom=this.bottom,i.object.near=this.near,i.object.far=this.far,null!==this.view&&(i.object.view=Object.assign({},this.view)),i}}])}(dd),Pd=(new Ed,new Ep,(1+Math.sqrt(5))/2),Od=1/Pd;new rh(-Pd,Od,0),new rh(Pd,Od,0),new rh(-Od,0,Pd),new rh(Od,0,Pd),new rh(0,Pd,-Od),new rh(0,Pd,Od),new rh(-1,1,-1),new rh(1,1,-1),new rh(-1,1,1),new rh(1,1,1);var Dd=function(e){function t(e,i,n,o,s,a,r,l,u,h){var p;if(c()(this,t),1026!==(h=void 0!==h?h:1026)&&1027!==h)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===n&&1026===h&&(n=pu),void 0===n&&1027===h&&(n=du),(p=hu(this,t,[null,o,s,a,r,l,h,n,u])).isDepthTexture=!0,p.image={width:e,height:i},p.magFilter=void 0!==r?r:1003,p.minFilter=void 0!==l?l:1003,p.flipY=!1,p.generateMipmaps=!1,p.compareFunction=null,p}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.compareFunction=e.compareFunction,this}},{key:"toJSON",value:function(e){var i=uu(t,"toJSON",this,3)([e]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(ih),Md=(new ih,new Dd(1,1));Md.compareFunction=515;new oh,new sh,new md,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new Jh,new Ih;new rh,new rh,new rh,new rh,new Lu,new Lu,new Ih,new rh,new rh,new rh,new Lu,new Lu,new Lu;new rh,new rh,new rh,new nh,new nh,new rh,new Ih,new rh,new Oh,new Ih,new Lh,new Ih,new Ih,new Ih,new Ih,new uh,new Ih,new ld,new Oh;var Td=function(){return h()((function e(){c()(this,e),this.index=0,this.pool=[],this.list=[]}),[{key:"push",value:function(e,t){var i=this.pool,n=this.list;this.index>=i.length&&i.push({start:-1,count:-1,z:-1});var o=i[this.index];n.push(o),this.index++,o.start=e.start,o.count=e.count,o.z=t}},{key:"reset",value:function(){this.list.length=0,this.index=0}}])}();new Ih,new Ih,new Ih,new Ih,new wd,new uh,new Oh,new rh,new Td,new ld;new rh,new rh,new Ih,new Lh,new Oh,new rh,new rh;new rh,new rh,new Ih,new Lh,new Oh,new rh;var Nd=function(){return h()((function e(){c()(this,e),this.type="Curve",this.arcLengthDivisions=200}),[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(e,t){var i=this.getUtoTmapping(e);return this.getPoint(i,t)}},{key:"getPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],i=0;i<=e;i++)t.push(this.getPoint(i/e));return t}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],i=0;i<=e;i++)t.push(this.getPointAt(i/e));return t}},{key:"getLength",value:function(){var e=this.getLengths();return e[e.length-1]}},{key:"getLengths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,i=[],n=this.getPoint(0),o=0;i.push(0);for(var s=1;s<=e;s++)o+=(t=this.getPoint(s/e)).distanceTo(n),i.push(o),n=t;return this.cacheArcLengths=i,i}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(e,t){var i,n=this.getLengths(),o=0,s=n.length;i=t||e*n[s-1];for(var a,r=0,l=s-1;r<=l;)if((a=n[o=Math.floor(r+(l-r)/2)]-i)<0)r=o+1;else{if(!(a>0)){l=o;break}l=o-1}if(n[o=l]===i)return o/(s-1);var c=n[o];return(o+(i-c)/(n[o+1]-c))/(s-1)}},{key:"getTangent",value:function(e,t){var i=1e-4,n=e-i,o=e+i;n<0&&(n=0),o>1&&(o=1);var s=this.getPoint(n),a=this.getPoint(o),r=t||(s.isVector2?new Lu:new rh);return r.copy(a).sub(s).normalize(),r}},{key:"getTangentAt",value:function(e,t){var i=this.getUtoTmapping(e);return this.getTangent(i,t)}},{key:"computeFrenetFrames",value:function(e,t){for(var i=new rh,n=[],o=[],s=[],a=new rh,r=new Ih,l=0;l<=e;l++){var c=l/e;n[l]=this.getTangentAt(c,new rh)}o[0]=new rh,s[0]=new rh;var u=Number.MAX_VALUE,h=Math.abs(n[0].x),p=Math.abs(n[0].y),d=Math.abs(n[0].z);h<=u&&(u=h,i.set(1,0,0)),p<=u&&(u=p,i.set(0,1,0)),d<=u&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),o[0].crossVectors(n[0],a),s[0].crossVectors(n[0],o[0]);for(var m=1;m<=e;m++){if(o[m]=o[m-1].clone(),s[m]=s[m-1].clone(),a.crossVectors(n[m-1],n[m]),a.length()>Number.EPSILON){a.normalize();var f=Math.acos(Tu(n[m-1].dot(n[m]),-1,1));o[m].applyMatrix4(r.makeRotationAxis(a,f))}s[m].crossVectors(n[m],o[m])}if(!0===t){var v=Math.acos(Tu(o[0].dot(o[e]),-1,1));v/=e,n[0].dot(a.crossVectors(o[0],o[e]))>0&&(v=-v);for(var g=1;g<=e;g++)o[g].applyMatrix4(r.makeRotationAxis(n[g],v*g)),s[g].crossVectors(n[g],o[g])}return{tangents:n,normals:o,binormals:s}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},{key:"toJSON",value:function(){var e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}},{key:"fromJSON",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}])}(),Bd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return c()(this,t),(e=hu(this,t)).isEllipseCurve=!0,e.type="EllipseCurve",e.aX=i,e.aY=n,e.xRadius=o,e.yRadius=s,e.aStartAngle=a,e.aEndAngle=r,e.aClockwise=l,e.aRotation=u,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=2*Math.PI,o=this.aEndAngle-this.aStartAngle,s=Math.abs(o)n;)o-=n;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return c()(this,t),(e=hu(this,t)).isCatmullRomCurve3=!0,e.type="CatmullRomCurve3",e.points=i,e.closed=n,e.curveType=o,e.tension=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=n,s=this.points,a=s.length,r=(a-(this.closed?0:1))*e,l=Math.floor(r),c=r-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/a)+1)*a:0===c&&l===a-1&&(l=a-2,c=1),this.closed||l>0?t=s[(l-1)%a]:(Ld.subVectors(s[0],s[1]).add(s[0]),t=Ld);var u=s[l%a],h=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Lu,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Lu;return c()(this,t),(e=hu(this,t)).isCubicBezierCurve=!0,e.type="CubicBezierCurve",e.v0=i,e.v1=n,e.v2=o,e.v3=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Gd(e,n.x,o.x,s.x,a.x),Gd(e,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}])}(Nd),Ud=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new rh;return c()(this,t),(e=hu(this,t)).isCubicBezierCurve3=!0,e.type="CubicBezierCurve3",e.v0=i,e.v1=n,e.v2=o,e.v3=s,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Gd(e,n.x,o.x,s.x,a.x),Gd(e,n.y,o.y,s.y,a.y),Gd(e,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}])}(Nd),Yd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu;return c()(this,t),(e=hu(this,t)).isLineCurve=!0,e.type="LineCurve",e.v1=i,e.v2=n,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t;return 1===e?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(e).add(this.v1)),i}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu;return t.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(e,t){return this.getTangent(e,t)}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Jd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh;return c()(this,t),(e=hu(this,t)).isLineCurve3=!0,e.type="LineCurve3",e.v1=i,e.v2=n,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t;return 1===e?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(e).add(this.v1)),i}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh;return t.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(e,t){return this.getTangent(e,t)}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),qd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Lu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Lu;return c()(this,t),(e=hu(this,t)).isQuadraticBezierCurve=!0,e.type="QuadraticBezierCurve",e.v0=i,e.v1=n,e.v2=o,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Vd(e,n.x,o.x,s.x),Vd(e,n.y,o.y,s.y)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Xd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new rh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rh;return c()(this,t),(e=hu(this,t)).isQuadraticBezierCurve3=!0,e.type="QuadraticBezierCurve3",e.v0=i,e.v1=n,e.v2=o,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new rh,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Vd(e,n.x,o.x,s.x),Vd(e,n.y,o.y,s.y),Vd(e,n.z,o.z,s.z)),i}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Nd),Zd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c()(this,t),(e=hu(this,t)).isSplineCurve=!0,e.type="SplineCurve",e.points=i,e}return Me()(t,e),h()(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Lu,i=t,n=this.points,o=(n.length-1)*e,s=Math.floor(o),a=o-s,r=n[0===s?s:s-1],l=n[s],c=n[s>n.length-2?n.length-1:s+1],u=n[s>n.length-3?n.length-1:s+2];return i.set(Hd(a,r.x,l.x,c.x,u.x),Hd(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(e){uu(t,"copy",this,3)([e]),this.points=[];for(var i=0,n=e.points.length;i0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);return this.currentPoint.copy(u),this}},{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=uu(t,"toJSON",this,3)([]);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return uu(t,"fromJSON",this,3)([e]),this.currentPoint.fromArray(e.currentPoint),this}}])}(function(e){function t(){var e;return c()(this,t),(e=hu(this,t)).type="CurvePath",e.curves=[],e.autoClose=!1,e}return Me()(t,e),h()(t,[{key:"add",value:function(e){this.curves.push(e)}},{key:"closePath",value:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){var i=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new Kd[i](t,e))}return this}},{key:"getPoint",value:function(e,t){for(var i=e*this.getLength(),n=this.getCurveLengths(),o=0;o=i){var s=n[o]-i,a=this.curves[o],r=a.getLength(),l=0===r?0:1-s/r;return a.getPointAt(l,t)}o++}return null}},{key:"getLength",value:function(){var e=this.getCurveLengths();return e[e.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,i=0,n=this.curves.length;i0&&void 0!==arguments[0]?arguments[0]:40,t=[],i=0;i<=e;i++)t.push(this.getPoint(i/e));return this.autoClose&&t.push(t[0]),t}},{key:"getPoints",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,i=[],n=0,o=this.curves;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},{key:"copy",value:function(e){uu(t,"copy",this,3)([e]),this.curves=[];for(var i=0,n=e.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new Lu(0,-.5),new Lu(.5,0),new Lu(0,.5)],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="LatheGeometry",e.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=Tu(s,0,2*Math.PI);for(var a=[],r=[],l=[],u=[],h=[],p=1/n,d=new rh,m=new Lu,f=new rh,v=new rh,g=new rh,y=0,b=0,C=0;C<=i.length-1;C++)switch(C){case 0:y=i[C+1].x-i[C].x,b=i[C+1].y-i[C].y,f.x=1*b,f.y=-y,f.z=0*b,g.copy(f),f.normalize(),u.push(f.x,f.y,f.z);break;case i.length-1:u.push(g.x,g.y,g.z);break;default:y=i[C+1].x-i[C].x,b=i[C+1].y-i[C].y,f.x=1*b,f.y=-y,f.z=0*b,v.copy(f),f.x+=g.x,f.y+=g.y,f.z+=g.z,f.normalize(),u.push(f.x,f.y,f.z),g.copy(v)}for(var w=0;w<=n;w++)for(var k=o+w*p*s,_=Math.sin(k),x=Math.cos(k),S=0;S<=i.length-1;S++){d.x=i[S].x*_,d.y=i[S].y,d.z=i[S].x*x,r.push(d.x,d.y,d.z),m.x=w/n,m.y=S/(i.length-1),l.push(m.x,m.y);var E=u[3*S+0]*_,P=u[3*S+1],O=u[3*S+0]*x;h.push(E,P,O)}for(var D=0;D0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;c()(this,t);var a=new Qd;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(e=hu(this,t,[a.getPoints(o),s])).type="CapsuleGeometry",e.parameters={radius:i,length:n,capSegments:o,radialSegments:s},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.length,e.capSegments,e.radialSegments)}}])}($d),tm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="CircleGeometry",e.parameters={radius:i,segments:n,thetaStart:o,thetaLength:s},n=Math.max(3,n);var a=[],r=[],l=[],u=[],h=new rh,p=new Lu;r.push(0,0,0),l.push(0,0,1),u.push(.5,.5);for(var d=0,m=3;d<=n;d++,m+=3){var f=o+d/n*s;h.x=i*Math.cos(f),h.y=i*Math.sin(f),r.push(h.x,h.y,h.z),l.push(0,0,1),p.x=(r[m]/i+1)/2,p.y=(r[m+1]/i+1)/2,u.push(p.x,p.y)}for(var v=1;v<=n;v++)a.push(v,v+1,0);return e.setIndex(a),e.setAttribute("position",new Lp(r,3)),e.setAttribute("normal",new Lp(l,3)),e.setAttribute("uv",new Lp(u,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.segments,e.thetaStart,e.thetaLength)}}])}(Wp),im=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="CylinderGeometry",e.parameters={radiusTop:i,radiusBottom:n,height:o,radialSegments:s,heightSegments:a,openEnded:r,thetaStart:l,thetaLength:u};var h=e;s=Math.floor(s),a=Math.floor(a);var p=[],d=[],m=[],f=[],v=0,g=[],y=o/2,b=0;function C(e){for(var t=v,o=new Lu,a=new rh,r=0,c=!0===e?i:n,g=!0===e?1:-1,C=1;C<=s;C++)d.push(0,y*g,0),m.push(0,g,0),f.push(.5,.5),v++;for(var w=v,k=0;k<=s;k++){var _=k/s*u+l,x=Math.cos(_),S=Math.sin(_);a.x=c*S,a.y=y*g,a.z=c*x,d.push(a.x,a.y,a.z),m.push(0,g,0),o.x=.5*x+.5,o.y=.5*S*g+.5,f.push(o.x,o.y),v++}for(var E=0;E0&&C(!0),n>0&&C(!1)),e.setIndex(p),e.setAttribute("position",new Lp(d,3)),e.setAttribute("normal",new Lp(m,3)),e.setAttribute("uv",new Lp(f,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}])}(Wp),nm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2*Math.PI;return c()(this,t),(e=hu(this,t,[0,i,n,o,s,a,r,l])).type="ConeGeometry",e.parameters={radius:i,height:n,radialSegments:o,heightSegments:s,openEnded:a,thetaStart:r,thetaLength:l},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}])}(im),om=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;c()(this,t),(e=hu(this,t)).type="PolyhedronGeometry",e.parameters={vertices:i,indices:n,radius:o,detail:s};var a=[],r=[];function l(e,t,i,n){for(var o=n+1,s=[],a=0;a<=o;a++){s[a]=[];for(var r=e.clone().lerp(i,a/o),l=t.clone().lerp(i,a/o),c=o-a,h=0;h<=c;h++)s[a][h]=0===h&&a===o?r:r.clone().lerp(l,h/c)}for(var p=0;p.9&&s<.1&&(t<.2&&(r[e+0]+=1),i<.2&&(r[e+2]+=1),n<.2&&(r[e+4]+=1))}}()}(),e.setAttribute("position",new Lp(a,3)),e.setAttribute("normal",new Lp(a.slice(),3)),e.setAttribute("uv",new Lp(r,2)),0===s?e.computeVertexNormals():e.normalizeNormals(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.vertices,e.indices,e.radius,e.details)}}])}(Wp),sm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,t);var o=(1+Math.sqrt(5))/2,s=1/o;return(e=hu(this,t,[[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-s,-o,0,-s,o,0,s,-o,0,s,o,-s,-o,0,-s,o,0,s,-o,0,s,o,0,-o,0,-s,o,0,-s,-o,0,s,o,0,s],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],i,n])).type="DodecahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),am=new rh,rm=new rh,lm=new rh,cm=new wp,um=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(c()(this,t),(e=hu(this,t)).type="EdgesGeometry",e.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(Du*n),r=i.getIndex(),l=i.getAttribute("position"),u=r?r.count:l.count,h=[0,0,0],p=["a","b","c"],d=new Array(3),m={},f=[],v=0;v0)for(s=t;s=t;s-=n)a=Bm(s,e[s],e[s+1],a);return a&&Pm(a,a.next)&&(jm(a),a=a.next),a}function dm(e,t){if(!e)return e;t||(t=e);var i,n=e;do{if(i=!1,n.steiner||!Pm(n,n.next)&&0!==Em(n.prev,n,n.next))n=n.next;else{if(jm(n),(n=t=n.prev)===n.next)break;i=!0}}while(i||n!==t);return t}function mm(e,t,i,n,o,s,a){if(e){!a&&s&&function(e,t,i,n){var o=e;do{0===o.z&&(o.z=km(o.x,o.y,t,i,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,i,n,o,s,a,r,l,c=1;do{for(i=e,e=null,s=null,a=0;i;){for(a++,n=i,r=0,t=0;t0||l>0&&n;)0!==r&&(0===l||!n||i.z<=n.z)?(o=i,i=i.nextZ,r--):(o=n,n=n.nextZ,l--),s?s.nextZ=o:e=o,o.prevZ=s,s=o;i=n}s.nextZ=null,c*=2}while(a>1)}(o)}(e,n,o,s);for(var r,l,c=e;e.prev!==e.next;)if(r=e.prev,l=e.next,s?vm(e,n,o,s):fm(e))t.push(r.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),jm(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?mm(e=gm(dm(e),t,i),t,i,n,o,s,2):2===a&&ym(e,t,i,n,o,s):mm(dm(e),t,i,n,o,s,1);break}}}function fm(e){var t=e.prev,i=e,n=e.next;if(Em(t,i,n)>=0)return!1;for(var o=t.x,s=i.x,a=n.x,r=t.y,l=i.y,c=n.y,u=os?o>a?o:a:s>a?s:a,d=r>l?r>c?r:c:l>c?l:c,m=n.next;m!==t;){if(m.x>=u&&m.x<=p&&m.y>=h&&m.y<=d&&xm(o,r,s,l,a,c,m.x,m.y)&&Em(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function vm(e,t,i,n){var o=e.prev,s=e,a=e.next;if(Em(o,s,a)>=0)return!1;for(var r=o.x,l=s.x,c=a.x,u=o.y,h=s.y,p=a.y,d=rl?r>c?r:c:l>c?l:c,v=u>h?u>p?u:p:h>p?h:p,g=km(d,m,t,i,n),y=km(f,v,t,i,n),b=e.prevZ,C=e.nextZ;b&&b.z>=g&&C&&C.z<=y;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&xm(r,u,l,h,c,p,b.x,b.y)&&Em(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&xm(r,u,l,h,c,p,C.x,C.y)&&Em(C.prev,C,C.next)>=0)return!1;C=C.nextZ}for(;b&&b.z>=g;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&xm(r,u,l,h,c,p,b.x,b.y)&&Em(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;C&&C.z<=y;){if(C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&xm(r,u,l,h,c,p,C.x,C.y)&&Em(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function gm(e,t,i){var n=e;do{var o=n.prev,s=n.next.next;!Pm(o,s)&&Om(o,n,n.next,s)&&Tm(o,s)&&Tm(s,o)&&(t.push(o.i/i|0),t.push(n.i/i|0),t.push(s.i/i|0),jm(n),jm(n.next),n=e=s),n=n.next}while(n!==e);return dm(n)}function ym(e,t,i,n,o,s){var a=e;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&Sm(a,r)){var l=Nm(a,r);return a=dm(a,a.next),l=dm(l,l.next),mm(a,t,i,n,o,s,0),void mm(l,t,i,n,o,s,0)}r=r.next}a=a.next}while(a!==e)}function bm(e,t){return e.x-t.x}function Cm(e,t){var i=function(e,t){var i,n=t,o=-1/0,s=e.x,a=e.y;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var r=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(r<=s&&r>o&&(o=r,i=n.x=n.x&&n.x>=u&&s!==n.x&&xm(ai.x||n.x===i.x&&wm(i,n)))&&(i=n,p=l)),n=n.next}while(n!==c);return i}(e,t);if(!i)return t;var n=Nm(i,e);return dm(n,n.next),dm(i,i.next)}function wm(e,t){return Em(e.prev,e,t.prev)<0&&Em(t.next,e,e.next)<0}function km(e,t,i,n,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function _m(e){var t=e,i=e;do{(t.x=(e-a)*(s-r)&&(e-a)*(n-r)>=(i-a)*(t-r)&&(i-a)*(s-r)>=(o-a)*(n-r)}function Sm(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&Om(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Tm(e,t)&&Tm(t,e)&&function(e,t){var i=e,n=!1,o=(e.x+t.x)/2,s=(e.y+t.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&o<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==e);return n}(e,t)&&(Em(e.prev,e,t.prev)||Em(e,t.prev,t))||Pm(e,t)&&Em(e.prev,e,e.next)>0&&Em(t.prev,t,t.next)>0)}function Em(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Pm(e,t){return e.x===t.x&&e.y===t.y}function Om(e,t,i,n){var o=Mm(Em(e,t,i)),s=Mm(Em(e,t,n)),a=Mm(Em(i,n,e)),r=Mm(Em(i,n,t));return o!==s&&a!==r||!(0!==o||!Dm(e,i,t))||!(0!==s||!Dm(e,n,t))||!(0!==a||!Dm(i,e,n))||!(0!==r||!Dm(i,t,n))}function Dm(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Mm(e){return e>0?1:e<0?-1:0}function Tm(e,t){return Em(e.prev,e,e.next)<0?Em(e,t,e.next)>=0&&Em(e,e.prev,t)>=0:Em(e,t,e.prev)<0||Em(e,e.next,t)<0}function Nm(e,t){var i=new Am(e.i,e.x,e.y),n=new Am(t.i,t.x,t.y),o=e.next,s=t.prev;return e.next=t,t.prev=e,i.next=o,o.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function Bm(e,t,i,n){var o=new Am(e,t,i);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function jm(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Am(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}var Lm=function(){function e(){c()(this,e)}return h()(e,null,[{key:"area",value:function(e){for(var t=e.length,i=0,n=t-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:2,u=t&&t.length,h=u?t[0]*c:e.length,p=pm(e,0,h,c,!0),d=[];if(!p||p.next===p.prev)return d;if(u&&(p=function(e,t,i,n){var o,s,a,r=[];for(o=0,s=t.length;o80*c){i=o=e[0],n=s=e[1];for(var m=c;mo&&(o=a),r>s&&(s=r);l=0!==(l=Math.max(o-i,s-n))?32767/l:0}return mm(p,d,c,i,n,l,0),d}(i,n),l=0;l2&&e[t-1].equals(e[0])&&e.pop()}function Rm(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new hm([new Lu(.5,.5),new Lu(-.5,.5),new Lu(-.5,-.5),new Lu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(e=hu(this,t)).type="ExtrudeGeometry",e.parameters={shapes:i,options:n},i=Array.isArray(i)?i:[i];for(var o=e,s=[],a=[],r=0,l=i.length;rNumber.EPSILON){var p=Math.sqrt(u),d=Math.sqrt(l*l+c*c),m=t.x-r/p,f=t.y+a/p,v=((i.x-c/d-m)*c-(i.y+l/d-f)*l)/(a*c-r*l),g=(n=m+a*v-e.x)*n+(o=f+r*v-e.y)*o;if(g<=2)return new Lu(n,o);s=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(r)===Math.sign(c)&&(y=!0),y?(n=-r,o=a,s=Math.sqrt(u)):(n=a,o=r,s=Math.sqrt(u/2))}return new Lu(n/s,o/s)}for(var I=[],R=0,z=D.length,F=z-1,H=R+1;R=0;ge--){for(var ye=ge/y,be=f*Math.cos(ye*Math.PI/2),Ce=v*Math.sin(ye*Math.PI/2)+g,we=0,ke=D.length;we=0;){var n=i,o=i-1;o<0&&(o=e.length-1);for(var s=0,a=p+2*y;s0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c()(this,t);var o=(1+Math.sqrt(5))/2;return(e=hu(this,t,[[-1,o,0,1,o,0,-1,-o,0,1,-o,0,0,-1,o,0,1,o,0,-1,-o,0,1,-o,o,0,-1,o,0,1,-o,0,-1,-o,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],i,n])).type="IcosahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Vm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return c()(this,t),(e=hu(this,t,[[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],i,n])).type="OctahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Gm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="RingGeometry",e.parameters={innerRadius:i,outerRadius:n,thetaSegments:o,phiSegments:s,thetaStart:a,thetaLength:r},o=Math.max(3,o);for(var l=[],u=[],h=[],p=[],d=i,m=(n-i)/(s=Math.max(1,s)),f=new rh,v=new Lu,g=0;g<=s;g++){for(var y=0;y<=o;y++){var b=a+y/o*r;f.x=d*Math.cos(b),f.y=d*Math.sin(b),u.push(f.x,f.y,f.z),h.push(0,0,1),v.x=(f.x/n+1)/2,v.y=(f.y/n+1)/2,p.push(v.x,v.y)}d+=m}for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:new hm([new Lu(0,.5),new Lu(-.5,-.5),new Lu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;c()(this,t),(e=hu(this,t)).type="ShapeGeometry",e.parameters={shapes:i,curveSegments:n};var o=[],s=[],a=[],r=[],l=0,u=0;if(!1===Array.isArray(i))p(i);else for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Math.PI;c()(this,t),(e=hu(this,t)).type="SphereGeometry",e.parameters={radius:i,widthSegments:n,heightSegments:o,phiStart:s,phiLength:a,thetaStart:r,thetaLength:l},n=Math.max(3,Math.floor(n)),o=Math.max(2,Math.floor(o));for(var u=Math.min(r+l,Math.PI),h=0,p=[],d=new rh,m=new rh,f=[],v=[],g=[],y=[],b=0;b<=o;b++){var C=[],w=b/o,k=0;0===b&&0===r?k=.5/n:b===o&&u===Math.PI&&(k=-.5/n);for(var _=0;_<=n;_++){var x=_/n;d.x=-i*Math.cos(s+x*a)*Math.sin(r+w*l),d.y=i*Math.cos(r+w*l),d.z=i*Math.sin(s+x*a)*Math.sin(r+w*l),v.push(d.x,d.y,d.z),m.copy(d).normalize(),g.push(m.x,m.y,m.z),y.push(x+k,1-w),C.push(h++)}p.push(C)}for(var S=0;S0)&&f.push(P,O,M),(S!==o-1||u0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return c()(this,t),(e=hu(this,t,[[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],i,n])).type="TetrahedronGeometry",e.parameters={radius:i,detail:n},e}return Me()(t,e),h()(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}])}(om),Jm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:48,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI;c()(this,t),(e=hu(this,t)).type="TorusGeometry",e.parameters={radius:i,tube:n,radialSegments:o,tubularSegments:s,arc:a},o=Math.floor(o),s=Math.floor(s);for(var r=[],l=[],u=[],h=[],p=new rh,d=new rh,m=new rh,f=0;f<=o;f++)for(var v=0;v<=s;v++){var g=v/s*a,y=f/o*Math.PI*2;d.x=(i+n*Math.cos(y))*Math.cos(g),d.y=(i+n*Math.cos(y))*Math.sin(g),d.z=n*Math.sin(y),l.push(d.x,d.y,d.z),p.x=i*Math.cos(g),p.y=i*Math.sin(g),m.subVectors(d,p).normalize(),u.push(m.x,m.y,m.z),h.push(v/s),h.push(f/o)}for(var b=1;b<=o;b++)for(var C=1;C<=s;C++){var w=(s+1)*b+C-1,k=(s+1)*(b-1)+C-1,_=(s+1)*(b-1)+C,x=(s+1)*b+C;r.push(w,k,x),r.push(k,_,x)}return e.setIndex(r),e.setAttribute("position",new Lp(l,3)),e.setAttribute("normal",new Lp(u,3)),e.setAttribute("uv",new Lp(h,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}])}(Wp),qm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3;c()(this,t),(e=hu(this,t)).type="TorusKnotGeometry",e.parameters={radius:i,tube:n,tubularSegments:o,radialSegments:s,p:a,q:r},o=Math.floor(o),s=Math.floor(s);for(var l=[],u=[],h=[],p=[],d=new rh,m=new rh,f=new rh,v=new rh,g=new rh,y=new rh,b=new rh,C=0;C<=o;++C){var w=C/o*a*Math.PI*2;N(w,a,r,i,f),N(w+.01,a,r,i,v),y.subVectors(v,f),b.addVectors(v,f),g.crossVectors(y,b),b.crossVectors(g,y),g.normalize(),b.normalize();for(var k=0;k<=s;++k){var _=k/s*Math.PI*2,x=-n*Math.cos(_),S=n*Math.sin(_);d.x=f.x+(x*b.x+S*g.x),d.y=f.y+(x*b.y+S*g.y),d.z=f.z+(x*b.z+S*g.z),u.push(d.x,d.y,d.z),m.subVectors(d,f).normalize(),h.push(m.x,m.y,m.z),p.push(C/o),p.push(k/s)}}for(var E=1;E<=o;E++)for(var P=1;P<=s;P++){var O=(s+1)*(E-1)+(P-1),D=(s+1)*E+(P-1),M=(s+1)*E+P,T=(s+1)*(E-1)+P;l.push(O,D,T),l.push(D,M,T)}function N(e,t,i,n,o){var s=Math.cos(e),a=Math.sin(e),r=i/t*e,l=Math.cos(r);o.x=n*(2+l)*.5*s,o.y=n*(2+l)*a*.5,o.z=n*Math.sin(r)*.5}return e.setIndex(l),e.setAttribute("position",new Lp(u,3)),e.setAttribute("normal",new Lp(h,3)),e.setAttribute("uv",new Lp(p,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return uu(t,"copy",this,3)([e]),this.parameters=Object.assign({},e.parameters),this}}],[{key:"fromJSON",value:function(e){return new t(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}])}(Wp),Xm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Xd(new rh(-1,-1,0),new rh(-1,1,0),new rh(1,1,0)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];c()(this,t),(e=hu(this,t)).type="TubeGeometry",e.parameters={path:i,tubularSegments:n,radius:o,radialSegments:s,closed:a};var r=i.computeFrenetFrames(n,a);e.tangents=r.tangents,e.normals=r.normals,e.binormals=r.binormals;var l=new rh,u=new rh,h=new Lu,p=new rh,d=[],m=[],f=[],v=[];function g(e){p=i.getPointAt(e/n,p);for(var t=r.normals[e],a=r.binormals[e],c=0;c<=s;c++){var h=c/s*Math.PI*2,f=Math.sin(h),v=-Math.cos(h);u.x=v*t.x+f*a.x,u.y=v*t.y+f*a.y,u.z=v*t.z+f*a.z,u.normalize(),m.push(u.x,u.y,u.z),l.x=p.x+o*u.x,l.y=p.y+o*u.y,l.z=p.z+o*u.z,d.push(l.x,l.y,l.z)}}return function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null;if(c()(this,t),(e=hu(this,t)).type="WireframeGeometry",e.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new rh,a=new rh;if(null!==i.index){var r=i.attributes.position,l=i.index,u=i.groups;0===u.length&&(u=[{start:0,count:l.count,materialIndex:0}]);for(var h=0,p=u.length;h=o)break e;var r=t[1];e=(o=t[--i-1]))break t}s=i,i=0}for(;i>>1;et;)--s;if(++s,0!==o||s!==n){o>=s&&(o=(s=Math.max(s,1))-1);var a=this.getValueSize();this.times=i.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}},{key:"validate",value:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var i=this.times,n=this.values,o=i.length;0===o&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var s=null,a=0;a!==o;a++){var r=i[a];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,r),e=!1;break}if(null!==s&&s>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,r,s),e=!1;break}s=r}if(void 0!==n&&$m(n))for(var l=0,c=n.length;l!==c;++l){var u=n[l];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,u),e=!1;break}}return e}},{key:"optimize",value:function(){for(var e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),n=2302===this.getInterpolation(),o=e.length-1,s=1,a=1;a0){e[s]=e[o];for(var g=o*i,y=s*i,b=0;b!==i;++b)t[y+b]=t[g+b];++s}return s!==e.length?(this.times=e.slice(0,s),this.values=t.slice(0,s*i)):(this.times=e,this.values=t),this}},{key:"clone",value:function(){var e=this.times.slice(),t=this.values.slice(),i=new(0,this.constructor)(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}],[{key:"toJSON",value:function(e){var t,i=e.constructor;if(i.toJSON!==this.toJSON)t=i.toJSON(e);else{t={name:e.name,times:Qm(e.times,Array),values:Qm(e.values,Array)};var n=e.getInterpolation();n!==e.DefaultInterpolation&&(t.interpolation=n)}return t.type=e.ValueTypeName,t}}])}();sf.prototype.TimeBufferType=Float32Array,sf.prototype.ValueBufferType=Float32Array,sf.prototype.DefaultInterpolation=2301;var af=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);af.prototype.ValueTypeName="bool",af.prototype.ValueBufferType=Array,af.prototype.DefaultInterpolation=2300,af.prototype.InterpolantFactoryMethodLinear=void 0,af.prototype.InterpolantFactoryMethodSmooth=void 0;var rf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);rf.prototype.ValueTypeName="color";var lf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);lf.prototype.ValueTypeName="number";var cf=function(e){function t(e,i,n,o){return c()(this,t),hu(this,t,[e,i,n,o])}return Me()(t,e),h()(t,[{key:"interpolate_",value:function(e,t,i,n){for(var o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,r=(i-t)/(n-t),l=e*a,c=l+a;l!==c;l+=4)ah.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(ef),uf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new cf(this.times,this.values,this.getValueSize(),e)}}])}(sf);uf.prototype.ValueTypeName="quaternion",uf.prototype.DefaultInterpolation=2301,uf.prototype.InterpolantFactoryMethodSmooth=void 0;var hf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);hf.prototype.ValueTypeName="string",hf.prototype.ValueBufferType=Array,hf.prototype.DefaultInterpolation=2300,hf.prototype.InterpolantFactoryMethodLinear=void 0,hf.prototype.InterpolantFactoryMethodSmooth=void 0;var pf=function(e){function t(){return c()(this,t),hu(this,t,arguments)}return Me()(t,e),h()(t)}(sf);pf.prototype.ValueTypeName="vector";var df=h()((function e(t,i,n){c()(this,e);var o,s=this,a=!1,r=0,l=0,u=[];this.onStart=void 0,this.onLoad=t,this.onProgress=i,this.onError=n,this.itemStart=function(e){l++,!1===a&&void 0!==s.onStart&&s.onStart(e,r,l),a=!0},this.itemEnd=function(e){r++,void 0!==s.onProgress&&s.onProgress(e,r,l),r===l&&(a=!1,void 0!==s.onLoad&&s.onLoad())},this.itemError=function(e){void 0!==s.onError&&s.onError(e)},this.resolveURL=function(e){return o?o(e):e},this.setURLModifier=function(e){return o=e,this},this.addHandler=function(e,t){return u.push(e,t),this},this.removeHandler=function(e){var t=u.indexOf(e);return-1!==t&&u.splice(t,2),this},this.getHandler=function(e){for(var t=0,i=u.length;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 Ef(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),i=Pf(this,t,[e,n]);var s="\n importScripts('".concat(i.getSourceRootPath(),"/3rdparty/turf.min.js');\n self.addEventListener('message', function (e) {\n let features = []\n eval(e.data.code);\n self.postMessage(features);\n }, false);\n "),a="data:text/javascript;charset=utf-8,"+encodeURIComponent(s);if(i._worker=new Worker(a),i.options.angle=i.options.angle||0,i.loaded=!1,i.ismove=!1,i._loadEvent=void 0,i._loaded=!1,i.options.position.lat>83.5&&(i.options.position.lat=83.5),i.options.position.lat<-83.5&&(i.options.position.lat=-83.5),i.options.show=!n.show&&!1!==n.show||n.show,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.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,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.attributeType=n.attributeType||"richText",n.text=n.text||{},i.options.text={value:n.text.value||"",show:!n.text.show&&!1!==n.text.show||n.text.show,position:n.text.position,fontSize:n.text.fontSize||0===n.text.fontSize?n.text.fontSize:20,color:n.text.color||"#ffffff",scaleByDistance:n.text.scaleByDistance||!1,near:n.text.near||0===n.text.near?n.text.near:2e3,far:n.text.far||0===n.text.far?n.text.far:1e5},i.options.text.position){var r=turf.point([i.options.position.lng,i.options.position.lat]),l=turf.point([i.options.text.position.lng,i.options.text.position.lat]),u=turf.distance(r,l,{units:"kilometers"}),h=turf.rhumbBearing(r,l);i._textToCenter={distance:u,angle:h}}return i.hierarchys=[],i._elms={},i.Dialog=o,i._isdrag=!1,i._EventBinding=new Ye,i.sdk.entityMap.get(i.options.id)?Ee()(i):(i.sdk.addIncetance(i.options.id,i),i.picking=!0,i.options.show&&Object(Z.f)(0,i.options.id),i._entityArray=[],i.init(),i)}return Me()(t,e),h()(t,[{key:"type",get:function(){return"GroundSvg"}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{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.options.show},set:function(e){var i,n,o,s,a,r;"boolean"==typeof e?(this.options.text&&this.options.text.show&&this.text&&(this.showView&&3!=this.showView?this.text.show=!1:this.text.show=e),i=t,n="show",o=e,s=this,a=1,r=1,Qc()(Oe()(r?i.prototype:i),n,o,s,a)):console.error("参数必须为boolean")}},{key:"position",get:function(){return this.options.position},set:function(e){var t=this;if(this.options.position=e,this.options.position.lat>83.5&&(this.options.position.lat=83.5),this.options.position.lat<-83.5&&(this.options.position.lat=-83.5),this._update(),this._textToCenter){var i=turf.point([this.options.position.lng,this.options.position.lat]),n=turf.destination(i,this._textToCenter.distance,this._textToCenter.angle,{units:"kilometers"}).geometry.coordinates;this.getClampToHeight({lng:n[0],lat:n[1]}).then((function(e){var i=[n[0],n[1],e];t.text&&(t.text.position=i)}))}}},{key:"color",get:function(){return this.options.color},set:function(e){var t=this;if(this.options.color=e,this.options.color)for(var i=0;i0&&0===i&&(this.options.angle=360),this._elms.angle&&this._elms.angle.forEach((function(e){e.value=t.options.angle})),this._update()}},{key:"scale",get:function(){return this.options.scale},set:function(e){this.options.scale.x=e.x,this.options.scale.y=e.y,this._elms&&(this._elms.xRange&&(this._elms.xRange.value=this.options.scale.x),this._elms.yRange&&(this._elms.yRange.value=this.options.scale.y),this._elms.xInput&&(this._elms.xInput.value=this.options.scale.x),this._elms.yInput&&(this._elms.yInput.value=this.options.scale.y)),this._update()}},{key:"flipeY",get:function(){return this.options.flipe.y},set:function(e){"boolean"==typeof e?(this.options.flipe.y=e,this._update()):console.error("参数必须为boolean")}},{key:"flipeX",get:function(){return this.options.flipe.x},set:function(e){"boolean"==typeof e?(this.options.flipe.x=e,this._update()):console.error("参数必须为boolean")}},{key:"textValue",get:function(){return this.options.text.value},set:function(e){this.options.text.value=e,this.text?this.text.text=e:t.createText(this),this._elms.textValue&&this._elms.textValue.forEach((function(t){t.value=e}))}},{key:"textShow",get:function(){return this.options.text.show},set:function(e){var t=this;this.options.text.show=e,this.show?(this.showView&&3!=this.showView?this.text&&(this.text.show=!1):this.text&&(this.text.show=e),this.options.text.position&&setTimeout((function(){t.options.text.position.alt?t.text&&(t.text.position=[t.options.text.position.lng,t.options.text.position.lat,t.options.text.position.alt]):t.getClampToHeight({lng:t.options.text.position.lng,lat:t.options.text.position.lat}).then((function(e){t.text&&(t.text.position=[t.options.text.position.lng,t.options.text.position.lat,e])}))}),0)):this.text&&(this.text.show=!1),this._elms.textShow&&this._elms.textShow.forEach((function(t){t.checked=e}))}},{key:"textColor",get:function(){return this.options.text.color},set:function(e){var t=this;this.options.text.color=e,this.text&&(this.text.color=e),this._elms.textColor&&this._elms.textColor.forEach((function(e,i){var n=new YJColorPicker({el:e.el,size:"mini",alpha:!0,defaultColor:t.textColor,disabled:!1,openPickerAni:"opacity",sure:function(e){t.textColor=e},clear:function(){t.textColor="rgba(255,255,255,1)"}});t._elms.textColor[i]=n}))}},{key:"textFontSize",get:function(){return this.options.text.fontSize},set:function(e){this.options.text.fontSize=e,this.text&&(this.text.fontSize=e,this.text.pixelOffset=e),this._elms.textFontSize&&this._elms.textFontSize.forEach((function(t){t.value=e}))}},{key:"textScaleByDistance",get:function(){return this.options.text.scaleByDistance},set:function(e){this.options.text.scaleByDistance=e,this.text&&(this.text.scaleByDistance=e),this._elms.textScaleByDistance&&this._elms.textScaleByDistance.forEach((function(t){t.checked=e}))}},{key:"textNear",get:function(){return this.options.text.near},set:function(e){var t=e;t>this.textFar&&(t=this.textFar),this.options.text.near=t,this.text&&(this.text.near=t),this._elms.textNear&&this._elms.textNear.forEach((function(e){e.value=t}))}},{key:"textFar",get:function(){return this.options.text.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(!(lS[E]&&(w=S[E]),k(k=Math.abs(k))&&(k=w);var P=k,O=4e3/(k=k*(10/3)*100)/5;P*=O;for(var D=0;D=Number(e.target.min))&&(p.scale={x:t,y:p.scale.y})})),c.addEventListener("blur",(function(e){var t=e.target.value;t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t=Number(e.target.min))&&(p.scale={x:p.scale.x,y:t})})),h.addEventListener("blur",(function(e){var t=e.target.value;t=Number(t),e.target.max&&t>Number(e.target.max)&&(t=Number(e.target.max)),e.target.min&&t-270&&b<-90||b<270&&b>90)&&(b+=180,j=!0),((C=M-T)>-360&&C<-90||C<360&&C>90)&&(C+=180,A=!0),j&&A?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):j?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):A?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*B*2,v=Math.cos(m)*B*2,n.scale.x=Math.abs(f)/3.5,n.scale.y=Math.abs(v)/3.5,e.abrupt("break",102);case 57:return T=(turf.rhumbBearing(P,turf.point(_[2]))+360-n.angle)%360,(C=M-T)>-270&&C<-90||C<270&&C>90?(C+=180,n.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#ff0000")):(n.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#00ff0a")),m=Math.PI/180*C,v=Math.cos(m)*B*2,n.scale.y=v/3.5,e.abrupt("break",102);case 64:return N=(turf.rhumbBearing(P,turf.point(_[6]))+360-n.angle)%360,T=(turf.rhumbBearing(P,turf.point(_[2]))+360-n.angle)%360,((b=M-N)>-360&&b<-90||b<360&&b>90)&&(b+=180,j=!0),((C=M-T)>-360&&C<-90||C<360&&C>90)&&(C+=180,A=!0),j&&A?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):j?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):A?(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):(n.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),n.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*B*2,v=Math.cos(m)*B*2,n.scale.x=Math.abs(f)/3.5,n.scale.y=Math.abs(v)/3.5,e.abrupt("break",102);case 78:return N=(turf.rhumbBearing(P,turf.point(_[4]))+360-n.angle)%360,(b=M-N)>-360&&b<-90||b<360&&b>90?(b+=180,n.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")):(n.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*B*2,n.scale.x=f/3.5,e.abrupt("break",102);case 85:return u.lat>83.5&&(u.lat=83.5),u.lat<-83.5&&(u.lat=-83.5),n.position={lng:u.lng,lat:u.lat},L=u.lng-c.lng,I=u.lat-c.lat,n.bbox[0]=n.bbox[0]+L,n.bbox[1]=n.bbox[1]+I,n.bbox[2]=n.bbox[2]+L,n.bbox[3]=n.bbox[3]+I,e.abrupt("break",102);case 95:return N=(turf.rhumbBearing(P,turf.point(_[6]))+360-n.angle)%360,(b=M-N)>-360&&b<-90||b<360&&b>90?(b+=180,n.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")):(n.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),n.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*B*2,n.scale.x=f/3.5,e.abrupt("break",102);case 102:h=h/(o/2)*100,p=p/(s/2)*100,(R=xf({},n.scale)).x=R.x+h,R.y=R.y-p,R.y>200&&(R.y=200),R.y<.001&&(R.y=.001),R.x>200&&(R.x=200),R.x<.001&&(R.x=.001),n.scale=xf({},R),t&&t(n.options),e.next=142;break;case 115:z=n.sdk.viewer.scene.drillPick(i.endPosition),H=0;case 117:if(!(H90&&(c+=180);var h=[c,u],p=turf.point(h),d=turf.rhumbDestination(p,o[s][r].distance,o[s][r].angle,{units:"kilometers"}),m=nt()(d.geometry.coordinates);m[2]=10,a.push((l=Cesium.Cartesian3).fromDegrees.apply(l,nt()(m)))}0===s?i.positions=a:n.push(a)}return i.holes=n,i}}},{key:"_updateGeojson",value:function(e,t,i){if(this._loaded){var n=Math.abs(this.bbox[0]-this.bbox[2]),o=Math.abs(this.bbox[1]-this.bbox[3]);if("object"===st()(e[0]))for(var s=0;so[2]&&(t=o[0],o[0]=o[2],o[2]=t),o[1]>o[3]&&(t=o[1],o[1]=o[3],o[3]=t);for(var c=[],u=JSON.parse(JSON.stringify(this.geojson)),h=function(t){for(var i=0;i=0;t--)this.sdk.viewer.entities.remove(this.entity.values[t]);return this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=14,Object(J.g)(this.sdk,this.options.id);case 14:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(e){this.options.attribute.link.content.push({name:"链接",url:e}),this.attributeLink=this.options.attribute.link.content}},{key:"openRichTextEditor",value:function(e){var t=this;tt.open(this.options.id,this.options.name,this.options.richTextContent),tt.primaryCallBack=function(e){t.options.richTextContent=e}}},{key:"setPosition",value:function(e){if(e){this.ismove=!0;var t={};t.lng=e.position.lng,t.lat=e.position.lat,this.position=t}else this.ismove=!1;this._update()}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[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=24;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=xf({},this.options.position)).hasOwnProperty("alt")){e.next=17;break}return e.next=16,this.getClampToHeight(r);case 16:r.alt=e.sent;case 17: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=37;break;case 24:l=[],c=0;case 26:if(!(c=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 Mf(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=Tf(this,t,[e,n]),YJ.RoutePlanningArrays.push(i),i.options.width=n.width||4,i.options.color=n.color||"#ff0000",i.options.gps=n.gps||!1,i.Dialog=o,i._elms={},i.start={lng:null,lat:null},i.end={lng:null,lat:null},i.tools=new b.a(e),i.init(),i}return Me()(t,e),h()(t,[{key:"init",value:function(){var e=this;this.startEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-start"),!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity.show=!1:this.startEntity.show=!0,this.startEntity.position=new Cesium.CallbackProperty((function(){var t=e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.startLng,e.startLat));return e.clickCallBack({start:t,end:e.endEntity.position}),t}),!1),this.startEntity.billboard={image:this.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.endEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-end"),!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity.show=!1:this.endEntity.show=!0,this.endEntity.position=new Cesium.CallbackProperty((function(){var t=e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat));return e.clickCallBack({start:e.startEntity.position,end:t}),t}),!1),this.endEntity.billboard={image:this.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.edit(!0),this.clear()}},{key:"onEnd",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"startLng",get:function(){return this.start.lng},set:function(e){this.start.lng=e,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLng&&this._elms.startLng.forEach((function(t){t.value=e}))}},{key:"startLat",get:function(){return this.start.lat},set:function(e){this.start.lat=e,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLat&&this._elms.startLat.forEach((function(t){t.value=e}))}},{key:"endLng",get:function(){return this.end.lng},set:function(e){this.end.lng=e,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLng&&this._elms.endLng.forEach((function(t){t.value=e}))}},{key:"endLat",get:function(){return this.end.lat},set:function(e){this.end.lat=e,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLat&&this._elms.endLat.forEach((function(t){t.value=e}))}},{key:"edit",value:(i=_()(S.a.mark((function e(i){var 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),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),i?(this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),document.getElementById("routeQuery").addEventListener("click",(function(){!a.startLng&&0!==a.startLng||!a.startLat&&0!==a.startLat||!a.endLng&&0!==a.endLng||!a.endLat&&0!==a.endLat?a.tools.message({type:"warning",text:"请先设置起点和终点坐标!"}):(!a.startEntity&&(a.startEntity=a.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return a.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(a.startLng,a.startLat))}),!1),billboard:{image:a.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),a.startEntity.show=!0,!a.endEntity&&(a.endEntity=a.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return a.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(a.endLng,a.endLat))}),!1),billboard:{image:a.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),a.endEntity.show=!0,a.Dialog.queryCallBack&&a.Dialog.queryCallBack({start:[a.startLng,a.startLat],end:[a.endLng,a.endLat]}))})),document.getElementById("clearRoute").addEventListener("click",(function(){a.clear()})),document.getElementsByTagName("head")[0].appendChild(this._element_style),n=document.getElementsByClassName("RoutePlanning")[0],this.options.gps&&((o=document.createElement("button")).innerHTML="当前位置",o.style.marginLeft="10px",o.setAttribute("data-is","start"),o.addEventListener("click",(function(e){a.getLocateCurrent(e)})),n.getElementsByClassName("start-col")[0].appendChild(o),n._element.body.getElementsByClassName("end-pick-btn")[0].style.marginRight="91px"),s=n.getElementsByTagName("*"),t.EventBinding(this,s)):(this._element_style&&(document.getElementsByTagName("head")[0].removeChild(this._element_style),this._element_style=null),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:function(){this.startEntity&&(this.sdk.viewer.entities.remove(this.startEntity),this.startEntity=null),this.endEntity&&(this.sdk.viewer.entities.remove(this.endEntity),this.endEntity=null),this.entity&&(this.sdk.viewer.entities.remove(this.entity),this.entity=null),this.startExtensionEntity&&(this.sdk.viewer.entities.remove(this.startExtensionEntity),this.startExtensionEntity=null),this.endExtensionEntity&&(this.sdk.viewer.entities.remove(this.endExtensionEntity),this.endExtensionEntity=null)}},{key:"destroy",value:function(){this.clear(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"getLocateCurrent",value:function(e){var t=this;this.reconnecting&&this.reconnecting.close(),this.options.host=this.options.host||Object(n.a)();var i;i=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+i),this.reconnecting.onopen=function(i){t.reconnecting.onmessage=function(i){t.data=JSON.parse(i.data),t.data&&t.data.rmc&&(t.reconnecting.close(),"start"===e.srcElement.getAttribute("data-is")?(t.startLng=t.data.rmc.lng,t.startLat=t.data.rmc.lat,!t.startEntity&&(t.startEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.startLng,t.startLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.startEntity.show=!0):(t.endLng=t.data.rmc.lng,t.endLat=t.data.rmc.lat,!t.endEntity&&(t.endEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.endEntity.show=!0))}}}},{key:"createRoute",value:function(e){for(var t=[],i=0;i=500?(t.tip&&t.tip.destroy(),t.event&&t.event.destroy()):i(0,n)}))}))}},{key:"pickEndPos",value:function(e){var t=this;this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=new St.a("左键选择终点坐标,右键取消",this.sdk),this.event=new te.a(this.sdk),this.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),this.event.mouse_left((function(i,n){var o=t.cartesian3Towgs84(n,t.sdk.viewer);t.endLng=o.lng,t.endLat=o.lat,e(o),!t.endEntity&&(t.endEntity=t.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),billboard:{image:t.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),t.endEntity.show=!0,t.tip&&t.tip.destroy(),t.event&&t.event.destroy()})),this.event.mouse_right((function(e,i){t.tip&&t.tip.destroy(),t.event&&t.event.destroy()}))}},{key:"flicker",value:function(){}}],[{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=Df(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?"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i
              ').concat(s[t].properties.fid,"
              ")),s[t].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
              ').concat(s[t].properties[o],"
              "));e+=i=i+n+""}return e},e.next=8,new Te.a(t.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Nf=e.sent,e.next=11,Nf.init();case 11:for(g in r=nt()(t.geojson.features),i=r.length,s=r.slice(o*(n-1),o*n),l=a(),(c=document.createElement("div")).style.height="100%",'',u='
              ',h='
              ',p="",d='',m='
              ',f="",v=1,"fid"in t.geojson.features[0].properties&&(p+=''),f+=''),d+=''),v++),t.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(p+=''),f+=''),d+='"),v++);'
              暂无数据
              ',u=u+(h=h+(p+='')+(d+="")+"
              fid
              ').concat(g,"
              ")+(m=m+(f+="")+(""+l+"")+'
              暂无数据
              ')+"",c.innerHTML=''+u+'',y=c.getElementsByClassName("el-table__empty-block")[0],0==s.length?y.style.display="flex":y.style.display="none",Nf.contentAppChild(c),b=c.getElementsByClassName("el-table__header-wrapper")[0],(C=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){b.scrollLeft=e.target.scrollLeft})),Nf._element.title.style.height="40px",Nf._element.body.style.width="65%",Nf._element.body.style.height="80%",Nf._element.content.style.height="calc(100% - 40px)",Nf._element.content.style.overflow="hidden",Nf._element.foot.style.display="none",C.style.height="calc(100% - ".concat(b.offsetHeight,"px)"),at(w=c.getElementsByClassName("pagination")[0],i,o,n,(function(e){n=e,s=r.slice(o*(n-1),o*n);var t=a();c.getElementsByTagName("tbody")[0].innerHTML=t,0==s.length?y.style.display="flex":y.style.display="none"})),k=function(){for(var e=c.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],l=[],u=0;u
              ').concat(n[t].properties.fid,"
              ")),n[t].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
              ').concat(n[t].properties[s],"
              "));e+=i=i+o+""}return e},s=!1,a=0;case 5:if(!(a',u='
              ',h="",p='',d='
              ',m="",f=1,"fid"in t.geojson.features[0].properties&&(h+=''),m+=''),p+=''),f++),t.geojson.features[0].properties)"id"!==v&&"ID"!==v&&"fid"!==v&&(h+=''),m+=''),p+='"),f++);if(g='\n \n \n '.concat((c=c+(u=u+(h+='')+(p+="")+"
              fid
              ').concat(v,"
              ")+(d=d+(m+="")+(""+r+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(y='\n \n '.concat(n[0].content.richTextContent,"\n \n "),g+=y),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(b=0;b\n \n \n '),g+=w;for(g+="",l.innerHTML=g,Lf.contentAppChild(l),new Je("shp-list-id-tabs"),(k=l.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",k.style.display="flex",k.style.flexDirection="column",k.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=k.getElementsByClassName("DIV-cy-tab-content-pane"),x=0;x<_.length;x++)_[x].style.height="100%";E=l.getElementsByClassName("el-table__header-wrapper")[0],(P=l.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){E.scrollLeft=e.target.scrollLeft})),Lf._element.title.style.height="40px",Lf._element.body.style.width="65%",Lf._element.body.style.height="80%",Lf._element.content.style.height="calc(100% - 40px)",Lf._element.foot.style.display="none",P.style.height="calc(100% - ".concat(E.offsetHeight,"px)");case 64:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function zf(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 Ff(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)?Ff(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 Ff(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=Gf(this,t,[e,n])).viewer=e.viewer,i.options.path?(i.options.fileName=n.fileName||"未命名对象",i.options.field=n.field||"id",i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i):(i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),Ee()(i))}return Me()(t,e),h()(t,[{key:"show",get:function(){return this.options.show},set:function(e){this.setShow(e)}},{key:"on",value:function(){if(this.options.path)return this.init()}},{key:"init",value:(a=_()(S.a.mark((function e(){var i,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="",this.options.host=this.options.host||Object(n.a)(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load":this.options.host+"/yjearth4.0/api/v1/vector/load",i+="?path="+this.options.path,e.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:Object(n.b)(),Authorization:"Bearer "+Object(n.b)()}});case 6:if(200!==(o=e.sent).status){e.next=19;break}return e.next=10,o.json();case 10:if(200!==(s=e.sent).code&&0!==s.code){e.next=18;break}return this.data=s.data,e.next=15,this.formatData();case 15:return e.abrupt("return",t.create(this));case 18:return e.abrupt("return",console.error(s.message));case 19:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"formatData",value:(s=_()(S.a.mark((function e(){var t,i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){if(e.data){var o;(o=i.list).push.apply(o,nt()(e.data));for(var s=0;s0&&void 0!==h[0]&&h[0],i=h.length>1&&void 0!==h[1]?h[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=25;break}return e.next=7,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){u.fileName=u.fileName.trim(),u.fileName||(u.fileName="未命名对象"),u.originalOptions.fileName=u.fileName,u.originalOptions.field=u.field,u._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:u.options.id,fileName:u.originalOptions.fileName,field:u.originalOptions.field})},closeCallBack:function(){u.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:for(l in this._DialogObject=e.sent,n='\n
              \n
              \n 文件名称:\n \n
              \n
              \n
              \n
              \n 名称字段选择:\n \n
              \n
              \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){u.options.fileName=s.value})),a=o.getElementsByClassName("input-select")[0],r="",this.geojson.features[0].properties)c='"),r+=c;a.innerHTML=r,a.value=this.options.field,a.addEventListener("input",(function(){u.options.field=a.value})),this._elms.fileName=s,this._elms.field=a,e.next=26;break;case 25:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 26:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"editById",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=this,y=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y.length>0&&void 0!==y[0]&&y[0],i=y.length>1?y[1]:void 0,n=y.length>2&&void 0!==y[2]?y[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),o="",!t){e.next=48;break}a={},r=0;case 8:if(!(r\n
              \n 内容类型:\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 ',(c=document.createElement("div")).innerHTML=l,this._DialogObject.contentAppChild(c),c.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",u=c.getElementsByClassName("attribute-select")[0],h=c.getElementsByClassName("link_add_btn")[0],p=c.getElementsByClassName("open-richText-btn")[0],d=this._DialogObject._element.content.getElementsByClassName("attribute-content"),m=0;m-1?d[m].style.display="block":d[m].style.display="none";u.addEventListener("change",(function(){g._DialogObject.attribute.attributeType=u.value;for(var e=0;e-1?d[e].style.display="block":d[e].style.display="none"})),h.addEventListener("click",_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(g._DialogObject.attribute.link.content.push({name:"链接",url:g._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),g._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",g.setAttributeLinkById(i,g._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return e.stop()}}),e)})))),p.addEventListener("click",(function(){tt.open(i,i,g._DialogObject.attribute.richTextContent),tt.primaryCallBack=function(e){g._DialogObject.attribute.richTextContent=e}})),f=c.getElementsByClassName("camera-name")[0],v=c.getElementsByClassName("camera-select")[0],f.addEventListener("input",(function(){o=f.value})),this.cameraSelect&&this.cameraSelect(o),v.addEventListener("click",(function(){g.cameraSelect&&g.cameraSelect(o)})),e.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"editContentById",value:function(e,t){for(var i=0;i0?o.getElementsByClassName("table-empty")[0].style.display="none":o.getElementsByClassName("table-empty")[0].style.display="flex";for(var a=0;a\n
                '+this._DialogObject.attribute.link.content[a].url+'
                \n
                \n \n \n
                \n ',l=document.createRange().createContextualFragment(r);s.appendChild(l)}for(var c=s.getElementsByClassName("tr"),u={linkEdit:(i=_()(S.a.mark((function t(i){var o,s,a,r,l;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.setAttributeLinkById(e,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],a=s.getElementsByClassName("tr"),r=S.a.mark((function e(t){var o,s,r,l,c,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==t){e.next=33;break}a[t].innerHTML='\n
                \n \n
                \n
                \n
                \n \n \n
                \n
                \n
                \n \n \n
                ',(o=a[t].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=a[t].getElementsByTagName("button"),r=0;case 8:if(!(r1&&void 0!==arguments[1]?arguments[1]:{};if(e){for(var i=0;i0){at(n,t.data.total,10,1,(function(t){i.cameraSelect&&i.cameraSelect(e,t)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(e){var n='\n
                \n
                \n \n 绑定\n
                \n
                ').concat(t.data.list[e].cameraName,'
                \n
                ').concat(o[t.data.list[e].type],'
                \n
                ').concat(t.data.list[e].ip,'
                \n
                ').concat(t.data.list[e].port,'
                \n
                ').concat(t.data.list[e].userName,'
                \n
                ').concat(t.data.list[e].passWord,"
                \n
                "),s=document.createRange().createContextualFragment(n),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(t.data.list[e]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==t.data.list[e].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;l0){var l=turf.featureCollection(i),c=turf.envelope(l);c&&c.bbox&&4==c.bbox.length&&(e.range={max_x:c.bbox[2],max_y:c.bbox[3],min_x:c.bbox[0],min_y:c.bbox[1]})}}},{key:"createPoints",value:function(e,t){if(t){for(var i=new Cesium.PointPrimitiveCollection({scene:e.viewer.scene}),n=0;n0&&e.entity.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineColorAppearance}))}}},{key:"createPolygons",value:function(e,t){if(t){for(var i=[],n=0;n0){var c=new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})});e.entity.add(c)}}}},{key:"createTableContent",value:function(e){for(var t="",i=0;i
                ').concat(e.currentData[i].attr[s],"
                ");t+=n=n+o+""}return t}}]);var i,o,s,a}(vt);function Yf(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 Jf(e){for(var t=1;t
                ').concat(s[t].properties.fid,"
                ")),s[t].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
                ').concat(s[t].properties[o],"
                "));e+=i=i+n+""}return e},e.next=8,new Te.a(t.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Wf=e.sent,e.next=11,Wf.init();case 11:for(g in r=nt()(t.geojson.features),i=r.length,s=r.slice(o*(n-1),o*n),l=a(),(c=document.createElement("div")).style.height="100%",'',u='
                ',h='
                ',p="",d='',m='
                ',f="",v=1,"fid"in t.geojson.features[0].properties&&(p+=''),f+=''),d+=''),v++),t.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(p+=''),f+=''),d+='"),v++);'
                暂无数据
                ',u=u+(h=h+(p+='')+(d+="")+"
                fid
                ').concat(g,"
                ")+(m=m+(f+="")+(""+l+"")+'
                暂无数据
                ')+"",c.innerHTML=''+u+'',y=c.getElementsByClassName("el-table__empty-block")[0],0==s.length?y.style.display="flex":y.style.display="none",Wf.contentAppChild(c),b=c.getElementsByClassName("el-table__header-wrapper")[0],(C=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){b.scrollLeft=e.target.scrollLeft})),Wf._element.title.style.height="40px",Wf._element.body.style.width="65%",Wf._element.body.style.height="80%",Wf._element.content.style.height="calc(100% - 40px)",Wf._element.content.style.overflow="hidden",Wf._element.foot.style.display="none",C.style.height="calc(100% - ".concat(b.offsetHeight,"px)"),at(w=c.getElementsByClassName("pagination")[0],i,o,n,(function(e){n=e,s=r.slice(o*(n-1),o*n);var t=a();c.getElementsByTagName("tbody")[0].innerHTML=t,0==s.length?y.style.display="flex":y.style.display="none"})),k=function(){for(var e=c.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],l=[],u=0;u
                ').concat(n[t].properties.fid,"
                ")),n[t].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
                ').concat(n[t].properties[s],"
                "));e+=i=i+o+""}return e},s=!1,a=0;case 5:if(!(a',u='
                ',h="",p='',d='
                ',m="",f=1,"fid"in t.geojson.features[0].properties&&(h+=''),m+=''),p+=''),f++),t.geojson.features[0].properties)"id"!==v&&"ID"!==v&&"fid"!==v&&(h+=''),m+=''),p+='"),f++);if(g='\n \n \n '.concat((c=c+(u=u+(h+='')+(p+="")+"
                fid
                ').concat(v,"
                ")+(d=d+(m+="")+(""+r+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(y='\n \n '.concat(n[0].content.richTextContent,"\n \n "),g+=y),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(b=0;b\n \n \n '),g+=w;for(g+="",l.innerHTML=g,qf.contentAppChild(l),new Je("shp-list-id-tabs"),(k=l.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",k.style.display="flex",k.style.flexDirection="column",k.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=k.getElementsByClassName("DIV-cy-tab-content-pane"),x=0;x<_.length;x++)_[x].style.height="100%";E=l.getElementsByClassName("el-table__header-wrapper")[0],(P=l.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(e){E.scrollLeft=e.target.scrollLeft})),qf._element.title.style.height="40px",qf._element.body.style.width="65%",qf._element.body.style.height="80%",qf._element.content.style.height="calc(100% - 40px)",qf._element.foot.style.display="none",P.style.height="calc(100% - ".concat(E.offsetHeight,"px)");case 64:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function Kf(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 Qf(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)?Qf(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 Qf(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]:{};if(c()(this,t),iv(i=tv(this,t,[e,n]),rv,void 0),iv(i,lv,!1),iv(i,cv,[]),i.viewer=e.viewer,!i.options.path)return i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),Ee()(i);for(var s in i.colors=av,i.options.headTables=n.headTables||[],i.options.name=n.name||"未命名对象",i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i.sdk.addIncetance(i.options.id,i),i.disaster_type_colors=av[i.options.disaster_type]?ev({},av[i.options.disaster_type]):void 0,i.disaster_type_colors)i.disaster_type_colors[s]=i.cmykToRgb(i.disaster_type_colors[s]);return i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"vector"}},{key:"show",get:function(){return this.options.show},set:function(e){this.setShow(e)}},{key:"opacity",get:function(){return this.options.opacity},set:function(e){this.options.opacity=e,this.entity&&this.entity.entities.values.forEach((function(t){t.point&&(t.point.color=t.point.color._value.withAlpha(e)),t.polygon&&(t.polygon.material=t.polygon.material.color._value.withAlpha(e)),t.polyline&&(t.polyline.material=t.polyline.material.color._value.withAlpha(e))}))}},{key:"on",value:function(){if(this.sdk&&this.viewer&&this.options.path)return this.init()}},{key:"init",value:(l=_()(S.a.mark((function e(){var i=this;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_()(S.a.mark((function e(o,s){var a,r,l,c,u,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.options.host=i.options.host||Object(n.a)(),a=i.options.host+"/gdal/import",(r=new FormData).append("path",i.options.path),e.next=7,fetch(a,{method:"post",headers:{Authorization:Object(n.b)()},body:r});case 7:if(l=e.sent,console.log("response",l),200!==l.status){e.next=21;break}return e.next=12,l.arrayBuffer();case 12:return c=e.sent,u=new Uint8Array(c),h=i.decompressGzip(u),0===i.data.length&&(i.data=JSON.parse(h)),console.log("this.data",i.data),e.next=19,i.formatData();case 19:t.create(i),o();case 21:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return l.apply(this,arguments)})},{key:"formatData",value:(r=_()(S.a.mark((function e(){var t,i,n,o,a,r,l,c,u;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],i=function(e,t,n){if(e)if(Array.isArray(e)){for(var o=!1,s=0;s0&&void 0!==C[0]&&C[0],i=C.length>1&&void 0!==C[1]?C[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=74;break}return e.next=7,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){b.name=b.name.trim(),b.name||(b.name="未命名对象"),b.originalOptions.name=b.name,b.originalOptions.field=b.field,b._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:b.options.id,name:b.originalOptions.name,field:b.originalOptions.field})},closeCallBack:function(){b.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:this._DialogObject=e.sent,n='\n
                \n
                \n 文件名称:\n \n
                \n
                \n
                \n
                \n 名称字段选择:\n
                \n
                \n
                \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.name,s.addEventListener("input",(function(){b.options.name=s.value})),a=[],e.t0=S.a.keys(this.geojson.features[0].properties);case 17:if((e.t1=e.t0()).done){e.next=31;break}r=e.t1.value,l=r,c=0;case 21:if(!(c').concat(v,""),m+=y,e.next=52;break;case 67:d.innerHTML=m,d.value=this.options.field,d.addEventListener("input",(function(){b.options.field=d.value})),this._elms.name=s,this._elms.field=d,e.next=75;break;case 74:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 75:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"editContentById",value:function(e,t){for(var i=0;i0?o.getElementsByClassName("table-empty")[0].style.display="none":o.getElementsByClassName("table-empty")[0].style.display="flex";for(var a=0;a\n
                '+this._DialogObject.attribute.link.content[a].url+'
                \n
                \n \n \n
                \n ',l=document.createRange().createContextualFragment(r);s.appendChild(l)}for(var c=s.getElementsByClassName("tr"),u={linkEdit:(i=_()(S.a.mark((function t(i){var o,s,a,r,l;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.setAttributeLinkById(e,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],a=s.getElementsByClassName("tr"),r=S.a.mark((function e(t){var o,s,r,l,c,h;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i!==t){e.next=33;break}a[t].innerHTML='\n
                \n \n
                \n
                \n
                \n \n \n
                \n
                \n
                \n \n \n
                ',(o=a[t].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=a[t].getElementsByTagName("button"),r=0;case 8:if(!(r1&&void 0!==d[1]?d[1]:{},Object(X.w)(0),Object(X.f)(this.sdk),Object(X.g)(this.sdk),!t){e.next=14;break}n=S.a.mark((function e(n){var o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p.geojson.features[n].id===t&&("Point"===p.geojson.features[n].geometry.type?p.getClampToHeight({lng:p.geojson.features[n].geometry.coordinates[0],lat:p.geojson.features[n].geometry.coordinates[1]}).then((function(e){p.sdk.viewer.camera.flyTo({orientation:i.orientation,destination:Cesium.Cartesian3.fromDegrees(p.geojson.features[n].geometry.coordinates[0],p.geojson.features[n].geometry.coordinates[1],e+(i.height||500))})})):(o=p.geojson.features[n].geometry.range)&&(s=[],p.getClampToHeight({lng:o[0],lat:o[1]}).then((function(e){var t=Cesium.Cartesian3.fromDegrees(o[0],o[1],e);s.push(t.x,t.y,t.z),p.getClampToHeight({lng:o[2],lat:o[3]}).then((function(e){var t=Cesium.Cartesian3.fromDegrees(o[2],o[3],e);s.push(t.x,t.y,t.z);var n=Cesium.BoundingSphere.fromVertices(s);p.sdk.viewer.camera.flyToBoundingSphere(n,{offset:i.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}})}))}))));case 1:case"end":return e.stop()}}),e)})),o=0;case 7:if(!(oo&&(o=l),s+=16}s=s+10+5*(n.length-1),o+=30,t.width=o,t.height=s;var c=i.createLinearGradient(0,0,o,s);return i.fillStyle=c,i.fillRect(0,0,o,s),i.fillStyle="#ffffff",i.font="16px YaHei",i.strokeStyle="#000000",i.strokeText(n,15,16*n.length+6.25+5*n.length),i.fillText(n,15,16*n.length+6.25+n.length-5),i.moveTo(o/2,s),i.stroke(),i.closePath(),t.toDataURL()}},{key:"createTableContent",value:function(e){for(var t="",i=0;i
                ').concat(e.currentData[i].attr[s],"
                ");t+=n=n+o+""}return t}}]);var i,o,a,r,l}(vt);function hv(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 pv(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),(i=dv(this,t,[e,n])).options.text=n.text||"未命名对象";for(var s=i.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));if(s.length>70&&s.splice(70-s.length),i.options.text=s.join("\n"),i.options.show=!n.show&&!1!==n.show||n.show,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.color=n.color||"#FFC107",i.options.position=n.position,delete i.options.name,!i.options.position&&i.options.positions){var r=function(e,t){var i=t[0]-e[0],n=t[1]-e[1];return Math.atan2(n,i)};i.options.position={lng:(i.options.positions[0].lng+i.options.positions[1].lng)/2,lat:(i.options.positions[0].lat+i.options.positions[1].lat)/2};var l=turf.point([i.options.positions[0].lng,i.options.positions[0].lat]),u=turf.point([i.options.positions[1].lng,i.options.positions[1].lat]),h={units:"miles"},p=turf.rhumbDistance(l,u,h),d=r([i.options.positions[0].lng,i.options.positions[0].lat],[i.options.positions[1].lng,i.options.positions[1].lat]);i.options.angle=(360+Cesium.Math.toDegrees(d))%360;var m=1e-4*Math.abs(Math.cos(Math.PI/180*i.options.position.lat)),f=i.getcanvas(),v=f.height/f.width,g=i.options.position.lng-1e-4/v,y=i.options.position.lat-m,b=i.options.position.lng+1e-4/v,C=i.options.position.lat+m,w=(y+C)/2,k=turf.point([g,w]),_=turf.point([b,w]),x=turf.rhumbDistance(k,_,h),S=Cesium.Math.toRadians(i.options.position.lat);x*=1+Math.abs(Math.sin(d)*Math.tan(S)*Math.sin(S)*Math.sin(S)),i.options.scale=p/x}return i.duration=5e4,i.entity,i._positionEditing=!1,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.previous={position:pv({},i.options.position)},i.event=new te.a(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return Me()(t,e),h()(t,[{key:"lng",get:function(){return this.options.position.lng},set:function(e){this.options.position.lng=e,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=e,this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e}))}},{key:"name",get:function(){}},{key:"text",get:function(){return this.options.text},set:function(e){var t=this;this.options.text=e;for(var i=this.options.text.split("\n"),n=0;n80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),i[n]=i[n].slice(0,80-i[n].length)}if(i.length>70){i.splice(70-i.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=i.join("\n"),this.entity){var o=this.getcanvas(),s=o.height/o.width;this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:o.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this.entity.rectangle.coordinates=new Cesium.CallbackProperty((function(){var e,i=Math.abs(Math.cos(Math.PI/180*t.options.position.lat))*(1e-4*t.options.scale),n=[t.options.position.lng-1e-4*t.options.scale/s,t.options.position.lat-i,t.options.position.lng+1e-4*t.options.scale/s,t.options.position.lat+i];return(e=Cesium.Rectangle).fromDegrees.apply(e,n)}),!1)}this._elms.text&&this._elms.text.forEach((function(e){e.value=t.options.text}))}},{key:"angle",get:function(){return this.options.angle},set:function(e){this.options.angle=Number(e),this._elms.angle&&this._elms.angle.forEach((function(t){t.value=e}))}},{key:"scale",get:function(){return this.options.scale},set:function(e){this.options.scale=Number(e),this._elms.scale&&this._elms.scale.forEach((function(t){t.value=e}))}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=Number(e);var t=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:t.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),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;var i=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:i.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),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:"create",value:function(){var e=this,t=this.getcanvas(),i=t.height/t.width;this.entity=this.sdk.viewer.entities.add({id:this.options.id,show:this.options.show,rectangle:{coordinates:new Cesium.CallbackProperty((function(){var t,n=Math.abs(Math.cos(Math.PI/180*e.options.position.lat))*(1e-4*e.options.scale),o=[e.options.position.lng-1e-4*e.options.scale/i,e.options.position.lat-n,e.options.position.lng+1e-4*e.options.scale/i,e.options.position.lat+n];return(t=Cesium.Rectangle).fromDegrees.apply(t,o)}),!1),material:new Cesium.CustomMaterialSource({image:t.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),rotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(e.options.angle)}),!1),stRotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(e.options.angle)}),!1)}}),"cesium-viewer 2d"===this.sdk.viewer._element.className&&(this.entity.rectangle.height=10),Object(J.g)(this.sdk,this.options.id),this.options.show&&Object(Z.f)(0,this.options.id)}},{key:"edit",value:(o=_()(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(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=18;break}return e.next=6,new Be(this.sdk,this.originalOptions,{title:"贴地文字属性",left:"180px",top:"100px",confirmCallBack:function(e){s.text=s.text.trim(),s.text||(s.text="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Object(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.positionEditing=!1,s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()},translationalCallBack:function(){s.positionEditing=!s.positionEditing}},!0);case 6:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-text",(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
                \n
                \n 纬度\n \n
                \n
                \n
                \n \n
                \n
                \n
                \n 旋转角度\n \n
                \n \n °\n \n
                \n
                \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(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,o=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),this._elms.color=[o],e.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"positionEditing",get:function(){return this._positionEditing},set:function(e){var t=this;this.sdk&&this.sdk.viewer&&this.entity&&(this._positionEditing=e,this.previous={position:pv({},this.options.position)},!0===e?(this.tip&&this.tip.destroy(),this.tip=new St.a("点击鼠标左键确认,右键取消",this.sdk),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(){})),t.positionEditing=!1})),this.event.mouse_right((function(e,i){t.lng=t.previous.position.lng,t.lat=t.previous.position.lat,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.lng=t.previous.position.lng,t.lat=t.previous.position.lat,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.positionEditing=!1}}))}))):(this._positionEditingCallback&&(this._positionEditingCallback(),this._positionEditingCallback=null),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()))}},{key:"openPositionEditing",value:function(e){this.positionEditing=!0,this._positionEditingCallback=e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,d,m,f,v,g,y=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y.length>0&&void 0!==y[0]?y[0]:{},i=this.getcanvas(),n=i.height/i.width,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(o={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)},s=this.options.customView.relativePosition.lng,a=this.options.customView.relativePosition.lat,r=this.options.customView.relativePosition.alt,l=Cesium.Cartesian3.fromDegrees(s,a,r),c={lng:0,lat:0},this.options.position?c=pv({},this.options.position):this.options.positions?c=pv({},this.options.positions[0]):this.options.center?c=pv({},this.options.center):this.options.start?c=pv({},this.options.start):(this.options.hasOwnProperty("lng")&&(c.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(c.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(c.alt=this.options.alt)),c.hasOwnProperty("alt")){e.next=18;break}return e.next=17,this.getClampToHeight(c);case 17:c.alt=e.sent;case 18:s=this.options.customView.relativePosition.lng+c.lng,a=this.options.customView.relativePosition.lat+c.lat,r=this.options.customView.relativePosition.alt+c.alt,l=Cesium.Cartesian3.fromDegrees(s,a,r),this.sdk.viewer.camera.flyTo({destination:l,orientation:o}),e.next=34;break;case 25:return u=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),h=[[this.options.position.lng-1e-4*this.options.scale/n,this.options.position.lat-u],[this.options.position.lng+1e-4*this.options.scale/n,this.options.position.lat+u]],e.next=29,this.getClampToHeight(this.options.position);case 29:for(p=e.sent,d=[],m=0;m80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:{};c()(this,t),(n=fv(this,t,[e,i])).options.text=i.text||"未命名对象";for(var s=n.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));return s.length>70&&s.splice(70-s.length),n.options.text=s.join("\n"),n.options.color=i.color||"#FFC107",n.options.positions=i.positions,n.options.speed=i.speed||0===i.speed?i.speed:1,n.options.show=!i.show&&!1!==i.show||i.show,n.nodePoints=[],n.entity,delete n.options.name,n.extrudedHeight,n._EventBinding=new Ye,n.Dialog=o,n._elms={},n.sdk.addIncetance(n.options.id,n),t.create(n),n}return Me()(t,e),h()(t,[{key:"name",get:function(){}},{key:"text",get:function(){return this.options.text},set:function(e){this.options.text=e;for(var t=this.options.text.split("\n"),i=0;i80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),t[i]=t[i].slice(0,80-t[i].length)}if(t.length>70){t.splice(70-t.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=t.join("\n"),this.entity){for(var n=this.options.positions,o=[],s=[],a=[],r=this.getMaterial(),l=this.computeDistance2(n),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u\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(i),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"reset",value:function(){if(this.entity){this.options=this.deepCopyObj(this.originalOptions),this.text=this.originalOptions.text,this.color=this.originalOptions.color,this.speed=this.originalOptions.speed;for(var e=this.options.positions,t=[],i=[],n=[],o=this.computeDistance2(e),s=this.aspectRatio?o/this.aspectRatio:0,a=0;a80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s0&&void 0!==arguments[0]?arguments[0]:function(){};if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),this._nodeEditCallback=t,this.tip=new St.a("请选择一个顶点,右键取消",this.sdk),this.event=new te.a(this.sdk),this.nodePoints=[];for(var o=this.options.positions,s=[],a=[],r=[],l=this.computeDistance2(o),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u=500?d(o,i):p(o,i)}))}));for(var m=0;m2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(o=bv(this,t)).sdk=e,o.viwer=e.viewer,o.options=yv({},i),o.options.host=i.host||Object(n.a)(),o.options.name=i.name||"未命名对象",o.options.show=!i.show&&!1!==i.show||i.show,"number"==typeof i.scale?(o.options.scale={},o.options.scale.x=i.scale,o.options.scale.y=i.scale,o.options.scale.z=i.scale):(o.options.scale=i.scale||{},o.options.scale.x=o.options.scale.x||0===o.options.scale.x?o.options.scale.x:1,o.options.scale.y=o.options.scale.y||0===o.options.scale.y?o.options.scale.y:1,o.options.scale.z=o.options.scale.z||0===o.options.scale.z?o.options.scale.z:1),o.primitive=null,o._loadEvent=void 0,o._loaded=!1,o._elms={},o.Dialog=s,o._EventBinding=new Ye,t.setDefaultValue(o),o.requestResource(),o.ControllerObject=new fi(o.sdk,{position:yv({},o.options.position),rotate:{x:(360+o.options.roll%360)%360,y:(360+-o.options.pitch%360)%360,z:(360+-o.options.heading%360)%360}}),o.ControllerObject.controllerCallBack=o.controllerCallBack,o.HeadingPitchRollCallBack=o.Dialog.HeadingPitchRollCallBack,o}return Me()(t,e),h()(t,[{key:"requestResource",value:function(){this.addResource().then((function(e){}))}},{key:"addResource",value:(s=_()(S.a.mark((function e(){var t,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((t=this).options.xmlURL=t.options.objUrl.replace(".obj",".xml"),""===t.options.xmlURL){e.next=34;break}return e.next=5,fetch(t.options.xmlURL);case 5:if(!(i=e.sent).ok){e.next=32;break}return e.next=9,i.text();case 9:return n=e.sent,o=new DOMParser,s=o.parseFromString(n,"text/xml"),a=s.getElementsByTagName("Position")[0].textContent.split(","),r=s.getElementsByTagName("Crs")[0].textContent,l=t.convert([{x:a[0],y:a[1],z:a[2]}],r,"EPSG:4326"),t.options.position=t.options.position||{lng:l.points[0].x,lat:l.points[0].y,alt:l.points[0].z},t.ControllerObject.position=t.options.position,c=t.viwer.scene,u=Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt),h=Cesium.Transforms.headingPitchRollToFixedFrame(u,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(.85),Cesium.Math.toRadians(0),Cesium.Math.toRadians(0))),e.next=22,window.objLoader.Load(t.options.objUrl);case 22:(p=e.sent).show=t.options.show,p.modelMatrix=h,p.setFlvVideo(t.options.videoUrl),c.primitives.add(p),t.primitive=p,t.controllerCallBack({rotate:{x:t.options.roll,y:-t.options.pitch,z:-t.options.heading},position:yv({},t.options.position)}),this.loaded=!0,this._loaded=!0,this._loadEvent&&this._loadEvent();case 32:e.next=36;break;case 34:return console.error("请填写xml路径"),e.abrupt("return");case 36:if(""!==t.options.objUrl){e.next=39;break}return console.error("请填写obj模型路径"),e.abrupt("return");case 39: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,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[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=yv({},this.options.position):this.options.positions?r=yv({},this.options.positions[0]):this.options.center?r=yv({},this.options.center):this.options.start?r=yv({},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=28;break;case 25:l=100*Math.tan(60),c=l/111319.55,this.sdk.viewer.camera.flyTo({destination:new Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat-c,this.options.position.alt+100),orientation:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 28:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c=this,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.length>0&&void 0!==u[0]&&u[0],t=!1,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),e.next=6,new Be(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(e){c.name=c.name.trim(),c.name||(c.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.Dialog.closeCallBack&&c.Dialog.closeCallBack()},rotateCallBack:function(){c.rotationEditing?c.rotationEditing=!1:c.rotationEditing=!0},translationalCallBack:function(){c.positionEditing?c.positionEditing=!1:c.positionEditing=!0}},!0);case 6:for(this._DialogObject=e.sent,(i=document.createElement("div")).style.width="448px",i.innerHTML='\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 ',this._DialogObject.contentAppChild(i),n=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),o=this._DialogObject._element.content.getElementsByClassName("equal")[0],s=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],n.checked=t,n.addEventListener("change",(function(e){(t=e.target.checked)?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex")})),(a=o.getElementsByTagName("input"))[0].value=this.scaleX,a[1].value=this.scaleX,a[0].addEventListener("input",(function(e){c.scaleX=e.target.value,c.scaleY=e.target.value,c.scaleZ=e.target.value})),a[1].addEventListener("input",(function(e){c.scaleX=e.target.value,c.scaleY=e.target.value,c.scaleZ=e.target.value})),t?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex"),setTimeout((function(){if(c._DialogObject._element.foot){var e=c._DialogObject._element.foot.getElementsByClassName("rotate")[0];e&&(e.style.position="absolute",e.style.left="100px")}}),0),r=i.getElementsByTagName("*"),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};c()(this,e),this.sdk=t,this.options=Ev({},i),this.options.show=!i.show&&!1!==i.show||i.show,this.options.host=this.options.host||Object(n.a)(),this.objModelObject=[],this._loaded=!1,this._loadEvent=void 0,this.on()}),[{key:"show",get:function(){return this.options.show},set:function(e){var t=this;if("boolean"==typeof e){this.options.show=e;for(var i=function(i){t.objModelObject[i].load((function(){t.objModelObject[i].show=e}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),Tv(i=Mv(this,t,[e,n]),Av,void 0),i.options.id=n.id||i.randomString(),i.options.name=n.name||"漫游路径",i.options.points=n.points||[],i.options.repeat&&(i.options.repeat=Number(i.options.repeat)),i.Dialog=o,i}return Me()(t,e),h()(t,[{key:"repeat",get:function(){return this.options.repeat},set:function(e){if(this.options.repeat!=Number(e)&&(this.options.repeat=Number(e),this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)){var t=this._DialogObject._element.content.querySelector("input[name='repeat']");t.checked=e===1/0,this.Dialog.changeRepeatStateCallBack&&this.Dialog.changeRepeatStateCallBack(t.checked)}}},{key:"edit",value:(i=_()(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:if(i=this,n=this.sdk.viewer,o=0,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=44;break}return s=function(e){var t=r.getElementsByClassName("tr");t.length>0&&(t[t.length-1].querySelector("input[name='time']").disabled=void 0);var s=r.getElementsByClassName("tr active")[0];s&&(s.className="tr");var a=document.createElement("div");a.className="tr active",a.innerHTML='\n
                视点'.concat(c+1,'
                \n
                \n \n
                \n
                \n
                \n '),a.addEventListener("click",(function(e){if(e.target.parentNode===a){var i=r.getElementsByClassName("tr active")[0];i&&(i.className="tr"),a.className="tr active";for(var n=0;nn+1?(o--,t[o-1].className="tr active"):o==n+1&&(t.length==n&&(o-=1),0!=t.length&&(t[o-1].className="tr active")),t.length>0){var s=t[t.length-1].querySelector("input[name='time']");s.disabled="disabled",s.value=0}break}})),p.addEventListener("input",(function(t){m.checked=!1,e.duration=Number(p.value),e.duration<0&&(e.duration=0)})),p.addEventListener("blur",(function(){p.value=Number(Number(p.value).toFixed(2)),p.value<0&&(p.value=0)})),r.insertBefore(a,t[o]),o++,t[t.length-1].querySelector("input[name='time']").disabled="disabled"},e.next=8,new Te.a(n._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){v.cease()}});case 8:return this._DialogObject=e.sent,e.next=11,this._DialogObject.init();case 11:for((a=document.createElement("div")).className="fly-roam",a.innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n \n 设置总时长\n
                \n \n 秒(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
                时长(s)
                \n
                操作
                \n
                \n
                \n
                \n
                \n
                \n

                暂无数据

                \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(a),a.getElementsByTagName("*"),r=a.getElementsByClassName("table-body")[0],l=a.getElementsByClassName("table-empty")[0],c=0,u=new Proxy([],{set:function(e,t,i){return e[t]=i,e.length>0?l.style.display="none":l.style.display="flex",!0}}),c=0;c0&&v.flyTo(0)})),a.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var e={duration:0,position:v.cartesian3Towgs84(n.camera.position,n),orientation:{heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll}};u.splice(o,0,e),v.options.points.splice(o,0,e),s(e),c++})),a.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(o){var e=v.cartesian3Towgs84(n.camera.position,n);v.options.points[o-1].position=u[o-1].position=e,v.options.points[o-1].orientation=u[o-1].orientation={heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll},v.message({text:"操作成功"})}})),d=a.querySelector("input[name='totalTime']"),m=a.querySelector("input[name='isTotalTime']"),f=a.querySelector("input[name='repeat']"),m.addEventListener("change",(function(){var e=r.getElementsByClassName("tr");if(m.checked&&e.length>0){for(var t=Number((Number(d.value)/(e.length-1)).toFixed(2)),i=0;i0){for(var t=Number((Number(d.value)/(e.length-1)).toFixed(2)),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;Object(X.w)(0);var i=this,n=this.options.points,o=this.repeat;Object(X.f)(i.sdk);var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;Bv(Av,e)&&Bv(Av,e).destroy();var a=e;Nv(Av,e,new Cesium.ScreenSpaceEventHandler(a.sdk.viewer.canvas)),Bv(Av,e).setInputAction((function(t){e.cease()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var r,l=a.sdk.viewer;Object(X.w)(0),l.camera.cancelFlight(),l.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(n[t].position.lng,n[t].position.lat,n[t].position.alt),orientation:n[t].orientation,duration:i?n[t-1].duration:.5,maximumHeight:n[t].position.alt,complete:(r=_()(S.a.mark((function i(){return S.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t++,e.repeat===1/0?o=1/0:o===1/0&&(o=e.repeat),t<=n.length-1?s(t,!0):o?(o--,s(0)):Bv(Av,e)&&Bv(Av,e).destroy();case 3:case"end":return i.stop()}}),i)}))),function(){return r.apply(this,arguments)}),easingFunction:i?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})};s(t)}},{key:"cease",value:function(){this.sdk&&this.sdk.viewer&&this.sdk.viewer.camera.cancelFlight(),Bv(Av,this)&&Bv(Av,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(vt);function Iv(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 Rv=function(){return h()((function e(t,i,n){c()(this,e),this.options=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"move",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("move"===e){var o=turf.point([this.options.position.lng,this.options.position.lat]),s=Cesium.Math.toDegrees(this.hpr.heading),a=s+i,r={units:"degrees"},l=turf.destination(o,t,a,r).geometry.coordinates;this.position=Cesium.Cartesian3.fromDegrees(l[0],l[1],this.options.position.alt+this.options.normalHeight),this.options.position.lng=l[0],this.options.position.lat=l[1],this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],this.viewer.camera.positionCartographic.height)})}"update"===e&&(this.position=t,this.options.videoUrl&&this.updatePolygonPosition()),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"syncHpr",value:function(){if(this.viewer1){var e=this.options.position,t=e.lng,i=e.lat,n=e.alt,o=-this.hpr.pitch-Cesium.Math.toRadians(-90);this.viewer1.camera.setView({destination:Cesium.Cartesian3.fromDegrees(t,i,n+this.options.normalHeight),orientation:{heading:this.hpr.heading+Cesium.Math.toRadians(-90),pitch:o,roll:this.hpr.roll}})}}},{key:"updateFrustumHPR",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.head,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pitch,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";function s(e){return e*Math.PI/180}"alone"==o?(this.hpr.heading=s(e),this.hpr.pitch=s(t),this.hpr.roll=s(i)):(this.hpr.heading=Cesium.Math.negativePiToPi(e),this.hpr.pitch=Cesium.Math.negativePiToPi(t),this.hpr.roll=Cesium.Math.negativePiToPi(i)),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"updateFrustumAttributes",value:function(){if(this.position&&this.hpr){var e=Cesium.Transforms.headingPitchRollToFixedFrame(this.position,this.hpr);if(e)try{var t=new Cesium.FrustumOutlineGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(e,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(e,new Cesium.Matrix3))}),i=new Cesium.PolylineColorAppearance({translucent:!1}),n=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW),o=new Cesium.FrustumGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(e,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(e,new Cesium.Matrix3))}),s=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.YELLOW.withAlpha(.5)}),translucent:!0}),a=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED.withAlpha(.5));this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:t,attributes:{color:n}}),appearance:i,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumOutline),this.currentFrustumFilled=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:o,attributes:{color:a}}),appearance:s,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumFilled)}catch(e){console.error("Error in drawFrustum:",e)}else console.error("Transform generation failed.")}else console.error("Position or HPR is not defined:",this.position,this.hpr)}},{key:"updateFrustumNearFar",value:function(e,t){this.frustum.near=e,this.frustum.far=t,this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"updateFrustumFov",value:function(e){this.frustum.fov=Cesium.Math.toRadians(e),this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"show",get:function(){return this.options.show},set:function(e){"boolean"==typeof e&&(this.options.show=e,this.currentFrustumOutline.show=e,this.currentFrustumFilled.show=e)}},{key:"remove",value:function(){document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("keyup",this.keyupHandler),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.videoEntity&&this.viewer.entities.remove(this.videoEntity)}}],[{key:"setDefaultValue",value:function(e){var t;e.options.position=e.options.position||{},e.options.fov=e.options.fov||30,e.options.aspectRatio=e.options.aspectRatio||1,e.options.near=e.options.near||1,e.options.far=e.options.far||120,e.options.heading=e.options.heading||0,e.options.pitch=e.options.pitch||90,e.options.roll=e.options.roll||0,e.options.show=null===(t=e.options.show)||void 0===t||t,e.options.videoUrl=e.options.videoUrl||"",e.options.index=e.options.index||0,e.options.arr=e.options.arr||[],e.options.normalHeight=e.options.normalHeight||100}}]);var e,t}();function zv(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 Fv=function(){return h()((function e(t,i){c()(this,e),this.options=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;c()(this,e),this.options=Vv({},t),this.viewer=i,this.viewer1=n,this.entity=null,this.frustum=null,this.billordPointLineMaps=[],this.index=0,this.positions=[],e.setDefaultValue(this),this.create()}),[{key:"create",value:function(){var e=this;if(!(this.options.positions.length<2)){var t=this.options.frustumShow;this.entity=this.viewer.entities.add({show:this.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){for(var t=[],i=0;ithis.options.positions.length-1||this.index<0){var t=this.index>0?"已选中最后一个航点":"已选中第一个航点";alert(t)}else for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Wv(this,t,[e,n])).options.tipText=n.tipText?n.tipText:"左键确定,右键结束;",i}return Me()(t,e),h()(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 St.a(this.options.tipText,this.sdk),this.event=new te.a(this.sdk),this.isEntity=!1,this.event.mouse_left((function(n,o){t.end();var s=t.cartesian3Towgs84(i||o,t.viewer),a=t.viewer.scene.pick(n.position);Cesium.defined(a)&&Cesium.defined(a.id)&&a.id.id===window.airportEntity.options.id&&(t.isEntity=!0),e(null,s,t.isEntity)})),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)}}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip.destroy()}}])}(Dn.a);function Yv(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 Jv(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),(i=qv(this,t,[e,n])).viewer=i.sdk.viewer,i.options.name=n.name||"飞线",i.options.pointNumber=n.pointNumber||200,i.options.height=n.height||200,i.options.heightDifference=n.heightDifference||3e3,i.options.width=n.width||2,i.options.duration=n.duration||10,i.options.color=n.color||"rgba(255,255,255,1)",i.options.lineBackAlpha=n.lineBackAlpha||.05,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new Ye,i._elms={},i.positionArea=[],i.positions=[],i.sdk.addIncetance(i.options.id,i),t.drawLine(i),i}return Me()(t,e),h()(t,[{key:"getRandomPointsInCesiumPolygon",value:function(e,t){var i=[],n=[],o=[];e.forEach((function(e){i.push(e.lng),n.push(e.lat),o.push([e.lng,e.lat])})),o.push([o[0][0],o[0][1]]);for(var s=Math.min.apply(Math,i),a=Math.max.apply(Math,i),r=Math.min.apply(Math,n),l=Math.max.apply(Math,n),c=[];c.length0&&void 0!==a[0]&&a[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=19;break}return e.next=7,new Be(this.sdk,this.originalOptions,{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(J.g)(s.sdk,s.options.id),Object(Z.g)(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(e){s.show=e,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(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 \n \n
                \n
                \n
                \n 飞线宽度\n
                \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n\n
                \n 飞线高度\n
                \n \n \n
                \n
                \n
                \n 飞线高度差\n
                \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n 单次运动时长(s)\n
                \n \n \n
                \n
                \n
                \n 轨迹透明度\n
                \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("flowLine-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(e){s.color=e},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],e.next=19;break;case 19:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.pointNumber=this.originalOptions.pointNumber,this.height=this.originalOptions.height,this.heightDifference=this.originalOptions.heightDifference,this.width=this.originalOptions.width,this.duration=this.originalOptions.duration,this.color=this.originalOptions.color,this.lineBackAlpha=this.originalOptions.lineBackAlpha)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.length>0&&void 0!==h[0]&&h[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)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=Jv({},this.options.position):this.options.positions?a=Jv({},this.options.positions[0]):this.options.center?a=Jv({},this.options.center):this.options.start?a=Jv({},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)),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});else{for(r=[],l=0;l=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 Kv(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=Number(t.target.min))&&(i=i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i0&&t[o].addEventListener(e,(function(t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c()(this,e),this.viewer=t.viewer,this.options=ng({},i),this.sdk=ng({},t);var o=new Date;o.setHours(0,0,0,0),this.options.time=i.time,this.options.hour=i.hour,this.options.speed=i.speed||1e3,this.options.darkness=i.darkness||.4,this.options.softShadow=i.softShadow||!0,this.options.show=!0===i.show,this.Dialog=n,this.timeLine,this._EventBinding=new $v,this._elms={},e.start(this)}),[{key:"darkness",get:function(){return this.options.darkness},set:function(e){this.options.darkness=e,this.viewer.shadowMap.darkness=1-this.options.darkness,this._elms.darkness&&this._elms.darkness.forEach((function(t){t.value=e}))}},{key:"time",get:function(){return this.options.time},set:function(e){this.options.time=e;var t=(new Date).setHours(0,0,0,0);this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t))}},{key:"timeBar",set:function(e){var t=this.time+" "+e;this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),this.viewer.scene.requestRender()}},{key:"realTime",set:function(e){var t=new Date;this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(t)}},{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e,this._elms.speed&&this._elms.speed.forEach((function(t){t.value=e})),this.viewer.clock.multiplier=this.options.speed}},{key:"softShadow",get:function(){return this.options.softShadow},set:function(e){this.options.softShadow=e,this.viewer.shadowMap.softShadows=this.options.softShadow}},{key:"edit",value:(i=_()(S.a.mark((function e(){var t,i,n,o,s,a,r=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0],i=new b.a,this.originalOptions=i.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t&&(n=this,this.timeLine=new tg(this.sdk,this.options.speed),this.timeLine.moveComplay((function(e){var t=n.time+" "+e;n.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),n.viewer.scene.requestRender()})),s=contentElm.getElementsByClassName("sunshine-date")[0],o=jeDate(s,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(e){this.time=e.val;var t=(new Date).setHours(0,0,0,0);n.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(t)),n.timeLine.updateTime(t)}}),this.time?o.setValue(this.time):(o.nowBtn&&o.nowBtn(),this.time=o.getValue()),a=contentElm.getElementsByTagName("*"),this._EventBinding.on(this,a),this._elms=this._EventBinding.element,this._elms.color=[o]);case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.time=this.originalOptions.time,this.speed=this.originalOptions.speed,this.darkness=this.originalOptions.darkness)}},{key:"flyTo",value:(t=_()(S.a.mark((function e(){var t=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(t.length>0&&void 0!==t[0])||t[0];case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"remove",value:(e=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.viewer.scene.globe.enableLighting=!1,this.viewer.shadows=!1,this.viewer.clock.multiplier=1,this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date),this.entity=null,this.timeLine&&this.timeLine.clear(),this.viewer.shadowMap.cascadesEnabled=!1,this.viewer.shadowMap.size=1024,this.viewer.shadowMap.numberOfCascades=3,this.viewer.shadowMap._lightCamera,this.viewer.shadowMap.normalOffset=!1,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),e.next=14,Object(J.g)(this.sdk,this.options.id);case 14:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"start",value:function(e){var t;e.viewer.scene.globe.enableLighting=!0,e.viewer.shadows=!0,e.viewer.scene.globe.enableLighting=!0,e.viewer.terrainShadows=Cesium.ShadowMode.RECEIVE_ONLY,e.viewer.shadowMap.darkness=1-e.options.darkness,e.options.time&&e.options.hour?t=new Date(e.options.time+" "+e.options.hour):(t=new Date).setHours(0,0,0,0),e.viewer.clock.currentTime=Cesium.JulianDate.fromDate(t),e.viewer.clock.multiplier=e.options.speed,e.viewer.shadowMap.softShadows=e.options.softShadow,e.viewer.shadowMap.cascadesEnabled=!0,e.viewer.shadowMap.size=2048,e.viewer.shadowMap.numberOfCascades=4,e.viewer.shadowMap.maximumDistance=5e3;var i=e.viewer.shadowMap._lightCamera;i.frustum.near=.1,i.frustum.far=1e4,e.viewer.shadowMap.normalOffset=!0}}]);var e,t,i}();function sg(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 ag(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t,i){for(var n=[],o=[],s=[],a=0;am&&m>-1.001)o.push(v);else{var C=[];C[0]=v[1],C[1]=v[2],C[2]=v[3],C[3]=v[0],o.push(C)}},r=0;r2&&void 0!==arguments[2]?arguments[2]:.01;if(!t.width||!t.height)throw new Error("Texture size must contain width and height in pixels");for(var n=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(e),vertexFormat:Cesium.VertexFormat.POSITION_ONLY})),o=0,s=n.indices,a=n.attributes.position.values,r=0;r0)return Cesium.Cartesian3.fromDegrees(u.features[0].geometry.coordinates[0],u.features[0].geometry.coordinates[1])}},{key:"getLonLat",value:function(e){var t=Cesium.Cartographic.fromCartesian(e);return{lon:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude)}}},{key:"createLineBufferPolygon",value:function(e,t,i){for(var n=[],o=0;o0?n.unshift(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3)):i<0&&n.push(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3))}return n}},{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)}}},{key:"carRoadWidth",get:function(){return this.options.carRoadWidth},set:function(e){this.options.carRoadWidth=e,t.create(this)}},{key:"sideWidth",get:function(){return this.options.sideWidth},set:function(e){this.options.sideWidth=e,t.create(this)}},{key:"edit",value:(o=_()(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:if(t=s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!t){e.next=17;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"道路属性",left:"180px",top:"100px",confirmCallBack:function(e){o.name=o.name.trim(),o.name||(o.name="道路"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Object(J.g)(o.sdk,o.options.id),Object(Z.g)(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},closeCallBack:function(){o.reset(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(e){o.show=e,o.Dialog.showCallBack&&o.Dialog.showCallBack()}},!0);case 7:this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" road-surface",(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 \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 17:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.carRoadWidth=this.originalOptions.carRoadWidth,this.sideWidth=this.originalOptions.sideWidth,this.positions=this.originalOptions.positions,this.roadImage=this.originalOptions.roadImage,this.sideImage=this.originalOptions.sideImage)}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.length>0&&void 0!==h[0]&&h[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)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=ag({},this.options.position):this.options.positions?a=ag({},this.options.positions[0]):this.options.center?a=ag({},this.options.center):this.options.start?a=ag({},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)),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});else{for(r=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return c()(this,t),(i=hg(this,t,[e,n])).options.position=n.position||[],i.options.text=n.text||"",i.options.show=!n.show&&!1!==n.show||n.show,i.clickTextDom=void 0,i.handler=void 0,i.textDom=void 0,i.create(i),i.sdk.addIncetance(i.options.id,i),i.callback=o,i}return Me()(t,e),h()(t,[{key:"type",get:function(){return"TextBox"}},{key:"create",value:(u=_()(S.a.mark((function e(t){var i,n,o,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.sdk.viewer,(n=document.createElement("span")).id=t.options.id,n.className="popup-textarea",n.style.zIndex=1,(o=document.createElement("textarea")).className="textarea",o.value=t.options.text,o.rows=6,o.style.resize="none",n.appendChild(o),!t.options.show&&(n.style.display="none"),i.cesiumWidget.container.appendChild(n),s=Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt),t.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,s);if(e){var t=1*n.clientWidth,o=1*n.clientHeight;n.style.left="".concat(e.x-t/2,"px"),n.style.top="".concat(e.y-o,"px")}},i.scene.postRender.addEventListener(t.handler),t.textDom=n;case 17:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"isClick",value:(l=_()(S.a.mark((function e(t,i){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.clickCallBack({position:t},i,null);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"setHandeler",value:(r=_()(S.a.mark((function e(t){var i,n,o,s,a,r,l;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this,(n=this.sdk.viewer.scene.pickPosition(new Cesium.Cartesian2(t.x,t.y)))||(o=this.sdk.viewer.camera.getPickRay(new Cesium.Cartesian2(t.x,t.y)),n=this.sdk.viewer.scene.globe.pick(o,this.sdk.viewer.scene)),!Cesium.defined(n)){e.next=15;break}return i.sdk.viewer.scene.postRender.removeEventListener(i.handler),s=Cesium.Cartographic.fromCartesian(n),a=Cesium.Math.toDegrees(s.longitude),r=Cesium.Math.toDegrees(s.latitude),e.next=10,i.getClampToHeight({lng:a,lat:r});case 10:e.sent,i.position={lng:a,lat:r,alt:s.height},l=Cesium.Cartesian3.fromDegrees(a,r,s.height),i.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,l);if(e){var t=1*i.textDom.clientWidth,n=1*i.textDom.clientHeight;i.textDom.style.left="".concat(e.x-t/2,"px"),i.textDom.style.top="".concat(e.y-n,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getwords",value:(a=_()(S.a.mark((function e(t){var i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.options.text=t,this.callback(this.options),i=Object(J.c)(),n=i.sdkP,this.sdk===n&&n?Object(J.g)(this.sdk,this.options.id):n?(n.entityMap.get(this.options.id).text=t,n.entityMap.get(this.options.id).twoToThree(this.options.position)):n||Object(J.g)(this.sdk,this.options.id);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"twoToThree",value:(s=_()(S.a.mark((function e(t){var i,n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=this).sdk.viewer.scene.postRender.removeEventListener(i.handler),n=Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt),i.handler=function(){var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,n);if(e){var t=1*i.textDom.clientWidth,o=1*i.textDom.clientHeight;i.textDom.style.left="".concat(e.x-t/2,"px"),i.textDom.style.top="".concat(e.y-o,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"returnFun",value:(o=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.handler);case 1:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"text",get:function(){return this.options.text},set:function(e){this.options.text=e,this.textDom.querySelector("textarea").value=e,this.callback(this.options)}},{key:"onClick",get:function(){return this.clickCallBack},set:function(e){e&&"function"!=typeof e?console.error("val:",e,"不是一个function"):this.clickCallBack=e}},{key:"show",get:function(){return this.options.show},set:function(e){this.options.show=e,this.textDom&&(this.textDom.style.display=e?"block":"none"),Object(J.g)(this.sdk,this.options.id)}},{key:"position",get:function(){return this.options.position},set:function(e){this.options.position=e}},{key:"flyTo",value:(n=_()(S.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.length>0&&void 0!==u[0]&&u[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?(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=ug({},this.options.position):this.options.position?a=ug({},this.options.position[0]):this.options.center?a=ug({},this.options.center):this.options.start?a=ug({},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)),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})):(r=[],l=Cesium.Cartesian3.fromDegrees(this.position.lng,this.position.lat,this.position.alt),r.push(l.x,l.y,l.z),c=Cesium.BoundingSphere.fromVertices(r),this.viewer.camera.flyToBoundingSphere(c,{offset:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-20),roll:Cesium.Math.toRadians(0)}}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=_()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler&&(this.sdk.viewer.scene.postRender.removeEventListener(this.handler),this.handler=void 0),this.textDom&&this.textDom.parentNode&&this.sdk.viewer.cesiumWidget.container.removeChild(this.textDom),e.next=4,this.sdk.removeIncetance(this.options.id);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,o,s,a,r,l,u}(vt);function dg(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 mg(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c()(this,t),(i=fg(this,t,[e,n])).viewer=i.sdk.viewer,i.options.name=n.name||"批量模型",i.options.type=n.type||"面",i.options.url=n.url||"",i.options.spacing=1*n.spacing||50,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.callback=o,i.Dialog=s,i._EventBinding=new Ye,i._elms={},i.pointArr=[],i.sdk.addIncetance(i.options.id,i);var a=new b.a(e);if("点"!=n.type&&(i.options.spacing<0||1*n.spacing==0))return a.message({type:"warning",text:"请输入正确的间距!"}),Ee()(i);if(n.type&&null!=n.spacing||"点"==n.type){var r;switch(n.type){case"点":r=new fs.default(i.sdk);break;case"线":r=new us(i.sdk);break;case"面":r=new ms(i.sdk)}r&&r.start((function(e,o){if(i.options.positions=o,"面"==n.type){var s=o.map((function(e){return Cesium.Cartesian3.fromDegrees(e.lng,e.lat)})),r=Cesium.Cartesian3.distance(s[0],s[1]),l=Cesium.Cartesian3.distance(s[1],s[2]);if(r/i.options.spacing*(l/i.options.spacing)>100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}else if("线"==n.type){for(var c=o.map((function(e){return Cesium.Cartesian3.fromDegrees(e.lng,e.lat)})),u=0,h=0;h100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}(i.options.positions.length||i.options.positions.lng)&&t.computeDis(i)}))}else i.edit(!0);return i}return Me()(t,e),h()(t,[{key:"linePoint",value:(u=_()(S.a.mark((function e(t,i){var n,o,a,r,l,c,u,h,p,d,m,f,v,g;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],o=[],a=0;case 3:if(!(a0&&void 0!==u[0]&&u[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){e.next=33;break}return e.next=7,new Be(this.sdk,this.originalOptions,{title:"默认模型参数设置",left:"180px",top:"100px",confirmCallBack:function(e){var i;switch(c.name=c.name.trim(),c.name||(c.name="飞线"),c.options.type){case"点":i=new fs.default(c.sdk);break;case"线":i=new us(c.sdk);break;case"面":i=new ms(c.sdk)}i&&i.start((function(e,i){c.options.positions=i,(c.options.positions.length||c.options.positions.lng)&&t.computeDis(c)})),c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions),Object(J.g)(c.sdk,c.options.id),Object(Z.g)(c.sdk,c.options.id)},closeCallBack:function(){c.reset(),c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"重置",event:["click",function(){c.reset()}]}]},!0);case 7:if(this._DialogObject=e.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(n=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 添加方式\n
                \n
                \n
                \n 间距\n
                \n \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(n),o=n.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,s=[{name:"点",value:"点"},{name:"线",value:"线"},{name:"面",value:"面"}],!(a=Object(je.a)(this._DialogObject._element.content.getElementsByClassName("add-type-box")[0],".add-type"))){e.next=31;break}a.legp_search(s),r=this._DialogObject._element.content.getElementsByClassName("add-type")[0].getElementsByTagName("input")[0],this._elms.type=[r],r.value=this.options.type,l=0;case 23:if(!(l0&&void 0!==h[0]&&h[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)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=mg({},this.options.position):this.options.positions?a=mg({},this.options.positions[0]):this.options.center?a=mg({},this.options.center):this.options.start?a=mg({},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)),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});else if(r=[],this.options.positions.length>0){for(l=0;l=0;n--)t.removeChild(i[n]);Ti=0,Ni=0},flyTo:Ai,setRepeat:function(e){Ti!=Number(e)&&(Ti=Number(e),Ni=Ti)},cease:Li},flyTo:X.i,efflect:{rain:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ii&&e.viewer.scene.postProcessStages.remove(Ii),t&&(Ii=new Cesium.PostProcessStage({name:"rain",fragmentShader:Hi,uniforms:{tiltAngle:-.4,rainSize:.3,rainWidth:40,rainSpeed:100}}),e.viewer.scene.postProcessStages.add(Ii))},snow:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ri&&e.viewer.scene.postProcessStages.remove(Ri),t&&(Ri=new Cesium.PostProcessStage({name:"snow",fragmentShader:Vi,uniforms:{snowSize:2,snowSpeed:60}}),e.viewer.scene.postProcessStages.add(Ri))},fog:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];zi&&e.viewer.scene.postProcessStages.remove(zi),t&&(zi=new Cesium.PostProcessStage({name:"fog",fragmentShader:Gi,uniforms:{visibility:.2,fogColor:Cesium.Color.WHITE}}),e.viewer.scene.postProcessStages.add(zi))},nightVision:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Fi&&e.viewer.scene.postProcessStages.remove(Fi),t&&(Fi=Cesium.PostProcessStageLibrary.createNightVisionStage(),e.viewer.scene.postProcessStages.add(Fi))},skyStarry:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.viewer.scene.skyAtmosphere.show=!t},illumination:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.viewer.shadows=t,e.viewer._shadows=t},Sunshine:og},CameraController:X.a,CesiumContainer:X.b,setBillboardDefaultUrl:X.x,getBillboardDefaultUrl:X.j,multiViewportMode:{on:J.e,off:J.d,get2DView:J.a,getSdk:J.c},MouseCoordinate:function(e,t){if(e&&e.viewer){Di=e,(Mi=Object(J.c)().sdkD)||(Mi=Object(Z.a)().sdkD);var i=new b.a(e),n=e.proj;if(t){var o=function(){Pi=requestAnimationFrame(o),l()};xi&&xi.destroy(),Si&&(Si.destroy(),Si=void 0),xi=new te.a(e),Oi=null;var s,a={x:"",y:"",z:""};Ei?s=Ei:((s=document.createElement("div")).style.position="absolute",s.style["z-index"]=777,s.style.color="#ffffff",s.style.left="0px",s.style.top="0px",s.style.width="100%",s.style.height="100%",s.style["font-size"]="12px",s.style["pointer-events"]="none",s.style.background="url(".concat(i.getSourceRootPath(),"/img/cross.png) no-repeat 100% 100%"),s.style["background-size"]="200% 200%",Ei=s),e.viewer.container.appendChild(s),xi.mouse_move((function(t,i){Di=e,Oi=function(e){for(var t=1;t

                经度:").concat(d.lng.toFixed(8),"°

                维度:").concat(d.lat.toFixed(8),"°

                海拔:").concat(d.alt.toFixed(2)," m

                ");break;case"度分":s.innerHTML="

                经度:").concat(n.degreesToDMS(d.lng,!0),"

                维度:").concat(n.degreesToDMS(d.lat,!0),"

                海拔:").concat(d.alt.toFixed(2)," m

                ");break;case"度分秒":s.innerHTML="

                经度:").concat(n.degreesToDMS(d.lng,!1),"

                维度:").concat(n.degreesToDMS(d.lat,!1),"

                海拔:").concat(d.alt.toFixed(2)," m

                ")}else{var v=i.convert([{x:d.lng,y:d.lat,z:d.alt}],"EPSG:4326",function(e,t){var i;switch(e){case"EPSG:32601":var n=Math.round((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}(m,d));a=v.points[0],s.innerHTML="

                x:").concat(a.x.toFixed(2),"

                y:").concat(a.y.toFixed(2),"

                z:").concat(a.z.toFixed(2),"

                ")}}else{var g=Object(X.o)();s.innerHTML="EPSG:4326"===g?"

                经度:-

                维度:-

                海拔:-

                "):"

                x:-

                y:-

                z:-

                ")}}}};o()}else xi&&xi.destroy(),Si&&(Si.destroy(),Si=void 0),Ei&&(e.viewer.container.removeChild(Ei),Ei=void 0),Pi&&cancelAnimationFrame(Pi)}},MouseRightMenu:Ui.a,setGroundCover:X.E,getGroundCover:X.s,setBimPickStatus:X.y,getBimPickStatus:X.k,FlwStatusSwitch:X.c,JwwStatusSwitch:X.d,rotateAround:X.v,getCoordinateSystem:X.o,setCoordinateSystem:X.B,getDMS:X.q,setDMS:X.C,DTH:_e,cameraChanged:X.e,setMaximumRequestsPerServer:X.G,setKeyboardEventActive:X.F,setSkin:function(e){document.documentElement.style.setProperty("--color-sdk-base","rgba(0, 55, 55, 1)")},getTheme:X.u,setTheme:X.H,getCesiumManageIndexexDBState:X.n,setCesiumManageIndexexDBState:X.A,getCesiumIndexedDBMaxSize:X.m,setCesiumIndexedDBMaxSize:X.z,getCesiumIndexedDBCurrentSize:X.l,enablePerspective:X.h,closeRotateAround:X.f,SheetIndexStatusSwitch:Ce.a,SheetIndexShangeScale:Ce.b,splitScreen:{on:Z.c,off:Z.b,setActiveId:Z.d,getSdk:Z.a},Contour:function(e){return vn.apply(this,arguments)},ContourStartDraw:function(e,t){if(e&&e.viewer){if(t)if(!e.viewer.terrainProvider.availability)return"未加载地形数据!";if(Qi=t,Object.keys(mn).forEach((function(e){qi.uniforms[e]=mn[e]})),Qi){if(e.viewer.camera.positionCartographic.height>16360){var i=e.viewer.camera.positionCartographic,n={position:{lng:Cesium.Math.toDegrees(i.longitude),lat:Cesium.Math.toDegrees(i.latitude),alt:16360}};Object(X.i)(e,n,.5)}gn(e)}else yn(e)}},ContourReset:function(){Ki=19,$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"}},Measure:{GetMeasureStatus:function(){return YJ.Measure[gg]},SetMeasureStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[gg]=e},Clear:function(){YJ.Measure.Measures.forEach((function(e){e.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:Po,MeasureProjectionDistance:No,MeasureSlopeDistance:Io,MeasureTyArea:Vo,MeasureTdArea:Jo,MeasureTriangle:Zo,MeasureLocation:$o,MeasureHeight:is,MeasureAngle:ss,MeasureAzimuth:ls},Draw:{DrawPolyline:us,DrawPolygon:Bn,DrawPoint:fs.default,DrawCircle:gs,DrawElliptic:bs,DrawAttackArrow:ws,DrawPincerArrow:_s,DrawStraightArrow:Es,DrawRect:Os,DrawAssemble:Ts,DrawSector:Bs,DrawTakeOff:Uv,DrawThreeRect:ms},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(e){e.destroy()}))},CutFillAnalysis:jn,Submerge:Rn,ViewShed:Vn,CircleViewShed:Zn,SlopeAspect:eo,Profile:io,Visibility:oo,Contour:so,Section:co,TerrainExcavation:po,Flat:yo,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(e){e.destroy()}))}},CoordTransform:Is,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(e){e.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=xv,window.YJ.Obj.BatchLoadObjModel=Pv)}]); \ No newline at end of file diff --git a/src/renderer/public/sdk/custom/css/index.css b/src/renderer/public/sdk/custom/css/index.css index 0d2b75d..7791dc4 100644 --- a/src/renderer/public/sdk/custom/css/index.css +++ b/src/renderer/public/sdk/custom/css/index.css @@ -1503,7 +1503,8 @@ display: flex; padding-left: 0; position: relative; - left: 80px; + left: 50% !important; + transform: translateX(-50%); } .YJ-custom-base-dialog>.content .pagination .pageTips { @@ -1517,6 +1518,8 @@ list-style: none; display: inline-block; user-select: none; + margin: 0 2px !important; + padding: 0 2px !important; } .YJ-custom-base-dialog>.content .pagination .list-items { diff --git a/src/renderer/src/I18n/zh-CN.ts b/src/renderer/src/I18n/zh-CN.ts index 5d1ca3a..aac4c1f 100644 --- a/src/renderer/src/I18n/zh-CN.ts +++ b/src/renderer/src/I18n/zh-CN.ts @@ -162,6 +162,18 @@ export default { graphLabelManage: '军标管理', version: '版本信息' }, + project: { + engineeringSettings: '工程设置', + importRoadNetwork: '路网导入', + locationData: '地点数据', + importPOLI: 'POLI导入', + engineeringData: '工程数据', + engineeringOverrideImport: '工程覆盖导入', + engineeringMergeImports: '工程合并导入', + engineeringExport: '工程导出', + activated: '已启用', + activate: '启用', + }, auths: { authType: '授权状态', authTime: '授权时间', diff --git a/src/renderer/src/I18n/zh-EN.ts b/src/renderer/src/I18n/zh-EN.ts index 4569f7b..53eb044 100644 --- a/src/renderer/src/I18n/zh-EN.ts +++ b/src/renderer/src/I18n/zh-EN.ts @@ -162,6 +162,18 @@ export default { photoManage: 'Icon Management', version: 'Version information' }, + project: { + engineeringSettings: 'Engineering Settings', + importRoadNetwork: 'Import Road Network', + locationData: 'Location Data', + importPOLI: 'Import POLI', + engineeringData: 'Engineering Data', + engineeringOverrideImport: 'Engineering Override Import', + engineeringMergeImports: 'Engineering Merge Imports', + engineeringExport: 'Engineering Export', + activated: 'activated', + activate: 'activate', + }, auths: { authType: 'Authorization status', authTime: 'Authorization time', diff --git a/src/renderer/src/I18n/zh-TW.ts b/src/renderer/src/I18n/zh-TW.ts index a36e7a6..f762107 100644 --- a/src/renderer/src/I18n/zh-TW.ts +++ b/src/renderer/src/I18n/zh-TW.ts @@ -161,6 +161,18 @@ export default { photoManage: '圖標管理', version: '版本信息' }, + project: { + engineeringSettings: '工程設置', + importRoadNetwork: '路網導入', + locationData: '地點數據', + importPOLI: 'POLI導入', + engineeringData: '工程數據', + engineeringOverrideImport: '工程覆蓋導入', + engineeringMergeImports: '工程合並導入', + engineeringExport: '工程導出', + activated: '已啟用', + activate: '啟用', + }, auths: { authType: '授權狀態', authTime: '授權時間', diff --git a/src/renderer/src/assets/styles/global.css b/src/renderer/src/assets/styles/global.css index 6410641..bff9eca 100644 --- a/src/renderer/src/assets/styles/global.css +++ b/src/renderer/src/assets/styles/global.css @@ -826,6 +826,10 @@ img { background: transparent !important; }*/ +.el-message.is-center { + top: calc(5vw + 10px) !important; +} + .el-message--success { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), diff --git a/src/renderer/src/common/initMapData.ts b/src/renderer/src/common/initMapData.ts index 4e08fad..bd5c364 100644 --- a/src/renderer/src/common/initMapData.ts +++ b/src/renderer/src/common/initMapData.ts @@ -228,7 +228,7 @@ export const initMapData = async (type, data, cd) => { if(type === 'textBox') { entityObject.callback = (options) => { let params = structuredClone(options) - let sourceName = '文本框' + let sourceName = params.text ? params.text : '文本框' delete params.name delete params.host let params2 = { 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 21e741e..b7419e4 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 @@ -2,7 +2,7 @@
                - 工程设置 + {{ t('project.engineeringSettings') }}
                @@ -44,7 +44,7 @@
                {{ item.createdAt }}
                - 已启用 + {{ t('project.activated') }} - 启用 + {{ t('project.activate') }} - 删除 + {{ t('general.删除') }}
                @@ -70,7 +70,7 @@
                - 地点数据 + {{ t('project.locationData') }} - POIL导入 + {{ t('project.importPOLI') }}
                @@ -101,7 +101,7 @@
                {{ item.createdAt }}
                - 已启用 + {{ t('project.activated') }} - 启用 + {{ t('project.activate') }} - 删除 + {{ t('general.删除') }}
                @@ -127,7 +127,7 @@
                - 工程数据 + {{ t('project.engineeringData') }} - 工程覆盖导入 + {{ t('project.engineeringOverrideImport') }} - 工程合并导入 + {{ t('project.engineeringMergeImports') }} - 工程导出 + {{ t('project.engineeringExport') }}
                @@ -176,7 +176,8 @@ import { $changeComponentShow } from '@/utils/communication' import { ElMessage, ElMessageBox } from 'element-plus' -import { dialog } from 'electron' +import { useI18n } from 'vue-i18n' +const { t } = useI18n() // 上传状态 const isUploading = ref(false) diff --git a/src/renderer/src/views/components/headers/components/setPup/components/setting.vue b/src/renderer/src/views/components/headers/components/setPup/components/setting.vue index 7811fe6..fc77516 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/setting.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/setting.vue @@ -603,21 +603,23 @@ const sysChange = async () => { } const searchWayChange = (val) => { localStorage.setItem('searchWay', val) + ElMessage.closeAll() ElMessage({ - message: '操作成功', + message: '切换成功', type: 'success' }) } const concurrentWorkloadChange = (val) => { YJ.Global.setMaximumRequestsPerServer(val) localStorage.setItem('concurrentcode', val) + ElMessage.closeAll() ElMessage({ - message: '操作成功', + message: '切换成功', type: 'success' }) } const setView = () => { - let msg = '操作成功' + let msg = '设置成功' let view = YJ.Global.getCurrentView(window.earth) const options = { destination: view.position, @@ -625,6 +627,7 @@ const setView = () => { } YJ.Global.setDefaultView(window.earth, options) localStorage.setItem('defaultView', JSON.stringify(options)) + ElMessage.closeAll() ElMessage({ message: msg, type: 'success' @@ -633,6 +636,7 @@ const setView = () => { const setData = () => { TreeApi.getTreeDefault().then((res) => { if (res.code == 0 || res.code == 200) { + ElMessage.closeAll() ElMessage({ message: '添加完成,2秒后将重启系统', type: 'success' diff --git a/src/renderer/src/views/components/leftSide/leftSideSecond.vue b/src/renderer/src/views/components/leftSide/leftSideSecond.vue index d0441b1..ed45aa6 100644 --- a/src/renderer/src/views/components/leftSide/leftSideSecond.vue +++ b/src/renderer/src/views/components/leftSide/leftSideSecond.vue @@ -270,7 +270,8 @@ const methodMap = { opt: { id: id, name: name, - positions: positions + positions: positions, + material: 1, } }) } @@ -970,11 +971,11 @@ const methodMap = { params: { id: id, path: path[0], - field: 'id', + // field: 'id', name: name, headTables: [], opacity: 1, - color: 'rgba(0,255,184,0.5)', + // color: 'rgba(0,255,184,0.5)', show: true }, id, diff --git a/src/renderer/src/views/components/propertyBox/CircleObject.vue b/src/renderer/src/views/components/propertyBox/CircleObject.vue index bb5eee2..b76c701 100644 --- a/src/renderer/src/views/components/propertyBox/CircleObject.vue +++ b/src/renderer/src/views/components/propertyBox/CircleObject.vue @@ -112,7 +112,9 @@
                - +
                + +
                diff --git a/src/renderer/src/views/components/propertyBox/CircleViewShed.vue b/src/renderer/src/views/components/propertyBox/CircleViewShed.vue index 381fa02..9af869b 100644 --- a/src/renderer/src/views/components/propertyBox/CircleViewShed.vue +++ b/src/renderer/src/views/components/propertyBox/CircleViewShed.vue @@ -60,7 +60,7 @@
                { baseDialog.value?.close() } const sure = (e) => { - YJ.Global.ContourStartDraw(window.earth, show.value) - baseDialog.value?.close() + let value = YJ.Global.ContourStartDraw(window.earth, show.value) + if (value) { + ElMessage.closeAll() + ElMessage({ + message: value, + type: 'error' + }) + } + else { + baseDialog.value?.close() + } } defineExpose({ open diff --git a/src/renderer/src/views/components/propertyBox/attackArrow.vue b/src/renderer/src/views/components/propertyBox/attackArrow.vue index f4fec57..02afee5 100644 --- a/src/renderer/src/views/components/propertyBox/attackArrow.vue +++ b/src/renderer/src/views/components/propertyBox/attackArrow.vue @@ -129,7 +129,9 @@
                - +
                + +
                diff --git a/src/renderer/src/views/components/propertyBox/circleDiffuse.vue b/src/renderer/src/views/components/propertyBox/circleDiffuse.vue index 9dc8a27..f540894 100644 --- a/src/renderer/src/views/components/propertyBox/circleDiffuse.vue +++ b/src/renderer/src/views/components/propertyBox/circleDiffuse.vue @@ -90,7 +90,9 @@ - +
                + +
                diff --git a/src/renderer/src/views/components/propertyBox/curvelineObject.vue b/src/renderer/src/views/components/propertyBox/curvelineObject.vue index 4a5f54b..c8a55dc 100644 --- a/src/renderer/src/views/components/propertyBox/curvelineObject.vue +++ b/src/renderer/src/views/components/propertyBox/curvelineObject.vue @@ -173,7 +173,9 @@ - +
                + +
                diff --git a/src/renderer/src/views/components/propertyBox/graph.vue b/src/renderer/src/views/components/propertyBox/graph.vue index ceb33d7..f1cc729 100644 --- a/src/renderer/src/views/components/propertyBox/graph.vue +++ b/src/renderer/src/views/components/propertyBox/graph.vue @@ -383,7 +383,7 @@ const renderModel = async (model) => { let GroundSvg = new YJ.Obj.GroundSvg(window.earth, option) GroundSvg.load(() => { - GroundSvg.drag(true, (data) => { + GroundSvg.drag(true, null, (data) => { let params = data delete params.attributeType delete params.attribute.ISC @@ -416,6 +416,10 @@ const renderModel = async (model) => { DbOption.isShow = true DbOption.params = JSON.stringify(DbOption.params) cusAddNodes(window.treeObj, DbOption.parentId, [DbOption]) + + if (GroundSvg.options.id) { + (window as any)._entityMap.set(GroundSvg.options.id, GroundSvg) + } }) }) } diff --git a/src/renderer/src/views/components/propertyBox/graphObject.vue b/src/renderer/src/views/components/propertyBox/graphObject.vue index 6ce760c..d5227f9 100644 --- a/src/renderer/src/views/components/propertyBox/graphObject.vue +++ b/src/renderer/src/views/components/propertyBox/graphObject.vue @@ -51,7 +51,7 @@ min="0.001" max="200" step="0.001" - @input="$handleInputLimit" + @input="scaleChange" v-model="entityOptions.scale.x" />
                @@ -62,7 +62,7 @@ min="0.001" max="200" step="0.001" - @input="$handleInputLimit" + @input="scaleChange" v-model="entityOptions.scale.x" /> @@ -77,7 +77,7 @@ min="0.001" max="200" step="0.001" - @input="$handleInputLimit" + @input="scaleChange" v-model="entityOptions.scale.y" />
                @@ -88,7 +88,7 @@ min="0.001" max="200" step="0.001" - @input="$handleInputLimit" + @input="scaleChange" v-model="entityOptions.scale.y" /> @@ -200,7 +200,7 @@