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.5.12 to 3.5.13

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.5.12
* 编译日期:2023-06-19 18:25:59
* 版本信息:v3.5.13
* 编译日期:2023-06-26 22:15:59
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x446ecb=_0x4736;(function(_0x1e7d21,_0xfe90a7){const _0x49f4ca={_0x3d92f9:0x88,_0x25ec3a:0x9e},_0x54bbcd=_0x4736,_0x5091ee=_0x1e7d21();while(!![]){try{const _0x589c6a=parseInt(_0x54bbcd(0x87))/0x1+parseInt(_0x54bbcd(0x85))/0x2+-parseInt(_0x54bbcd(_0x49f4ca._0x3d92f9))/0x3+parseInt(_0x54bbcd(0xa1))/0x4+-parseInt(_0x54bbcd(0x9b))/0x5+parseInt(_0x54bbcd(_0x49f4ca._0x25ec3a))/0x6+-parseInt(_0x54bbcd(0xab))/0x7;if(_0x589c6a===_0xfe90a7)break;else _0x5091ee['push'](_0x5091ee['shift']());}catch(_0x3d7dc9){_0x5091ee['push'](_0x5091ee['shift']());}}}(_0x2997,0xcaef5));function _interopNamespace(_0x41e48f){const _0x29c965={_0x279c79:0x93,_0x203db3:0x96},_0x510003=_0x4736;if(_0x41e48f&&_0x41e48f['__esModule'])return _0x41e48f;var _0x2a8ddc=Object['create'](null);return _0x41e48f&&Object[_0x510003(_0x29c965._0x279c79)](_0x41e48f)['forEach'](function(_0x187a3d){const _0x304aeb=_0x510003;if(_0x187a3d!=='default'){var _0x525bca=Object['getOwnPropertyDescriptor'](_0x41e48f,_0x187a3d);Object['defineProperty'](_0x2a8ddc,_0x187a3d,_0x525bca[_0x304aeb(0xa6)]?_0x525bca:{'enumerable':!![],'get':function(){return _0x41e48f[_0x187a3d];}});}}),_0x2a8ddc[_0x510003(_0x29c965._0x203db3)]=_0x41e48f,_0x2a8ddc;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2997(){const _0x3b9d50=['removeEventListener','echartsDepthTest','setOption','scene','mars3dMap','visibility','matrix','1066570aZjZma','_echartsContainer','1110618mXUtKs','2385123MielAR','isPointVisible','clientHeight','create','getHeight','layer','eachSeries','_map','dimensions','canvas','lat','keys','pointerEvents','_addedHook','default','请引入\x20echarts\x20库\x20','moveHandler','setMapOffset','fixedHeight','7932515FtSBrr','defineProperty','resize','7222776nOQrOk','options','_api','2689064nIwejp','lng','postRender','echartsAutoHeight','fromDegrees','get','painter','setEchartsOption','onByQuery','style','2150400NYzTVC','value','hasOwnProperty','BaseLayer','dispatchAction','_createChartOverlay','forEach','echartsFixedHeight','_pointerEvents','extendComponentView','series','none','_mapOffset','init','coords','0px','mars3dMapRoam','_echartsInstance','data','_mars3d_scene'];_0x2997=function(){return _0x3b9d50;};return _0x2997();}function _0x4736(_0x6790f0,_0x3028f2){const _0x2997b5=_0x2997();return _0x4736=function(_0x47361c,_0x3730f8){_0x47361c=_0x47361c-0x6f;let _0x43715d=_0x2997b5[_0x47361c];return _0x43715d;},_0x4736(_0x6790f0,_0x3028f2);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x356fbf,_0x2054d2){const _0x2ce57b={_0xc0b182:0xa2,_0xa0bdc1:0x76},_0x4a6e1a=_0x4736;this['_mars3d_scene']=_0x356fbf,this['dimensions']=[_0x4a6e1a(_0x2ce57b._0xc0b182),'lat'],this[_0x4a6e1a(_0x2ce57b._0xa0bdc1)]=[0x0,0x0],this[_0x4a6e1a(0xa0)]=_0x2054d2;}['setMapOffset'](_0x4abaf2){this['_mapOffset']=_0x4abaf2;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x43ad16){const _0x2c2c3c={_0x40029f:0x7d,_0x1dac52:0x8c,_0x3a3886:0x89},_0x32a662=_0x4736,_0x351dc2=this[_0x32a662(_0x2c2c3c._0x40029f)],_0x33fdd3=[NaN,NaN];let _0x120888=_0x351dc2['echartsFixedHeight'];_0x351dc2[_0x32a662(0xa4)]&&(_0x120888=_0x351dc2['globe'][_0x32a662(_0x2c2c3c._0x1dac52)](Cesium$1['Cartographic']['fromDegrees'](_0x43ad16[0x0],_0x43ad16[0x1])));const _0x53f942=Cesium$1['Cartesian3']['fromDegrees'](_0x43ad16[0x0],_0x43ad16[0x1],_0x120888);if(!_0x53f942)return _0x33fdd3;const _0x597813=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x351dc2,_0x53f942);if(!_0x597813)return _0x33fdd3;if(_0x351dc2['echartsDepthTest']&&_0x351dc2['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x4ebebb=new Cesium$1['EllipsoidalOccluder'](_0x351dc2['globe']['ellipsoid'],_0x351dc2['camera']['positionWC']),_0x4f3783=_0x4ebebb[_0x32a662(_0x2c2c3c._0x3a3886)](_0x53f942);if(!_0x4f3783)return _0x33fdd3;}return[_0x597813['x']-this[_0x32a662(0x76)][0x0],_0x597813['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x5f39f7=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x5f39f7['getWidth'](),_0x5f39f7['getHeight']());}['getRoamTransform'](){const _0x47679b={_0x420bc2:0x84},_0x20ca66=_0x4736;return echarts__namespace[_0x20ca66(_0x47679b._0x420bc2)]['create']();}}CompositeCoordinateSystem[_0x446ecb(0x90)]=['lng',_0x446ecb(0x92)],CompositeCoordinateSystem[_0x446ecb(0x8b)]=function(_0x484fec,_0x5ad62f){const _0x3ead92={_0x590d45:0x7d},_0x538c73=_0x446ecb;let _0x33f03c;const _0x5cfc66=_0x484fec['scheduler']['ecInstance'][_0x538c73(_0x3ead92._0x590d45)];_0x484fec['eachComponent']('mars3dMap',function(_0x5b7baf){const _0xb097cf=_0x538c73,_0x57082e=_0x5ad62f['getZr']()[_0xb097cf(0xa7)];if(!_0x57082e)return;!_0x33f03c&&(_0x33f03c=new CompositeCoordinateSystem(_0x5cfc66,_0x5ad62f)),_0x5b7baf['coordinateSystem']=_0x33f03c,_0x33f03c[_0xb097cf(0x99)](_0x5b7baf['__mapOffset']||[0x0,0x0]);}),_0x484fec[_0x538c73(0x8e)](function(_0x2dd75b){const _0x4b39f5=_0x538c73;_0x2dd75b['get']('coordinateSystem')===_0x4b39f5(0x82)&&(!_0x33f03c&&(_0x33f03c=new CompositeCoordinateSystem(_0x5cfc66,_0x5ad62f)),_0x2dd75b['coordinateSystem']=_0x33f03c);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x446ecb(0x77)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x446ecb(0x7a),'update':'updateLayout'},function(_0x107299,_0x1c8bc6){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x446ecb(0x73)]({'type':'mars3dMap','init':function(_0x5a1b17,_0x59e1b3){const _0x45b5ac=_0x446ecb;this['api']=_0x59e1b3,this['scene']=_0x5a1b17['scheduler']['ecInstance'][_0x45b5ac(0x7d)],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x29b27b,_0x48cc5f){const _0x4a53dc=_0x446ecb;this['api'][_0x4a53dc(0xaf)]({'type':'mars3dMapRoam'});},'render':function(_0x4b0055,_0x3b0787,_0x20e443){},'dispose':function(_0x1aa36a){const _0x5a97ff={_0x29a567:0xa3,_0x5614fc:0x98},_0x46f4ea=_0x446ecb;this[_0x46f4ea(0x81)][_0x46f4ea(_0x5a97ff._0x29a567)][_0x46f4ea(0x7e)](this[_0x46f4ea(_0x5a97ff._0x5614fc)],this);}});else throw new Error(_0x446ecb(0x97));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x446ecb(0x8d)][_0x446ecb(0xae)];class EchartsLayer extends BaseLayer{constructor(_0x41a15f={}){const _0x344b0f={_0x19b99b:0x94},_0x36cd49=_0x446ecb;super(_0x41a15f),this[_0x36cd49(0x72)]=this['options'][_0x36cd49(_0x344b0f._0x19b99b)];}get[_0x446ecb(0x8d)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x949ec2){const _0x568073=_0x446ecb;this['_pointerEvents']=_0x949ec2,this['_echartsContainer']&&(_0x949ec2?this['_echartsContainer']['style'][_0x568073(0x94)]='all':this['_echartsContainer']['style']['pointerEvents']=_0x568073(0x75));}['_setOptionsHook'](_0x21390d,_0x5a3912){this['setEchartsOption'](_0x21390d);}['_showHook'](_0x2246dc){const _0x4baaca={_0x3f1d3e:0xaa,_0x316572:0x83},_0x35a57c=_0x446ecb;_0x2246dc?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer'][_0x35a57c(_0x4baaca._0x3f1d3e)][_0x35a57c(_0x4baaca._0x316572)]='hidden';}['_mountedHook'](){const _0x285061=_0x446ecb;this[_0x285061(0x8f)]['scene'][_0x285061(0x7f)]=this['options']['depthTest']??!![],this['_map']['scene'][_0x285061(0xa4)]=this['options']['clampToGround']??![],this['_map']['scene'][_0x285061(0x71)]=this['options'][_0x285061(0x9a)]??0x0;}[_0x446ecb(0x95)](){const _0x48a3a={_0x1426d7:0x86,_0x7171e3:0x86},_0x2e0932=_0x446ecb;this[_0x2e0932(_0x48a3a._0x1426d7)]=this[_0x2e0932(0x6f)](),this[_0x2e0932(0x7b)]=echarts__namespace['init'](this[_0x2e0932(_0x48a3a._0x7171e3)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x2e0932(0xa8)](this['options']);}['_removedHook'](){const _0x396f1f={_0x210ccd:0x7b},_0x3002bb=_0x446ecb;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this[_0x3002bb(_0x396f1f._0x210ccd)]),this['_echartsContainer']&&(this[_0x3002bb(0x8f)]['container']['removeChild'](this[_0x3002bb(0x86)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x751c0f={_0x48a9c9:0x8b,_0x1a3137:0x91,_0x7ee8f0:0xaa},_0x9e28e2=_0x446ecb,_0xbbad2c=mars3d__namespace['DomUtil'][_0x9e28e2(_0x751c0f._0x48a9c9)]('div','mars3d-echarts',this['_map']['container']);return _0xbbad2c['id']=this['id'],_0xbbad2c[_0x9e28e2(0xaa)]['position']='absolute',_0xbbad2c['style']['top']=_0x9e28e2(0x79),_0xbbad2c['style']['left']=_0x9e28e2(0x79),_0xbbad2c['style']['width']=this['_map']['scene'][_0x9e28e2(_0x751c0f._0x1a3137)]['clientWidth']+'px',_0xbbad2c[_0x9e28e2(_0x751c0f._0x7ee8f0)]['height']=this[_0x9e28e2(0x8f)]['scene'][_0x9e28e2(0x91)]['clientHeight']+'px',_0xbbad2c['style']['pointerEvents']=this[_0x9e28e2(0x72)]?'all':_0x9e28e2(0x75),_0xbbad2c[_0x9e28e2(0xaa)]['zIndex']=this['options']['zIndex']??0x9,_0xbbad2c;}[_0x446ecb(0x9d)](){const _0x557c2c={_0x1492c7:0x86,_0x14e2ce:0x8a},_0x22ce44=_0x446ecb;if(!this[_0x22ce44(0x7b)])return;this[_0x22ce44(_0x557c2c._0x1492c7)][_0x22ce44(0xaa)]['width']=this['_map']['scene'][_0x22ce44(0x91)]['clientWidth']+'px',this[_0x22ce44(0x86)]['style']['height']=this[_0x22ce44(0x8f)]['scene']['canvas'][_0x22ce44(_0x557c2c._0x14e2ce)]+'px',this['_echartsInstance']['resize']();}[_0x446ecb(0xa8)](_0x469e85,_0x29f05e,_0xe531ed){const _0x5d3be7={_0x2a66f7:0x82,_0x28d10d:0x80},_0x3fd497=_0x446ecb;this['_echartsInstance']&&(_0x469e85[_0x3fd497(0x82)]=_0x469e85[_0x3fd497(_0x5d3be7._0x2a66f7)]||{},this['_echartsInstance'][_0x3fd497(_0x5d3be7._0x28d10d)](_0x469e85,_0x29f05e,_0xe531ed));}['getRectangle'](_0x4e9b3a){const _0x2c8bf8={_0x30772f:0x74,_0xe6fec4:0xa5},_0xd00e74={_0x2d68a4:0x7c,_0x2cd3f4:0x70},_0x4270e3=_0x446ecb;let _0xa91c13,_0x5ec09a,_0x1e263f,_0x328b73;function _0x4afb3d(_0x37154e){if(!Array['isArray'](_0x37154e))return;const _0x261e95=_0x37154e[0x0]||0x0,_0x17dc07=_0x37154e[0x1]||0x0;_0x261e95!==0x0&&_0x17dc07!==0x0&&(_0xa91c13===undefined?(_0xa91c13=_0x261e95,_0x5ec09a=_0x261e95,_0x1e263f=_0x17dc07,_0x328b73=_0x17dc07):(_0xa91c13=Math['min'](_0xa91c13,_0x261e95),_0x5ec09a=Math['max'](_0x5ec09a,_0x261e95),_0x1e263f=Math['min'](_0x1e263f,_0x17dc07),_0x328b73=Math['max'](_0x328b73,_0x17dc07)));}const _0x117a9a=this[_0x4270e3(0x9f)][_0x4270e3(_0x2c8bf8._0x30772f)];_0x117a9a&&_0x117a9a['forEach'](_0x855277=>{const _0x58d17e=_0x4270e3;_0x855277[_0x58d17e(_0xd00e74._0x2d68a4)]&&_0x855277[_0x58d17e(0x7c)][_0x58d17e(_0xd00e74._0x2cd3f4)](_0x3c8202=>{const _0x127470=_0x58d17e;if(_0x3c8202['value'])_0x4afb3d(_0x3c8202[_0x127470(0xac)]);else _0x3c8202[_0x127470(0x78)]&&_0x3c8202[_0x127470(0x78)]['forEach'](_0x467326=>{_0x4afb3d(_0x467326);});});});if(_0xa91c13===0x0&&_0x1e263f===0x0&&_0x5ec09a===0x0&&_0x328b73===0x0)return null;return _0x4e9b3a!==null&&_0x4e9b3a!==void 0x0&&_0x4e9b3a['isFormat']?{'xmin':_0xa91c13,'xmax':_0x5ec09a,'ymin':_0x1e263f,'ymax':_0x328b73}:Cesium['Rectangle'][_0x4270e3(_0x2c8bf8._0xe6fec4)](_0xa91c13,_0x1e263f,_0x5ec09a,_0x328b73);}['on'](_0x34483e,_0x2e4e20,_0x14f0fa){return this['_echartsInstance']['on'](_0x34483e,_0x2e4e20,_0x14f0fa||this),this;}[_0x446ecb(0xa9)](_0x5bab0d,_0x5b5d73,_0x2f4dd5,_0x13d9f1){return this['_echartsInstance']['on'](_0x5bab0d,_0x5b5d73,_0x2f4dd5,_0x13d9f1||this),this;}['off'](_0x254204,_0x49d92a,_0xea8f27){return this['_echartsInstance']['off'](_0x254204,_0x49d92a,_0xea8f27||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x446ecb(0x8d)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x446ecb(0x70)](function(_0xe31b5b){const _0x17ff45={_0x56e9c9:0xad},_0x4c28e6=_0x446ecb;if(_0xe31b5b!=='default'&&!exports[_0x4c28e6(_0x17ff45._0x56e9c9)](_0xe31b5b))Object['defineProperty'](exports,_0xe31b5b,{'enumerable':!![],'get':function(){return echarts[_0xe31b5b];}});}),Object[_0x446ecb(0x9c)](exports,'__esModule',{'value':!![]});
'use strict';const _0x1e1b08=_0x5ab3;(function(_0x2cd464,_0x5093a0){const _0x31fdd6={_0x3f862c:0x145,_0x3f8b1a:0x147,_0x8aa4f1:0x162,_0x21e409:0x169,_0x1ee63c:0x15f,_0x25c496:0x137},_0x37ef2b=_0x5ab3,_0x234251=_0x2cd464();while(!![]){try{const _0x2b7d7c=parseInt(_0x37ef2b(_0x31fdd6._0x3f862c))/0x1*(parseInt(_0x37ef2b(0x152))/0x2)+-parseInt(_0x37ef2b(0x166))/0x3*(parseInt(_0x37ef2b(_0x31fdd6._0x3f8b1a))/0x4)+parseInt(_0x37ef2b(0x163))/0x5+-parseInt(_0x37ef2b(_0x31fdd6._0x8aa4f1))/0x6+parseInt(_0x37ef2b(0x160))/0x7+parseInt(_0x37ef2b(_0x31fdd6._0x21e409))/0x8*(-parseInt(_0x37ef2b(_0x31fdd6._0x1ee63c))/0x9)+-parseInt(_0x37ef2b(0x149))/0xa*(-parseInt(_0x37ef2b(_0x31fdd6._0x25c496))/0xb);if(_0x2b7d7c===_0x5093a0)break;else _0x234251['push'](_0x234251['shift']());}catch(_0x1d36a9){_0x234251['push'](_0x234251['shift']());}}}(_0x40f7,0x6a441));function _interopNamespace(_0x22dc01){const _0x5cb447=_0x5ab3;if(_0x22dc01&&_0x22dc01['__esModule'])return _0x22dc01;var _0x1b72f4=Object[_0x5cb447(0x12f)](null);return _0x22dc01&&Object[_0x5cb447(0x157)](_0x22dc01)[_0x5cb447(0x144)](function(_0x400869){if(_0x400869!=='default'){var _0x1e49c7=Object['getOwnPropertyDescriptor'](_0x22dc01,_0x400869);Object['defineProperty'](_0x1b72f4,_0x400869,_0x1e49c7['get']?_0x1e49c7:{'enumerable':!![],'get':function(){return _0x22dc01[_0x400869];}});}}),_0x1b72f4['default']=_0x22dc01,_0x1b72f4;}function _0x40f7(){const _0x55b5ee=['isFormat','8136tusSYo','_showHook','width','237352dtsVXj','pointerEvents','defineProperty','style','zIndex','create','top','layer','setMapOffset','max','scene','_createChartOverlay','value','22oBznaX','__esModule','echartsDepthTest','echarts','registerCoordinateSystem','isPointVisible','getRectangle','_echartsInstance','hidden','dispatchAction','fixedHeight','graphic','coords','forEach','22969lUlspr','data','1276tdNKjO','positionWC','5884570oQBECL','EchartsLayer','clientWidth','registerAction','postRender','isArray','_echartsContainer','absolute','options','10aoenEI','Cartographic','_map','getZr','init','keys','left','register','_mars3d_scene','matrix','_mountedHook','SCENE3D','_api','9NyywAx','529746JvnBWQ','none','2644050gMUYcD','2016500HnEDlD','_mapOffset'];_0x40f7=function(){return _0x55b5ee;};return _0x40f7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x34bfcd,_0x5d1cd2){const _0x48add7={_0x43e4c3:0x164},_0x199ac1=_0x5ab3;this['_mars3d_scene']=_0x34bfcd,this['dimensions']=['lng','lat'],this[_0x199ac1(_0x48add7._0x43e4c3)]=[0x0,0x0],this['_api']=_0x5d1cd2;}[_0x1e1b08(0x132)](_0x229eab){this['_mapOffset']=_0x229eab;}['getBMap'](){const _0x167cda={_0x265046:0x15a},_0x33555b=_0x1e1b08;return this[_0x33555b(_0x167cda._0x265046)];}['dataToPoint'](_0x4cb80b){const _0xf5b5={_0x51fc73:0x153,_0x47b2c6:0x148,_0x46e0f5:0x13c},_0x4c3def=_0x1e1b08,_0x378b81=this['_mars3d_scene'],_0x58575b=[NaN,NaN];let _0x1dd08f=_0x378b81['echartsFixedHeight'];_0x378b81['echartsAutoHeight']&&(_0x1dd08f=_0x378b81['globe']['getHeight'](Cesium$1[_0x4c3def(_0xf5b5._0x51fc73)]['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1])));const _0x3f11db=Cesium$1['Cartesian3']['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1],_0x1dd08f);if(!_0x3f11db)return _0x58575b;const _0x47026c=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x378b81,_0x3f11db);if(!_0x47026c)return _0x58575b;if(_0x378b81['echartsDepthTest']&&_0x378b81['mode']===Cesium$1['SceneMode'][_0x4c3def(0x15d)]){const _0x53fd4f=new Cesium$1['EllipsoidalOccluder'](_0x378b81['globe']['ellipsoid'],_0x378b81['camera'][_0x4c3def(_0xf5b5._0x47b2c6)]),_0x15f5e6=_0x53fd4f[_0x4c3def(_0xf5b5._0x46e0f5)](_0x3f11db);if(!_0x15f5e6)return _0x58575b;}return[_0x47026c['x']-this['_mapOffset'][0x0],_0x47026c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x349dc8=_0x1e1b08,_0x25c3a0=this[_0x349dc8(0x15e)];return new echarts__namespace[(_0x349dc8(0x142))]['BoundingRect'](0x0,0x0,_0x25c3a0['getWidth'](),_0x25c3a0['getHeight']());}['getRoamTransform'](){const _0x2fdc15=_0x1e1b08;return echarts__namespace[_0x2fdc15(0x15b)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x1e1b08(0x12f)]=function(_0x5a376c,_0x4c12ab){const _0x1cae02={_0xe0a60a:0x132};let _0x1492e7;const _0x19b97e=_0x5a376c['scheduler']['ecInstance']['_mars3d_scene'];_0x5a376c['eachComponent']('mars3dMap',function(_0x3d648b){const _0x373af9=_0x5ab3,_0x59bb51=_0x4c12ab[_0x373af9(0x155)]()['painter'];if(!_0x59bb51)return;!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x3d648b['coordinateSystem']=_0x1492e7,_0x1492e7[_0x373af9(_0x1cae02._0xe0a60a)](_0x3d648b['__mapOffset']||[0x0,0x0]);}),_0x5a376c['eachSeries'](function(_0x2fc9f8){_0x2fc9f8['get']('coordinateSystem')==='mars3dMap'&&(!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x2fc9f8['coordinateSystem']=_0x1492e7);});};function _0x5ab3(_0x153b58,_0x546242){const _0x40f799=_0x40f7();return _0x5ab3=function(_0x5ab3d1,_0x1d39c9){_0x5ab3d1=_0x5ab3d1-0x12b;let _0x167b9a=_0x40f799[_0x5ab3d1];return _0x167b9a;},_0x5ab3(_0x153b58,_0x546242);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x1e1b08(0x156)])echarts__namespace[_0x1e1b08(0x13b)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1e1b08(0x14c)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x46ac3a,_0x436e39){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3d0c08,_0xe77377){const _0x431760={_0x7f69a7:0x134},_0xca6fd3=_0x1e1b08;this['api']=_0xe77377,this['scene']=_0x3d0c08['scheduler']['ecInstance'][_0xca6fd3(0x15a)],this[_0xca6fd3(_0x431760._0x7f69a7)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x6ebdd9,_0x72f46){const _0x18fa21=_0x1e1b08;this['api'][_0x18fa21(0x140)]({'type':'mars3dMapRoam'});},'render':function(_0x4dc91c,_0x5da845,_0x41405f){},'dispose':function(_0x1497f7){const _0x3dc4a0={_0x512681:0x14d},_0x4f52d4=_0x1e1b08;this['scene'][_0x4f52d4(_0x3dc4a0._0x512681)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1e1b08(0x131)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x2139f2={}){const _0xcc7d23={_0x4ea2ec:0x151},_0x1e94d3=_0x1e1b08;super(_0x2139f2),this['_pointerEvents']=this[_0x1e94d3(_0xcc7d23._0x4ea2ec)][_0x1e94d3(0x12b)];}get[_0x1e1b08(0x131)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x4c0c4d){const _0x543c37=_0x1e1b08;this['_pointerEvents']=_0x4c0c4d,this['_echartsContainer']&&(_0x4c0c4d?this[_0x543c37(0x14f)]['style'][_0x543c37(0x12b)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x59ec7b,_0x29a713){this['setEchartsOption'](_0x59ec7b);}[_0x1e1b08(0x167)](_0x5eaccc){const _0x404cc7={_0x1e8a70:0x14f},_0x35663b=_0x1e1b08;_0x5eaccc?this[_0x35663b(_0x404cc7._0x1e8a70)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0x35663b(0x13f);}[_0x1e1b08(0x15c)](){const _0x3c6932={_0x1fc98c:0x139,_0x57cdbb:0x151,_0x43e72a:0x134,_0x188d3e:0x141},_0x108b1c=_0x1e1b08;this['_map']['scene'][_0x108b1c(_0x3c6932._0x1fc98c)]=this[_0x108b1c(_0x3c6932._0x57cdbb)]['depthTest']??!![],this['_map'][_0x108b1c(_0x3c6932._0x43e72a)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x108b1c(0x151)][_0x108b1c(_0x3c6932._0x188d3e)]??0x0;}['_addedHook'](){const _0x1f56e8={_0x28659e:0x154},_0x4c089a=_0x1e1b08;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x4c089a(_0x1f56e8._0x28659e)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x59eeac={_0x46b6d4:0x14f},_0xae705b=_0x1e1b08;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0xae705b(0x13e)]['dispose'](),delete this['_echartsInstance']),this[_0xae705b(_0x59eeac._0x46b6d4)]&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x1e1b08(0x135)](){const _0x4e8d7b={_0x4d0e6d:0x12f,_0x1a7f4b:0x12d,_0x541170:0x158,_0x48230f:0x12d,_0x4100b3:0x14b,_0x36d17e:0x12b,_0xdf3dbd:0x161,_0x1235ba:0x12e},_0x374ddd=_0x1e1b08,_0x1de7e7=mars3d__namespace['DomUtil'][_0x374ddd(_0x4e8d7b._0x4d0e6d)]('div','mars3d-echarts',this['_map']['container']);return _0x1de7e7['id']=this['id'],_0x1de7e7['style']['position']=_0x374ddd(0x150),_0x1de7e7[_0x374ddd(_0x4e8d7b._0x1a7f4b)][_0x374ddd(0x130)]='0px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x541170)]='0px',_0x1de7e7[_0x374ddd(_0x4e8d7b._0x48230f)]['width']=this['_map'][_0x374ddd(0x134)]['canvas'][_0x374ddd(_0x4e8d7b._0x4100b3)]+'px',_0x1de7e7[_0x374ddd(0x12d)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x36d17e)]=this['_pointerEvents']?'all':_0x374ddd(_0x4e8d7b._0xdf3dbd),_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x1235ba)]=this['options']['zIndex']??0x9,_0x1de7e7;}['resize'](){const _0x5b52cb={_0x519dbf:0x14f,_0x5568d5:0x168},_0x2d973b=_0x1e1b08;if(!this[_0x2d973b(0x13e)])return;this[_0x2d973b(_0x5b52cb._0x519dbf)]['style'][_0x2d973b(_0x5b52cb._0x5568d5)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this[_0x2d973b(0x154)]['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x549e82,_0x44fd80,_0x2b70c1){const _0xa62669=_0x1e1b08;this[_0xa62669(0x13e)]&&(_0x549e82['mars3dMap']=_0x549e82['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x549e82,_0x44fd80,_0x2b70c1));}[_0x1e1b08(0x13d)](_0x4390cf){const _0x37058d={_0x57e932:0x165},_0x127506={_0x12840c:0x146},_0x14fa8d={_0x18a60f:0x136,_0xaa240c:0x144},_0x24d335={_0x1a61b9:0x14e,_0x2f9d91:0x133},_0x1e1670=_0x1e1b08;let _0x164a88,_0x5c5d34,_0x578aaa,_0x4ac6b4;function _0x4fc794(_0x3724b1){const _0x4a6eef=_0x5ab3;if(!Array[_0x4a6eef(_0x24d335._0x1a61b9)](_0x3724b1))return;const _0x37264e=_0x3724b1[0x0]||0x0,_0x48b00f=_0x3724b1[0x1]||0x0;_0x37264e!==0x0&&_0x48b00f!==0x0&&(_0x164a88===undefined?(_0x164a88=_0x37264e,_0x5c5d34=_0x37264e,_0x578aaa=_0x48b00f,_0x4ac6b4=_0x48b00f):(_0x164a88=Math['min'](_0x164a88,_0x37264e),_0x5c5d34=Math[_0x4a6eef(_0x24d335._0x2f9d91)](_0x5c5d34,_0x37264e),_0x578aaa=Math['min'](_0x578aaa,_0x48b00f),_0x4ac6b4=Math[_0x4a6eef(0x133)](_0x4ac6b4,_0x48b00f)));}const _0x1960c2=this['options']['series'];_0x1960c2&&_0x1960c2['forEach'](_0x4532fd=>{const _0x33f159=_0x5ab3;_0x4532fd[_0x33f159(_0x127506._0x12840c)]&&_0x4532fd[_0x33f159(_0x127506._0x12840c)]['forEach'](_0x413e34=>{const _0x2f28ff=_0x33f159;if(_0x413e34['value'])_0x4fc794(_0x413e34[_0x2f28ff(_0x14fa8d._0x18a60f)]);else _0x413e34['coords']&&_0x413e34[_0x2f28ff(0x143)][_0x2f28ff(_0x14fa8d._0xaa240c)](_0x506c21=>{_0x4fc794(_0x506c21);});});});if(_0x164a88===0x0&&_0x578aaa===0x0&&_0x5c5d34===0x0&&_0x4ac6b4===0x0)return null;return _0x4390cf!==null&&_0x4390cf!==void 0x0&&_0x4390cf[_0x1e1670(_0x37058d._0x57e932)]?{'xmin':_0x164a88,'xmax':_0x5c5d34,'ymin':_0x578aaa,'ymax':_0x4ac6b4}:Cesium['Rectangle']['fromDegrees'](_0x164a88,_0x578aaa,_0x5c5d34,_0x4ac6b4);}['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8){return this['_echartsInstance']['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8||this),this;}['onByQuery'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c){return this['_echartsInstance']['on'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c||this),this;}['off'](_0x56158f,_0x416d84,_0x282507){const _0x1a0ed7=_0x1e1b08;return this[_0x1a0ed7(0x13e)]['off'](_0x56158f,_0x416d84,_0x282507||this),this;}}mars3d__namespace['LayerUtil'][_0x1e1b08(0x159)]('echarts',EchartsLayer),mars3d__namespace[_0x1e1b08(0x131)]['EchartsLayer']=EchartsLayer,mars3d__namespace[_0x1e1b08(0x13a)]=echarts__namespace,exports[_0x1e1b08(0x14a)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x141def){if(_0x141def!=='default'&&!exports['hasOwnProperty'](_0x141def))Object['defineProperty'](exports,_0x141def,{'enumerable':!![],'get':function(){return echarts[_0x141def];}});}),Object[_0x1e1b08(0x12c)](exports,_0x1e1b08(0x138),{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.5.12",
"version": "3.5.13",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.5.12"
"mars3d": "~3.5.13"
},

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