2025-09-02 10:01:05 +08:00
/*! update time: 2025/8/27 00:57:16*/ ! function ( t ) { var e = { } ; function i ( n ) { if ( e [ n ] ) return e [ n ] . exports ; var o = e [ n ] = { i : n , l : ! 1 , exports : { } } ; return t [ n ] . call ( o . exports , o , o . exports , i ) , o . l = ! 0 , o . exports } i . m = t , i . c = e , i . d = function ( t , e , n ) { i . o ( t , e ) || Object . defineProperty ( t , e , { enumerable : ! 0 , get : n } ) } , i . r = function ( t ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( t , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) } , i . t = function ( t , e ) { if ( 1 & e && ( t = i ( t ) ) , 8 & e ) return t ; if ( 4 & e && "object" == typeof t && t && t . _ _esModule ) return t ; var n = Object . create ( null ) ; if ( i . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : t } ) , 2 & e && "string" != typeof t ) for ( var o in t ) i . d ( n , o , function ( e ) { return t [ e ] } . bind ( null , o ) ) ; return n } , i . n = function ( t ) { var e = t && t . _ _esModule ? function ( ) { return t . default } : function ( ) { return t } ; return i . d ( e , "a" , e ) , e } , i . o = function ( t , e ) { return Object . prototype . hasOwnProperty . call ( t , e ) } , i . p = "" , i ( i . s = 22 ) } ( [ function ( t , e , i ) { var n = i ( 23 ) ( ) ; t . exports = n ; try { regeneratorRuntime = n } catch ( t ) { "object" == typeof globalThis ? globalThis . regeneratorRuntime = n : Function ( "r" , "regeneratorRuntime = r" ) ( n ) } } , function ( t , e ) { t . exports = function ( t , e ) { if ( ! ( t instanceof e ) ) throw new TypeError ( "Cannot call a class as a function" ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 18 ) ; function o ( t , e ) { for ( var i = 0 ; i < e . length ; i ++ ) { var o = e [ i ] ; o . enumerable = o . enumerable || ! 1 , o . configurable = ! 0 , "value" in o && ( o . writable = ! 0 ) , Object . defineProperty ( t , n ( o . key ) , o ) } } t . exports = function ( t , e , i ) { return e && o ( t . prototype , e ) , i && o ( t , i ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , t } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e ) { function i ( t , e , i , n , o , s , a ) { try { var r = t [ s ] ( a ) , l = r . value } catch ( t ) { return void i ( t ) } r . done ? e ( l ) : Promise . resolve ( l ) . then ( n , o ) } t . exports = function ( t ) { return function ( ) { var e = this , n = arguments ; return new Promise ( ( function ( o , s ) { var a = t . apply ( e , n ) ; function r ( t ) { i ( a , o , s , r , l , "next" , t ) } function l ( t ) { i ( a , o , s , r , l , "throw" , t ) } r ( void 0 ) } ) ) } } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 15 ) ; t . exports = function ( t , e ) { if ( "function" != typeof e && null !== e ) throw new TypeError ( "Super expression must either be null or a function" ) ; t . prototype = Object . create ( e && e . prototype , { constructor : { value : t , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , e && n ( t , e ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e ) { function i ( e ) { return t . exports = i = Object . setPrototypeOf ? Object . getPrototypeOf . bind ( ) : function ( t ) { return t . _ _proto _ _ || Object . getPrototypeOf ( t ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports , i ( e ) } t . exports = i , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 28 ) , o = i ( 29 ) , s = i ( 16 ) , a = i ( 30 ) ; t . exports = function ( t ) { return n ( t ) || o ( t ) || s ( t ) || a ( ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 11 ) . default , o = i ( 12 ) ; t . exports = function ( t , e ) { if ( e && ( "object" == n ( e ) || "function" == typeof e ) ) return e ; if ( void 0 !== e ) throw new TypeError ( "Derived constructors may only return object or undefined" ) ; return o ( t ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 18 ) ; t . exports = function ( t , e , i ) { return ( e = n ( e ) ) in t ? Object . defineProperty ( t , e , { value : i , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : t [ e ] = i , t } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 19 ) ; function o ( ) { return t . exports = o = "undefined" != typeof Reflect && Reflect . get ? Reflect . get . bind ( ) : function ( t , e , i ) { var o = n ( t , e ) ; if ( o ) { var s = Object . getOwnPropertyDescriptor ( o , e ) ; return s . get ? s . get . call ( arguments . length < 3 ? t : i ) : s . value } } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports , o . apply ( null , arguments ) } t . exports = o , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e , i ) { var n = i ( 24 ) , o = i ( 25 ) , s = i ( 16 ) , a = i ( 26 ) ; t . exports = function ( t , e ) { return n ( t ) || o ( t , e ) || s ( t , e ) || a ( ) } , t . exports . _ _esModule = ! 0 , t . exports . default = t . exports } , function ( t , e ) { function i ( e ) { return t . exports = i = "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( t ) { return typeof t } : function ( t ) { return t && "function" == type
2025-07-03 17:39:09 +08:00
/ * *
* [ js - md5 ] { @ link https : //github.com/emn178/js-md5}
*
* @ namespace md5
* @ version 0.7 . 3
* @ author Chen , Yi - Cyuan [ emn178 @ gmail . com ]
* @ copyright Chen , Yi - Cyuan 2014 - 2017
* @ license MIT
2025-09-02 10:01:05 +08:00
* /!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__(33),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(t){return" [ object Array ] "===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return" object "==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod(" hex ");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var i=OUTPUT_TYPES[e];t[i]=createOutputMethod(i)}return t},nodeWrap=function(method){var crypto=eval(" require ( 'crypto' ) "),Buffer=eval(" require ( 'buffer' ) . Buffer "),nodeMethod=function(t){if(" string "==typeof t)return crypto.createHash(" md5 ").update(t," utf8 ").digest(" hex ");if(null==t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(" md5 ").update(new Buffer(t)).digest(" hex "):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if(" string "!==i){if(" object " !== i ) throw ERROR ; if ( null === t ) throw ERROR ; if ( ARRAY _BUFFER && t . constructor === ArrayBuffer ) t = new Uint8Array ( t ) ; else if ( ! ( Array . isArray ( t ) || ARRAY _BUFFER && ArrayBuffer . isView ( t ) ) ) throw ERROR ; e = ! 0 } for ( var n , o , s = 0 , a = t . length , r = this . blocks , l = this . buffer8 ; s < a ; ) { if ( this . hashed && ( this . hashed = ! 1 , r [ 0 ] = r [ 16 ] , r [ 16 ] = r [ 1 ] = r [ 2 ] = r [ 3 ] = r [ 4 ] = r [ 5 ] = r [ 6 ] = r [ 7 ] = r [ 8 ] = r [ 9 ] = r [ 10 ] = r [ 11 ] = r [ 12 ] = r [ 13 ] = r [ 14 ] = r [ 15 ] = 0 ) , e ) if ( ARRAY _BUFFER ) for ( o = this . start ; s < a && o < 64 ; ++ s ) l [ o ++ ] = t [ s ] ; else for ( o = this . start ; s < a && o < 64 ; ++ s ) r [ o >> 2 ] |= t [ s ] << SHIFT [ 3 & o ++ ] ; else if ( ARRAY _BUFFER ) for ( o = this . start ; s < a && o < 64 ; ++ s ) ( n = t . charCodeAt ( s ) ) < 128 ? l [ o ++ ] = n : n < 2048 ? ( l [ o ++ ] = 192 | n >> 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 & t . 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 < a && o < 64 ; ++ s ) ( n = t . charCodeAt ( s ) ) < 128 ? r [ o >> 2 ] |= n << SHIFT [ 3 & o ++ ] : n < 2048 ? ( r [ o >> 2 ] |= ( 192 | n >> 6 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) : n < 55296 || n >= 57344 ? ( r [ o >> 2 ] |= ( 224 | n >> 12 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 6 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) : ( n = 65536 + ( ( 1023 & n ) << 10 | 1023 & t . charCodeAt ( ++ s ) ) , r [ o >> 2 ] |= ( 240 | n >> 18 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 12 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 6 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) ; this . lastByteIndex = o , this . bytes += o - this . start , o >= 64 ? ( this . start = o - 64 , this . hash ( ) , this . hashed = ! 0 ) : this . start = o } return this . bytes > 4294967295 && ( this . hBytes += th
return e . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 0 ) , e . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( t ) , Cesium . Matrix4 . fromTranslationRotationScale ( e ) } , u = function ( t , i ) { t . _billboard . id = e . options . id ; var n = t . position ; Cesium . Cartesian3 . normalize ( n , l ) , Cesium . Cartesian3 . multiplyByScalar ( l , c * i , l ) , t . velocity = Cesium . Cartesian3 . add ( t . velocity , l , t . velocity ) } , e = 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 ) , r = this . sdk . viewer . camera . positionCartographic . height , this . particleSystem = i . primitives . add ( new Cesium . ParticleSystem ( { show : ! ( r >= 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 : p ( ) , updateCallback : u } ) ) , l = new Cesium . Cartesian3 , c = - 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 } , Pe ( this . sdk , this . options . id ) , this . options . show && Kt ( 0 , this . options . id ) , this . sdk . viewer . camera . changed . addEventListener ( ( function ( ) { if ( h . entity && h . show ) { var t = h . sdk . viewer . camera . positionCartographic . height ; h . entity . show = ! ( t >= 1e7 ) } } ) ) ; case 21 : case "end" : return t . stop ( ) } } ) , t , this ) } ) ) ) , function ( ) { return r . apply ( this , arguments ) } ) } , { key : "flyTo" , value : ( s = o ( ) ( a . a . mark ( ( function t ( ) { var e , i , n , o , s , r , l , c = arguments ; return a . a . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : if ( e = c . length > 0 && void 0 !== c [ 0 ] ? c [ 0 ] : { } , ! this . _error ) { t . next = 3 ; break } return t . abrupt ( "return" ) ; case 3 : if ( pi ( 0 ) , ii ( this . sdk ) , ni ( this . sdk ) , ! ( this . options . customView && this . options . customView . relativePosition && this . options . customView . orientation ) ) { t . 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 , r = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , l = { lng : 0 , lat : 0 } , this . options . position ? l = Iu ( { } , this . options . position ) : this . options . positions ? l = Iu ( { } , this . options . positions [ 0 ] ) : this . options . center ? l = Iu ( { } , this . options . center ) : ( 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" ) ) { t . next = 18 ; break } return t . next = 17 , this . getClampToHeight ( l ) ; case 17 : l . alt = t . sent ; case 18 : n = this . options . customView . relativePosition . lng + l . lng , o = this . options . customView . relativePosition . lat + l . lat , s = this . options . customView . relativePosition . alt + l . alt , r = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , this . sdk . viewer . camera . flyTo ( { destination : r , orientation : i } ) , t . 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 : e . orientation || { heading : Cesium . Math . toRadians ( 0 ) , pitch : Cesium . Math . toRadians ( - 90 ) , roll : Cesium . Math . toRadians ( 0 ) } } ) ; case 26 : case "end" : return t . stop ( ) } } ) , t , this ) } ) ) ) , function ( ) { return s . apply ( this , arguments ) } ) } , { key : "startColor" , get : function ( ) { retur
return i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( t ) , Cesium . Matrix4 . fromTranslationRotationScale ( i ) } , y = function ( t , i ) { t . _billboard . id = e . options . id ; var n = t . position ; Cesium . Cartesian3 . normalize ( n , r ) , Cesium . Cartesian3 . multiplyByScalar ( r , l * i , r ) , t . velocity = Cesium . Cartesian3 . add ( t . velocity , r , t . velocity ) } , e = 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 ) , r = new Cesium . Cartesian3 , l = - 3.8 , c = Cesium . Cartesian3 . fromDegrees ( this . options . start . lng , this . options . start . lat , this . options . start . alt ) , u = 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 = C ( c , u ) ) , p = this . options . end . alt - this . options . start . alt , h = Cesium . Cartesian3 . distance ( c , Cesium . Cartesian3 . fromDegrees ( this . options . end . lng , this . options . end . lat , this . options . start . alt ) ) , d = p ? 2 * p / h : 0 , m = Math . atan ( d ) * ( 180 / Math . PI ) , f = Math . sqrt ( Math . abs ( d ) * h / - l ) , v = - l * f / Math . abs ( Math . cos ( m ) ) , this . options . pitch || 0 === this . options . pitch || ( this . options . pitch = 90 - m ) , this . options . speed || 0 === this . options . speed || ( this . options . speed = v ) , g = this . sdk . viewer . camera . positionCartographic . height , this . particleSystem = i . primitives . add ( new Cesium . ParticleSystem ( { show : ! ( g >= 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 : b ( ) , updateCallback : y } ) ) , 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 } , Pe ( this . sdk , this . options . id ) , this . options . show && Kt ( 0 , this . options . id ) , this . sdk . viewer . camera . changed . addEventListener ( ( function ( ) { if ( w . entity && w . show ) { var t = w . sdk . viewer . camera . positionCartographic . height ; w . entity . show = ! ( t >= 1e7 ) } } ) ) ; case 31 : case "end" : return t . stop ( ) } } ) , t , this ) } ) ) ) , function ( ) { return r . apply ( this , arguments ) } ) } , { key : "flyTo" , value : ( s = o ( ) ( a . a . mark ( ( function t ( ) { var e , i , n , o , s , r , l , c = arguments ; return a . a . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : if ( e = c . length > 0 && void 0 !== c [ 0 ] ? c [ 0 ] : { } , pi ( 0 ) , ii ( this . sdk ) , ni ( this . sdk ) , ! ( this . options . customView && this . options . customView . relativePosition && this . options . customView . orientation ) ) { t . 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 , r = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , l = { lng : 0 , lat : 0 } , this . options . position ? l = Uu ( { } , this . options . position ) : this . options . positions ? l = Uu ( { } , this . options . positions [ 0 ] ) : this . options . line && this . options . line . positions ? l = Uu ( { } , this . options . line . positions [ 0 ] ) : this . options . center ? l = Uu ( { } , this . options . center ) : this . options . start ? l = Uu ( { } , 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" ) ) { t . next = 16 ; break } return t
2025-07-03 17:39:09 +08:00
i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( e ) ; var n = Cesium . Matrix4 . fromTranslationRotationScale ( i ) ; this . particleSystem . emitterModelMatrix = n , this . _elms . heading && this . _elms . heading . forEach ( ( function ( e ) { e . value = Number ( t ) } ) ) } } , { key : "pitch" , get : function ( ) { return this . options . pitch } , set : function ( t ) { this . options . pitch = Number ( t ) ; var e = Cesium . HeadingPitchRoll . fromDegrees ( this . options . heading + 90 , this . options . pitch , 0 ) , i = new Cesium . TranslationRotationScale ; //!!!发射粒子的方向
2025-09-02 10:01:05 +08:00
i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( e ) ; var n = Cesium . Matrix4 . fromTranslationRotationScale ( i ) ; this . particleSystem . emitterModelMatrix = n , this . _elms . pitch && this . _elms . pitch . forEach ( ( function ( e ) { e . value = Number ( t ) } ) ) } } , { key : "edit" , value : ( n = o ( ) ( a . a . mark ( ( function t ( ) { var i , n , o , s , r , l = this , c = arguments ; return a . a . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : if ( i = c . length > 0 && void 0 !== c [ 0 ] && c [ 0 ] , this . originalOptions = this . deepCopyObj ( this . options ) , this . _DialogObject && this . _DialogObject . close && ( this . _DialogObject . close ( ) , this . _DialogObject = null ) , ! i ) { t . next = 20 ; break } return t . next = 7 , new rn ( this . sdk , this . originalOptions , { title : "喷射水柱属性" , left : "180px" , top : "100px" , confirmCallBack : function ( t ) { l . name = l . name . trim ( ) , l . name || ( l . name = "未命名对象" ) , l . originalOptions = l . deepCopyObj ( l . options ) , l . _DialogObject . close ( ) , l . Dialog . confirmCallBack && l . Dialog . confirmCallBack ( l . originalOptions ) , Pe ( l . sdk , l . options . id ) , se ( l . sdk , l . options . id ) } , resetCallBack : function ( ) { l . reset ( ) , l . Dialog . resetCallBack && l . Dialog . resetCallBack ( ) } , removeCallBack : function ( ) { l . Dialog . removeCallBack && l . Dialog . removeCallBack ( ) } , closeCallBack : function ( ) { l . reset ( ) , l . positionEditing = ! 1 , l . Dialog . closeCallBack && l . Dialog . closeCallBack ( ) } , showCallBack : function ( t ) { l . show = t , l . Dialog . showCallBack && l . Dialog . showCallBack ( ) } , translationalCallBack : function ( ) { l . positionEditing = ! l . positionEditing } } , ! 0 ) ; case 7 : this . _DialogObject = t . sent , this . _DialogObject . _element . body . className = this . _DialogObject . _element . body . className + " particle-effects" , ( n = document . createElement ( "div" ) ) . innerHTML = ' \ n < span class = "custom-divider" > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 名 称 < / s p a n > \ n < i n p u t s t y l e = " w i d t h : 1 7 5 p x ; " c l a s s = " i n p u t " t y p e = " t e x t " @ m o d e l = " n a m e " > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < s p a n c l a s s = " c u s t o m - d i v i d e r " > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 经 度 < / s p a n > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 1 8 0 " m a x = " 1 8 0 " @ m o d e l = " l n g " > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 纬 度 < / s p a n > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 9 0 " m a x = " 9 0 " @ m o d e l = " l a t " > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 高 度 < / s p a n > \ n < d i v c l a s s = " i n p u t - n u m b e r i n p u t - n u m b e r - u n i t - 1 " > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 9 9 9 9 9 9 9 " m a x = " 9 9 9 9 9 9 9 9 9 " @ m o d e l = " a l t " > \ n < s p a n c l a s s = " u n i t " > m < / s p a n > \ n < s p a n c l a s s = " a r r o w " > < / s p a n > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 起 始 颜 色 < / s p a n > \ n < d i v c l a s s = " s t a r t _ c o l o r " > < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " s t y l e = " m a r g i n : 0 ; j u s t i f y - c o n t e n t : f l e x - e n d ; " > \ n < s p a n c l a s s = " l a b e l " > 结 束 颜 色 < / s p a n > \ n < d i v c l a s s = " e n d _ c o l o r " > < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < s p a n c l a s s = " c u s t o m - d i v i d e r " > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < s p a n > 速 度 < / s p a n > \ n < i n p u t t y p e = " r a n g e " m a x = " 3 0 " m i n = " 0 " s t e p = " 0 . 1 " @ m o d e l = " s p e e d " > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < s p a n > 发 射 速 率 ( 个 / 秒 ) < / s p a n > \ n < i n p u t t y p e = " r a n g e " m a x = " 1 0 0 " m i n = " 0 " s t e p = " 1 " @ m o d e l = " e m i s s i o n R a t e " > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < d
2025-07-03 17:39:09 +08:00
/ * *
* @ license
* Copyright 2010 - 2024 Three . js Authors
* SPDX - License - Identifier : MIT
2025-09-02 10:01:05 +08:00
* / ( ) ? R e f l e c t . c o n s t r u c t ( e , i | | [ ] , n n ( ) ( t ) . c o n s t r u c t o r ) : e . a p p l y ( t , i ) ) } v a r I d = 1 0 1 4 , R d = 1 0 2 0 , F d = 2 4 0 0 , z d = 2 4 0 1 , H d = " s r g b " , V d = " s r g b - l i n e a r " , G d = " d i s p l a y - p 3 " , U d = " d i s p l a y - p 3 - l i n e a r " , W d = " l i n e a r " , Y d = " s r g b " , J d = " r e c 7 0 9 " , q d = 7 6 8 0 , X d = 3 5 0 4 4 , Z d = 2 e 3 , K d = 2 0 0 1 , $ d = f u n c t i o n ( ) { r e t u r n _ ( ) ( ( f u n c t i o n t ( ) { k ( ) ( t h i s , t ) } ) , [ { k e y : " a d d E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( t , e ) { v o i d 0 = = = t h i s . _ l i s t e n e r s & & ( t h i s . _ l i s t e n e r s = { } ) ; v a r i = t h i s . _ l i s t e n e r s ; v o i d 0 = = = i [ t ] & & ( i [ t ] = [ ] ) , - 1 = = = i [ t ] . i n d e x O f ( e ) & & i [ t ] . p u s h ( e ) } } , { k e y : " h a s E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( t , e ) { i f ( v o i d 0 = = = t h i s . _ l i s t e n e r s ) r e t u r n ! 1 ; v a r i = t h i s . _ l i s t e n e r s ; r e t u r n v o i d 0 ! = = i [ t ] & & - 1 ! = = i [ t ] . i n d e x O f ( e ) } } , { k e y : " r e m o v e E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( t , e ) { i f ( v o i d 0 ! = = t h i s . _ l i s t e n e r s ) { v a r i = t h i s . _ l i s t e n e r s [ t ] ; i f ( v o i d 0 ! = = i ) { v a r n = i . i n d e x O f ( e ) ; - 1 ! = = n & & i . s p l i c e ( n , 1 ) } } } } , { k e y : " d i s p a t c h E v e n t " , v a l u e : f u n c t i o n ( t ) { i f ( v o i d 0 ! = = t h i s . _ l i s t e n e r s ) { v a r e = t h i s . _ l i s t e n e r s [ t . t y p e ] ; i f ( v o i d 0 ! = = e ) { t . t a r g e t = t h i s ; f o r ( v a r i = e . s l i c e ( 0 ) , n = 0 , o = i . l e n g t h ; n < o ; n + + ) i [ n ] . c a l l ( t h i s , t ) ; t . t a r g e t = n u l l } } } } ] ) } ( ) , Q d = [ " 0 0 " , " 0 1 " , " 0 2 " , " 0 3 " , " 0 4 " , " 0 5 " , " 0 6 " , " 0 7 " , " 0 8 " , " 0 9 " , " 0 a " , " 0 b " , " 0 c " , " 0 d " , " 0 e " , " 0 f " , " 1 0 " , " 1 1 " , " 1 2 " , " 1 3 " , " 1 4 " , " 1 5 " , " 1 6 " , " 1 7 " , " 1 8 " , " 1 9 " , " 1 a " , " 1 b " , " 1 c " , " 1 d " , " 1 e " , " 1 f " , " 2 0 " , " 2 1 " , " 2 2 " , " 2 3 " , " 2 4 " , " 2 5 " , " 2 6 " , " 2 7 " , " 2 8 " , " 2 9 " , " 2 a " , " 2 b " , " 2 c " , " 2 d " , " 2 e " , " 2 f " , " 3 0 " , " 3 1 " , " 3 2 " , " 3 3 " , " 3 4 " , " 3 5 " , " 3 6 " , " 3 7 " , " 3 8 " , " 3 9 " , " 3 a " , " 3 b " , " 3 c " , " 3 d " , " 3 e " , " 3 f " , " 4 0 " , " 4 1 " , " 4 2 " , " 4 3 " , " 4 4 " , " 4 5 " , " 4 6 " , " 4 7 " , " 4 8 " , " 4 9 " , " 4 a " , " 4 b " , " 4 c " , " 4 d " , " 4 e " , " 4 f " , " 5 0 " , " 5 1 " , " 5 2 " , " 5 3 " , " 5 4 " , " 5 5 " , " 5 6 " , " 5 7 " , " 5 8 " , " 5 9 " , " 5 a " , " 5 b " , " 5 c " , " 5 d " , " 5 e " , " 5 f " , " 6 0 " , " 6 1 " , " 6 2 " , " 6 3 " , " 6 4 " , " 6 5 " , " 6 6 " , " 6 7 " , " 6 8 " , " 6 9 " , " 6 a " , " 6 b " , " 6 c " , " 6 d " , " 6 e " , " 6 f " , " 7 0 " , " 7 1 " , " 7 2 " , " 7 3 " , " 7 4 " , " 7 5 " , " 7 6 " , " 7 7 " , " 7 8 " , " 7 9 " , " 7 a " , " 7 b " , " 7 c " , " 7 d " , " 7 e " , " 7 f " , " 8 0 " , " 8 1 " , " 8 2 " , " 8 3 " , " 8 4 " , " 8 5 " , " 8 6 " , " 8 7 " , " 8 8 " , " 8 9 " , " 8 a " , " 8 b " , " 8 c " , " 8 d " , " 8 e " , " 8 f " , " 9 0 " , " 9 1 " , " 9 2 " , " 9 3 " , " 9 4 " , " 9 5 " , " 9 6 " , " 9 7 " , " 9 8 " , " 9 9 " , " 9 a " , " 9 b " , " 9 c " , " 9 d " , " 9 e " , " 9 f " , " a 0 " , " a 1 " , " a 2 " , " a 3 " , " a 4 " , " a 5 " , " a 6 " , " a 7 " , " a 8 " , " a 9 " , " a a " , " a b " , " a c " , " a d " , " a e " , " a f " , " b 0 " , " b 1 " , " b 2 " , " b 3 " , " b 4 " , " b 5 " , " b 6 " , " b 7 " , " b 8 " , " b 9 " , " b a " , " b b " , " b c " , " b d " , " b e " , " b f " , " c 0 " , " c 1 " , " c 2 " , " c 3 " , " c 4 " , " c 5 " , " c 6 " , " c 7 " , " c 8 " , " c 9 " , " c a " , " c b " , " c c " , " c d " , " c e " , " c f " , " d 0 " , " d 1 " , " d 2 " , " d 3 " , " d 4 " , " d 5 " , " d 6 " , " d 7 " , " d 8 " , " d 9 " , " d a " , " d b " , " d c " , " d d " , " d e " , " d f " , " e 0 " , " e 1 " , " e 2 " , " e 3 " , " e 4 " , " e 5 " , " e 6 " , " e 7 " , " e 8 " , " e 9 " , " e a " , " e b " , " e c " , " e d " , " e e " , " e f " , " f 0 " , " f 1 " , " f 2 " , " f 3 " , " f 4 " , " f 5 " , " f 6 " , " f 7 " , " f 8 " , " f 9 " , " f a " , " f b " , " f c " , " f d " , " f e " , " f f " ] , t m = M a t h . P I / 1 8 0 ; M a t h . P I ; f u n c t i o n e m ( ) { v a r t = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , e = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , i = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , n = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 ; r e t u r n ( Q d [ 2 5 5 & t ] + Q d [ t > > 8 & 2 5 5 ] + Q d [ t > > 1 6 & 2 5 5 ] + Q d [ t > > 2 4 & 2 5 5 ] + " - " + Q d [ 2 5 5 & e ] + Q d [ e > > 8 & 2 5 5 ] + " - " + Q d [ e > > 1 6 & 1 5 | 6 4 ] + Q d [ e > > 2 4 & 2 5 5 ] + " - " + Q d [ 6 3 & i | 1 2 8 ] + Q d [ i > > 8 & 2 5 5 ] + " - " + Q d [ i > > 1 6 & 2 5 5 ] + Q d [ i > > 2 4 & 2 5 5 ] + Q d [ 2 5 5 & n ] + Q d [ n > > 8 & 2 5 5 ] + Q d [ n > > 1 6 & 2 5 5 ] + Q d [ n > > 2 4 & 2 5 5 ] ) . t o L o w e r C a s e ( ) } f u n c t i o n i m ( t , e , i ) { r e t u r n M a t h . m a x ( e , M a t h . m i n ( i , t ) ) } f u n c t i o n n m ( t , e ) { r e t u r n ( t % e + e ) % e } f u n c t i o n o m ( t , e , i ) { r e t u r n ( 1 - i ) * t + i * e } f u n c t i o n s m ( t , e ) { s w i t c h ( e . c o n s t r u c t o r ) { c a s e F l o a t 3 2 A r r a y : r e t u r n t ; c a s e U i n t 3 2 A r r a y : r e t u r n t / 4 2 9 4 9 6 7 2 9 5 ; c a s e U i n t 1 6 A r r a y : r e t u r n t / 6 5 5 3 5 ; c a s e U i n t 8 A r r a y : r e t u r n t / 2 5 5 ; c a s e I n t 3 2 A r r a y : r e t u r n M a t h . m a x ( t / 2 1 4 7 4 8 3 6 4 7 , - 1 ) ; c a s e I n t 1 6 A r r a y : r e t u r n M a t h . m a x ( t / 3 2 7 6 7 , - 1 ) ; c a s e I n t 8 A r r a y : r e t u r n M a t h . m a x ( t / 1 2 7 , - 1 ) ; d e f a u l t : t h r o w n e w E r r o r ( " I n v a l i d c o m p o n e n t t y p e . " ) } } f u n c t i o n a m ( t , e ) { s w i t c h ( e . c o n s t r u c t o r ) { c a s e F l o a t 3 2 A r r a y : r e t u r n t ; c a s e U i n t 3 2 A r r a y : r e t u r n M a t h . r o u n d ( 4 2 9 4 9 6 7 2 9 5 * t ) ; c a s e U i n t 1 6 A r r a y : r e t u r n M a t h . r o u n d ( 6 5 5 3 5 * t ) ; c a s e U i n t 8 A r r a y : r e t u r n M a t h . r o u n d ( 2 5 5 * t ) ; c a s e I n t 3 2 A r r a y : r e t u r n M a t h . r o u n d ( 2 1 4 7 4 8 3 6 4 7 * t ) ; c a s e I n t 1 6 A r r a y : r e t u r n M a t h . r o u n d ( 3 2 7 6 7 * t ) ; c a s e I n t 8 A r r a y : r e t u r n M a t h . r o u n d ( 1 2 7 * t ) ; d e f a u l t : t h r o w n e w E r r o r ( " I n v a l i d c o m p o n e n t t y p e . " ) } } v a r r m = f u n c t i o n ( ) { r e t u r n _ ( ) ( ( f u n c t i o n t ( ) { v a r e = a r g u m e n t s . l e n g t h > 0 & & v o i d 0 ! = = a r g u m e n t s [ 0 ] ? a r g u m e n t s [ 0 ] : 0 , i = a r g u m e n t s . l e n g t h > 1 & & v o i d 0 ! = = a r g u m e n t s [ 1 ] ? a r g u m e n t s [ 1 ] : 0 ; k ( ) ( t h i s , t ) , t . p r o t o t y p e . i s V e c t o r 2 = ! 0 , t h i s . x = e , t h i s . y = i } ) , [ { k e y : " w i d t h " , g e t : f u n c t i o n ( ) { r e t u r n t h i s . x } , s e t : f u n c t i o n ( t ) { t h i s . x = t } } , { k e y : " h e i g h t " , g e t : f u n c t i o n ( ) { r e t u r n t h i s . y } , s e t : f u n c t i o n ( t ) { t h i s . y = t } } , { k e y : " s e t " , v a l u e : f u n c t i o n ( t , e ) { r e t u r n t h i s . x = t , t h i s . y = e , t h i s } } , { k e y : " s e t S c a l a r " , v a l u e : f u n c t i o n ( t ) { r e t u r n t h i s . x = t , t h i s . y = t , t h i s } } , { k e y : " s e t X " , v a l u e : f u n c t i o n ( t ) { r e t u r n t h i s . x = t , t h i s } } , { k e y : " s e t Y " , v a l u e : f