lg_frontend/static/libs/mars3d/mars3d.js

16 lines
2.9 MiB
JavaScript
Raw Permalink Normal View History

/**
* Mars3D三维可视化平台 mars3d
*
* 版本信息v3.7.3
* 编译日期2024-02-05 13:28:43
* 版权所有Copyright by 火星科技 http://mars3d.cn
* 使用单位免费公开版 2024-01-15
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.Cesium || require('mars3d-cesium')), (window.turf || require('@turf/turf'))) :
typeof define === 'function' && define.amd ? define(['exports', 'mars3d-cesium', '@turf/turf'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.mars3d = {}, global.Cesium, global.turf));
})(this, (function (exports, Cesium, turf) {
'use strict';const _0x4d8ec3=_0x3aed;(function(_0xd7178d,_0x3cbab3){const _0x4c3cfd={_0x2a02cc:0x1f4,_0x6af7db:0x42d,_0x165771:0x4a3,_0x4ce43b:0x7ed,_0x5200de:0x5ca},_0x44de16=_0x3aed,_0x57045a=_0xd7178d();while(!![]){try{const _0x2e03a2=parseInt(_0x44de16(_0x4c3cfd._0x2a02cc))/0x1*(-parseInt(_0x44de16(0xcfb))/0x2)+-parseInt(_0x44de16(_0x4c3cfd._0x6af7db))/0x3+parseInt(_0x44de16(0xb0b))/0x4*(-parseInt(_0x44de16(_0x4c3cfd._0x165771))/0x5)+parseInt(_0x44de16(0x279))/0x6+-parseInt(_0x44de16(_0x4c3cfd._0x4ce43b))/0x7+parseInt(_0x44de16(0xf76))/0x8+parseInt(_0x44de16(_0x4c3cfd._0x5200de))/0x9;if(_0x2e03a2===_0x3cbab3)break;else _0x57045a['push'](_0x57045a['shift']());}catch(_0x533511){_0x57045a['push'](_0x57045a['shift']());}}}(_0x38dd,0x88865));function _interopNamespace(_0x37c90e){const _0x3b7abe={_0x2259e8:0xeb8},_0x4414bb={_0x5e239e:0xeb8},_0x24f27c=_0x3aed;if(_0x37c90e&&_0x37c90e['__esModule'])return _0x37c90e;var _0x649501=Object['create'](null);return _0x37c90e&&Object['keys'](_0x37c90e)[_0x24f27c(0x3a2)](function(_0x3b6706){const _0x4976e7=_0x24f27c;if(_0x3b6706!==_0x4976e7(_0x4414bb._0x5e239e)){var _0x1b8ab7=Object['getOwnPropertyDescriptor'](_0x37c90e,_0x3b6706);Object[_0x4976e7(0x8ca)](_0x649501,_0x3b6706,_0x1b8ab7[_0x4976e7(0xc46)]?_0x1b8ab7:{'enumerable':!![],'get':function(){return _0x37c90e[_0x3b6706];}});}}),_0x649501[_0x24f27c(_0x3b7abe._0x2259e8)]=_0x37c90e,_0x649501;}var Cesium__namespace=_interopNamespace(Cesium),turf__namespace=_interopNamespace(turf);!(Cesium__namespace!==null&&Cesium__namespace!==void 0x0&&Cesium__namespace['Viewer'])&&console['error']('请引入\x20mars3d-cesium\x20库',Cesium__namespace);const minVer=0x72,version$1=Number(Cesium__namespace['VERSION']['substr'](Cesium__namespace['VERSION']['indexOf']('.')+0x1));version$1<minVer&&console[_0x4d8ec3(0x53c)]('请将\x20mars3d-cesium\x20库升级至\x20v1.'+minVer+_0x4d8ec3(0x954),version$1);const getUrlComponent_old=Cesium__namespace['Resource'][_0x4d8ec3(0x10f8)][_0x4d8ec3(0xe58)];Cesium__namespace[_0x4d8ec3(0xe28)]['prototype']['getUrlComponent']=function(_0x50709d,_0x25d198){let _0x261ec0=getUrlComponent_old['bind'](this)(_0x50709d,_0x25d198);return Cesium__namespace['Resource']['ReplaceUrl']&&(_0x261ec0=Cesium__namespace['Resource']['ReplaceUrl']['bind'](this)(_0x261ec0)),this['_last_url']=_0x261ec0,_0x261ec0;};const loadImageElement_old=Cesium__namespace['Resource']['_Implementations']['loadImageElement'];Cesium__namespace['Resource']['_Implementations']['loadImageElement']=function(_0x117dc3,_0xa02652,_0x5b3e55){return _0x117dc3['startsWith']('file:')&&(_0xa02652=!![]),loadImageElement_old(_0x117dc3,_0xa02652,_0x5b3e55);};const getValueInReferenceFrame_old=Cesium__namespace[_0x4d8ec3(0xc4a)][_0x4d8ec3(0x10f8)]['getValueInReferenceFrame'];Cesium__namespace['ConstantPositionProperty']['prototype']['getValueInReferenceFrame']=function(_0x3c6cdf,_0x198f15,_0x45f6f8){const _0x472e9c={_0x36ec4a:0xd40},_0x11d137=_0x4d8ec3;return!Cesium__namespace['defined'](_0x3c6cdf)&&(_0x3c6cdf=Cesium__namespace[_0x11d137(_0x472e9c._0x36ec4a)][_0x11d137(0x968)]()),getValueInReferenceFrame_old['bind'](this)(_0x3c6cdf,_0x198f15,_0x45f6f8);},Cesium__namespace[_0x4d8ec3(0xca9)][_0x4d8ec3(0x10f8)][_0x4d8ec3(0xcdb)]=function(_0x4a1ec7,_0x1838a8){const _0x436dc5={_0x5b160d:0x103b,_0x2773bb:0xd69},_0x3f9223=_0x4d8ec3;!this['_positionScratch']&&(this['_positionScratch']=new Cesium__namespace[(_0x3f9223(0x4ab))](),this['_velocityScratch']=new Cesium__namespace['Cartesian3'](),this['_rotationScratch']=new Cesium__namespace[(_0x3f9223(_0x436dc5._0x5b160d))]());let _0x2e5c68=this['_velocityVectorProperty'][_0x3f9223(0x955)](_0x4a1ec7,this[_0x3f9223(0x1ca)],this['_positionScratch']);Cesium__namespace['defined'](_0x2e5c68)?this['_last_velocity']=_0x2e5c68['clone']():_0x2e5c68=this['_last_velocity'];if(!Cesium__namespace[_0x3f9223(_0x436dc5._0x2773bb)](_0x2e5c68))return undefined;return Cesium__namespace['Transforms']['rotationMatrixFromPositionVelocity'](this['_positionScratch'],_0x2e5c68,this['_ellipsoid'],this['_rotationScratch']),Cesium__namespace['Quaternion']['fro
}));