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.13 to 3.6.14

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.6.13
* 编译日期:2023-11-21 09:41:55
* 版本信息:v3.6.14
* 编译日期:2023-11-27 22:14:18
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x368bdc=_0x3fc2;(function(_0x56b76f,_0x224ede){const _0xee6d76={_0x5b50d:0x179,_0x93ab5b:0x163,_0x1b66f8:0x14c,_0x2fc96b:0x14b,_0x432df9:0x17c},_0x41571c=_0x3fc2,_0x2cf48b=_0x56b76f();while(!![]){try{const _0x44a17a=parseInt(_0x41571c(0x170))/0x1*(parseInt(_0x41571c(_0xee6d76._0x5b50d))/0x2)+parseInt(_0x41571c(0x15e))/0x3+parseInt(_0x41571c(_0xee6d76._0x93ab5b))/0x4*(parseInt(_0x41571c(0x161))/0x5)+-parseInt(_0x41571c(0x172))/0x6+-parseInt(_0x41571c(_0xee6d76._0x1b66f8))/0x7+parseInt(_0x41571c(_0xee6d76._0x2fc96b))/0x8*(parseInt(_0x41571c(0x17a))/0x9)+parseInt(_0x41571c(_0xee6d76._0x432df9))/0xa;if(_0x44a17a===_0x224ede)break;else _0x2cf48b['push'](_0x2cf48b['shift']());}catch(_0x4f53a9){_0x2cf48b['push'](_0x2cf48b['shift']());}}}(_0x390a,0xe14a3));function _interopNamespace(_0x357d22){const _0x4ff7c1={_0x22d9fe:0x14f},_0x814e6c={_0x4e85d5:0x160},_0x14ed51=_0x3fc2;if(_0x357d22&&_0x357d22['__esModule'])return _0x357d22;var _0x292ce4=Object['create'](null);return _0x357d22&&Object['keys'](_0x357d22)['forEach'](function(_0x5616f7){const _0x55073e=_0x3fc2;if(_0x5616f7!==_0x55073e(0x14f)){var _0x5af779=Object['getOwnPropertyDescriptor'](_0x357d22,_0x5616f7);Object[_0x55073e(_0x814e6c._0x4e85d5)](_0x292ce4,_0x5616f7,_0x5af779['get']?_0x5af779:{'enumerable':!![],'get':function(){return _0x357d22[_0x5616f7];}});}}),_0x292ce4[_0x14ed51(_0x4ff7c1._0x22d9fe)]=_0x357d22,_0x292ce4;}function _0x3fc2(_0x5a2aa7,_0x122d02){const _0x390aff=_0x390a();return _0x3fc2=function(_0x3fc21e,_0x2c64ed){_0x3fc21e=_0x3fc21e-0x14a;let _0x34b9f1=_0x390aff[_0x3fc21e];return _0x34b9f1;},_0x3fc2(_0x5a2aa7,_0x122d02);}function _0x390a(){const _0x5b8b4b=['container','getAttrVal','_mars3d_scene','eachComponent','_map','coords','globe','_mapOffset','2529896YmgTEA','12476821FnPOwY','coordinateSystem','LayerUtil','default','removeEventListener','setEchartsOption','0px','ellipsoid','pointerEvents','width','mode','_echartsInstance','top','ecInstance','_pointerEvents','off','getRectangle','dimensions','4234590rtpPcF','clientHeight','defineProperty','426905oyesef','visibility','20MGzvCG','getRoamTransform','echartsAutoHeight','series','scene','painter','zIndex','extendComponentModel','echartsFixedHeight','matrix','EllipsoidalOccluder','_api','请引入\x20echarts\x20库\x20','10Vhcmdm','mars3dMapRoam','9281574nOzhty','_mountedHook','canvas','layer','Util','style','_echartsContainer','262030UQwcML','9sUfJuE','scheduler','7872970ejOfri','getHeight','Cartesian3'];_0x390a=function(){return _0x5b8b4b;};return _0x390a();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x4ae20f,_0x5e6ea7){const _0x230cf4={_0x45ff9b:0x14a,_0x48ce82:0x16e},_0x3f7a64=_0x3fc2;this['_mars3d_scene']=_0x4ae20f,this['dimensions']=['lng','lat'],this[_0x3f7a64(_0x230cf4._0x45ff9b)]=[0x0,0x0],this[_0x3f7a64(_0x230cf4._0x48ce82)]=_0x5e6ea7;}['setMapOffset'](_0x4deec3){this['_mapOffset']=_0x4deec3;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x3f4816){const _0x4dcb10={_0x49a9cd:0x181,_0x1845d2:0x16b,_0x21a2d1:0x165,_0x259242:0x17d,_0x372fb5:0x17e,_0x3aaf00:0x16d,_0x1dfce3:0x153},_0x95c73=_0x3fc2,_0xfd9c98=this[_0x95c73(_0x4dcb10._0x49a9cd)],_0x263078=[NaN,NaN];let _0x13c032=_0xfd9c98[_0x95c73(_0x4dcb10._0x1845d2)];_0xfd9c98[_0x95c73(_0x4dcb10._0x21a2d1)]&&(_0x13c032=_0xfd9c98['globe'][_0x95c73(_0x4dcb10._0x259242)](Cesium$1['Cartographic']['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1])));const _0x52f894=Cesium$1[_0x95c73(_0x4dcb10._0x372fb5)]['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1],_0x13c032);if(!_0x52f894)return _0x263078;const _0x889adf=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0xfd9c98,_0x52f894);if(!_0x889adf)return _0x263078;if(_0xfd9c98['echartsDepthTest']&&_0xfd9c98[_0x95c73(0x156)]===Cesium$1['SceneMode']['SCENE3D']){const _0x2015cb=new Cesium$1[(_0x95c73(_0x4dcb10._0x3aaf00))](_0xfd9c98[_0x95c73(0x185)][_0x95c73(_0x4dcb10._0x1dfce3)],_0xfd9c98['camera']['positionWC']),_0x47ce92=_0x2015cb['isPointVisible'](_0x52f894);if(!_0x47ce92)return _0x263078;}return[_0x889adf['x']-this['_mapOffset'][0x0],_0x889adf['y']-this[_0x95c73(0x14a)][0x1]];}['getViewRect'](){const _0x4580d8=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x4580d8['getWidth'](),_0x4580d8['getHeight']());}[_0x368bdc(0x164)](){const _0x12312a=_0x368bdc;return echarts__namespace[_0x12312a(0x16c)]['create']();}}CompositeCoordinateSystem[_0x368bdc(0x15d)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x248596,_0x3db53e){const _0x56bbb5={_0x347f3e:0x17b,_0x30de98:0x182},_0x37cf6b=_0x368bdc;let _0x268638;const _0x16f9b9=_0x248596[_0x37cf6b(_0x56bbb5._0x347f3e)]['ecInstance']['_mars3d_scene'];_0x248596[_0x37cf6b(_0x56bbb5._0x30de98)]('mars3dMap',function(_0x387e64){const _0x43d8f3=_0x37cf6b,_0x69a033=_0x3db53e['getZr']()[_0x43d8f3(0x168)];if(!_0x69a033)return;!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x387e64['coordinateSystem']=_0x268638,_0x268638['setMapOffset'](_0x387e64['__mapOffset']||[0x0,0x0]);}),_0x248596['eachSeries'](function(_0x274ec3){const _0x3afc1f=_0x37cf6b;_0x274ec3['get']('coordinateSystem')==='mars3dMap'&&(!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x274ec3[_0x3afc1f(0x14d)]=_0x268638);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x368bdc(0x171),'update':'updateLayout'},function(_0xecb0ee,_0x268e70){}),echarts__namespace[_0x368bdc(0x16a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3297ab,_0x5eae7f){const _0x9de80={_0x2896a0:0x167,_0x30aa8c:0x17b},_0x4b876e=_0x368bdc;this['api']=_0x5eae7f,this[_0x4b876e(_0x9de80._0x2896a0)]=_0x3297ab[_0x4b876e(_0x9de80._0x30aa8c)][_0x4b876e(0x159)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x128135,_0x320e80){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x43687b,_0x898957,_0x4cabc9){},'dispose':function(_0x5d46b9){const _0x3295aa=_0x368bdc;this['scene']['postRender'][_0x3295aa(0x150)](this['moveHandler'],this);}});else throw new Error(_0x368bdc(0x16f));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3cc69b={}){const _0x2f8104={_0x5a09e3:0x15a},_0x486d51=_0x368bdc;super(_0x3cc69b),this[_0x486d51(_0x2f8104._0x5a09e3)]=this['options']['pointerEvents'];}get[_0x368bdc(0x175)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x368bdc(0x154)](_0x20f183){const _0x5bf442=_0x368bdc;this['_pointerEvents']=_0x20f183,this[_0x5bf442(0x178)]&&(_0x20f183?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x5bf442(0x154)]='none');}['_setOptionsHook'](_0x2f8993,_0x582ad5){const _0x45e456=_0x368bdc;this[_0x45e456(0x151)](_0x2f8993);}['_showHook'](_0x3fc345){const _0x58d57e={_0x144527:0x177,_0x2cf6d1:0x162},_0x5f1b59=_0x368bdc;_0x3fc345?this['_echartsContainer'][_0x5f1b59(_0x58d57e._0x144527)]['visibility']='visible':this['_echartsContainer']['style'][_0x5f1b59(_0x58d57e._0x2cf6d1)]='hidden';}[_0x368bdc(0x173)](){const _0x1c0f58=_0x368bdc;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x1c0f58(0x183)]['scene'][_0x1c0f58(0x165)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x799e8a=_0x368bdc;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x799e8a(0x157)]=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x799e8a(0x167)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x30b2f9={_0x3cbc37:0x157},_0x58d5d4=_0x368bdc;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x58d5d4(_0x30b2f9._0x3cbc37)]['dispose'](),delete this[_0x58d5d4(0x157)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x245e9c={_0x38b5f4:0x177,_0x372a6d:0x152,_0x14af9a:0x155},_0x30d846=_0x368bdc,_0x591a0a=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0x30d846(0x17f)]);return _0x591a0a['id']=this['id'],_0x591a0a['style']['position']='absolute',_0x591a0a['style'][_0x30d846(0x158)]='0px',_0x591a0a[_0x30d846(_0x245e9c._0x38b5f4)]['left']=_0x30d846(_0x245e9c._0x372a6d),_0x591a0a[_0x30d846(0x177)][_0x30d846(_0x245e9c._0x14af9a)]=this['_map']['scene']['canvas']['clientWidth']+'px',_0x591a0a['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x591a0a['style'][_0x30d846(0x154)]=this['_pointerEvents']?'all':'none',_0x591a0a['style']['zIndex']=this['options'][_0x30d846(0x169)]??0x9,_0x591a0a;}['resize'](){const _0x119f96={_0x8cc515:0x157,_0x5cbd03:0x15f},_0xf10107=_0x368bdc;if(!this[_0xf10107(_0x119f96._0x8cc515)])return;this['_echartsContainer']['style']['width']=this[_0xf10107(0x183)]['scene']['canvas']['clientWidth']+'px',this[_0xf10107(0x178)][_0xf10107(0x177)]['height']=this['_map']['scene'][_0xf10107(0x174)][_0xf10107(_0x119f96._0x5cbd03)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x82cca0,_0x131c92,_0x4ca06f){const _0x17ddfd=_0x368bdc;this['_echartsInstance']&&(_0x82cca0={'mars3dMap':{},...mars3d__namespace[_0x17ddfd(0x176)][_0x17ddfd(0x180)](_0x82cca0,{'onlySimpleType':!![]})},delete _0x82cca0['eventParent'],this['_echartsInstance']['setOption'](_0x82cca0,_0x131c92,_0x4ca06f));}[_0x368bdc(0x15c)](_0x40bff4){const _0x2fafea=_0x368bdc;let _0x3173a2,_0x14ee4e,_0x93a37d,_0x1826b3;function _0x29c157(_0xbe87c3){if(!Array['isArray'](_0xbe87c3))return;const _0x33e702=_0xbe87c3[0x0]||0x0,_0x351d64=_0xbe87c3[0x1]||0x0;_0x33e702!==0x0&&_0x351d64!==0x0&&(_0x3173a2===undefined?(_0x3173a2=_0x33e702,_0x14ee4e=_0x33e702,_0x93a37d=_0x351d64,_0x1826b3=_0x351d64):(_0x3173a2=Math['min'](_0x3173a2,_0x33e702),_0x14ee4e=Math['max'](_0x14ee4e,_0x33e702),_0x93a37d=Math['min'](_0x93a37d,_0x351d64),_0x1826b3=Math['max'](_0x1826b3,_0x351d64)));}const _0x1d8014=this['options'][_0x2fafea(0x166)];_0x1d8014&&_0x1d8014['forEach'](_0x456f58=>{const _0x52a270={_0x156ae4:0x184};_0x456f58['data']&&_0x456f58['data']['forEach'](_0x327516=>{const _0x201a93=_0x3fc2;if(_0x327516['value'])_0x29c157(_0x327516['value']);else _0x327516[_0x201a93(_0x52a270._0x156ae4)]&&_0x327516['coords']['forEach'](_0x55af98=>{_0x29c157(_0x55af98);});});});if(_0x3173a2===0x0&&_0x93a37d===0x0&&_0x14ee4e===0x0&&_0x1826b3===0x0)return null;return _0x40bff4!==null&&_0x40bff4!==void 0x0&&_0x40bff4['isFormat']?{'xmin':_0x3173a2,'xmax':_0x14ee4e,'ymin':_0x93a37d,'ymax':_0x1826b3}:Cesium['Rectangle']['fromDegrees'](_0x3173a2,_0x93a37d,_0x14ee4e,_0x1826b3);}['on'](_0x1b9369,_0x221f25,_0x4f5f1c){return this['_echartsInstance']['on'](_0x1b9369,_0x221f25,_0x4f5f1c||this),this;}['onByQuery'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d){return this['_echartsInstance']['on'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d||this),this;}['off'](_0x36413f,_0x53b660,_0x484948){const _0x471d52={_0xeb7ed5:0x15b},_0x58adac=_0x368bdc;return this['_echartsInstance'][_0x58adac(_0x471d52._0xeb7ed5)](_0x36413f,_0x53b660,_0x484948||this),this;}}mars3d__namespace[_0x368bdc(0x14e)]['register']('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x18429f){const _0x216a7e={_0x520a42:0x160},_0x5a19a8=_0x368bdc;if(_0x18429f!=='default'&&!exports['hasOwnProperty'](_0x18429f))Object[_0x5a19a8(_0x216a7e._0x520a42)](exports,_0x18429f,{'enumerable':!![],'get':function(){return echarts[_0x18429f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x34e5e6=_0x1d75;function _0x4bc9(){const _0x49776f=['ellipsoid','hidden','create','zIndex','forEach','none','294617lDWywX','_mapOffset','clampToGround','__esModule','eachComponent','all','21LAoomm','register','1978895QPUNrm','isFormat','series','eventParent','absolute','container','min','style','pointerEvents','__mapOffset','options','clientHeight','data','defineProperty','echartsAutoHeight','hasOwnProperty','visible','height','2211808IdztIO','14889doFpZG','SCENE3D','canvas','extendComponentView','moveHandler','echarts','2151250GRbcKq','scene','keys','_echartsContainer','Cartographic','_echartsInstance','_pointerEvents','_map','4918080LcygUy','coordinateSystem','dimensions','positionWC','width','isArray','updateLayout','fromDegrees','4093116YEyBze','echartsFixedHeight','resize','addEventListener','10kzfVKM','layer','getHeight','getOwnPropertyDescriptor','top','_mars3d_scene','117NAusiE','BaseLayer','painter'];_0x4bc9=function(){return _0x49776f;};return _0x4bc9();}(function(_0x2e71da,_0x37400f){const _0x55a931={_0x20ca80:0xc3,_0x554656:0xb4,_0x3a2b3b:0xde,_0x15e69d:0xcb,_0xa3fa40:0xdd,_0x3b56f2:0xba},_0x9f6b36=_0x1d75,_0x175555=_0x2e71da();while(!![]){try{const _0x5dc925=parseInt(_0x9f6b36(_0x55a931._0x20ca80))/0x1+parseInt(_0x9f6b36(_0x55a931._0x554656))/0x2*(parseInt(_0x9f6b36(_0x55a931._0x3a2b3b))/0x3)+parseInt(_0x9f6b36(0xa8))/0x4+parseInt(_0x9f6b36(_0x55a931._0x15e69d))/0x5+parseInt(_0x9f6b36(0xb0))/0x6+parseInt(_0x9f6b36(0xc9))/0x7*(parseInt(_0x9f6b36(_0x55a931._0xa3fa40))/0x8)+-parseInt(_0x9f6b36(_0x55a931._0x3b56f2))/0x9*(parseInt(_0x9f6b36(0xa0))/0xa);if(_0x5dc925===_0x37400f)break;else _0x175555['push'](_0x175555['shift']());}catch(_0x5f3522){_0x175555['push'](_0x175555['shift']());}}}(_0x4bc9,0xa1108));function _interopNamespace(_0x2c0f42){const _0x578ce9={_0x2c956c:0xc6},_0x24757b={_0x46f84e:0xb7},_0x5d7cab=_0x1d75;if(_0x2c0f42&&_0x2c0f42[_0x5d7cab(_0x578ce9._0x2c956c)])return _0x2c0f42;var _0x595a23=Object['create'](null);return _0x2c0f42&&Object[_0x5d7cab(0xa2)](_0x2c0f42)['forEach'](function(_0x2b4f37){const _0x12d87d=_0x5d7cab;if(_0x2b4f37!=='default'){var _0x570f4e=Object[_0x12d87d(_0x24757b._0x46f84e)](_0x2c0f42,_0x2b4f37);Object['defineProperty'](_0x595a23,_0x2b4f37,_0x570f4e['get']?_0x570f4e:{'enumerable':!![],'get':function(){return _0x2c0f42[_0x2b4f37];}});}}),_0x595a23['default']=_0x2c0f42,_0x595a23;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xdb61f1,_0x595e){const _0x1f8eec={_0x591aab:0xb9,_0x2a7a9d:0xc4},_0xa8082=_0x1d75;this[_0xa8082(_0x1f8eec._0x591aab)]=_0xdb61f1,this[_0xa8082(0xaa)]=['lng','lat'],this[_0xa8082(_0x1f8eec._0x2a7a9d)]=[0x0,0x0],this['_api']=_0x595e;}['setMapOffset'](_0x3f6220){this['_mapOffset']=_0x3f6220;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x117101){const _0x19cd1c={_0x554629:0xb1,_0x3e9f23:0xb6,_0x28c199:0xa4,_0x360e3e:0xaf,_0x2f22d2:0xab},_0x3c4c90=_0x1d75,_0x84de59=this['_mars3d_scene'],_0x26296d=[NaN,NaN];let _0x439edc=_0x84de59[_0x3c4c90(_0x19cd1c._0x554629)];_0x84de59['echartsAutoHeight']&&(_0x439edc=_0x84de59['globe'][_0x3c4c90(_0x19cd1c._0x3e9f23)](Cesium$1[_0x3c4c90(_0x19cd1c._0x28c199)][_0x3c4c90(_0x19cd1c._0x360e3e)](_0x117101[0x0],_0x117101[0x1])));const _0x1490e8=Cesium$1['Cartesian3']['fromDegrees'](_0x117101[0x0],_0x117101[0x1],_0x439edc);if(!_0x1490e8)return _0x26296d;const _0x32f5b3=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x84de59,_0x1490e8);if(!_0x32f5b3)return _0x26296d;if(_0x84de59['echartsDepthTest']&&_0x84de59['mode']===Cesium$1['SceneMode'][_0x3c4c90(0x9b)]){const _0x2e149d=new Cesium$1['EllipsoidalOccluder'](_0x84de59['globe'][_0x3c4c90(0xbd)],_0x84de59['camera'][_0x3c4c90(_0x19cd1c._0x2f22d2)]),_0x574546=_0x2e149d['isPointVisible'](_0x1490e8);if(!_0x574546)return _0x26296d;}return[_0x32f5b3['x']-this['_mapOffset'][0x0],_0x32f5b3['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x481e3d=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x481e3d['getWidth'](),_0x481e3d['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x34e5e6(0xbf)]=function(_0x492dac,_0x2737d4){const _0x44f85e={_0x5955ee:0xb9,_0xded609:0xc7},_0x44189d={_0x4c41b9:0xd4},_0x5168f3=_0x34e5e6;let _0x32f0f4;const _0x195ef3=_0x492dac['scheduler']['ecInstance'][_0x5168f3(_0x44f85e._0x5955ee)];_0x492dac[_0x5168f3(_0x44f85e._0xded609)]('mars3dMap',function(_0xeeb3ee){const _0x2dd21d=_0x5168f3,_0xed8de6=_0x2737d4['getZr']()[_0x2dd21d(0xbc)];if(!_0xed8de6)return;!_0x32f0f4&&(_0x32f0f4=new CompositeCoordinateSystem(_0x195ef3,_0x2737d4)),_0xeeb3ee['coordinateSystem']=_0x32f0f4,_0x32f0f4['setMapOffset'](_0xeeb3ee[_0x2dd21d(_0x44189d._0x4c41b9)]||[0x0,0x0]);}),_0x492dac['eachSeries'](function(_0x5437c3){const _0x456854=_0x5168f3;_0x5437c3['get']('coordinateSystem')==='mars3dMap'&&(!_0x32f0f4&&(_0x32f0f4=new CompositeCoordinateSystem(_0x195ef3,_0x2737d4)),_0x5437c3[_0x456854(0xa9)]=_0x32f0f4);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x34e5e6(0xae)},function(_0x42073f,_0x2e8247){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x34e5e6(0x9d)]({'type':'mars3dMap','init':function(_0x5760dd,_0x2f1a7){const _0x3e5527={_0x1d110c:0xa1},_0x10efb0=_0x34e5e6;this['api']=_0x2f1a7,this[_0x10efb0(_0x3e5527._0x1d110c)]=_0x5760dd['scheduler']['ecInstance'][_0x10efb0(0xb9)],this['scene']['postRender'][_0x10efb0(0xb3)](this[_0x10efb0(0x9e)],this);},'moveHandler':function(_0x1cc8b0,_0x2198f9){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x1a06f2,_0xf9ee40,_0x26fc7c){},'dispose':function(_0x22d05f){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x1d75(_0x91f20c,_0x349e8b){const _0x4bc9e1=_0x4bc9();return _0x1d75=function(_0x1d7506,_0x2d9145){_0x1d7506=_0x1d7506-0x9b;let _0x2172f5=_0x4bc9e1[_0x1d7506];return _0x2172f5;},_0x1d75(_0x91f20c,_0x349e8b);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x34e5e6(0xbb)];class EchartsLayer extends BaseLayer{constructor(_0x2727fe={}){const _0x5c13de={_0x267969:0xa6},_0x1155fc=_0x34e5e6;super(_0x2727fe),this[_0x1155fc(_0x5c13de._0x267969)]=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x193fdf){const _0x491b6e=_0x34e5e6;this['_pointerEvents']=_0x193fdf,this['_echartsContainer']&&(_0x193fdf?this[_0x491b6e(0xa3)]['style']['pointerEvents']='all':this[_0x491b6e(0xa3)]['style'][_0x491b6e(0xd3)]='none');}['_setOptionsHook'](_0x1c0a0e,_0x44ff18){this['setEchartsOption'](_0x1c0a0e);}['_showHook'](_0x2b7299){const _0x3dc7aa={_0x3433f6:0xbe},_0x28fc30=_0x34e5e6;_0x2b7299?this['_echartsContainer']['style']['visibility']=_0x28fc30(0xdb):this['_echartsContainer']['style']['visibility']=_0x28fc30(_0x3dc7aa._0x3433f6);}['_mountedHook'](){const _0x528152={_0x4f6655:0xa7,_0x181bfa:0xa1,_0x33a6e2:0xc5},_0x31f1ab=_0x34e5e6;this[_0x31f1ab(_0x528152._0x4f6655)][_0x31f1ab(_0x528152._0x181bfa)]['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene'][_0x31f1ab(0xd9)]=this['options'][_0x31f1ab(_0x528152._0x33a6e2)]??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x23d993={_0x4fdb11:0xa5,_0x8e90a5:0xa7},_0x5cdae2=_0x34e5e6;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x5cdae2(_0x23d993._0x4fdb11)]=echarts__namespace['init'](this['_echartsContainer']),this[_0x5cdae2(0xa5)]['_mars3d_scene']=this[_0x5cdae2(_0x23d993._0x8e90a5)][_0x5cdae2(0xa1)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5770b9={_0x5c4b15:0xa5,_0x41a38a:0xa5,_0x3cff77:0xd0,_0x25a35e:0xa3},_0x4184d4=_0x34e5e6;this[_0x4184d4(_0x5770b9._0x5c4b15)]&&(this[_0x4184d4(_0x5770b9._0x5c4b15)]['clear'](),this[_0x4184d4(_0x5770b9._0x41a38a)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4184d4(_0x5770b9._0x3cff77)]['removeChild'](this['_echartsContainer']),delete this[_0x4184d4(_0x5770b9._0x25a35e)]);}['_createChartOverlay'](){const _0x976270={_0x24d13d:0xcf,_0x46f782:0xb8,_0x925d3e:0xac,_0x396257:0xa7,_0x4c8346:0xd6,_0x257e01:0xc8,_0x2a33dd:0xc2},_0x5d7958=_0x34e5e6,_0x554332=mars3d__namespace['DomUtil'][_0x5d7958(0xbf)]('div','mars3d-echarts',this['_map']['container']);return _0x554332['id']=this['id'],_0x554332['style']['position']=_0x5d7958(_0x976270._0x24d13d),_0x554332['style'][_0x5d7958(_0x976270._0x46f782)]='0px',_0x554332[_0x5d7958(0xd2)]['left']='0px',_0x554332['style'][_0x5d7958(_0x976270._0x925d3e)]=this[_0x5d7958(0xa7)]['scene']['canvas']['clientWidth']+'px',_0x554332['style']['height']=this[_0x5d7958(_0x976270._0x396257)]['scene']['canvas'][_0x5d7958(_0x976270._0x4c8346)]+'px',_0x554332[_0x5d7958(0xd2)]['pointerEvents']=this['_pointerEvents']?_0x5d7958(_0x976270._0x257e01):_0x5d7958(_0x976270._0x2a33dd),_0x554332[_0x5d7958(0xd2)][_0x5d7958(0xc0)]=this[_0x5d7958(0xd5)][_0x5d7958(0xc0)]??0x9,_0x554332;}['resize'](){const _0x4ce629={_0x45250c:0xb2},_0x288bee=_0x34e5e6;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x288bee(0xac)]=this['_map']['scene'][_0x288bee(0x9c)]['clientWidth']+'px',this['_echartsContainer']['style'][_0x288bee(0xdc)]=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance'][_0x288bee(_0x4ce629._0x45250c)]();}['setEchartsOption'](_0x52e023,_0x17c482,_0xe1ffaf){const _0x66243a={_0x79c181:0xa5},_0x5377b2=_0x34e5e6;this['_echartsInstance']&&(_0x52e023={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x52e023,{'onlySimpleType':!![]})},delete _0x52e023[_0x5377b2(0xce)],this[_0x5377b2(_0x66243a._0x79c181)]['setOption'](_0x52e023,_0x17c482,_0xe1ffaf));}['getRectangle'](_0x60bb99){const _0x454a37={_0x29711e:0xd5,_0x20e2a8:0xaf},_0x53ddfa={_0x2a8e5c:0xd7,_0x3c293b:0xc1},_0x168ec1={_0x25805d:0xd1},_0x393c42=_0x34e5e6;let _0x14209c,_0x321d21,_0xf79615,_0x23ccd1;function _0x2e0346(_0x264a03){const _0x5002f7=_0x1d75;if(!Array[_0x5002f7(0xad)](_0x264a03))return;const _0x695217=_0x264a03[0x0]||0x0,_0x3ccaf6=_0x264a03[0x1]||0x0;_0x695217!==0x0&&_0x3ccaf6!==0x0&&(_0x14209c===undefined?(_0x14209c=_0x695217,_0x321d21=_0x695217,_0xf79615=_0x3ccaf6,_0x23ccd1=_0x3ccaf6):(_0x14209c=Math['min'](_0x14209c,_0x695217),_0x321d21=Math['max'](_0x321d21,_0x695217),_0xf79615=Math[_0x5002f7(_0x168ec1._0x25805d)](_0xf79615,_0x3ccaf6),_0x23ccd1=Math['max'](_0x23ccd1,_0x3ccaf6)));}const _0x4d06f3=this[_0x393c42(_0x454a37._0x29711e)][_0x393c42(0xcd)];_0x4d06f3&&_0x4d06f3['forEach'](_0x4fb0f6=>{const _0x29f97a={_0x10c14d:0xc1},_0x336fde=_0x393c42;_0x4fb0f6[_0x336fde(_0x53ddfa._0x2a8e5c)]&&_0x4fb0f6[_0x336fde(_0x53ddfa._0x2a8e5c)][_0x336fde(_0x53ddfa._0x3c293b)](_0x107874=>{const _0x5d7b23=_0x336fde;if(_0x107874['value'])_0x2e0346(_0x107874['value']);else _0x107874['coords']&&_0x107874['coords'][_0x5d7b23(_0x29f97a._0x10c14d)](_0x2872c9=>{_0x2e0346(_0x2872c9);});});});if(_0x14209c===0x0&&_0xf79615===0x0&&_0x321d21===0x0&&_0x23ccd1===0x0)return null;return _0x60bb99!==null&&_0x60bb99!==void 0x0&&_0x60bb99[_0x393c42(0xcc)]?{'xmin':_0x14209c,'xmax':_0x321d21,'ymin':_0xf79615,'ymax':_0x23ccd1}:Cesium['Rectangle'][_0x393c42(_0x454a37._0x20e2a8)](_0x14209c,_0xf79615,_0x321d21,_0x23ccd1);}['on'](_0x208230,_0x2a79c1,_0x648c47){return this['_echartsInstance']['on'](_0x208230,_0x2a79c1,_0x648c47||this),this;}['onByQuery'](_0x5e90bf,_0x550dae,_0x5db2e5,_0x607c54){const _0x34bd68=_0x34e5e6;return this[_0x34bd68(0xa5)]['on'](_0x5e90bf,_0x550dae,_0x5db2e5,_0x607c54||this),this;}['off'](_0x1984d6,_0x3eecb5,_0x2b745d){return this['_echartsInstance']['off'](_0x1984d6,_0x3eecb5,_0x2b745d||this),this;}}mars3d__namespace['LayerUtil'][_0x34e5e6(0xca)](_0x34e5e6(0x9f),EchartsLayer),mars3d__namespace[_0x34e5e6(0xb5)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x34e5e6(0xa2)](echarts)['forEach'](function(_0x142450){const _0x131ee9={_0x12a5fd:0xd8},_0x27d046=_0x34e5e6;if(_0x142450!=='default'&&!exports[_0x27d046(0xda)](_0x142450))Object[_0x27d046(_0x131ee9._0x12a5fd)](exports,_0x142450,{'enumerable':!![],'get':function(){return echarts[_0x142450];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.6.13",
"version": "3.6.14",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.13"
"mars3d": "~3.6.14"
},

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