Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-echarts

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars3d-echarts - npm Package Compare versions

Comparing version 3.5.10 to 3.5.11

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.5.10
* 编译日期:2023-06-05 18:17:57
* 版本信息:v3.5.11
* 编译日期:2023-06-12 21:55:10
* 版权所有:Copyright by 火星科技 http://mars3d.cn

@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x4a8f00=_0x2117;(function(_0xa14a03,_0x29f3be){const _0x441e06={_0x189636:0x1d6,_0x8581dc:0x1e8,_0x56917b:0x1ea,_0x26eede:0x1c5,_0x32f5da:0x1ed,_0x3bb0b3:0x1d4},_0x22d86f=_0x2117,_0x148e39=_0xa14a03();while(!![]){try{const _0x35a5b8=-parseInt(_0x22d86f(0x1da))/0x1+-parseInt(_0x22d86f(0x1bb))/0x2*(parseInt(_0x22d86f(_0x441e06._0x189636))/0x3)+-parseInt(_0x22d86f(_0x441e06._0x8581dc))/0x4*(-parseInt(_0x22d86f(_0x441e06._0x56917b))/0x5)+parseInt(_0x22d86f(0x1ba))/0x6+parseInt(_0x22d86f(_0x441e06._0x26eede))/0x7*(parseInt(_0x22d86f(0x1be))/0x8)+parseInt(_0x22d86f(_0x441e06._0x32f5da))/0x9+-parseInt(_0x22d86f(_0x441e06._0x3bb0b3))/0xa;if(_0x35a5b8===_0x29f3be)break;else _0x148e39['push'](_0x148e39['shift']());}catch(_0x209db7){_0x148e39['push'](_0x148e39['shift']());}}}(_0x282a,0xc35a1));function _interopNamespace(_0x1517e3){const _0x36bd47=_0x2117;if(_0x1517e3&&_0x1517e3[_0x36bd47(0x1c2)])return _0x1517e3;var _0x1563ec=Object['create'](null);return _0x1517e3&&Object['keys'](_0x1517e3)['forEach'](function(_0x3389d4){const _0x2c57a4=_0x36bd47;if(_0x3389d4!==_0x2c57a4(0x1f3)){var _0x25c19c=Object['getOwnPropertyDescriptor'](_0x1517e3,_0x3389d4);Object['defineProperty'](_0x1563ec,_0x3389d4,_0x25c19c['get']?_0x25c19c:{'enumerable':!![],'get':function(){return _0x1517e3[_0x3389d4];}});}}),_0x1563ec['default']=_0x1517e3,_0x1563ec;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x4a8f00(0x1e2)];class CompositeCoordinateSystem{constructor(_0x5bdf50,_0x36f2cc){const _0x2d997e={_0x25c391:0x1d0},_0x38c486=_0x4a8f00;this['_mars3d_scene']=_0x5bdf50,this[_0x38c486(_0x2d997e._0x25c391)]=[_0x38c486(0x1f2),'lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x36f2cc;}[_0x4a8f00(0x1b5)](_0xb508d0){this['_mapOffset']=_0xb508d0;}['getBMap'](){return this['_mars3d_scene'];}[_0x4a8f00(0x1e9)](_0x148198){const _0x1f9c45={_0x54c8c1:0x1ec,_0x7b4bfd:0x1f0,_0x23c5eb:0x1dd,_0x1b6739:0x1f8},_0x772a48=_0x4a8f00,_0x100c56=this['_mars3d_scene'],_0x13a77e=[NaN,NaN];let _0x2a5097=_0x100c56['echartsFixedHeight'];_0x100c56[_0x772a48(0x1cb)]&&(_0x2a5097=_0x100c56['globe']['getHeight'](Cesium$1[_0x772a48(_0x1f9c45._0x54c8c1)][_0x772a48(0x1d5)](_0x148198[0x0],_0x148198[0x1])));const _0x3ad47c=Cesium$1['Cartesian3']['fromDegrees'](_0x148198[0x0],_0x148198[0x1],_0x2a5097);if(!_0x3ad47c)return _0x13a77e;const _0x5e4cb7=Cesium$1[_0x772a48(_0x1f9c45._0x7b4bfd)][_0x772a48(_0x1f9c45._0x23c5eb)](_0x100c56,_0x3ad47c);if(!_0x5e4cb7)return _0x13a77e;if(_0x100c56[_0x772a48(0x1e4)]&&_0x100c56['mode']===Cesium$1[_0x772a48(0x1ce)]['SCENE3D']){const _0x2dd3bc=new Cesium$1[(_0x772a48(0x1ee))](_0x100c56['globe'][_0x772a48(_0x1f9c45._0x1b6739)],_0x100c56['camera']['positionWC']),_0x434b24=_0x2dd3bc['isPointVisible'](_0x3ad47c);if(!_0x434b24)return _0x13a77e;}return[_0x5e4cb7['x']-this['_mapOffset'][0x0],_0x5e4cb7['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2b6113={_0x6ec997:0x1db},_0x42eb13=_0x4a8f00,_0x5652e6=this[_0x42eb13(0x1d8)];return new echarts__namespace[(_0x42eb13(0x1bf))]['BoundingRect'](0x0,0x0,_0x5652e6['getWidth'](),_0x5652e6[_0x42eb13(_0x2b6113._0x6ec997)]());}[_0x4a8f00(0x1f6)](){const _0x13552e={_0x171be0:0x1b9},_0x4ee30e=_0x4a8f00;return echarts__namespace['matrix'][_0x4ee30e(_0x13552e._0x171be0)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x4a8f00(0x1b9)]=function(_0x398d82,_0x8b4c41){const _0x27b2b3={_0x5773a2:0x1dc},_0x3b4fd8=_0x4a8f00;let _0x1b39cc;const _0x3ec83a=_0x398d82['scheduler']['ecInstance']['_mars3d_scene'];_0x398d82['eachComponent']('mars3dMap',function(_0x2477ef){const _0x52931=_0x2117,_0x21b337=_0x8b4c41[_0x52931(_0x27b2b3._0x5773a2)]()['painter'];if(!_0x21b337)return;!_0x1b39cc&&(_0x1b39cc=new CompositeCoordinateSystem(_0x3ec83a,_0x8b4c41)),_0x2477ef['coordinateSystem']=_0x1b39cc,_0x1b39cc['setMapOffset'](_0x2477ef[_0x52931(0x1de)]||[0x0,0x0]);}),_0x398d82[_0x3b4fd8(0x1c4)](function(_0x4c5e1d){_0x4c5e1d['get']('coordinateSystem')==='mars3dMap'&&(!_0x1b39cc&&(_0x1b39cc=new CompositeCoordinateSystem(_0x3ec83a,_0x8b4c41)),_0x4c5e1d['coordinateSystem']=_0x1b39cc);});};function _0x2117(_0x309ab1,_0x2f14ad){const _0x282ad2=_0x282a();return _0x2117=function(_0x211719,_0x3c4e52){_0x211719=_0x211719-0x1b4;let _0x308abc=_0x282ad2[_0x211719];return _0x308abc;},_0x2117(_0x309ab1,_0x2f14ad);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x4a8f00(0x1c1)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x4a8f00(0x1cf)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x1d406f,_0x2b4b7a){}),echarts__namespace['extendComponentModel']({'type':_0x4a8f00(0x1e5),'getBMap':function(){const _0x521cf9={_0x763fa7:0x1fa},_0x233a17=_0x4a8f00;return this[_0x233a17(_0x521cf9._0x763fa7)];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4a8f00(0x1df)]({'type':_0x4a8f00(0x1e5),'init':function(_0x2d894e,_0x59b488){const _0x1b0428=_0x4a8f00;this[_0x1b0428(0x1b7)]=_0x59b488,this['scene']=_0x2d894e['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x560ae4,_0x3ac74c){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x367f86,_0x5554fc,_0x2f6818){},'dispose':function(_0x9d4389){const _0x483fbc={_0x58dd6b:0x1c8},_0x4a6e08=_0x4a8f00;this['scene']['postRender'][_0x4a6e08(0x1c0)](this[_0x4a6e08(_0x483fbc._0x58dd6b)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x282a(){const _0xbdeedc=['DomUtil','mars3d-echarts','moveHandler','zIndex','off','echartsAutoHeight','scene','div','SceneMode','registerAction','dimensions','resize','Rectangle','removeChild','517520nDIDNP','fromDegrees','6WFtrTv','all','_api','setEchartsOption','887115ieaqjV','getHeight','getZr','wgs84ToWindowCoordinates','__mapOffset','extendComponentView','options','echarts','Cesium','pointerEvents','echartsDepthTest','mars3dMap','_pointerEvents','clampToGround','117732NUhbBM','dataToPoint','90AeaOfV','_map','Cartographic','5895009MDJUny','EllipsoidalOccluder','_echartsContainer','SceneTransforms','layer','lng','default','0px','max','getRoamTransform','visibility','ellipsoid','_echartsInstance','_mars3d_scene','height','_createChartOverlay','setMapOffset','clientWidth','api','clientHeight','create','7457592jKZGNv','949400VLJuCi','data','style','56vsXxvo','graphic','removeEventListener','registerCoordinateSystem','__esModule','canvas','eachSeries','260701DMXpZL'];_0x282a=function(){return _0xbdeedc;};return _0x282a();}const Cesium=mars3d__namespace[_0x4a8f00(0x1e2)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x42bb64={}){const _0x1902f9={_0x1ad15a:0x1e3},_0x4de254=_0x4a8f00;super(_0x42bb64),this['_pointerEvents']=this['options'][_0x4de254(_0x1902f9._0x1ad15a)];}get[_0x4a8f00(0x1f1)](){return this['_echartsInstance'];}get[_0x4a8f00(0x1e3)](){return this['_pointerEvents'];}set['pointerEvents'](_0x1dad6d){const _0x141d5b=_0x4a8f00;this[_0x141d5b(0x1e6)]=_0x1dad6d,this['_echartsContainer']&&(_0x1dad6d?this['_echartsContainer'][_0x141d5b(0x1bd)][_0x141d5b(0x1e3)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x2c0382,_0x2de41a){this['setEchartsOption'](_0x2c0382);}['_showHook'](_0x35fc99){const _0x58ad71={_0x31c3e5:0x1f7,_0x5a1068:0x1ef},_0x252ab4=_0x4a8f00;_0x35fc99?this['_echartsContainer']['style'][_0x252ab4(_0x58ad71._0x31c3e5)]='visible':this[_0x252ab4(_0x58ad71._0x5a1068)]['style']['visibility']='hidden';}['_mountedHook'](){const _0x4b8046={_0x49d0ff:0x1eb},_0x3bf9a1=_0x4a8f00;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x3bf9a1(_0x4b8046._0x49d0ff)]['scene']['echartsAutoHeight']=this['options'][_0x3bf9a1(0x1e7)]??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x3dc39d={_0x574af0:0x1f9,_0x396c21:0x1fa,_0x1eee3a:0x1eb},_0x5576d=_0x4a8f00;this[_0x5576d(0x1ef)]=this[_0x5576d(0x1b4)](),this[_0x5576d(_0x3dc39d._0x574af0)]=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance'][_0x5576d(_0x3dc39d._0x396c21)]=this[_0x5576d(_0x3dc39d._0x1eee3a)]['scene'],this[_0x5576d(0x1d9)](this['options']);}['_removedHook'](){const _0x5d1ffc={_0x16b788:0x1f9,_0x3f9b9d:0x1d3},_0x114b03=_0x4a8f00;this[_0x114b03(_0x5d1ffc._0x16b788)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this[_0x114b03(0x1ef)]&&(this['_map']['container'][_0x114b03(_0x5d1ffc._0x3f9b9d)](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x4a8f00(0x1b4)](){const _0x59f1c7={_0x3a4114:0x1cd,_0x2985d1:0x1cc,_0x567c77:0x1b6,_0x3c9f6e:0x1bd,_0x4548ee:0x1eb,_0x40ff70:0x1b8,_0x970b:0x1e6,_0x318f6f:0x1d7},_0x14e711=_0x4a8f00,_0x36c730=mars3d__namespace[_0x14e711(0x1c6)]['create'](_0x14e711(_0x59f1c7._0x3a4114),_0x14e711(0x1c7),this['_map']['container']);return _0x36c730['id']=this['id'],_0x36c730['style']['position']='absolute',_0x36c730['style']['top']=_0x14e711(0x1f4),_0x36c730['style']['left']='0px',_0x36c730['style']['width']=this[_0x14e711(0x1eb)][_0x14e711(_0x59f1c7._0x2985d1)]['canvas'][_0x14e711(_0x59f1c7._0x567c77)]+'px',_0x36c730[_0x14e711(_0x59f1c7._0x3c9f6e)]['height']=this[_0x14e711(_0x59f1c7._0x4548ee)][_0x14e711(0x1cc)]['canvas'][_0x14e711(_0x59f1c7._0x40ff70)]+'px',_0x36c730[_0x14e711(0x1bd)]['pointerEvents']=this[_0x14e711(_0x59f1c7._0x970b)]?_0x14e711(_0x59f1c7._0x318f6f):'none',_0x36c730['style'][_0x14e711(0x1c9)]=this[_0x14e711(0x1e0)]['zIndex']??0x9,_0x36c730;}[_0x4a8f00(0x1d1)](){const _0x3db067={_0x5843ad:0x1cc,_0x38c4d0:0x1c3,_0x2107c4:0x1bd,_0x5a7046:0x1fb,_0xa6e44b:0x1b8},_0x31aa33=_0x4a8f00;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map'][_0x31aa33(_0x3db067._0x5843ad)][_0x31aa33(_0x3db067._0x38c4d0)]['clientWidth']+'px',this['_echartsContainer'][_0x31aa33(_0x3db067._0x2107c4)][_0x31aa33(_0x3db067._0x5a7046)]=this['_map']['scene'][_0x31aa33(0x1c3)][_0x31aa33(_0x3db067._0xa6e44b)]+'px',this['_echartsInstance'][_0x31aa33(0x1d1)]();}['setEchartsOption'](_0x168440,_0x4b073a,_0x6803af){const _0x915bdc={_0xa4f0a0:0x1f9},_0x4dd2c0=_0x4a8f00;this[_0x4dd2c0(_0x915bdc._0xa4f0a0)]&&(_0x168440['mars3dMap']=_0x168440[_0x4dd2c0(0x1e5)]||{},this['_echartsInstance']['setOption'](_0x168440,_0x4b073a,_0x6803af));}['getRectangle'](_0x542bcb){const _0x45c915={_0x51478c:0x1d5},_0x56f70d={_0x358aaa:0x1f5},_0x2b95ac=_0x4a8f00;let _0x1f8e43,_0x980af3,_0x42f362,_0x49ecb3;function _0x4dd38c(_0x8452c5){const _0x261601=_0x2117;if(!Array['isArray'](_0x8452c5))return;const _0x3e6819=_0x8452c5[0x0]||0x0,_0x58c17=_0x8452c5[0x1]||0x0;_0x3e6819!==0x0&&_0x58c17!==0x0&&(_0x1f8e43===undefined?(_0x1f8e43=_0x3e6819,_0x980af3=_0x3e6819,_0x42f362=_0x58c17,_0x49ecb3=_0x58c17):(_0x1f8e43=Math['min'](_0x1f8e43,_0x3e6819),_0x980af3=Math[_0x261601(_0x56f70d._0x358aaa)](_0x980af3,_0x3e6819),_0x42f362=Math['min'](_0x42f362,_0x58c17),_0x49ecb3=Math['max'](_0x49ecb3,_0x58c17)));}const _0x550507=this['options']['series'];_0x550507&&_0x550507['forEach'](_0x128229=>{const _0x42281c=_0x2117;_0x128229[_0x42281c(0x1bc)]&&_0x128229['data']['forEach'](_0x5bb62=>{if(_0x5bb62['value'])_0x4dd38c(_0x5bb62['value']);else _0x5bb62['coords']&&_0x5bb62['coords']['forEach'](_0x107441=>{_0x4dd38c(_0x107441);});});});if(_0x1f8e43===0x0&&_0x42f362===0x0&&_0x980af3===0x0&&_0x49ecb3===0x0)return null;return _0x542bcb!==null&&_0x542bcb!==void 0x0&&_0x542bcb['isFormat']?{'xmin':_0x1f8e43,'xmax':_0x980af3,'ymin':_0x42f362,'ymax':_0x49ecb3}:Cesium[_0x2b95ac(0x1d2)][_0x2b95ac(_0x45c915._0x51478c)](_0x1f8e43,_0x42f362,_0x980af3,_0x49ecb3);}['on'](_0x1e27b7,_0x1af19d,_0x3a3096){return this['_echartsInstance']['on'](_0x1e27b7,_0x1af19d,_0x3a3096||this),this;}['onByQuery'](_0x1b90d5,_0x37c475,_0x6c9fcf,_0xa8cbcd){return this['_echartsInstance']['on'](_0x1b90d5,_0x37c475,_0x6c9fcf,_0xa8cbcd||this),this;}['off'](_0x40d1cc,_0x34a379,_0x51378e){const _0x5ee76d={_0x56c955:0x1ca},_0x4b9dbd=_0x4a8f00;return this[_0x4b9dbd(0x1f9)][_0x4b9dbd(_0x5ee76d._0x56c955)](_0x40d1cc,_0x34a379,_0x51378e||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x4a8f00(0x1e1),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x267300){if(_0x267300!=='default'&&!exports['hasOwnProperty'](_0x267300))Object['defineProperty'](exports,_0x267300,{'enumerable':!![],'get':function(){return echarts[_0x267300];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x1feee5=_0x4206;(function(_0x2757a4,_0x3bf639){const _0x19c41f={_0xb0e6a4:0xe5,_0x1bd2b5:0xf9,_0xb22565:0xe7,_0x364ab4:0xd3,_0x5a7805:0xf5,_0x59518e:0xd5},_0x580b23=_0x4206,_0x50c080=_0x2757a4();while(!![]){try{const _0x3b5e85=parseInt(_0x580b23(_0x19c41f._0xb0e6a4))/0x1+-parseInt(_0x580b23(_0x19c41f._0x1bd2b5))/0x2+parseInt(_0x580b23(_0x19c41f._0xb22565))/0x3+-parseInt(_0x580b23(0x106))/0x4*(parseInt(_0x580b23(_0x19c41f._0x364ab4))/0x5)+parseInt(_0x580b23(_0x19c41f._0x5a7805))/0x6+-parseInt(_0x580b23(_0x19c41f._0x59518e))/0x7+parseInt(_0x580b23(0xdc))/0x8*(parseInt(_0x580b23(0xdb))/0x9);if(_0x3b5e85===_0x3bf639)break;else _0x50c080['push'](_0x50c080['shift']());}catch(_0x4460dd){_0x50c080['push'](_0x50c080['shift']());}}}(_0x1af0,0x2f641));function _interopNamespace(_0x137f13){const _0x1334b1={_0x2cf4f8:0xe4},_0x274d77=_0x4206;if(_0x137f13&&_0x137f13['__esModule'])return _0x137f13;var _0x5842d6=Object[_0x274d77(_0x1334b1._0x2cf4f8)](null);return _0x137f13&&Object['keys'](_0x137f13)['forEach'](function(_0x5422ac){if(_0x5422ac!=='default'){var _0x4b6d32=Object['getOwnPropertyDescriptor'](_0x137f13,_0x5422ac);Object['defineProperty'](_0x5842d6,_0x5422ac,_0x4b6d32['get']?_0x4b6d32:{'enumerable':!![],'get':function(){return _0x137f13[_0x5422ac];}});}}),_0x5842d6['default']=_0x137f13,_0x5842d6;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x1feee5(0xd8)];class CompositeCoordinateSystem{constructor(_0x590548,_0xd6ab61){const _0x415725={_0x4f4c61:0x108},_0x12bdeb=_0x1feee5;this['_mars3d_scene']=_0x590548,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0x12bdeb(_0x415725._0x4f4c61)]=_0xd6ab61;}['setMapOffset'](_0x1f16f6){this['_mapOffset']=_0x1f16f6;}['getBMap'](){const _0x5ebb67=_0x1feee5;return this[_0x5ebb67(0xdf)];}['dataToPoint'](_0x941a2d){const _0x42e457={_0x1cf1ce:0x102},_0x51ef1b=_0x1feee5,_0x29d523=this['_mars3d_scene'],_0x509575=[NaN,NaN];let _0x37ba6d=_0x29d523[_0x51ef1b(0xf2)];_0x29d523['echartsAutoHeight']&&(_0x37ba6d=_0x29d523[_0x51ef1b(0xde)]['getHeight'](Cesium$1['Cartographic'][_0x51ef1b(_0x42e457._0x1cf1ce)](_0x941a2d[0x0],_0x941a2d[0x1])));const _0x57e203=Cesium$1['Cartesian3']['fromDegrees'](_0x941a2d[0x0],_0x941a2d[0x1],_0x37ba6d);if(!_0x57e203)return _0x509575;const _0x3577e0=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x29d523,_0x57e203);if(!_0x3577e0)return _0x509575;if(_0x29d523['echartsDepthTest']&&_0x29d523['mode']===Cesium$1[_0x51ef1b(0xda)]['SCENE3D']){const _0x52beee=new Cesium$1['EllipsoidalOccluder'](_0x29d523['globe']['ellipsoid'],_0x29d523[_0x51ef1b(0x103)]['positionWC']),_0x4f886f=_0x52beee[_0x51ef1b(0xd2)](_0x57e203);if(!_0x4f886f)return _0x509575;}return[_0x3577e0['x']-this['_mapOffset'][0x0],_0x3577e0['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x36f4d1={_0xa28790:0xeb},_0x46a9a7=_0x1feee5,_0x263845=this['_api'];return new echarts__namespace['graphic'][(_0x46a9a7(_0x36f4d1._0xa28790))](0x0,0x0,_0x263845['getWidth'](),_0x263845['getHeight']());}['getRoamTransform'](){const _0xcbc932={_0x56ebc8:0xf6,_0x12d5ab:0xe4},_0x3a3e1c=_0x1feee5;return echarts__namespace[_0x3a3e1c(_0xcbc932._0x56ebc8)][_0x3a3e1c(_0xcbc932._0x12d5ab)]();}}CompositeCoordinateSystem[_0x1feee5(0xd6)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x583924,_0x2ec48a){const _0x5b3021=_0x1feee5;let _0x4dacd0;const _0x3821de=_0x583924[_0x5b3021(0xe1)]['ecInstance']['_mars3d_scene'];_0x583924['eachComponent']('mars3dMap',function(_0x3e2f90){const _0x514dee=_0x5b3021,_0x2fbd60=_0x2ec48a['getZr']()['painter'];if(!_0x2fbd60)return;!_0x4dacd0&&(_0x4dacd0=new CompositeCoordinateSystem(_0x3821de,_0x2ec48a)),_0x3e2f90[_0x514dee(0xed)]=_0x4dacd0,_0x4dacd0['setMapOffset'](_0x3e2f90[_0x514dee(0xe8)]||[0x0,0x0]);}),_0x583924[_0x5b3021(0xe0)](function(_0x51760e){_0x51760e['get']('coordinateSystem')==='mars3dMap'&&(!_0x4dacd0&&(_0x4dacd0=new CompositeCoordinateSystem(_0x3821de,_0x2ec48a)),_0x51760e['coordinateSystem']=_0x4dacd0);});};function _0x4206(_0x3cff74,_0x528cb8){const _0x1af0a1=_0x1af0();return _0x4206=function(_0x4206b7,_0x29f469){_0x4206b7=_0x4206b7-0xcd;let _0x4a628d=_0x1af0a1[_0x4206b7];return _0x4a628d;},_0x4206(_0x3cff74,_0x528cb8);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x1feee5(0xd9)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1feee5(0x109)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x2d69ed,_0x14e4dc){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5f38a2,_0x5ae2c0){const _0x3f83d1={_0x20f44a:0x10d,_0x55ad2a:0x100,_0xf4b069:0x100},_0x45f182=_0x1feee5;this[_0x45f182(_0x3f83d1._0x20f44a)]=_0x5ae2c0,this[_0x45f182(_0x3f83d1._0x55ad2a)]=_0x5f38a2['scheduler']['ecInstance']['_mars3d_scene'],this[_0x45f182(_0x3f83d1._0xf4b069)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x545481,_0x316e52){const _0x2ac2b4={_0x17c16b:0x10d,_0xef85d0:0xe9},_0x58bf23=_0x1feee5;this[_0x58bf23(_0x2ac2b4._0x17c16b)]['dispatchAction']({'type':_0x58bf23(_0x2ac2b4._0xef85d0)});},'render':function(_0x5f251c,_0x3d5a78,_0x36dbf3){},'dispose':function(_0x28ebbd){const _0x279582=_0x1feee5;this['scene']['postRender']['removeEventListener'](this[_0x279582(0xf1)],this);}});else throw new Error(_0x1feee5(0xcf));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1feee5(0xee)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3fa608={}){super(_0x3fa608),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x358658=_0x1feee5;return this[_0x358658(0x107)];}set['pointerEvents'](_0x153638){const _0x5b9d20={_0x5394cf:0xf3,_0x1c3e21:0x104},_0x3af899=_0x1feee5;this['_pointerEvents']=_0x153638,this[_0x3af899(_0x5b9d20._0x5394cf)]&&(_0x153638?this[_0x3af899(0xf3)]['style']['pointerEvents']='all':this[_0x3af899(0xf3)][_0x3af899(0xf8)][_0x3af899(_0x5b9d20._0x1c3e21)]='none');}[_0x1feee5(0x10b)](_0x4f5987,_0x31eec1){const _0x2db01e={_0xb429a0:0xfd},_0x261566=_0x1feee5;this[_0x261566(_0x2db01e._0xb429a0)](_0x4f5987);}['_showHook'](_0x430d8a){const _0x3bd93c=_0x1feee5;_0x430d8a?this['_echartsContainer']['style']['visibility']=_0x3bd93c(0xf7):this[_0x3bd93c(0xf3)][_0x3bd93c(0xf8)][_0x3bd93c(0xfe)]='hidden';}['_mountedHook'](){const _0x253ced={_0x448195:0xfc,_0x511d10:0xd0,_0x34919b:0xd7,_0x28b493:0xf2},_0x37ee88=_0x1feee5;this['_map']['scene']['echartsDepthTest']=this[_0x37ee88(_0x253ced._0x448195)][_0x37ee88(_0x253ced._0x511d10)]??!![],this[_0x37ee88(0xd7)]['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this[_0x37ee88(_0x253ced._0x34919b)]['scene'][_0x37ee88(_0x253ced._0x28b493)]=this['options']['fixedHeight']??0x0;}[_0x1feee5(0xe6)](){const _0x598995={_0x3d7ad6:0xf3,_0x11cb32:0xfd},_0x2d9d59=_0x1feee5;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x2d9d59(_0x598995._0x3d7ad6)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x2d9d59(_0x598995._0x11cb32)](this['options']);}['_removedHook'](){const _0x2caf0a={_0x14900e:0xf4},_0x30c4c5=_0x1feee5;this['_echartsInstance']&&(this['_echartsInstance'][_0x30c4c5(_0x2caf0a._0x14900e)](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x30c4c5(0xd7)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x58a27a={_0x1afccb:0xf8,_0x3aa893:0x101,_0x5d48ab:0xce,_0x5a443c:0xd7,_0x2434db:0xdd,_0x2132f6:0xd7,_0x2190f9:0x104},_0x134260=_0x1feee5,_0xc70fee=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0x134260(0x10a)]);return _0xc70fee['id']=this['id'],_0xc70fee[_0x134260(_0x58a27a._0x1afccb)]['position']='absolute',_0xc70fee['style'][_0x134260(_0x58a27a._0x3aa893)]=_0x134260(0xce),_0xc70fee['style']['left']=_0x134260(_0x58a27a._0x5d48ab),_0xc70fee['style'][_0x134260(0x10c)]=this[_0x134260(_0x58a27a._0x5a443c)]['scene'][_0x134260(_0x58a27a._0x2434db)]['clientWidth']+'px',_0xc70fee['style']['height']=this[_0x134260(_0x58a27a._0x2132f6)]['scene'][_0x134260(_0x58a27a._0x2434db)][_0x134260(0xe3)]+'px',_0xc70fee['style'][_0x134260(_0x58a27a._0x2190f9)]=this['_pointerEvents']?'all':'none',_0xc70fee['style']['zIndex']=this['options']['zIndex']??0x9,_0xc70fee;}['resize'](){const _0x4d91e3={_0xca5265:0xf8,_0x221bdc:0x100,_0x4f1416:0xe3,_0x49d367:0xec},_0x2f37c9=_0x1feee5;if(!this[_0x2f37c9(0xef)])return;this['_echartsContainer'][_0x2f37c9(_0x4d91e3._0xca5265)]['width']=this['_map'][_0x2f37c9(_0x4d91e3._0x221bdc)]['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x2f37c9(0xea)]=this['_map']['scene'][_0x2f37c9(0xdd)][_0x2f37c9(_0x4d91e3._0x4f1416)]+'px',this['_echartsInstance'][_0x2f37c9(_0x4d91e3._0x49d367)]();}['setEchartsOption'](_0xf73ea3,_0x11d5f8,_0x51cff8){const _0x4de979={_0x2ef8a8:0x105},_0x40f1d8=_0x1feee5;this[_0x40f1d8(0xef)]&&(_0xf73ea3['mars3dMap']=_0xf73ea3[_0x40f1d8(_0x4de979._0x2ef8a8)]||{},this['_echartsInstance']['setOption'](_0xf73ea3,_0x11d5f8,_0x51cff8));}[_0x1feee5(0xfb)](_0xcce6e8){const _0x98e3eb={_0x40c07d:0x102},_0x4e6c99={_0x3c015a:0xe2},_0x114051=_0x1feee5;let _0x35c399,_0x4de811,_0x4113e2,_0x39c0e3;function _0x460b37(_0x45f972){const _0x32c875=_0x4206;if(!Array['isArray'](_0x45f972))return;const _0x34c2c1=_0x45f972[0x0]||0x0,_0xddf9af=_0x45f972[0x1]||0x0;_0x34c2c1!==0x0&&_0xddf9af!==0x0&&(_0x35c399===undefined?(_0x35c399=_0x34c2c1,_0x4de811=_0x34c2c1,_0x4113e2=_0xddf9af,_0x39c0e3=_0xddf9af):(_0x35c399=Math['min'](_0x35c399,_0x34c2c1),_0x4de811=Math[_0x32c875(0xd4)](_0x4de811,_0x34c2c1),_0x4113e2=Math[_0x32c875(_0x4e6c99._0x3c015a)](_0x4113e2,_0xddf9af),_0x39c0e3=Math['max'](_0x39c0e3,_0xddf9af)));}const _0x40e629=this['options']['series'];_0x40e629&&_0x40e629['forEach'](_0x97c98a=>{const _0x336fdc=_0x4206;_0x97c98a['data']&&_0x97c98a[_0x336fdc(0xcd)]['forEach'](_0x5e7aef=>{if(_0x5e7aef['value'])_0x460b37(_0x5e7aef['value']);else _0x5e7aef['coords']&&_0x5e7aef['coords']['forEach'](_0x578f58=>{_0x460b37(_0x578f58);});});});if(_0x35c399===0x0&&_0x4113e2===0x0&&_0x4de811===0x0&&_0x39c0e3===0x0)return null;return _0xcce6e8!==null&&_0xcce6e8!==void 0x0&&_0xcce6e8['isFormat']?{'xmin':_0x35c399,'xmax':_0x4de811,'ymin':_0x4113e2,'ymax':_0x39c0e3}:Cesium['Rectangle'][_0x114051(_0x98e3eb._0x40c07d)](_0x35c399,_0x4113e2,_0x4de811,_0x39c0e3);}['on'](_0x55f08b,_0x3881e8,_0x4cc2ed){return this['_echartsInstance']['on'](_0x55f08b,_0x3881e8,_0x4cc2ed||this),this;}['onByQuery'](_0x24a728,_0x2b45e6,_0x34aac5,_0x322f79){const _0xa6fdc3=_0x1feee5;return this[_0xa6fdc3(0xef)]['on'](_0x24a728,_0x2b45e6,_0x34aac5,_0x322f79||this),this;}['off'](_0x2e6353,_0x1deac0,_0x42bb56){return this['_echartsInstance']['off'](_0x2e6353,_0x1deac0,_0x42bb56||this),this;}}mars3d__namespace[_0x1feee5(0xfa)]['register'](_0x1feee5(0xff),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x1feee5(0xf0)](echarts)['forEach'](function(_0x47319e){const _0x123666=_0x1feee5;if(_0x47319e!=='default'&&!exports[_0x123666(0xd1)](_0x47319e))Object['defineProperty'](exports,_0x47319e,{'enumerable':!![],'get':function(){return echarts[_0x47319e];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x1af0(){const _0x2b2c83=['691338sPNCsd','LayerUtil','getRectangle','options','setEchartsOption','visibility','echarts','scene','top','fromDegrees','camera','pointerEvents','mars3dMap','124AspQaI','_pointerEvents','_api','registerAction','container','_setOptionsHook','width','api','data','0px','请引入\x20echarts\x20库\x20','depthTest','hasOwnProperty','isPointVisible','54715uZwymG','max','1013243AERKAj','dimensions','_map','Cesium','registerCoordinateSystem','SceneMode','27dxNVwP','1213144QflRXm','canvas','globe','_mars3d_scene','eachSeries','scheduler','min','clientHeight','create','240538VSrtIy','_addedHook','912231WOPwBE','__mapOffset','mars3dMapRoam','height','BoundingRect','resize','coordinateSystem','layer','_echartsInstance','keys','moveHandler','echartsFixedHeight','_echartsContainer','clear','145320MmUsoa','matrix','visible','style'];_0x1af0=function(){return _0x2b2c83;};return _0x1af0();}
}));
{
"name": "mars3d-echarts",
"version": "3.5.10",
"version": "3.5.11",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js",

"devDependencies": {
"mars3d": "~3.5.10"
"mars3d": "~3.5.11"
},

@@ -16,0 +16,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc