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.9 to 3.6.10

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.6.9
* 编译日期:2023-10-17 19:50:17
* 版本信息:v3.6.10
* 编译日期:2023-10-23 17:21:40
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x298168=_0x2834;(function(_0x1c839d,_0x3f5f16){const _0x5dfeed={_0x15bd62:0x1ba,_0x54e56a:0x1a4,_0x7fb1bd:0x1d5,_0x3e8b72:0x1ac,_0x49d1ba:0x1bc,_0x23708e:0x1c0},_0x14e811=_0x2834,_0x2b2518=_0x1c839d();while(!![]){try{const _0x3ea93f=-parseInt(_0x14e811(_0x5dfeed._0x15bd62))/0x1*(parseInt(_0x14e811(0x1d6))/0x2)+-parseInt(_0x14e811(_0x5dfeed._0x54e56a))/0x3*(parseInt(_0x14e811(0x1af))/0x4)+-parseInt(_0x14e811(_0x5dfeed._0x7fb1bd))/0x5+-parseInt(_0x14e811(0x1c3))/0x6+parseInt(_0x14e811(_0x5dfeed._0x3e8b72))/0x7*(-parseInt(_0x14e811(_0x5dfeed._0x49d1ba))/0x8)+-parseInt(_0x14e811(0x1b6))/0x9+-parseInt(_0x14e811(_0x5dfeed._0x23708e))/0xa*(-parseInt(_0x14e811(0x1d1))/0xb);if(_0x3ea93f===_0x3f5f16)break;else _0x2b2518['push'](_0x2b2518['shift']());}catch(_0x5de6d4){_0x2b2518['push'](_0x2b2518['shift']());}}}(_0x29dc,0x93d5d));function _0x29dc(){const _0x4c8eb0=['__mapOffset','max','4872685kTeoHv','5870HloOGn','dimensions','_echartsContainer','none','postRender','create','getOwnPropertyDescriptor','height','layer','echartsFixedHeight','fromDegrees','请引入\x20echarts\x20库\x20','6FFGiWd','getRectangle','extendComponentModel','dispatchAction','_pointerEvents','dispose','_createChartOverlay','default','21084bwjElD','init','getHeight','1129308AjGXmc','api','data','DomUtil','painter','removeEventListener','clientWidth','2294226VzCejD','Cartographic','_mountedHook','_showHook','65wAYxTw','dataToPoint','1752yRXcBd','canvas','lat','_api','1767700IucCuJ','_echartsInstance','coordinateSystem','3833394XmfnDg','left','forEach','setEchartsOption','style','resize','mode','scene','getWidth','_removedHook','SceneTransforms','mars3dMap','getZr','options','242KJuReZ','lng'];_0x29dc=function(){return _0x4c8eb0;};return _0x29dc();}function _interopNamespace(_0x533fbe){const _0x491ef5={_0x1ac395:0x1ab},_0x1f5d6f=_0x2834;if(_0x533fbe&&_0x533fbe['__esModule'])return _0x533fbe;var _0x93bc69=Object[_0x1f5d6f(0x19d)](null);return _0x533fbe&&Object['keys'](_0x533fbe)['forEach'](function(_0x53a5e4){const _0x4db0a2=_0x1f5d6f;if(_0x53a5e4!==_0x4db0a2(_0x491ef5._0x1ac395)){var _0x14d20b=Object[_0x4db0a2(0x19e)](_0x533fbe,_0x53a5e4);Object['defineProperty'](_0x93bc69,_0x53a5e4,_0x14d20b['get']?_0x14d20b:{'enumerable':!![],'get':function(){return _0x533fbe[_0x53a5e4];}});}}),_0x93bc69['default']=_0x533fbe,_0x93bc69;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x259808,_0x456a9c){const _0x240352={_0x43a654:0x1d7,_0x5414fd:0x1be},_0x40a21f=_0x2834;this['_mars3d_scene']=_0x259808,this[_0x40a21f(_0x240352._0x43a654)]=['lng',_0x40a21f(_0x240352._0x5414fd)],this['_mapOffset']=[0x0,0x0],this[_0x40a21f(0x1bf)]=_0x456a9c;}['setMapOffset'](_0xab37a3){this['_mapOffset']=_0xab37a3;}['getBMap'](){return this['_mars3d_scene'];}[_0x298168(0x1bb)](_0x57f7ae){const _0x26de68={_0x1a0701:0x1a1,_0x3751fa:0x1a2},_0x52c513=_0x298168,_0x5c86b8=this['_mars3d_scene'],_0x197189=[NaN,NaN];let _0x23b878=_0x5c86b8[_0x52c513(_0x26de68._0x1a0701)];_0x5c86b8['echartsAutoHeight']&&(_0x23b878=_0x5c86b8['globe']['getHeight'](Cesium$1[_0x52c513(0x1b7)]['fromDegrees'](_0x57f7ae[0x0],_0x57f7ae[0x1])));const _0x52497f=Cesium$1['Cartesian3'][_0x52c513(_0x26de68._0x3751fa)](_0x57f7ae[0x0],_0x57f7ae[0x1],_0x23b878);if(!_0x52497f)return _0x197189;const _0x19963c=Cesium$1[_0x52c513(0x1cd)]['wgs84ToWindowCoordinates'](_0x5c86b8,_0x52497f);if(!_0x19963c)return _0x197189;if(_0x5c86b8['echartsDepthTest']&&_0x5c86b8[_0x52c513(0x1c9)]===Cesium$1['SceneMode']['SCENE3D']){const _0x536c30=new Cesium$1['EllipsoidalOccluder'](_0x5c86b8['globe']['ellipsoid'],_0x5c86b8['camera']['positionWC']),_0x59cfc6=_0x536c30['isPointVisible'](_0x52497f);if(!_0x59cfc6)return _0x197189;}return[_0x19963c['x']-this['_mapOffset'][0x0],_0x19963c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x57c5a4={_0x5a73eb:0x1bf,_0x1b3e9c:0x1cb},_0x2aa852=_0x298168,_0x3dc883=this[_0x2aa852(_0x57c5a4._0x5a73eb)];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x3dc883[_0x2aa852(_0x57c5a4._0x1b3e9c)](),_0x3dc883[_0x2aa852(0x1ae)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0x298168(0x1d2),'lat'],CompositeCoordinateSystem['create']=function(_0x27be72,_0x48c0b3){const _0x2c0660={_0x36a50a:0x1c2},_0xef56e8={_0x4b822c:0x1cf};let _0x39bb8d;const _0x31b6ec=_0x27be72['scheduler']['ecInstance']['_mars3d_scene'];_0x27be72['eachComponent']('mars3dMap',function(_0x4f3224){const _0x394642=_0x2834,_0x520344=_0x48c0b3[_0x394642(_0xef56e8._0x4b822c)]()[_0x394642(0x1b3)];if(!_0x520344)return;!_0x39bb8d&&(_0x39bb8d=new CompositeCoordinateSystem(_0x31b6ec,_0x48c0b3)),_0x4f3224['coordinateSystem']=_0x39bb8d,_0x39bb8d['setMapOffset'](_0x4f3224[_0x394642(0x1d3)]||[0x0,0x0]);}),_0x27be72['eachSeries'](function(_0x46cd93){const _0x25d550=_0x2834;_0x46cd93['get'](_0x25d550(_0x2c0660._0x36a50a))==='mars3dMap'&&(!_0x39bb8d&&(_0x39bb8d=new CompositeCoordinateSystem(_0x31b6ec,_0x48c0b3)),_0x46cd93['coordinateSystem']=_0x39bb8d);});};function _0x2834(_0x1b43ed,_0x16aa5e){const _0x29dce6=_0x29dc();return _0x2834=function(_0x28349e,_0x2ed994){_0x28349e=_0x28349e-0x19c;let _0x12aa1d=_0x29dce6[_0x28349e];return _0x12aa1d;},_0x2834(_0x1b43ed,_0x16aa5e);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x298168(0x1ce),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0xf8365c,_0x403d75){}),echarts__namespace[_0x298168(0x1a6)]({'type':_0x298168(0x1ce),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x546f41,_0x2ec472){const _0x41c0fa={_0x300a48:0x19c},_0x556c49=_0x298168;this['api']=_0x2ec472,this[_0x556c49(0x1ca)]=_0x546f41['scheduler']['ecInstance']['_mars3d_scene'],this['scene'][_0x556c49(_0x41c0fa._0x300a48)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x3e9044,_0x19d353){const _0x4950eb={_0x1bdb5e:0x1b0,_0x619753:0x1a7},_0x4dc019=_0x298168;this[_0x4dc019(_0x4950eb._0x1bdb5e)][_0x4dc019(_0x4950eb._0x619753)]({'type':'mars3dMapRoam'});},'render':function(_0x554ff5,_0x5eb5b5,_0x4995a1){},'dispose':function(_0xf876bb){const _0x1244a3={_0x12a115:0x1b4},_0x28c53c=_0x298168;this['scene'][_0x28c53c(0x19c)][_0x28c53c(_0x1244a3._0x12a115)](this['moveHandler'],this);}});else throw new Error(_0x298168(0x1a3));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x264430={}){super(_0x264430),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x22dad1={_0x3a3979:0x1a8},_0x3c1376=_0x298168;return this[_0x3c1376(_0x22dad1._0x3a3979)];}set['pointerEvents'](_0x29c1a0){const _0x15d535={_0x57bbff:0x1d8},_0x4cea89=_0x298168;this['_pointerEvents']=_0x29c1a0,this['_echartsContainer']&&(_0x29c1a0?this['_echartsContainer']['style']['pointerEvents']='all':this[_0x4cea89(_0x15d535._0x57bbff)][_0x4cea89(0x1c7)]['pointerEvents']='none');}['_setOptionsHook'](_0x436c2d,_0x97f4fe){const _0x113445={_0x5462e0:0x1c6},_0x1d97ba=_0x298168;this[_0x1d97ba(_0x113445._0x5462e0)](_0x436c2d);}[_0x298168(0x1b9)](_0x3bd935){const _0xf69a98=_0x298168;_0x3bd935?this['_echartsContainer']['style']['visibility']='visible':this[_0xf69a98(0x1d8)][_0xf69a98(0x1c7)]['visibility']='hidden';}[_0x298168(0x1b8)](){const _0x1dffbb={_0x457b18:0x1d0},_0x1d5a1c=_0x298168;this['_map']['scene']['echartsDepthTest']=this[_0x1d5a1c(_0x1dffbb._0x457b18)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x5d54a3={_0x8ddc73:0x1ad},_0x5aee4f=_0x298168;this[_0x5aee4f(0x1d8)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x5aee4f(_0x5d54a3._0x8ddc73)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}[_0x298168(0x1cc)](){const _0x4ad646={_0x47e3ee:0x1a9},_0x55df48=_0x298168;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance'][_0x55df48(_0x4ad646._0x47e3ee)](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x298168(0x1aa)](){const _0x16ff6b={_0x406f26:0x1b2,_0x57c837:0x1bd,_0x493391:0x1ca,_0x3a09b4:0x1c7},_0x320eb4=_0x298168,_0x208f8c=mars3d__namespace[_0x320eb4(_0x16ff6b._0x406f26)]['create']('div','mars3d-echarts',this['_map']['container']);return _0x208f8c['id']=this['id'],_0x208f8c['style']['position']='absolute',_0x208f8c['style']['top']='0px',_0x208f8c['style'][_0x320eb4(0x1c4)]='0px',_0x208f8c[_0x320eb4(0x1c7)]['width']=this['_map']['scene'][_0x320eb4(_0x16ff6b._0x57c837)][_0x320eb4(0x1b5)]+'px',_0x208f8c[_0x320eb4(0x1c7)]['height']=this['_map'][_0x320eb4(_0x16ff6b._0x493391)]['canvas']['clientHeight']+'px',_0x208f8c['style']['pointerEvents']=this['_pointerEvents']?'all':_0x320eb4(0x1d9),_0x208f8c[_0x320eb4(_0x16ff6b._0x3a09b4)]['zIndex']=this['options']['zIndex']??0x9,_0x208f8c;}['resize'](){const _0x17ef5b={_0x3489f6:0x1c7,_0x24428b:0x19f,_0x5cf72d:0x1bd,_0x5c45d3:0x1c8},_0x4cc238=_0x298168;if(!this['_echartsInstance'])return;this['_echartsContainer'][_0x4cc238(0x1c7)]['width']=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer'][_0x4cc238(_0x17ef5b._0x3489f6)][_0x4cc238(_0x17ef5b._0x24428b)]=this['_map']['scene'][_0x4cc238(_0x17ef5b._0x5cf72d)]['clientHeight']+'px',this['_echartsInstance'][_0x4cc238(_0x17ef5b._0x5c45d3)]();}[_0x298168(0x1c6)](_0x26cb0c,_0x24970b,_0x1cac57){this['_echartsInstance']&&(_0x26cb0c['mars3dMap']=_0x26cb0c['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x26cb0c,_0x24970b,_0x1cac57));}[_0x298168(0x1a5)](_0x2fe8cd){const _0x4a3161={_0xf908cd:0x1b1},_0x55d725={_0xf2865:0x1d4},_0x24de98=_0x298168;let _0x1a3a5d,_0x50e9dd,_0xa7e621,_0x4eeb7d;function _0xc6187c(_0x29bc5f){const _0x1c8ed1=_0x2834;if(!Array['isArray'](_0x29bc5f))return;const _0x30076d=_0x29bc5f[0x0]||0x0,_0x4fd9fa=_0x29bc5f[0x1]||0x0;_0x30076d!==0x0&&_0x4fd9fa!==0x0&&(_0x1a3a5d===undefined?(_0x1a3a5d=_0x30076d,_0x50e9dd=_0x30076d,_0xa7e621=_0x4fd9fa,_0x4eeb7d=_0x4fd9fa):(_0x1a3a5d=Math['min'](_0x1a3a5d,_0x30076d),_0x50e9dd=Math['max'](_0x50e9dd,_0x30076d),_0xa7e621=Math['min'](_0xa7e621,_0x4fd9fa),_0x4eeb7d=Math[_0x1c8ed1(_0x55d725._0xf2865)](_0x4eeb7d,_0x4fd9fa)));}const _0x5cbdf6=this[_0x24de98(0x1d0)]['series'];_0x5cbdf6&&_0x5cbdf6['forEach'](_0x26f8bc=>{const _0x3d99a9=_0x24de98;_0x26f8bc[_0x3d99a9(_0x4a3161._0xf908cd)]&&_0x26f8bc['data']['forEach'](_0x354af8=>{if(_0x354af8['value'])_0xc6187c(_0x354af8['value']);else _0x354af8['coords']&&_0x354af8['coords']['forEach'](_0xecd49f=>{_0xc6187c(_0xecd49f);});});});if(_0x1a3a5d===0x0&&_0xa7e621===0x0&&_0x50e9dd===0x0&&_0x4eeb7d===0x0)return null;return _0x2fe8cd!==null&&_0x2fe8cd!==void 0x0&&_0x2fe8cd['isFormat']?{'xmin':_0x1a3a5d,'xmax':_0x50e9dd,'ymin':_0xa7e621,'ymax':_0x4eeb7d}:Cesium['Rectangle']['fromDegrees'](_0x1a3a5d,_0xa7e621,_0x50e9dd,_0x4eeb7d);}['on'](_0x8c314d,_0x24abd4,_0x4da75d){return this['_echartsInstance']['on'](_0x8c314d,_0x24abd4,_0x4da75d||this),this;}['onByQuery'](_0x511d83,_0x312df9,_0x49a4bf,_0xe5c6e0){const _0x48e6e1=_0x298168;return this[_0x48e6e1(0x1c1)]['on'](_0x511d83,_0x312df9,_0x49a4bf,_0xe5c6e0||this),this;}['off'](_0x5832d0,_0x1d138c,_0xa26647){return this['_echartsInstance']['off'](_0x5832d0,_0x1d138c,_0xa26647||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x298168(0x1a0)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x298168(0x1c5)](function(_0x5485bb){const _0x52380d={_0x52d43a:0x1ab},_0x59e0c7=_0x298168;if(_0x5485bb!==_0x59e0c7(_0x52380d._0x52d43a)&&!exports['hasOwnProperty'](_0x5485bb))Object['defineProperty'](exports,_0x5485bb,{'enumerable':!![],'get':function(){return echarts[_0x5485bb];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x44dda2=_0x236f;function _0x236f(_0xdc16cb,_0x23d16e){const _0x3790f8=_0x3790();return _0x236f=function(_0x236f11,_0xabd2ca){_0x236f11=_0x236f11-0x19d;let _0x16f727=_0x3790f8[_0x236f11];return _0x16f727;},_0x236f(_0xdc16cb,_0x23d16e);}(function(_0x55cddd,_0x1786b6){const _0x29282d={_0x3aca9c:0x1a6,_0x23bb77:0x1c7,_0x498930:0x1a1,_0x50c2aa:0x1d1,_0x4fec9a:0x1bf,_0x3233bc:0x1d7},_0x3a3a23=_0x236f,_0x4ebab8=_0x55cddd();while(!![]){try{const _0x2b0f7c=parseInt(_0x3a3a23(0x19e))/0x1+-parseInt(_0x3a3a23(_0x29282d._0x3aca9c))/0x2*(parseInt(_0x3a3a23(0x1d8))/0x3)+-parseInt(_0x3a3a23(0x1b7))/0x4+parseInt(_0x3a3a23(_0x29282d._0x23bb77))/0x5*(-parseInt(_0x3a3a23(_0x29282d._0x498930))/0x6)+parseInt(_0x3a3a23(0x1b6))/0x7+-parseInt(_0x3a3a23(_0x29282d._0x50c2aa))/0x8*(-parseInt(_0x3a3a23(_0x29282d._0x4fec9a))/0x9)+parseInt(_0x3a3a23(_0x29282d._0x3233bc))/0xa;if(_0x2b0f7c===_0x1786b6)break;else _0x4ebab8['push'](_0x4ebab8['shift']());}catch(_0x2c998f){_0x4ebab8['push'](_0x4ebab8['shift']());}}}(_0x3790,0x6b9fa));function _0x3790(){const _0x3d8c95=['echarts','_echartsInstance','echartsDepthTest','9UqFFSq','_map','painter','Cartesian3','fixedHeight','getRectangle','clientHeight','zIndex','1585OpszlH','BaseLayer','forEach','_api','init','getBMap','value','_addedHook','SceneTransforms','postRender','3436792nPyqwI','min','style','getHeight','getZr','pointerEvents','14133970klzMvN','6JLDCEE','hasOwnProperty','请引入\x20echarts\x20库\x20','59528kLnyWS','_removedHook','resize','8826vIoaLy','scene','mars3dMap','create','_mars3d_scene','847102oFQtBk','layer','top','_mountedHook','ecInstance','Cartographic','mars3d-echarts','fromDegrees','coordinateSystem','globe','eachComponent','moveHandler','_createChartOverlay','DomUtil','mars3dMapRoam','EllipsoidalOccluder','492947MiCsUd','874840lIvtKh','setEchartsOption','none','dimensions','options'];_0x3790=function(){return _0x3d8c95;};return _0x3790();}function _interopNamespace(_0x499f91){const _0x319594={_0x2c74c8:0x1a4},_0x4e49ed=_0x236f;if(_0x499f91&&_0x499f91['__esModule'])return _0x499f91;var _0x5eccb8=Object[_0x4e49ed(_0x319594._0x2c74c8)](null);return _0x499f91&&Object['keys'](_0x499f91)['forEach'](function(_0x24cf01){if(_0x24cf01!=='default'){var _0x5640c4=Object['getOwnPropertyDescriptor'](_0x499f91,_0x24cf01);Object['defineProperty'](_0x5eccb8,_0x24cf01,_0x5640c4['get']?_0x5640c4:{'enumerable':!![],'get':function(){return _0x499f91[_0x24cf01];}});}}),_0x5eccb8['default']=_0x499f91,_0x5eccb8;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xe5f0d6,_0x587548){const _0x119c6d={_0x4f5058:0x1ca},_0x19cbf8=_0x236f;this['_mars3d_scene']=_0xe5f0d6,this[_0x19cbf8(0x1ba)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0x19cbf8(_0x119c6d._0x4f5058)]=_0x587548;}['setMapOffset'](_0x39e39c){this['_mapOffset']=_0x39e39c;}[_0x44dda2(0x1cc)](){const _0x597378=_0x44dda2;return this[_0x597378(0x1a5)];}['dataToPoint'](_0x583494){const _0x5398ef={_0xa31750:0x1af,_0x718fcf:0x1ad,_0x364cb5:0x1c2},_0x318c0f=_0x44dda2,_0x3e04db=this['_mars3d_scene'],_0x31550e=[NaN,NaN];let _0x266a5f=_0x3e04db['echartsFixedHeight'];_0x3e04db['echartsAutoHeight']&&(_0x266a5f=_0x3e04db[_0x318c0f(_0x5398ef._0xa31750)]['getHeight'](Cesium$1[_0x318c0f(0x1ab)][_0x318c0f(_0x5398ef._0x718fcf)](_0x583494[0x0],_0x583494[0x1])));const _0x274cc6=Cesium$1[_0x318c0f(_0x5398ef._0x364cb5)]['fromDegrees'](_0x583494[0x0],_0x583494[0x1],_0x266a5f);if(!_0x274cc6)return _0x31550e;const _0x4bb323=Cesium$1[_0x318c0f(0x1cf)]['wgs84ToWindowCoordinates'](_0x3e04db,_0x274cc6);if(!_0x4bb323)return _0x31550e;if(_0x3e04db['echartsDepthTest']&&_0x3e04db['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x310140=new Cesium$1[(_0x318c0f(0x1b5))](_0x3e04db['globe']['ellipsoid'],_0x3e04db['camera']['positionWC']),_0x3ac28b=_0x310140['isPointVisible'](_0x274cc6);if(!_0x3ac28b)return _0x31550e;}return[_0x4bb323['x']-this['_mapOffset'][0x0],_0x4bb323['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x136ef2={_0x83ecb4:0x1d4},_0x1e20e8=_0x44dda2,_0x382387=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x382387['getWidth'](),_0x382387[_0x1e20e8(_0x136ef2._0x83ecb4)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x520a28,_0x23a34f){const _0x5602f6={_0x3250ee:0x1d5,_0x14dcdb:0x1ae},_0x50e657=_0x44dda2;let _0x12305e;const _0x1fe8e4=_0x520a28['scheduler'][_0x50e657(0x1aa)]['_mars3d_scene'];_0x520a28[_0x50e657(0x1b0)]('mars3dMap',function(_0x5efcb5){const _0x96d922=_0x50e657,_0x507485=_0x23a34f[_0x96d922(_0x5602f6._0x3250ee)]()[_0x96d922(0x1c1)];if(!_0x507485)return;!_0x12305e&&(_0x12305e=new CompositeCoordinateSystem(_0x1fe8e4,_0x23a34f)),_0x5efcb5[_0x96d922(_0x5602f6._0x14dcdb)]=_0x12305e,_0x12305e['setMapOffset'](_0x5efcb5['__mapOffset']||[0x0,0x0]);}),_0x520a28['eachSeries'](function(_0x147c5b){_0x147c5b['get']('coordinateSystem')==='mars3dMap'&&(!_0x12305e&&(_0x12305e=new CompositeCoordinateSystem(_0x1fe8e4,_0x23a34f)),_0x147c5b['coordinateSystem']=_0x12305e);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x44dda2(0x1cb)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x44dda2(0x1b4),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x1ac7bc,_0x40c547){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x44dda2(0x1a3),'init':function(_0x2b171e,_0x2cdefb){const _0x5abaad={_0x362a72:0x1d0},_0x161849=_0x44dda2;this['api']=_0x2cdefb,this['scene']=_0x2b171e['scheduler']['ecInstance']['_mars3d_scene'],this['scene'][_0x161849(_0x5abaad._0x362a72)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x34ff86,_0x4f8fcc){const _0x366eac=_0x44dda2;this['api']['dispatchAction']({'type':_0x366eac(0x1b4)});},'render':function(_0x5ab058,_0x34a148,_0x11b530){},'dispose':function(_0xc89bf6){const _0xefa51c={_0x34e547:0x1b1},_0xd9da01=_0x44dda2;this[_0xd9da01(0x1a2)]['postRender']['removeEventListener'](this[_0xd9da01(_0xefa51c._0x34e547)],this);}});else throw new Error(_0x44dda2(0x19d));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x44dda2(0x1a7)][_0x44dda2(0x1c8)];class EchartsLayer extends BaseLayer{constructor(_0x417c3f={}){const _0x488d30=_0x44dda2;super(_0x417c3f),this['_pointerEvents']=this[_0x488d30(0x1bb)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x44dda2(0x1d6)](_0x168790){this['_pointerEvents']=_0x168790,this['_echartsContainer']&&(_0x168790?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x1490ef,_0x513022){this['setEchartsOption'](_0x1490ef);}['_showHook'](_0x478b6d){const _0x4155ff=_0x44dda2;_0x478b6d?this['_echartsContainer'][_0x4155ff(0x1d3)]['visibility']='visible':this['_echartsContainer'][_0x4155ff(0x1d3)]['visibility']='hidden';}[_0x44dda2(0x1a9)](){const _0x16542e=_0x44dda2;this[_0x16542e(0x1c0)]['scene'][_0x16542e(0x1be)]=this['options']['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x16542e(0x1c3)]??0x0;}[_0x44dda2(0x1ce)](){const _0x89cd43={_0x503b0a:0x1a5,_0x1bf020:0x1b8,_0x289c55:0x1bb},_0x1a661c=_0x44dda2;this['_echartsContainer']=this[_0x1a661c(0x1b2)](),this['_echartsInstance']=echarts__namespace[_0x1a661c(0x1cb)](this['_echartsContainer']),this['_echartsInstance'][_0x1a661c(_0x89cd43._0x503b0a)]=this[_0x1a661c(0x1c0)]['scene'],this[_0x1a661c(_0x89cd43._0x1bf020)](this[_0x1a661c(_0x89cd43._0x289c55)]);}[_0x44dda2(0x19f)](){const _0x215964={_0x4354fc:0x1bd},_0x4bf00d=_0x44dda2;this['_echartsInstance']&&(this[_0x4bf00d(0x1bd)]['clear'](),this[_0x4bf00d(_0x215964._0x4354fc)]['dispose'](),delete this[_0x4bf00d(_0x215964._0x4354fc)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x44dda2(0x1b2)](){const _0x1e3b72={_0x5e7967:0x1b3,_0x48cbfb:0x1ac,_0x28574c:0x1d3,_0x506a90:0x1c0,_0x3f4ebb:0x1a2,_0x3e0f7b:0x1d3,_0x21ecfb:0x1b9,_0x36f845:0x1c6},_0x589a6a=_0x44dda2,_0x52af60=mars3d__namespace[_0x589a6a(_0x1e3b72._0x5e7967)]['create']('div',_0x589a6a(_0x1e3b72._0x48cbfb),this['_map']['container']);return _0x52af60['id']=this['id'],_0x52af60[_0x589a6a(_0x1e3b72._0x28574c)]['position']='absolute',_0x52af60['style'][_0x589a6a(0x1a8)]='0px',_0x52af60['style']['left']='0px',_0x52af60['style']['width']=this['_map'][_0x589a6a(0x1a2)]['canvas']['clientWidth']+'px',_0x52af60['style']['height']=this[_0x589a6a(_0x1e3b72._0x506a90)][_0x589a6a(_0x1e3b72._0x3f4ebb)]['canvas']['clientHeight']+'px',_0x52af60[_0x589a6a(_0x1e3b72._0x3e0f7b)]['pointerEvents']=this['_pointerEvents']?'all':_0x589a6a(_0x1e3b72._0x21ecfb),_0x52af60['style'][_0x589a6a(_0x1e3b72._0x36f845)]=this['options']['zIndex']??0x9,_0x52af60;}[_0x44dda2(0x1a0)](){const _0x56fecd={_0x2a4eb1:0x1bd,_0x48fa29:0x1c5},_0x24eb85=_0x44dda2;if(!this[_0x24eb85(_0x56fecd._0x2a4eb1)])return;this['_echartsContainer'][_0x24eb85(0x1d3)]['width']=this[_0x24eb85(0x1c0)]['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map']['scene']['canvas'][_0x24eb85(_0x56fecd._0x48fa29)]+'px',this[_0x24eb85(_0x56fecd._0x2a4eb1)]['resize']();}['setEchartsOption'](_0xc981cf,_0x549217,_0xdf97d1){this['_echartsInstance']&&(_0xc981cf['mars3dMap']=_0xc981cf['mars3dMap']||{},this['_echartsInstance']['setOption'](_0xc981cf,_0x549217,_0xdf97d1));}[_0x44dda2(0x1c4)](_0x257360){const _0x5eed09={_0x4646a7:0x1cd};let _0x39692a,_0x2b3f9c,_0x130a15,_0x1ac8ee;function _0x4ba461(_0x2be2ba){const _0x2a109f=_0x236f;if(!Array['isArray'](_0x2be2ba))return;const _0x4f9efe=_0x2be2ba[0x0]||0x0,_0x1b850f=_0x2be2ba[0x1]||0x0;_0x4f9efe!==0x0&&_0x1b850f!==0x0&&(_0x39692a===undefined?(_0x39692a=_0x4f9efe,_0x2b3f9c=_0x4f9efe,_0x130a15=_0x1b850f,_0x1ac8ee=_0x1b850f):(_0x39692a=Math[_0x2a109f(0x1d2)](_0x39692a,_0x4f9efe),_0x2b3f9c=Math['max'](_0x2b3f9c,_0x4f9efe),_0x130a15=Math['min'](_0x130a15,_0x1b850f),_0x1ac8ee=Math['max'](_0x1ac8ee,_0x1b850f)));}const _0x327d18=this['options']['series'];_0x327d18&&_0x327d18['forEach'](_0x1a9406=>{const _0x2cea05=_0x236f;_0x1a9406['data']&&_0x1a9406['data'][_0x2cea05(0x1c9)](_0x5ed6fe=>{const _0x2ad073=_0x2cea05;if(_0x5ed6fe[_0x2ad073(_0x5eed09._0x4646a7)])_0x4ba461(_0x5ed6fe[_0x2ad073(0x1cd)]);else _0x5ed6fe['coords']&&_0x5ed6fe['coords']['forEach'](_0x48f7e2=>{_0x4ba461(_0x48f7e2);});});});if(_0x39692a===0x0&&_0x130a15===0x0&&_0x2b3f9c===0x0&&_0x1ac8ee===0x0)return null;return _0x257360!==null&&_0x257360!==void 0x0&&_0x257360['isFormat']?{'xmin':_0x39692a,'xmax':_0x2b3f9c,'ymin':_0x130a15,'ymax':_0x1ac8ee}:Cesium['Rectangle']['fromDegrees'](_0x39692a,_0x130a15,_0x2b3f9c,_0x1ac8ee);}['on'](_0x4bf723,_0x12e5e1,_0x109567){const _0x531f92=_0x44dda2;return this[_0x531f92(0x1bd)]['on'](_0x4bf723,_0x12e5e1,_0x109567||this),this;}['onByQuery'](_0x3cdd68,_0x546acb,_0x3a0d03,_0x310694){return this['_echartsInstance']['on'](_0x3cdd68,_0x546acb,_0x3a0d03,_0x310694||this),this;}['off'](_0x235d70,_0x4db7fa,_0x42d7df){const _0x36c3a9={_0x1c539c:0x1bd},_0x337935=_0x44dda2;return this[_0x337935(_0x36c3a9._0x1c539c)]['off'](_0x235d70,_0x4db7fa,_0x42d7df||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x44dda2(0x1bc),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x1ce26f){const _0x2a9bc2={_0x26fc46:0x1d9},_0x87f310=_0x44dda2;if(_0x1ce26f!=='default'&&!exports[_0x87f310(_0x2a9bc2._0x26fc46)](_0x1ce26f))Object['defineProperty'](exports,_0x1ce26f,{'enumerable':!![],'get':function(){return echarts[_0x1ce26f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.6.9",
"version": "3.6.10",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

@@ -10,6 +10,6 @@ "main": "dist/mars3d-echarts.js",

"peerDependencies": {
"echarts": "^5.4.1"
"echarts": "^5.4.3"
},
"devDependencies": {
"mars3d": "~3.6.9"
"mars3d": "~3.6.10"
},

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