New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-echarts

Package Overview
Dependencies
Maintainers
1
Versions
159
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.6.18 to 3.7.0

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.6.18
* 编译日期:2023-12-31 22:36:48
* 版本信息:v3.7.0
* 编译日期:2024-01-15 15:59:39
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x4ebc41=_0x2518;(function(_0xc70dde,_0x27e4a5){const _0x35339b={_0x2fcb04:0x185,_0x535383:0x17b,_0xd7fd41:0x1a8,_0xc5e3c9:0x17e,_0x3ad940:0x178},_0x46ddc4=_0x2518,_0x1973a4=_0xc70dde();while(!![]){try{const _0x571dff=-parseInt(_0x46ddc4(0x197))/0x1+-parseInt(_0x46ddc4(0x1aa))/0x2*(parseInt(_0x46ddc4(_0x35339b._0x2fcb04))/0x3)+-parseInt(_0x46ddc4(_0x35339b._0x535383))/0x4*(parseInt(_0x46ddc4(_0x35339b._0xd7fd41))/0x5)+parseInt(_0x46ddc4(0x19e))/0x6*(-parseInt(_0x46ddc4(_0x35339b._0xc5e3c9))/0x7)+parseInt(_0x46ddc4(0x172))/0x8+-parseInt(_0x46ddc4(0x1a3))/0x9+parseInt(_0x46ddc4(_0x35339b._0x3ad940))/0xa;if(_0x571dff===_0x27e4a5)break;else _0x1973a4['push'](_0x1973a4['shift']());}catch(_0x3cf434){_0x1973a4['push'](_0x1973a4['shift']());}}}(_0x3ba3,0x8b0f5));function _interopNamespace(_0x2919fe){const _0xa291d={_0x101947:0x1a7},_0x5c3ca5={_0x34c8cd:0x19c},_0xc1d1d4=_0x2518;if(_0x2919fe&&_0x2919fe['__esModule'])return _0x2919fe;var _0x51ab5e=Object[_0xc1d1d4(_0xa291d._0x101947)](null);return _0x2919fe&&Object['keys'](_0x2919fe)['forEach'](function(_0x3ca4de){const _0x225dae=_0xc1d1d4;if(_0x3ca4de!=='default'){var _0x654a91=Object[_0x225dae(_0x5c3ca5._0x34c8cd)](_0x2919fe,_0x3ca4de);Object['defineProperty'](_0x51ab5e,_0x3ca4de,_0x654a91['get']?_0x654a91:{'enumerable':!![],'get':function(){return _0x2919fe[_0x3ca4de];}});}}),_0x51ab5e['default']=_0x2919fe,_0x51ab5e;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2518(_0x86885a,_0x1fdcb0){const _0x3ba33d=_0x3ba3();return _0x2518=function(_0x2518dd,_0x2e8561){_0x2518dd=_0x2518dd-0x166;let _0x38da4d=_0x3ba33d[_0x2518dd];return _0x38da4d;},_0x2518(_0x86885a,_0x1fdcb0);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x1451a0,_0xc352a9){const _0x48a69f={_0x3e0131:0x19a,_0x276a86:0x16a},_0x853ea=_0x2518;this['_mars3d_scene']=_0x1451a0,this['dimensions']=[_0x853ea(_0x48a69f._0x3e0131),'lat'],this[_0x853ea(_0x48a69f._0x276a86)]=[0x0,0x0],this[_0x853ea(0x181)]=_0xc352a9;}[_0x4ebc41(0x184)](_0x593c0f){this['_mapOffset']=_0x593c0f;}[_0x4ebc41(0x188)](){return this['_mars3d_scene'];}['dataToPoint'](_0x186919){const _0x459703={_0x2bb43d:0x198,_0x4c30de:0x176},_0x3a8184=_0x4ebc41,_0x51ea49=this['_mars3d_scene'],_0x14b891=[NaN,NaN];let _0x5f399f=_0x51ea49['echartsFixedHeight'];_0x51ea49['echartsAutoHeight']&&(_0x5f399f=_0x51ea49['globe'][_0x3a8184(_0x459703._0x2bb43d)](Cesium$1['Cartographic']['fromDegrees'](_0x186919[0x0],_0x186919[0x1])));const _0x55f8c7=Cesium$1[_0x3a8184(_0x459703._0x4c30de)]['fromDegrees'](_0x186919[0x0],_0x186919[0x1],_0x5f399f);if(!_0x55f8c7)return _0x14b891;const _0xe15463=Cesium$1[_0x3a8184(0x1a1)]['wgs84ToWindowCoordinates'](_0x51ea49,_0x55f8c7);if(!_0xe15463)return _0x14b891;if(_0x51ea49[_0x3a8184(0x174)]&&_0x51ea49['mode']===Cesium$1[_0x3a8184(0x18b)]['SCENE3D']){const _0x15b7b3=new Cesium$1['EllipsoidalOccluder'](_0x51ea49['globe']['ellipsoid'],_0x51ea49['camera']['positionWC']),_0x667d7=_0x15b7b3[_0x3a8184(0x16f)](_0x55f8c7);if(!_0x667d7)return _0x14b891;}return[_0xe15463['x']-this['_mapOffset'][0x0],_0xe15463['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0xbcce82={_0xb2813:0x19b},_0x3288f4=_0x4ebc41,_0x224a0d=this['_api'];return new echarts__namespace[(_0x3288f4(_0xbcce82._0xb2813))]['BoundingRect'](0x0,0x0,_0x224a0d['getWidth'](),_0x224a0d['getHeight']());}['getRoamTransform'](){const _0x15d386=_0x4ebc41;return echarts__namespace[_0x15d386(0x175)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x4ebc41(0x1a7)]=function(_0x519cd0,_0x1de40f){const _0x4b3087={_0x1c07ce:0x1a4},_0x3369fb=_0x4ebc41;let _0x1ac497;const _0x45233a=_0x519cd0['scheduler'][_0x3369fb(0x193)]['_mars3d_scene'];_0x519cd0['eachComponent']('mars3dMap',function(_0x481559){const _0x50e054=_0x3369fb,_0x330488=_0x1de40f[_0x50e054(0x171)]()['painter'];if(!_0x330488)return;!_0x1ac497&&(_0x1ac497=new CompositeCoordinateSystem(_0x45233a,_0x1de40f)),_0x481559['coordinateSystem']=_0x1ac497,_0x1ac497['setMapOffset'](_0x481559[_0x50e054(0x1ab)]||[0x0,0x0]);}),_0x519cd0['eachSeries'](function(_0x28b854){const _0xce41b8=_0x3369fb;_0x28b854[_0xce41b8(0x1a5)]('coordinateSystem')===_0xce41b8(_0x4b3087._0x1c07ce)&&(!_0x1ac497&&(_0x1ac497=new CompositeCoordinateSystem(_0x45233a,_0x1de40f)),_0x28b854['coordinateSystem']=_0x1ac497);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x4ebc41(0x191)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x9c8d0a,_0xb8d12f){}),echarts__namespace[_0x4ebc41(0x1a9)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x2c8bd8,_0x549d2f){const _0x2c5696={_0x35ec0e:0x16b},_0x2b7471=_0x4ebc41;this['api']=_0x549d2f,this['scene']=_0x2c8bd8[_0x2b7471(0x18d)][_0x2b7471(0x193)][_0x2b7471(_0x2c5696._0x35ec0e)],this['scene'][_0x2b7471(0x190)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x3b598a,_0x1bdde3){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x5be373,_0x1d6683,_0x48013b){},'dispose':function(_0x430dfe){const _0x562699=_0x4ebc41;this['scene']['postRender'][_0x562699(0x186)](this['moveHandler'],this);}});else throw new Error(_0x4ebc41(0x1a2));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x561652={}){super(_0x561652),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x4ebc41(0x182)](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x3ba365=_0x4ebc41;return this[_0x3ba365(0x199)];}set[_0x4ebc41(0x17d)](_0x5a630d){const _0x3d4c6a={_0xeacc99:0x199,_0x34b3c3:0x17d,_0x1b4fba:0x19f},_0xf21002=_0x4ebc41;this[_0xf21002(_0x3d4c6a._0xeacc99)]=_0x5a630d,this['_echartsContainer']&&(_0x5a630d?this[_0xf21002(0x167)]['style'][_0xf21002(_0x3d4c6a._0x34b3c3)]=_0xf21002(_0x3d4c6a._0x1b4fba):this['_echartsContainer'][_0xf21002(0x1a0)]['pointerEvents']='none');}['_setOptionsHook'](_0xb2a89e,_0x28cc69){this['setEchartsOption'](_0xb2a89e);}['_showHook'](_0x437390){const _0x182ea1={_0x242213:0x18e},_0x23d5ed=_0x4ebc41;_0x437390?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style'][_0x23d5ed(_0x182ea1._0x242213)]='hidden';}['_mountedHook'](){const _0x400561={_0x350f50:0x177,_0xcce3be:0x192,_0x33475f:0x18c},_0x361d32=_0x4ebc41;this['_map']['scene']['echartsDepthTest']=this[_0x361d32(_0x400561._0x350f50)][_0x361d32(_0x400561._0xcce3be)]??!![],this['_map'][_0x361d32(0x17f)]['echartsAutoHeight']=this[_0x361d32(0x177)]['clampToGround']??![],this['_map']['scene'][_0x361d32(_0x400561._0x33475f)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x9ba510={_0x22e580:0x187,_0x182775:0x166,_0x1da9ee:0x17c,_0x2f08c6:0x177},_0x173e1c=_0x4ebc41;this['_echartsContainer']=this[_0x173e1c(_0x9ba510._0x22e580)](),this[_0x173e1c(0x1a6)]=echarts__namespace[_0x173e1c(_0x9ba510._0x182775)](this['_echartsContainer']),this[_0x173e1c(0x1a6)]['_mars3d_scene']=this[_0x173e1c(_0x9ba510._0x1da9ee)]['scene'],this[_0x173e1c(0x16c)](this[_0x173e1c(_0x9ba510._0x2f08c6)]);}['_removedHook'](){const _0x18d78e={_0x45fa67:0x1a6},_0xd38438=_0x4ebc41;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0xd38438(_0x18d78e._0x45fa67)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0xd38438(0x17c)]['container']['removeChild'](this[_0xd38438(0x167)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x43370c={_0x2d17e5:0x17c,_0x321b30:0x1a0},_0x5bba4b=_0x4ebc41,_0x40d2c8=mars3d__namespace['DomUtil']['create'](_0x5bba4b(0x183),'mars3d-echarts',this[_0x5bba4b(_0x43370c._0x2d17e5)]['container']);return _0x40d2c8['id']=this['id'],_0x40d2c8[_0x5bba4b(_0x43370c._0x321b30)]['position']='absolute',_0x40d2c8[_0x5bba4b(0x1a0)]['top']='0px',_0x40d2c8['style']['left']='0px',_0x40d2c8['style']['width']=this['_map']['scene'][_0x5bba4b(0x19d)]['clientWidth']+'px',_0x40d2c8['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x40d2c8['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x40d2c8['style']['zIndex']=this['options']['zIndex']??0x9,_0x40d2c8;}['resize'](){const _0x126691={_0x468fdf:0x195,_0x9c27cf:0x179,_0x48f024:0x19d},_0x108bb7=_0x4ebc41;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x108bb7(_0x126691._0x468fdf)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x108bb7(_0x126691._0x9c27cf)]=this['_map'][_0x108bb7(0x17f)][_0x108bb7(_0x126691._0x48f024)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x7952b7,_0x4f8ca3,_0xfbe1ce){const _0x262d1f={_0x574ff7:0x16d},_0x440896=_0x4ebc41;this['_echartsInstance']&&(_0x7952b7={'mars3dMap':{},...mars3d__namespace[_0x440896(0x18f)]['getAttrVal'](_0x7952b7,{'onlySimpleType':!![]})},delete _0x7952b7[_0x440896(_0x262d1f._0x574ff7)],this['_echartsInstance'][_0x440896(0x180)](_0x7952b7,_0x4f8ca3,_0xfbe1ce));}[_0x4ebc41(0x17a)](_0x59a4bd){const _0x26c721={_0x4419d2:0x168,_0x1e813c:0x1ac},_0x53e242={_0x30baf0:0x18a,_0x187b6f:0x16e},_0x530691=_0x4ebc41;let _0xbf19eb,_0x27474b,_0x46f78d,_0x5ef2d3;function _0x19ef9a(_0x441c84){const _0x54dd86=_0x2518;if(!Array['isArray'](_0x441c84))return;const _0x1c62b1=_0x441c84[0x0]||0x0,_0x1da04c=_0x441c84[0x1]||0x0;_0x1c62b1!==0x0&&_0x1da04c!==0x0&&(_0xbf19eb===undefined?(_0xbf19eb=_0x1c62b1,_0x27474b=_0x1c62b1,_0x46f78d=_0x1da04c,_0x5ef2d3=_0x1da04c):(_0xbf19eb=Math[_0x54dd86(_0x53e242._0x30baf0)](_0xbf19eb,_0x1c62b1),_0x27474b=Math[_0x54dd86(_0x53e242._0x187b6f)](_0x27474b,_0x1c62b1),_0x46f78d=Math['min'](_0x46f78d,_0x1da04c),_0x5ef2d3=Math[_0x54dd86(0x16e)](_0x5ef2d3,_0x1da04c)));}const _0x14e7a6=this['options']['series'];_0x14e7a6&&_0x14e7a6[_0x530691(_0x26c721._0x4419d2)](_0xe3591e=>{_0xe3591e['data']&&_0xe3591e['data']['forEach'](_0x15ada5=>{if(_0x15ada5['value'])_0x19ef9a(_0x15ada5['value']);else _0x15ada5['coords']&&_0x15ada5['coords']['forEach'](_0x1aa74b=>{_0x19ef9a(_0x1aa74b);});});});if(_0xbf19eb===0x0&&_0x46f78d===0x0&&_0x27474b===0x0&&_0x5ef2d3===0x0)return null;return _0x59a4bd!==null&&_0x59a4bd!==void 0x0&&_0x59a4bd['isFormat']?{'xmin':_0xbf19eb,'xmax':_0x27474b,'ymin':_0x46f78d,'ymax':_0x5ef2d3}:Cesium['Rectangle'][_0x530691(_0x26c721._0x1e813c)](_0xbf19eb,_0x46f78d,_0x27474b,_0x5ef2d3);}['on'](_0x1f919e,_0x3c6cbc,_0xa4a84b){return this['_echartsInstance']['on'](_0x1f919e,_0x3c6cbc,_0xa4a84b||this),this;}['onByQuery'](_0x30d698,_0x5d4088,_0x27b702,_0x2ad439){return this['_echartsInstance']['on'](_0x30d698,_0x5d4088,_0x27b702,_0x2ad439||this),this;}[_0x4ebc41(0x169)](_0x3603a8,_0x578bee,_0x4f29f8){return this['_echartsInstance']['off'](_0x3603a8,_0x578bee,_0x4f29f8||this),this;}}function _0x3ba3(){const _0x116a9b=['4394530QTUuaa','extendComponentModel','2lJghUu','__mapOffset','fromDegrees','init','_echartsContainer','forEach','off','_mapOffset','_mars3d_scene','setEchartsOption','eventParent','max','isPointVisible','defineProperty','getZr','2236216iXqjlF','echarts','echartsDepthTest','matrix','Cartesian3','options','29223550sXtkUW','height','getRectangle','4JNpqTA','_map','pointerEvents','4614785cZdoCa','scene','setOption','_api','layer','div','setMapOffset','1246389npmWIW','removeEventListener','_createChartOverlay','getBMap','EchartsLayer','min','SceneMode','echartsFixedHeight','scheduler','visibility','Util','postRender','registerAction','depthTest','ecInstance','LayerUtil','width','__esModule','12170kBIXdp','getHeight','_pointerEvents','lng','graphic','getOwnPropertyDescriptor','canvas','6bFiLvz','all','style','SceneTransforms','请引入\x20echarts\x20库\x20','5998491zOhikS','mars3dMap','get','_echartsInstance','create'];_0x3ba3=function(){return _0x116a9b;};return _0x3ba3();}mars3d__namespace[_0x4ebc41(0x194)]['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x4ebc41(0x189)]=EchartsLayer,mars3d__namespace[_0x4ebc41(0x173)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x1aea6d){const _0x2e3659=_0x4ebc41;if(_0x1aea6d!=='default'&&!exports['hasOwnProperty'](_0x1aea6d))Object[_0x2e3659(0x170)](exports,_0x1aea6d,{'enumerable':!![],'get':function(){return echarts[_0x1aea6d];}});}),Object['defineProperty'](exports,_0x4ebc41(0x196),{'value':!![]});
'use strict';const _0xcec212=_0x3647;(function(_0x3eb4dc,_0xb6bef){const _0x378aa0={_0x462e1e:0x8a,_0x34b3e6:0x9f,_0x43bd74:0xaa,_0x526f65:0x92,_0x43e980:0x6f,_0x43dd4f:0x7c},_0x16a701=_0x3647,_0x23b633=_0x3eb4dc();while(!![]){try{const _0x262ed1=-parseInt(_0x16a701(_0x378aa0._0x462e1e))/0x1+parseInt(_0x16a701(_0x378aa0._0x34b3e6))/0x2*(-parseInt(_0x16a701(_0x378aa0._0x43bd74))/0x3)+parseInt(_0x16a701(0x86))/0x4+parseInt(_0x16a701(_0x378aa0._0x526f65))/0x5+parseInt(_0x16a701(_0x378aa0._0x43e980))/0x6+parseInt(_0x16a701(_0x378aa0._0x43dd4f))/0x7+parseInt(_0x16a701(0x95))/0x8*(-parseInt(_0x16a701(0x98))/0x9);if(_0x262ed1===_0xb6bef)break;else _0x23b633['push'](_0x23b633['shift']());}catch(_0x1dd1ff){_0x23b633['push'](_0x23b633['shift']());}}}(_0x4a3a,0xe097e));function _interopNamespace(_0x1139a4){const _0x219a01={_0x348978:0x7e},_0x4c5295=_0x3647;if(_0x1139a4&&_0x1139a4['__esModule'])return _0x1139a4;var _0x4a33e8=Object['create'](null);return _0x1139a4&&Object[_0x4c5295(0x9d)](_0x1139a4)['forEach'](function(_0x3c46ba){const _0x2f94b5=_0x4c5295;if(_0x3c46ba!=='default'){var _0x4b59fe=Object['getOwnPropertyDescriptor'](_0x1139a4,_0x3c46ba);Object['defineProperty'](_0x4a33e8,_0x3c46ba,_0x4b59fe[_0x2f94b5(_0x219a01._0x348978)]?_0x4b59fe:{'enumerable':!![],'get':function(){return _0x1139a4[_0x3c46ba];}});}}),_0x4a33e8['default']=_0x1139a4,_0x4a33e8;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x3647(_0xa7f8fa,_0x3d4f21){const _0x4a3a09=_0x4a3a();return _0x3647=function(_0x36473d,_0x31d8ac){_0x36473d=_0x36473d-0x6c;let _0x3cbdcf=_0x4a3a09[_0x36473d];return _0x3cbdcf;},_0x3647(_0xa7f8fa,_0x3d4f21);}const Cesium$1=mars3d__namespace[_0xcec212(0x81)];class CompositeCoordinateSystem{constructor(_0xc4bcd9,_0x20f260){const _0x40251e={_0x160f9e:0xa3},_0xe0f570=_0xcec212;this['_mars3d_scene']=_0xc4bcd9,this[_0xe0f570(_0x40251e._0x160f9e)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x20f260;}[_0xcec212(0x77)](_0x2b1919){this['_mapOffset']=_0x2b1919;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5b321e){const _0x25b3ed={_0x433a9a:0x96},_0x117ef7=_0xcec212,_0x32ab4d=this['_mars3d_scene'],_0xa6078e=[NaN,NaN];let _0x1daf42=_0x32ab4d['echartsFixedHeight'];_0x32ab4d['echartsAutoHeight']&&(_0x1daf42=_0x32ab4d['globe']['getHeight'](Cesium$1['Cartographic'][_0x117ef7(0x97)](_0x5b321e[0x0],_0x5b321e[0x1])));const _0x39c2db=Cesium$1['Cartesian3']['fromDegrees'](_0x5b321e[0x0],_0x5b321e[0x1],_0x1daf42);if(!_0x39c2db)return _0xa6078e;const _0x14bd5f=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x32ab4d,_0x39c2db);if(!_0x14bd5f)return _0xa6078e;if(_0x32ab4d[_0x117ef7(_0x25b3ed._0x433a9a)]&&_0x32ab4d['mode']===Cesium$1['SceneMode'][_0x117ef7(0x6e)]){const _0x15f20=new Cesium$1[(_0x117ef7(0x84))](_0x32ab4d[_0x117ef7(0x8d)]['ellipsoid'],_0x32ab4d['camera']['positionWC']),_0x942be5=_0x15f20['isPointVisible'](_0x39c2db);if(!_0x942be5)return _0xa6078e;}return[_0x14bd5f['x']-this['_mapOffset'][0x0],_0x14bd5f['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x306340={_0x2c3ca2:0x88},_0x316c3a=_0xcec212,_0x400ef1=this['_api'];return new echarts__namespace[(_0x316c3a(0x89))]['BoundingRect'](0x0,0x0,_0x400ef1['getWidth'](),_0x400ef1[_0x316c3a(_0x306340._0x2c3ca2)]());}['getRoamTransform'](){const _0x4b4515={_0x1e8ab9:0xa7},_0x288175=_0xcec212;return echarts__namespace[_0x288175(0x75)][_0x288175(_0x4b4515._0x1e8ab9)]();}}function _0x4a3a(){const _0x28aeb9=['off','6oCurir','_mars3d_scene','_mountedHook','SCENE3D','7900044DKwttW','mars3dMap','init','isArray','default','echarts','matrix','eachSeries','setMapOffset','BaseLayer','options','canvas','style','7388157LfVpPw','0px','get','height','visible','Cesium','registerCoordinateSystem','ecInstance','EllipsoidalOccluder','mars3d-echarts','7091056amQFlx','_echartsContainer','getHeight','graphic','1762293kqKpGo','pointerEvents','clampToGround','globe','none','api','setOption','echartsFixedHeight','4316375namjIN','_setOptionsHook','removeChild','53608RyIcvI','echartsDepthTest','fromDegrees','2115xORxas','forEach','coordinateSystem','Util','_echartsInstance','keys','_map','751202wrlgiw','extendComponentModel','top','scene','dimensions','echartsAutoHeight','absolute','width','create','onByQuery'];_0x4a3a=function(){return _0x28aeb9;};return _0x4a3a();}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0xcec212(0xa7)]=function(_0x1d489e,_0x263bcf){const _0x2897c0={_0x2c20c5:0x7e},_0x1a824a=_0xcec212;let _0x59af26;const _0x42d9a9=_0x1d489e['scheduler']['ecInstance']['_mars3d_scene'];_0x1d489e['eachComponent']('mars3dMap',function(_0x2d2907){const _0x27ae12=_0x263bcf['getZr']()['painter'];if(!_0x27ae12)return;!_0x59af26&&(_0x59af26=new CompositeCoordinateSystem(_0x42d9a9,_0x263bcf)),_0x2d2907['coordinateSystem']=_0x59af26,_0x59af26['setMapOffset'](_0x2d2907['__mapOffset']||[0x0,0x0]);}),_0x1d489e[_0x1a824a(0x76)](function(_0x361f2b){const _0x3ed50d=_0x1a824a;_0x361f2b[_0x3ed50d(_0x2897c0._0x2c20c5)]('coordinateSystem')==='mars3dMap'&&(!_0x59af26&&(_0x59af26=new CompositeCoordinateSystem(_0x42d9a9,_0x263bcf)),_0x361f2b[_0x3ed50d(0x9a)]=_0x59af26);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0xcec212(0x82)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x317fdf,_0x4e1cf5){}),echarts__namespace[_0xcec212(0xa0)]({'type':_0xcec212(0x70),'getBMap':function(){const _0x19d74f=_0xcec212;return this[_0x19d74f(0x6c)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x477bb1,_0x1e9eeb){const _0x4c4f9d={_0x1b8f57:0xa2},_0x3da647=_0xcec212;this[_0x3da647(0x8f)]=_0x1e9eeb,this[_0x3da647(_0x4c4f9d._0x1b8f57)]=_0x477bb1['scheduler'][_0x3da647(0x83)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x428960,_0x146ae6){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x1d4bec,_0x20f7b9,_0x4daef0){},'dispose':function(_0x46e8bb){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0xcec212(0x78)];class EchartsLayer extends BaseLayer{constructor(_0x4a8a06={}){const _0xd84c7a=_0xcec212;super(_0x4a8a06),this['_pointerEvents']=this['options'][_0xd84c7a(0x8b)];}get['layer'](){return this['_echartsInstance'];}get[_0xcec212(0x8b)](){return this['_pointerEvents'];}set[_0xcec212(0x8b)](_0x5e9ca5){const _0x78b446={_0x4346bf:0x8b,_0x45e965:0x8e},_0x3f5262=_0xcec212;this['_pointerEvents']=_0x5e9ca5,this['_echartsContainer']&&(_0x5e9ca5?this['_echartsContainer'][_0x3f5262(0x7b)]['pointerEvents']='all':this['_echartsContainer']['style'][_0x3f5262(_0x78b446._0x4346bf)]=_0x3f5262(_0x78b446._0x45e965));}[_0xcec212(0x93)](_0x1c9e92,_0x4649da){this['setEchartsOption'](_0x1c9e92);}['_showHook'](_0x4e2455){const _0x974402=_0xcec212;_0x4e2455?this['_echartsContainer']['style']['visibility']=_0x974402(0x80):this['_echartsContainer'][_0x974402(0x7b)]['visibility']='hidden';}[_0xcec212(0x6d)](){const _0x3f9164={_0x2056f3:0xa2,_0x4e40e7:0x79,_0x2b6cc9:0x91},_0x32d9b6=_0xcec212;this['_map'][_0x32d9b6(_0x3f9164._0x2056f3)]['echartsDepthTest']=this['options']['depthTest']??!![],this['_map'][_0x32d9b6(_0x3f9164._0x2056f3)][_0x32d9b6(0xa4)]=this[_0x32d9b6(_0x3f9164._0x4e40e7)][_0x32d9b6(0x8c)]??![],this['_map']['scene'][_0x32d9b6(_0x3f9164._0x2b6cc9)]=this[_0x32d9b6(0x79)]['fixedHeight']??0x0;}['_addedHook'](){const _0x446d26={_0x52c69d:0x71,_0x25fba0:0xa2},_0x36d08a=_0xcec212;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x36d08a(0x9c)]=echarts__namespace[_0x36d08a(_0x446d26._0x52c69d)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x36d08a(_0x446d26._0x25fba0)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x3fcbb0={_0x217c4c:0x94},_0x581d2a=_0xcec212;this[_0x581d2a(0x9c)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this[_0x581d2a(0x87)]&&(this[_0x581d2a(0x9e)]['container'][_0x581d2a(_0x3fcbb0._0x217c4c)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x46c30b={_0x4db21f:0xa7,_0x242af4:0x7d,_0xce4a4d:0xa6,_0x18bdc1:0xa2},_0x429bf3=_0xcec212,_0x4a1659=mars3d__namespace['DomUtil'][_0x429bf3(_0x46c30b._0x4db21f)]('div',_0x429bf3(0x85),this['_map']['container']);return _0x4a1659['id']=this['id'],_0x4a1659['style']['position']=_0x429bf3(0xa5),_0x4a1659['style'][_0x429bf3(0xa1)]='0px',_0x4a1659['style']['left']=_0x429bf3(_0x46c30b._0x242af4),_0x4a1659['style'][_0x429bf3(_0x46c30b._0xce4a4d)]=this['_map'][_0x429bf3(0xa2)]['canvas']['clientWidth']+'px',_0x4a1659[_0x429bf3(0x7b)]['height']=this[_0x429bf3(0x9e)][_0x429bf3(_0x46c30b._0x18bdc1)]['canvas']['clientHeight']+'px',_0x4a1659[_0x429bf3(0x7b)]['pointerEvents']=this['_pointerEvents']?'all':'none',_0x4a1659[_0x429bf3(0x7b)]['zIndex']=this['options']['zIndex']??0x9,_0x4a1659;}['resize'](){const _0x1f955a={_0x26b046:0x87,_0x5e3e4b:0x7b,_0x10fad5:0x9e,_0x4fd324:0x7a},_0x4511fe=_0xcec212;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x4511fe(0xa6)]=this['_map'][_0x4511fe(0xa2)]['canvas']['clientWidth']+'px',this[_0x4511fe(_0x1f955a._0x26b046)][_0x4511fe(_0x1f955a._0x5e3e4b)][_0x4511fe(0x7f)]=this[_0x4511fe(_0x1f955a._0x10fad5)][_0x4511fe(0xa2)][_0x4511fe(_0x1f955a._0x4fd324)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x37289c,_0x59be2b,_0x4b77fe){const _0x78ed67={_0x45437b:0x9b},_0x1dbdb6=_0xcec212;this[_0x1dbdb6(0x9c)]&&(_0x37289c={'mars3dMap':{},...mars3d__namespace[_0x1dbdb6(_0x78ed67._0x45437b)]['getAttrVal'](_0x37289c,{'onlySimpleType':!![]})},delete _0x37289c['eventParent'],this['_echartsInstance'][_0x1dbdb6(0x90)](_0x37289c,_0x59be2b,_0x4b77fe));}['getRectangle'](_0x14cb5f){const _0x2dd764={_0x4476ff:0x97},_0x2465c6={_0x154348:0x99},_0x10f310=_0xcec212;let _0x342758,_0x52edb3,_0x547de4,_0x5e6e6e;function _0x28e9a4(_0x1658ab){const _0xecef1=_0x3647;if(!Array[_0xecef1(0x72)](_0x1658ab))return;const _0x4a140e=_0x1658ab[0x0]||0x0,_0xdf542b=_0x1658ab[0x1]||0x0;_0x4a140e!==0x0&&_0xdf542b!==0x0&&(_0x342758===undefined?(_0x342758=_0x4a140e,_0x52edb3=_0x4a140e,_0x547de4=_0xdf542b,_0x5e6e6e=_0xdf542b):(_0x342758=Math['min'](_0x342758,_0x4a140e),_0x52edb3=Math['max'](_0x52edb3,_0x4a140e),_0x547de4=Math['min'](_0x547de4,_0xdf542b),_0x5e6e6e=Math['max'](_0x5e6e6e,_0xdf542b)));}const _0x4d2dbd=this[_0x10f310(0x79)]['series'];_0x4d2dbd&&_0x4d2dbd['forEach'](_0x13f6f8=>{_0x13f6f8['data']&&_0x13f6f8['data']['forEach'](_0x4dddec=>{const _0x3900e2=_0x3647;if(_0x4dddec['value'])_0x28e9a4(_0x4dddec['value']);else _0x4dddec['coords']&&_0x4dddec['coords'][_0x3900e2(_0x2465c6._0x154348)](_0x31f96a=>{_0x28e9a4(_0x31f96a);});});});if(_0x342758===0x0&&_0x547de4===0x0&&_0x52edb3===0x0&&_0x5e6e6e===0x0)return null;return _0x14cb5f!==null&&_0x14cb5f!==void 0x0&&_0x14cb5f['isFormat']?{'xmin':_0x342758,'xmax':_0x52edb3,'ymin':_0x547de4,'ymax':_0x5e6e6e}:Cesium['Rectangle'][_0x10f310(_0x2dd764._0x4476ff)](_0x342758,_0x547de4,_0x52edb3,_0x5e6e6e);}['on'](_0x1db0f3,_0x42b79c,_0x4689f6){const _0x3f8fc8={_0x49ffbe:0x9c},_0x555387=_0xcec212;return this[_0x555387(_0x3f8fc8._0x49ffbe)]['on'](_0x1db0f3,_0x42b79c,_0x4689f6||this),this;}[_0xcec212(0xa8)](_0x3e8326,_0xf3d34d,_0x23c05b,_0xf7681b){return this['_echartsInstance']['on'](_0x3e8326,_0xf3d34d,_0x23c05b,_0xf7681b||this),this;}[_0xcec212(0xa9)](_0x4fcf2f,_0xaeac01,_0x2f57e7){const _0x4d3fdf=_0xcec212;return this['_echartsInstance'][_0x4d3fdf(0xa9)](_0x4fcf2f,_0xaeac01,_0x2f57e7||this),this;}}mars3d__namespace['LayerUtil']['register'](_0xcec212(0x74),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace[_0xcec212(0x74)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0xcec212(0x99)](function(_0x1ca8d9){const _0x4a0380={_0x30ad2a:0x73},_0x3a459a=_0xcec212;if(_0x1ca8d9!==_0x3a459a(_0x4a0380._0x30ad2a)&&!exports['hasOwnProperty'](_0x1ca8d9))Object['defineProperty'](exports,_0x1ca8d9,{'enumerable':!![],'get':function(){return echarts[_0x1ca8d9];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.6.18",
"version": "3.7.0",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.18"
"mars3d": "~3.7.0"
},

@@ -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