From 51003a93bb7861389cfab9cf8e6cf3f46b7f778a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Mon, 22 Dec 2025 11:07:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/java/app/application.yml | 2 +- resources/java/app/yjearth.jar | Bin 120786085 -> 120787093 bytes .../src/assets/basis/basis_transcoder.js | 19 ++++++++++++++++++ .../src/assets/basis/basis_transcoder.wasm | Bin 0 -> 527333 bytes .../setPup/components/graphLabelManage.vue | 7 +++++++ .../setPup/components/modelManage.vue | 2 ++ .../setPup/components/photoManage.vue | 8 ++++++++ .../components/propertyBox/ScreenShot.vue | 1 + 8 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/renderer/src/assets/basis/basis_transcoder.js create mode 100644 src/renderer/src/assets/basis/basis_transcoder.wasm diff --git a/resources/java/app/application.yml b/resources/java/app/application.yml index 2739916..f3d2098 100644 --- a/resources/java/app/application.yml +++ b/resources/java/app/application.yml @@ -1,6 +1,6 @@ server: host: 127.0.0.1 - port: 8859 + port: 8809 path: C:\Users\Administrator\AppData\Roaming\dzsp_shijingjun_offline_Y_save poi: global: diff --git a/resources/java/app/yjearth.jar b/resources/java/app/yjearth.jar index 08ec724fe739b83f02efb70ad346b7257b56dd8b..5fd394c7cf108d4aecca6f84bf48f60427e0feeb 100644 GIT binary patch delta 119660 zcma%i1yGz@(cMG;j?tcGn?bf~b zqo5e3p6-6SPoM6?^mz+XM)?wRM)^=xiTRA#Q`>b+Rxxks(PkrzT*Cq5u3X zGN1#X{_GIs09o$b?y^dhf2>|gQkbX0OS%MOP@_?yDN!Hon_ShHf}*x_*hl}M-0FCuKZu((-l^6YRh|BC+=R@Nj~ zIJm5;{|f#g3!M_I(h0x?8ztlvF5m9|BK6O=a45m(J%E2sk>61eJ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Q+8(4PZ(`6|Y^Zmc6+ zao}<7*%ETWUGRu!2k4-oaBDBqQz|WlX9rnNI*1aUzh|fDpq=)I+Zru%^j@R&VNJfH zOssFDX{GVC_?WKAg?A}mQ_ zNp#Ry(=YBcn?Xme>>IJ7_M324%j|V$weE{r22oqPziClI5Ea|FDlfGxx%x}3-=a@+ zUTc3ZODk1ksYhAbTv8=Aw+y0s*<0h&&x?t4qLOyuw_H|I?0uHGtqMr7wKV^EXmc0M z^YbF+N;_7icpfW9)`TwlYM&1O@1o8pL&)5VH?jd8Im#J=))aor18vC+K? zSQTRt8YoU*P{xWaWM!=U*fM^?>UoG2&w&f`%?hz{VsCI-xEsjawL!WT+Ae#mSh2W+ zRjhni3Z3v3j^<;>>7aqO&&ys`#%7lEx|fwRZ-P$DP$Sk#PoD_+S;6k%u~MumbR`!{ zw1SbI$!sefG}Zn&e-Uk;q%5*3!75tA!8XTNTCtv|S6X?q2{<8Gd|(^sAVP?`lcGbq z{WEqMJd$y5e6CvM z;qmBiCD>7&32AiiO$W8KnarM+)zmKXv#{hm)^^NenLTkiUGxG* zYTzwtJxvDjxH5odrCxE=V4QE zR2aQs>QzI^xRQEEY)z4FsPZY!Mwq3f~T~m;B79yDZF!Dnan2 z^*bHZ7Q|?Foeo-SQ_hvvasTtNhR#7WU$mN6MrW+-1r#pHSC*&f$RG@MVvp&d2tVbl n$En1;tOOl+Yv*8nIcAHSu7Gw~LR}Zuht3wVp6n7pPaXab9L3S@ diff --git a/src/renderer/src/assets/basis/basis_transcoder.js b/src/renderer/src/assets/basis/basis_transcoder.js new file mode 100644 index 0000000..6f02a4a --- /dev/null +++ b/src/renderer/src/assets/basis/basis_transcoder.js @@ -0,0 +1,19 @@ + +var BASIS = (() => { + var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined; + if (typeof __filename != 'undefined') _scriptName ||= __filename; + return ( +function(moduleArg = {}) { + var moduleRtn; + +var Module=moduleArg;var readyPromiseResolve,readyPromiseReject;var readyPromise=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";if(ENVIRONMENT_IS_NODE){}var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require("fs");var nodePath=require("path");scriptDirectory=__dirname+"/";readBinary=filename=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);var ret=fs.readFileSync(filename);return ret};readAsync=(filename,binary=true)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);return new Promise((resolve,reject)=>{fs.readFile(filename,binary?undefined:"utf8",(err,data)=>{if(err)reject(err);else resolve(binary?data.buffer:data)})})};if(!Module["thisProgram"]&&process.argv.length>1){thisProgram=process.argv[1].replace(/\\/g,"/")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptName){scriptDirectory=_scriptName}if(scriptDirectory.startsWith("blob:")){scriptDirectory=""}else{scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}{if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=url=>{if(isFileURI(url)){return new Promise((reject,resolve)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){resolve(xhr.response)}reject(xhr.status)};xhr.onerror=reject;xhr.send(null)})}return fetch(url,{credentials:"same-origin"}).then(response=>{if(response.ok){return response.arrayBuffer()}return Promise.reject(new Error(response.status+" : "+response.url))})}}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var wasmMemory;var ABORT=false;var EXITSTATUS;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module["HEAP8"]=HEAP8=new Int8Array(b);Module["HEAP16"]=HEAP16=new Int16Array(b);Module["HEAPU8"]=HEAPU8=new Uint8Array(b);Module["HEAPU16"]=HEAPU16=new Uint16Array(b);Module["HEAP32"]=HEAP32=new Int32Array(b);Module["HEAPU32"]=HEAPU32=new Uint32Array(b);Module["HEAPF32"]=HEAPF32=new Float32Array(b);Module["HEAPF64"]=HEAPF64=new Float64Array(b)}var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;Module["monitorRunDependencies"]?.(runDependencies)}function removeRunDependency(id){runDependencies--;Module["monitorRunDependencies"]?.(runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){Module["onAbort"]?.(what);what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";var isDataURI=filename=>filename.startsWith(dataURIPrefix);var isFileURI=filename=>filename.startsWith("file://");function findWasmBinary(){var f="basis_transcoder.wasm";if(!isDataURI(f)){return locateFile(f)}return f}var wasmBinaryFile;function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(binaryFile){if(!wasmBinary){return readAsync(binaryFile).then(response=>new Uint8Array(response),()=>getBinarySync(binaryFile))}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(receiver,reason=>{err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(binaryFile,{credentials:"same-origin"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(`wasm streaming compile failed: ${reason}`);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function getWasmImports(){return{a:wasmImports}}function createWasm(){var info=getWasmImports();function receiveInstance(instance,module){wasmExports=instance.exports;wasmMemory=wasmExports["L"];updateMemoryViews();wasmTable=wasmExports["P"];addOnInit(wasmExports["M"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err(`Module.instantiateWasm callback failed with error: ${e}`);readyPromiseReject(e)}}if(!wasmBinaryFile)wasmBinaryFile=findWasmBinary();instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var noExitRuntime=Module["noExitRuntime"]||true;class ExceptionInfo{constructor(excPtr){this.excPtr=excPtr;this.ptr=excPtr-24}set_type(type){HEAPU32[this.ptr+4>>2]=type}get_type(){return HEAPU32[this.ptr+4>>2]}set_destructor(destructor){HEAPU32[this.ptr+8>>2]=destructor}get_destructor(){return HEAPU32[this.ptr+8>>2]}set_caught(caught){caught=caught?1:0;HEAP8[this.ptr+12]=caught}get_caught(){return HEAP8[this.ptr+12]!=0}set_rethrown(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13]=rethrown}get_rethrown(){return HEAP8[this.ptr+13]!=0}init(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor)}set_adjusted_ptr(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr}get_adjusted_ptr(){return HEAPU32[this.ptr+16>>2]}get_exception_ptr(){var isPointer=___cxa_is_pointer_type(this.get_type());if(isPointer){return HEAPU32[this.excPtr>>2]}var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.excPtr}}var exceptionLast=0;var uncaughtExceptionCount=0;var ___cxa_throw=(ptr,type,destructor)=>{var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw exceptionLast};var __abort_js=()=>{abort("")};var structRegistrations={};var runDestructors=destructors=>{while(destructors.length){var ptr=destructors.pop();var del=destructors.pop();del(ptr)}};function readPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var InternalError;var throwInternalError=message=>{throw new InternalError(message)};var whenDependentTypesAreResolved=(myTypes,dependentTypes,getTypeConverters)=>{myTypes.forEach(function(type){typeDependencies[type]=dependentTypes});function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count")}for(var i=0;i{if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt]}else{unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[]}awaitingDependencies[dt].push(()=>{typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters)}})}});if(0===unregisteredTypes.length){onComplete(typeConverters)}};var __embind_finalize_value_object=structType=>{var reg=structRegistrations[structType];delete structRegistrations[structType];var rawConstructor=reg.rawConstructor;var rawDestructor=reg.rawDestructor;var fieldRecords=reg.fields;var fieldTypes=fieldRecords.map(field=>field.getterReturnType).concat(fieldRecords.map(field=>field.setterArgumentType));whenDependentTypesAreResolved([structType],fieldTypes,fieldTypes=>{var fields={};fieldRecords.forEach((field,i)=>{var fieldName=field.fieldName;var getterReturnType=fieldTypes[i];var getter=field.getter;var getterContext=field.getterContext;var setterArgumentType=fieldTypes[i+fieldRecords.length];var setter=field.setter;var setterContext=field.setterContext;fields[fieldName]={read:ptr=>getterReturnType["fromWireType"](getter(getterContext,ptr)),write:(ptr,o)=>{var destructors=[];setter(setterContext,ptr,setterArgumentType["toWireType"](destructors,o));runDestructors(destructors)}}});return[{name:reg.name,fromWireType:ptr=>{var rv={};for(var i in fields){rv[i]=fields[i].read(ptr)}rawDestructor(ptr);return rv},toWireType:(destructors,o)=>{for(var fieldName in fields){if(!(fieldName in o)){throw new TypeError(`Missing field: "${fieldName}"`)}}var ptr=rawConstructor();for(fieldName in fields){fields[fieldName].write(ptr,o[fieldName])}if(destructors!==null){destructors.push(rawDestructor,ptr)}return ptr},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:rawDestructor}]})};var __embind_register_bigint=(primitiveType,name,size,minRange,maxRange)=>{};var embind_init_charCodes=()=>{var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i)}embind_charCodes=codes};var embind_charCodes;var readLatin1String=ptr=>{var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]]}return ret};var BindingError;var throwBindingError=message=>{throw new BindingError(message)};function sharedRegisterType(rawType,registeredInstance,options={}){var name=registeredInstance.name;if(!rawType){throwBindingError(`type "${name}" must have a positive integer typeid pointer`)}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else{throwBindingError(`Cannot register type '${name}' twice`)}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach(cb=>cb())}}function registerType(rawType,registeredInstance,options={}){if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}return sharedRegisterType(rawType,registeredInstance,options)}var GenericWireTypeSize=8;var __embind_register_bool=(rawType,name,trueValue,falseValue)=>{name=readLatin1String(name);registerType(rawType,{name:name,fromWireType:function(wt){return!!wt},toWireType:function(destructors,o){return o?trueValue:falseValue},argPackAdvance:GenericWireTypeSize,readValueFromPointer:function(pointer){return this["fromWireType"](HEAPU8[pointer])},destructorFunction:null})};var shallowCopyInternalPointer=o=>({count:o.count,deleteScheduled:o.deleteScheduled,preservePointerOnDelete:o.preservePointerOnDelete,ptr:o.ptr,ptrType:o.ptrType,smartPtr:o.smartPtr,smartPtrType:o.smartPtrType});var throwInstanceAlreadyDeleted=obj=>{function getInstanceTypeName(handle){return handle.$$.ptrType.registeredClass.name}throwBindingError(getInstanceTypeName(obj)+" instance already deleted")};var finalizationRegistry=false;var detachFinalizer=handle=>{};var runDestructor=$$=>{if($$.smartPtr){$$.smartPtrType.rawDestructor($$.smartPtr)}else{$$.ptrType.registeredClass.rawDestructor($$.ptr)}};var releaseClassHandle=$$=>{$$.count.value-=1;var toDelete=0===$$.count.value;if(toDelete){runDestructor($$)}};var downcastPointer=(ptr,ptrClass,desiredClass)=>{if(ptrClass===desiredClass){return ptr}if(undefined===desiredClass.baseClass){return null}var rv=downcastPointer(ptr,ptrClass,desiredClass.baseClass);if(rv===null){return null}return desiredClass.downcast(rv)};var registeredPointers={};var getInheritedInstanceCount=()=>Object.keys(registeredInstances).length;var getLiveInheritedInstances=()=>{var rv=[];for(var k in registeredInstances){if(registeredInstances.hasOwnProperty(k)){rv.push(registeredInstances[k])}}return rv};var deletionQueue=[];var flushPendingDeletes=()=>{while(deletionQueue.length){var obj=deletionQueue.pop();obj.$$.deleteScheduled=false;obj["delete"]()}};var delayFunction;var setDelayFunction=fn=>{delayFunction=fn;if(deletionQueue.length&&delayFunction){delayFunction(flushPendingDeletes)}};var init_embind=()=>{Module["getInheritedInstanceCount"]=getInheritedInstanceCount;Module["getLiveInheritedInstances"]=getLiveInheritedInstances;Module["flushPendingDeletes"]=flushPendingDeletes;Module["setDelayFunction"]=setDelayFunction};var registeredInstances={};var getBasestPointer=(class_,ptr)=>{if(ptr===undefined){throwBindingError("ptr should not be undefined")}while(class_.baseClass){ptr=class_.upcast(ptr);class_=class_.baseClass}return ptr};var getInheritedInstance=(class_,ptr)=>{ptr=getBasestPointer(class_,ptr);return registeredInstances[ptr]};var makeClassHandle=(prototype,record)=>{if(!record.ptrType||!record.ptr){throwInternalError("makeClassHandle requires ptr and ptrType")}var hasSmartPtrType=!!record.smartPtrType;var hasSmartPtr=!!record.smartPtr;if(hasSmartPtrType!==hasSmartPtr){throwInternalError("Both smartPtrType and smartPtr must be specified")}record.count={value:1};return attachFinalizer(Object.create(prototype,{$$:{value:record,writable:true}}))};function RegisteredPointer_fromWireType(ptr){var rawPointer=this.getPointee(ptr);if(!rawPointer){this.destructor(ptr);return null}var registeredInstance=getInheritedInstance(this.registeredClass,rawPointer);if(undefined!==registeredInstance){if(0===registeredInstance.$$.count.value){registeredInstance.$$.ptr=rawPointer;registeredInstance.$$.smartPtr=ptr;return registeredInstance["clone"]()}else{var rv=registeredInstance["clone"]();this.destructor(ptr);return rv}}function makeDefaultHandle(){if(this.isSmartPointer){return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:rawPointer,smartPtrType:this,smartPtr:ptr})}else{return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:ptr})}}var actualType=this.registeredClass.getActualType(rawPointer);var registeredPointerRecord=registeredPointers[actualType];if(!registeredPointerRecord){return makeDefaultHandle.call(this)}var toType;if(this.isConst){toType=registeredPointerRecord.constPointerType}else{toType=registeredPointerRecord.pointerType}var dp=downcastPointer(rawPointer,this.registeredClass,toType.registeredClass);if(dp===null){return makeDefaultHandle.call(this)}if(this.isSmartPointer){return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp,smartPtrType:this,smartPtr:ptr})}else{return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp})}}var attachFinalizer=handle=>{if("undefined"===typeof FinalizationRegistry){attachFinalizer=handle=>handle;return handle}finalizationRegistry=new FinalizationRegistry(info=>{releaseClassHandle(info.$$)});attachFinalizer=handle=>{var $$=handle.$$;var hasSmartPtr=!!$$.smartPtr;if(hasSmartPtr){var info={$$:$$};finalizationRegistry.register(handle,info,handle)}return handle};detachFinalizer=handle=>finalizationRegistry.unregister(handle);return attachFinalizer(handle)};var init_ClassHandle=()=>{Object.assign(ClassHandle.prototype,{isAliasOf(other){if(!(this instanceof ClassHandle)){return false}if(!(other instanceof ClassHandle)){return false}var leftClass=this.$$.ptrType.registeredClass;var left=this.$$.ptr;other.$$=other.$$;var rightClass=other.$$.ptrType.registeredClass;var right=other.$$.ptr;while(leftClass.baseClass){left=leftClass.upcast(left);leftClass=leftClass.baseClass}while(rightClass.baseClass){right=rightClass.upcast(right);rightClass=rightClass.baseClass}return leftClass===rightClass&&left===right},clone(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this)}if(this.$$.preservePointerOnDelete){this.$$.count.value+=1;return this}else{var clone=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));clone.$$.count.value+=1;clone.$$.deleteScheduled=false;return clone}},delete(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this)}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion")}detachFinalizer(this);releaseClassHandle(this.$$);if(!this.$$.preservePointerOnDelete){this.$$.smartPtr=undefined;this.$$.ptr=undefined}},isDeleted(){return!this.$$.ptr},deleteLater(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this)}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion")}deletionQueue.push(this);if(deletionQueue.length===1&&delayFunction){delayFunction(flushPendingDeletes)}this.$$.deleteScheduled=true;return this}})};function ClassHandle(){}var createNamedFunction=(name,body)=>Object.defineProperty(body,"name",{value:name});var ensureOverloadTable=(proto,methodName,humanName)=>{if(undefined===proto[methodName].overloadTable){var prevFunc=proto[methodName];proto[methodName]=function(...args){if(!proto[methodName].overloadTable.hasOwnProperty(args.length)){throwBindingError(`Function '${humanName}' called with an invalid number of arguments (${args.length}) - expects one of (${proto[methodName].overloadTable})!`)}return proto[methodName].overloadTable[args.length].apply(this,args)};proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc}};var exposePublicSymbol=(name,value,numArguments)=>{if(Module.hasOwnProperty(name)){if(undefined===numArguments||undefined!==Module[name].overloadTable&&undefined!==Module[name].overloadTable[numArguments]){throwBindingError(`Cannot register public name '${name}' twice`)}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError(`Cannot register multiple overloads of a function with the same number of arguments (${numArguments})!`)}Module[name].overloadTable[numArguments]=value}else{Module[name]=value;if(undefined!==numArguments){Module[name].numArguments=numArguments}}};var char_0=48;var char_9=57;var makeLegalFunctionName=name=>{if(undefined===name){return"_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return`_${name}`}return name};function RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast){this.name=name;this.constructor=constructor;this.instancePrototype=instancePrototype;this.rawDestructor=rawDestructor;this.baseClass=baseClass;this.getActualType=getActualType;this.upcast=upcast;this.downcast=downcast;this.pureVirtualFunctions=[]}var upcastPointer=(ptr,ptrClass,desiredClass)=>{while(ptrClass!==desiredClass){if(!ptrClass.upcast){throwBindingError(`Expected null or instance of ${desiredClass.name}, got an instance of ${ptrClass.name}`)}ptr=ptrClass.upcast(ptr);ptrClass=ptrClass.baseClass}return ptr};function constNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError(`null is not a valid ${this.name}`)}return 0}if(!handle.$$){throwBindingError(`Cannot pass "${embindRepr(handle)}" as a ${this.name}`)}if(!handle.$$.ptr){throwBindingError(`Cannot pass deleted object as a pointer of type ${this.name}`)}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function genericPointerToWireType(destructors,handle){var ptr;if(handle===null){if(this.isReference){throwBindingError(`null is not a valid ${this.name}`)}if(this.isSmartPointer){ptr=this.rawConstructor();if(destructors!==null){destructors.push(this.rawDestructor,ptr)}return ptr}else{return 0}}if(!handle||!handle.$$){throwBindingError(`Cannot pass "${embindRepr(handle)}" as a ${this.name}`)}if(!handle.$$.ptr){throwBindingError(`Cannot pass deleted object as a pointer of type ${this.name}`)}if(!this.isConst&&handle.$$.ptrType.isConst){throwBindingError(`Cannot convert argument of type ${handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name} to parameter type ${this.name}`)}var handleClass=handle.$$.ptrType.registeredClass;ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);if(this.isSmartPointer){if(undefined===handle.$$.smartPtr){throwBindingError("Passing raw pointer to smart pointer is illegal")}switch(this.sharingPolicy){case 0:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr}else{throwBindingError(`Cannot convert argument of type ${handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name} to parameter type ${this.name}`)}break;case 1:ptr=handle.$$.smartPtr;break;case 2:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr}else{var clonedHandle=handle["clone"]();ptr=this.rawShare(ptr,Emval.toHandle(()=>clonedHandle["delete"]()));if(destructors!==null){destructors.push(this.rawDestructor,ptr)}}break;default:throwBindingError("Unsupporting sharing policy")}}return ptr}function nonConstNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError(`null is not a valid ${this.name}`)}return 0}if(!handle.$$){throwBindingError(`Cannot pass "${embindRepr(handle)}" as a ${this.name}`)}if(!handle.$$.ptr){throwBindingError(`Cannot pass deleted object as a pointer of type ${this.name}`)}if(handle.$$.ptrType.isConst){throwBindingError(`Cannot convert argument of type ${handle.$$.ptrType.name} to parameter type ${this.name}`)}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}var init_RegisteredPointer=()=>{Object.assign(RegisteredPointer.prototype,{getPointee(ptr){if(this.rawGetPointee){ptr=this.rawGetPointee(ptr)}return ptr},destructor(ptr){this.rawDestructor?.(ptr)},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,fromWireType:RegisteredPointer_fromWireType})};function RegisteredPointer(name,registeredClass,isReference,isConst,isSmartPointer,pointeeType,sharingPolicy,rawGetPointee,rawConstructor,rawShare,rawDestructor){this.name=name;this.registeredClass=registeredClass;this.isReference=isReference;this.isConst=isConst;this.isSmartPointer=isSmartPointer;this.pointeeType=pointeeType;this.sharingPolicy=sharingPolicy;this.rawGetPointee=rawGetPointee;this.rawConstructor=rawConstructor;this.rawShare=rawShare;this.rawDestructor=rawDestructor;if(!isSmartPointer&®isteredClass.baseClass===undefined){if(isConst){this["toWireType"]=constNoSmartPtrRawPointerToWireType;this.destructorFunction=null}else{this["toWireType"]=nonConstNoSmartPtrRawPointerToWireType;this.destructorFunction=null}}else{this["toWireType"]=genericPointerToWireType}}var replacePublicSymbol=(name,value,numArguments)=>{if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistent public symbol")}if(undefined!==Module[name].overloadTable&&undefined!==numArguments){Module[name].overloadTable[numArguments]=value}else{Module[name]=value;Module[name].argCount=numArguments}};var dynCallLegacy=(sig,ptr,args)=>{sig=sig.replace(/p/g,"i");var f=Module["dynCall_"+sig];return f(ptr,...args)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=funcPtr=>{var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var dynCall=(sig,ptr,args=[])=>{if(sig.includes("j")){return dynCallLegacy(sig,ptr,args)}var rtn=getWasmTableEntry(ptr)(...args);return rtn};var getDynCaller=(sig,ptr)=>(...args)=>dynCall(sig,ptr,args);var embind__requireFunction=(signature,rawFunction)=>{signature=readLatin1String(signature);function makeDynCaller(){if(signature.includes("j")){return getDynCaller(signature,rawFunction)}return getWasmTableEntry(rawFunction)}var fp=makeDynCaller();if(typeof fp!="function"){throwBindingError(`unknown function pointer with signature ${signature}: ${rawFunction}`)}return fp};var extendError=(baseErrorType,errorName)=>{var errorClass=createNamedFunction(errorName,function(message){this.name=errorName;this.message=message;var stack=new Error(message).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"")}});errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=function(){if(this.message===undefined){return this.name}else{return`${this.name}: ${this.message}`}};return errorClass};var UnboundTypeError;var getTypeName=type=>{var ptr=___getTypeName(type);var rv=readLatin1String(ptr);_free(ptr);return rv};var throwUnboundTypeError=(message,types)=>{var unboundTypes=[];var seen={};function visit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true}types.forEach(visit);throw new UnboundTypeError(`${message}: `+unboundTypes.map(getTypeName).join([", "]))};var __embind_register_class=(rawType,rawPointerType,rawConstPointerType,baseClassRawType,getActualTypeSignature,getActualType,upcastSignature,upcast,downcastSignature,downcast,name,destructorSignature,rawDestructor)=>{name=readLatin1String(name);getActualType=embind__requireFunction(getActualTypeSignature,getActualType);upcast&&=embind__requireFunction(upcastSignature,upcast);downcast&&=embind__requireFunction(downcastSignature,downcast);rawDestructor=embind__requireFunction(destructorSignature,rawDestructor);var legalFunctionName=makeLegalFunctionName(name);exposePublicSymbol(legalFunctionName,function(){throwUnboundTypeError(`Cannot construct ${name} due to unbound types`,[baseClassRawType])});whenDependentTypesAreResolved([rawType,rawPointerType,rawConstPointerType],baseClassRawType?[baseClassRawType]:[],base=>{base=base[0];var baseClass;var basePrototype;if(baseClassRawType){baseClass=base.registeredClass;basePrototype=baseClass.instancePrototype}else{basePrototype=ClassHandle.prototype}var constructor=createNamedFunction(name,function(...args){if(Object.getPrototypeOf(this)!==instancePrototype){throw new BindingError("Use 'new' to construct "+name)}if(undefined===registeredClass.constructor_body){throw new BindingError(name+" has no accessible constructor")}var body=registeredClass.constructor_body[args.length];if(undefined===body){throw new BindingError(`Tried to invoke ctor of ${name} with invalid number of parameters (${args.length}) - expected (${Object.keys(registeredClass.constructor_body).toString()}) parameters instead!`)}return body.apply(this,args)});var instancePrototype=Object.create(basePrototype,{constructor:{value:constructor}});constructor.prototype=instancePrototype;var registeredClass=new RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast);if(registeredClass.baseClass){registeredClass.baseClass.__derivedClasses??=[];registeredClass.baseClass.__derivedClasses.push(registeredClass)}var referenceConverter=new RegisteredPointer(name,registeredClass,true,false,false);var pointerConverter=new RegisteredPointer(name+"*",registeredClass,false,false,false);var constPointerConverter=new RegisteredPointer(name+" const*",registeredClass,false,true,false);registeredPointers[rawType]={pointerType:pointerConverter,constPointerType:constPointerConverter};replacePublicSymbol(legalFunctionName,constructor);return[referenceConverter,pointerConverter,constPointerConverter]})};var heap32VectorToArray=(count,firstElement)=>{var array=[];for(var i=0;i>2])}return array};function usesDestructorStack(argTypes){for(var i=1;i0?", ":"")+argsListWired}invokerFnBody+=(returns||isAsync?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n"}else{for(var i=isClassMethodFunc?1:2;i{var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);invoker=embind__requireFunction(invokerSignature,invoker);whenDependentTypesAreResolved([],[rawClassType],classType=>{classType=classType[0];var humanName=`constructor ${classType.name}`;if(undefined===classType.registeredClass.constructor_body){classType.registeredClass.constructor_body=[]}if(undefined!==classType.registeredClass.constructor_body[argCount-1]){throw new BindingError(`Cannot register multiple constructors with identical number of parameters (${argCount-1}) for class '${classType.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`)}classType.registeredClass.constructor_body[argCount-1]=()=>{throwUnboundTypeError(`Cannot construct ${classType.name} due to unbound types`,rawArgTypes)};whenDependentTypesAreResolved([],rawArgTypes,argTypes=>{argTypes.splice(1,0,null);classType.registeredClass.constructor_body[argCount-1]=craftInvokerFunction(humanName,argTypes,null,invoker,rawConstructor);return[]});return[]})};var getFunctionName=signature=>{signature=signature.trim();const argsIndex=signature.indexOf("(");if(argsIndex!==-1){return signature.substr(0,argsIndex)}else{return signature}};var __embind_register_class_function=(rawClassType,methodName,argCount,rawArgTypesAddr,invokerSignature,rawInvoker,context,isPureVirtual,isAsync)=>{var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);methodName=readLatin1String(methodName);methodName=getFunctionName(methodName);rawInvoker=embind__requireFunction(invokerSignature,rawInvoker);whenDependentTypesAreResolved([],[rawClassType],classType=>{classType=classType[0];var humanName=`${classType.name}.${methodName}`;if(methodName.startsWith("@@")){methodName=Symbol[methodName.substring(2)]}if(isPureVirtual){classType.registeredClass.pureVirtualFunctions.push(methodName)}function unboundTypesHandler(){throwUnboundTypeError(`Cannot call ${humanName} due to unbound types`,rawArgTypes)}var proto=classType.registeredClass.instancePrototype;var method=proto[methodName];if(undefined===method||undefined===method.overloadTable&&method.className!==classType.name&&method.argCount===argCount-2){unboundTypesHandler.argCount=argCount-2;unboundTypesHandler.className=classType.name;proto[methodName]=unboundTypesHandler}else{ensureOverloadTable(proto,methodName,humanName);proto[methodName].overloadTable[argCount-2]=unboundTypesHandler}whenDependentTypesAreResolved([],rawArgTypes,argTypes=>{var memberFunction=craftInvokerFunction(humanName,argTypes,classType,rawInvoker,context,isAsync);if(undefined===proto[methodName].overloadTable){memberFunction.argCount=argCount-2;proto[methodName]=memberFunction}else{proto[methodName].overloadTable[argCount-2]=memberFunction}return[]});return[]})};var __embind_register_constant=(name,type,value)=>{name=readLatin1String(name);whenDependentTypesAreResolved([],[type],type=>{type=type[0];Module[name]=type["fromWireType"](value);return[]})};var emval_freelist=[];var emval_handles=[];var __emval_decref=handle=>{if(handle>9&&0===--emval_handles[handle+1]){emval_handles[handle]=undefined;emval_freelist.push(handle)}};var count_emval_handles=()=>emval_handles.length/2-5-emval_freelist.length;var init_emval=()=>{emval_handles.push(0,1,undefined,1,null,1,true,1,false,1);Module["count_emval_handles"]=count_emval_handles};var Emval={toValue:handle=>{if(!handle){throwBindingError("Cannot use deleted val. handle = "+handle)}return emval_handles[handle]},toHandle:value=>{switch(value){case undefined:return 2;case null:return 4;case true:return 6;case false:return 8;default:{const handle=emval_freelist.pop()||emval_handles.length;emval_handles[handle]=value;emval_handles[handle+1]=1;return handle}}}};var EmValType={name:"emscripten::val",fromWireType:handle=>{var rv=Emval.toValue(handle);__emval_decref(handle);return rv},toWireType:(destructors,value)=>Emval.toHandle(value),argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:null};var __embind_register_emval=rawType=>registerType(rawType,EmValType);var enumReadValueFromPointer=(name,width,signed)=>{switch(width){case 1:return signed?function(pointer){return this["fromWireType"](HEAP8[pointer])}:function(pointer){return this["fromWireType"](HEAPU8[pointer])};case 2:return signed?function(pointer){return this["fromWireType"](HEAP16[pointer>>1])}:function(pointer){return this["fromWireType"](HEAPU16[pointer>>1])};case 4:return signed?function(pointer){return this["fromWireType"](HEAP32[pointer>>2])}:function(pointer){return this["fromWireType"](HEAPU32[pointer>>2])};default:throw new TypeError(`invalid integer width (${width}): ${name}`)}};var __embind_register_enum=(rawType,name,size,isSigned)=>{name=readLatin1String(name);function ctor(){}ctor.values={};registerType(rawType,{name:name,constructor:ctor,fromWireType:function(c){return this.constructor.values[c]},toWireType:(destructors,c)=>c.value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:enumReadValueFromPointer(name,size,isSigned),destructorFunction:null});exposePublicSymbol(name,ctor)};var requireRegisteredType=(rawType,humanName)=>{var impl=registeredTypes[rawType];if(undefined===impl){throwBindingError(`${humanName} has unknown type ${getTypeName(rawType)}`)}return impl};var __embind_register_enum_value=(rawEnumType,name,enumValue)=>{var enumType=requireRegisteredType(rawEnumType,"enum");name=readLatin1String(name);var Enum=enumType.constructor;var Value=Object.create(enumType.constructor.prototype,{value:{value:enumValue},constructor:{value:createNamedFunction(`${enumType.name}_${name}`,function(){})}});Enum.values[enumValue]=Value;Enum[name]=Value};var embindRepr=v=>{if(v===null){return"null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else{return""+v}};var floatReadValueFromPointer=(name,width)=>{switch(width){case 4:return function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])};case 8:return function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])};default:throw new TypeError(`invalid float width (${width}): ${name}`)}};var __embind_register_float=(rawType,name,size)=>{name=readLatin1String(name);registerType(rawType,{name:name,fromWireType:value=>value,toWireType:(destructors,value)=>value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:floatReadValueFromPointer(name,size),destructorFunction:null})};var __embind_register_function=(name,argCount,rawArgTypesAddr,signature,rawInvoker,fn,isAsync)=>{var argTypes=heap32VectorToArray(argCount,rawArgTypesAddr);name=readLatin1String(name);name=getFunctionName(name);rawInvoker=embind__requireFunction(signature,rawInvoker);exposePublicSymbol(name,function(){throwUnboundTypeError(`Cannot call ${name} due to unbound types`,argTypes)},argCount-1);whenDependentTypesAreResolved([],argTypes,argTypes=>{var invokerArgsArray=[argTypes[0],null].concat(argTypes.slice(1));replacePublicSymbol(name,craftInvokerFunction(name,invokerArgsArray,null,rawInvoker,fn,isAsync),argCount-1);return[]})};var integerReadValueFromPointer=(name,width,signed)=>{switch(width){case 1:return signed?pointer=>HEAP8[pointer]:pointer=>HEAPU8[pointer];case 2:return signed?pointer=>HEAP16[pointer>>1]:pointer=>HEAPU16[pointer>>1];case 4:return signed?pointer=>HEAP32[pointer>>2]:pointer=>HEAPU32[pointer>>2];default:throw new TypeError(`invalid integer width (${width}): ${name}`)}};var __embind_register_integer=(primitiveType,name,size,minRange,maxRange)=>{name=readLatin1String(name);if(maxRange===-1){maxRange=4294967295}var fromWireType=value=>value;if(minRange===0){var bitshift=32-8*size;fromWireType=value=>value<>>bitshift}var isUnsignedType=name.includes("unsigned");var checkAssertions=(value,toTypeName)=>{};var toWireType;if(isUnsignedType){toWireType=function(destructors,value){checkAssertions(value,this.name);return value>>>0}}else{toWireType=function(destructors,value){checkAssertions(value,this.name);return value}}registerType(primitiveType,{name:name,fromWireType:fromWireType,toWireType:toWireType,argPackAdvance:GenericWireTypeSize,readValueFromPointer:integerReadValueFromPointer(name,size,minRange!==0),destructorFunction:null})};var __embind_register_memory_view=(rawType,dataTypeIndex,name)=>{var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){var size=HEAPU32[handle>>2];var data=HEAPU32[handle+4>>2];return new TA(HEAP8.buffer,data,size)}name=readLatin1String(name);registerType(rawType,{name:name,fromWireType:decodeMemoryView,argPackAdvance:GenericWireTypeSize,readValueFromPointer:decodeMemoryView},{ignoreDuplicateRegistrations:true})};var stringToUTF8Array=(str,heap,outIdx,maxBytesToWrite)=>{if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx};var stringToUTF8=(str,outPtr,maxBytesToWrite)=>stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);var lengthBytesUTF8=str=>{var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else{len+=3}}return len};var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder:undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str="";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):"";var __embind_register_std_string=(rawType,name)=>{name=readLatin1String(name);var stdStringIsUTF8=name==="std::string";registerType(rawType,{name:name,fromWireType(value){var length=HEAPU32[value>>2];var payload=value+4;var str;if(stdStringIsUTF8){var decodeStartPtr=payload;for(var i=0;i<=length;++i){var currentBytePtr=payload+i;if(i==length||HEAPU8[currentBytePtr]==0){var maxRead=currentBytePtr-decodeStartPtr;var stringSegment=UTF8ToString(decodeStartPtr,maxRead);if(str===undefined){str=stringSegment}else{str+=String.fromCharCode(0);str+=stringSegment}decodeStartPtr=currentBytePtr+1}}}else{var a=new Array(length);for(var i=0;i>2]=length;if(stdStringIsUTF8&&valueIsOfTypeString){stringToUTF8(value,ptr,length+1)}else{if(valueIsOfTypeString){for(var i=0;i255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits")}HEAPU8[ptr+i]=charCode}}else{for(var i=0;i{var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder)return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr));var str="";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit)}return str};var stringToUTF16=(str,outPtr,maxBytesToWrite)=>{maxBytesToWrite??=2147483647;if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr};var lengthBytesUTF16=str=>str.length*2;var UTF32ToString=(ptr,maxBytesToRead)=>{var i=0;var str="";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}return str};var stringToUTF32=(str,outPtr,maxBytesToWrite)=>{maxBytesToWrite??=2147483647;if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr};var lengthBytesUTF32=str=>{var len=0;for(var i=0;i=55296&&codeUnit<=57343)++i;len+=4}return len};var __embind_register_std_wstring=(rawType,charSize,name)=>{name=readLatin1String(name);var decodeString,encodeString,readCharAt,lengthBytesUTF;if(charSize===2){decodeString=UTF16ToString;encodeString=stringToUTF16;lengthBytesUTF=lengthBytesUTF16;readCharAt=pointer=>HEAPU16[pointer>>1]}else if(charSize===4){decodeString=UTF32ToString;encodeString=stringToUTF32;lengthBytesUTF=lengthBytesUTF32;readCharAt=pointer=>HEAPU32[pointer>>2]}registerType(rawType,{name:name,fromWireType:value=>{var length=HEAPU32[value>>2];var str;var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i*charSize;if(i==length||readCharAt(currentBytePtr)==0){var maxReadBytes=currentBytePtr-decodeStartPtr;var stringSegment=decodeString(decodeStartPtr,maxReadBytes);if(str===undefined){str=stringSegment}else{str+=String.fromCharCode(0);str+=stringSegment}decodeStartPtr=currentBytePtr+charSize}}_free(value);return str},toWireType:(destructors,value)=>{if(!(typeof value=="string")){throwBindingError(`Cannot pass non-string to C++ string type ${name}`)}var length=lengthBytesUTF(value);var ptr=_malloc(4+length+charSize);HEAPU32[ptr>>2]=length/charSize;encodeString(value,ptr+4,length+charSize);if(destructors!==null){destructors.push(_free,ptr)}return ptr},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(ptr){_free(ptr)}})};var __embind_register_value_object=(rawType,name,constructorSignature,rawConstructor,destructorSignature,rawDestructor)=>{structRegistrations[rawType]={name:readLatin1String(name),rawConstructor:embind__requireFunction(constructorSignature,rawConstructor),rawDestructor:embind__requireFunction(destructorSignature,rawDestructor),fields:[]}};var __embind_register_value_object_field=(structType,fieldName,getterReturnType,getterSignature,getter,getterContext,setterArgumentType,setterSignature,setter,setterContext)=>{structRegistrations[structType].fields.push({fieldName:readLatin1String(fieldName),getterReturnType:getterReturnType,getter:embind__requireFunction(getterSignature,getter),getterContext:getterContext,setterArgumentType:setterArgumentType,setter:embind__requireFunction(setterSignature,setter),setterContext:setterContext})};var __embind_register_void=(rawType,name)=>{name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,argPackAdvance:0,fromWireType:()=>undefined,toWireType:(destructors,o)=>undefined})};var __emscripten_memcpy_js=(dest,src,num)=>HEAPU8.copyWithin(dest,src,src+num);var emval_returnValue=(returnType,destructorsRef,handle)=>{var destructors=[];var result=returnType["toWireType"](destructors,handle);if(destructors.length){HEAPU32[destructorsRef>>2]=Emval.toHandle(destructors)}return result};var __emval_as=(handle,returnType,destructorsRef)=>{handle=Emval.toValue(handle);returnType=requireRegisteredType(returnType,"emval::as");return emval_returnValue(returnType,destructorsRef,handle)};var emval_methodCallers=[];var __emval_call=(caller,handle,destructorsRef,args)=>{caller=emval_methodCallers[caller];handle=Emval.toValue(handle);return caller(null,handle,destructorsRef,args)};var emval_symbols={};var getStringOrSymbol=address=>{var symbol=emval_symbols[address];if(symbol===undefined){return readLatin1String(address)}return symbol};var __emval_call_method=(caller,objHandle,methodName,destructorsRef,args)=>{caller=emval_methodCallers[caller];objHandle=Emval.toValue(objHandle);methodName=getStringOrSymbol(methodName);return caller(objHandle,objHandle[methodName],destructorsRef,args)};var emval_get_global=()=>{if(typeof globalThis=="object"){return globalThis}return function(){return Function}()("return this")()};var __emval_get_global=name=>{if(name===0){return Emval.toHandle(emval_get_global())}else{name=getStringOrSymbol(name);return Emval.toHandle(emval_get_global()[name])}};var emval_addMethodCaller=caller=>{var id=emval_methodCallers.length;emval_methodCallers.push(caller);return id};var emval_lookupTypes=(argCount,argTypes)=>{var a=new Array(argCount);for(var i=0;i>2],"parameter "+i)}return a};var reflectConstruct=Reflect.construct;var __emval_get_method_caller=(argCount,argTypes,kind)=>{var types=emval_lookupTypes(argCount,argTypes);var retType=types.shift();argCount--;var functionBody=`return function (obj, func, destructorsRef, args) {\n`;var offset=0;var argsList=[];if(kind===0){argsList.push("obj")}var params=["retType"];var args=[retType];for(var i=0;it.name).join(", ")}) => ${retType.name}>`;return emval_addMethodCaller(createNamedFunction(functionName,invokerFunction))};var __emval_get_module_property=name=>{name=getStringOrSymbol(name);return Emval.toHandle(Module[name])};var __emval_get_property=(handle,key)=>{handle=Emval.toValue(handle);key=Emval.toValue(key);return Emval.toHandle(handle[key])};var __emval_incref=handle=>{if(handle>9){emval_handles[handle+1]+=1}};var __emval_new_cstring=v=>Emval.toHandle(getStringOrSymbol(v));var __emval_run_destructors=handle=>{var destructors=Emval.toValue(handle);runDestructors(destructors);__emval_decref(handle)};var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var _fd_close=fd=>52;var convertI32PairToI53Checked=(lo,hi)=>hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN;function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};InternalError=Module["InternalError"]=class InternalError extends Error{constructor(message){super(message);this.name="InternalError"}};embind_init_charCodes();BindingError=Module["BindingError"]=class BindingError extends Error{constructor(message){super(message);this.name="BindingError"}};init_ClassHandle();init_embind();init_RegisteredPointer();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");init_emval();var wasmImports={K:___cxa_throw,G:__abort_js,s:__embind_finalize_value_object,C:__embind_register_bigint,I:__embind_register_bool,w:__embind_register_class,v:__embind_register_class_constructor,d:__embind_register_class_function,m:__embind_register_constant,H:__embind_register_emval,o:__embind_register_enum,a:__embind_register_enum_value,A:__embind_register_float,i:__embind_register_function,l:__embind_register_integer,f:__embind_register_memory_view,z:__embind_register_std_string,u:__embind_register_std_wstring,t:__embind_register_value_object,c:__embind_register_value_object_field,J:__embind_register_void,F:__emscripten_memcpy_js,n:__emval_as,q:__emval_call,p:__emval_call_method,b:__emval_decref,x:__emval_get_global,j:__emval_get_method_caller,r:__emval_get_module_property,g:__emval_get_property,k:__emval_incref,h:__emval_new_cstring,e:__emval_run_destructors,D:_emscripten_resize_heap,E:_fd_close,B:_fd_seek,y:_fd_write};var wasmExports=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports["M"])();var ___getTypeName=a0=>(___getTypeName=wasmExports["N"])(a0);var _malloc=a0=>(_malloc=wasmExports["O"])(a0);var _free=a0=>(_free=wasmExports["Q"])(a0);var ___cxa_is_pointer_type=a0=>(___cxa_is_pointer_type=wasmExports["R"])(a0);var dynCall_jiji=Module["dynCall_jiji"]=(a0,a1,a2,a3,a4)=>(dynCall_jiji=Module["dynCall_jiji"]=wasmExports["S"])(a0,a1,a2,a3,a4);var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);Module["onRuntimeInitialized"]?.();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}run();moduleRtn=readyPromise; + + + return moduleRtn; +} +); +})(); +if (typeof exports === 'object' && typeof module === 'object') + module.exports = BASIS; +else if (typeof define === 'function' && define['amd']) + define([], () => BASIS); diff --git a/src/renderer/src/assets/basis/basis_transcoder.wasm b/src/renderer/src/assets/basis/basis_transcoder.wasm new file mode 100644 index 0000000000000000000000000000000000000000..bc64682561438128604ac550da774f8cc6617460 GIT binary patch literal 527333 zcmeFa3z%Kkb>DZ+x%bYUxv#nNz+iyEW1mBi7!nVHBsc&EB!M#|KoAd7vSgcf{Gbyj zmhX&Z%@CfbiA0Pjgput$Xqsu1)M?o^-)F}STQzZ8Cw3azbrL(a6I!wow@G7IP7^h4 z9VSf^H<88u{%fCe?zwmF0FcGVY7&BT_daXC)?Rz-w!+FPuQ2fWYASDo~u79L4gU49<5DJRjhUSvV2v-lM3wH+X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kO9os8_ zT>^iyPY3OwTZm$G3Mk8u3gW&NLI zkNv z#RHpu{~P(Fz1{`?P(G=qi9`9My$&Bid!4IBKB*arL;0kpblu3O*+R{U)g(8TO3=Dk zD8FIC-x--*P}8=nQLh~FT{ZGa^-3JdC)F!)D4$fX#FS66p?am!f$|s1C)KM9^%=-# zpk67zlus8f+#nD5C`g{e%7RrAM+$#`#3Kucvix_puVpWwacD@&!_J!zJH+Bx;PX*hjKIo$IP-?KDoq-ySIJ7g=>|F2{ zft`Q}8p??Sor?(?!ifVr0~7wzfE)Y0xo8%&t^C#`;{DbvXb44i1P!4$pon>X8zyK7 z#kTzUgqKA5bk)cwRT6P1pTV6$)a+b{BB*nbr9%!`>Re>$P(zjuGh`e24Hr#0*`|IPqsaByLQ4w1xx z!G#GrG!oNck!+ybG2!x~f_B7)u@jgp$se%^C9eSR{w6{UxWqrWGwOTzdYZmbC<4(bYVW_He655%*-w?A2&X~EFqzD zW@brV{^U%$@RNDtdmddAVB_(93T^P`_+7BBZ(K>qpI4yx?GV2y^tbp$xU!M+_xM@= zHhyAeW>I1Olv29<^+%Q{{bh(h|F7w{M_F>GP023BH{_ZtpblxB{r_$o?Q3qMFcTM) z$Nzb2fpvchZjaid6yK#*!LEiLhSor9p+A+iJuc@XFB8U1&Y4m=&Q~)#l$QZWgX*UY z>ve^@5=x#Da4&&-e9-?PxM@V9IGdonpnE&qjeJf|m zw13yPZpZpm7xYPorL@*Vp|m!@y%Bm8+62)@LSLkKo1vQV9s_TIs-Qn@pZZ2g{=e(4 z{=RVrd7y36XJ;@EkHZ~Gd#gVLck{8`C*a-&JqZmhP0T6J&MBfUM^WgSh#PU}GaGg} z>{HOw(9qHZT(z5s+dDbM#f8QG?fMXh(xlJ!VEpZH2jjQ*{QK#MXqvihq0A8^Q literal 0 HcmV?d00001 diff --git a/src/renderer/src/views/components/headers/components/setPup/components/graphLabelManage.vue b/src/renderer/src/views/components/headers/components/setPup/components/graphLabelManage.vue index 336f3be..b9aa44d 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/graphLabelManage.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/graphLabelManage.vue @@ -502,6 +502,7 @@ const addModelDB = (path) => { if (res.code == 0 || res.code == 200) { ElMessage.success('导入成功') modelList.value = [] + currModelList.value = [] getModelList() } }) @@ -668,7 +669,9 @@ const toggleExpand = (row: any) => { // loadModelsByType(row.id) contextMenu.visible && (contextMenu.visible = false) } +let clickTypeId = null //存储点击数据,用来删除时更新右侧列表 const getModelListByType = (id) => { + clickTypeId = id let formData = new FormData() formData.append('militaryTypeId', id) formData.append('name', photoName.value) @@ -835,6 +838,10 @@ const handleDeleteType = (row: TypeNode) => { if (res.code == 0 || res.code == 200) { ElMessage.success('删除成功') getModelList() + if (row.id === clickTypeId) { + modelList.value = [] + currModelList.value = [] + } } }) }) diff --git a/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue b/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue index 84e1a8c..0caebae 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue @@ -551,6 +551,7 @@ const addModelDB = (path) => { if (res.code == 0 || res.code == 200) { ElMessage.success('导入成功') modelList.value = [] + currModelList.value = [] getModelList() } }) @@ -889,6 +890,7 @@ const handleDeleteType = (row: TypeNode) => { //如果删除当前选中数据 清空右侧列表 if (row.id === clickTypeId) { modelList.value = [] + currModelList.value = [] } } }) diff --git a/src/renderer/src/views/components/headers/components/setPup/components/photoManage.vue b/src/renderer/src/views/components/headers/components/setPup/components/photoManage.vue index edbaa48..1baba07 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/photoManage.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/photoManage.vue @@ -592,6 +592,8 @@ const addModelDB = (path) => { PhotoApi.importModelDB(formData).then((res) => { if (res.code == 0 || res.code == 200) { ElMessage.success('导入成功') + modelList.value = [] + currModelList.value = [] getModelList() } }) @@ -760,12 +762,14 @@ const toggleExpand = (row: any) => { // loadModelsByType(row.id) contextMenu.visible && (contextMenu.visible = false) } +let clickTypeId = null //存储点击数据,用来删除时更新右侧列表 const getModelListByType = async (id) => { if (activeIndex.value === 0) { modelList.value = threePhoto } else if (activeIndex.value === 1) { modelList.value = ordinaryPhoto } else { + clickTypeId = id let formData = new FormData() formData.append('iconTypeId', id) formData.append('name', photoName.value) @@ -924,6 +928,10 @@ const handleDeleteType = (row: TypeNode) => { PhotoApi.delModelType(formData).then((res) => { if (res.code == 0 || res.code == 200) { ElMessage.success('删除成功') + if (row.id === clickTypeId) { + currModelList.value = [] + modelList.value = [] + } getModelList() } }) diff --git a/src/renderer/src/views/components/propertyBox/ScreenShot.vue b/src/renderer/src/views/components/propertyBox/ScreenShot.vue index e0d4f93..17d9898 100644 --- a/src/renderer/src/views/components/propertyBox/ScreenShot.vue +++ b/src/renderer/src/views/components/propertyBox/ScreenShot.vue @@ -45,6 +45,7 @@ max="100" min="0" step="0.01" + disabled v-model="progressVal" /> From 969427af3a6472652885c3cc2cfe8b5b031940aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Mon, 22 Dec 2025 16:09:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/app/target/graphhopper/properties | Bin 32868 -> 32868 bytes src/renderer/public/sdk/YJEarth.min.js | 12 +- .../setPup/components/modelManage.vue | 1 + .../components/propertyBox/RoutePlanning.vue | 12 +- .../components/propertyBox/ScreenShot.vue | 4 +- .../views/components/propertyBox/imagePop.vue | 28 +- .../views/components/propertyBox/viewGlb.js | 260 +++++++++--------- src/renderer/src/views/home/index.vue | 19 +- 8 files changed, 175 insertions(+), 161 deletions(-) diff --git a/resources/java/app/target/graphhopper/properties b/resources/java/app/target/graphhopper/properties index 56aa30ea29e13caa25324bb67feb94771fc1a8b8..1cdedbf48ac068bc3192e8c47a3f6c05ec4728e9 100644 GIT binary patch delta 24 fcmaFT!1SbnX+kr%kx__&xs{2bm7&4LzH9XWZ}AA& delta 24 fcmaFT!1SbnX+kr%p;3r|g_WVDm7(dzzH9XWa4QJn diff --git a/src/renderer/public/sdk/YJEarth.min.js b/src/renderer/public/sdk/YJEarth.min.js index 8017909..8729239 100644 --- a/src/renderer/public/sdk/YJEarth.min.js +++ b/src/renderer/public/sdk/YJEarth.min.js @@ -1,4 +1,4 @@ -/*! update time: 2025/12/19 12:34:37*/!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=42)}([function(e,t,i){var n=i(43)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(37);function o(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,t=Array.from(h[e].keys());t.forEach((function(t){document.documentElement.style.setProperty(t,h[e].get(t))}))}h[0].set("--color-sdk-base-rgb","0, 255, 255"),h[0].set("--color-sdk-gradual","rgb(0, 255, 255) 6.25%, rgb(0, 200, 255) 100%"),h[0].set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%"),h[0].set("--color-sdk-text-shadow","rgba(20, 118, 255, 1)"),h[1].set("--color-sdk-base-rgb","42, 200, 251"),h[1].set("--color-sdk-gradual","rgb(42, 200, 251) 6.25%, rgb(42, 145, 251) 100%"),h[1].set("--color-sdk-bg-gradual","#2ac8fb33 0%, #2ac8fb00 100%"),h[1].set("--color-sdk-text-shadow","rgba(20, 63, 255, 1)"),h[2].set("--color-sdk-base-rgb","187, 26, 41"),h[2].set("--color-sdk-gradual","rgb(187, 26, 41) 6.25%, rgb(236, 20, 20) 100%"),h[2].set("--color-sdk-bg-gradual","#bb1a2933 0%, #bb1a2900 100%"),h[2].set("--color-sdk-text-shadow","rgba(246, 8, 30, 1)");var m=i(8),f=i(11),v=i(24),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&&"EPSG:4490"!==w){t.next=16;break}t.t0=k||"度",t.next="度"===t.t0?7:"度分"===t.t0?9:"度分秒"===t.t0?11:13;break;case 7:return p.innerHTML="\n

