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.7 to 3.5.8

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.5.7
* 编译日期:2023-05-16 21:07:15
* 版本信息:v3.5.8
* 编译日期:2023-05-23 18:08:11
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x5b5995=_0x1c5e;(function(_0x27e587,_0x171ce6){const _0x752c36={_0x3eb858:0x1e1,_0x1699b9:0x1ce,_0x67cb1:0x1c0,_0x55755b:0x1c8,_0x182765:0x1e3,_0xc5dc77:0x1cf},_0x312195=_0x1c5e,_0x3a283f=_0x27e587();while(!![]){try{const _0x1a613b=parseInt(_0x312195(0x1c3))/0x1+parseInt(_0x312195(_0x752c36._0x3eb858))/0x2*(-parseInt(_0x312195(_0x752c36._0x1699b9))/0x3)+-parseInt(_0x312195(_0x752c36._0x67cb1))/0x4*(parseInt(_0x312195(_0x752c36._0x55755b))/0x5)+-parseInt(_0x312195(0x1c5))/0x6*(parseInt(_0x312195(0x1d5))/0x7)+-parseInt(_0x312195(0x1a7))/0x8+-parseInt(_0x312195(_0x752c36._0x182765))/0x9+parseInt(_0x312195(_0x752c36._0xc5dc77))/0xa;if(_0x1a613b===_0x171ce6)break;else _0x3a283f['push'](_0x3a283f['shift']());}catch(_0x39c7ef){_0x3a283f['push'](_0x3a283f['shift']());}}}(_0x5879,0x5dd13));function _0x5879(){const _0x11c065=['echartsDepthTest','keys','layer','dimensions','Rectangle','get','hasOwnProperty','_createChartOverlay','none','canvas','moveHandler','EchartsLayer','fromDegrees','__esModule','scene','globe','api','echartsFixedHeight','请引入\x20echarts\x20库\x20','_showHook','setOption','106028mZiyuI','eachComponent','painter','111611eTooSi','_api','60ecutNn','BaseLayer','0px','55sSSwkW','setEchartsOption','camera','_mountedHook','default','getHeight','3NCXVNF','19744510OgpuAz','_echartsInstance','mars3dMapRoam','_map','_echartsContainer','pointerEvents','50603FfmFwU','min','width','mars3dMap','visibility','zIndex','register','container','_removedHook','removeChild','matrix','coordinateSystem','1210678CizxTS','clientWidth','6260139sTrfXq','_pointerEvents','isPointVisible','style','off','getRoamTransform','getBMap','options','setMapOffset','296080tSavHK','_mars3d_scene','clientHeight','scheduler'];_0x5879=function(){return _0x11c065;};return _0x5879();}function _0x1c5e(_0x158c02,_0x4345ac){const _0x587957=_0x5879();return _0x1c5e=function(_0x1c5ef1,_0x2d98e8){_0x1c5ef1=_0x1c5ef1-0x1a5;let _0x3189de=_0x587957[_0x1c5ef1];return _0x3189de;},_0x1c5e(_0x158c02,_0x4345ac);}function _interopNamespace(_0x53791b){const _0x2aa771={_0x3ff325:0x1ac},_0x3ecccd=_0x1c5e;if(_0x53791b&&_0x53791b[_0x3ecccd(0x1b8)])return _0x53791b;var _0x33525d=Object['create'](null);return _0x53791b&&Object[_0x3ecccd(_0x2aa771._0x3ff325)](_0x53791b)['forEach'](function(_0x3b050c){if(_0x3b050c!=='default'){var _0xdb926a=Object['getOwnPropertyDescriptor'](_0x53791b,_0x3b050c);Object['defineProperty'](_0x33525d,_0x3b050c,_0xdb926a['get']?_0xdb926a:{'enumerable':!![],'get':function(){return _0x53791b[_0x3b050c];}});}}),_0x33525d['default']=_0x53791b,_0x33525d;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x4ea2e0,_0x563593){const _0x19533f={_0x2ef07b:0x1c4},_0x1d7bef=_0x1c5e;this['_mars3d_scene']=_0x4ea2e0,this[_0x1d7bef(0x1ae)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0x1d7bef(_0x19533f._0x2ef07b)]=_0x563593;}['setMapOffset'](_0x38ce7c){this['_mapOffset']=_0x38ce7c;}[_0x5b5995(0x1e9)](){return this['_mars3d_scene'];}['dataToPoint'](_0xc76b5c){const _0x14a093={_0x2cbbdd:0x1bc,_0x2745d1:0x1b7,_0xd528e9:0x1ab,_0x3a9c09:0x1ca},_0x547f9d=_0x5b5995,_0x3b38b1=this['_mars3d_scene'],_0x2a6af2=[NaN,NaN];let _0x2f97d8=_0x3b38b1[_0x547f9d(_0x14a093._0x2cbbdd)];_0x3b38b1['echartsAutoHeight']&&(_0x2f97d8=_0x3b38b1['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0xc76b5c[0x0],_0xc76b5c[0x1])));const _0x44591f=Cesium$1['Cartesian3'][_0x547f9d(_0x14a093._0x2745d1)](_0xc76b5c[0x0],_0xc76b5c[0x1],_0x2f97d8);if(!_0x44591f)return _0x2a6af2;const _0x218d77=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x3b38b1,_0x44591f);if(!_0x218d77)return _0x2a6af2;if(_0x3b38b1[_0x547f9d(_0x14a093._0xd528e9)]&&_0x3b38b1['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x468a8a=new Cesium$1['EllipsoidalOccluder'](_0x3b38b1[_0x547f9d(0x1ba)]['ellipsoid'],_0x3b38b1[_0x547f9d(_0x14a093._0x3a9c09)]['positionWC']),_0x221565=_0x468a8a[_0x547f9d(0x1e5)](_0x44591f);if(!_0x221565)return _0x2a6af2;}return[_0x218d77['x']-this['_mapOffset'][0x0],_0x218d77['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2a08c3={_0x45ecad:0x1cd},_0x36f843=_0x5b5995,_0x13ccff=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x13ccff['getWidth'](),_0x13ccff[_0x36f843(_0x2a08c3._0x45ecad)]());}[_0x5b5995(0x1e8)](){const _0x47502d=_0x5b5995;return echarts__namespace[_0x47502d(0x1df)]['create']();}}CompositeCoordinateSystem[_0x5b5995(0x1ae)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x287938,_0x620e5c){const _0x50f50d={_0x20d129:0x1aa,_0x51bd76:0x1a8},_0x306fbe={_0x513660:0x1e0},_0x4251e4=_0x5b5995;let _0x588133;const _0x3d7457=_0x287938[_0x4251e4(_0x50f50d._0x20d129)]['ecInstance'][_0x4251e4(_0x50f50d._0x51bd76)];_0x287938[_0x4251e4(0x1c1)]('mars3dMap',function(_0x56f3ab){const _0x3b2b0d=_0x4251e4,_0x434c90=_0x620e5c['getZr']()[_0x3b2b0d(0x1c2)];if(!_0x434c90)return;!_0x588133&&(_0x588133=new CompositeCoordinateSystem(_0x3d7457,_0x620e5c)),_0x56f3ab['coordinateSystem']=_0x588133,_0x588133[_0x3b2b0d(0x1a6)](_0x56f3ab['__mapOffset']||[0x0,0x0]);}),_0x287938['eachSeries'](function(_0x585332){const _0x35fb90=_0x4251e4;_0x585332[_0x35fb90(0x1b0)]('coordinateSystem')==='mars3dMap'&&(!_0x588133&&(_0x588133=new CompositeCoordinateSystem(_0x3d7457,_0x620e5c)),_0x585332[_0x35fb90(_0x306fbe._0x513660)]=_0x588133);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x5b5995(0x1d1),'update':'updateLayout'},function(_0x35d3b5,_0x54e786){}),echarts__namespace['extendComponentModel']({'type':_0x5b5995(0x1d8),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x512253,_0x4ac9d3){const _0x28e985={_0x430ab5:0x1bb},_0x500179=_0x5b5995;this[_0x500179(_0x28e985._0x430ab5)]=_0x4ac9d3,this['scene']=_0x512253['scheduler']['ecInstance'][_0x500179(0x1a8)],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x2f37f0,_0x35b85f){const _0x39de98={_0x3ef3d4:0x1d1},_0x4bd097=_0x5b5995;this['api']['dispatchAction']({'type':_0x4bd097(_0x39de98._0x3ef3d4)});},'render':function(_0x49d510,_0x3dd009,_0x3c9492){},'dispose':function(_0x2d0d56){const _0x302481=_0x5b5995;this['scene']['postRender']['removeEventListener'](this[_0x302481(0x1b5)],this);}});else throw new Error(_0x5b5995(0x1bd));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x5b5995(0x1c6)];class EchartsLayer extends BaseLayer{constructor(_0x3683b7={}){const _0x220dc1=_0x5b5995;super(_0x3683b7),this['_pointerEvents']=this['options'][_0x220dc1(0x1d4)];}get[_0x5b5995(0x1ad)](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x6fcb24={_0x4152b5:0x1e4},_0x392e7b=_0x5b5995;return this[_0x392e7b(_0x6fcb24._0x4152b5)];}set[_0x5b5995(0x1d4)](_0x1e6cc6){const _0x447a67={_0x59cfde:0x1d3},_0x335b2a=_0x5b5995;this['_pointerEvents']=_0x1e6cc6,this[_0x335b2a(_0x447a67._0x59cfde)]&&(_0x1e6cc6?this[_0x335b2a(0x1d3)]['style']['pointerEvents']='all':this[_0x335b2a(0x1d3)][_0x335b2a(0x1e6)][_0x335b2a(0x1d4)]='none');}['_setOptionsHook'](_0x21f1c6,_0x256be0){const _0x5d1060=_0x5b5995;this[_0x5d1060(0x1c9)](_0x21f1c6);}[_0x5b5995(0x1be)](_0x1b24b2){const _0x455fdf={_0x13ede2:0x1e6},_0x6c6bc2=_0x5b5995;_0x1b24b2?this['_echartsContainer'][_0x6c6bc2(_0x455fdf._0x13ede2)][_0x6c6bc2(0x1d9)]='visible':this['_echartsContainer']['style']['visibility']='hidden';}[_0x5b5995(0x1cb)](){const _0xee006e={_0x4fcce0:0x1bc,_0x3691bb:0x1a5},_0x3df653=_0x5b5995;this[_0x3df653(0x1d2)][_0x3df653(0x1b9)]['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene'][_0x3df653(_0xee006e._0x4fcce0)]=this[_0x3df653(_0xee006e._0x3691bb)]['fixedHeight']??0x0;}['_addedHook'](){const _0x129987={_0x28408e:0x1b2},_0xafc8cd=_0x5b5995;this['_echartsContainer']=this[_0xafc8cd(_0x129987._0x28408e)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this[_0xafc8cd(0x1a5)]);}[_0x5b5995(0x1dd)](){const _0xa374c9={_0x5f3b6e:0x1d0,_0x2a5421:0x1dc,_0x28ec46:0x1d3},_0x4cf6b1=_0x5b5995;this[_0x4cf6b1(_0xa374c9._0x5f3b6e)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4cf6b1(_0xa374c9._0x2a5421)][_0x4cf6b1(0x1de)](this[_0x4cf6b1(_0xa374c9._0x28ec46)]),delete this['_echartsContainer']);}[_0x5b5995(0x1b2)](){const _0xc4eca1={_0xa32406:0x1e6,_0x489733:0x1c7,_0x385f14:0x1b4,_0x1831fc:0x1d4,_0x51dcca:0x1b3},_0x1ff6f6=_0x5b5995,_0x674717=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x674717['id']=this['id'],_0x674717[_0x1ff6f6(_0xc4eca1._0xa32406)]['position']='absolute',_0x674717[_0x1ff6f6(0x1e6)]['top']=_0x1ff6f6(_0xc4eca1._0x489733),_0x674717['style']['left']='0px',_0x674717['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x674717['style']['height']=this['_map'][_0x1ff6f6(0x1b9)][_0x1ff6f6(_0xc4eca1._0x385f14)]['clientHeight']+'px',_0x674717[_0x1ff6f6(_0xc4eca1._0xa32406)][_0x1ff6f6(_0xc4eca1._0x1831fc)]=this['_pointerEvents']?'all':_0x1ff6f6(_0xc4eca1._0x51dcca),_0x674717['style']['zIndex']=this['options'][_0x1ff6f6(0x1da)]??0x9,_0x674717;}['resize'](){const _0x213efe={_0x573485:0x1d2,_0x17ccde:0x1b9,_0x56f0db:0x1b4},_0x309223=_0x5b5995;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x309223(0x1d7)]=this[_0x309223(_0x213efe._0x573485)][_0x309223(_0x213efe._0x17ccde)][_0x309223(_0x213efe._0x56f0db)][_0x309223(0x1e2)]+'px',this[_0x309223(0x1d3)]['style']['height']=this['_map']['scene'][_0x309223(0x1b4)][_0x309223(0x1a9)]+'px',this['_echartsInstance']['resize']();}[_0x5b5995(0x1c9)](_0x3e03f8,_0x565343,_0x50afd5){const _0x1a59c1={_0x59a09d:0x1bf},_0x3dd133=_0x5b5995;this['_echartsInstance']&&(_0x3e03f8['mars3dMap']=_0x3e03f8['mars3dMap']||{},this['_echartsInstance'][_0x3dd133(_0x1a59c1._0x59a09d)](_0x3e03f8,_0x565343,_0x50afd5));}['getRectangle'](_0x105ff5){const _0x4d0464={_0x12fa5a:0x1d6},_0x28d836=_0x5b5995;let _0x5945b6,_0x5e1164,_0x301936,_0x55612b;function _0x16b36e(_0x5d9fe3){const _0x18a2d3=_0x1c5e;if(!Array['isArray'](_0x5d9fe3))return;const _0x53ca52=_0x5d9fe3[0x0]||0x0,_0x22a810=_0x5d9fe3[0x1]||0x0;_0x53ca52!==0x0&&_0x22a810!==0x0&&(_0x5945b6===undefined?(_0x5945b6=_0x53ca52,_0x5e1164=_0x53ca52,_0x301936=_0x22a810,_0x55612b=_0x22a810):(_0x5945b6=Math[_0x18a2d3(_0x4d0464._0x12fa5a)](_0x5945b6,_0x53ca52),_0x5e1164=Math['max'](_0x5e1164,_0x53ca52),_0x301936=Math[_0x18a2d3(0x1d6)](_0x301936,_0x22a810),_0x55612b=Math['max'](_0x55612b,_0x22a810)));}const _0x14e261=this['options']['series'];_0x14e261&&_0x14e261['forEach'](_0x2f44bc=>{_0x2f44bc['data']&&_0x2f44bc['data']['forEach'](_0x2a8147=>{if(_0x2a8147['value'])_0x16b36e(_0x2a8147['value']);else _0x2a8147['coords']&&_0x2a8147['coords']['forEach'](_0x193e1b=>{_0x16b36e(_0x193e1b);});});});if(_0x5945b6===0x0&&_0x301936===0x0&&_0x5e1164===0x0&&_0x55612b===0x0)return null;return _0x105ff5!==null&&_0x105ff5!==void 0x0&&_0x105ff5['isFormat']?{'xmin':_0x5945b6,'xmax':_0x5e1164,'ymin':_0x301936,'ymax':_0x55612b}:Cesium[_0x28d836(0x1af)][_0x28d836(0x1b7)](_0x5945b6,_0x301936,_0x5e1164,_0x55612b);}['on'](_0x3f3a85,_0x4eeda0,_0x161c95){return this['_echartsInstance']['on'](_0x3f3a85,_0x4eeda0,_0x161c95||this),this;}['onByQuery'](_0x59dcb8,_0x46a002,_0x16d9b1,_0x37ddc0){const _0x5a8ab8={_0x10b1f2:0x1d0},_0x2eea11=_0x5b5995;return this[_0x2eea11(_0x5a8ab8._0x10b1f2)]['on'](_0x59dcb8,_0x46a002,_0x16d9b1,_0x37ddc0||this),this;}[_0x5b5995(0x1e7)](_0x40aac6,_0x437fce,_0x598e81){return this['_echartsInstance']['off'](_0x40aac6,_0x437fce,_0x598e81||this),this;}}mars3d__namespace['LayerUtil'][_0x5b5995(0x1db)]('echarts',EchartsLayer),mars3d__namespace[_0x5b5995(0x1ad)][_0x5b5995(0x1b6)]=EchartsLayer,exports[_0x5b5995(0x1b6)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x2d71d7){const _0x453229={_0x215701:0x1b1},_0x2c0f2e=_0x5b5995;if(_0x2d71d7!==_0x2c0f2e(0x1cc)&&!exports[_0x2c0f2e(_0x453229._0x215701)](_0x2d71d7))Object['defineProperty'](exports,_0x2d71d7,{'enumerable':!![],'get':function(){return echarts[_0x2d71d7];}});}),Object['defineProperty'](exports,_0x5b5995(0x1b8),{'value':!![]});
'use strict';const _0x189cf5=_0x4f75;(function(_0x1c143d,_0x13db28){const _0x435a6c={_0x36412f:0x192,_0x5401c7:0x158,_0x12ecf9:0x157,_0x339d67:0x15c,_0x29a34f:0x182,_0x4fd930:0x152},_0x5dfdae=_0x4f75,_0xa62e12=_0x1c143d();while(!![]){try{const _0x316787=parseInt(_0x5dfdae(_0x435a6c._0x36412f))/0x1+parseInt(_0x5dfdae(_0x435a6c._0x5401c7))/0x2+-parseInt(_0x5dfdae(_0x435a6c._0x12ecf9))/0x3+parseInt(_0x5dfdae(0x154))/0x4+parseInt(_0x5dfdae(0x18a))/0x5+-parseInt(_0x5dfdae(_0x435a6c._0x339d67))/0x6*(-parseInt(_0x5dfdae(_0x435a6c._0x29a34f))/0x7)+-parseInt(_0x5dfdae(_0x435a6c._0x4fd930))/0x8;if(_0x316787===_0x13db28)break;else _0xa62e12['push'](_0xa62e12['shift']());}catch(_0x4fef72){_0xa62e12['push'](_0xa62e12['shift']());}}}(_0x232d,0x247fd));function _interopNamespace(_0x127a0b){const _0x5db8a2={_0x3d3a6a:0x187};if(_0x127a0b&&_0x127a0b['__esModule'])return _0x127a0b;var _0x1e78f3=Object['create'](null);return _0x127a0b&&Object['keys'](_0x127a0b)['forEach'](function(_0x1f0587){const _0x30f035=_0x4f75;if(_0x1f0587!==_0x30f035(0x14f)){var _0x531d9d=Object['getOwnPropertyDescriptor'](_0x127a0b,_0x1f0587);Object[_0x30f035(0x16a)](_0x1e78f3,_0x1f0587,_0x531d9d[_0x30f035(_0x5db8a2._0x3d3a6a)]?_0x531d9d:{'enumerable':!![],'get':function(){return _0x127a0b[_0x1f0587];}});}}),_0x1e78f3['default']=_0x127a0b,_0x1e78f3;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x189cf5(0x185)];class CompositeCoordinateSystem{constructor(_0xb9dfeb,_0x47ee0c){const _0x537272={_0x41d9e7:0x175},_0x1b335c=_0x189cf5;this[_0x1b335c(0x186)]=_0xb9dfeb,this['dimensions']=[_0x1b335c(0x169),_0x1b335c(0x184)],this[_0x1b335c(_0x537272._0x41d9e7)]=[0x0,0x0],this['_api']=_0x47ee0c;}['setMapOffset'](_0x4bfad1){this['_mapOffset']=_0x4bfad1;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x427fe5){const _0x18179f={_0x338d85:0x186,_0x4397f8:0x15e,_0x31dade:0x167,_0x1cee69:0x17a,_0x5ab503:0x16c,_0x5e8b9b:0x175},_0x289807=_0x189cf5,_0x76c0a1=this[_0x289807(_0x18179f._0x338d85)],_0x455ff2=[NaN,NaN];let _0x17df07=_0x76c0a1['echartsFixedHeight'];_0x76c0a1['echartsAutoHeight']&&(_0x17df07=_0x76c0a1[_0x289807(_0x18179f._0x4397f8)]['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x427fe5[0x0],_0x427fe5[0x1])));const _0x23a3a4=Cesium$1['Cartesian3']['fromDegrees'](_0x427fe5[0x0],_0x427fe5[0x1],_0x17df07);if(!_0x23a3a4)return _0x455ff2;const _0x442091=Cesium$1[_0x289807(_0x18179f._0x31dade)][_0x289807(_0x18179f._0x1cee69)](_0x76c0a1,_0x23a3a4);if(!_0x442091)return _0x455ff2;if(_0x76c0a1['echartsDepthTest']&&_0x76c0a1[_0x289807(0x161)]===Cesium$1['SceneMode'][_0x289807(0x15a)]){const _0x3951f0=new Cesium$1['EllipsoidalOccluder'](_0x76c0a1[_0x289807(_0x18179f._0x4397f8)]['ellipsoid'],_0x76c0a1[_0x289807(0x164)][_0x289807(_0x18179f._0x5ab503)]),_0x2ce1d9=_0x3951f0[_0x289807(0x15d)](_0x23a3a4);if(!_0x2ce1d9)return _0x455ff2;}return[_0x442091['x']-this[_0x289807(_0x18179f._0x5e8b9b)][0x0],_0x442091['y']-this[_0x289807(0x175)][0x1]];}[_0x189cf5(0x15f)](){const _0x281949={_0x1350d3:0x18f},_0x217932=_0x189cf5,_0x3d7a0e=this['_api'];return new echarts__namespace[(_0x217932(_0x281949._0x1350d3))][(_0x217932(0x179))](0x0,0x0,_0x3d7a0e['getWidth'](),_0x3d7a0e['getHeight']());}[_0x189cf5(0x17f)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x189cf5(0x14e)]=['lng','lat'],CompositeCoordinateSystem[_0x189cf5(0x172)]=function(_0x2b68b4,_0x45f1ed){const _0x22ced8=_0x189cf5;let _0x15f995;const _0x115700=_0x2b68b4['scheduler'][_0x22ced8(0x16e)]['_mars3d_scene'];_0x2b68b4[_0x22ced8(0x178)]('mars3dMap',function(_0x9dce86){const _0x35abd7=_0x22ced8,_0x128cc4=_0x45f1ed['getZr']()['painter'];if(!_0x128cc4)return;!_0x15f995&&(_0x15f995=new CompositeCoordinateSystem(_0x115700,_0x45f1ed)),_0x9dce86[_0x35abd7(0x170)]=_0x15f995,_0x15f995['setMapOffset'](_0x9dce86[_0x35abd7(0x18d)]||[0x0,0x0]);}),_0x2b68b4['eachSeries'](function(_0x451bfe){const _0x1b72b2=_0x22ced8;_0x451bfe[_0x1b72b2(0x187)](_0x1b72b2(0x170))==='mars3dMap'&&(!_0x15f995&&(_0x15f995=new CompositeCoordinateSystem(_0x115700,_0x45f1ed)),_0x451bfe['coordinateSystem']=_0x15f995);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x189cf5(0x155),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x189cf5(0x18b)},function(_0x5b7255,_0x536ed8){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x4993b9,_0x2a9cbb){const _0x5e3897=_0x189cf5;this['api']=_0x2a9cbb,this['scene']=_0x4993b9['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender'][_0x5e3897(0x190)](this['moveHandler'],this);},'moveHandler':function(_0x508f41,_0x5c3907){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2ff3f1,_0x5444c3,_0x55f093){},'dispose':function(_0x204015){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x232d(){const _0x58950d=['143514nvobka','fixedHeight','SCENE3D','resize','922722AsVgaZ','isPointVisible','globe','getViewRect','_map','mode','echartsFixedHeight','_setOptionsHook','camera','forEach','options','SceneTransforms','clientHeight','lng','defineProperty','_mountedHook','positionWC','echarts','ecInstance','_removedHook','coordinateSystem','depthTest','create','clampToGround','_echartsInstance','_mapOffset','container','__esModule','eachComponent','BoundingRect','wgs84ToWindowCoordinates','height','value','layer','pointerEvents','getRoamTransform','setEchartsOption','clientWidth','7JWRVje','register','lat','Cesium','_mars3d_scene','get','onByQuery','style','291360FdcLPB','updateLayout','none','__mapOffset','off','graphic','addEventListener','_createChartOverlay','233151kuNOmF','_pointerEvents','0px','left','dimensions','default','BaseLayer','scene','4233824VqcKHL','_echartsContainer','1050724MgAgBV','mars3dMap','dispose','302757uFAira'];_0x232d=function(){return _0x58950d;};return _0x232d();}const Cesium=mars3d__namespace[_0x189cf5(0x185)],BaseLayer=mars3d__namespace[_0x189cf5(0x17d)][_0x189cf5(0x150)];function _0x4f75(_0xf3a0f0,_0x74887d){const _0x232df2=_0x232d();return _0x4f75=function(_0x4f755f,_0x1ea34f){_0x4f755f=_0x4f755f-0x14c;let _0x2171c6=_0x232df2[_0x4f755f];return _0x2171c6;},_0x4f75(_0xf3a0f0,_0x74887d);}class EchartsLayer extends BaseLayer{constructor(_0x50431b={}){const _0x774fc9={_0xa507f:0x17e},_0x5191d2=_0x189cf5;super(_0x50431b),this[_0x5191d2(0x193)]=this['options'][_0x5191d2(_0x774fc9._0xa507f)];}get[_0x189cf5(0x17d)](){return this['_echartsInstance'];}get[_0x189cf5(0x17e)](){return this['_pointerEvents'];}set[_0x189cf5(0x17e)](_0x1bbda1){const _0x465e36={_0x3b4453:0x153,_0x5f3e81:0x17e},_0x370c1b=_0x189cf5;this['_pointerEvents']=_0x1bbda1,this['_echartsContainer']&&(_0x1bbda1?this['_echartsContainer']['style']['pointerEvents']='all':this[_0x370c1b(_0x465e36._0x3b4453)]['style'][_0x370c1b(_0x465e36._0x5f3e81)]='none');}[_0x189cf5(0x163)](_0x440af6,_0x43e21b){this['setEchartsOption'](_0x440af6);}['_showHook'](_0x5029b5){const _0x39eb97={_0x436ae8:0x189},_0x129bfd=_0x189cf5;_0x5029b5?this['_echartsContainer'][_0x129bfd(_0x39eb97._0x436ae8)]['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}[_0x189cf5(0x16b)](){const _0x512666={_0x3d7c96:0x160,_0xdb39a8:0x173,_0x5be0ec:0x162},_0x23c4a5=_0x189cf5;this['_map']['scene']['echartsDepthTest']=this['options'][_0x23c4a5(0x171)]??!![],this[_0x23c4a5(_0x512666._0x3d7c96)]['scene']['echartsAutoHeight']=this['options'][_0x23c4a5(_0x512666._0xdb39a8)]??![],this['_map']['scene'][_0x23c4a5(_0x512666._0x5be0ec)]=this['options'][_0x23c4a5(0x159)]??0x0;}['_addedHook'](){const _0xdd404b={_0x239304:0x191},_0x9f9462=_0x189cf5;this[_0x9f9462(0x153)]=this[_0x9f9462(_0xdd404b._0x239304)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x9f9462(0x151)],this[_0x9f9462(0x180)](this['options']);}[_0x189cf5(0x16f)](){const _0x39879d=_0x189cf5;this[_0x39879d(0x174)]&&(this[_0x39879d(0x174)]['clear'](),this['_echartsInstance'][_0x39879d(0x156)](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x39879d(0x176)]['removeChild'](this[_0x39879d(0x153)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xa8361e={_0x1ba0fc:0x14c,_0x30164c:0x181,_0x1d5621:0x17b,_0x53be3a:0x193},_0x1ac8bf=_0x189cf5,_0x4d3f19=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x4d3f19['id']=this['id'],_0x4d3f19['style']['position']='absolute',_0x4d3f19['style']['top']=_0x1ac8bf(_0xa8361e._0x1ba0fc),_0x4d3f19['style'][_0x1ac8bf(0x14d)]='0px',_0x4d3f19['style']['width']=this['_map']['scene']['canvas'][_0x1ac8bf(_0xa8361e._0x30164c)]+'px',_0x4d3f19['style'][_0x1ac8bf(_0xa8361e._0x1d5621)]=this[_0x1ac8bf(0x160)]['scene']['canvas'][_0x1ac8bf(0x168)]+'px',_0x4d3f19['style'][_0x1ac8bf(0x17e)]=this[_0x1ac8bf(_0xa8361e._0x53be3a)]?'all':_0x1ac8bf(0x18c),_0x4d3f19['style']['zIndex']=this[_0x1ac8bf(0x166)]['zIndex']??0x9,_0x4d3f19;}[_0x189cf5(0x15b)](){const _0x14b23d={_0xa65272:0x151,_0x2c73e0:0x174},_0x193239=_0x189cf5;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x193239(0x17b)]=this['_map'][_0x193239(_0x14b23d._0xa65272)]['canvas'][_0x193239(0x168)]+'px',this[_0x193239(_0x14b23d._0x2c73e0)]['resize']();}['setEchartsOption'](_0x2c50b4,_0x4afc1c,_0xba4914){const _0x43d848=_0x189cf5;this['_echartsInstance']&&(_0x2c50b4['mars3dMap']=_0x2c50b4[_0x43d848(0x155)]||{},this['_echartsInstance']['setOption'](_0x2c50b4,_0x4afc1c,_0xba4914));}['getRectangle'](_0x2f068f){const _0x2704ef={_0x3232c1:0x166},_0x1b3508=_0x189cf5;let _0x36151b,_0x245240,_0xfb767e,_0x5bd07b;function _0x31c387(_0x20c780){if(!Array['isArray'](_0x20c780))return;const _0xfb2cc7=_0x20c780[0x0]||0x0,_0x334242=_0x20c780[0x1]||0x0;_0xfb2cc7!==0x0&&_0x334242!==0x0&&(_0x36151b===undefined?(_0x36151b=_0xfb2cc7,_0x245240=_0xfb2cc7,_0xfb767e=_0x334242,_0x5bd07b=_0x334242):(_0x36151b=Math['min'](_0x36151b,_0xfb2cc7),_0x245240=Math['max'](_0x245240,_0xfb2cc7),_0xfb767e=Math['min'](_0xfb767e,_0x334242),_0x5bd07b=Math['max'](_0x5bd07b,_0x334242)));}const _0x1f0893=this[_0x1b3508(_0x2704ef._0x3232c1)]['series'];_0x1f0893&&_0x1f0893['forEach'](_0x57912f=>{const _0x4db041={_0x250661:0x17c,_0x41bf02:0x165};_0x57912f['data']&&_0x57912f['data']['forEach'](_0x4704cc=>{const _0x325413=_0x4f75;if(_0x4704cc[_0x325413(0x17c)])_0x31c387(_0x4704cc[_0x325413(_0x4db041._0x250661)]);else _0x4704cc['coords']&&_0x4704cc['coords'][_0x325413(_0x4db041._0x41bf02)](_0x57fe75=>{_0x31c387(_0x57fe75);});});});if(_0x36151b===0x0&&_0xfb767e===0x0&&_0x245240===0x0&&_0x5bd07b===0x0)return null;return _0x2f068f!==null&&_0x2f068f!==void 0x0&&_0x2f068f['isFormat']?{'xmin':_0x36151b,'xmax':_0x245240,'ymin':_0xfb767e,'ymax':_0x5bd07b}:Cesium['Rectangle']['fromDegrees'](_0x36151b,_0xfb767e,_0x245240,_0x5bd07b);}['on'](_0x4d47cf,_0x5e554d,_0x3771ec){return this['_echartsInstance']['on'](_0x4d47cf,_0x5e554d,_0x3771ec||this),this;}[_0x189cf5(0x188)](_0x405b4d,_0x2192f3,_0x548a09,_0x34c80b){return this['_echartsInstance']['on'](_0x405b4d,_0x2192f3,_0x548a09,_0x34c80b||this),this;}[_0x189cf5(0x18e)](_0x32ff4c,_0x53eee2,_0x2d75a9){const _0x4c21cb=_0x189cf5;return this[_0x4c21cb(0x174)][_0x4c21cb(0x18e)](_0x32ff4c,_0x53eee2,_0x2d75a9||this),this;}}mars3d__namespace['LayerUtil'][_0x189cf5(0x183)](_0x189cf5(0x16d),EchartsLayer),mars3d__namespace[_0x189cf5(0x17d)]['EchartsLayer']=EchartsLayer,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x15988f){if(_0x15988f!=='default'&&!exports['hasOwnProperty'](_0x15988f))Object['defineProperty'](exports,_0x15988f,{'enumerable':!![],'get':function(){return echarts[_0x15988f];}});}),Object['defineProperty'](exports,_0x189cf5(0x177),{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.5.7",
"version": "3.5.8",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.5.7"
"mars3d": "~3.5.8"
},

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