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.6.0 to 3.6.1

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.6.0
* 编译日期:2023-08-04 12:18:40
* 版本信息:v3.6.1
* 编译日期:2023-08-14 21:28:22
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x2ee574=_0x1611;function _0x40b9(){const _0xa6f993=['lat','8NzNtkG','SceneMode','registerAction','DomUtil','SceneTransforms','_echartsContainer','width','scene','setOption','661633pfyZlF','echarts','default','_map','219wrhHpd','_pointerEvents','moveHandler','height','matrix','Cesium','_mars3d_scene','echartsDepthTest','register','__mapOffset','_echartsInstance','setMapOffset','scheduler','BaseLayer','coordinateSystem','off','clientWidth','globe','8116seUnaP','_api','clientHeight','963840TLEkEt','setEchartsOption','get','create','LayerUtil','position','graphic','_mapOffset','dimensions','_addedHook','extendComponentView','getOwnPropertyDescriptor','registerCoordinateSystem','5543056hQmBLE','hidden','44361042jSfhZn','8626160MpRjJQ','Rectangle','2129289aAfalk','18gfAQIs','updateLayout','style','12zhzwmW','echartsFixedHeight','请引入\x20echarts\x20库\x20','forEach','fromDegrees'];_0x40b9=function(){return _0xa6f993;};return _0x40b9();}(function(_0x49b7d8,_0x4a1ba0){const _0x524118={_0x5738ba:0x178,_0x4f6e29:0x14f,_0x21e9a8:0x159,_0x4fce5a:0x162,_0x21062c:0x14c},_0x49d748=_0x1611,_0x5e5865=_0x49b7d8();while(!![]){try{const _0x3d863b=parseInt(_0x49d748(0x166))/0x1*(-parseInt(_0x49d748(_0x524118._0x5738ba))/0x2)+-parseInt(_0x49d748(_0x524118._0x4f6e29))/0x3*(parseInt(_0x49d748(_0x524118._0x21e9a8))/0x4)+-parseInt(_0x49d748(0x17b))/0x5*(parseInt(_0x49d748(0x153))/0x6)+-parseInt(_0x49d748(_0x524118._0x4fce5a))/0x7+parseInt(_0x49d748(0x14a))/0x8*(-parseInt(_0x49d748(0x150))/0x9)+parseInt(_0x49d748(0x14d))/0xa+parseInt(_0x49d748(_0x524118._0x21062c))/0xb;if(_0x3d863b===_0x4a1ba0)break;else _0x5e5865['push'](_0x5e5865['shift']());}catch(_0x1117c4){_0x5e5865['push'](_0x5e5865['shift']());}}}(_0x40b9,0xb01ef));function _interopNamespace(_0x51780b){const _0x2ff48b={_0x59a0a6:0x148,_0x5b8531:0x17d},_0x412858=_0x1611;if(_0x51780b&&_0x51780b['__esModule'])return _0x51780b;var _0x4976ba=Object['create'](null);return _0x51780b&&Object['keys'](_0x51780b)[_0x412858(0x156)](function(_0x1ca8f4){const _0x4e719e=_0x412858;if(_0x1ca8f4!=='default'){var _0x19e476=Object[_0x4e719e(_0x2ff48b._0x59a0a6)](_0x51780b,_0x1ca8f4);Object['defineProperty'](_0x4976ba,_0x1ca8f4,_0x19e476[_0x4e719e(_0x2ff48b._0x5b8531)]?_0x19e476:{'enumerable':!![],'get':function(){return _0x51780b[_0x1ca8f4];}});}}),_0x4976ba['default']=_0x51780b,_0x4976ba;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x2ee574(0x16b)];class CompositeCoordinateSystem{constructor(_0xb2b238,_0x1cc5b){const _0x4b83fb={_0x192321:0x145},_0xa76e4b=_0x2ee574;this['_mars3d_scene']=_0xb2b238,this[_0xa76e4b(_0x4b83fb._0x192321)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0xa76e4b(0x179)]=_0x1cc5b;}['setMapOffset'](_0x28b233){const _0x59d66f=_0x2ee574;this[_0x59d66f(0x182)]=_0x28b233;}['getBMap'](){const _0x2273e6=_0x2ee574;return this[_0x2273e6(0x16c)];}['dataToPoint'](_0x46e5b4){const _0x5d63b2={_0x43b451:0x15d,_0x741771:0x16d,_0x19659a:0x177},_0x2474f1=_0x2ee574,_0x206105=this[_0x2474f1(0x16c)],_0x16116e=[NaN,NaN];let _0x2ffba1=_0x206105['echartsFixedHeight'];_0x206105['echartsAutoHeight']&&(_0x2ffba1=_0x206105['globe']['getHeight'](Cesium$1['Cartographic'][_0x2474f1(0x157)](_0x46e5b4[0x0],_0x46e5b4[0x1])));const _0x2ffe94=Cesium$1['Cartesian3']['fromDegrees'](_0x46e5b4[0x0],_0x46e5b4[0x1],_0x2ffba1);if(!_0x2ffe94)return _0x16116e;const _0x411027=Cesium$1[_0x2474f1(_0x5d63b2._0x43b451)]['wgs84ToWindowCoordinates'](_0x206105,_0x2ffe94);if(!_0x411027)return _0x16116e;if(_0x206105[_0x2474f1(_0x5d63b2._0x741771)]&&_0x206105['mode']===Cesium$1[_0x2474f1(0x15a)]['SCENE3D']){const _0x54671a=new Cesium$1['EllipsoidalOccluder'](_0x206105[_0x2474f1(_0x5d63b2._0x19659a)]['ellipsoid'],_0x206105['camera']['positionWC']),_0x5d172e=_0x54671a['isPointVisible'](_0x2ffe94);if(!_0x5d172e)return _0x16116e;}return[_0x411027['x']-this[_0x2474f1(0x182)][0x0],_0x411027['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x369711={_0x4b3336:0x181},_0x2366e8=_0x2ee574,_0x40caee=this['_api'];return new echarts__namespace[(_0x2366e8(_0x369711._0x4b3336))]['BoundingRect'](0x0,0x0,_0x40caee['getWidth'](),_0x40caee['getHeight']());}['getRoamTransform'](){const _0x160448={_0x1e24f3:0x16a},_0xbc7a2c=_0x2ee574;return echarts__namespace[_0xbc7a2c(_0x160448._0x1e24f3)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng',_0x2ee574(0x158)],CompositeCoordinateSystem[_0x2ee574(0x17e)]=function(_0x29cc3b,_0x41efcb){const _0x30cf5d={_0x342fb0:0x17d,_0x39a4d9:0x174},_0x25f867={_0x477d70:0x171},_0x36750a=_0x2ee574;let _0x4c66e4;const _0x313c53=_0x29cc3b[_0x36750a(0x172)]['ecInstance']['_mars3d_scene'];_0x29cc3b['eachComponent']('mars3dMap',function(_0x2f62cd){const _0x2751d6=_0x36750a,_0x1ad739=_0x41efcb['getZr']()['painter'];if(!_0x1ad739)return;!_0x4c66e4&&(_0x4c66e4=new CompositeCoordinateSystem(_0x313c53,_0x41efcb)),_0x2f62cd['coordinateSystem']=_0x4c66e4,_0x4c66e4[_0x2751d6(_0x25f867._0x477d70)](_0x2f62cd[_0x2751d6(0x16f)]||[0x0,0x0]);}),_0x29cc3b['eachSeries'](function(_0x536378){const _0x4da3ca=_0x36750a;_0x536378[_0x4da3ca(_0x30cf5d._0x342fb0)](_0x4da3ca(_0x30cf5d._0x39a4d9))==='mars3dMap'&&(!_0x4c66e4&&(_0x4c66e4=new CompositeCoordinateSystem(_0x313c53,_0x41efcb)),_0x536378['coordinateSystem']=_0x4c66e4);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x2ee574(0x149)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x2ee574(0x15b)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x2ee574(0x151)},function(_0x43068f,_0x1592ba){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x2ee574(0x147)]({'type':'mars3dMap','init':function(_0x303b6e,_0x5a19f9){const _0x18d503=_0x2ee574;this['api']=_0x5a19f9,this['scene']=_0x303b6e['scheduler']['ecInstance']['_mars3d_scene'],this[_0x18d503(0x160)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5257ed,_0x113ca){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x5b031b,_0x3a8f38,_0x10dae3){},'dispose':function(_0x21e151){const _0x29f8a8={_0x53ec28:0x168},_0x2f4fd7=_0x2ee574;this['scene']['postRender']['removeEventListener'](this[_0x2f4fd7(_0x29f8a8._0x53ec28)],this);}});else throw new Error(_0x2ee574(0x155));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x2ee574(0x173)];class EchartsLayer extends BaseLayer{constructor(_0x1c9eab={}){super(_0x1c9eab),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x2bbbbe=_0x2ee574;return this[_0x2bbbbe(0x167)];}set['pointerEvents'](_0x1a0cce){const _0x2f3759={_0xc84bff:0x15e,_0x25f99f:0x152},_0x101b1f=_0x2ee574;this['_pointerEvents']=_0x1a0cce,this['_echartsContainer']&&(_0x1a0cce?this[_0x101b1f(_0x2f3759._0xc84bff)]['style']['pointerEvents']='all':this['_echartsContainer'][_0x101b1f(_0x2f3759._0x25f99f)]['pointerEvents']='none');}['_setOptionsHook'](_0x55a000,_0x575629){this['setEchartsOption'](_0x55a000);}['_showHook'](_0xc82071){const _0x28ce3f={_0x3aba62:0x152,_0x351c80:0x14b},_0xaf5d76=_0x2ee574;_0xc82071?this[_0xaf5d76(0x15e)][_0xaf5d76(_0x28ce3f._0x3aba62)]['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0xaf5d76(_0x28ce3f._0x351c80);}['_mountedHook'](){const _0x4a6e3f={_0x521298:0x165,_0x484618:0x154},_0x1fcc38=_0x2ee574;this[_0x1fcc38(_0x4a6e3f._0x521298)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x1fcc38(0x165)][_0x1fcc38(0x160)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene'][_0x1fcc38(_0x4a6e3f._0x484618)]=this['options']['fixedHeight']??0x0;}[_0x2ee574(0x146)](){const _0x3f07bc={_0xaee3c8:0x15e,_0x4b11cf:0x165},_0x229e56=_0x2ee574;this[_0x229e56(0x15e)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x229e56(_0x3f07bc._0xaee3c8)]),this['_echartsInstance'][_0x229e56(0x16c)]=this[_0x229e56(_0x3f07bc._0x4b11cf)][_0x229e56(0x160)],this[_0x229e56(0x17c)](this['options']);}['_removedHook'](){const _0x500c31=_0x2ee574;this[_0x500c31(0x170)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x500c31(0x165)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x20a21d={_0x3fa1d4:0x165,_0x34ff5d:0x152,_0x625953:0x176},_0x1cd6f0=_0x2ee574,_0x154131=mars3d__namespace[_0x1cd6f0(0x15c)][_0x1cd6f0(0x17e)]('div','mars3d-echarts',this[_0x1cd6f0(_0x20a21d._0x3fa1d4)]['container']);return _0x154131['id']=this['id'],_0x154131['style'][_0x1cd6f0(0x180)]='absolute',_0x154131['style']['top']='0px',_0x154131['style']['left']='0px',_0x154131[_0x1cd6f0(_0x20a21d._0x34ff5d)]['width']=this[_0x1cd6f0(_0x20a21d._0x3fa1d4)]['scene']['canvas'][_0x1cd6f0(_0x20a21d._0x625953)]+'px',_0x154131['style']['height']=this['_map'][_0x1cd6f0(0x160)]['canvas'][_0x1cd6f0(0x17a)]+'px',_0x154131['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x154131['style']['zIndex']=this['options']['zIndex']??0x9,_0x154131;}['resize'](){const _0x561915={_0x122818:0x170,_0x1fc26c:0x15f,_0x4a0470:0x165,_0x337505:0x169,_0xd4357d:0x160},_0x3c89bb=_0x2ee574;if(!this[_0x3c89bb(_0x561915._0x122818)])return;this['_echartsContainer'][_0x3c89bb(0x152)][_0x3c89bb(_0x561915._0x1fc26c)]=this[_0x3c89bb(_0x561915._0x4a0470)]['scene']['canvas']['clientWidth']+'px',this[_0x3c89bb(0x15e)]['style'][_0x3c89bb(_0x561915._0x337505)]=this[_0x3c89bb(0x165)][_0x3c89bb(_0x561915._0xd4357d)]['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x4f8e7c,_0x1c8522,_0x207592){const _0x339bc0={_0x36cf61:0x170},_0x5da2a0=_0x2ee574;this[_0x5da2a0(_0x339bc0._0x36cf61)]&&(_0x4f8e7c['mars3dMap']=_0x4f8e7c['mars3dMap']||{},this[_0x5da2a0(0x170)][_0x5da2a0(0x161)](_0x4f8e7c,_0x1c8522,_0x207592));}['getRectangle'](_0x492935){const _0x36cfc2={_0x51867b:0x14e},_0x1596f2=_0x2ee574;let _0x129d7f,_0x16520b,_0x264159,_0x143375;function _0x263512(_0x3cde60){if(!Array['isArray'](_0x3cde60))return;const _0x4fdaec=_0x3cde60[0x0]||0x0,_0x251d9f=_0x3cde60[0x1]||0x0;_0x4fdaec!==0x0&&_0x251d9f!==0x0&&(_0x129d7f===undefined?(_0x129d7f=_0x4fdaec,_0x16520b=_0x4fdaec,_0x264159=_0x251d9f,_0x143375=_0x251d9f):(_0x129d7f=Math['min'](_0x129d7f,_0x4fdaec),_0x16520b=Math['max'](_0x16520b,_0x4fdaec),_0x264159=Math['min'](_0x264159,_0x251d9f),_0x143375=Math['max'](_0x143375,_0x251d9f)));}const _0x419e91=this['options']['series'];_0x419e91&&_0x419e91['forEach'](_0x2aa6da=>{_0x2aa6da['data']&&_0x2aa6da['data']['forEach'](_0x48b13e=>{if(_0x48b13e['value'])_0x263512(_0x48b13e['value']);else _0x48b13e['coords']&&_0x48b13e['coords']['forEach'](_0xd18aa5=>{_0x263512(_0xd18aa5);});});});if(_0x129d7f===0x0&&_0x264159===0x0&&_0x16520b===0x0&&_0x143375===0x0)return null;return _0x492935!==null&&_0x492935!==void 0x0&&_0x492935['isFormat']?{'xmin':_0x129d7f,'xmax':_0x16520b,'ymin':_0x264159,'ymax':_0x143375}:Cesium[_0x1596f2(_0x36cfc2._0x51867b)]['fromDegrees'](_0x129d7f,_0x264159,_0x16520b,_0x143375);}['on'](_0x9aaa81,_0x59db68,_0x42efa7){return this['_echartsInstance']['on'](_0x9aaa81,_0x59db68,_0x42efa7||this),this;}['onByQuery'](_0x25756a,_0x17f885,_0x18d696,_0x2eebfc){return this['_echartsInstance']['on'](_0x25756a,_0x17f885,_0x18d696,_0x2eebfc||this),this;}['off'](_0x59663f,_0x3359d9,_0x189579){const _0x50b59a={_0x73063c:0x175},_0x3d8a5a=_0x2ee574;return this['_echartsInstance'][_0x3d8a5a(_0x50b59a._0x73063c)](_0x59663f,_0x3359d9,_0x189579||this),this;}}function _0x1611(_0x547d2b,_0x26b71a){const _0x40b92f=_0x40b9();return _0x1611=function(_0x1611b6,_0xd404a9){_0x1611b6=_0x1611b6-0x145;let _0x363e67=_0x40b92f[_0x1611b6];return _0x363e67;},_0x1611(_0x547d2b,_0x26b71a);}mars3d__namespace[_0x2ee574(0x17f)][_0x2ee574(0x16e)](_0x2ee574(0x163),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x632f9d){const _0x21d152={_0x5897ac:0x164},_0x575b07=_0x2ee574;if(_0x632f9d!==_0x575b07(_0x21d152._0x5897ac)&&!exports['hasOwnProperty'](_0x632f9d))Object['defineProperty'](exports,_0x632f9d,{'enumerable':!![],'get':function(){return echarts[_0x632f9d];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x2a918a=_0x1d56;(function(_0x133457,_0x13fa5a){const _0x52483c={_0x182eca:0xb0,_0x2543c6:0xf2,_0x5e5e00:0xb2},_0x2e149f=_0x1d56,_0xd0b66a=_0x133457();while(!![]){try{const _0x29a982=parseInt(_0x2e149f(0xea))/0x1*(parseInt(_0x2e149f(0xbf))/0x2)+parseInt(_0x2e149f(0xe7))/0x3+parseInt(_0x2e149f(0xef))/0x4*(-parseInt(_0x2e149f(0xd9))/0x5)+-parseInt(_0x2e149f(_0x52483c._0x182eca))/0x6*(-parseInt(_0x2e149f(0xc2))/0x7)+-parseInt(_0x2e149f(0xb6))/0x8*(-parseInt(_0x2e149f(_0x52483c._0x2543c6))/0x9)+-parseInt(_0x2e149f(0xe8))/0xa+-parseInt(_0x2e149f(0xd6))/0xb*(parseInt(_0x2e149f(_0x52483c._0x5e5e00))/0xc);if(_0x29a982===_0x13fa5a)break;else _0xd0b66a['push'](_0xd0b66a['shift']());}catch(_0x34d3a){_0xd0b66a['push'](_0xd0b66a['shift']());}}}(_0x37c9,0x97f89));function _interopNamespace(_0x4f1007){const _0x494c14={_0x3869f2:0xe5,_0x2df85d:0xc8},_0x3ceb84=_0x1d56;if(_0x4f1007&&_0x4f1007['__esModule'])return _0x4f1007;var _0x290680=Object['create'](null);return _0x4f1007&&Object['keys'](_0x4f1007)[_0x3ceb84(0xe1)](function(_0xaed14e){const _0x2788ee=_0x3ceb84;if(_0xaed14e!==_0x2788ee(_0x494c14._0x3869f2)){var _0x1c1980=Object['getOwnPropertyDescriptor'](_0x4f1007,_0xaed14e);Object[_0x2788ee(0xe4)](_0x290680,_0xaed14e,_0x1c1980[_0x2788ee(_0x494c14._0x2df85d)]?_0x1c1980:{'enumerable':!![],'get':function(){return _0x4f1007[_0xaed14e];}});}}),_0x290680['default']=_0x4f1007,_0x290680;}function _0x1d56(_0x5774fa,_0x2ac26b){const _0x37c9d3=_0x37c9();return _0x1d56=function(_0x1d56cd,_0x2ef357){_0x1d56cd=_0x1d56cd-0xac;let _0x3ffc09=_0x37c9d3[_0x1d56cd];return _0x3ffc09;},_0x1d56(_0x5774fa,_0x2ac26b);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x2a918a(0xc5)];class CompositeCoordinateSystem{constructor(_0x4e1426,_0x47db22){const _0x129341={_0x4e0fc0:0xb1,_0x248499:0xcc,_0x5d710c:0xb5},_0x1f9ece=_0x2a918a;this[_0x1f9ece(_0x129341._0x4e0fc0)]=_0x4e1426,this['dimensions']=['lng','lat'],this[_0x1f9ece(_0x129341._0x248499)]=[0x0,0x0],this[_0x1f9ece(_0x129341._0x5d710c)]=_0x47db22;}['setMapOffset'](_0x53b6bb){this['_mapOffset']=_0x53b6bb;}['getBMap'](){const _0x14563a=_0x2a918a;return this[_0x14563a(0xb1)];}['dataToPoint'](_0x18c4d2){const _0x5e357d={_0x798e4a:0xc6,_0x338efb:0xdc,_0x41db5b:0xad},_0x29574e=_0x2a918a,_0x3f3b1e=this['_mars3d_scene'],_0x58643b=[NaN,NaN];let _0x17744b=_0x3f3b1e['echartsFixedHeight'];_0x3f3b1e['echartsAutoHeight']&&(_0x17744b=_0x3f3b1e['globe']['getHeight'](Cesium$1[_0x29574e(0xcf)]['fromDegrees'](_0x18c4d2[0x0],_0x18c4d2[0x1])));const _0x4b595c=Cesium$1[_0x29574e(0xed)]['fromDegrees'](_0x18c4d2[0x0],_0x18c4d2[0x1],_0x17744b);if(!_0x4b595c)return _0x58643b;const _0x166775=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x3f3b1e,_0x4b595c);if(!_0x166775)return _0x58643b;if(_0x3f3b1e[_0x29574e(_0x5e357d._0x798e4a)]&&_0x3f3b1e['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x40682c=new Cesium$1[(_0x29574e(_0x5e357d._0x338efb))](_0x3f3b1e[_0x29574e(0xc0)]['ellipsoid'],_0x3f3b1e['camera'][_0x29574e(_0x5e357d._0x41db5b)]),_0x274bde=_0x40682c['isPointVisible'](_0x4b595c);if(!_0x274bde)return _0x58643b;}return[_0x166775['x']-this['_mapOffset'][0x0],_0x166775['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x32f259={_0x5e5af9:0xb3},_0x26ab67=_0x2a918a,_0x55068a=this['_api'];return new echarts__namespace[(_0x26ab67(_0x32f259._0x5e5af9))][(_0x26ab67(0xcb))](0x0,0x0,_0x55068a['getWidth'](),_0x55068a[_0x26ab67(0xda)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x3b9ef9,_0x3a8fc3){const _0x3f01e9={_0x539697:0xc7,_0x9d0e2f:0xdb},_0x433336={_0x2f1f8b:0xb8},_0x1d0994={_0x34dc3e:0xac,_0x22341b:0xd3},_0x160acc=_0x2a918a;let _0x10f9ba;const _0x10acc9=_0x3b9ef9[_0x160acc(_0x3f01e9._0x539697)]['ecInstance']['_mars3d_scene'];_0x3b9ef9[_0x160acc(_0x3f01e9._0x9d0e2f)]('mars3dMap',function(_0x24a61c){const _0x19cd1c=_0x160acc,_0x35913a=_0x3a8fc3[_0x19cd1c(_0x1d0994._0x34dc3e)]()['painter'];if(!_0x35913a)return;!_0x10f9ba&&(_0x10f9ba=new CompositeCoordinateSystem(_0x10acc9,_0x3a8fc3)),_0x24a61c[_0x19cd1c(0xb8)]=_0x10f9ba,_0x10f9ba['setMapOffset'](_0x24a61c[_0x19cd1c(_0x1d0994._0x22341b)]||[0x0,0x0]);}),_0x3b9ef9['eachSeries'](function(_0x1623c7){const _0x57a817=_0x160acc;_0x1623c7['get']('coordinateSystem')==='mars3dMap'&&(!_0x10f9ba&&(_0x10f9ba=new CompositeCoordinateSystem(_0x10acc9,_0x3a8fc3)),_0x1623c7[_0x57a817(_0x433336._0x2f1f8b)]=_0x10f9ba);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x2a918a(0xde)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x2a918a(0xbb),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x59bffb,_0x1d93c6){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x206169={_0x3d6cd3:0xb1},_0x1a7615=_0x2a918a;return this[_0x1a7615(_0x206169._0x3d6cd3)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x419e09,_0x34e638){const _0x317421={_0x499659:0xae},_0x5003db=_0x2a918a;this['api']=_0x34e638,this[_0x5003db(0xd4)]=_0x419e09['scheduler'][_0x5003db(_0x317421._0x499659)][_0x5003db(0xb1)],this['scene']['postRender'][_0x5003db(0xd7)](this['moveHandler'],this);},'moveHandler':function(_0x3aa18d,_0x1340a1){const _0xdd8f51={_0x3c68df:0xbb},_0x577f54=_0x2a918a;this['api']['dispatchAction']({'type':_0x577f54(_0xdd8f51._0x3c68df)});},'render':function(_0x3d6132,_0xd106ab,_0x97b270){},'dispose':function(_0x34c6c8){const _0x4c29a7={_0x20b2cc:0xd2,_0x1e142c:0xca},_0x3f8fc3=_0x2a918a;this['scene'][_0x3f8fc3(_0x4c29a7._0x20b2cc)]['removeEventListener'](this[_0x3f8fc3(_0x4c29a7._0x1e142c)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x2a918a(0xec)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x847793={}){const _0x5b1926={_0xb2ef66:0xd5},_0x29936b=_0x2a918a;super(_0x847793),this[_0x29936b(0xe3)]=this[_0x29936b(_0x5b1926._0xb2ef66)]['pointerEvents'];}get[_0x2a918a(0xec)](){const _0x13fd56={_0x89086f:0xeb},_0x4c4a64=_0x2a918a;return this[_0x4c4a64(_0x13fd56._0x89086f)];}get[_0x2a918a(0xd0)](){const _0x3e6298=_0x2a918a;return this[_0x3e6298(0xe3)];}set['pointerEvents'](_0x4486dd){const _0x1e0d03=_0x2a918a;this['_pointerEvents']=_0x4486dd,this['_echartsContainer']&&(_0x4486dd?this['_echartsContainer']['style'][_0x1e0d03(0xd0)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}[_0x2a918a(0xb9)](_0xdd38c6,_0x5d868d){this['setEchartsOption'](_0xdd38c6);}[_0x2a918a(0xe2)](_0x89119d){const _0x551b75={_0x3d2830:0xc4},_0x242daf=_0x2a918a;_0x89119d?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer'][_0x242daf(0xe9)][_0x242daf(_0x551b75._0x3d2830)]='hidden';}['_mountedHook'](){const _0x2ae2a8={_0x1ef836:0xaf,_0x40c161:0xbe,_0x1be7e8:0xb4},_0x18b19e=_0x2a918a;this['_map'][_0x18b19e(0xd4)]['echartsDepthTest']=this[_0x18b19e(0xd5)][_0x18b19e(_0x2ae2a8._0x1ef836)]??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this[_0x18b19e(_0x2ae2a8._0x40c161)][_0x18b19e(0xd4)][_0x18b19e(_0x2ae2a8._0x1be7e8)]=this['options']['fixedHeight']??0x0;}[_0x2a918a(0xdd)](){const _0x1e3957={_0x5742c3:0xd8,_0x5306ec:0xd8},_0x567891=_0x2a918a;this[_0x567891(_0x1e3957._0x5742c3)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x567891(_0x1e3957._0x5306ec)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}[_0x2a918a(0xce)](){const _0x24dc9b={_0x250b68:0xc3},_0x460bb6=_0x2a918a;this[_0x460bb6(0xeb)]&&(this[_0x460bb6(0xeb)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x460bb6(0xbe)]['container'][_0x460bb6(_0x24dc9b._0x250b68)](this['_echartsContainer']),delete this[_0x460bb6(0xd8)]);}['_createChartOverlay'](){const _0x258213={_0x22e6dd:0xe9,_0x15d8b8:0xf1,_0x25f6a9:0xe9,_0x71449b:0xee,_0x124ff8:0xe6,_0x55c073:0xbe,_0x4ee4df:0xf0,_0x1d6a96:0xba},_0xd6e959=_0x2a918a,_0x3443ee=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0xd6e959(0xbc)]);return _0x3443ee['id']=this['id'],_0x3443ee['style']['position']='absolute',_0x3443ee[_0xd6e959(_0x258213._0x22e6dd)]['top']=_0xd6e959(_0x258213._0x15d8b8),_0x3443ee[_0xd6e959(0xe9)]['left']=_0xd6e959(0xf1),_0x3443ee[_0xd6e959(_0x258213._0x25f6a9)][_0xd6e959(_0x258213._0x71449b)]=this['_map']['scene'][_0xd6e959(_0x258213._0x124ff8)]['clientWidth']+'px',_0x3443ee['style']['height']=this[_0xd6e959(_0x258213._0x55c073)][_0xd6e959(0xd4)][_0xd6e959(0xe6)][_0xd6e959(_0x258213._0x4ee4df)]+'px',_0x3443ee['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x3443ee['style']['zIndex']=this['options'][_0xd6e959(_0x258213._0x1d6a96)]??0x9,_0x3443ee;}['resize'](){const _0x3f0920={_0xb310ba:0xd8,_0x430fc5:0xe6,_0x4637f0:0xbe,_0x1769ca:0xeb},_0x33d406=_0x2a918a;if(!this['_echartsInstance'])return;this[_0x33d406(_0x3f0920._0xb310ba)][_0x33d406(0xe9)]['width']=this['_map']['scene'][_0x33d406(_0x3f0920._0x430fc5)]['clientWidth']+'px',this[_0x33d406(0xd8)]['style']['height']=this[_0x33d406(_0x3f0920._0x4637f0)]['scene'][_0x33d406(_0x3f0920._0x430fc5)]['clientHeight']+'px',this[_0x33d406(_0x3f0920._0x1769ca)]['resize']();}['setEchartsOption'](_0x5af4d2,_0x375f13,_0x422a3){const _0x26a9bb={_0x127329:0xdf},_0x14ce29=_0x2a918a;this['_echartsInstance']&&(_0x5af4d2[_0x14ce29(_0x26a9bb._0x127329)]=_0x5af4d2['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x5af4d2,_0x375f13,_0x422a3));}['getRectangle'](_0x515b2a){const _0x39e712={_0x2cd7f7:0xd5,_0x4356d0:0xb7,_0x46eac7:0xbd},_0x5a5c9d={_0x25be07:0xd1,_0x147315:0xc9,_0x36390a:0xe0},_0x303107=_0x2a918a;let _0x4af5c1,_0x2913b7,_0x1076ec,_0x47e604;function _0x5ca929(_0x2f4c04){const _0x100f33=_0x1d56;if(!Array[_0x100f33(_0x5a5c9d._0x25be07)](_0x2f4c04))return;const _0x305793=_0x2f4c04[0x0]||0x0,_0x34f708=_0x2f4c04[0x1]||0x0;_0x305793!==0x0&&_0x34f708!==0x0&&(_0x4af5c1===undefined?(_0x4af5c1=_0x305793,_0x2913b7=_0x305793,_0x1076ec=_0x34f708,_0x47e604=_0x34f708):(_0x4af5c1=Math['min'](_0x4af5c1,_0x305793),_0x2913b7=Math[_0x100f33(_0x5a5c9d._0x147315)](_0x2913b7,_0x305793),_0x1076ec=Math[_0x100f33(_0x5a5c9d._0x36390a)](_0x1076ec,_0x34f708),_0x47e604=Math['max'](_0x47e604,_0x34f708)));}const _0x228712=this[_0x303107(_0x39e712._0x2cd7f7)]['series'];_0x228712&&_0x228712['forEach'](_0x4df7fb=>{_0x4df7fb['data']&&_0x4df7fb['data']['forEach'](_0x28fd9c=>{if(_0x28fd9c['value'])_0x5ca929(_0x28fd9c['value']);else _0x28fd9c['coords']&&_0x28fd9c['coords']['forEach'](_0x14bb32=>{_0x5ca929(_0x14bb32);});});});if(_0x4af5c1===0x0&&_0x1076ec===0x0&&_0x2913b7===0x0&&_0x47e604===0x0)return null;return _0x515b2a!==null&&_0x515b2a!==void 0x0&&_0x515b2a['isFormat']?{'xmin':_0x4af5c1,'xmax':_0x2913b7,'ymin':_0x1076ec,'ymax':_0x47e604}:Cesium[_0x303107(_0x39e712._0x4356d0)][_0x303107(_0x39e712._0x46eac7)](_0x4af5c1,_0x1076ec,_0x2913b7,_0x47e604);}['on'](_0x368f26,_0x13caf2,_0x1e3eeb){return this['_echartsInstance']['on'](_0x368f26,_0x13caf2,_0x1e3eeb||this),this;}[_0x2a918a(0xc1)](_0x39eca0,_0x2aa8c0,_0x11422c,_0x545a0e){return this['_echartsInstance']['on'](_0x39eca0,_0x2aa8c0,_0x11422c,_0x545a0e||this),this;}[_0x2a918a(0xcd)](_0x394d63,_0x129599,_0x373c7d){const _0x1500bf={_0x20d905:0xeb},_0x566caa=_0x2a918a;return this[_0x566caa(_0x1500bf._0x20d905)]['off'](_0x394d63,_0x129599,_0x373c7d||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x2a918a(0xec)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x3f844e){const _0x23fc07={_0x4a1d1a:0xe5},_0x40b058=_0x2a918a;if(_0x3f844e!==_0x40b058(_0x23fc07._0x4a1d1a)&&!exports['hasOwnProperty'](_0x3f844e))Object['defineProperty'](exports,_0x3f844e,{'enumerable':!![],'get':function(){return echarts[_0x3f844e];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x37c9(){const _0x5430e1=['scene','options','242uCaerM','addEventListener','_echartsContainer','855uvVpsr','getHeight','eachComponent','EllipsoidalOccluder','_addedHook','init','mars3dMap','min','forEach','_showHook','_pointerEvents','defineProperty','default','canvas','3533802MyJsww','11929570VfDcoM','style','135pfaVgi','_echartsInstance','layer','Cartesian3','width','28316ZevkIb','clientHeight','0px','378RdSoiz','getZr','positionWC','ecInstance','depthTest','4596810TyjBxJ','_mars3d_scene','325284qWOzYI','graphic','echartsFixedHeight','_api','119296viAiVz','Rectangle','coordinateSystem','_setOptionsHook','zIndex','mars3dMapRoam','container','fromDegrees','_map','15584KJwPaH','globe','onByQuery','7RUfRoS','removeChild','visibility','Cesium','echartsDepthTest','scheduler','get','max','moveHandler','BoundingRect','_mapOffset','off','_removedHook','Cartographic','pointerEvents','isArray','postRender','__mapOffset'];_0x37c9=function(){return _0x5430e1;};return _0x37c9();}
}));
{
"name": "mars3d-echarts",
"version": "3.6.0",
"version": "3.6.1",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.0"
"mars3d": "~3.6.1"
},

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