\n
纬度:").concat(Number(n.lat.toFixed(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||"EPSG:4490"===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.getSdk)().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||"EPSG:4490"===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.setActiveViewer)(e),Object(f.setActiveViewer)(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){"use strict";i.r(t),i.d(t,"on",(function(){return P})),i.d(t,"off",(function(){return O})),i.d(t,"syncData",(function(){return N})),i.d(t,"syncEntities",(function(){return j})),i.d(t,"syncDataSources",(function(){return A})),i.d(t,"syncPrimitives",(function(){return F})),i.d(t,"get2DView",(function(){return W})),i.d(t,"get3DView",(function(){return U})),i.d(t,"setActiveViewer",(function(){return J})),i.d(t,"getSdk",(function(){return q}));var n=i(18),o=i.n(n),s=i(6),a=i.n(s),r=i(3),l=i.n(r),c=i(0),u=i.n(c),h=i(15),p=(i(12),i(7)),d=i(11),m=i(28),f=i(19),v=i(30),g=i(22);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);i=0;o--){for(var s=!1,a=n.values.length-1;a>=0;a--)i.values[o].id===n.values[a].id&&(s=!0,i.values[o],n.values[a]);s||i.remove(i.values[o])}for(var r=n.values.length-1;r>=0;r--){for(var l=!1,c=i.values.length-1;c>=0;c--)if(i.values[c].id===n.values[r].id){l=!0;break}if(!l)i.add(n.values[r])}}}function A(e,t){if(k&&w){var i=w.viewer.dataSources;if(e)for(var n=i._dataSources.length-1;n>=0;n--)i._dataSources[n].name===e.name&&("entities"===t&&j(i._dataSources[n].entities,e.entities),"clustering"===t&&(i._dataSources[n].clustering.enabled=e.clustering.enabled))}}function L(e,t){w.viewer.imageryLayers.addImageryProvider(e.imageryProvider,t)}function I(e,t,i){var n=w.viewer.imageryLayers._layers[i];n&&(0===t?w.viewer.imageryLayers.lowerToBottom(n):t>=k.viewer.imageryLayers._layers.length-1?w.viewer.imageryLayers.raiseToTop(n):t=1;o--)for(!1,s=n.length-1;s>=1;s--)n[s].id&&i[o].id&&n[s].id===i[o].id&&!0;for(a=n.length-1;a>=1;a--)for(!1,r=i.length-1;r>=1;r--)n[a].id&&i[r].id&&n[a].id===i[r].id&&(!0,i[r].show=n[a].show,i[r].startColor=n[a].startColor,i[r].endColor=n[a].endColor,i[r].minimumSpeed=n[a].minimumSpeed,i[r].maximumSpeed=n[a].maximumSpeed,i[r].minimumParticleLife=n[a].minimumParticleLife,i[r].maximumParticleLife=n[a].maximumParticleLife,i[r].startScale=n[a].startScale,i[r].endScale=n[a].endScale,i[r].emissionRate=n[a].emissionRate,i[r].particleSize=n[a].particleSize,i[r].modelMatrix=n[a].modelMatrix)}case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e,t,i){var n=new Cesium.ScreenSpaceEventHandler(e.viewer.canvas);n.setInputAction((function(){C=t}),Cesium.ScreenSpaceEventType.LEFT_DOWN),n.setInputAction((function(){C=t}),Cesium.ScreenSpaceEventType.RIGHT_DOWN),n.setInputAction((function(){C=t}),Cesium.ScreenSpaceEventType.WHEEL),x.push(n)}function G(){var e,t=this.sdks[C];if(0===C?e=this.sdks[1]:1===C&&(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 s=this.tools.cartesian3Towgs84(t.viewer.camera.positionWC,t.viewer).alt,a=this.tools.cartesian3Towgs84(o,t.viewer);e.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(a.lng,a.lat,s)})}}function W(){return w}function U(){return k}function Y(){w&&w.viewer.entities.add({show:!1,polygon:{hierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([100,50,100.0001,50,100.0001,50.0001]))}})}function J(e){C=e}function q(){return{sdkP:k,sdkD:w}}},function(e,t,i){var n=i(23).default,o=i(26);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(37);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.r(t),i.d(t,"on",(function(){return T})),i.d(t,"off",(function(){return B})),i.d(t,"setSplitDirection",(function(){return L})),i.d(t,"syncSplitData",(function(){return J})),i.d(t,"getState",(function(){return W})),i.d(t,"getActiveId",(function(){return U})),i.d(t,"setActiveId",(function(){return Y})),i.d(t,"setActiveViewer",(function(){return q})),i.d(t,"getSdk",(function(){return X}));var n=i(10),o=i.n(n),s=i(18),a=i.n(s),r=i(3),l=i.n(r),c=i(0),u=i.n(c),h=i(15),p=i(7),d=i(8),m=i(32),f=i(19),v=i(29),g=i(28),y=i(22);function b(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 C(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 k(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,x){e.next=6;break}return e.abrupt("return");case 6:if(s=x.entityMap,r=_&&_.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=w(x.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 R(e,t){_.viewer.imageryLayers.addImageryProvider(e.imageryProvider,t)}function z(e,t,i){for(var n,o=0;o<_.viewer.imageryLayers._layers.length;o++)if(_.viewer.imageryLayers._layers[o]._id===e._id){n=_.viewer.imageryLayers._layers[o];break}n&&(0===t?_.viewer.imageryLayers.lowerToBottom(n):t>=_.viewer.imageryLayers._layers.length-1?_.viewer.imageryLayers.raiseToTop(n):t0&&void 0!==arguments[0]?arguments[0]:[];if(E=Array.isArray(e)?e:[e],x&&_){var t=x.viewer._element.getElementsByClassName("YJ-custom-checkbox-left")[0],i=x.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;s1&&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;a2&&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,l,c,u=i(23),h=i.n(u),p=i(6),d=i.n(p),m=i(3),f=i.n(m),v=i(10),g=i.n(v),y=i(1),b=i.n(y),C=i(2),w=i.n(C),k=i(0),_=i.n(k),x=i(40),S=i.n(x),E=i(25),D=(i(20),i(13)),O=function(){var e=f()(_.a.mark((function e(t,n){var s,a,r,l,c,u,h,p,d,m,f;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=new E.a,a=new H(t),r=document.getElementsByClassName("proj-convert")[0].getElementsByClassName("content")[0],l=r.getElementsByClassName("item"),c=_.a.mark((function e(n){var c,u,h,p,d,m;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=l[n].getAttribute("data-type"),u=l[n].getElementsByClassName("convert")[0],h=l[n].getElementsByClassName("pickUp")[0],p=l[n].getElementsByClassName("icon-copy-box")[0],(d=new ClipboardJS(p,{text:function(e){var t;switch(c){case 0:case"0":t=l[n].getElementsByClassName("lng")[0].value+"°,"+l[n].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":t=r.getElementsByClassName("lng-dm-d")[0].value+"°"+r.getElementsByClassName("lng-dm-m")[0].value+"',"+r.getElementsByClassName("lat-dm-d")[0].value+"°"+r.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":t=r.getElementsByClassName("lng-dms-d")[0].value+"°"+r.getElementsByClassName("lng-dms-m")[0].value+"'"+r.getElementsByClassName("lng-dms-s")[0].value+'",'+r.getElementsByClassName("lat-dms-d")[0].value+"°"+r.getElementsByClassName("lat-dms-m")[0].value+"'"+r.getElementsByClassName("lat-dms-s")[0].value+'"'}return t}})).on("success",(function(e){a.message({text:"已复制到剪切板"})})),d.on("error",(function(e){a.message({type:"warning",text:"复制失败"})})),m=i(27).default,h.addEventListener("click",(function(){(o=new m(t)).start((function(e,t){switch(1*c){case 0:l[n].getElementsByClassName("lng")[0].value=t.lng,l[n].getElementsByClassName("lat")[0].value=t.lat;break;case 1:var i=s.degreesToDMS(t.lng,!0),o=s.degreesToDMS(t.lat,!0),a=i.split("°"),u=a[1].split("'"),h=o.split("°"),p=h[1].split("'");r.getElementsByClassName("lng-dm-d")[0].value=a[0],r.getElementsByClassName("lng-dm-m")[0].value=u[0],r.getElementsByClassName("lat-dm-d")[0].value=h[0],r.getElementsByClassName("lat-dm-m")[0].value=p[0];break;case 2:var d=s.degreesToDMS(t.lng),m=s.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('"');r.getElementsByClassName("lng-dms-d")[0].value=f[0],r.getElementsByClassName("lng-dms-m")[0].value=v[0],r.getElementsByClassName("lng-dms-s")[0].value=g[0],r.getElementsByClassName("lat-dms-d")[0].value=y[0],r.getElementsByClassName("lat-dms-m")[0].value=b[0],r.getElementsByClassName("lat-dms-s")[0].value=C[0]}}))})),u.addEventListener("click",(function(){var e,t,i,o,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,S;switch(c){case 0:case"0":e=l[n].getElementsByClassName("lng")[0].value,t=l[n].getElementsByClassName("lat")[0].value,p=s.degreesToDMS(e,!0),d=s.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),r.getElementsByClassName("lng-dm-d")[0].value=v[0],r.getElementsByClassName("lng-dm-m")[0].value=g[0],r.getElementsByClassName("lat-dm-d")[0].value=y[0],r.getElementsByClassName("lat-dm-m")[0].value=b[0],m=s.degreesToDMS(e),f=s.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),r.getElementsByClassName("lng-dms-d")[0].value=C[0],r.getElementsByClassName("lng-dms-m")[0].value=w[0],r.getElementsByClassName("lng-dms-s")[0].value=k[0],r.getElementsByClassName("lat-dms-d")[0].value=_[0],r.getElementsByClassName("lat-dms-m")[0].value=x[0],r.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 1:case"1":i=l[n].getElementsByClassName("lng-dm-d")[0].value,o=l[n].getElementsByClassName("lng-dm-m")[0].value,u=l[n].getElementsByClassName("lat-dm-d")[0].value,h=l[n].getElementsByClassName("lat-dm-m")[0].value,e=s.dmsToDecimal(i+"°"+o+"'",!0),t=s.dmsToDecimal(u+"°"+h+"'",!0),r.getElementsByClassName("lng")[0].value=e,r.getElementsByClassName("lat")[0].value=t,m=s.degreesToDMS(e),f=s.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),r.getElementsByClassName("lng-dms-d")[0].value=C[0],r.getElementsByClassName("lng-dms-m")[0].value=w[0],r.getElementsByClassName("lng-dms-s")[0].value=k[0],r.getElementsByClassName("lat-dms-d")[0].value=_[0],r.getElementsByClassName("lat-dms-m")[0].value=x[0],r.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 2:case"2":m=(i=l[n].getElementsByClassName("lng-dms-d")[0].value)+"°"+(o=l[n].getElementsByClassName("lng-dms-m")[0].value)+"'"+l[n].getElementsByClassName("lng-dms-s")[0].value+'"',f=(u=l[n].getElementsByClassName("lat-dms-d")[0].value)+"°"+(h=l[n].getElementsByClassName("lat-dms-m")[0].value)+"'"+l[n].getElementsByClassName("lat-dms-s")[0].value+'"',e=s.dmsToDecimal(m),t=s.dmsToDecimal(f),r.getElementsByClassName("lng")[0].value=e,r.getElementsByClassName("lat")[0].value=t,p=s.degreesToDMS(e,!0),d=s.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),r.getElementsByClassName("lng-dm-d")[0].value=v[0],r.getElementsByClassName("lng-dm-m")[0].value=g[0],r.getElementsByClassName("lat-dm-d")[0].value=y[0],r.getElementsByClassName("lat-dm-m")[0].value=b[0]}a.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 R(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=f()(_.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,m,f,v,g,y,b,C,w,k,x,S,E,P,D,O,M,T=arguments;return _.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=d()(e.geometry.coordinates):b.push(e.geometry.coordinates[1])})),C=[],w=I(b),e.prev=25,w.s();case 27:if((k=w.n()).done){e.next=37;break}return x=k.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,C.push(E);case 35:e.next=27;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(25),w.e(e.t1);case 42:return e.prev=42,w.f(),e.finish(42);case 45:for(C.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,u=void 0,h=[],p=0;p0&&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(L.get3DView)(),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 O=(_*=D/x/(t.space*(n.width/n.height*5)+1))/y.polyline.oriRepeat;y.polyline.oriSpeed=O,y.polyline.oriRepeatX=_,a=O,r=_,k=new Cesium.Cartesian2(_,O||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(L.get3DView)().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(A.w)(0),Object(A.f)(this.sdk),Object(A.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=f()(_.a.mark((function e(t){var i,n,o,s,a,r,l=arguments;return _.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?O(this.sdk,t):M()}},{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?B(this.sdk,t):j()}},{key:"updateCoordinates",value:function(e,t){l=e,c=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 S()(e).toUpperCase()}}]);var e,t,i}(),H=t.a=F},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(39);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(44),o=i(45),s=i(35),a=i(46);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&&d.that.show)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 O=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(9),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(15),m=i(8);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._tipText=n.tipText,i.tip=null,i.points_ids=[],i.color=n.color||"rgba(185,14,14,0.58)",i._is2D=s,i._sdk2D=Object(m.get2DView)(),i}return p()(t,e),a()(t,[{key:"tipText",get:function(){return this._tipText||""},set:function(e){this._tipText=e,this.tip&&this.tip.set_text(e)}},{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,i){"use strict";i.d(t,"d",(function(){return u})),i.d(t,"f",(function(){return h})),i.d(t,"a",(function(){return p})),i.d(t,"c",(function(){return d})),i.d(t,"e",(function(){return m})),i.d(t,"b",(function(){return f}));var n=null,o=null,s=null,a=null,r="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 }",l="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 ",c="\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 u(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e.viewer.scene.postProcessStages._stages,s=0;s1&&void 0!==arguments[1]&&arguments[1],n=e.viewer.scene.postProcessStages._stages,s=0;s1&&void 0!==arguments[1]&&arguments[1],n=e.viewer.scene.postProcessStages._stages,o=0;o1&&void 0!==arguments[1]&&arguments[1],n=e.viewer.scene.postProcessStages._stages,o=0;o1&&void 0!==arguments[1]&&arguments[1];e.viewer.scene.skyAtmosphere.show=!t;var n=i(11),o=n.getSdk,s=o().sdkD;s&&e!==s&&(s.viewer.scene.skyAtmosphere.show=!t)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.viewer.shadows=t,e.viewer._shadows=t;var n=i(11),o=n.getSdk,s=o().sdkD;s&&e!==s&&(s.viewer.shadows=t,s.viewer._shadows=t)}},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(9),l=i.n(r),c=i(5),u=i.n(c),h=i(4),p=i.n(h),d=i(14),m=i(12);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.tipText||"左键确定,右键结束;",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(8),c=i(11),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.get2DView)();i&&(p?f(e,d):y(i));var o=Object(c.getSdk)().sdkD;o&&e!==o&&m(o,t)}}function f(e,t){d=t,p&&g(e);var i=Object(l.get2DView)();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 O=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 O=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&&"EPSG:4490"!==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||"EPSG:4490"===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||"EPSG:4490"===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,"a",(function(){return z})),i.d(t,"b",(function(){return F})),i.d(t,"f",(function(){return V})),i.d(t,"c",(function(){return G}));var n=i(18),o=i.n(n),s=i(6),a=i.n(s),r=i(3),l=i.n(r),c=i(0),u=i.n(c),h=i(15),p=(i(11),i(7)),d=i(12),m=i(27),f=i(19),v=i(29);function g(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 y(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)?y(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i=w.viewer.imageryLayers._layers.length-1?C.viewer.imageryLayers.raiseToTop(n):t1&&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,l,c,u=i(22),h=i.n(u),p=i(6),d=i.n(p),m=i(3),f=i.n(m),v=i(9),g=i.n(v),y=i(1),b=i.n(y),C=i(2),w=i.n(C),k=i(0),_=i.n(k),x=i(39),S=i.n(x),E=i(24),O=(i(20),i(13)),D=function(){var e=f()(_.a.mark((function e(t,n){var s,a,r,l,c,u,h,p,d,m,f;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=new E.a,a=new H(t),r=document.getElementsByClassName("proj-convert")[0].getElementsByClassName("content")[0],l=r.getElementsByClassName("item"),c=_.a.mark((function e(n){var c,u,h,p,d,m;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=l[n].getAttribute("data-type"),u=l[n].getElementsByClassName("convert")[0],h=l[n].getElementsByClassName("pickUp")[0],p=l[n].getElementsByClassName("icon-copy-box")[0],(d=new ClipboardJS(p,{text:function(e){var t;switch(c){case 0:case"0":t=l[n].getElementsByClassName("lng")[0].value+"°,"+l[n].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":t=r.getElementsByClassName("lng-dm-d")[0].value+"°"+r.getElementsByClassName("lng-dm-m")[0].value+"',"+r.getElementsByClassName("lat-dm-d")[0].value+"°"+r.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":t=r.getElementsByClassName("lng-dms-d")[0].value+"°"+r.getElementsByClassName("lng-dms-m")[0].value+"'"+r.getElementsByClassName("lng-dms-s")[0].value+'",'+r.getElementsByClassName("lat-dms-d")[0].value+"°"+r.getElementsByClassName("lat-dms-m")[0].value+"'"+r.getElementsByClassName("lat-dms-s")[0].value+'"'}return t}})).on("success",(function(e){a.message({text:"已复制到剪切板"})})),d.on("error",(function(e){a.message({type:"warning",text:"复制失败"})})),m=i(26).default,h.addEventListener("click",(function(){(o=new m(t)).start((function(e,t){switch(1*c){case 0:l[n].getElementsByClassName("lng")[0].value=t.lng,l[n].getElementsByClassName("lat")[0].value=t.lat;break;case 1:var i=s.degreesToDMS(t.lng,!0),o=s.degreesToDMS(t.lat,!0),a=i.split("°"),u=a[1].split("'"),h=o.split("°"),p=h[1].split("'");r.getElementsByClassName("lng-dm-d")[0].value=a[0],r.getElementsByClassName("lng-dm-m")[0].value=u[0],r.getElementsByClassName("lat-dm-d")[0].value=h[0],r.getElementsByClassName("lat-dm-m")[0].value=p[0];break;case 2:var d=s.degreesToDMS(t.lng),m=s.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('"');r.getElementsByClassName("lng-dms-d")[0].value=f[0],r.getElementsByClassName("lng-dms-m")[0].value=v[0],r.getElementsByClassName("lng-dms-s")[0].value=g[0],r.getElementsByClassName("lat-dms-d")[0].value=y[0],r.getElementsByClassName("lat-dms-m")[0].value=b[0],r.getElementsByClassName("lat-dms-s")[0].value=C[0]}}))})),u.addEventListener("click",(function(){var e,t,i,o,u,h,p,d,m,f,v,g,y,b,C,w,k,_,x,S;switch(c){case 0:case"0":e=l[n].getElementsByClassName("lng")[0].value,t=l[n].getElementsByClassName("lat")[0].value,p=s.degreesToDMS(e,!0),d=s.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),r.getElementsByClassName("lng-dm-d")[0].value=v[0],r.getElementsByClassName("lng-dm-m")[0].value=g[0],r.getElementsByClassName("lat-dm-d")[0].value=y[0],r.getElementsByClassName("lat-dm-m")[0].value=b[0],m=s.degreesToDMS(e),f=s.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),r.getElementsByClassName("lng-dms-d")[0].value=C[0],r.getElementsByClassName("lng-dms-m")[0].value=w[0],r.getElementsByClassName("lng-dms-s")[0].value=k[0],r.getElementsByClassName("lat-dms-d")[0].value=_[0],r.getElementsByClassName("lat-dms-m")[0].value=x[0],r.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 1:case"1":i=l[n].getElementsByClassName("lng-dm-d")[0].value,o=l[n].getElementsByClassName("lng-dm-m")[0].value,u=l[n].getElementsByClassName("lat-dm-d")[0].value,h=l[n].getElementsByClassName("lat-dm-m")[0].value,e=s.dmsToDecimal(i+"°"+o+"'",!0),t=s.dmsToDecimal(u+"°"+h+"'",!0),r.getElementsByClassName("lng")[0].value=e,r.getElementsByClassName("lat")[0].value=t,m=s.degreesToDMS(e),f=s.degreesToDMS(t),k=(w=(C=m.split("°"))[1].split("'"))[1].split('"'),S=(x=(_=f.split("°"))[1].split("'"))[1].split('"'),r.getElementsByClassName("lng-dms-d")[0].value=C[0],r.getElementsByClassName("lng-dms-m")[0].value=w[0],r.getElementsByClassName("lng-dms-s")[0].value=k[0],r.getElementsByClassName("lat-dms-d")[0].value=_[0],r.getElementsByClassName("lat-dms-m")[0].value=x[0],r.getElementsByClassName("lat-dms-s")[0].value=S[0];break;case 2:case"2":m=(i=l[n].getElementsByClassName("lng-dms-d")[0].value)+"°"+(o=l[n].getElementsByClassName("lng-dms-m")[0].value)+"'"+l[n].getElementsByClassName("lng-dms-s")[0].value+'"',f=(u=l[n].getElementsByClassName("lat-dms-d")[0].value)+"°"+(h=l[n].getElementsByClassName("lat-dms-m")[0].value)+"'"+l[n].getElementsByClassName("lat-dms-s")[0].value+'"',e=s.dmsToDecimal(m),t=s.dmsToDecimal(f),r.getElementsByClassName("lng")[0].value=e,r.getElementsByClassName("lat")[0].value=t,p=s.degreesToDMS(e,!0),d=s.degreesToDMS(t,!0),g=(v=p.split("°"))[1].split("'"),b=(y=d.split("°"))[1].split("'"),r.getElementsByClassName("lng-dm-d")[0].value=v[0],r.getElementsByClassName("lng-dm-m")[0].value=g[0],r.getElementsByClassName("lat-dm-d")[0].value=y[0],r.getElementsByClassName("lat-dm-m")[0].value=b[0]}a.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 R(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=f()(_.a.mark((function e(){var t,i,n,o,s,a,r,l,c,u,h,p,m,f,v,g,y,b,C,w,k,x,S,E,P,O,D,M,T=arguments;return _.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=d()(e.geometry.coordinates):b.push(e.geometry.coordinates[1])})),C=[],w=I(b),e.prev=25,w.s();case 27:if((k=w.n()).done){e.next=37;break}return x=k.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,C.push(E);case 35:e.next=27;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(25),w.e(e.t1);case 42:return e.prev=42,w.f(),e.finish(42);case 45:for(C.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,u=void 0,h=[],p=0;p0&&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(L.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(L.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(A.w)(0),Object(A.f)(this.sdk),Object(A.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=f()(_.a.mark((function e(t){var i,n,o,s,a,r,l=arguments;return _.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?D(this.sdk,t):M()}},{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?B(this.sdk,t):j()}},{key:"updateCoordinates",value:function(e,t){l=e,c=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 S()(e).toUpperCase()}}]);var e,t,i}(),H=t.a=F},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._tipText=n.tipText,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:"tipText",get:function(){return this._tipText||""},set:function(e){this._tipText=e,this.tip&&this.tip.set_text(e)}},{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.tipText||"左键确定,右键结束;",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__(51),__webpack_require__(52))},function(e,t,i){var n=i(5),o=i(34),s=i(54),a=i(55);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(59)},function(e,t,i){var n=i(23).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:D(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 D(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=O(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 O(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,O(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(23).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(36);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(24);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}}])}(),D=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 O(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 O=s[1].trim().toLowerCase();n.object.smooth="0"!==O&&"off"!==O}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),O(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(O[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 O[e],localStorage.setItem("custom-color",JSON.stringify(O)),N.removeChild(t)})),I.push(o)};for(var z in O)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.syncSplitData)(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:"SourceHanSansTiM",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="㎞",D=Math.round(D/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*D,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*O.height;if(M.strokeStyle="red",M.lineWidth=.002*O.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(O.width-2*c-o/2,-o/2),e.lineTo(O.width-2*(c+o)+o/2,o/2)):(e.lineTo(O.height-2*c-o/2,-o/2),e.lineTo(O.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((O.width-2*c-2*p.width)/p.width):Math.ceil((O.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),O.width=T.width+2*e,O.height=T.height+2*e,M.clearRect(0,0,O.width,O.height),M.rect(0,0,O.width,O.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,O.width-2*e,h.height*T.height),M.fillStyle=h.color||"white",M.textAlign="center",M.textBaseline="middle",M.fillText(t,O.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,O.width-p.width-c,c,p.width,"right",1),ue(M,l,O.width-p.width-c,O.height-p.width-c,p.width,"bottom",1),ue(M,l,c,O.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=O.getBoundingClientRect(),n=i.width,o=i.height,s=O.width,a=O.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=O.getBoundingClientRect(),n=i.width,o=i.height,s=O.width,a=O.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],D=g.getElementsByClassName("map-border-checkbox")[0],O=document.createElement("canvas"),M=O.getContext("2d"),y.appendChild(O),(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()}})),O.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>O.width||n>O.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?O.style.cursor="n-resize":O.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.off)(t),Object(J.off)(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:D.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 D=l.toDataURL("image/jpeg",.95),O=document.createElement("canvas"),M=O.getContext("2d");O.width=l.width/s,O.height=l.height/s,M.drawImage(l,0,0,O.width,O.height),new Re(t,O.toDataURL("image/jpeg",.95),v,D,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(31),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(23),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(29),pt=i(30);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.getSdk)().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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.getSdk)().sdkD,i=Object(J.getSdk)().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.getSdk)().sdkD,i=Object(J.getSdk)().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.getSdk)().sdkD,i=Object(J.getSdk)().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:"SourceHanSansTiM",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 Dt(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=Ot(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.options.lng=n.lng,t.options.lat=n.lat,t.lng=n.lng,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.options.lng=n.lng,t.options.lat=n.lat,t.lng=n.lng,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.options.lng=e.lng,t.options.lat=e.lat,t.lng=e.lng,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.options.lng=this.lastOptions.lng,this.options.lat=this.lastOptions.lat,this.lng=this.lastOptions.lng),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){var t=this;this.options.lng=e;var i=nt()(this.sdk.viewer.entities.values);this.getClampToHeight({lng:this.options.lng,lat:this.options.lat},i).then((function(e){t.label.position=[t.options.lng,t.options.lat,e]})),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){var t=this;this.options.lat=e;var i=nt()(this.sdk.viewer.entities.values);this.getClampToHeight({lng:this.options.lng,lat:this.options.lat},i).then((function(e){t.label.position=[t.options.lng,t.options.lat,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.getSdk)().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=Dt({},this.options.position):this.options.positions?r=Dt({},this.options.positions[0]):this.options.center?r=Dt({},this.options.center):this.options.start?r=Dt({},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.syncData)(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.getSdk)().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.syncData)(e.sdk,e.options.id),e.options.show&&Object(Z.setSplitDirection)(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.syncData)(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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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,D,O;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.syncData)(e.sdk,e.options.id),e.options.show&&Object(Z.setSplitDirection)(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(){var i=nt()(e.options.positions);if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n=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()(a.sdk.viewer.entities.values),i=0;case 2:if(!(i=3?[].concat(nt()(r),[r[0],r[1],r[2]]):r}),!1);var d=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},d).then((function(t){e.label.position=[e.options.positions[0].lng,e.options.positions[0].lat,t]}));else{for(var m=[[]],f=0;f=500?p():h(o,i)}))})),n()}),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),D=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),O=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,D),t.rayZ=new Cesium.Ray(t.origin,O)}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(D),void(D=setTimeout((function(){O(e)}),100));clearTimeout(D),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||0===n.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.get3DView)().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)},O=0;O0&&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,Di,Oi,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=i(22);function Ri(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 zi=i(32);var Fi,Hi,Vi=null,Gi=null,Wi=null,Ui=19,Yi=!0,Ji=10,qi="#ffd000",Xi=!0,Zi=2.5,Ki="#43cf7c",Qi=!0,$i=1.8,en="#ff0000",tn=!1,nn=1,on="#64b6d9",sn=!1,an=1,rn="#d084d1",ln={};function cn(){if(Hi){var e=Hi.viewer.camera.positionCartographic;Cesium.Math.toDegrees(e.height)<1e6?Hi.viewer.scene.globe.material||!0!==Yi||pn(Hi):dn(Hi)}}function un(e){var t=e.red,i=e.green,n=e.blue,o=e.alpha,s=void 0===o?1:o;return"rgba(".concat(255*t,", ").concat(255*i,", ").concat(255*n,", ").concat(s,")")}function hn(){return(hn=_()(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||(Gi&&Gi.destroy(),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]||e.viewer.container.appendChild(Wi),(Gi=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}Wi.style.left=t.endPosition.x-50+o+"px",Wi.style.top=t.endPosition.y-40+n+"px",Wi.style.display="block";var a=Fi.cartesian3Towgs84(i,e.viewer),r=Math.floor(a.alt/Vi.uniforms.spacing)*Vi.uniforms.spacing,l=a.alt-r,c=Vi.uniforms.spacing/(Vi.uniforms.secondaryLinesCount+1),u=Math.floor(l/c)*c+r;a.alt<0&&(a.alt=0),a.alt-u>c/2&&(u+=c),Vi.uniforms.mouseHeight=a.alt,Vi.uniforms.mousePosition=i,Wi.innerHTML="".concat(u.toFixed(0))}else Wi.style.display="none"}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.viewer.scene.globe.material=Vi)}function dn(e){Gi&&(Gi.destroy(),Gi=null),e.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]&&(Wi.style.display="none",e.viewer.container.removeChild(Wi)),e.viewer.scene.globe.material=null}function mn(){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",Vi=new Cesium.Material({fabric:{type:"ElevationContour",uniforms:{spacing:50,activeColor:Cesium.Color.fromCssColorString(qi),mouseHeight:-1e5,mousePosition:new Cesium.Cartesian3(0,0,0),secondaryLinesCount:Ui,cameraHeight:0,indexContourShow:Xi,indexContourWidth:Zi,indexContourColor:Cesium.Color.fromCssColorString(Ki),intermediateContourShow:Qi,intermediateContourWidth:$i,intermediateContourColor:Cesium.Color.fromCssColorString(en),halfIntervalContourShow:tn,halfIntervalContourWidth:nn,halfIntervalContourColor:Cesium.Color.fromCssColorString(on),supplementaryContourShow:sn,supplementaryContourWidth:an,supplementaryContourColor:Cesium.Color.fromCssColorString(rn)}}})}function fn(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 vn(e,t,i){return e.set(yn(e,t),i),i}function gn(e,t){return e.get(yn(e,t))}function yn(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")}(Wi=document.createElement("div")).className="YJ-customize-active-height-elm",Wi.style.position="absolute",Wi.style.left="10px",Wi.style.top="10px",Wi.style.width="100px",Wi.style.textAlign="center",Wi.style.pointerEvents="none",Wi.style.color="#ff0000",Wi.style.display="none";var bn=new WeakMap,Cn=new WeakMap,wn=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),fn(this,bn,null),fn(this,Cn,{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(gn(bn,this)){var i=gn(bn,this).getContext("2d");i.clearRect(0,0,gn(bn,this).width,gn(bn,this).height),i.drawImage(gn(Cn,this).bgimg,0,0,gn(bn,this).width,gn(bn,this).height);var n=0;t.forEach((function(o,s){i.drawImage(gn(Cn,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=gn(bn,e).toDataURL())}))}else{vn(bn,this,document.createElement("canvas"));var o=gn(bn,this).getContext("2d");gn(bn,this).width=220,gn(bn,this).height=140;var s=new Image;gn(Cn,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,gn(bn,e).width,gn(bn,e).height),t.forEach((function(i,n){var s=new Image;gn(Cn,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=gn(bn,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(){vn(bn,this,null),vn(Cn,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var e}();var kn=i(17),_n=i.n(kn),xn=i(21);function Sn(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 En(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Pn(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=_n()(De()(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.tipText||"左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",r.positions=c.concat(En({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r);r.points_ids.push(o)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),e(c.length)}})),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(En({},t)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),e(c.length))})),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),e(c.length))})),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),e(c.length)}}))}})),!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.positions=c.concat(En({},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)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),e(c.length)}})),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(En({},t)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,i){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),e(c.length))})),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),e(c.length))})),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),e(c.length)}}))}})))}}}],[{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}}])}(xn.a),On=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 Dn(this.sdk,{tipText:"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点"}),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.Draw.tipText=t>=3?"左键单击确定控制点位置,右键单击结束范围绘制! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点";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 Tn(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=Nn(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 Dn(i.sdk,{tipText:"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点"}),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(e){t.create(this,e)}},{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;t=3?"左键单击确定控制点位置,右键单击结束范围绘制! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点";else{e.destroy();var o=[];e.positions=n,e._positions=n,e.options.minWaterLevel=n[0].alt;for(var s=0;sn[s].alt&&(e.options.minWaterLevel=n[s].alt),o.push(n[s].lng,n[s].lat);e.options.maxWaterLevel=n[0].alt;for(var a=0;a\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)),console.log(i.options.minWaterLevel,i.options.minWaterLevel,"klklklkl"),i.options.maxWaterLevel=Math.floor(1e4*i.options.minWaterLevel)/1e4+Math.floor(1e4*i.options.minWaterLevel)/1e4)}})),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=Mn(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=Ln(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:An({},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 Rn(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 zn(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)?zn(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 zn(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),Hn(i=Fn(this,t,[e,n]),Wn,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),i}return Me()(t,e),h()(t,[{key:"draw",value:function(){if(!this.viewer.terrainProvider.availability)return"未加载地形数据!";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=Vn(Wn,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);Vn(Wn,this).set(f,{event:v})}},{key:"destroy",value:function(){var e,t,i,n,o=Rn(Vn(Wn,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=Wn,i=this,n=new Map,t.set(Gn(t,i),n);for(var l=0;l35?35:200*e;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<3)t.Draw.tipText=i>=3?"左键单击确定控制点位置,右键单击结束坡度分析! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消坡度分析! CTRL+右键单击撤销上一个控制点";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<3)t.Draw.tipText=e>=3?"左键单击确定控制点位置,右键单击结束坡度分析! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消坡度分析! CTRL+右键单击撤销上一个控制点";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=Jn({},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:Jn({},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 Zn(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var Kn=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=Zn(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.tip.set_text("左键点击确定终点位置,右键点击取消绘制!"),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,D;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}(xn.a);function Qn(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var $n=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=Qn(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),eo=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;n?(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()):this.error="未加载地形数据!"}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=no(this,t,[e,o])).viewer=e.viewer,n.tiles3d=i,n.options=io({},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=so(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 Dn(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("不支持凹多边形"));t||0==t||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(ao[e]);ao=[],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 lo(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 co(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=uo(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=co({},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 ho[n.tileset.id]?ho[n.tileset.id].push(co({},n.options)):ho[n.tileset.id]=[co({},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=vo(this,t,[e,n])).options=fo({},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 yo(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 bo(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)?bo(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 bo(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=Co(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=yo(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=yo(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)})),wo(t,"destroy",this,3)([])}},{key:"end",value:function(){wo(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}(go);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:(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=_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 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)})),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}(go);function Do(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 Oo(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)?Oo(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 Oo(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.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=Do(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)})),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}(go);function Bo(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 jo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ao(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()){Lo(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.tip.set_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(jo({},a)),e.ids.push(e.create_point(jo({},a),!1));var r=e.cartesian3Towgs84(jo({},a),e.viewer);if(r.alt>n&&(n=r.alt),e.positions=e.cachePositions.concat(jo({},a)),e.tip.setPosition(jo({},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+" ㎡"}e.positions.length>3&&e.tip.set_text("左键单击确定控制点位置,右键单击完成投影面积测量!")};this.event.mouse_left(s),this.event.mouse_move((function(t,i){if(e.tip.setPosition(jo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(jo({},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)})),Lo(t,"destroy",this,3)([])}},{key:"end",value:function(){Lo(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}}])}(go);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=[],this.tip.set_text("左键单击确定控制点位置,右键单击取消贴地面积测量!");var i=0,n=function(n,o){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(zo({},o)),e.ids.push(e.create_point(zo({},o),!1));var s=e.cartesian3Towgs84(zo({},o),e.viewer);s.alt>i&&(i=s.alt),e.positions=e.cachePositions.concat(zo({},o)),e.tip.setPosition(zo({},o),n.position.x,n.position.y),e.positions.length>3&&e.tip.set_text("左键单击确定控制点位置,右键单击完成贴地面积测量!")},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(zo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(zo({},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)})),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}}])}(go);function Go(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function Wo(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Uo=function(e){function t(e){return c()(this,t),Go(this,t,[e,{text:"左键单击确定控制点位置,右键单击取消三角测量!"}])}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(){Wo(t,"end",this,3)([])}},{key:"destroy",value:function(){Wo(t,"destroy",this,3)([])}}])}(go);function Yo(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function Jo(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var qo=function(e){function t(e){var i;return c()(this,t),(i=Yo(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()){Jo(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||"EPSG:4490"===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||"EPSG:4490"===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),Jo(t,"destroy",this,3)([])}},{key:"end",value:function(){Jo(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}}])}(go);function Xo(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function Zo(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Ko=function(e){function t(e){return c()(this,t),Xo(this,t,[e,{text:"左键单击确定控制点位置,右键单击取消垂直高度测量!"}])}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){Zo(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))),e.tip.set_text("左键单击确定终点位置,完成垂直高度测量!"),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.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+" 米"}})),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(){Zo(t,"end",this,3)([])}},{key:"destroy",value:function(){Zo(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}}])}(go);function Qo(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function $o(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var es=function(e){function t(e){var i;return c()(this,t),(i=Qo(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(){$o(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;$o(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)}))}))}}}])}(go);function ts(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function is(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ns=function(e){function t(e){var i;return c()(this,t),(i=ts(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(){is(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;is(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=10;break}return e.end(),t.abrupt("return");case 10:if(e.ids.push(e.create_point(n)),e.ids.push(e.create_point(n)),2!==e.ids.length){t.next=21;break}return e.label_id=Cesium.createGuid(),e.arc_id=Cesium.createGuid(),p=e.cartesian3Towgs84(n,e.viewer),t.next=18,e.sampleHeightMostDetailed([p]);case 18: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 21: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)}))}))}}}])}(go);function os(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var ss=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=os(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(),e(c.length))})),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),e(c.length))})),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(),e(c.length))})),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}}])}(xn.a);function as(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 rs(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=ls(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[rs({},h),rs({},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=_n()(De()(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(rs({},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(rs({},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(rs({},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(rs({},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}}])}(xn.a),us=i(27);function hs(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var ps=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),hs(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=_n()(De()(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.tipText||"左键开始,右键取消",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(r.tipText||"再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c(),e(u)),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.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&r.point_id&&(r.remove_entity(r.circle_id),r.remove_entity(r.point_id),r.point_id=null,p=[],h=[],m=[],f={},v=null,e(u=0))})),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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_keyboard_ctrl((function(t,i){"3D"!==l&&r.point_id&&(r.remove_entity(r.circle_id),r.remove_entity(r.point_id),r.point_id=null,p=[],h=[],m=[],f={},v=null,e(u=0))})));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()}}])}(xn.a);function ds(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var ms=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ds(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=_n()(De()(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.tipText||"左键开始,右键取消",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})):e(h)}})),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.event.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&(r.remove_entity(r.points_ids.pop()),h--,e(h),0==h&&r.remove_entity(r.elliptic_id))})),!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})):e(h)}})),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()}}])}(xn.a);function fs(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var vs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),fs(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=_n()(De()(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.tipText||"左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(i,n){if("2D"!==l){l="3D";var o=r.cartesian3Towgs84(n,r.viewer),s=c[c.length-1];if(!s||s.lng!==o.lng||s.lat!==o.lat){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(o),u=!1,e(c.length)}}})),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(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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),gs(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=_n()(De()(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.tipText||"左键确定,右键取消;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)}else e(c.length)}})),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(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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)}else e(c.length)}}))}})),!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)}else e(c.length)}})),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(t,i){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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)}else e(c.length)}}))}})))}}}],[{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=bs(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;Cs(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(){Cs(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=ks(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=_n()(De()(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.tipText||"左键确定,右键取消",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])):e(u)}})),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.mouse_right_keyboard_ctrl((function(t,i){"2D"!==c&&r.points_ids.length>=1&&(r.remove_entity(r.points_ids.pop()),r.polygonHasCreated=!1,r.rect=[],u--,e(u))})),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])):e(u)}}))}})),!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])):e(u)}})),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.mouse_right_keyboard_ctrl((function(t,i){"3D"!==c&&r.points_ids.length>=1&&(r.remove_entity(r.points_ids.pop()),r.polygonHasCreated=!1,r.rect=[],u--,e(u))})),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])):e(u)}}))}})))}}},{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}}])}(xn.a);function xs(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}function Ss(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Es=function(e){function t(e){var i,n=arguments.length>1&&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.tipText||"左键确定,右键取消;",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))if(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()}else e(o.length)})),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.mouse_right_keyboard_ctrl((function(t,s){"2D"!==n&&i.points_ids.length>=1&&(1===i.points_ids.length&&(i.viewer.entities.remove(i.assemblePolygon),i.assemblePolygon=void 0),i.remove_entity(i.points_ids.pop()),o.pop(),i.anchorpoints.pop(),e(o.length))})),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)),e(o.length)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s))if(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()}else e(o.length)})),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.mouse_right_keyboard_ctrl((function(t,s){"3D"!==n&&i.points_ids.length>=1&&(1===i.points_ids.length&&(i.viewer.entities.remove(i.assemblePolygon),i.assemblePolygon=void 0),i.remove_entity(i.points_ids.pop()),o.pop(),i.anchorpoints.pop(),e(o.length))})),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)),e(o.length)}}))}})))}}},{key:"end",value:function(){Ss(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),Ps(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=_n()(De()(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(this.tipText||"左键确认,右键取消",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)),e(l._positions.length)):(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.event.mouse_right_keyboard_ctrl((function(t,n){"2D"!==i&&l._positions.length>=1&&(l.remove_entity(l.points_ids.pop()),l.remove_entity(l.points_ids.pop()),l.remove_entity(l._sector_id),l._sector_id=void 0,l._positions.pop(),l._positions.pop(),e(l._positions.length))})),!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)),e(l._positions.length)):(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))})),this.event2D.mouse_right_keyboard_ctrl((function(t,n){"3D"!==i&&l._positions.length>=1&&(l.remove_entity(l.points_ids.pop()),l.remove_entity(l.points_ids.pop()),l.remove_entity(l._sector_id),l._sector_id=void 0,l._positions.pop(),l._positions.pop(),e(l._positions.length))}))))}},{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)}}}])}(xn.a),Os=52.35987755982988,Ms=3.141592653589793,Ts=.006693421622965943,Ns=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*Os),s=Math.atan2(n,i)-3e-6*Math.cos(i*Os);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*Os),n=Math.atan2(t,e)+3e-6*Math.cos(e*Os);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*Ms,s=Math.sin(o);s=1-Ts*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*Ms),n=180*n/(6378245*(1-Ts)/(s*a)*Ms)]}},{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*Ms)+20*Math.sin(2*e*Ms))/3,i+=2*(20*Math.sin(e*Ms)+40*Math.sin(e/3*Ms))/3,i+=2*(150*Math.sin(e/12*Ms)+300*Math.sin(e/30*Ms))/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*Ms)+20*Math.sin(2*e*Ms))/3,i+=2*(20*Math.sin(t*Ms)+40*Math.sin(t/3*Ms))/3,i+=2*(160*Math.sin(t/12*Ms)+320*Math.sin(t*Ms/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 Bs(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var js=function(e){function t(e,i){var n;return c()(this,t),(n=Bs(this,t,[e,i])).sdk.addIncetance(n.options.id,n),n.options.show&&Object(Z.setSplitDirection)(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=_n()(De()(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 As(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 Ls(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Is(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;Rs(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=Ls({},this.options.position):this.options.positions?a=Ls({},this.options.positions[0]):this.options.center?a=Ls({},this.options.center):this.options.start?a=Ls({},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=Is(this,t,[e]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(e,t){return t=Ns.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=Ns.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.syncSplitData)(s.sdk,s.options.id);var t=Object(J.get2DView)();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}(js);function Fs(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var Hs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),Fs(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),Us(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=Us(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)}(Ys),qs=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Us(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)}(Ys),Xs=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Us(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)}(Ys);function Zs(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 Ks(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)?Ks(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 Ks(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 la(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=ca(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=ra(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}(aa);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 pa(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)?pa(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 pa(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),va(i=fa(this,t,[e,n]),Ca,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=ma({},e);delete n.features,t.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(ma(ma({},o.oldData),{},{features:t,type:o.type})),Object(Z.syncSplitData)(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(ya(Ca,this)),ga(Ca,this,setTimeout((function(){clearTimeout(ya(Ca,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=ha(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 _a(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 xa(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 Oa(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=Na(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.syncData)(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=Ta({},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 Sa(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 Sa(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.syncSplitData)(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(){Ba(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=Ta({},this.options.position):this.options.positions?a=Ta({},this.options.positions[0]):this.options.center?a=Ta({},this.options.center):this.options.start?a=Ta({},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(){Ba(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){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){var t=this;this.options.position={lng:Number(Number(e).toFixed(8)),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(e){e.value=t.options.position.lng}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){var t=this;this.options.position={lng:this.options.position.lng,lat:Number(Number(e).toFixed(8)),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(e){e.value=t.options.position.lat}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){var t=this;this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt: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.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(e){e.value=t.options.position.alt}))}},{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){var t=this;this.options.rotate.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.rotateX&&this._elms.rotateX.forEach((function(e){e.value=t.options.rotate.x}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(e){var t=this;this.options.rotate.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.rotateY&&this._elms.rotateY.forEach((function(e){e.value=t.options.rotate.y}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(e){var t=this;this.options.rotate.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.rotateZ&&this._elms.rotateZ.forEach((function(e){e.value=t.options.rotate.z}))}},{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.syncData)(m.sdk,m.options.id),Object(Z.syncSplitData)(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=ka(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(),Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id)}catch(e){}}}]);var i,o,s,a,r}(Pa);function Aa(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 La(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);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(i=Fa(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=Aa(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=Ua(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=Wa({},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=Ja(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 Qa(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),er(i=$a(this,t,[e,n]),or,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(ir(or,this)),tr(or,this,setTimeout((function(){clearTimeout(ir(or,a)),a.terrainProvider.readyPromise.then((function(){var e,t=Ka(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.syncSplitData)(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=Za({},this.options.position):this.options.positions?r=Za({},this.options.positions[0]):this.options.center?r=Za({},this.options.center):this.options.start?r=Za({},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=_n()(De()(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}(js);function ar(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 rr(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)?rr(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 rr(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=pr(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.syncData)(this.sdk,this.options.id),this.options.show&&Object(Z.setSplitDirection)(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=hr({},this.options.position):this.options.positions?r=hr({},this.options.positions[0]):this.options.center?r=hr({},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("*"),cr.on(this,o),this._elms=cr.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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{key:"remove",value:(i=_()(S.a.mark((function e(){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dr(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:if(i=Object(J.getSdk)().sdkD,this.sdk===i){e.next=12;break}return e.next=12,Object(J.syncData)(this.sdk,this.options.id);case 12: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.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: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.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: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.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 fr(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 vr(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)?vr(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 vr(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=wr(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.syncData)(this.sdk,this.options.id),this.options.show&&Object(Z.setSplitDirection)(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=Cr({},this.options.position):this.options.positions?r=Cr({},this.options.positions[0]):this.options.center?r=Cr({},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("*"),yr.on(this,o),this._elms=yr.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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{key:"remove",value:(i=_()(S.a.mark((function e(){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return kr(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:if(i=Object(J.getSdk)().sdkD,this.sdk===i){e.next=12;break}return e.next=12,Object(J.syncData)(this.sdk,this.options.id);case 12: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:Cr({},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:Cr({},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:Cr({},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 xr(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 Sr(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)?Sr(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 Sr(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=Mr(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.syncData)(this.sdk,this.options.id),this.options.show&&Object(Z.setSplitDirection)(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=Or({},this.options.position):this.options.positions?r=Or({},this.options.positions[0]):this.options.center?r=Or({},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("*"),Pr.on(this,o),this._elms=Pr.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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{key:"remove",value:(i=_()(S.a.mark((function e(){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Tr(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:if(i=Object(J.getSdk)().sdkD,this.sdk===i){e.next=12;break}return e.next=12,Object(J.syncData)(this.sdk,this.options.id);case 12: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:Or({},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:Or({},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:Or({},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 Br(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);i2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Ir(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.getSdk)().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.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(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.syncData)(this.sdk,this.options.id),this.options.show&&Object(Z.setSplitDirection)(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=Lr({},this.options.position):this.options.positions?r=Lr({},this.options.positions[0]):this.options.line&&this.options.line.positions?r=Lr({},this.options.line.positions[0]):this.options.center?r=Lr({},this.options.center):this.options.start?r=Lr({},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;//!!!发射粒子的方向 + */!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:"SourceHanSansTiM",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:"SourceHanSansTiM",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.options.lng=n.lng,t.options.lat=n.lat,t.lng=n.lng,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.options.lng=n.lng,t.options.lat=n.lat,t.lng=n.lng,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.options.lng=e.lng,t.options.lat=e.lat,t.lng=e.lng,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.options.lng=this.lastOptions.lng,this.options.lat=this.lastOptions.lat,this.lng=this.lastOptions.lng),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){var t=this;this.options.lng=e;var i=nt()(this.sdk.viewer.entities.values);this.getClampToHeight({lng:this.options.lng,lat:this.options.lat},i).then((function(e){t.label.position=[t.options.lng,t.options.lat,e]})),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e}))}},{key:"lat",get:function(){return this.options.lat},set:function(e){var t=this;this.options.lat=e;var i=nt()(this.sdk.viewer.entities.values);this.getClampToHeight({lng:this.options.lng,lat:this.options.lat},i).then((function(e){t.label.position=[t.options.lng,t.options.lat,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(){var i=nt()(e.options.positions);if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n=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()(a.sdk.viewer.entities.values),i=0;case 2:if(!(i=3?[].concat(nt()(r),[r[0],r[1],r[2]]):r}),!1);var d=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},d).then((function(t){e.label.position=[e.options.positions[0].lng,e.options.positions[0].lat,t]}));else{for(var m=[[]],f=0;f=500?p():h(o,i)}))})),n()}),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||0===n.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||yn(Ji):bn(Ji)}}function vn(e){var t=e.red,i=e.green,n=e.blue,o=e.alpha,s=void 0===o?1:o;return"rgba(".concat(255*t,", ").concat(255*i,", ").concat(255*n,", ").concat(s,")")}function gn(){return(gn=_()(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 bn(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 Cn(){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 wn(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 kn(e,t,i){return e.set(xn(e,t),i),i}function _n(e,t){return e.get(xn(e,t))}function xn(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 Sn=new WeakMap,En=new WeakMap,Pn=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),wn(this,Sn,null),wn(this,En,{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(_n(Sn,this)){var i=_n(Sn,this).getContext("2d");i.clearRect(0,0,_n(Sn,this).width,_n(Sn,this).height),i.drawImage(_n(En,this).bgimg,0,0,_n(Sn,this).width,_n(Sn,this).height);var n=0;t.forEach((function(o,s){i.drawImage(_n(En,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=_n(Sn,e).toDataURL())}))}else{kn(Sn,this,document.createElement("canvas"));var o=_n(Sn,this).getContext("2d");_n(Sn,this).width=220,_n(Sn,this).height=140;var s=new Image;_n(En,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,_n(Sn,e).width,_n(Sn,e).height),t.forEach((function(i,n){var s=new Image;_n(En,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=_n(Sn,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(){kn(Sn,this,null),kn(En,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var e}();var On=i(17),Dn=i.n(On),Mn=i(21);function Tn(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 Nn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Bn(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=Dn()(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.tipText||"左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",r.positions=c.concat(Nn({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=t.create_polygon(r);r.points_ids.push(o)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),e(c.length)}})),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(Nn({},t)),r.tip.setPosition(t,e.endPosition.x,e.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),e(c.length))})),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),e(c.length))})),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),e(c.length)}}))}})),!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.positions=c.concat(Nn({},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)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),e(c.length)}})),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(Nn({},t)),r.tip.setPosition(t,e.endPosition.x+r.viewer.canvas.width,e.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,i){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),e(c.length))})),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),e(c.length))})),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),e(c.length)}}))}})))}}}],[{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}}])}(Mn.a),An=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 jn(this.sdk,{tipText:"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点"}),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.Draw.tipText=t>=3?"左键单击确定控制点位置,右键单击结束范围绘制! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点";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 In(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=Rn(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 jn(i.sdk,{tipText:"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点"}),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(e){t.create(this,e)}},{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;t=3?"左键单击确定控制点位置,右键单击结束范围绘制! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点";else{e.destroy();var o=[];e.positions=n,e._positions=n,e.options.minWaterLevel=n[0].alt;for(var s=0;sn[s].alt&&(e.options.minWaterLevel=n[s].alt),o.push(n[s].lng,n[s].lat);e.options.maxWaterLevel=n[0].alt;for(var a=0;a\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)),console.log(i.options.minWaterLevel,i.options.minWaterLevel,"klklklkl"),i.options.maxWaterLevel=Math.floor(1e4*i.options.minWaterLevel)/1e4+Math.floor(1e4*i.options.minWaterLevel)/1e4)}})),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=Ln(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=Vn(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:Hn({},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 Wn(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 Un(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)?Un(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 Un(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),Jn(i=Yn(this,t,[e,n]),Zn,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),i}return Me()(t,e),h()(t,[{key:"draw",value:function(){if(!this.viewer.terrainProvider.availability)return"未加载地形数据!";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=qn(Zn,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);qn(Zn,this).set(f,{event:v})}},{key:"destroy",value:function(){var e,t,i,n,o=Wn(qn(Zn,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=Zn,i=this,n=new Map,t.set(Xn(t,i),n);for(var l=0;l35?35:200*e;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<3)t.Draw.tipText=i>=3?"左键单击确定控制点位置,右键单击结束坡度分析! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消坡度分析! CTRL+右键单击撤销上一个控制点";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<3)t.Draw.tipText=e>=3?"左键单击确定控制点位置,右键单击结束坡度分析! CTRL+右键单击撤销":"左键单击确定控制点位置,右键单击取消坡度分析! CTRL+右键单击撤销上一个控制点";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=$n({},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:$n({},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 io(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 no=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=io(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.tip.set_text("左键点击确定终点位置,右键点击取消绘制!"),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}(Mn.a);function oo(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 so=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=oo(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),ao=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;n?(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()):this.error="未加载地形数据!"}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=co(this,t,[e,o])).viewer=e.viewer,n.tiles3d=i,n.options=lo({},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=ho(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 jn(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(po[e]);po=[],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 fo(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 vo(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=go(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=vo({},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 yo[n.tileset.id]?yo[n.tileset.id].push(vo({},n.options)):yo[n.tileset.id]=[vo({},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=ko(this,t,[e,n])).options=wo({},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 xo(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 So(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)?So(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 So(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=Eo(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=xo(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=xo(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)})),Po(t,"destroy",this,3)([])}},{key:"end",value:function(){Po(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}(_o);function Do(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 Mo(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)?Mo(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 Mo(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=To(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=Do(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)})),No(t,"destroy",this,3)([])}},{key:"end",value:function(){No(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}(_o);function jo(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 Ao(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)?Ao(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 Ao(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=Lo(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=jo(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)})),Io(t,"destroy",this,3)([])}},{key:"end",value:function(){Io(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}(_o);function zo(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;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ho(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()){Vo(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.tip.set_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(Fo({},a)),e.ids.push(e.create_point(Fo({},a),!1));var r=e.cartesian3Towgs84(Fo({},a),e.viewer);if(r.alt>n&&(n=r.alt),e.positions=e.cachePositions.concat(Fo({},a)),e.tip.setPosition(Fo({},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+" ㎡"}e.positions.length>3&&e.tip.set_text("左键单击确定控制点位置,右键单击完成投影面积测量!")};this.event.mouse_left(s),this.event.mouse_move((function(t,i){if(e.tip.setPosition(Fo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(Fo({},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)})),Vo(t,"destroy",this,3)([])}},{key:"end",value:function(){Vo(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}}])}(_o);function Wo(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 Uo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Yo(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()){Jo(t,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[],this.tip.set_text("左键单击确定控制点位置,右键单击取消贴地面积测量!");var i=0,n=function(n,o){0===e.ids.length&&(e.polygon_id=t.create_polygon(e)),e.cachePositions.push(Uo({},o)),e.ids.push(e.create_point(Uo({},o),!1));var s=e.cartesian3Towgs84(Uo({},o),e.viewer);s.alt>i&&(i=s.alt),e.positions=e.cachePositions.concat(Uo({},o)),e.tip.setPosition(Uo({},o),n.position.x,n.position.y),e.positions.length>3&&e.tip.set_text("左键单击确定控制点位置,右键单击完成贴地面积测量!")},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(Uo({},i),t.endPosition.x,t.endPosition.y),e.positions=e.cachePositions.concat(Uo({},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)})),Jo(t,"destroy",this,3)([])}},{key:"end",value:function(){Jo(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}}])}(_o);function Xo(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 Zo(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Ko=function(e){function t(e){return c()(this,t),Xo(this,t,[e,{text:"左键单击确定控制点位置,右键单击取消三角测量!"}])}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(){Zo(t,"end",this,3)([])}},{key:"destroy",value:function(){Zo(t,"destroy",this,3)([])}}])}(_o);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 $o(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var es=function(e){function t(e){var i;return c()(this,t),(i=Qo(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()){$o(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||"EPSG:4490"===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||"EPSG:4490"===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),$o(t,"destroy",this,3)([])}},{key:"end",value:function(){$o(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}}])}(_o);function ts(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 is(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var ns=function(e){function t(e){return c()(this,t),ts(this,t,[e,{text:"左键单击确定控制点位置,右键单击取消垂直高度测量!"}])}return Me()(t,e),h()(t,[{key:"start",value:function(){var e=this;if(!YJ.Measure.GetMeasureStatus()){is(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))),e.tip.set_text("左键单击确定终点位置,完成垂直高度测量!"),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.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+" 米"}})),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(){is(t,"end",this,3)([])}},{key:"destroy",value:function(){is(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}}])}(_o);function os(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 ss(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var as=function(e){function t(e){var i;return c()(this,t),(i=os(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(){ss(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;ss(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)}))}))}}}])}(_o);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))}function ls(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var cs=function(e){function t(e){var i;return c()(this,t),(i=rs(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(){ls(t,"end",this,3)([])}},{key:"destroy",value:function(){var e=this;ls(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=10;break}return e.end(),t.abrupt("return");case 10:if(e.ids.push(e.create_point(n)),e.ids.push(e.create_point(n)),2!==e.ids.length){t.next=21;break}return e.label_id=Cesium.createGuid(),e.arc_id=Cesium.createGuid(),p=e.cartesian3Towgs84(n,e.viewer),t.next=18,e.sampleHeightMostDetailed([p]);case 18: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 21: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)}))}))}}}])}(_o);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 hs=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(i=us(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(),e(c.length))})),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),e(c.length))})),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(),e(c.length))})),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}}])}(Mn.a);function ps(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 ds(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=ms(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[ds({},h),ds({},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=Dn()(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(ds({},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(ds({},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(ds({},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(ds({},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}}])}(Mn.a),vs=i(26);function gs(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),gs(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=Dn()(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.tipText||"左键开始,右键取消",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(r.tipText||"再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),p.push(i),c(),e(u)),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.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&r.point_id&&(r.remove_entity(r.circle_id),r.remove_entity(r.point_id),r.point_id=null,p=[],h=[],m=[],f={},v=null,e(u=0))})),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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(r.tipText||"再次左键,完成绘制;右键取消"),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),e(u)),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_keyboard_ctrl((function(t,i){"3D"!==l&&r.point_id&&(r.remove_entity(r.circle_id),r.remove_entity(r.point_id),r.point_id=null,p=[],h=[],m=[],f={},v=null,e(u=0))})));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()}}])}(Mn.a);function bs(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 Cs=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),bs(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=Dn()(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.tipText||"左键开始,右键取消",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})):e(h)}})),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.event.mouse_right_keyboard_ctrl((function(t,i){"2D"!==l&&(r.remove_entity(r.points_ids.pop()),h--,e(h),0==h&&r.remove_entity(r.elliptic_id))})),!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})):e(h)}})),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()}}])}(Mn.a);function ws(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 ks=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),ws(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=Dn()(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.tipText||"左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new te.a(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(i,n){if("2D"!==l){l="3D";var o=r.cartesian3Towgs84(n,r.viewer),s=c[c.length-1];if(!s||s.lng!==o.lng||s.lat!==o.lat){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(o),u=!1,e(c.length)}}})),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(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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),_s(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=Dn()(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.tipText||"左键确定,右键取消;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)}else e(c.length)}})),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(t,i){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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)}else e(c.length)}}))}})),!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)}else e(c.length)}})),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(t,i){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),e(c.length))})),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)}else e(c.length)}}))}})))}}}],[{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=Ss(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;Es(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(){Es(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=Os(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=Dn()(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.tipText||"左键确定,右键取消",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])):e(u)}})),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.mouse_right_keyboard_ctrl((function(t,i){"2D"!==c&&r.points_ids.length>=1&&(r.remove_entity(r.points_ids.pop()),r.polygonHasCreated=!1,r.rect=[],u--,e(u))})),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])):e(u)}}))}})),!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])):e(u)}})),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.mouse_right_keyboard_ctrl((function(t,i){"3D"!==c&&r.points_ids.length>=1&&(r.remove_entity(r.points_ids.pop()),r.polygonHasCreated=!1,r.rect=[],u--,e(u))})),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])):e(u)}}))}})))}}},{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}}])}(Mn.a);function Ms(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=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}var Ns=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ms(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;Ts(t,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new St.a(this.tipText||"左键确定,右键取消;",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))if(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()}else e(o.length)})),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.mouse_right_keyboard_ctrl((function(t,s){"2D"!==n&&i.points_ids.length>=1&&(1===i.points_ids.length&&(i.viewer.entities.remove(i.assemblePolygon),i.assemblePolygon=void 0),i.remove_entity(i.points_ids.pop()),o.pop(),i.anchorpoints.pop(),e(o.length))})),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)),e(o.length)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new te.a(this._sdk2D),this.event2D.mouse_left((function(t,s){if("3D"!==n&&(n="2D",s))if(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()}else e(o.length)})),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.mouse_right_keyboard_ctrl((function(t,s){"3D"!==n&&i.points_ids.length>=1&&(1===i.points_ids.length&&(i.viewer.entities.remove(i.assemblePolygon),i.assemblePolygon=void 0),i.remove_entity(i.points_ids.pop()),o.pop(),i.anchorpoints.pop(),e(o.length))})),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)),e(o.length)}}))}})))}}},{key:"end",value:function(){Ts(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),Bs(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=Dn()(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(this.tipText||"左键确认,右键取消",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)),e(l._positions.length)):(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.event.mouse_right_keyboard_ctrl((function(t,n){"2D"!==i&&l._positions.length>=1&&(l.remove_entity(l.points_ids.pop()),l.remove_entity(l.points_ids.pop()),l.remove_entity(l._sector_id),l._sector_id=void 0,l._positions.pop(),l._positions.pop(),e(l._positions.length))})),!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)),e(l._positions.length)):(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))})),this.event2D.mouse_right_keyboard_ctrl((function(t,n){"3D"!==i&&l._positions.length>=1&&(l.remove_entity(l.points_ids.pop()),l.remove_entity(l.points_ids.pop()),l.remove_entity(l._sector_id),l._sector_id=void 0,l._positions.pop(),l._positions.pop(),e(l._positions.length))}))))}},{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)}}}])}(Mn.a),As=52.35987755982988,Ls=3.141592653589793,Is=.006693421622965943,Rs=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*As),s=Math.atan2(n,i)-3e-6*Math.cos(i*As);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*As),n=Math.atan2(t,e)+3e-6*Math.cos(e*As);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*Ls,s=Math.sin(o);s=1-Is*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*Ls),n=180*n/(6378245*(1-Is)/(s*a)*Ls)]}},{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*Ls)+20*Math.sin(2*e*Ls))/3,i+=2*(20*Math.sin(e*Ls)+40*Math.sin(e/3*Ls))/3,i+=2*(150*Math.sin(e/12*Ls)+300*Math.sin(e/30*Ls))/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*Ls)+20*Math.sin(2*e*Ls))/3,i+=2*(20*Math.sin(t*Ls)+40*Math.sin(t/3*Ls))/3,i+=2*(160*Math.sin(t/12*Ls)+320*Math.sin(t*Ls/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 zs(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 Fs=function(e){function t(e,i){var n;return c()(this,t),(n=zs(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=Dn()(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 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 Vs(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=Gs(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;Ws(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=Vs({},this.options.position):this.options.positions?a=Vs({},this.options.positions[0]):this.options.center?a=Vs({},this.options.center):this.options.start?a=Vs({},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=Gs(this,t,[e]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(e,t){return t=Rs.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=Rs.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}(Fs);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 Js=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:"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),Ks(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=Ks(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)}(Qs),ea=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ks(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)}(Qs),ta=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Ks(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)}(Qs);function ia(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 na(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)?na(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 na(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 ma(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=fa(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=da(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}(pa);function ga(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 ya(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)?ya(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 ya(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),ka(i=wa(this,t,[e,n]),Ea,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=Ca({},e);delete n.features,t.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(Ca(Ca({},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(xa(Ea,this)),_a(Ea,this,setTimeout((function(){clearTimeout(xa(Ea,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=ga(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 Da(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 Ma(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 Aa(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=Ra(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=Ia({},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 Ta(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 Ta(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(){za(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=Ia({},this.options.position):this.options.positions?a=Ia({},this.options.positions[0]):this.options.center?a=Ia({},this.options.center):this.options.start?a=Ia({},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(){za(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){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){var t=this;this.options.position={lng:Number(Number(e).toFixed(8)),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(e){e.value=t.options.position.lng}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(e){var t=this;this.options.position={lng:this.options.position.lng,lat:Number(Number(e).toFixed(8)),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(e){e.value=t.options.position.lat}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(e){var t=this;this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt: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.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(e){e.value=t.options.position.alt}))}},{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){var t=this;this.options.rotate.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.rotateX&&this._elms.rotateX.forEach((function(e){e.value=t.options.rotate.x}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(e){var t=this;this.options.rotate.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.rotateY&&this._elms.rotateY.forEach((function(e){e.value=t.options.rotate.y}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(e){var t=this;this.options.rotate.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.rotateZ&&this._elms.rotateZ.forEach((function(e){e.value=t.options.rotate.z}))}},{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=Oa(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}(Ba);function Ha(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 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),(i=Ya(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=Ha(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=Ka(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=Za({},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=$a(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 or(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),ar(i=sr(this,t,[e,n]),ur,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(lr(ur,this)),rr(ur,this,setTimeout((function(){clearTimeout(lr(ur,a)),a.terrainProvider.readyPromise.then((function(){var e,t=nr(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=ir({},this.options.position):this.options.positions?r=ir({},this.options.positions[0]):this.options.center?r=ir({},this.options.center):this.options.start?r=ir({},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=Dn()(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}(Fs);function pr(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 dr(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)?dr(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 dr(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=yr(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=gr({},this.options.position):this.options.positions?r=gr({},this.options.positions[0]):this.options.center?r=gr({},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("*"),fr.on(this,o),this._elms=fr.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 br(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:gr({},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:gr({},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:gr({},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 wr(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 kr(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)?kr(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 kr(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=Pr(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=Er({},this.options.position):this.options.positions?r=Er({},this.options.positions[0]):this.options.center?r=Er({},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("*"),xr.on(this,o),this._elms=xr.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 Or(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:Er({},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:Er({},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:Er({},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 Mr(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 Tr(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)?Tr(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 Tr(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=Lr(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=Ar({},this.options.position):this.options.positions?r=Ar({},this.options.positions[0]):this.options.center?r=Ar({},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("*"),Br.on(this,o),this._elms=Br.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 Ir(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:Ar({},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:Ar({},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:Ar({},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 zr(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 Fr(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)?Fr(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 Fr(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||"#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=Vr({},this.options.position):this.options.positions?r=Vr({},this.options.positions[0]):this.options.line&&this.options.line.positions?r=Vr({},this.options.line.positions[0]):this.options.center?r=Vr({},this.options.center):this.options.start?r=Vr({},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.syncData)(r.sdk,r.options.id),Object(Z.syncSplitData)(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,Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{key:"remove",value:(i=_()(S.a.mark((function e(){var i;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Rr(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:if(i=Object(J.getSdk)().sdkD,this.sdk===i){e.next=12;break}return e.next=12,Object(J.syncData)(this.sdk,this.options.id);case 12: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:Lr({},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:Lr({},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:Lr({},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=Br(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 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 Vr(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)?Vr(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 Vr(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=Ur(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 Xr(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 Zr(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=Kr(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=Zr({},this.options.position):this.options.positions?r=Zr({},this.options.positions[0]):this.options.center?r=Zr({},this.options.center):this.options.start?r=Zr({},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 el(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 tl(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)?tl(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 tl(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=ol(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=nl({},this.options.position):this.options.positions?r=nl({},this.options.positions[0]):this.options.center?r=nl({},this.options.center):this.options.start?r=nl({},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 rl(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 ll(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=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.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=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(!(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),D=turf.length(P,{units:"kilometers"}),O=t/this.spreadTime;this.TweenAnimate=new TWEEN.Tween({distance1:k*O,distance2:E*O,distance3:D*O}).to({distance1:k,distance2:E,distance3:D},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*O,distance2:E*O,distance3:D*O}),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 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;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 fl(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=vl(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=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(){})),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 bl(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 Cl(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)?Cl(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 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]:{};return c()(this,t),(i=_l(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=kl({},this.options.position):this.options.positions?r=kl({},this.options.positions[0]):this.options.center?r=kl({},this.options.center):this.options.start?r=kl({},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:kl({},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=kl({},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]}))}),200),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("",kl({},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 El(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 Pl(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)?Pl(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 Pl(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=Ml(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=Ol({},this.options.position):this.options.positions?r=Ol({},this.options.positions[0]):this.options.center?r=Ol({},this.options.center):this.options.start?r=Ol({},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.syncData)(e.sdk,e.options.id),e.options.show&&Object(Z.setSplitDirection)(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=El(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 Bl(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 jl(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)?jl(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 jl(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=Il(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 Fl(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 Hl(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)?Hl(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 Hl(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=Wl(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 D=_;_=E+180,E=D+180,P=!1}var O=turf.sector([C.lng,C.lat,C.alt],this.options.width/1e3/2,_,E,{units:"kilometers"});if(console.log("sector",O),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()(O.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]),D=turf.point(nt()(E.geometry.coordinates[0][Math.ceil(E.geometry.coordinates[0].length/2)])),O=turf.bearing(P,D),M=turf.destination(P,S/1e3,O,{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 Jl(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 ql(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)?ql(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 ql(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=$l(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||0===n.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.get3DView)().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=Yl(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("*"),Zl.on(this,c),this._elms=Zl.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)},O=0;O0&&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=Ql({},this.options.position):this.options.positions?r=Ql({},this.options.positions[0]):this.options.center?r=Ql({},this.options.center):this.options.start?r=Ql({},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=nc(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=ic({},this.options.position):this.options.positions?r=ic({},this.options.positions[0]):this.options.center?r=ic({},this.options.center):this.options.start?r=ic({},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,Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{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:ic({},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:ic({},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:ic({},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.syncData)(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.syncData)(e.sdk,e.options.id),e.options.show&&Object(Z.setSplitDirection)(0,e.options.id)}}]);var i,n,o}(vt);function sc(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 ac(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 rc(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=lc(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.speed=i.speed||1,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 1e3}},{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})),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=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=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.speed=this.originalOptions.speed,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,Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{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.syncData)(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.speed?360/e.duration*Cesium.getTimestamp()*e.options.speed: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.speed?360/e.duration*Cesium.getTimestamp()*e.options.speed: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.syncData)(e.sdk,e.options.id),e.options.show&&Object(Z.setSplitDirection)(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 uc(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 hc(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 pc(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)?pc(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 pc(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=fc(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=mc({},this.options.position):this.options.positions?r=mc({},this.options.positions[0]):this.options.center?r=mc({},this.options.center):this.options.start?r=mc({},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=[mc({},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);setTimeout((function(){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]}))}),200),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=gc(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=_n()(De()(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 bc(e,t,i){return t=De()(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||[],De()(e).constructor):t.apply(e,i))}var Cc=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=bc(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=_n()(De()(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=_c(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.syncData)(s.sdk,s.options.id),Object(Z.syncSplitData)(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,Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{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=kc({},this.options.position):this.options.positions?r=kc({},this.options.positions[0]):this.options.center?r=kc({},this.options.center):this.options.start?r=kc({},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.syncData)(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 Ec(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),Mc(i=Oc(this,t,[e,n]),Nc,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.get2DView)();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.get2DView)(),n=Object(Z.getSdk)();if((Object(J.get2DView)()||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.getSdk)(),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=Dc({},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=Dc({},t.firstPersonHeadingPitch)),n=Dc({},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.syncSplitData)(this.sdk,this.options.id)}},{key:"viewFollow",get:function(){return this.options.viewFollow},set:function(e){Object(Z.getSdk)();var t=Object(J.get2DView)();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.get3DView)();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.syncSplitData)(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.get2DView)(),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.get3DView)()?Object(J.get3DView)().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?(X=A+90+n.firstPersonHeadingPitch.heading,n.routeDirection||(X=180-X),n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(X),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=n.model.heading+90+n.firstPersonHeadingPitch.heading;n.routeDirection||(e=180-e);var t=Dc({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:t,orientation:{heading:Cesium.Math.toRadians(e),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.syncData)(u.sdk,u.options.id),Object(Z.syncSplitData)(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.getSdk)();Object(J.get2DView)()||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 Ac(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),zc(i=Rc(this,t,[e,n]),Vc,!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,D=Cesium.HeadingPitchRoll.fromDegrees(n.current.heading,n.current.pitch,n.current.roll),O=0,M=0,T=0,n.options.routeDirection?(O=(d.heading-D.heading)*(180/Math.PI)-90+n.current.heading,M=d.pitch*(180/Math.PI)):(O=n.current.heading,M=n.current.pitch),T=n.current.roll,!(isNaN(O)||isNaN(M)||isNaN(T))){e.next=65;break}return e.abrupt("return");case 65:(O<0||O>180)&&(M=-M),n.current={position:l,heading:O,pitch:M,roll:T},w&&(w=!1,n._first={position:l,heading:O,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=D.length>1&&void 0!==D[1]?D[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=jc(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=Ic({},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=Wc(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._error="上一次测量未结束";else{this._error=null;this.sdk.viewer;Object(X.a)(this.sdk,!1),(e=t,i="start",n=this,o=3,s=_n()(De()(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}(xn.a),Yc=i(33),Jc=i.n(Yc);function qc(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 Xc(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)?Xc(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 Xc(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=Qc(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:Kc({},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,Jc()(De()(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:Kc({},this.options.position)}),this.position=Kc({},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=Kc({},this.options.position):this.options.position?r=Kc({},this.options.position[0]):this.options.center?r=Kc({},this.options.center):this.options.start?r=Kc({},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 tu=i(41),iu=i.n(tu),nu=i(26),ou=i.n(nu);function su(e,t,i,n){var o=_n()(De()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}function au(e,t,i){return t=De()(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 Wr(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.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: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.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: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.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=zr(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 Jr(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 qr(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)?qr(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 qr(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=Kr(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 tl(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 il(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=nl(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=il({},this.options.position):this.options.positions?r=il({},this.options.positions[0]):this.options.center?r=il({},this.options.center):this.options.start?r=il({},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 al(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 rl(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)?rl(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 rl(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=ul(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=cl({},this.options.position):this.options.positions?r=cl({},this.options.positions[0]):this.options.center?r=cl({},this.options.center):this.options.start?r=cl({},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 dl(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 ml(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=fl(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=ml({},this.options.position):this.options.positions?r=ml({},this.options.positions[0]):this.options.center?r=ml({},this.options.center):this.options.start?r=ml({},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 yl(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 bl(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 wl(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=kl(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=bl({},this.options.position):this.options.positions?r=bl({},this.options.positions[0]):this.options.center?r=bl({},this.options.center):this.options.start?r=bl({},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 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 El(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)?El(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 El(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=Dl(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=Ol({},this.options.position):this.options.positions?r=Ol({},this.options.positions[0]):this.options.center?r=Ol({},this.options.center):this.options.start?r=Ol({},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:Ol({},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=Ol({},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]}))}),200),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("",Ol({},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 Nl(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 Bl(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)?Bl(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 Bl(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=Ll(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=Al({},this.options.position):this.options.positions?r=Al({},this.options.positions[0]):this.options.center?r=Al({},this.options.center):this.options.start?r=Al({},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=Nl(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 zl(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 Fl(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)?Fl(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 Fl(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=Gl(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 Yl(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 Jl(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)?Jl(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 Jl(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=Zl(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 $l(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 ec(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)?ec(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 ec(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=sc(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||0===n.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=Ql(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("*"),ic.on(this,c),this._elms=ic.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=oc({},this.options.position):this.options.positions?r=oc({},this.options.positions[0]):this.options.center?r=oc({},this.options.center):this.options.start?r=oc({},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=cc(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=lc({},this.options.position):this.options.positions?r=lc({},this.options.positions[0]):this.options.center?r=lc({},this.options.center):this.options.start?r=lc({},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:lc({},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:lc({},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:lc({},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 hc(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 pc(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 dc(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return c()(this,t),(n=mc(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.speed=i.speed||1,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 1e3}},{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})),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=dc({},this.options.position):this.options.positions?r=dc({},this.options.positions[0]):this.options.center?r=dc({},this.options.center):this.options.start?r=dc({},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.speed=this.originalOptions.speed,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.speed?360/e.duration*Cesium.getTimestamp()*e.options.speed: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.speed?360/e.duration*Cesium.getTimestamp()*e.options.speed: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 vc(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 gc(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 yc(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)?yc(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 yc(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=wc(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=Cc({},this.options.position):this.options.positions?r=Cc({},this.options.positions[0]):this.options.center?r=Cc({},this.options.center):this.options.start?r=Cc({},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=[Cc({},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);setTimeout((function(){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]}))}),200),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=_c(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=Dn()(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 Sc(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 Ec=function(e){function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,t),(i=Sc(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=Dn()(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=Dc(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=Oc({},this.options.position):this.options.positions?r=Oc({},this.options.positions[0]):this.options.center?r=Oc({},this.options.center):this.options.start?r=Oc({},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 Nc(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),Lc(i=Ac(this,t,[e,n]),Rc,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=jc({},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=jc({},t.firstPersonHeadingPitch)),n=jc({},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?(X=A+90+n.firstPersonHeadingPitch.heading,n.routeDirection||(X=180-X),n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(X),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=n.model.heading+90+n.firstPersonHeadingPitch.heading;n.routeDirection||(e=180-e);var t=jc({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:t,orientation:{heading:Cesium.Math.toRadians(e),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 Hc(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),Uc(i=Wc(this,t,[e,n]),qc,!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=Fc(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=Gc({},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=Zc(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._error="上一次测量未结束";else{this._error=null;this.sdk.viewer;Object(X.a)(this.sdk,!1),(e=t,i="start",n=this,o=3,s=Dn()(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}(Mn.a),Qc=i(32),$c=i.n(Qc);function eu(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 tu(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)?tu(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 tu(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=ou(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:nu({},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,$c()(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:nu({},this.options.position)}),this.position=nu({},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=nu({},this.options.position):this.options.position?r=nu({},this.options.position[0]):this.options.center?r=nu({},this.options.center):this.options.start?r=nu({},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 ru=i(40),lu=i.n(ru),cu=i(25),uu=i.n(cu);function hu(e,t,i,n){var o=Dn()(Oe()(1&n?e.prototype:e),t,i);return 2&n&&"function"==typeof o?function(e){return o.apply(i,e)}:o}function pu(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||[],De()(e).constructor):t.apply(e,i))}var ru=1014,lu=1020,cu=2400,uu=2401,hu="srgb",pu="srgb-linear",du="display-p3",mu="display-p3-linear",fu="linear",vu="srgb",gu="rec709",yu=7680,bu=35044,Cu=2e3,wu=2001,ku=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]+_u[e>>16&255]+_u[e>>24&255]+"-"+_u[255&t]+_u[t>>8&255]+"-"+_u[t>>16&15|64]+_u[t>>24&255]+"-"+_u[63&i|128]+_u[i>>8&255]+"-"+_u[i>>16&255]+_u[i>>24&255]+_u[255&n]+_u[n>>8&255]+_u[n>>16&255]+_u[n>>24&255]).toLowerCase()}function Eu(e,t,i){return Math.max(t,Math.min(i,e))}function Pu(e,t){return(e%t+t)%t}function Du(e,t,i){return(1-i)*e+i*t}function Ou(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 Mu(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 Tu=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(Eu(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)}))}])}(),Nu=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(Bu.makeScale(e,t)),this}},{key:"rotate",value:function(e){return this.premultiply(Bu.makeRotation(-e)),this}},{key:"translate",value:function(e,t){return this.premultiply(Bu.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)}}])}(),Bu=new Nu;function ju(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 Au(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}var Lu={};function Iu(e){e in Lu||(Lu[e]=!0,console.warn(e))}var Ru,zu=(new Nu).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Fu=(new Nu).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hu=r()(r()(r()(r()({},pu,{transfer:fu,primaries:gu,toReference:function(e){return e},fromReference:function(e){return e}}),hu,{transfer:vu,primaries:gu,toReference:function(e){return e.convertSRGBToLinear()},fromReference:function(e){return e.convertLinearToSRGB()}}),mu,{transfer:fu,primaries:"p3",toReference:function(e){return e.applyMatrix3(Fu)},fromReference:function(e){return e.applyMatrix3(zu)}}),du,{transfer:vu,primaries:"p3",toReference:function(e){return e.convertSRGBToLinear().applyMatrix3(Fu)},fromReference:function(e){return e.applyMatrix3(zu).convertLinearToSRGB()}}),Vu=new Set([pu,mu]),Gu={enabled:!0,_workingColorSpace:pu,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Vu.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=Hu[t].toReference;return(0,Hu[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 Hu[e].primaries},getTransfer:function(e){return""===e?fu:Hu[e].transfer}};function Wu(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Uu(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Yu=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===Ru&&(Ru=Au("canvas")),Ru.width=e.width,Ru.height=e.height;var i=Ru.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Ru}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=Au("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:Ju++}),this.uuid=Su(),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=au(this,t)).isTexture=!0,Object.defineProperty(ou()(e),"id",{value:Zu++}),e.uuid=Su(),e.name="",e.source=new qu(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 Tu(0,0),e.repeat=new Tu(1,1),e.center=new Tu(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new Nu,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++}}])}(ku);Ku.DEFAULT_IMAGE=null,Ku.DEFAULT_MAPPING=300,Ku.DEFAULT_ANISOTROPY=1;var Qu=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)}))}])}(),$u=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=au(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)}(Ku),eh=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=au(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)}(Ku),th=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(Eu(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}}])}(),ih=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(oh.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(oh.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 nh.copy(this).projectOnVector(e),this.sub(nh)}},{key:"reflect",value:function(e){return this.sub(nh.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(Eu(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)}))}])}(),nh=new ih,oh=new th,sh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih(-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,rh),rh.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(fh),vh.subVectors(this.max,fh),ch.subVectors(e.a,fh),uh.subVectors(e.b,fh),hh.subVectors(e.c,fh),ph.subVectors(uh,ch),dh.subVectors(hh,uh),mh.subVectors(ch,hh);var t=[0,-ph.z,ph.y,0,-dh.z,dh.y,0,-mh.z,mh.y,ph.z,0,-ph.x,dh.z,0,-dh.x,mh.z,0,-mh.x,-ph.y,ph.x,0,-dh.y,dh.x,0,-mh.y,mh.x,0];return!!bh(t,ch,uh,hh,vh)&&(!!bh(t=[1,0,0,0,1,0,0,0,1],ch,uh,hh,vh)&&(gh.crossVectors(ph,dh),bh(t=[gh.x,gh.y,gh.z],ch,uh,hh,vh)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return this.clampPoint(e,rh).distanceTo(e)}},{key:"getBoundingSphere",value:function(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(rh).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()||(ah[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ah[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ah[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ah[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ah[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ah[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ah[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ah[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ah)),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)}}])}(),ah=[new ih,new ih,new ih,new ih,new ih,new ih,new ih,new ih],rh=new ih,lh=new sh,ch=new ih,uh=new ih,hh=new ih,ph=new ih,dh=new ih,mh=new ih,fh=new ih,vh=new ih,gh=new ih,yh=new ih;function bh(e,t,i,n,o){for(var s=0,a=e.length-3;s<=a;s+=3){yh.fromArray(e,s);var r=o.x*Math.abs(yh.x)+o.y*Math.abs(yh.y)+o.z*Math.abs(yh.z),l=t.dot(yh),c=i.dot(yh),u=n.dot(yh);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var Ch=new sh,wh=new ih,kh=new ih,_h=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih,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):Ch.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;wh.subVectors(e,this.center);var t=wh.lengthSq();if(t>this.radius*this.radius){var i=Math.sqrt(t),n=.5*(i-this.radius);this.center.addScaledVector(wh,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):(kh.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(wh.copy(e.center).add(kh)),this.expandByPoint(wh.copy(e.center).sub(kh))),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)}}])}(),xh=new ih,Sh=new ih,Eh=new ih,Ph=new ih,Dh=new ih,Oh=new ih,Mh=new ih,Th=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih(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,xh)),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=xh.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(xh.copy(this.origin).addScaledVector(this.direction,t),xh.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,i,n){Sh.copy(e).add(t).multiplyScalar(.5),Eh.copy(t).sub(e).normalize(),Ph.copy(this.origin).sub(Sh);var o,s,a,r,l=.5*e.distanceTo(t),c=-this.direction.dot(Eh),u=Ph.dot(this.direction),h=-Ph.dot(Eh),p=Ph.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(Sh).addScaledVector(Eh,s),a}},{key:"intersectSphere",value:function(e,t){xh.subVectors(e.center,this.origin);var i=xh.dot(this.direction),n=xh.dot(xh)-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,xh)}},{key:"intersectTriangle",value:function(e,t,i,n,o){Dh.subVectors(t,e),Oh.subVectors(i,e),Mh.crossVectors(Dh,Oh);var s,a=this.direction.dot(Mh);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Ph.subVectors(this.origin,e);var r=s*this.direction.dot(Oh.crossVectors(Ph,Oh));if(r<0)return null;var l=s*this.direction.dot(Dh.cross(Ph));if(l<0)return null;if(r+l>a)return null;var c=-s*Ph.dot(Mh);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)}}])}(),Nh=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/Bh.setFromMatrixColumn(e,0).length(),o=1/Bh.setFromMatrixColumn(e,1).length(),s=1/Bh.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,D=s*l,O=a*r,M=a*l;t[0]=r*c,t[4]=M-P*u,t[8]=O*u+D,t[1]=u,t[5]=s*c,t[9]=-a*c,t[2]=-l*c,t[6]=D*u+O,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(Ah,e,Lh)}},{key:"lookAt",value:function(e,t,i){var n=this.elements;return zh.subVectors(e,t),0===zh.lengthSq()&&(zh.z=1),zh.normalize(),Ih.crossVectors(i,zh),0===Ih.lengthSq()&&(1===Math.abs(i.z)?zh.x+=1e-4:zh.z+=1e-4,zh.normalize(),Ih.crossVectors(i,zh)),Ih.normalize(),Rh.crossVectors(zh,Ih),n[0]=Ih.x,n[4]=Rh.x,n[8]=zh.x,n[1]=Ih.y,n[5]=Rh.y,n[9]=zh.y,n[2]=Ih.z,n[6]=Rh.z,n[10]=zh.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],D=n[13],O=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*O+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*D+r*N+l*L,o[1]=c*w+u*S+h*O+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*D+h*N+p*L,o[2]=d*w+m*S+f*O+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*D+f*N+v*L,o[3]=g*w+y*S+b*O+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*D+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=Bh.set(n[0],n[1],n[2]).length(),s=Bh.set(n[4],n[5],n[6]).length(),a=Bh.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],jh.copy(this);var r=1/o,l=1/s,c=1/a;return jh.elements[0]*=r,jh.elements[1]*=r,jh.elements[2]*=r,jh.elements[4]*=l,jh.elements[5]*=l,jh.elements[6]*=l,jh.elements[8]*=c,jh.elements[9]*=c,jh.elements[10]*=c,t.setFromRotationMatrix(jh),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===Cu)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==wu)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===Cu)a=(s+o)*p,r=-2*p;else{if(l!==wu)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}}])}(),Bh=new ih,jh=new Nh,Ah=new ih(0,0,0),Lh=new ih(1,1,1),Ih=new ih,Rh=new ih,zh=new ih,Fh=new Nh,Hh=new th,Vh=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(Eu(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(-Eu(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(Eu(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(-Eu(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(Eu(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(-Eu(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 Fh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Fh,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 Hh.setFromEuler(this),this.setFromQuaternion(Hh,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)}))}])}();Vh.DEFAULT_ORDER="XYZ";var Gh=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 ih,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ih;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 ap.subVectors(this.c,this.b),rp.subVectors(this.a,this.b),.5*ap.cross(rp).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;up.subVectors(s,o),hp.subVectors(a,o),dp.subVectors(e,o);var r=up.dot(dp),l=hp.dot(dp);if(r<=0&&l<=0)return t.copy(o);mp.subVectors(e,s);var c=up.dot(mp),u=hp.dot(mp);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(up,i);fp.subVectors(e,a);var p=up.dot(fp),d=hp.dot(fp);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(hp,n);var f=c*d-p*u;if(f<=0&&u-c>=0&&p-d>=0)return pp.subVectors(a,s),n=(u-c)/(u-c+(p-d)),t.copy(s).addScaledVector(pp,n);var v=1/(f+m+h);return i=m*v,n=h*v,t.copy(o).addScaledVector(up,i).addScaledVector(hp,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),ap.subVectors(e,t),n.cross(ap);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){ap.subVectors(n,t),rp.subVectors(i,t),lp.subVectors(e,t);var s=ap.dot(ap),a=ap.dot(rp),r=ap.dot(lp),l=rp.dot(rp),c=rp.dot(lp),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,cp)&&cp.x>=0&&cp.y>=0&&cp.x+cp.y<=1}},{key:"getInterpolation",value:function(e,t,i,n,o,s,a,r){return null===this.getBarycoord(e,t,i,n,cp)?(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,cp.x),r.addScaledVector(s,cp.y),r.addScaledVector(a,cp.z),r)}},{key:"isFrontFacing",value:function(e,t,i,n){return ap.subVectors(i,t),rp.subVectors(e,t),ap.cross(rp).dot(n)<0}}])}(),gp={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},yp={h:0,s:0,l:0},bp={h:0,s:0,l:0};function Cp(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 wp=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]:hu;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Gu.toWorkingColorSpace(this,t),this}},{key:"setRGB",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Gu.workingColorSpace;return this.r=e,this.g=t,this.b=i,Gu.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Gu.workingColorSpace;if(e=Pu(e,1),t=Eu(t,0,1),i=Eu(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=Cp(s,o,e+1/3),this.g=Cp(s,o,e),this.b=Cp(s,o,e-1/3)}return Gu.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hu;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]:hu,i=gp[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=Wu(e.r),this.g=Wu(e.g),this.b=Wu(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=Uu(e.r),this.g=Uu(e.g),this.b=Uu(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]:hu;return Gu.fromWorkingColorSpace(kp.copy(this),e),65536*Math.round(Eu(255*kp.r,0,255))+256*Math.round(Eu(255*kp.g,0,255))+Math.round(Eu(255*kp.b,0,255))}},{key:"getHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu;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]:Gu.workingColorSpace;Gu.fromWorkingColorSpace(kp.copy(this),t);var i,n,o=kp.r,s=kp.g,a=kp.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]:Gu.workingColorSpace;return Gu.fromWorkingColorSpace(kp.copy(this),t),e.r=kp.r,e.g=kp.g,e.b=kp.b,e}},{key:"getStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu;Gu.fromWorkingColorSpace(kp.copy(this),e);var t=kp.r,i=kp.g,n=kp.b;return e!==hu?"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(yp),this.setHSL(yp.h+e,yp.s+t,yp.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(yp),e.getHSL(bp);var i=Du(yp.h,bp.h,t),n=Du(yp.s,bp.s,t),o=Du(yp.l,bp.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)}))}])}(),kp=new wp;wp.NAMES=gp;var _p=0,xp=function(e){function t(){var e;return c()(this,t),(e=au(this,t)).isMaterial=!0,Object.defineProperty(ou()(e),"id",{value:_p++}),e.uuid=Su(),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 wp(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=yu,e.stencilZFail=yu,e.stencilZPass=yu,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!==yu&&(i.stencilFail=this.stencilFail),this.stencilZFail!==yu&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==yu&&(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++}}])}(ku),Sp=function(e){function t(e){var i;return c()(this,t),(i=au(this,t)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new wp(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 Vh,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 su(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}}])}(xp);!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 Ep=new ih,Pp=new Tu,Dp=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=bu,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 Iu("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=Ou(i,this.array)),i}},{key:"setComponent",value:function(e,t,i){return this.normalized&&(i=Mu(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=Ou(t,this.array)),t}},{key:"setX",value:function(e,t){return this.normalized&&(t=Mu(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=Ou(t,this.array)),t}},{key:"setY",value:function(e,t){return this.normalized&&(t=Mu(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=Ou(t,this.array)),t}},{key:"setZ",value:function(e,t){return this.normalized&&(t=Mu(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=Ou(t,this.array)),t}},{key:"setW",value:function(e,t){return this.normalized&&(t=Mu(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=Mu(t,this.array),i=Mu(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=Mu(t,this.array),i=Mu(i,this.array),n=Mu(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=Mu(t,this.array),i=Mu(i,this.array),n=Mu(n,this.array),o=Mu(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!==bu&&(e.usage=this.usage),e}}])}(),Op=function(e){function t(e,i,n){return c()(this,t),au(this,t,[new Uint16Array(e),i,n])}return Me()(t,e),h()(t)}(Dp),Mp=function(e){function t(e,i,n){return c()(this,t),au(this,t,[new Uint32Array(e),i,n])}return Me()(t,e),h()(t)}(Dp),Tp=function(e){function t(e,i,n){return c()(this,t),au(this,t,[new Float32Array(e),i,n])}return Me()(t,e),h()(t)}(Dp),Np=0,Bp=new Nh,jp=new sp,Ap=new ih,Lp=new sh,Ip=new sh,Rp=new ih,zp=function(e){function t(){var e;return c()(this,t),(e=au(this,t)).isBufferGeometry=!0,Object.defineProperty(ou()(e),"id",{value:Np++}),e.uuid=Su(),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(ju(e)?Mp:Op)(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 Nu).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 Bp.makeRotationFromQuaternion(e),this.applyMatrix4(Bp),this}},{key:"rotateX",value:function(e){return Bp.makeRotationX(e),this.applyMatrix4(Bp),this}},{key:"rotateY",value:function(e){return Bp.makeRotationY(e),this.applyMatrix4(Bp),this}},{key:"rotateZ",value:function(e){return Bp.makeRotationZ(e),this.applyMatrix4(Bp),this}},{key:"translate",value:function(e,t,i){return Bp.makeTranslation(e,t,i),this.applyMatrix4(Bp),this}},{key:"scale",value:function(e,t,i){return Bp.makeScale(e,t,i),this.applyMatrix4(Bp),this}},{key:"lookAt",value:function(e){return jp.lookAt(e),jp.updateMatrix(),this.applyMatrix4(jp.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Ap).negate(),this.translate(Ap.x,Ap.y,Ap.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 zp,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sp;return c()(this,t),(e=au(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 su(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}Fp.copy(o).invert(),Hp.copy(e.ray).applyMatrix4(Fp),null!==i.boundingBox&&!1===Hp.intersectsBox(i.boundingBox)||this._computeIntersections(e,t,Hp)}}},{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:id.clone(),object:e}}(e,t,i,n,Wp,Up,Yp,td);if(u){o&&(Xp.fromBufferAttribute(o,r),Zp.fromBufferAttribute(o,l),Kp.fromBufferAttribute(o,c),u.uv=vp.getInterpolation(td,Wp,Up,Yp,Xp,Zp,Kp,new Tu)),s&&(Xp.fromBufferAttribute(s,r),Zp.fromBufferAttribute(s,l),Kp.fromBufferAttribute(s,c),u.uv1=vp.getInterpolation(td,Wp,Up,Yp,Xp,Zp,Kp,new Tu)),a&&(Qp.fromBufferAttribute(a,r),$p.fromBufferAttribute(a,l),ed.fromBufferAttribute(a,c),u.normal=vp.getInterpolation(td,Wp,Up,Yp,Qp,$p,ed,new ih),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var h={a:r,b:l,c:c,normal:new ih,materialIndex:0};vp.getNormal(Wp,Up,Yp,h.normal),u.face=h}return u}var sd=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=au(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 ih,D=0;D0?1:-1,p.push(P.x,P.y,P.z),d.push(M/c),d.push(1-D/v),S+=1}for(var N=0;N0&&void 0!==arguments[0]?arguments[0]:new ih(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=ud.subVectors(i,t).cross(hd.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(ud),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||pd.getNormalMatrix(e),n=this.coplanarPoint(ud).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)}}])}(),md=new _h,fd=new ih,vd=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new dd,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new dd,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new dd,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new dd,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new dd,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new dd;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===Cu)i[5].setComponents(r+a,h+u,f+m,b+y).normalize();else{if(t!==wu)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(),md.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{var t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),md.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(md)}},{key:"intersectsSprite",value:function(e){return md.center.set(0,0,0),md.radius=.7071067811865476,md.applyMatrix4(e.matrixWorld),this.intersectsSphere(md)}},{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,fd.y=n.normal.y>0?e.max.y:e.min.y,fd.z=n.normal.z>0?e.max.z:e.min.z,n.distanceToPoint(fd)<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 gd=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=au(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}"},bd={common:{diffuse:{value:new wp(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Nu},alphaMap:{value:null},alphaMapTransform:{value:new Nu},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Nu}},envmap:{envMap:{value:null},envMapRotation:{value:new Nu},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Nu}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Nu}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Nu},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Nu},normalScale:{value:new Tu(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Nu},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Nu}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Nu}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Nu}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new wp(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 wp(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Nu},alphaTest:{value:0},uvTransform:{value:new Nu}},sprite:{diffuse:{value:new wp(16777215)},opacity:{value:1},center:{value:new Tu(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Nu},alphaMap:{value:null},alphaMapTransform:{value:new Nu},alphaTest:{value:0}}},Cd={basic:{uniforms:rd([bd.common,bd.specularmap,bd.envmap,bd.aomap,bd.lightmap,bd.fog]),vertexShader:yd.meshbasic_vert,fragmentShader:yd.meshbasic_frag},lambert:{uniforms:rd([bd.common,bd.specularmap,bd.envmap,bd.aomap,bd.lightmap,bd.emissivemap,bd.bumpmap,bd.normalmap,bd.displacementmap,bd.fog,bd.lights,{emissive:{value:new wp(0)}}]),vertexShader:yd.meshlambert_vert,fragmentShader:yd.meshlambert_frag},phong:{uniforms:rd([bd.common,bd.specularmap,bd.envmap,bd.aomap,bd.lightmap,bd.emissivemap,bd.bumpmap,bd.normalmap,bd.displacementmap,bd.fog,bd.lights,{emissive:{value:new wp(0)},specular:{value:new wp(1118481)},shininess:{value:30}}]),vertexShader:yd.meshphong_vert,fragmentShader:yd.meshphong_frag},standard:{uniforms:rd([bd.common,bd.envmap,bd.aomap,bd.lightmap,bd.emissivemap,bd.bumpmap,bd.normalmap,bd.displacementmap,bd.roughnessmap,bd.metalnessmap,bd.fog,bd.lights,{emissive:{value:new wp(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:yd.meshphysical_vert,fragmentShader:yd.meshphysical_frag},toon:{uniforms:rd([bd.common,bd.aomap,bd.lightmap,bd.emissivemap,bd.bumpmap,bd.normalmap,bd.displacementmap,bd.gradientmap,bd.fog,bd.lights,{emissive:{value:new wp(0)}}]),vertexShader:yd.meshtoon_vert,fragmentShader:yd.meshtoon_frag},matcap:{uniforms:rd([bd.common,bd.bumpmap,bd.normalmap,bd.displacementmap,bd.fog,{matcap:{value:null}}]),vertexShader:yd.meshmatcap_vert,fragmentShader:yd.meshmatcap_frag},points:{uniforms:rd([bd.points,bd.fog]),vertexShader:yd.points_vert,fragmentShader:yd.points_frag},dashed:{uniforms:rd([bd.common,bd.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:yd.linedashed_vert,fragmentShader:yd.linedashed_frag},depth:{uniforms:rd([bd.common,bd.displacementmap]),vertexShader:yd.depth_vert,fragmentShader:yd.depth_frag},normal:{uniforms:rd([bd.common,bd.bumpmap,bd.normalmap,bd.displacementmap,{opacity:{value:1}}]),vertexShader:yd.meshnormal_vert,fragmentShader:yd.meshnormal_frag},sprite:{uniforms:rd([bd.sprite,bd.fog]),vertexShader:yd.sprite_vert,fragmentShader:yd.sprite_frag},background:{uniforms:{uvTransform:{value:new Nu},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:yd.background_vert,fragmentShader:yd.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Nu}},vertexShader:yd.backgroundCube_vert,fragmentShader:yd.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:yd.cube_vert,fragmentShader:yd.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:yd.equirect_vert,fragmentShader:yd.equirect_frag},distanceRGBA:{uniforms:rd([bd.common,bd.displacementmap,{referencePosition:{value:new ih},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:yd.distanceRGBA_vert,fragmentShader:yd.distanceRGBA_frag},shadow:{uniforms:rd([bd.lights,bd.fog,{color:{value:new wp(0)},opacity:{value:1}}]),vertexShader:yd.shadow_vert,fragmentShader:yd.shadow_frag}};Cd.physical={uniforms:rd([Cd.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Nu},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Nu},clearcoatNormalScale:{value:new Tu(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Nu},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Nu},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Nu},sheen:{value:0},sheenColor:{value:new wp(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Nu},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Nu},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Nu},transmissionSamplerSize:{value:new Tu},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Nu},attenuationDistance:{value:0},attenuationColor:{value:new wp(0)},specularColor:{value:new wp(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Nu},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Nu},anisotropyVector:{value:new Tu},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Nu}}]),vertexShader:yd.meshphysical_vert,fragmentShader:yd.meshphysical_frag};new Vh,new Nh;var wd=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=au(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 su(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=su(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}}])}(ld),kd=(new wd,new wp,(1+Math.sqrt(5))/2),_d=1/kd;new ih(-kd,_d,0),new ih(kd,_d,0),new ih(-_d,0,kd),new ih(_d,0,kd),new ih(0,kd,-_d),new ih(0,kd,_d),new ih(-1,1,-1),new ih(1,1,-1),new ih(-1,1,1),new ih(1,1,1);var xd=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=ru),void 0===n&&1027===h&&(n=lu),(p=au(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 su(t,"copy",this,3)([e]),this.compareFunction=e.compareFunction,this}},{key:"toJSON",value:function(e){var i=su(t,"toJSON",this,3)([e]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(Ku),Sd=(new Ku,new xd(1,1));Sd.compareFunction=515;new $u,new eh,new cd,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new Vh,new Nh;new ih,new ih,new ih,new ih,new Tu,new Tu,new Nh,new ih,new ih,new ih,new Tu,new Tu,new Tu;new ih,new ih,new ih,new Qu,new Qu,new ih,new Nh,new ih,new _h,new Nh,new Th,new Nh,new Nh,new Nh,new Nh,new sh,new Nh,new nd,new _h;var Ed=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 Nh,new Nh,new Nh,new Nh,new vd,new sh,new _h,new ih,new Ed,new nd;new ih,new ih,new Nh,new Th,new _h,new ih,new ih;new ih,new ih,new Nh,new Th,new _h,new ih;var Pd=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 Tu:new ih);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 ih,n=[],o=[],s=[],a=new ih,r=new Nh,l=0;l<=e;l++){var c=l/e;n[l]=this.getTangentAt(c,new ih)}o[0]=new ih,s[0]=new ih;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(Eu(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(Eu(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}}])}(),Dd=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=au(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 Tu,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=au(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 ih,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]:(Td.subVectors(s[0],s[1]).add(s[0]),t=Td);var u=s[l%a],h=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new Tu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Tu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Tu,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Tu;return c()(this,t),(e=au(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 Tu,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Rd(e,n.x,o.x,s.x,a.x),Rd(e,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(e){return su(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=su(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 su(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}}])}(Pd),Fd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ih,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ih;return c()(this,t),(e=au(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 ih,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Rd(e,n.x,o.x,s.x,a.x),Rd(e,n.y,o.y,s.y,a.y),Rd(e,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(e){return su(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=su(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 su(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}}])}(Pd),Hd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Tu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Tu;return c()(this,t),(e=au(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 Tu,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 Tu;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 su(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=su(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return su(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Pd),Vd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih;return c()(this,t),(e=au(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 ih,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 ih;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 su(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=su(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return su(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Pd),Gd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Tu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Tu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Tu;return c()(this,t),(e=au(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 Tu,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Id(e,n.x,o.x,s.x),Id(e,n.y,o.y,s.y)),i}},{key:"copy",value:function(e){return su(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=su(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 su(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Pd),Wd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ih,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ih,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ih;return c()(this,t),(e=au(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 ih,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Id(e,n.x,o.x,s.x),Id(e,n.y,o.y,s.y),Id(e,n.z,o.z,s.z)),i}},{key:"copy",value:function(e){return su(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=su(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 su(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Pd),Ud=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c()(this,t),(e=au(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 Tu,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(Ld(a,r.x,l.x,c.x,u.x),Ld(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(e){su(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 su(t,"copy",this,3)([e]),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=su(t,"toJSON",this,3)([]);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return su(t,"fromJSON",this,3)([e]),this.currentPoint.fromArray(e.currentPoint),this}}])}(function(e){function t(){var e;return c()(this,t),(e=au(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 Yd[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){su(t,"copy",this,3)([e]),this.curves=[];for(var i=0,n=e.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new Tu(0,-.5),new Tu(.5,0),new Tu(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=au(this,t)).type="LatheGeometry",e.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=Eu(s,0,2*Math.PI);for(var a=[],r=[],l=[],u=[],h=[],p=1/n,d=new ih,m=new Tu,f=new ih,v=new ih,g=new ih,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],D=u[3*S+0]*x;h.push(E,P,D)}for(var O=0;O0&&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 Jd;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(e=au(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)}}])}(qd),Zd=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=au(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 ih,p=new Tu;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 Tp(r,3)),e.setAttribute("normal",new Tp(l,3)),e.setAttribute("uv",new Tp(u,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return su(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)}}])}(zp),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]: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=au(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 Tu,a=new ih,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 Tp(d,3)),e.setAttribute("normal",new Tp(m,3)),e.setAttribute("uv",new Tp(f,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return su(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)}}])}(zp),Qd=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=au(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)}}])}(Kd),$d=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=au(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 Tp(a,3)),e.setAttribute("normal",new Tp(a.slice(),3)),e.setAttribute("uv",new Tp(r,2)),0===s?e.computeVertexNormals():e.normalizeNormals(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return su(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)}}])}(zp),em=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=au(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)}}])}($d),tm=new ih,im=new ih,nm=new ih,om=new vp,sm=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=au(this,t)).type="EdgesGeometry",e.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(xu*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=Dm(s,e[s],e[s+1],a);return a&&km(a,a.next)&&(Om(a),a=a.next),a}function lm(e,t){if(!e)return e;t||(t=e);var i,n=e;do{if(i=!1,n.steiner||!km(n,n.next)&&0!==wm(n.prev,n,n.next))n=n.next;else{if(Om(n),(n=t=n.prev)===n.next)break;i=!0}}while(i||n!==t);return t}function cm(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=gm(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?hm(e,n,o,s):um(e))t.push(r.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),Om(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?cm(e=pm(lm(e),t,i),t,i,n,o,s,2):2===a&&dm(e,t,i,n,o,s):cm(lm(e),t,i,n,o,s,1);break}}}function um(e){var t=e.prev,i=e,n=e.next;if(wm(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&&bm(o,r,s,l,a,c,m.x,m.y)&&wm(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function hm(e,t,i,n){var o=e.prev,s=e,a=e.next;if(wm(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=gm(d,m,t,i,n),y=gm(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&&bm(r,u,l,h,c,p,b.x,b.y)&&wm(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&&bm(r,u,l,h,c,p,C.x,C.y)&&wm(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&&bm(r,u,l,h,c,p,b.x,b.y)&&wm(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&&bm(r,u,l,h,c,p,C.x,C.y)&&wm(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function pm(e,t,i){var n=e;do{var o=n.prev,s=n.next.next;!km(o,s)&&_m(o,n,n.next,s)&&Em(o,s)&&Em(s,o)&&(t.push(o.i/i|0),t.push(n.i/i|0),t.push(s.i/i|0),Om(n),Om(n.next),n=e=s),n=n.next}while(n!==e);return lm(n)}function dm(e,t,i,n,o,s){var a=e;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&Cm(a,r)){var l=Pm(a,r);return a=lm(a,a.next),l=lm(l,l.next),cm(a,t,i,n,o,s,0),void cm(l,t,i,n,o,s,0)}r=r.next}a=a.next}while(a!==e)}function mm(e,t){return e.x-t.x}function fm(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&&bm(ai.x||n.x===i.x&&vm(i,n)))&&(i=n,p=l)),n=n.next}while(n!==c);return i}(e,t);if(!i)return t;var n=Pm(i,e);return lm(n,n.next),lm(i,i.next)}function vm(e,t){return wm(e.prev,e,t.prev)<0&&wm(t.next,e,e.next)<0}function gm(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 ym(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 Cm(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&&_m(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Em(e,t)&&Em(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)&&(wm(e.prev,e,t.prev)||wm(e,t.prev,t))||km(e,t)&&wm(e.prev,e,e.next)>0&&wm(t.prev,t,t.next)>0)}function wm(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function km(e,t){return e.x===t.x&&e.y===t.y}function _m(e,t,i,n){var o=Sm(wm(e,t,i)),s=Sm(wm(e,t,n)),a=Sm(wm(i,n,e)),r=Sm(wm(i,n,t));return o!==s&&a!==r||!(0!==o||!xm(e,i,t))||!(0!==s||!xm(e,n,t))||!(0!==a||!xm(i,e,n))||!(0!==r||!xm(i,t,n))}function xm(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 Sm(e){return e>0?1:e<0?-1:0}function Em(e,t){return wm(e.prev,e,e.next)<0?wm(e,t,e.next)>=0&&wm(e,e.prev,t)>=0:wm(e,t,e.prev)<0||wm(e,e.next,t)<0}function Pm(e,t){var i=new Mm(e.i,e.x,e.y),n=new Mm(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 Dm(e,t,i,n){var o=new Mm(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 Om(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 Mm(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 Tm=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=rm(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 cm(p,d,c,i,n,l,0),d}(i,n),l=0;l2&&e[t-1].equals(e[0])&&e.pop()}function Bm(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new am([new Tu(.5,.5),new Tu(-.5,.5),new Tu(-.5,-.5),new Tu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(e=au(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 Tu(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 Tu(n/s,o/s)}for(var I=[],R=0,z=O.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=O.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=au(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)}}])}($d),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]:0;return c()(this,t),(e=au(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)}}])}($d),Rm=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=au(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 ih,v=new Tu,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 am([new Tu(0,.5),new Tu(-.5,-.5),new Tu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;c()(this,t),(e=au(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=au(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 ih,m=new ih,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,D,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=au(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)}}])}($d),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]:.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=au(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 ih,d=new ih,m=new ih,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 Tp(l,3)),e.setAttribute("normal",new Tp(u,3)),e.setAttribute("uv",new Tp(h,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return su(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)}}])}(zp),Gm=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=au(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 ih,m=new ih,f=new ih,v=new ih,g=new ih,y=new ih,b=new ih,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 D=(s+1)*(E-1)+(P-1),O=(s+1)*E+(P-1),M=(s+1)*E+P,T=(s+1)*(E-1)+P;l.push(D,O,T),l.push(O,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 Tp(u,3)),e.setAttribute("normal",new Tp(h,3)),e.setAttribute("uv",new Tp(p,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return su(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)}}])}(zp),Wm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Wd(new ih(-1,-1,0),new ih(-1,1,0),new ih(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=au(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 ih,u=new ih,h=new Tu,p=new ih,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=au(this,t)).type="WireframeGeometry",e.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new ih,a=new ih;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&&qm(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:Jm(e.times,Array),values:Jm(e.values,Array)};var n=e.getInterpolation();n!==e.DefaultInterpolation&&(t.interpolation=n)}return t.type=e.ValueTypeName,t}}])}();$m.prototype.TimeBufferType=Float32Array,$m.prototype.ValueBufferType=Float32Array,$m.prototype.DefaultInterpolation=2301;var ef=function(e){function t(){return c()(this,t),au(this,t,arguments)}return Me()(t,e),h()(t)}($m);ef.prototype.ValueTypeName="bool",ef.prototype.ValueBufferType=Array,ef.prototype.DefaultInterpolation=2300,ef.prototype.InterpolantFactoryMethodLinear=void 0,ef.prototype.InterpolantFactoryMethodSmooth=void 0;var tf=function(e){function t(){return c()(this,t),au(this,t,arguments)}return Me()(t,e),h()(t)}($m);tf.prototype.ValueTypeName="color";var nf=function(e){function t(){return c()(this,t),au(this,t,arguments)}return Me()(t,e),h()(t)}($m);nf.prototype.ValueTypeName="number";var of=function(e){function t(e,i,n,o){return c()(this,t),au(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)th.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(Xm),sf=function(e){function t(){return c()(this,t),au(this,t,arguments)}return Me()(t,e),h()(t,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new of(this.times,this.values,this.getValueSize(),e)}}])}($m);sf.prototype.ValueTypeName="quaternion",sf.prototype.DefaultInterpolation=2301,sf.prototype.InterpolantFactoryMethodSmooth=void 0;var af=function(e){function t(){return c()(this,t),au(this,t,arguments)}return Me()(t,e),h()(t)}($m);af.prototype.ValueTypeName="string",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),au(this,t,arguments)}return Me()(t,e),h()(t)}($m);rf.prototype.ValueTypeName="vector";var lf=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 wf(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=kf(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.setSplitDirection)(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,Jc()(De()(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,D=4e3/(k=k*(10/3)*100)/5;P*=D;for(var O=0;O=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=bf({},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=bf({},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.syncData)(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=bf({},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 Sf(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=Ef(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=xf(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 Pf=e.sent,e.next=11,Pf.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",Pf.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})),Pf._element.title.style.height="40px",Pf._element.body.style.width="65%",Pf._element.body.style.height="80%",Pf._element.content.style.height="calc(100% - 40px)",Pf._element.content.style.overflow="hidden",Pf._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,Tf.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})),Tf._element.title.style.height="40px",Tf._element.body.style.width="65%",Tf._element.body.style.height="80%",Tf._element.content.style.height="calc(100% - 40px)",Tf._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 jf(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 Af(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)?Af(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 Af(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=Rf(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 Hf(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 Vf(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 zf=e.sent,e.next=11,zf.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",zf.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})),zf._element.title.style.height="40px",zf._element.body.style.width="65%",zf._element.body.style.height="80%",zf._element.content.style.height="calc(100% - 40px)",zf._element.content.style.overflow="hidden",zf._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,Gf.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})),Gf._element.title.style.height="40px",Gf._element.body.style.width="65%",Gf._element.body.style.height="80%",Gf._element.content.style.height="calc(100% - 40px)",Gf._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 Yf(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 Jf(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)?Jf(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 Jf(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),Kf(i=Zf(this,t,[e,n]),iv,void 0),Kf(i,nv,!1),Kf(i,ov,[]),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=tv,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=tv[i.options.disaster_type]?Xf({},tv[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 av(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 rv(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=lv(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:rv({},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.syncData)(this.sdk,this.options.id),this.options.show&&Object(Z.setSplitDirection)(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.syncData)(s.sdk,s.options.id),Object(Z.syncSplitData)(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:rv({},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=rv({},this.options.position):this.options.positions?c=rv({},this.options.positions[0]):this.options.center?c=rv({},this.options.center):this.options.start?c=rv({},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=uv(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=mv(this,t)).sdk=e,o.viwer=e.viewer,o.options=dv({},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:dv({},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:dv({},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=dv({},this.options.position):this.options.positions?r=dv({},this.options.positions[0]):this.options.center?r=dv({},this.options.center):this.options.start?r=dv({},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=wv({},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),Ev(i=Sv(this,t,[e,n]),Mv,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;Dv(Mv,e)&&Dv(Mv,e).destroy();var a=e;Pv(Mv,e,new Cesium.ScreenSpaceEventHandler(a.sdk.viewer.canvas)),Dv(Mv,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)):Dv(Mv,e)&&Dv(Mv,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(),Dv(Mv,this)&&Dv(Mv,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(vt);function Nv(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 Bv=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 jv(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 Av=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=Iv({},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=zv(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()}}])}(xn.a);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 Vv(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=Gv(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.syncData)(s.sdk,s.options.id),Object(Z.syncSplitData)(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,Object(J.syncData)(this.sdk,this.options.id),Object(Z.syncSplitData)(this.sdk,this.options.id))}},{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=Vv({},this.options.position):this.options.positions?a=Vv({},this.options.positions[0]):this.options.center?a=Vv({},this.options.center):this.options.start?a=Vv({},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 Yv(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=Qv({},i),this.sdk=Qv({},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 qv,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 Zv(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.syncData)(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 eg(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 tg(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.syncData)(o.sdk,o.options.id),Object(Z.syncSplitData)(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=tg({},this.options.position):this.options.positions?a=tg({},this.options.positions[0]):this.options.center?a=tg({},this.options.center):this.options.start?a=tg({},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=ag(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.getSdk)(),n=i.sdkP,this.sdk===n&&n?Object(J.syncData)(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.syncData)(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.syncData)(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=sg({},this.options.position):this.options.position?a=sg({},this.options.position[0]):this.options.center?a=sg({},this.options.center):this.options.start?a=sg({},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 lg(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 cg(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=ug(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 us.default(i.sdk);break;case"线":r=new ss(i.sdk);break;case"面":r=new cs(i.sdk)}r&&r.start((function(e,o){if(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 us.default(c.sdk);break;case"线":i=new ss(c.sdk);break;case"面":i=new cs(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.syncData)(c.sdk,c.options.id),Object(Z.syncSplitData)(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=cg({},this.options.position):this.options.positions?a=cg({},this.options.positions[0]):this.options.center?a=cg({},this.options.center):this.options.start?a=cg({},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:Ii.d,snow:Ii.f,fog:Ii.a,nightVision:Ii.c,skyStarry:Ii.e,illumination:Ii.b,Sunshine:$v},CameraController:X.a,CesiumContainer:X.b,setBillboardDefaultUrl:X.x,getBillboardDefaultUrl:X.j,multiViewportMode:{on:J.on,off:J.off,get2DView:J.get2DView,getSdk:J.getSdk,syncData:J.syncData},MouseCoordinate:function(e,t){if(e&&e.viewer){Oi=e,(Mi=Object(J.getSdk)().sdkD)||(Mi=Object(Z.getSdk)().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),Di=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){Oi=e,Di=function(e){for(var t=1;t

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

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

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

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

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

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

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

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

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

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

              海拔:").concat(Number(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(Number(a.z.toFixed(2)),"

              ")}}else{var g=Object(X.o)();s.innerHTML="EPSG:4326"===g||"EPSG:4490"===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:zi.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.on,off:Z.off,setActiveId:Z.setActiveId,getSdk:Z.getSdk,syncData:Z.syncSplitData},Contour:function(e){return hn.apply(this,arguments)},ContourStartDraw:function(e,t){if(e&&e.viewer){if(t)if(!e.viewer.terrainProvider.availability)return"未加载地形数据!";if(Yi=t,Object.keys(ln).forEach((function(e){Vi.uniforms[e]=ln[e]})),Yi){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)}pn(e)}else dn(e)}},ContourReset:function(){Ui=19,Ji=10,qi="#ffd000",Xi=!0,Zi=2.5,Ki="#43cf7c",Qi=!0,$i=1.8,en="#ff0000",tn=!1,nn=1,on="#64b6d9",sn=!1,an=1,rn="#d084d1"},ContourSetVal:function(e){Ui=e.secondaryLinesCount,Ji=e.equalHeightDistance,qi=un(e.activeColor),Xi=e.indexContourShow,Zi=e.indexContourWidth,Ki=un(e.indexContourColor),Qi=e.intermediateContourShow,$i=e.intermediateContourWidth,en=un(e.intermediateContourColor),tn=e.halfIntervalContourShow,nn=e.halfIntervalContourWidth,on=un(e.halfIntervalContourColor),sn=e.supplementaryContourShow,an=e.supplementaryContourWidth,rn=un(e.supplementaryContourColor)}},Measure:{GetMeasureStatus:function(){return YJ.Measure[pg]},SetMeasureStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[pg]=e},Clear:function(){YJ.Measure.Measures.forEach((function(e){e.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:ko,MeasureProjectionDistance:Po,MeasureSlopeDistance:No,MeasureTyArea:Io,MeasureTdArea:Vo,MeasureTriangle:Uo,MeasureLocation:qo,MeasureHeight:Ko,MeasureAngle:es,MeasureAzimuth:ns},Draw:{DrawPolyline:ss,DrawPolygon:Dn,DrawPoint:us.default,DrawCircle:ps,DrawElliptic:ms,DrawAttackArrow:vs,DrawPincerArrow:ys,DrawStraightArrow:ws,DrawRect:_s,DrawAssemble:Es,DrawSector:Ds,DrawTakeOff:Fv,DrawThreeRect:cs},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(e){e.destroy()}))},CutFillAnalysis:On,Submerge:Bn,ViewShed:In,CircleViewShed:Un,SlopeAspect:Xn,Profile:Kn,Visibility:$n,Contour:eo,Section:oo,TerrainExcavation:ro,Flat:po,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(e){e.destroy()}))}},CoordTransform:Ns,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(e){e.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=bv,window.YJ.Obj.BatchLoadObjModel=kv)}]); \ No newline at end of file + */()?Reflect.construct(t,i||[],Oe()(e).constructor):t.apply(e,i))}var du=1014,mu=1020,fu=2400,vu=2401,gu="srgb",yu="srgb-linear",bu="display-p3",Cu="display-p3-linear",wu="linear",ku="srgb",_u="rec709",xu=7680,Su=35044,Eu=2e3,Pu=2001,Ou=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]+Du[e>>16&255]+Du[e>>24&255]+"-"+Du[255&t]+Du[t>>8&255]+"-"+Du[t>>16&15|64]+Du[t>>24&255]+"-"+Du[63&i|128]+Du[i>>8&255]+"-"+Du[i>>16&255]+Du[i>>24&255]+Du[255&n]+Du[n>>8&255]+Du[n>>16&255]+Du[n>>24&255]).toLowerCase()}function Nu(e,t,i){return Math.max(t,Math.min(i,e))}function Bu(e,t){return(e%t+t)%t}function ju(e,t,i){return(1-i)*e+i*t}function Au(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 Lu(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 Iu=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(Nu(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)}))}])}(),Ru=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(zu.makeScale(e,t)),this}},{key:"rotate",value:function(e){return this.premultiply(zu.makeRotation(-e)),this}},{key:"translate",value:function(e,t){return this.premultiply(zu.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)}}])}(),zu=new Ru;function Fu(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 Hu(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}var Vu={};function Gu(e){e in Vu||(Vu[e]=!0,console.warn(e))}var Wu,Uu=(new Ru).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Yu=(new Ru).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Ju=r()(r()(r()(r()({},yu,{transfer:wu,primaries:_u,toReference:function(e){return e},fromReference:function(e){return e}}),gu,{transfer:ku,primaries:_u,toReference:function(e){return e.convertSRGBToLinear()},fromReference:function(e){return e.convertLinearToSRGB()}}),Cu,{transfer:wu,primaries:"p3",toReference:function(e){return e.applyMatrix3(Yu)},fromReference:function(e){return e.applyMatrix3(Uu)}}),bu,{transfer:ku,primaries:"p3",toReference:function(e){return e.convertSRGBToLinear().applyMatrix3(Yu)},fromReference:function(e){return e.applyMatrix3(Uu).convertLinearToSRGB()}}),qu=new Set([yu,Cu]),Xu={enabled:!0,_workingColorSpace:yu,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!qu.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=Ju[t].toReference;return(0,Ju[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 Ju[e].primaries},getTransfer:function(e){return""===e?wu:Ju[e].transfer}};function Zu(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Ku(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Qu=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===Wu&&(Wu=Hu("canvas")),Wu.width=e.width,Wu.height=e.height;var i=Wu.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Wu}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=Hu("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:$u++}),this.uuid=Tu(),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=pu(this,t)).isTexture=!0,Object.defineProperty(uu()(e),"id",{value:ih++}),e.uuid=Tu(),e.name="",e.source=new eh(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 Iu(0,0),e.repeat=new Iu(1,1),e.center=new Iu(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new Ru,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++}}])}(Ou);nh.DEFAULT_IMAGE=null,nh.DEFAULT_MAPPING=300,nh.DEFAULT_ANISOTROPY=1;var oh=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)}))}])}(),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=pu(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)}(nh),ah=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=pu(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)}(nh),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,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(Nu(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}}])}(),lh=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(uh.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(uh.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 ch.copy(this).projectOnVector(e),this.sub(ch)}},{key:"reflect",value:function(e){return this.sub(ch.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(Nu(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)}))}])}(),ch=new lh,uh=new rh,hh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh(-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,dh),dh.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(wh),kh.subVectors(this.max,wh),fh.subVectors(e.a,wh),vh.subVectors(e.b,wh),gh.subVectors(e.c,wh),yh.subVectors(vh,fh),bh.subVectors(gh,vh),Ch.subVectors(fh,gh);var t=[0,-yh.z,yh.y,0,-bh.z,bh.y,0,-Ch.z,Ch.y,yh.z,0,-yh.x,bh.z,0,-bh.x,Ch.z,0,-Ch.x,-yh.y,yh.x,0,-bh.y,bh.x,0,-Ch.y,Ch.x,0];return!!Sh(t,fh,vh,gh,kh)&&(!!Sh(t=[1,0,0,0,1,0,0,0,1],fh,vh,gh,kh)&&(_h.crossVectors(yh,bh),Sh(t=[_h.x,_h.y,_h.z],fh,vh,gh,kh)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return this.clampPoint(e,dh).distanceTo(e)}},{key:"getBoundingSphere",value:function(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(dh).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()||(ph[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ph[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ph[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ph[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ph[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ph[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ph[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ph[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ph)),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)}}])}(),ph=[new lh,new lh,new lh,new lh,new lh,new lh,new lh,new lh],dh=new lh,mh=new hh,fh=new lh,vh=new lh,gh=new lh,yh=new lh,bh=new lh,Ch=new lh,wh=new lh,kh=new lh,_h=new lh,xh=new lh;function Sh(e,t,i,n,o){for(var s=0,a=e.length-3;s<=a;s+=3){xh.fromArray(e,s);var r=o.x*Math.abs(xh.x)+o.y*Math.abs(xh.y)+o.z*Math.abs(xh.z),l=t.dot(xh),c=i.dot(xh),u=n.dot(xh);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var Eh=new hh,Ph=new lh,Oh=new lh,Dh=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh,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):Eh.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;Ph.subVectors(e,this.center);var t=Ph.lengthSq();if(t>this.radius*this.radius){var i=Math.sqrt(t),n=.5*(i-this.radius);this.center.addScaledVector(Ph,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):(Oh.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Ph.copy(e.center).add(Oh)),this.expandByPoint(Ph.copy(e.center).sub(Oh))),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)}}])}(),Mh=new lh,Th=new lh,Nh=new lh,Bh=new lh,jh=new lh,Ah=new lh,Lh=new lh,Ih=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh(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,Mh)),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=Mh.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Mh.copy(this.origin).addScaledVector(this.direction,t),Mh.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,i,n){Th.copy(e).add(t).multiplyScalar(.5),Nh.copy(t).sub(e).normalize(),Bh.copy(this.origin).sub(Th);var o,s,a,r,l=.5*e.distanceTo(t),c=-this.direction.dot(Nh),u=Bh.dot(this.direction),h=-Bh.dot(Nh),p=Bh.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(Th).addScaledVector(Nh,s),a}},{key:"intersectSphere",value:function(e,t){Mh.subVectors(e.center,this.origin);var i=Mh.dot(this.direction),n=Mh.dot(Mh)-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,Mh)}},{key:"intersectTriangle",value:function(e,t,i,n,o){jh.subVectors(t,e),Ah.subVectors(i,e),Lh.crossVectors(jh,Ah);var s,a=this.direction.dot(Lh);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Bh.subVectors(this.origin,e);var r=s*this.direction.dot(Ah.crossVectors(Bh,Ah));if(r<0)return null;var l=s*this.direction.dot(jh.cross(Bh));if(l<0)return null;if(r+l>a)return null;var c=-s*Bh.dot(Lh);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)}}])}(),Rh=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/zh.setFromMatrixColumn(e,0).length(),o=1/zh.setFromMatrixColumn(e,1).length(),s=1/zh.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(Hh,e,Vh)}},{key:"lookAt",value:function(e,t,i){var n=this.elements;return Uh.subVectors(e,t),0===Uh.lengthSq()&&(Uh.z=1),Uh.normalize(),Gh.crossVectors(i,Uh),0===Gh.lengthSq()&&(1===Math.abs(i.z)?Uh.x+=1e-4:Uh.z+=1e-4,Uh.normalize(),Gh.crossVectors(i,Uh)),Gh.normalize(),Wh.crossVectors(Uh,Gh),n[0]=Gh.x,n[4]=Wh.x,n[8]=Uh.x,n[1]=Gh.y,n[5]=Wh.y,n[9]=Uh.y,n[2]=Gh.z,n[6]=Wh.z,n[10]=Uh.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=zh.set(n[0],n[1],n[2]).length(),s=zh.set(n[4],n[5],n[6]).length(),a=zh.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],Fh.copy(this);var r=1/o,l=1/s,c=1/a;return Fh.elements[0]*=r,Fh.elements[1]*=r,Fh.elements[2]*=r,Fh.elements[4]*=l,Fh.elements[5]*=l,Fh.elements[6]*=l,Fh.elements[8]*=c,Fh.elements[9]*=c,Fh.elements[10]*=c,t.setFromRotationMatrix(Fh),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===Eu)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==Pu)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===Eu)a=(s+o)*p,r=-2*p;else{if(l!==Pu)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}}])}(),zh=new lh,Fh=new Rh,Hh=new lh(0,0,0),Vh=new lh(1,1,1),Gh=new lh,Wh=new lh,Uh=new lh,Yh=new Rh,Jh=new rh,qh=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(Nu(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(-Nu(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(Nu(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(-Nu(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(Nu(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(-Nu(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 Yh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Yh,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 Jh.setFromEuler(this),this.setFromQuaternion(Jh,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)}))}])}();qh.DEFAULT_ORDER="XYZ";var Xh=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 lh,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new lh;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 pp.subVectors(this.c,this.b),dp.subVectors(this.a,this.b),.5*pp.cross(dp).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;vp.subVectors(s,o),gp.subVectors(a,o),bp.subVectors(e,o);var r=vp.dot(bp),l=gp.dot(bp);if(r<=0&&l<=0)return t.copy(o);Cp.subVectors(e,s);var c=vp.dot(Cp),u=gp.dot(Cp);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(vp,i);wp.subVectors(e,a);var p=vp.dot(wp),d=gp.dot(wp);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(gp,n);var f=c*d-p*u;if(f<=0&&u-c>=0&&p-d>=0)return yp.subVectors(a,s),n=(u-c)/(u-c+(p-d)),t.copy(s).addScaledVector(yp,n);var v=1/(f+m+h);return i=m*v,n=h*v,t.copy(o).addScaledVector(vp,i).addScaledVector(gp,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),pp.subVectors(e,t),n.cross(pp);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){pp.subVectors(n,t),dp.subVectors(i,t),mp.subVectors(e,t);var s=pp.dot(pp),a=pp.dot(dp),r=pp.dot(mp),l=dp.dot(dp),c=dp.dot(mp),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,fp)&&fp.x>=0&&fp.y>=0&&fp.x+fp.y<=1}},{key:"getInterpolation",value:function(e,t,i,n,o,s,a,r){return null===this.getBarycoord(e,t,i,n,fp)?(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,fp.x),r.addScaledVector(s,fp.y),r.addScaledVector(a,fp.z),r)}},{key:"isFrontFacing",value:function(e,t,i,n){return pp.subVectors(i,t),dp.subVectors(e,t),pp.cross(dp).dot(n)<0}}])}(),_p={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},xp={h:0,s:0,l:0},Sp={h:0,s:0,l:0};function Ep(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 Pp=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]:gu;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Xu.toWorkingColorSpace(this,t),this}},{key:"setRGB",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xu.workingColorSpace;return this.r=e,this.g=t,this.b=i,Xu.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xu.workingColorSpace;if(e=Bu(e,1),t=Nu(t,0,1),i=Nu(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=Ep(s,o,e+1/3),this.g=Ep(s,o,e),this.b=Ep(s,o,e-1/3)}return Xu.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gu;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]:gu,i=_p[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=Zu(e.r),this.g=Zu(e.g),this.b=Zu(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=Ku(e.r),this.g=Ku(e.g),this.b=Ku(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]:gu;return Xu.fromWorkingColorSpace(Op.copy(this),e),65536*Math.round(Nu(255*Op.r,0,255))+256*Math.round(Nu(255*Op.g,0,255))+Math.round(Nu(255*Op.b,0,255))}},{key:"getHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gu;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]:Xu.workingColorSpace;Xu.fromWorkingColorSpace(Op.copy(this),t);var i,n,o=Op.r,s=Op.g,a=Op.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]:Xu.workingColorSpace;return Xu.fromWorkingColorSpace(Op.copy(this),t),e.r=Op.r,e.g=Op.g,e.b=Op.b,e}},{key:"getStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gu;Xu.fromWorkingColorSpace(Op.copy(this),e);var t=Op.r,i=Op.g,n=Op.b;return e!==gu?"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(xp),this.setHSL(xp.h+e,xp.s+t,xp.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(xp),e.getHSL(Sp);var i=ju(xp.h,Sp.h,t),n=ju(xp.s,Sp.s,t),o=ju(xp.l,Sp.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)}))}])}(),Op=new Pp;Pp.NAMES=_p;var Dp=0,Mp=function(e){function t(){var e;return c()(this,t),(e=pu(this,t)).isMaterial=!0,Object.defineProperty(uu()(e),"id",{value:Dp++}),e.uuid=Tu(),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 Pp(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=xu,e.stencilZFail=xu,e.stencilZPass=xu,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!==xu&&(i.stencilFail=this.stencilFail),this.stencilZFail!==xu&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==xu&&(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++}}])}(Ou),Tp=function(e){function t(e){var i;return c()(this,t),(i=pu(this,t)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new Pp(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 qh,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 hu(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}}])}(Mp);!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 Np=new lh,Bp=new Iu,jp=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=Su,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 Gu("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=Au(i,this.array)),i}},{key:"setComponent",value:function(e,t,i){return this.normalized&&(i=Lu(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=Au(t,this.array)),t}},{key:"setX",value:function(e,t){return this.normalized&&(t=Lu(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=Au(t,this.array)),t}},{key:"setY",value:function(e,t){return this.normalized&&(t=Lu(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=Au(t,this.array)),t}},{key:"setZ",value:function(e,t){return this.normalized&&(t=Lu(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=Au(t,this.array)),t}},{key:"setW",value:function(e,t){return this.normalized&&(t=Lu(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=Lu(t,this.array),i=Lu(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=Lu(t,this.array),i=Lu(i,this.array),n=Lu(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=Lu(t,this.array),i=Lu(i,this.array),n=Lu(n,this.array),o=Lu(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!==Su&&(e.usage=this.usage),e}}])}(),Ap=function(e){function t(e,i,n){return c()(this,t),pu(this,t,[new Uint16Array(e),i,n])}return Me()(t,e),h()(t)}(jp),Lp=function(e){function t(e,i,n){return c()(this,t),pu(this,t,[new Uint32Array(e),i,n])}return Me()(t,e),h()(t)}(jp),Ip=function(e){function t(e,i,n){return c()(this,t),pu(this,t,[new Float32Array(e),i,n])}return Me()(t,e),h()(t)}(jp),Rp=0,zp=new Rh,Fp=new hp,Hp=new lh,Vp=new hh,Gp=new hh,Wp=new lh,Up=function(e){function t(){var e;return c()(this,t),(e=pu(this,t)).isBufferGeometry=!0,Object.defineProperty(uu()(e),"id",{value:Rp++}),e.uuid=Tu(),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(Fu(e)?Lp:Ap)(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 Ru).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 zp.makeRotationFromQuaternion(e),this.applyMatrix4(zp),this}},{key:"rotateX",value:function(e){return zp.makeRotationX(e),this.applyMatrix4(zp),this}},{key:"rotateY",value:function(e){return zp.makeRotationY(e),this.applyMatrix4(zp),this}},{key:"rotateZ",value:function(e){return zp.makeRotationZ(e),this.applyMatrix4(zp),this}},{key:"translate",value:function(e,t,i){return zp.makeTranslation(e,t,i),this.applyMatrix4(zp),this}},{key:"scale",value:function(e,t,i){return zp.makeScale(e,t,i),this.applyMatrix4(zp),this}},{key:"lookAt",value:function(e){return Fp.lookAt(e),Fp.updateMatrix(),this.applyMatrix4(Fp.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Hp).negate(),this.translate(Hp.x,Hp.y,Hp.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 Up,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Tp;return c()(this,t),(e=pu(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 hu(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}Yp.copy(o).invert(),Jp.copy(e.ray).applyMatrix4(Yp),null!==i.boundingBox&&!1===Jp.intersectsBox(i.boundingBox)||this._computeIntersections(e,t,Jp)}}},{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:ld.clone(),object:e}}(e,t,i,n,Zp,Kp,Qp,rd);if(u){o&&(td.fromBufferAttribute(o,r),id.fromBufferAttribute(o,l),nd.fromBufferAttribute(o,c),u.uv=kp.getInterpolation(rd,Zp,Kp,Qp,td,id,nd,new Iu)),s&&(td.fromBufferAttribute(s,r),id.fromBufferAttribute(s,l),nd.fromBufferAttribute(s,c),u.uv1=kp.getInterpolation(rd,Zp,Kp,Qp,td,id,nd,new Iu)),a&&(od.fromBufferAttribute(a,r),sd.fromBufferAttribute(a,l),ad.fromBufferAttribute(a,c),u.normal=kp.getInterpolation(rd,Zp,Kp,Qp,od,sd,ad,new lh),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var h={a:r,b:l,c:c,normal:new lh,materialIndex:0};kp.getNormal(Zp,Kp,Qp,h.normal),u.face=h}return u}var hd=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=pu(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 lh,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 lh(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=vd.subVectors(i,t).cross(gd.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(vd),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||yd.getNormalMatrix(e),n=this.coplanarPoint(vd).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)}}])}(),Cd=new Dh,wd=new lh,kd=function(){return h()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bd,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new bd,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new bd,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new bd,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new bd,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new bd;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===Eu)i[5].setComponents(r+a,h+u,f+m,b+y).normalize();else{if(t!==Pu)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(),Cd.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{var t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),Cd.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Cd)}},{key:"intersectsSprite",value:function(e){return Cd.center.set(0,0,0),Cd.radius=.7071067811865476,Cd.applyMatrix4(e.matrixWorld),this.intersectsSphere(Cd)}},{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,wd.y=n.normal.y>0?e.max.y:e.min.y,wd.z=n.normal.z>0?e.max.z:e.min.z,n.distanceToPoint(wd)<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 _d=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=pu(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}"},Sd={common:{diffuse:{value:new Pp(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ru},alphaMap:{value:null},alphaMapTransform:{value:new Ru},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ru}},envmap:{envMap:{value:null},envMapRotation:{value:new Ru},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ru}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ru}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ru},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ru},normalScale:{value:new Iu(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ru},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ru}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ru}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ru}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Pp(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 Pp(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ru},alphaTest:{value:0},uvTransform:{value:new Ru}},sprite:{diffuse:{value:new Pp(16777215)},opacity:{value:1},center:{value:new Iu(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ru},alphaMap:{value:null},alphaMapTransform:{value:new Ru},alphaTest:{value:0}}},Ed={basic:{uniforms:dd([Sd.common,Sd.specularmap,Sd.envmap,Sd.aomap,Sd.lightmap,Sd.fog]),vertexShader:xd.meshbasic_vert,fragmentShader:xd.meshbasic_frag},lambert:{uniforms:dd([Sd.common,Sd.specularmap,Sd.envmap,Sd.aomap,Sd.lightmap,Sd.emissivemap,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,Sd.fog,Sd.lights,{emissive:{value:new Pp(0)}}]),vertexShader:xd.meshlambert_vert,fragmentShader:xd.meshlambert_frag},phong:{uniforms:dd([Sd.common,Sd.specularmap,Sd.envmap,Sd.aomap,Sd.lightmap,Sd.emissivemap,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,Sd.fog,Sd.lights,{emissive:{value:new Pp(0)},specular:{value:new Pp(1118481)},shininess:{value:30}}]),vertexShader:xd.meshphong_vert,fragmentShader:xd.meshphong_frag},standard:{uniforms:dd([Sd.common,Sd.envmap,Sd.aomap,Sd.lightmap,Sd.emissivemap,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,Sd.roughnessmap,Sd.metalnessmap,Sd.fog,Sd.lights,{emissive:{value:new Pp(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:xd.meshphysical_vert,fragmentShader:xd.meshphysical_frag},toon:{uniforms:dd([Sd.common,Sd.aomap,Sd.lightmap,Sd.emissivemap,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,Sd.gradientmap,Sd.fog,Sd.lights,{emissive:{value:new Pp(0)}}]),vertexShader:xd.meshtoon_vert,fragmentShader:xd.meshtoon_frag},matcap:{uniforms:dd([Sd.common,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,Sd.fog,{matcap:{value:null}}]),vertexShader:xd.meshmatcap_vert,fragmentShader:xd.meshmatcap_frag},points:{uniforms:dd([Sd.points,Sd.fog]),vertexShader:xd.points_vert,fragmentShader:xd.points_frag},dashed:{uniforms:dd([Sd.common,Sd.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:xd.linedashed_vert,fragmentShader:xd.linedashed_frag},depth:{uniforms:dd([Sd.common,Sd.displacementmap]),vertexShader:xd.depth_vert,fragmentShader:xd.depth_frag},normal:{uniforms:dd([Sd.common,Sd.bumpmap,Sd.normalmap,Sd.displacementmap,{opacity:{value:1}}]),vertexShader:xd.meshnormal_vert,fragmentShader:xd.meshnormal_frag},sprite:{uniforms:dd([Sd.sprite,Sd.fog]),vertexShader:xd.sprite_vert,fragmentShader:xd.sprite_frag},background:{uniforms:{uvTransform:{value:new Ru},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:xd.background_vert,fragmentShader:xd.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ru}},vertexShader:xd.backgroundCube_vert,fragmentShader:xd.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:xd.cube_vert,fragmentShader:xd.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:xd.equirect_vert,fragmentShader:xd.equirect_frag},distanceRGBA:{uniforms:dd([Sd.common,Sd.displacementmap,{referencePosition:{value:new lh},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:xd.distanceRGBA_vert,fragmentShader:xd.distanceRGBA_frag},shadow:{uniforms:dd([Sd.lights,Sd.fog,{color:{value:new Pp(0)},opacity:{value:1}}]),vertexShader:xd.shadow_vert,fragmentShader:xd.shadow_frag}};Ed.physical={uniforms:dd([Ed.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ru},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ru},clearcoatNormalScale:{value:new Iu(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ru},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ru},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ru},sheen:{value:0},sheenColor:{value:new Pp(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ru},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ru},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ru},transmissionSamplerSize:{value:new Iu},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ru},attenuationDistance:{value:0},attenuationColor:{value:new Pp(0)},specularColor:{value:new Pp(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ru},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ru},anisotropyVector:{value:new Iu},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ru}}]),vertexShader:xd.meshphysical_vert,fragmentShader:xd.meshphysical_frag};new qh,new Rh;var Pd=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=pu(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 hu(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=hu(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}}])}(md),Od=(new Pd,new Pp,(1+Math.sqrt(5))/2),Dd=1/Od;new lh(-Od,Dd,0),new lh(Od,Dd,0),new lh(-Dd,0,Od),new lh(Dd,0,Od),new lh(0,Od,-Dd),new lh(0,Od,Dd),new lh(-1,1,-1),new lh(1,1,-1),new lh(-1,1,1),new lh(1,1,1);var Md=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=du),void 0===n&&1027===h&&(n=mu),(p=pu(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 hu(t,"copy",this,3)([e]),this.compareFunction=e.compareFunction,this}},{key:"toJSON",value:function(e){var i=hu(t,"toJSON",this,3)([e]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(nh),Td=(new nh,new Md(1,1));Td.compareFunction=515;new sh,new ah,new fd,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new qh,new Rh;new lh,new lh,new lh,new lh,new Iu,new Iu,new Rh,new lh,new lh,new lh,new Iu,new Iu,new Iu;new lh,new lh,new lh,new oh,new oh,new lh,new Rh,new lh,new Dh,new Rh,new Ih,new Rh,new Rh,new Rh,new Rh,new hh,new Rh,new cd,new Dh;var Nd=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 Rh,new Rh,new Rh,new Rh,new kd,new hh,new Dh,new lh,new Nd,new cd;new lh,new lh,new Rh,new Ih,new Dh,new lh,new lh;new lh,new lh,new Rh,new Ih,new Dh,new lh;var Bd=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 Iu:new lh);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 lh,n=[],o=[],s=[],a=new lh,r=new Rh,l=0;l<=e;l++){var c=l/e;n[l]=this.getTangentAt(c,new lh)}o[0]=new lh,s[0]=new lh;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(Nu(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(Nu(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}}])}(),jd=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=pu(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 Iu,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=pu(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 lh,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]:(Id.subVectors(s[0],s[1]).add(s[0]),t=Id);var u=s[l%a],h=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new Iu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Iu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Iu,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Iu;return c()(this,t),(e=pu(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 Iu,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Wd(e,n.x,o.x,s.x,a.x),Wd(e,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(e){return hu(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=hu(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 hu(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}}])}(Bd),Yd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new lh,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new lh;return c()(this,t),(e=pu(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 lh,i=t,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(Wd(e,n.x,o.x,s.x,a.x),Wd(e,n.y,o.y,s.y,a.y),Wd(e,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(e){return hu(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=hu(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 hu(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}}])}(Bd),Jd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Iu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Iu;return c()(this,t),(e=pu(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 Iu,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 Iu;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 hu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=hu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return hu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Bd),qd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh;return c()(this,t),(e=pu(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 lh,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 lh;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 hu(t,"copy",this,3)([e]),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=hu(t,"toJSON",this,3)([]);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return hu(t,"fromJSON",this,3)([e]),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Bd),Xd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Iu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Iu,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Iu;return c()(this,t),(e=pu(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 Iu,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Gd(e,n.x,o.x,s.x),Gd(e,n.y,o.y,s.y)),i}},{key:"copy",value:function(e){return hu(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=hu(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 hu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Bd),Zd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lh,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lh,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new lh;return c()(this,t),(e=pu(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 lh,i=t,n=this.v0,o=this.v1,s=this.v2;return i.set(Gd(e,n.x,o.x,s.x),Gd(e,n.y,o.y,s.y),Gd(e,n.z,o.z,s.z)),i}},{key:"copy",value:function(e){return hu(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=hu(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 hu(t,"fromJSON",this,3)([e]),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}])}(Bd),Kd=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c()(this,t),(e=pu(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 Iu,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(Vd(a,r.x,l.x,c.x,u.x),Vd(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(e){hu(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 hu(t,"copy",this,3)([e]),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=hu(t,"toJSON",this,3)([]);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return hu(t,"fromJSON",this,3)([e]),this.currentPoint.fromArray(e.currentPoint),this}}])}(function(e){function t(){var e;return c()(this,t),(e=pu(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 Qd[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){hu(t,"copy",this,3)([e]),this.curves=[];for(var i=0,n=e.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new Iu(0,-.5),new Iu(.5,0),new Iu(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=pu(this,t)).type="LatheGeometry",e.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=Nu(s,0,2*Math.PI);for(var a=[],r=[],l=[],u=[],h=[],p=1/n,d=new lh,m=new Iu,f=new lh,v=new lh,g=new lh,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 $d;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(e=pu(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)}}])}(em),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]: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=pu(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 lh,p=new Iu;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 Ip(r,3)),e.setAttribute("normal",new Ip(l,3)),e.setAttribute("uv",new Ip(u,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return hu(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)}}])}(Up),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]: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=pu(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 Iu,a=new lh,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 Ip(d,3)),e.setAttribute("normal",new Ip(m,3)),e.setAttribute("uv",new Ip(f,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return hu(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)}}])}(Up),om=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=pu(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)}}])}(nm),sm=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=pu(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 Ip(a,3)),e.setAttribute("normal",new Ip(a.slice(),3)),e.setAttribute("uv",new Ip(r,2)),0===s?e.computeVertexNormals():e.normalizeNormals(),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return hu(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)}}])}(Up),am=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=pu(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)}}])}(sm),rm=new lh,lm=new lh,cm=new lh,um=new kp,hm=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=pu(this,t)).type="EdgesGeometry",e.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(Mu*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=jm(s,e[s],e[s+1],a);return a&&Om(a,a.next)&&(Am(a),a=a.next),a}function mm(e,t){if(!e)return e;t||(t=e);var i,n=e;do{if(i=!1,n.steiner||!Om(n,n.next)&&0!==Pm(n.prev,n,n.next))n=n.next;else{if(Am(n),(n=t=n.prev)===n.next)break;i=!0}}while(i||n!==t);return t}function fm(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=_m(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?gm(e,n,o,s):vm(e))t.push(r.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),Am(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?fm(e=ym(mm(e),t,i),t,i,n,o,s,2):2===a&&bm(e,t,i,n,o,s):fm(mm(e),t,i,n,o,s,1);break}}}function vm(e){var t=e.prev,i=e,n=e.next;if(Pm(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&&Sm(o,r,s,l,a,c,m.x,m.y)&&Pm(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function gm(e,t,i,n){var o=e.prev,s=e,a=e.next;if(Pm(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=_m(d,m,t,i,n),y=_m(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&&Sm(r,u,l,h,c,p,b.x,b.y)&&Pm(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&&Sm(r,u,l,h,c,p,C.x,C.y)&&Pm(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&&Sm(r,u,l,h,c,p,b.x,b.y)&&Pm(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&&Sm(r,u,l,h,c,p,C.x,C.y)&&Pm(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function ym(e,t,i){var n=e;do{var o=n.prev,s=n.next.next;!Om(o,s)&&Dm(o,n,n.next,s)&&Nm(o,s)&&Nm(s,o)&&(t.push(o.i/i|0),t.push(n.i/i|0),t.push(s.i/i|0),Am(n),Am(n.next),n=e=s),n=n.next}while(n!==e);return mm(n)}function bm(e,t,i,n,o,s){var a=e;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&Em(a,r)){var l=Bm(a,r);return a=mm(a,a.next),l=mm(l,l.next),fm(a,t,i,n,o,s,0),void fm(l,t,i,n,o,s,0)}r=r.next}a=a.next}while(a!==e)}function Cm(e,t){return e.x-t.x}function wm(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&&Sm(ai.x||n.x===i.x&&km(i,n)))&&(i=n,p=l)),n=n.next}while(n!==c);return i}(e,t);if(!i)return t;var n=Bm(i,e);return mm(n,n.next),mm(i,i.next)}function km(e,t){return Pm(e.prev,e,t.prev)<0&&Pm(t.next,e,e.next)<0}function _m(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 xm(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 Em(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&&Dm(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Nm(e,t)&&Nm(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)&&(Pm(e.prev,e,t.prev)||Pm(e,t.prev,t))||Om(e,t)&&Pm(e.prev,e,e.next)>0&&Pm(t.prev,t,t.next)>0)}function Pm(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Om(e,t){return e.x===t.x&&e.y===t.y}function Dm(e,t,i,n){var o=Tm(Pm(e,t,i)),s=Tm(Pm(e,t,n)),a=Tm(Pm(i,n,e)),r=Tm(Pm(i,n,t));return o!==s&&a!==r||!(0!==o||!Mm(e,i,t))||!(0!==s||!Mm(e,n,t))||!(0!==a||!Mm(i,e,n))||!(0!==r||!Mm(i,t,n))}function Mm(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 Tm(e){return e>0?1:e<0?-1:0}function Nm(e,t){return Pm(e.prev,e,e.next)<0?Pm(e,t,e.next)>=0&&Pm(e,e.prev,t)>=0:Pm(e,t,e.prev)<0||Pm(e,e.next,t)<0}function Bm(e,t){var i=new Lm(e.i,e.x,e.y),n=new Lm(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 jm(e,t,i,n){var o=new Lm(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 Am(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 Lm(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 Im=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=dm(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 fm(p,d,c,i,n,l,0),d}(i,n),l=0;l2&&e[t-1].equals(e[0])&&e.pop()}function zm(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new pm([new Iu(.5,.5),new Iu(-.5,.5),new Iu(-.5,-.5),new Iu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),(e=pu(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 Iu(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 Iu(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=pu(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)}}])}(sm),Gm=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=pu(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)}}])}(sm),Wm=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=pu(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 lh,v=new Iu,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 pm([new Iu(0,.5),new Iu(-.5,-.5),new Iu(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;c()(this,t),(e=pu(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=pu(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 lh,m=new lh,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=pu(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)}}])}(sm),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]: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=pu(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 lh,d=new lh,m=new lh,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 Ip(l,3)),e.setAttribute("normal",new Ip(u,3)),e.setAttribute("uv",new Ip(h,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return hu(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)}}])}(Up),Xm=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=pu(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 lh,m=new lh,f=new lh,v=new lh,g=new lh,y=new lh,b=new lh,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 Ip(u,3)),e.setAttribute("normal",new Ip(h,3)),e.setAttribute("uv",new Ip(p,2)),e}return Me()(t,e),h()(t,[{key:"copy",value:function(e){return hu(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)}}])}(Up),Zm=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zd(new lh(-1,-1,0),new lh(-1,1,0),new lh(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=pu(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 lh,u=new lh,h=new Iu,p=new lh,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=pu(this,t)).type="WireframeGeometry",e.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new lh,a=new lh;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&&ef(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:$m(e.times,Array),values:$m(e.values,Array)};var n=e.getInterpolation();n!==e.DefaultInterpolation&&(t.interpolation=n)}return t.type=e.ValueTypeName,t}}])}();af.prototype.TimeBufferType=Float32Array,af.prototype.ValueBufferType=Float32Array,af.prototype.DefaultInterpolation=2301;var rf=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t)}(af);rf.prototype.ValueTypeName="bool",rf.prototype.ValueBufferType=Array,rf.prototype.DefaultInterpolation=2300,rf.prototype.InterpolantFactoryMethodLinear=void 0,rf.prototype.InterpolantFactoryMethodSmooth=void 0;var lf=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t)}(af);lf.prototype.ValueTypeName="color";var cf=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t)}(af);cf.prototype.ValueTypeName="number";var uf=function(e){function t(e,i,n,o){return c()(this,t),pu(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)rh.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(tf),hf=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new uf(this.times,this.values,this.getValueSize(),e)}}])}(af);hf.prototype.ValueTypeName="quaternion",hf.prototype.DefaultInterpolation=2301,hf.prototype.InterpolantFactoryMethodSmooth=void 0;var pf=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t)}(af);pf.prototype.ValueTypeName="string",pf.prototype.ValueBufferType=Array,pf.prototype.DefaultInterpolation=2300,pf.prototype.InterpolantFactoryMethodLinear=void 0,pf.prototype.InterpolantFactoryMethodSmooth=void 0;var df=function(e){function t(){return c()(this,t),pu(this,t,arguments)}return Me()(t,e),h()(t)}(af);df.prototype.ValueTypeName="vector";var mf=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 Pf(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=Of(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,$c()(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=Sf({},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=Sf({},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=Sf({},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 Tf(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=Nf(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:"destroyMouse",value:function(){this.tip&&this.tip.destroy(),this.event&&this.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=Mf(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 Bf=e.sent,e.next=11,Bf.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",Bf.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})),Bf._element.title.style.height="40px",Bf._element.body.style.width="65%",Bf._element.body.style.height="80%",Bf._element.content.style.height="calc(100% - 40px)",Bf._element.content.style.overflow="hidden",Bf._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,If.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})),If._element.title.style.height="40px",If._element.body.style.width="65%",If._element.body.style.height="80%",If._element.content.style.height="calc(100% - 40px)",If._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 Ff(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 Hf(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)?Hf(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 Hf(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=Wf(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 Jf(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 qf(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 Uf=e.sent,e.next=11,Uf.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",Uf.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})),Uf._element.title.style.height="40px",Uf._element.body.style.width="65%",Uf._element.body.style.height="80%",Uf._element.content.style.height="calc(100% - 40px)",Uf._element.content.style.overflow="hidden",Uf._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,Xf.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})),Xf._element.title.style.height="40px",Xf._element.body.style.width="65%",Xf._element.body.style.height="80%",Xf._element.content.style.height="calc(100% - 40px)",Xf._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 Qf(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 $f(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)?$f(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 $f(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),nv(i=iv(this,t,[e,n]),lv,void 0),nv(i,cv,!1),nv(i,uv,[]),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=rv,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=rv[i.options.disaster_type]?tv({},rv[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 pv(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 dv(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=mv(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:dv({},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:dv({},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=dv({},this.options.position):this.options.positions?c=dv({},this.options.positions[0]):this.options.center?c=dv({},this.options.center):this.options.start?c=dv({},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=vv(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=Cv(this,t)).sdk=e,o.viwer=e.viewer,o.options=bv({},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:bv({},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:bv({},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=bv({},this.options.position):this.options.positions?r=bv({},this.options.positions[0]):this.options.center?r=bv({},this.options.center):this.options.start?r=bv({},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=Pv({},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),Nv(i=Tv(this,t,[e,n]),Lv,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;jv(Lv,e)&&jv(Lv,e).destroy();var a=e;Bv(Lv,e,new Cesium.ScreenSpaceEventHandler(a.sdk.viewer.canvas)),jv(Lv,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)):jv(Lv,e)&&jv(Lv,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(),jv(Lv,this)&&jv(Lv,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(vt);function Rv(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 zv=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 Fv(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 Hv=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=Gv({},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=Uv(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()}}])}(Mn.a);function Jv(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 qv(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=Xv(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=qv({},this.options.position):this.options.positions?a=qv({},this.options.positions[0]):this.options.center?a=qv({},this.options.center):this.options.start?a=qv({},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 Qv(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=og({},i),this.sdk=og({},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 eg,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 ig(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 ag(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 rg(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=rg({},this.options.position):this.options.positions?a=rg({},this.options.positions[0]):this.options.center?a=rg({},this.options.center):this.options.start?a=rg({},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=pg(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=hg({},this.options.position):this.options.position?a=hg({},this.options.position[0]):this.options.center?a=hg({},this.options.center):this.options.start?a=hg({},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 mg(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 fg(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=vg(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 vs.default(i.sdk);break;case"线":r=new hs(i.sdk);break;case"面":r=new fs(i.sdk)}r&&r.start((function(e,o){if(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 vs.default(c.sdk);break;case"线":i=new hs(c.sdk);break;case"面":i=new fs(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=fg({},this.options.position):this.options.positions?a=fg({},this.options.positions[0]):this.options.center?a=fg({},this.options.center):this.options.start?a=fg({},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:sg},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,syncData:J.g},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(Number(d.alt.toFixed(2))," m

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

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

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

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

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

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

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

                海拔:").concat(Number(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(Number(a.z.toFixed(2)),"

                ")}}else{var g=Object(X.o)();s.innerHTML="EPSG:4326"===g||"EPSG:4490"===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,syncData:Z.g},Contour:function(e){return gn.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)}yn(e)}else bn(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"},ContourSetVal:function(e){Ki=e.secondaryLinesCount,$i=e.equalHeightDistance,en=vn(e.activeColor),tn=e.indexContourShow,nn=e.indexContourWidth,on=vn(e.indexContourColor),sn=e.intermediateContourShow,an=e.intermediateContourWidth,rn=vn(e.intermediateContourColor),ln=e.halfIntervalContourShow,cn=e.halfIntervalContourWidth,un=vn(e.halfIntervalContourColor),hn=e.supplementaryContourShow,pn=e.supplementaryContourWidth,dn=vn(e.supplementaryContourColor)}},Measure:{GetMeasureStatus:function(){return YJ.Measure[yg]},SetMeasureStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[yg]=e},Clear:function(){YJ.Measure.Measures.forEach((function(e){e.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:Oo,MeasureProjectionDistance:Bo,MeasureSlopeDistance:Ro,MeasureTyArea:Go,MeasureTdArea:qo,MeasureTriangle:Ko,MeasureLocation:es,MeasureHeight:ns,MeasureAngle:as,MeasureAzimuth:cs},Draw:{DrawPolyline:hs,DrawPolygon:jn,DrawPoint:vs.default,DrawCircle:ys,DrawElliptic:Cs,DrawAttackArrow:ks,DrawPincerArrow:xs,DrawStraightArrow:Ps,DrawRect:Ds,DrawAssemble:Ns,DrawSector:js,DrawTakeOff:Yv,DrawThreeRect:fs},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(e){e.destroy()}))},CutFillAnalysis:An,Submerge:zn,ViewShed:Gn,CircleViewShed:Kn,SlopeAspect:to,Profile:no,Visibility:so,Contour:ao,Section:uo,TerrainExcavation:mo,Flat:bo,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(e){e.destroy()}))}},CoordTransform:Rs,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(e){e.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=Sv,window.YJ.Obj.BatchLoadObjModel=Ov)}]); \ No newline at end of file diff --git a/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue b/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue index 0caebae..2b61f7d 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/modelManage.vue @@ -183,6 +183,7 @@ import type { DragEvents } from 'element-plus/es/components/tree/src/model/useDr import type { AllowDropType, NodeDropType, RenderContentContext } from 'element-plus' import { ModelApi } from '@/api/model/index' import { ElMessage, ElMessageBox } from 'element-plus' + import { $sendElectronChanel, $recvElectronChanel, diff --git a/src/renderer/src/views/components/propertyBox/RoutePlanning.vue b/src/renderer/src/views/components/propertyBox/RoutePlanning.vue index a695b69..2680221 100644 --- a/src/renderer/src/views/components/propertyBox/RoutePlanning.vue +++ b/src/renderer/src/views/components/propertyBox/RoutePlanning.vue @@ -140,10 +140,10 @@ diff --git a/src/renderer/src/views/components/propertyBox/imagePop.vue b/src/renderer/src/views/components/propertyBox/imagePop.vue index 4d61ad0..fc5daad 100644 --- a/src/renderer/src/views/components/propertyBox/imagePop.vue +++ b/src/renderer/src/views/components/propertyBox/imagePop.vue @@ -48,6 +48,7 @@ import { debounce } from '@/utils' import { ModelApi } from '@/api/model/index' import { ElMessage } from 'element-plus' import { viewGlb, viewGlbByEarth } from './viewGlb' +import { toBlob } from 'html-to-image' const baseDialog: any = ref(null) const eventBus: any = inject('bus') @@ -63,9 +64,12 @@ let func = (data) => { rowData.name = data.modelName baseDialog.value?.open() setTimeout(() => { - initThreeJS() - loadModel() - animate() + // initThreeJS() + // loadModel() + // animate() + window.viewGlb = new viewGlbByEarth('threeCanvas') + console.log(service.value + rowData.modelDataUrl, 'cccccc') + window.viewGlb.addGltf(service.value + rowData.modelDataUrl) }) } onMounted(() => { @@ -197,7 +201,7 @@ const viewPointHeightInput = () => { } } const closeCallBack = (e) => { - renderer.domElement.remove() // 从DOM中移除渲染器。 + renderer?.domElement.remove() // 从DOM中移除渲染器。 imageData.value = null rowData = [] //打开系统设置弹框 @@ -206,25 +210,19 @@ const closeCallBack = (e) => { var posterLoading: any = ref(false) const setImage = (e) => { - renderer.render(scene, camera) // 确保场景已渲染 - const canvas = renderer.domElement - - canvas.toBlob((blob) => { - const file = new File([blob], 'filename.png', { type: 'image/png' }) - imageData.value = file - + window.viewGlb.canvasToBase((file) => { + console.log(file, 'file') const formData = new FormData() formData.append('modelId', rowData.id) - // rowData.name && formData.append('modelName', rowData.name) - imageData.value && formData.append('file', imageData.value) + file && formData.append('file', file) ModelApi.updatePoster(formData).then((res) => { if (res.code == 0 || res.code == 200) { ElMessage.success('设置成功') } }) + }) - // ElMessage.warning('设置成功') - }, 'image/png') + // }) // const formData = new FormData() // formData.append('modelId', rowData.id) diff --git a/src/renderer/src/views/components/propertyBox/viewGlb.js b/src/renderer/src/views/components/propertyBox/viewGlb.js index 73227cd..1ed86be 100644 --- a/src/renderer/src/views/components/propertyBox/viewGlb.js +++ b/src/renderer/src/views/components/propertyBox/viewGlb.js @@ -1,137 +1,132 @@ -import * as THREE from "three"; +import * as THREE from 'three' //导入轨道控制器 -import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; +import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' //导入GLTF模型加载器 -import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader"; +import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' class viewGlb { constructor(selector) { - this.canvasWidth = 900; - this.canvasHeight = 650; - this.container = document.querySelector(selector); //获取容器 - this.modelInfo = {}; - this.scene = null; - this.camera = null; - this.renderer = null; - this.controls = null; - this.init(); //初始化 - this.animate(); //循环函数 + this.canvasWidth = 900 + this.canvasHeight = 650 + this.container = document.querySelector(selector) //获取容器 + this.modelInfo = {} + this.scene = null + this.camera = null + this.renderer = null + this.controls = null + this.init() //初始化 + this.animate() //循环函数 } init() { // 初始化场景 - this.initScene(); + this.initScene() // 初始化辅助轴 - this.initAxesHelper(); + this.initAxesHelper() // 初始化灯光 - this.initLight(); + this.initLight() // 初始化相机 - this.initCamera(); + this.initCamera() // 初始化渲染器 - this.initRender(); + this.initRender() // 初始化轨道控制器 - this.initControls(); + this.initControls() // 监听场景大小改变,重新渲染尺寸 - window.addEventListener("resize", this.onWindowResize.bind(this)); + window.addEventListener('resize', this.onWindowResize.bind(this)) // this.addGLTFModel() } initScene() { - this.scene = new THREE.Scene(); + this.scene = new THREE.Scene() // this.scene.background = new THREE.Color(0xffffff) } initAxesHelper() { - const axesHelper = new THREE.AxesHelper(5); - this.scene.add(axesHelper); + const axesHelper = new THREE.AxesHelper(5) + this.scene.add(axesHelper) } initLight() { - const hesLight = new THREE.HemisphereLight(0xffffff, 0x444444); - hesLight.intensity = 0.6; - this.scene.add(hesLight); + const hesLight = new THREE.HemisphereLight(0xffffff, 0x444444) + hesLight.intensity = 0.6 + this.scene.add(hesLight) - const dirLight = new THREE.DirectionalLight(); - dirLight.position.set(5, 5, 5); - this.scene.add(dirLight); + const dirLight = new THREE.DirectionalLight() + dirLight.position.set(5, 5, 5) + this.scene.add(dirLight) } initCamera() { - this.camera = new THREE.PerspectiveCamera( - 75, - this.canvasWidth / this.canvasHeight, - 0.1, - 100 - ); + this.camera = new THREE.PerspectiveCamera(75, this.canvasWidth / this.canvasHeight, 0.1, 100) // this.camera.position.set(1.5, 1.5, 1.5) - this.camera.position.set(2, 2, 2); + this.camera.position.set(2, 2, 2) } initRender() { this.renderer = new THREE.WebGLRenderer({ antialias: true, - alpha: true, + alpha: true // preserveDrawingBuffer: true - }); //设置抗锯齿 + }) //设置抗锯齿 //设置屏幕像素比 - this.renderer.setPixelRatio(window.devicePixelRatio); + this.renderer.setPixelRatio(window.devicePixelRatio) //渲染的尺寸大小 - this.renderer.setSize(this.canvasWidth, this.canvasHeight); + this.renderer.setSize(this.canvasWidth, this.canvasHeight) //gltf格式模型纹理贴图 - this.renderer.outputEncoding = THREE.sRGBEncoding; + this.renderer.outputEncoding = THREE.sRGBEncoding // 设置背景颜色 - this.renderer.setClearColor(0x000000, 0); + this.renderer.setClearColor(0x000000, 0) // 添加到容器 - this.container.appendChild(this.renderer.domElement); + this.container.appendChild(this.renderer.domElement) } render() { - this.renderer.render(this.scene, this.camera); + this.renderer.render(this.scene, this.camera) } animate() { - this.renderer.setAnimationLoop(this.render.bind(this)); + this.renderer.setAnimationLoop(this.render.bind(this)) } initControls() { - this.controls = new OrbitControls(this.camera, this.renderer.domElement); + this.controls = new OrbitControls(this.camera, this.renderer.domElement) } onWindowResize() { - this.camera.aspect = this.canvasWidth / this.canvasHeight; - this.camera.updateProjectionMatrix(); //更新矩阵,将3d内容投射到2d画面上转换 - this.renderer.setSize(this.canvasWidth, this.canvasHeight); + this.camera.aspect = this.canvasWidth / this.canvasHeight + this.camera.updateProjectionMatrix() //更新矩阵,将3d内容投射到2d画面上转换 + this.renderer.setSize(this.canvasWidth, this.canvasHeight) } addGLTFModel(obj) { - this.modelInfo = obj; + this.modelInfo = obj return new Promise((resolve, reject) => { - const loader = new GLTFLoader(); //.setPath('3dModels/') + const loader = new GLTFLoader() //.setPath('3dModels/') loader.load(obj.model_url, (gltf) => { - console.log(gltf); - this.scene.add(gltf.scene); - resolve("模型添加成功"); - }); - }); + console.log(gltf) + this.scene.add(gltf.scene) + resolve('模型添加成功') + }) + }) } canvasToBase(cb) { - this.renderer.render(this.scene, this.camera); - let imgData = this.renderer.domElement.toDataURL("image/png"); - console.log(imgData); - let base64 = imgData.replace(/^data:image\/\w+;base64,/, ""); - let dataBuffer = new Buffer(base64, "base64"); - base64ToFile(base64, "image/png", "poster.png"); - console.log(process.cwd()); - $root_home_index.$sendElectronChanel("newDir", { + this.renderer.render(this.scene, this.camera) + let imgData = this.renderer.domElement.toDataURL('image/png') + console.log(imgData) + let base64 = imgData.replace(/^data:image\/\w+;base64,/, '') + let dataBuffer = new Buffer(base64, 'base64') + base64ToFile(base64, 'image/png', 'poster.png') + console.log(process.cwd()) + $root_home_index.$sendElectronChanel('newDir', { name: this.modelInfo.model_name, - paths: [process.cwd(), "model_thumb"], - buffer: dataBuffer, - }); - $root_home_index.$recvElectronChanel("newDirRes", (e, res) => { + paths: [process.cwd(), 'model_thumb'], + buffer: dataBuffer + }) + $root_home_index.$recvElectronChanel('newDirRes', (e, res) => { // $root_home_index.$message.info(res) - cb(res); - }); + cb(res) + }) /*;*/ } @@ -139,33 +134,33 @@ class viewGlb { clearScene() { this.scene.traverse((child) => { if (child.material) { - child.material.dispose(); + child.material.dispose() } if (child.geometry) { - child.geometry.dispose(); + child.geometry.dispose() } - child = null; - }); - this.container.childNodes[1].remove(); - this.renderer.forceContextLoss(); - this.renderer.dispose(); - this.scene.clear(); - this.modelInfo = {}; - this.scene = null; - this.camera = null; - this.controls = null; - this.renderer.domElement = null; - this.renderer = null; - this.container = null; + child = null + }) + this.container.childNodes[1].remove() + this.renderer.forceContextLoss() + this.renderer.dispose() + this.scene.clear() + this.modelInfo = {} + this.scene = null + this.camera = null + this.controls = null + this.renderer.domElement = null + this.renderer = null + this.container = null } } class viewGlbByEarth { constructor(selector) { - this.viewer = null; - this.modelInfo = null; - this.selector = selector; - this.init(selector); + this.viewer = null + this.modelInfo = null + this.selector = selector + this.init(selector) } init(selector) { @@ -177,22 +172,24 @@ class viewGlbByEarth { baseLayerPicker: false, sceneModePicker: false, animation: false, - }); - const scene = this.viewer.scene; + fullscreenButton: false, // 禁用全屏按钮 + geocoder: false + }) + const scene = this.viewer.scene /*this.viewer.scene.screenSpaceCameraController.tiltEventTypes = [ Cesium.CameraEventType.PINCH, Cesium.CameraEventType.RIGHT_DRAG, ]*/ scene.screenSpaceCameraController.zoomEventTypes = [ Cesium.CameraEventType.WHEEL, - Cesium.CameraEventType.PINCH, - ]; + Cesium.CameraEventType.PINCH + ] scene.screenSpaceCameraController.tiltEventTypes = [ Cesium.CameraEventType.PINCH, - Cesium.CameraEventType.RIGHT_DRAG, - ]; - this.viewer._cesiumWidget._creditContainer.style.display = "none"; - scene.globe.depthTestAgainstTerrain = true; + Cesium.CameraEventType.RIGHT_DRAG + ] + this.viewer._cesiumWidget._creditContainer.style.display = 'none' + scene.globe.depthTestAgainstTerrain = true // scene.globe.show = false; // scene.sun.show = false; // scene.moon.show = false; @@ -201,46 +198,45 @@ class viewGlbByEarth { } addGltf(obj) { - this.modelInfo = obj; + this.modelInfo = obj const czml = [ { - id: "aircraft model", - name: "Cesium Air", + id: 'aircraft model', + name: 'Cesium Air', position: { - cartographicDegrees: [-77, 37, 10000], + cartographicDegrees: [-77, 37, 10000] }, model: { - gltf: obj.model_url, + // gltf: obj.model_url, + gltf: obj, scale: 2.0, - minimumPixelSize: 128, - }, - }, - ]; + minimumPixelSize: 128 + } + } + ] let entity = this.viewer.entities.add({ - position: Cesium.Cartesian3.fromRadians( - 106.31593773128115, - 29.625102082951624 - ), + position: Cesium.Cartesian3.fromRadians(106.31593773128115, 29.625102082951624), model: { - uri: obj.model_url, - }, - }); + // uri: obj.model_url, + uri: obj + } + }) - this.viewer.trackedEntity = entity; + this.viewer.trackedEntity = entity } canvasToBase(cb) { // let imgData = $(`#${this.selector}`).find("canvas")[0].toDataURL("image/png"); // console.log(imgData) - this.viewer.render(); - let imgData = this.viewer.scene.canvas.toDataURL("image/png"); - let base64 = imgData.replace(/^data:image\/\w+;base64,/, ""); - let dataBuffer = new Buffer(base64, "base64"); - let file = this.base64ToFile(base64, "image/png", "poster.png"); + this.viewer.render() + let imgData = this.viewer.scene.canvas.toDataURL('image/png') + let base64 = imgData.replace(/^data:image\/\w+;base64,/, '') + let dataBuffer = new Buffer(base64, 'base64') + let file = this.base64ToFile(base64, 'image/png', 'poster.png') // console.log("ddddddddddddd", file); - cb(file); + cb(file) // $root_home_index.$sendElectronChanel("newDir", { // name: this.modelInfo.model_name, //+ "_" + new Date().getTime(), // paths: [process.cwd(), "model_thumb"], @@ -255,25 +251,25 @@ class viewGlbByEarth { } base64ToFile(base64, mime, filename) { // let arr = base64.split(","); - let type = mime || arr[0].match(/:(.*?);/)[1]; + let type = mime || arr[0].match(/:(.*?);/)[1] // let suffix = mine.split("/")[1]; // let fileName = filename || `未命名.${suffix}`; - let fileName = filename || `未命名.png`; - let bstr = atob(base64); - let n = bstr.length; - let u8arr = new Uint8Array(n); + let fileName = filename || `未命名.png` + let bstr = atob(base64) + let n = bstr.length + let u8arr = new Uint8Array(n) while (n--) { - u8arr[n] = bstr.charCodeAt(n); + u8arr[n] = bstr.charCodeAt(n) } - return new File([u8arr], fileName, { type }); + return new File([u8arr], fileName, { type }) } clearScene() { - this.viewer.destroy(); - this.viewer = null; - this.modelInfo = null; - this.selector = ""; + this.viewer.destroy() + this.viewer = null + this.modelInfo = null + this.selector = '' } } -export { viewGlb, viewGlbByEarth }; +export { viewGlb, viewGlbByEarth } diff --git a/src/renderer/src/views/home/index.vue b/src/renderer/src/views/home/index.vue index bbc6d3c..6857ba6 100644 --- a/src/renderer/src/views/home/index.vue +++ b/src/renderer/src/views/home/index.vue @@ -137,6 +137,7 @@ import { getdefaultLabelStyle } from '../components/propertyBox/defaultLabelStyl import { setEventBus } from './eventBus' import router from '@renderer/router' +import { ElMessage, ElMessageBox } from 'element-plus' const { rightMenus } = useRightOperate() const firstMenuRef = ref(null) @@ -164,6 +165,22 @@ if (!localStorage.getItem('defaultLabelStyle')) { localStorage.removeItem('weartherSetting') eventBus.on('openDialog', async (sourceType: any, id: any) => { + if (dynamicComponentRef.value?.name == 'ScreenShotHD') { + console.log('关闭截图') + ElMessageBox.confirm('此操作将会打开新弹窗关闭高清截图功能, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + openOtherDialog(sourceType, id) + }) + .catch(() => {}) + } else { + openOtherDialog(sourceType, id) + } +}) +const openOtherDialog = async (sourceType: any, id: any) => { if (dynamicComponentRef.value && dynamicComponentRef.value.close) { dynamicComponentRef.value.close() } @@ -445,7 +462,7 @@ eventBus.on('openDialog', async (sourceType: any, id: any) => { break } id && dynamicComponentRef.value && (dynamicComponentRef.value.id = id) -}) +} eventBus.on('openSelectImg', (selected, entity) => { // $sendElectronChanel("requireGEMarkerName", { // dirName: "GEMarker",