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.7.5 to 3.7.6

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.7.5
* 编译日期:2024-03-05 18:11:41
* 版本信息:v3.7.6
* 编译日期:2024-03-12 20:54:02
* 版权所有:Copyright by 火星科技 http://mars3d.cn

@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2024-01-15

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x539897=_0x2408;(function(_0x4c4111,_0x5beae7){const _0x157978={_0x400b96:0x1a1,_0x17cb59:0x19b,_0x1828fa:0x189,_0x2568d8:0x18b,_0x42173a:0x19a,_0x5d6d99:0x1ae,_0x3875d2:0x1a9,_0x49e435:0x179},_0x497bdf=_0x2408,_0x3c4581=_0x4c4111();while(!![]){try{const _0x32f5e5=-parseInt(_0x497bdf(_0x157978._0x400b96))/0x1+parseInt(_0x497bdf(_0x157978._0x17cb59))/0x2*(-parseInt(_0x497bdf(0x178))/0x3)+parseInt(_0x497bdf(_0x157978._0x1828fa))/0x4*(-parseInt(_0x497bdf(_0x157978._0x2568d8))/0x5)+-parseInt(_0x497bdf(_0x157978._0x42173a))/0x6+-parseInt(_0x497bdf(0x191))/0x7*(-parseInt(_0x497bdf(0x18f))/0x8)+parseInt(_0x497bdf(_0x157978._0x5d6d99))/0x9*(parseInt(_0x497bdf(_0x157978._0x3875d2))/0xa)+parseInt(_0x497bdf(_0x157978._0x49e435))/0xb;if(_0x32f5e5===_0x5beae7)break;else _0x3c4581['push'](_0x3c4581['shift']());}catch(_0x3febde){_0x3c4581['push'](_0x3c4581['shift']());}}}(_0x3e5e,0x75083));function _interopNamespace(_0x5c53c1){const _0x41ee63={_0x3a23ff:0x192},_0x260bf4={_0xad4cb0:0x171,_0x102cc1:0x1b2},_0x42ed82=_0x2408;if(_0x5c53c1&&_0x5c53c1['__esModule'])return _0x5c53c1;var _0x4dfda7=Object['create'](null);return _0x5c53c1&&Object[_0x42ed82(_0x41ee63._0x3a23ff)](_0x5c53c1)['forEach'](function(_0x4c1c0e){const _0x44dbea=_0x42ed82;if(_0x4c1c0e!==_0x44dbea(_0x260bf4._0xad4cb0)){var _0x5b8cab=Object['getOwnPropertyDescriptor'](_0x5c53c1,_0x4c1c0e);Object[_0x44dbea(_0x260bf4._0x102cc1)](_0x4dfda7,_0x4c1c0e,_0x5b8cab['get']?_0x5b8cab:{'enumerable':!![],'get':function(){return _0x5c53c1[_0x4c1c0e];}});}}),_0x4dfda7['default']=_0x5c53c1,_0x4dfda7;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x539897(0x18c)];function _0x3e5e(){const _0x2dd6a6=['position','getHeight','Rectangle','echartsAutoHeight','default','isFormat','clientWidth','removeEventListener','setEchartsOption','off','absolute','1929BJSIlE','22835659sUNiLJ','BaseLayer','get','container','init','scene','_map','resize','EchartsLayer','top','registerCoordinateSystem','create','0px','width','lng','style','667400veGrtr','layer','5HwbABO','Cesium','getAttrVal','mars3dMap','8ghtUaz','clientHeight','6067831gtPXdU','keys','_pointerEvents','_api','isPointVisible','_mars3d_scene','extendComponentModel','ecInstance','_echartsContainer','5131002spxhRD','2506TwwcLu','removeChild','left','forEach','__mapOffset','dataToPoint','800493htiBWS','painter','pointerEvents','_showHook','mars3dMapRoam','canvas','_echartsInstance','positionWC','13180JQPlfI','echartsDepthTest','SceneMode','none','coordinateSystem','1125RpuUnU','coords','clear','Cartographic','defineProperty'];_0x3e5e=function(){return _0x2dd6a6;};return _0x3e5e();}class CompositeCoordinateSystem{constructor(_0x5873a5,_0x444b73){const _0x7b17b2={_0x4d1978:0x194},_0x1225c6=_0x539897;this['_mars3d_scene']=_0x5873a5,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0x1225c6(_0x7b17b2._0x4d1978)]=_0x444b73;}['setMapOffset'](_0x3edd25){this['_mapOffset']=_0x3edd25;}['getBMap'](){return this['_mars3d_scene'];}[_0x539897(0x1a0)](_0x24e244){const _0x523dfc={_0x402d90:0x1aa,_0xc84b6c:0x1a8},_0x3acff2=_0x539897,_0x1445c9=this[_0x3acff2(0x196)],_0x361c68=[NaN,NaN];let _0x5787a7=_0x1445c9['echartsFixedHeight'];_0x1445c9['echartsAutoHeight']&&(_0x5787a7=_0x1445c9['getHeight'](Cesium$1[_0x3acff2(0x1b1)]['fromDegrees'](_0x24e244[0x0],_0x24e244[0x1])));const _0x192086=Cesium$1['Cartesian3']['fromDegrees'](_0x24e244[0x0],_0x24e244[0x1],_0x5787a7);if(!_0x192086)return _0x361c68;const _0x31b2cc=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x1445c9,_0x192086);if(!_0x31b2cc)return _0x361c68;if(_0x1445c9[_0x3acff2(_0x523dfc._0x402d90)]&&_0x1445c9['mode']===Cesium$1[_0x3acff2(0x1ab)]['SCENE3D']){const _0xaba150=new Cesium$1['EllipsoidalOccluder'](_0x1445c9['globe']['ellipsoid'],_0x1445c9['camera'][_0x3acff2(_0x523dfc._0xc84b6c)]),_0x433547=_0xaba150[_0x3acff2(0x195)](_0x192086);if(!_0x433547)return _0x361c68;}return[_0x31b2cc['x']-this['_mapOffset'][0x0],_0x31b2cc['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x28326f={_0x49e5d9:0x1b4},_0x16e99a=_0x539897,_0x53c68a=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x53c68a['getWidth'](),_0x53c68a[_0x16e99a(_0x28326f._0x49e5d9)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}function _0x2408(_0x582ef8,_0xa6d1fb){const _0x3e5e30=_0x3e5e();return _0x2408=function(_0x2408bc,_0x196fff){_0x2408bc=_0x2408bc-0x171;let _0x2ef305=_0x3e5e30[_0x2408bc];return _0x2ef305;},_0x2408(_0x582ef8,_0xa6d1fb);}CompositeCoordinateSystem['dimensions']=[_0x539897(0x187),'lat'],CompositeCoordinateSystem[_0x539897(0x184)]=function(_0x565b5a,_0x4a12f0){const _0x266115={_0x306ad0:0x1ad},_0x453299={_0x57adb7:0x1a2};let _0x1bff7b;const _0x3c65a2=_0x565b5a['scheduler']['ecInstance']['_mars3d_scene'];_0x565b5a['eachComponent']('mars3dMap',function(_0x4c7da6){const _0x1ffbb7=_0x2408,_0x1cdfa1=_0x4a12f0['getZr']()[_0x1ffbb7(_0x453299._0x57adb7)];if(!_0x1cdfa1)return;!_0x1bff7b&&(_0x1bff7b=new CompositeCoordinateSystem(_0x3c65a2,_0x4a12f0)),_0x4c7da6['coordinateSystem']=_0x1bff7b,_0x1bff7b['setMapOffset'](_0x4c7da6[_0x1ffbb7(0x19f)]||[0x0,0x0]);}),_0x565b5a['eachSeries'](function(_0x26c313){const _0x417659=_0x2408;_0x26c313[_0x417659(0x17b)](_0x417659(_0x266115._0x306ad0))==='mars3dMap'&&(!_0x1bff7b&&(_0x1bff7b=new CompositeCoordinateSystem(_0x3c65a2,_0x4a12f0)),_0x26c313[_0x417659(0x1ad)]=_0x1bff7b);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x539897(0x17d)])echarts__namespace[_0x539897(0x183)](_0x539897(0x18e),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x539897(0x1a5),'event':_0x539897(0x1a5),'update':'updateLayout'},function(_0xbd6cc9,_0x5733e1){}),echarts__namespace[_0x539897(0x197)]({'type':_0x539897(0x18e),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x39e09b,_0x48b9a6){const _0x24023e=_0x539897;this['api']=_0x48b9a6,this['scene']=_0x39e09b['scheduler'][_0x24023e(0x198)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x3aab8a,_0xfcf0d7){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2a3b9b,_0x2f3ca3,_0x8c3c24){},'dispose':function(_0x4cd0f6){const _0x2eb5e1={_0x56edf9:0x17e,_0x49d2ff:0x174},_0x53255a=_0x539897;this[_0x53255a(_0x2eb5e1._0x56edf9)]['postRender'][_0x53255a(_0x2eb5e1._0x49d2ff)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x539897(0x18c)],BaseLayer=mars3d__namespace[_0x539897(0x18a)][_0x539897(0x17a)];class EchartsLayer extends BaseLayer{constructor(_0x5705d8={}){super(_0x5705d8),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x539897(0x1a3)](_0x5f3cda){const _0x592798={_0x1dce43:0x188},_0x335267=_0x539897;this['_pointerEvents']=_0x5f3cda,this['_echartsContainer']&&(_0x5f3cda?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x335267(_0x592798._0x1dce43)][_0x335267(0x1a3)]=_0x335267(0x1ac));}['_setOptionsHook'](_0x295f2c,_0x152193){const _0x2d8800=_0x539897;this[_0x2d8800(0x175)](_0x295f2c);}[_0x539897(0x1a4)](_0x3bb917){_0x3bb917?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0xf21107={_0x48e239:0x17f,_0x199828:0x1b6},_0x443bee=_0x539897;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x443bee(_0xf21107._0x48e239)]['scene'][_0x443bee(_0xf21107._0x199828)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x49d028={_0x366fda:0x17f,_0x4a90b6:0x175},_0x2a21a9=_0x539897;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance'][_0x2a21a9(0x196)]=this[_0x2a21a9(_0x49d028._0x366fda)]['scene'],this[_0x2a21a9(_0x49d028._0x4a90b6)](this['options']);}['_removedHook'](){const _0x28ae9c={_0x171e81:0x1b0,_0x5ddc1d:0x17c,_0x3a9345:0x19c},_0x1f8bd8=_0x539897;this['_echartsInstance']&&(this['_echartsInstance'][_0x1f8bd8(_0x28ae9c._0x171e81)](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x1f8bd8(_0x28ae9c._0x5ddc1d)][_0x1f8bd8(_0x28ae9c._0x3a9345)](this[_0x1f8bd8(0x199)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x1be551={_0x45473e:0x177,_0x1ed453:0x182,_0x2ffe6f:0x185,_0x31c5d8:0x190,_0x240f5d:0x193,_0x2d5d73:0x1ac},_0x278eff=_0x539897,_0x17e885=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x17e885['id']=this['id'],_0x17e885['style'][_0x278eff(0x1b3)]=_0x278eff(_0x1be551._0x45473e),_0x17e885['style'][_0x278eff(_0x1be551._0x1ed453)]='0px',_0x17e885[_0x278eff(0x188)][_0x278eff(0x19d)]=_0x278eff(_0x1be551._0x2ffe6f),_0x17e885['style']['width']=this['_map'][_0x278eff(0x17e)]['canvas']['clientWidth']+'px',_0x17e885['style']['height']=this['_map']['scene']['canvas'][_0x278eff(_0x1be551._0x31c5d8)]+'px',_0x17e885['style']['pointerEvents']=this[_0x278eff(_0x1be551._0x240f5d)]?'all':_0x278eff(_0x1be551._0x2d5d73),_0x17e885['style']['zIndex']=this['options']['zIndex']??0x9,_0x17e885;}[_0x539897(0x180)](){const _0x32a082={_0x29c93f:0x17e,_0x30c31f:0x1a6,_0x820324:0x173,_0x483360:0x180},_0x32799d=_0x539897;if(!this['_echartsInstance'])return;this[_0x32799d(0x199)]['style'][_0x32799d(0x186)]=this['_map'][_0x32799d(_0x32a082._0x29c93f)][_0x32799d(_0x32a082._0x30c31f)][_0x32799d(_0x32a082._0x820324)]+'px',this[_0x32799d(0x199)]['style']['height']=this['_map'][_0x32799d(_0x32a082._0x29c93f)]['canvas']['clientHeight']+'px',this['_echartsInstance'][_0x32799d(_0x32a082._0x483360)]();}[_0x539897(0x175)](_0x245659,_0x49d7fe,_0x2d4fa7){const _0x4a9b2c=_0x539897;this['_echartsInstance']&&(_0x245659={'mars3dMap':{},...mars3d__namespace['Util'][_0x4a9b2c(0x18d)](_0x245659,{'onlySimpleType':!![]})},delete _0x245659['eventParent'],this['_echartsInstance']['setOption'](_0x245659,_0x49d7fe,_0x2d4fa7));}['getRectangle'](_0x3da2f3){const _0x478a1b=_0x539897;let _0x2d83da,_0xa29725,_0x5375c0,_0x3468b6;function _0x6303ca(_0x4e67c5){if(!Array['isArray'](_0x4e67c5))return;const _0x163984=_0x4e67c5[0x0]||0x0,_0x2baad9=_0x4e67c5[0x1]||0x0;_0x163984!==0x0&&_0x2baad9!==0x0&&(_0x2d83da===undefined?(_0x2d83da=_0x163984,_0xa29725=_0x163984,_0x5375c0=_0x2baad9,_0x3468b6=_0x2baad9):(_0x2d83da=Math['min'](_0x2d83da,_0x163984),_0xa29725=Math['max'](_0xa29725,_0x163984),_0x5375c0=Math['min'](_0x5375c0,_0x2baad9),_0x3468b6=Math['max'](_0x3468b6,_0x2baad9)));}const _0xcd2e09=this['options']['series'];_0xcd2e09&&_0xcd2e09['forEach'](_0x25f991=>{const _0x41ac24={_0x175622:0x1af},_0x408ae5=_0x2408;_0x25f991['data']&&_0x25f991['data'][_0x408ae5(0x19e)](_0x56ae5a=>{const _0x58ec64=_0x408ae5;if(_0x56ae5a['value'])_0x6303ca(_0x56ae5a['value']);else _0x56ae5a[_0x58ec64(_0x41ac24._0x175622)]&&_0x56ae5a['coords']['forEach'](_0x4d37fe=>{_0x6303ca(_0x4d37fe);});});});if(_0x2d83da===0x0&&_0x5375c0===0x0&&_0xa29725===0x0&&_0x3468b6===0x0)return null;return _0x3da2f3!==null&&_0x3da2f3!==void 0x0&&_0x3da2f3[_0x478a1b(0x172)]?{'xmin':_0x2d83da,'xmax':_0xa29725,'ymin':_0x5375c0,'ymax':_0x3468b6}:Cesium[_0x478a1b(0x1b5)]['fromDegrees'](_0x2d83da,_0x5375c0,_0xa29725,_0x3468b6);}['on'](_0x455aae,_0x40f7a8,_0x652839){return this['_echartsInstance']['on'](_0x455aae,_0x40f7a8,_0x652839||this),this;}['onByQuery'](_0x2d56c1,_0x24da54,_0x2f7c46,_0x148858){const _0x2f5424={_0x453663:0x1a7},_0x173884=_0x539897;return this[_0x173884(_0x2f5424._0x453663)]['on'](_0x2d56c1,_0x24da54,_0x2f7c46,_0x148858||this),this;}[_0x539897(0x176)](_0x2d5aa2,_0x83a327,_0x1a74ff){const _0x46c736=_0x539897;return this['_echartsInstance'][_0x46c736(0x176)](_0x2d5aa2,_0x83a327,_0x1a74ff||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x539897(0x181)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x539897(0x192)](echarts)[_0x539897(0x19e)](function(_0x232c6f){const _0x2a6935={_0x3ebdc3:0x1b2},_0x224e9a=_0x539897;if(_0x232c6f!=='default'&&!exports['hasOwnProperty'](_0x232c6f))Object[_0x224e9a(_0x2a6935._0x3ebdc3)](exports,_0x232c6f,{'enumerable':!![],'get':function(){return echarts[_0x232c6f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x49b2fb=_0x72b4;(function(_0x2973fa,_0x239a4e){const _0x4ae821={_0x38f5ba:0xac,_0x346206:0xa9,_0x494616:0x9c,_0x59c4a8:0x87,_0x1c22a3:0xb8,_0x355fb4:0xb9,_0x3e9963:0x85},_0x20ce35=_0x72b4,_0x1592bc=_0x2973fa();while(!![]){try{const _0x48199e=-parseInt(_0x20ce35(0xa5))/0x1+parseInt(_0x20ce35(_0x4ae821._0x38f5ba))/0x2*(-parseInt(_0x20ce35(0x90))/0x3)+parseInt(_0x20ce35(_0x4ae821._0x346206))/0x4+parseInt(_0x20ce35(_0x4ae821._0x494616))/0x5+parseInt(_0x20ce35(_0x4ae821._0x59c4a8))/0x6*(-parseInt(_0x20ce35(_0x4ae821._0x1c22a3))/0x7)+-parseInt(_0x20ce35(_0x4ae821._0x355fb4))/0x8+-parseInt(_0x20ce35(_0x4ae821._0x3e9963))/0x9*(-parseInt(_0x20ce35(0xc8))/0xa);if(_0x48199e===_0x239a4e)break;else _0x1592bc['push'](_0x1592bc['shift']());}catch(_0x1a74be){_0x1592bc['push'](_0x1592bc['shift']());}}}(_0x4f3b,0x457f6));function _interopNamespace(_0x1d7738){if(_0x1d7738&&_0x1d7738['__esModule'])return _0x1d7738;var _0xb5d938=Object['create'](null);return _0x1d7738&&Object['keys'](_0x1d7738)['forEach'](function(_0x4eb85e){if(_0x4eb85e!=='default'){var _0x13f0f3=Object['getOwnPropertyDescriptor'](_0x1d7738,_0x4eb85e);Object['defineProperty'](_0xb5d938,_0x4eb85e,_0x13f0f3['get']?_0x13f0f3:{'enumerable':!![],'get':function(){return _0x1d7738[_0x4eb85e];}});}}),_0xb5d938['default']=_0x1d7738,_0xb5d938;}function _0x72b4(_0x1e997e,_0x25dd02){const _0x4f3bcd=_0x4f3b();return _0x72b4=function(_0x72b4ee,_0xbbf3c){_0x72b4ee=_0x72b4ee-0x83;let _0x11af7c=_0x4f3bcd[_0x72b4ee];return _0x11af7c;},_0x72b4(_0x1e997e,_0x25dd02);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x426b35,_0x230103){const _0x35a056={_0x84b11d:0x95,_0xc7a246:0x91,_0x4823e5:0xc7},_0xa52380=_0x72b4;this[_0xa52380(_0x35a056._0x84b11d)]=_0x426b35,this[_0xa52380(_0x35a056._0xc7a246)]=['lng',_0xa52380(_0x35a056._0x4823e5)],this['_mapOffset']=[0x0,0x0],this[_0xa52380(0xc6)]=_0x230103;}[_0x49b2fb(0x86)](_0x2c54a8){const _0x11faed={_0x33abfd:0x8c},_0x55f362=_0x49b2fb;this[_0x55f362(_0x11faed._0x33abfd)]=_0x2c54a8;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x210997){const _0x471f94={_0x345133:0xab,_0x52183c:0xbf,_0x58c2af:0xa8,_0x5d9ecc:0x92},_0x314356=_0x49b2fb,_0x2fc3f4=this['_mars3d_scene'],_0x45bcac=[NaN,NaN];let _0x44906d=_0x2fc3f4['echartsFixedHeight'];_0x2fc3f4['echartsAutoHeight']&&(_0x44906d=_0x2fc3f4['getHeight'](Cesium$1['Cartographic'][_0x314356(0x96)](_0x210997[0x0],_0x210997[0x1])));const _0x597c47=Cesium$1[_0x314356(_0x471f94._0x345133)]['fromDegrees'](_0x210997[0x0],_0x210997[0x1],_0x44906d);if(!_0x597c47)return _0x45bcac;const _0x4846fc=Cesium$1['SceneTransforms'][_0x314356(_0x471f94._0x52183c)](_0x2fc3f4,_0x597c47);if(!_0x4846fc)return _0x45bcac;if(_0x2fc3f4['echartsDepthTest']&&_0x2fc3f4[_0x314356(_0x471f94._0x58c2af)]===Cesium$1['SceneMode']['SCENE3D']){const _0x42ae69=new Cesium$1[(_0x314356(_0x471f94._0x5d9ecc))](_0x2fc3f4[_0x314356(0xca)]['ellipsoid'],_0x2fc3f4['camera'][_0x314356(0x8b)]),_0x822ac8=_0x42ae69[_0x314356(0x83)](_0x597c47);if(!_0x822ac8)return _0x45bcac;}return[_0x4846fc['x']-this['_mapOffset'][0x0],_0x4846fc['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x15e3b9={_0x253c5d:0xa2},_0x4e133e=_0x49b2fb,_0x44f2e7=this['_api'];return new echarts__namespace[(_0x4e133e(_0x15e3b9._0x253c5d))][(_0x4e133e(0x94))](0x0,0x0,_0x44f2e7['getWidth'](),_0x44f2e7[_0x4e133e(0xbb)]());}['getRoamTransform'](){const _0x49bb8c={_0x1033aa:0x9b},_0x449235=_0x49b2fb;return echarts__namespace['matrix'][_0x449235(_0x49bb8c._0x1033aa)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x1d2147,_0x156244){const _0x461499={_0x2e6701:0xb5},_0x6c66a9={_0x534495:0xb1},_0x34a7b2=_0x49b2fb;let _0x5564a1;const _0x1f3a6d=_0x1d2147['scheduler']['ecInstance']['_mars3d_scene'];_0x1d2147[_0x34a7b2(0xb0)](_0x34a7b2(0x8e),function(_0x2a2acf){const _0x57a3d5=_0x34a7b2,_0x387579=_0x156244[_0x57a3d5(0xb7)]()['painter'];if(!_0x387579)return;!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x2a2acf[_0x57a3d5(0xb3)]=_0x5564a1,_0x5564a1['setMapOffset'](_0x2a2acf[_0x57a3d5(_0x6c66a9._0x534495)]||[0x0,0x0]);}),_0x1d2147['eachSeries'](function(_0x5af2ac){const _0x2d9106=_0x34a7b2;_0x5af2ac[_0x2d9106(_0x461499._0x2e6701)](_0x2d9106(0xb3))==='mars3dMap'&&(!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x5af2ac[_0x2d9106(0xb3)]=_0x5564a1);});};function _0x4f3b(){const _0x50afa2=['onByQuery','none','_map','create','782555gvpYEH','style','options','isArray','forEach','moveHandler','graphic','BaseLayer','setEchartsOption','169381sKltok','canvas','updateLayout','mode','2127560iMSHKZ','resize','Cartesian3','10cnsQTA','echartsAutoHeight','position','scene','eachComponent','__mapOffset','pointerEvents','coordinateSystem','echarts','get','_pointerEvents','getZr','1330rIRTqq','1852056hzsTLc','zIndex','getHeight','keys','clientWidth','_createChartOverlay','wgs84ToWindowCoordinates','width','off','scheduler','visible','layer','_addedHook','_api','lat','10SocHLq','coords','globe','isPointVisible','postRender','5244381Jpenxg','setMapOffset','5556vwwAtx','_echartsInstance','mars3dMapRoam','extendComponentModel','positionWC','_mapOffset','_echartsContainer','mars3dMap','removeChild','245772QBtmVp','dimensions','EllipsoidalOccluder','defineProperty','BoundingRect','_mars3d_scene','fromDegrees','depthTest'];_0x4f3b=function(){return _0x50afa2;};return _0x4f3b();}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x49b2fb(0x89),'update':_0x49b2fb(0xa7)},function(_0x503475,_0x5d6092){}),echarts__namespace[_0x49b2fb(0x8a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x550070,_0xc7daa1){const _0x190d08={_0x2bb04c:0xaf},_0x173652=_0x49b2fb;this['api']=_0xc7daa1,this['scene']=_0x550070[_0x173652(0xc2)]['ecInstance']['_mars3d_scene'],this[_0x173652(_0x190d08._0x2bb04c)]['postRender']['addEventListener'](this[_0x173652(0xa1)],this);},'moveHandler':function(_0x2eb3b5,_0xeb33a3){const _0x472fbf={_0x57751a:0x89},_0x1590c5=_0x49b2fb;this['api']['dispatchAction']({'type':_0x1590c5(_0x472fbf._0x57751a)});},'render':function(_0x4fb5d5,_0x938f81,_0x578418){},'dispose':function(_0x4f57cd){const _0x3eaf47=_0x49b2fb;this['scene'][_0x3eaf47(0x84)]['removeEventListener'](this[_0x3eaf47(0xa1)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x49b2fb(0xc4)][_0x49b2fb(0xa3)];class EchartsLayer extends BaseLayer{constructor(_0x5c2559={}){const _0x5c4596=_0x49b2fb;super(_0x5c2559),this['_pointerEvents']=this[_0x5c4596(0x9e)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x49b2fb(0xb2)](){return this['_pointerEvents'];}set['pointerEvents'](_0x2cf77f){const _0x414359={_0x4de212:0x8d,_0x30a208:0x99},_0x15aa89=_0x49b2fb;this['_pointerEvents']=_0x2cf77f,this['_echartsContainer']&&(_0x2cf77f?this['_echartsContainer'][_0x15aa89(0x9d)][_0x15aa89(0xb2)]='all':this[_0x15aa89(_0x414359._0x4de212)]['style']['pointerEvents']=_0x15aa89(_0x414359._0x30a208));}['_setOptionsHook'](_0x1fa6d0,_0x4f7654){this['setEchartsOption'](_0x1fa6d0);}['_showHook'](_0x5e8d42){const _0x2e90df=_0x49b2fb;_0x5e8d42?this[_0x2e90df(0x8d)]['style']['visibility']=_0x2e90df(0xc3):this[_0x2e90df(0x8d)][_0x2e90df(0x9d)]['visibility']='hidden';}['_mountedHook'](){const _0x5d2980={_0x3e8447:0x9e,_0x500c10:0x97,_0x4f19eb:0xad,_0x5dbcd3:0x9e},_0x473231=_0x49b2fb;this[_0x473231(0x9a)]['scene']['echartsDepthTest']=this[_0x473231(_0x5d2980._0x3e8447)][_0x473231(_0x5d2980._0x500c10)]??!![],this[_0x473231(0x9a)]['scene'][_0x473231(_0x5d2980._0x4f19eb)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x473231(_0x5d2980._0x5dbcd3)]['fixedHeight']??0x0;}[_0x49b2fb(0xc5)](){const _0x3cff1d={_0x16f5dd:0x95},_0x16a58d=_0x49b2fb;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x16a58d(0x88)][_0x16a58d(_0x3cff1d._0x16f5dd)]=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5aa8eb={_0x5f0924:0x88,_0x40bfa5:0x8d},_0x4e6e99=_0x49b2fb;this['_echartsInstance']&&(this[_0x4e6e99(0x88)]['clear'](),this[_0x4e6e99(_0x5aa8eb._0x5f0924)]['dispose'](),delete this[_0x4e6e99(_0x5aa8eb._0x5f0924)]),this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]&&(this['_map']['container'][_0x4e6e99(0x8f)](this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]),delete this['_echartsContainer']);}[_0x49b2fb(0xbe)](){const _0x4e4db0={_0x3d21db:0x9b,_0x2a784c:0xa6,_0x2ea976:0xb6,_0x9e5c75:0xba},_0x502fcc=_0x49b2fb,_0x44f5dc=mars3d__namespace['DomUtil'][_0x502fcc(_0x4e4db0._0x3d21db)]('div','mars3d-echarts',this[_0x502fcc(0x9a)]['container']);return _0x44f5dc['id']=this['id'],_0x44f5dc['style'][_0x502fcc(0xae)]='absolute',_0x44f5dc['style']['top']='0px',_0x44f5dc['style']['left']='0px',_0x44f5dc[_0x502fcc(0x9d)]['width']=this['_map']['scene']['canvas'][_0x502fcc(0xbd)]+'px',_0x44f5dc['style']['height']=this['_map']['scene'][_0x502fcc(_0x4e4db0._0x2a784c)]['clientHeight']+'px',_0x44f5dc['style']['pointerEvents']=this[_0x502fcc(_0x4e4db0._0x2ea976)]?'all':_0x502fcc(0x99),_0x44f5dc['style']['zIndex']=this['options'][_0x502fcc(_0x4e4db0._0x9e5c75)]??0x9,_0x44f5dc;}[_0x49b2fb(0xaa)](){const _0x46117f={_0x1a71e0:0xbd},_0x3d5d20=_0x49b2fb;if(!this[_0x3d5d20(0x88)])return;this['_echartsContainer']['style'][_0x3d5d20(0xc0)]=this[_0x3d5d20(0x9a)]['scene'][_0x3d5d20(0xa6)][_0x3d5d20(_0x46117f._0x1a71e0)]+'px',this['_echartsContainer']['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x49b2fb(0xa4)](_0x15eb19,_0x5d6002,_0x184511){const _0x36e9c4=_0x49b2fb;this[_0x36e9c4(0x88)]&&(_0x15eb19={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x15eb19,{'onlySimpleType':!![]})},delete _0x15eb19['eventParent'],this['_echartsInstance']['setOption'](_0x15eb19,_0x5d6002,_0x184511));}['getRectangle'](_0xe00e6a){const _0x50f1b6={_0x296c7a:0x9f};let _0x43d3f2,_0x18f858,_0x50be30,_0x1ec04f;function _0x293beb(_0x5404d7){const _0x2502d1=_0x72b4;if(!Array[_0x2502d1(_0x50f1b6._0x296c7a)](_0x5404d7))return;const _0x2b7bcb=_0x5404d7[0x0]||0x0,_0xd8c741=_0x5404d7[0x1]||0x0;_0x2b7bcb!==0x0&&_0xd8c741!==0x0&&(_0x43d3f2===undefined?(_0x43d3f2=_0x2b7bcb,_0x18f858=_0x2b7bcb,_0x50be30=_0xd8c741,_0x1ec04f=_0xd8c741):(_0x43d3f2=Math['min'](_0x43d3f2,_0x2b7bcb),_0x18f858=Math['max'](_0x18f858,_0x2b7bcb),_0x50be30=Math['min'](_0x50be30,_0xd8c741),_0x1ec04f=Math['max'](_0x1ec04f,_0xd8c741)));}const _0x2165e3=this['options']['series'];_0x2165e3&&_0x2165e3['forEach'](_0x203f05=>{const _0x52a2d3={_0x479c23:0xc9,_0x114fe7:0xa0},_0x38218f=_0x72b4;_0x203f05['data']&&_0x203f05['data'][_0x38218f(0xa0)](_0xe47c69=>{const _0x31ca53=_0x38218f;if(_0xe47c69['value'])_0x293beb(_0xe47c69['value']);else _0xe47c69[_0x31ca53(_0x52a2d3._0x479c23)]&&_0xe47c69[_0x31ca53(0xc9)][_0x31ca53(_0x52a2d3._0x114fe7)](_0xfb8204=>{_0x293beb(_0xfb8204);});});});if(_0x43d3f2===0x0&&_0x50be30===0x0&&_0x18f858===0x0&&_0x1ec04f===0x0)return null;return _0xe00e6a!==null&&_0xe00e6a!==void 0x0&&_0xe00e6a['isFormat']?{'xmin':_0x43d3f2,'xmax':_0x18f858,'ymin':_0x50be30,'ymax':_0x1ec04f}:Cesium['Rectangle']['fromDegrees'](_0x43d3f2,_0x50be30,_0x18f858,_0x1ec04f);}['on'](_0x4d332b,_0xf670c8,_0x5025dd){const _0xb29e73=_0x49b2fb;return this[_0xb29e73(0x88)]['on'](_0x4d332b,_0xf670c8,_0x5025dd||this),this;}[_0x49b2fb(0x98)](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10){return this['_echartsInstance']['on'](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10||this),this;}['off'](_0x13ada4,_0x374abc,_0x20a557){const _0x59a7dc=_0x49b2fb;return this['_echartsInstance'][_0x59a7dc(0xc1)](_0x13ada4,_0x374abc,_0x20a557||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x49b2fb(0xb4),EchartsLayer),mars3d__namespace[_0x49b2fb(0xc4)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x49b2fb(0xbc)](echarts)[_0x49b2fb(0xa0)](function(_0x452219){const _0x51716f={_0x51fcd9:0x93},_0x445617=_0x49b2fb;if(_0x452219!=='default'&&!exports['hasOwnProperty'](_0x452219))Object[_0x445617(_0x51716f._0x51fcd9)](exports,_0x452219,{'enumerable':!![],'get':function(){return echarts[_0x452219];}});}),Object[_0x49b2fb(0x93)](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.7.5",
"version": "3.7.6",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.7.5"
"mars3d": "~3.7.6"
},

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