/** * Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts * * 版本信息:v3.8.15 * 编译日期:2025-04-10 11:42 * 版权所有:Copyright by 火星科技 http://mars3d.cn * 使用单位:北京华星北斗智控技术有限公司 ,2024-12-05 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.echarts || require('echarts')), (window.mars3d || require('mars3d'))) : typeof define === 'function' && define.amd ? define(['exports', 'echarts', 'mars3d'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-echarts"] = {}, global.echarts, global.mars3d)); })(this, (function (exports, echarts, mars3d) { 'use strict';const _0x5c78bc=_0x28ae;(function(_0x27e1cf,_0x3765b0){const _0x29f5bf={_0x7961ed:0x107,_0x519977:0xd7,_0x3dea96:0xfa,_0x59f0f8:0xdc},_0x5a0dea=_0x28ae,_0xddffde=_0x27e1cf();while(!![]){try{const _0x190654=parseInt(_0x5a0dea(0xe6))/0x1+-parseInt(_0x5a0dea(0xf7))/0x2+-parseInt(_0x5a0dea(_0x29f5bf._0x7961ed))/0x3*(-parseInt(_0x5a0dea(0xd2))/0x4)+-parseInt(_0x5a0dea(0xf9))/0x5*(-parseInt(_0x5a0dea(_0x29f5bf._0x519977))/0x6)+parseInt(_0x5a0dea(0xde))/0x7*(parseInt(_0x5a0dea(0xfd))/0x8)+parseInt(_0x5a0dea(_0x29f5bf._0x3dea96))/0x9*(parseInt(_0x5a0dea(0xe0))/0xa)+-parseInt(_0x5a0dea(_0x29f5bf._0x59f0f8))/0xb;if(_0x190654===_0x3765b0)break;else _0xddffde['push'](_0xddffde['shift']());}catch(_0x2a8f82){_0xddffde['push'](_0xddffde['shift']());}}}(_0x196a,0x97fd1));function _interopNamespace(_0x2d4f81){const _0x43a093={_0xaccbaa:0x10f},_0xe253a1=_0x28ae;if(_0x2d4f81&&_0x2d4f81[_0xe253a1(0xf8)])return _0x2d4f81;var _0x187f4c=Object[_0xe253a1(0x102)](null);return _0x2d4f81&&Object[_0xe253a1(_0x43a093._0xaccbaa)](_0x2d4f81)[_0xe253a1(0x11e)](function(_0x30d19e){if(_0x30d19e!=='default'){var _0xe7eacc=Object['getOwnPropertyDescriptor'](_0x2d4f81,_0x30d19e);Object['defineProperty'](_0x187f4c,_0x30d19e,_0xe7eacc['get']?_0xe7eacc:{'enumerable':!![],'get':function(){return _0x2d4f81[_0x30d19e];}});}}),_0x187f4c[_0xe253a1(0xda)]=_0x2d4f81,_0x187f4c;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x5c78bc(0xfb)];function _0x28ae(_0x5282dc,_0x534ec6){const _0x196aa1=_0x196a();return _0x28ae=function(_0x28ae8f,_0x43a9b7){_0x28ae8f=_0x28ae8f-0xd2;let _0x440f95=_0x196aa1[_0x28ae8f];return _0x440f95;},_0x28ae(_0x5282dc,_0x534ec6);}class CompositeCoordinateSystem{constructor(_0x4f3de0,_0xa086d5){const _0x7c0bfa={_0x4f9991:0xd6},_0x1467ff=_0x5c78bc;this['_mars3d_scene']=_0x4f3de0,this['dimensions']=[_0x1467ff(_0x7c0bfa._0x4f9991),'lat'],this['_mapOffset']=[0x0,0x0],this[_0x1467ff(0xee)]=_0xa086d5;}['setMapOffset'](_0x1396b4){const _0x1da0c5=_0x5c78bc;this[_0x1da0c5(0xd9)]=_0x1396b4;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x48d6ad){const _0x75dab1={_0x1a07f3:0xd4,_0x1a5c0d:0xd5,_0x3fdbb9:0x100,_0x53e10f:0xdb,_0x57d6e7:0xe3,_0x2149f8:0xf5},_0x2fbad2=_0x5c78bc,_0x55e7d3=this['_mars3d_scene'],_0x4612d0=[NaN,NaN];let _0x4e2e07=_0x55e7d3[_0x2fbad2(_0x75dab1._0x1a07f3)];_0x55e7d3[_0x2fbad2(_0x75dab1._0x1a5c0d)]&&(_0x4e2e07=_0x55e7d3['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x48d6ad[0x0],_0x48d6ad[0x1])));const _0x2dd7c9=Cesium$1['Cartesian3']['fromDegrees'](_0x48d6ad[0x0],_0x48d6ad[0x1],_0x4e2e07);if(!_0x2dd7c9)return _0x4612d0;const _0x2ed402=mars3d__namespace[_0x2fbad2(_0x75dab1._0x3fdbb9)]['toWindowCoordinates'](_0x55e7d3,_0x2dd7c9);if(!_0x2ed402)return _0x4612d0;if(_0x55e7d3['echartsDepthTest']&&_0x55e7d3['mode']===Cesium$1[_0x2fbad2(0x115)][_0x2fbad2(0x119)]){const _0x596fb7=new Cesium$1[(_0x2fbad2(_0x75dab1._0x53e10f))](_0x55e7d3[_0x2fbad2(_0x75dab1._0x57d6e7)][_0x2fbad2(_0x75dab1._0x2149f8)],_0x55e7d3['camera']['positionWC']),_0x3a8a7d=_0x596fb7['isPointVisible'](_0x2dd7c9);if(!_0x3a8a7d)return _0x4612d0;}return[_0x2ed402['x']-this['_mapOffset'][0x0],_0x2ed402['y']-this[_0x2fbad2(0xd9)][0x1]];}['getViewRect'](){const _0x359615={_0x191602:0xee,_0xce2a16:0xe9},_0x2dcd81=_0x5c78bc,_0x8504fd=this[_0x2dcd81(_0x359615._0x191602)];return new echarts__namespace['graphic'][(_0x2dcd81(_0x359615._0xce2a16))](0x0,0x0,_0x8504fd['getWidth'](),_0x8504fd['getHeight']());}['getRoamTransform'](){const _0x51f7d2={_0x41c13e:0x102},_0x1314e4=_0x5c78bc;return echarts__namespace['matrix'][_0x1314e4(_0x51f7d2._0x41c13e)]();}}CompositeCoordinateSystem['dimensions']=[_0x5c78bc(0xd6),_0x5c78bc(0x101)],CompositeCoordinateSystem['create']=function(_0x358ae5,_0x486011){const _0x30d9f8=_0x5c78bc;let _0x5a8eac;const _0xffa3b1=_0x358ae5['scheduler'][_0x30d9f8(0xff)]['_mars3d_scene'];_0x358ae5['eachComponent'](_0x30d9f8(0xe2),function(_0x5ccbec){const _0x2e655b=_0x486011['getZr']()['painter'];if(!_0x2e655b)return;!_0x5a8eac&&(_0x5a8eac=new CompositeCoordinateSystem(_0xffa3b1,_0x486011)),_0x5ccbec['coordinateSystem']=_0x5a8eac,_0x5a8eac['setMapOffset'](_0x5ccbec['__mapOffset']||[0x0,0x0]);}),_0x358ae5['eachSeries'](function(_0x2b8166){_0x2b8166['get']('coordinateSystem')==='mars3dMap'&&(!_0x5a8eac&&(_0x5a8eac=new CompositeCoordinateSystem(_0xffa3b1,_0x486011)),_0x2b8166['coordinateSystem']=_0x5a8eac);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x5c78bc(0x11d)])echarts__namespace[_0x5c78bc(0x10c)](_0x5c78bc(0xe2),CompositeCoordinateSystem),echarts__namespace[_0x5c78bc(0x105)]({'type':_0x5c78bc(0xe1),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x33a5b2,_0x10a4d8){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1b5d1d,_0x47cee3){const _0x418324={_0xbccb08:0xf6,_0x289320:0x10d},_0x2decc5=_0x5c78bc;this['api']=_0x47cee3,this['scene']=_0x1b5d1d[_0x2decc5(_0x418324._0xbccb08)]['ecInstance']['_mars3d_scene'],this[_0x2decc5(_0x418324._0x289320)]['postRender']['addEventListener'](this[_0x2decc5(0xdf)],this);},'moveHandler':function(_0x3a235d,_0x130c7c){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x18f9d1,_0x335119,_0x44319b){},'dispose':function(_0x1849fd){const _0x51c76d={_0x31636f:0xdf},_0x1bbb6d=_0x5c78bc;this['scene'][_0x1bbb6d(0x108)][_0x1bbb6d(0xeb)](this[_0x1bbb6d(_0x51c76d._0x31636f)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x5c78bc(0x117)];function _0x196a(){const _0x22a1da=['_map','SceneMode','mars3d-echarts','BaseLayer','options','SCENE3D','coords','visible','setEchartsOption','init','forEach','4VSiqjJ','_pointerEvents','echartsFixedHeight','echartsAutoHeight','lng','96684rpeLwX','hasOwnProperty','_mapOffset','default','EllipsoidalOccluder','1274152cQmlPd','canvas','2914247SCqtmE','moveHandler','6520YMOsqT','mars3dMapRoam','mars3dMap','globe','Util','Rectangle','26981HOrssg','_echartsContainer','div','BoundingRect','position','removeEventListener','resize','zIndex','_api','visibility','fromDegrees','_createChartOverlay','DomUtil','value','0px','ellipsoid','scheduler','2082720IHJJBs','__esModule','40MnAyHD','12519QEgNfO','Cesium','off','8TEtaOX','clientHeight','ecInstance','PointTrans','lat','create','register','isFormat','registerAction','fixedHeight','901773YFeYoj','postRender','EchartsLayer','_echartsInstance','style','registerCoordinateSystem','scene','pointerEvents','keys','none','layer','depthTest','defineProperty'];_0x196a=function(){return _0x22a1da;};return _0x196a();}class EchartsLayer extends BaseLayer{constructor(_0x2b502b={}){const _0xb0b6a7={_0x2bc136:0x10e},_0x22f1a8=_0x5c78bc;super(_0x2b502b),this['_pointerEvents']=this['options'][_0x22f1a8(_0xb0b6a7._0x2bc136)];}get['layer'](){const _0x53ab4b=_0x5c78bc;return this[_0x53ab4b(0x10a)];}get[_0x5c78bc(0x10e)](){const _0x14b16b={_0x4a9fb5:0xd3},_0x1e35f5=_0x5c78bc;return this[_0x1e35f5(_0x14b16b._0x4a9fb5)];}set['pointerEvents'](_0x4ef774){const _0x5eed5d={_0x223ac4:0xd3,_0x5e1637:0x110},_0xc6b3a3=_0x5c78bc;this[_0xc6b3a3(_0x5eed5d._0x223ac4)]=_0x4ef774,this['_echartsContainer']&&(_0x4ef774?this['_echartsContainer'][_0xc6b3a3(0x10b)]['pointerEvents']='all':this['_echartsContainer'][_0xc6b3a3(0x10b)]['pointerEvents']=_0xc6b3a3(_0x5eed5d._0x5e1637));}['_setOptionsHook'](_0x1e22b4,_0x58cb3b){this['setEchartsOption'](_0x1e22b4);}['_showHook'](_0x3c1959){const _0x14c27b={_0x1690ec:0xef,_0x40f1fa:0x11b},_0xc2336d=_0x5c78bc;_0x3c1959?this['_echartsContainer']['style'][_0xc2336d(_0x14c27b._0x1690ec)]=_0xc2336d(_0x14c27b._0x40f1fa):this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x421f69={_0x22a19e:0x106},_0x3c9825=_0x5c78bc;this['_map']['scene']['echartsDepthTest']=this['options'][_0x3c9825(0x112)]??!![],this['_map'][_0x3c9825(0x10d)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene'][_0x3c9825(0xd4)]=this[_0x3c9825(0x118)][_0x3c9825(_0x421f69._0x22a19e)]??0x0;}['_addedHook'](){const _0x403649={_0x487f46:0x11d,_0x2c250c:0x10d},_0x5956c5=_0x5c78bc;this[_0x5956c5(0xe7)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x5956c5(_0x403649._0x487f46)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x5956c5(_0x403649._0x2c250c)],this[_0x5956c5(0x11c)](this['options']);}['_removedHook'](){const _0x248067={_0x52d168:0x10a,_0x381c6e:0x10a,_0xb2d548:0x114,_0x34c8d5:0xe7},_0x111d2f=_0x5c78bc;this[_0x111d2f(_0x248067._0x52d168)]&&(this[_0x111d2f(_0x248067._0x381c6e)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x111d2f(_0x248067._0xb2d548)]['container']['removeChild'](this[_0x111d2f(_0x248067._0x34c8d5)]),delete this['_echartsContainer']);}[_0x5c78bc(0xf1)](){const _0x2d9dc8={_0x370550:0x102,_0x85fafb:0xe8,_0x58075c:0x116,_0x4abf42:0x10b,_0x49cf8e:0xf4,_0x5cb286:0xdd,_0x248ba5:0x110,_0x1ce635:0xed},_0x57ff88=_0x5c78bc,_0x612e9f=mars3d__namespace[_0x57ff88(0xf2)][_0x57ff88(_0x2d9dc8._0x370550)](_0x57ff88(_0x2d9dc8._0x85fafb),_0x57ff88(_0x2d9dc8._0x58075c),this['_map']['container']);return _0x612e9f['id']=this['id'],_0x612e9f[_0x57ff88(_0x2d9dc8._0x4abf42)][_0x57ff88(0xea)]='absolute',_0x612e9f['style']['top']='0px',_0x612e9f['style']['left']=_0x57ff88(_0x2d9dc8._0x49cf8e),_0x612e9f['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x612e9f['style']['height']=this['_map']['scene'][_0x57ff88(_0x2d9dc8._0x5cb286)]['clientHeight']+'px',_0x612e9f['style']['pointerEvents']=this['_pointerEvents']?'all':_0x57ff88(_0x2d9dc8._0x248ba5),_0x612e9f['style'][_0x57ff88(_0x2d9dc8._0x1ce635)]=this['options']['zIndex']??0x9,_0x612e9f;}[_0x5c78bc(0xec)](){const _0x430dcc={_0x87a796:0x10b,_0x548898:0x10b,_0xcfe311:0x114},_0x2e31ed=_0x5c78bc;if(!this['_echartsInstance'])return;this[_0x2e31ed(0xe7)][_0x2e31ed(_0x430dcc._0x87a796)]['width']=this['_map'][_0x2e31ed(0x10d)]['canvas']['clientWidth']+'px',this['_echartsContainer'][_0x2e31ed(_0x430dcc._0x548898)]['height']=this[_0x2e31ed(_0x430dcc._0xcfe311)]['scene']['canvas'][_0x2e31ed(0xfe)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x28fc15,_0x4b143e,_0xff9c8c){const _0x20d070={_0x2a987f:0xe4},_0xd3f4c2=_0x5c78bc;this['_echartsInstance']&&(_0x28fc15={'mars3dMap':{},...mars3d__namespace[_0xd3f4c2(_0x20d070._0x2a987f)]['getAttrVal'](_0x28fc15,{'onlySimpleType':!![]})},delete _0x28fc15['eventParent'],this[_0xd3f4c2(0x10a)]['setOption'](_0x28fc15,_0x4b143e,_0xff9c8c));}['getRectangle'](_0x2c92f0){const _0x811c57={_0x360d38:0x104,_0xded1e3:0xe5,_0x3a5377:0xf0},_0x1f6b6a=_0x5c78bc;let _0x5704ec,_0x1300bf,_0x2d2c6b,_0x2fc6a2;function _0x4588ae(_0x348953){if(!Array['isArray'](_0x348953))return;const _0x2ca4ca=_0x348953[0x0]||0x0,_0xed709e=_0x348953[0x1]||0x0;_0x2ca4ca!==0x0&&_0xed709e!==0x0&&(_0x5704ec===undefined?(_0x5704ec=_0x2ca4ca,_0x1300bf=_0x2ca4ca,_0x2d2c6b=_0xed709e,_0x2fc6a2=_0xed709e):(_0x5704ec=Math['min'](_0x5704ec,_0x2ca4ca),_0x1300bf=Math['max'](_0x1300bf,_0x2ca4ca),_0x2d2c6b=Math['min'](_0x2d2c6b,_0xed709e),_0x2fc6a2=Math['max'](_0x2fc6a2,_0xed709e)));}const _0x2c9d1f=this['options']['series'];_0x2c9d1f&&_0x2c9d1f['forEach'](_0x28e7bb=>{const _0x294208={_0xd8b995:0xf3},_0x3c5771=_0x28ae;_0x28e7bb['data']&&_0x28e7bb['data'][_0x3c5771(0x11e)](_0xd03d7=>{const _0x35ad18=_0x3c5771;if(_0xd03d7[_0x35ad18(_0x294208._0xd8b995)])_0x4588ae(_0xd03d7['value']);else _0xd03d7['coords']&&_0xd03d7[_0x35ad18(0x11a)]['forEach'](_0x473496=>{_0x4588ae(_0x473496);});});});if(_0x5704ec===0x0&&_0x2d2c6b===0x0&&_0x1300bf===0x0&&_0x2fc6a2===0x0)return null;return _0x2c92f0!==null&&_0x2c92f0!==void 0x0&&_0x2c92f0[_0x1f6b6a(_0x811c57._0x360d38)]?{'xmin':_0x5704ec,'xmax':_0x1300bf,'ymin':_0x2d2c6b,'ymax':_0x2fc6a2}:Cesium[_0x1f6b6a(_0x811c57._0xded1e3)][_0x1f6b6a(_0x811c57._0x3a5377)](_0x5704ec,_0x2d2c6b,_0x1300bf,_0x2fc6a2);}['on'](_0xcb2d7e,_0x3413ca,_0x3a244f){return this['_echartsInstance']['on'](_0xcb2d7e,_0x3413ca,_0x3a244f||this),this;}['onByQuery'](_0xe2f4f5,_0x4b803d,_0x2197be,_0x5ef5fe){return this['_echartsInstance']['on'](_0xe2f4f5,_0x4b803d,_0x2197be,_0x5ef5fe||this),this;}['off'](_0x2201e3,_0x2432d4,_0x5663a0){const _0x1a9084=_0x5c78bc;return this['_echartsInstance'][_0x1a9084(0xfc)](_0x2201e3,_0x2432d4,_0x5663a0||this),this;}}mars3d__namespace['LayerUtil'][_0x5c78bc(0x103)]('echarts',EchartsLayer),mars3d__namespace[_0x5c78bc(0x111)][_0x5c78bc(0x109)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports[_0x5c78bc(0x109)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x4c4880){const _0x1338e2={_0x3e0099:0xda,_0x2ec72a:0xd8},_0x317792=_0x5c78bc;if(_0x4c4880!==_0x317792(_0x1338e2._0x3e0099)&&!exports[_0x317792(_0x1338e2._0x2ec72a)](_0x4c4880))Object['defineProperty'](exports,_0x4c4880,{'enumerable':!![],'get':function(){return echarts[_0x4c4880];}});}),Object[_0x5c78bc(0x113)](exports,_0x5c78bc(0xf8),{'value':!![]}); }));