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.3 to 3.7.4

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.7.3
* 编译日期:2024-02-05 15:49:49
* 版本信息:v3.7.4
* 编译日期:2024-02-23 17:33:54
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x96f486=_0x3a42;function _0x3af4(){const _0x180916=['canvas','api','min','removeChild','fixedHeight','_api','setEchartsOption','_echartsContainer','height','div','Util','options','_map','forEach','38548wzYyBu','7099mgqEin','value','off','clear','Cartesian3','create','positionWC','get','clientWidth','eachSeries','postRender','fromDegrees','eventParent','2202752jFUwlD','SCENE3D','register','dimensions','style','getViewRect','3038046JxpWes','_mapOffset','hasOwnProperty','SceneTransforms','0px','_echartsInstance','59178bszoGV','lat','isArray','scene','58iindTB','EchartsLayer','_removedHook','48339TYogdD','_pointerEvents','462Jrxexr','190hMOAeL','getWidth','LayerUtil','clampToGround','max','370UJnBAe','mars3dMapRoam','_mars3d_scene','defineProperty','16085201kfPmTE','mars3dMap'];_0x3af4=function(){return _0x180916;};return _0x3af4();}(function(_0x69f2da,_0x16867a){const _0x7fd15f={_0x5c886c:0x1ac,_0x44c40c:0x1bf,_0x55cada:0x1ab,_0x279059:0x18f,_0x4747d7:0x192},_0x4ed8e0=_0x3a42,_0x950441=_0x69f2da();while(!![]){try{const _0x24ded5=parseInt(_0x4ed8e0(_0x7fd15f._0x5c886c))/0x1*(parseInt(_0x4ed8e0(0x1c9))/0x2)+-parseInt(_0x4ed8e0(_0x7fd15f._0x44c40c))/0x3+-parseInt(_0x4ed8e0(_0x7fd15f._0x55cada))/0x4*(-parseInt(_0x4ed8e0(0x197))/0x5)+-parseInt(_0x4ed8e0(0x1c5))/0x6*(parseInt(_0x4ed8e0(0x191))/0x7)+-parseInt(_0x4ed8e0(0x1b9))/0x8+-parseInt(_0x4ed8e0(_0x7fd15f._0x279059))/0x9*(-parseInt(_0x4ed8e0(_0x7fd15f._0x4747d7))/0xa)+parseInt(_0x4ed8e0(0x19b))/0xb;if(_0x24ded5===_0x16867a)break;else _0x950441['push'](_0x950441['shift']());}catch(_0x192f37){_0x950441['push'](_0x950441['shift']());}}}(_0x3af4,0x84e6d));function _interopNamespace(_0x5581ef){const _0x2ebf86={_0x175011:0x1b1},_0x4a7c68={_0x3f0b0:0x19a},_0x5559b7=_0x3a42;if(_0x5581ef&&_0x5581ef['__esModule'])return _0x5581ef;var _0x4120ad=Object[_0x5559b7(_0x2ebf86._0x175011)](null);return _0x5581ef&&Object['keys'](_0x5581ef)['forEach'](function(_0x517b30){const _0x1c5d10=_0x5559b7;if(_0x517b30!=='default'){var _0x304f15=Object['getOwnPropertyDescriptor'](_0x5581ef,_0x517b30);Object[_0x1c5d10(_0x4a7c68._0x3f0b0)](_0x4120ad,_0x517b30,_0x304f15['get']?_0x304f15:{'enumerable':!![],'get':function(){return _0x5581ef[_0x517b30];}});}}),_0x4120ad['default']=_0x5581ef,_0x4120ad;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x4f91f2,_0x2cfab8){const _0x3c8d63={_0xa999e5:0x1c6},_0x3215d3=_0x3a42;this['_mars3d_scene']=_0x4f91f2,this[_0x3215d3(0x1bc)]=['lng',_0x3215d3(_0x3c8d63._0xa999e5)],this['_mapOffset']=[0x0,0x0],this['_api']=_0x2cfab8;}['setMapOffset'](_0xbfcf9f){this['_mapOffset']=_0xbfcf9f;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x26aa4d){const _0x33a2a2={_0x421ebe:0x1b7,_0x3a3959:0x1b7,_0x58c532:0x1ba,_0x140683:0x1b2,_0x23b7f5:0x1c0},_0x50cbe4=_0x3a42,_0x209549=this['_mars3d_scene'],_0x84b865=[NaN,NaN];let _0x44a263=_0x209549['echartsFixedHeight'];_0x209549['echartsAutoHeight']&&(_0x44a263=_0x209549['getHeight'](Cesium$1['Cartographic'][_0x50cbe4(_0x33a2a2._0x421ebe)](_0x26aa4d[0x0],_0x26aa4d[0x1])));const _0x50247f=Cesium$1[_0x50cbe4(0x1b0)][_0x50cbe4(_0x33a2a2._0x3a3959)](_0x26aa4d[0x0],_0x26aa4d[0x1],_0x44a263);if(!_0x50247f)return _0x84b865;const _0x3de1ed=Cesium$1[_0x50cbe4(0x1c2)]['wgs84ToWindowCoordinates'](_0x209549,_0x50247f);if(!_0x3de1ed)return _0x84b865;if(_0x209549['echartsDepthTest']&&_0x209549['mode']===Cesium$1['SceneMode'][_0x50cbe4(_0x33a2a2._0x58c532)]){const _0x4ff2d7=new Cesium$1['EllipsoidalOccluder'](_0x209549['globe']['ellipsoid'],_0x209549['camera'][_0x50cbe4(_0x33a2a2._0x140683)]),_0xbf62e3=_0x4ff2d7['isPointVisible'](_0x50247f);if(!_0xbf62e3)return _0x84b865;}return[_0x3de1ed['x']-this['_mapOffset'][0x0],_0x3de1ed['y']-this[_0x50cbe4(_0x33a2a2._0x23b7f5)][0x1]];}[_0x96f486(0x1be)](){const _0x1e2915={_0x35bb3c:0x193},_0x2d34c4=_0x96f486,_0x4d965c=this[_0x2d34c4(0x1a2)];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x4d965c[_0x2d34c4(_0x1e2915._0x35bb3c)](),_0x4d965c['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x3aef5d,_0x310cc5){const _0xa532b5={_0x209d8d:0x1b3},_0x11b19e=_0x96f486;let _0x58b116;const _0x109879=_0x3aef5d['scheduler']['ecInstance']['_mars3d_scene'];_0x3aef5d['eachComponent']('mars3dMap',function(_0x2c6e5b){const _0x1b07a7=_0x310cc5['getZr']()['painter'];if(!_0x1b07a7)return;!_0x58b116&&(_0x58b116=new CompositeCoordinateSystem(_0x109879,_0x310cc5)),_0x2c6e5b['coordinateSystem']=_0x58b116,_0x58b116['setMapOffset'](_0x2c6e5b['__mapOffset']||[0x0,0x0]);}),_0x3aef5d[_0x11b19e(0x1b5)](function(_0x5dcf2d){const _0x33da87=_0x11b19e;_0x5dcf2d[_0x33da87(_0xa532b5._0x209d8d)]('coordinateSystem')==='mars3dMap'&&(!_0x58b116&&(_0x58b116=new CompositeCoordinateSystem(_0x109879,_0x310cc5)),_0x5dcf2d['coordinateSystem']=_0x58b116);});};function _0x3a42(_0x5accc8,_0x15281d){const _0x3af4ab=_0x3af4();return _0x3a42=function(_0x3a4230,_0x1267fa){_0x3a4230=_0x3a4230-0x18f;let _0x2655e3=_0x3af4ab[_0x3a4230];return _0x2655e3;},_0x3a42(_0x5accc8,_0x15281d);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x96f486(0x198),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x482591,_0x597823){}),echarts__namespace['extendComponentModel']({'type':_0x96f486(0x19c),'getBMap':function(){const _0x1857b0={_0x220c9e:0x199},_0x1f2720=_0x96f486;return this[_0x1f2720(_0x1857b0._0x220c9e)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x96f486(0x19c),'init':function(_0x22dff7,_0x4a6254){const _0x28dd68=_0x96f486;this['api']=_0x4a6254,this['scene']=_0x22dff7['scheduler']['ecInstance']['_mars3d_scene'],this['scene'][_0x28dd68(0x1b6)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5291e5,_0x3731ee){const _0x5a5045=_0x96f486;this[_0x5a5045(0x19e)]['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x4a2168,_0x1283ee,_0x2da53d){},'dispose':function(_0xf115c){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x2a7e6f={}){super(_0x2a7e6f),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x139610){const _0x2fc6d6={_0x304912:0x190},_0x483cb0=_0x96f486;this[_0x483cb0(_0x2fc6d6._0x304912)]=_0x139610,this[_0x483cb0(0x1a4)]&&(_0x139610?this[_0x483cb0(0x1a4)]['style']['pointerEvents']='all':this[_0x483cb0(0x1a4)]['style']['pointerEvents']='none');}['_setOptionsHook'](_0x257cca,_0x4e5a87){this['setEchartsOption'](_0x257cca);}['_showHook'](_0xe3e62b){const _0x507559=_0x96f486;_0xe3e62b?this['_echartsContainer'][_0x507559(0x1bd)]['visibility']='visible':this[_0x507559(0x1a4)][_0x507559(0x1bd)]['visibility']='hidden';}['_mountedHook'](){const _0x5e7135={_0x51c78b:0x1a8,_0x5e0a93:0x1a9,_0x59643c:0x1c8},_0x5aa45b=_0x96f486;this['_map']['scene']['echartsDepthTest']=this[_0x5aa45b(_0x5e7135._0x51c78b)]['depthTest']??!![],this[_0x5aa45b(_0x5e7135._0x5e0a93)][_0x5aa45b(_0x5e7135._0x59643c)]['echartsAutoHeight']=this[_0x5aa45b(_0x5e7135._0x51c78b)][_0x5aa45b(0x195)]??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x5aa45b(0x1a1)]??0x0;}['_addedHook'](){const _0x1ece25={_0x2b074a:0x1a3},_0x42e92b=_0x96f486;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x42e92b(_0x1ece25._0x2b074a)](this['options']);}[_0x96f486(0x1cb)](){const _0x3627b6={_0x2f8a39:0x1af,_0x477dad:0x1c4},_0x4c973c=_0x96f486;this['_echartsInstance']&&(this['_echartsInstance'][_0x4c973c(_0x3627b6._0x2f8a39)](),this[_0x4c973c(_0x3627b6._0x477dad)]['dispose'](),delete this[_0x4c973c(0x1c4)]),this['_echartsContainer']&&(this['_map']['container'][_0x4c973c(0x1a0)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xf2afbf={_0x31feb7:0x1a9,_0x35d149:0x1bd,_0x556b63:0x1b4,_0x79c61a:0x1a5},_0x3404e6=_0x96f486,_0x292676=mars3d__namespace['DomUtil']['create'](_0x3404e6(0x1a6),'mars3d-echarts',this[_0x3404e6(_0xf2afbf._0x31feb7)]['container']);return _0x292676['id']=this['id'],_0x292676[_0x3404e6(_0xf2afbf._0x35d149)]['position']='absolute',_0x292676['style']['top']=_0x3404e6(0x1c3),_0x292676[_0x3404e6(0x1bd)]['left']='0px',_0x292676['style']['width']=this[_0x3404e6(0x1a9)][_0x3404e6(0x1c8)]['canvas'][_0x3404e6(_0xf2afbf._0x556b63)]+'px',_0x292676[_0x3404e6(_0xf2afbf._0x35d149)][_0x3404e6(_0xf2afbf._0x79c61a)]=this['_map']['scene'][_0x3404e6(0x19d)]['clientHeight']+'px',_0x292676[_0x3404e6(_0xf2afbf._0x35d149)]['pointerEvents']=this['_pointerEvents']?'all':'none',_0x292676[_0x3404e6(_0xf2afbf._0x35d149)]['zIndex']=this[_0x3404e6(0x1a8)]['zIndex']??0x9,_0x292676;}['resize'](){const _0x1b41a0={_0xeeb59c:0x19d,_0xa942dd:0x1c8},_0x57e2a1=_0x96f486;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene'][_0x57e2a1(_0x1b41a0._0xeeb59c)]['clientWidth']+'px',this['_echartsContainer'][_0x57e2a1(0x1bd)]['height']=this['_map'][_0x57e2a1(_0x1b41a0._0xa942dd)]['canvas']['clientHeight']+'px',this[_0x57e2a1(0x1c4)]['resize']();}['setEchartsOption'](_0x39ba64,_0x5be96c,_0x303fad){const _0x592c46={_0x344b32:0x1b8},_0x442639=_0x96f486;this['_echartsInstance']&&(_0x39ba64={'mars3dMap':{},...mars3d__namespace[_0x442639(0x1a7)]['getAttrVal'](_0x39ba64,{'onlySimpleType':!![]})},delete _0x39ba64[_0x442639(_0x592c46._0x344b32)],this['_echartsInstance']['setOption'](_0x39ba64,_0x5be96c,_0x303fad));}['getRectangle'](_0x47a71a){const _0x2fb295={_0x26416b:0x196},_0x5eac2a=_0x96f486;let _0x1ca4fd,_0x140aab,_0x178ac7,_0x58c3eb;function _0xf1caca(_0x6e851f){const _0x3d6c05=_0x3a42;if(!Array[_0x3d6c05(0x1c7)](_0x6e851f))return;const _0x4d9d3c=_0x6e851f[0x0]||0x0,_0x5b1048=_0x6e851f[0x1]||0x0;_0x4d9d3c!==0x0&&_0x5b1048!==0x0&&(_0x1ca4fd===undefined?(_0x1ca4fd=_0x4d9d3c,_0x140aab=_0x4d9d3c,_0x178ac7=_0x5b1048,_0x58c3eb=_0x5b1048):(_0x1ca4fd=Math[_0x3d6c05(0x19f)](_0x1ca4fd,_0x4d9d3c),_0x140aab=Math[_0x3d6c05(_0x2fb295._0x26416b)](_0x140aab,_0x4d9d3c),_0x178ac7=Math['min'](_0x178ac7,_0x5b1048),_0x58c3eb=Math['max'](_0x58c3eb,_0x5b1048)));}const _0x1ce0f1=this['options']['series'];_0x1ce0f1&&_0x1ce0f1[_0x5eac2a(0x1aa)](_0x5af1d0=>{_0x5af1d0['data']&&_0x5af1d0['data']['forEach'](_0x34fade=>{const _0x1d6493=_0x3a42;if(_0x34fade[_0x1d6493(0x1ad)])_0xf1caca(_0x34fade['value']);else _0x34fade['coords']&&_0x34fade['coords']['forEach'](_0x243115=>{_0xf1caca(_0x243115);});});});if(_0x1ca4fd===0x0&&_0x178ac7===0x0&&_0x140aab===0x0&&_0x58c3eb===0x0)return null;return _0x47a71a!==null&&_0x47a71a!==void 0x0&&_0x47a71a['isFormat']?{'xmin':_0x1ca4fd,'xmax':_0x140aab,'ymin':_0x178ac7,'ymax':_0x58c3eb}:Cesium['Rectangle']['fromDegrees'](_0x1ca4fd,_0x178ac7,_0x140aab,_0x58c3eb);}['on'](_0x5e7ce7,_0x4dce9d,_0x4b1979){return this['_echartsInstance']['on'](_0x5e7ce7,_0x4dce9d,_0x4b1979||this),this;}['onByQuery'](_0x1b1530,_0x9124a8,_0xef83cf,_0x535902){return this['_echartsInstance']['on'](_0x1b1530,_0x9124a8,_0xef83cf,_0x535902||this),this;}[_0x96f486(0x1ae)](_0x222591,_0x2893fb,_0x2aae44){return this['_echartsInstance']['off'](_0x222591,_0x2893fb,_0x2aae44||this),this;}}mars3d__namespace[_0x96f486(0x194)][_0x96f486(0x1bb)]('echarts',EchartsLayer),mars3d__namespace['layer'][_0x96f486(0x1ca)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports[_0x96f486(0x1ca)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0xeb7340){const _0x12dd9a=_0x96f486;if(_0xeb7340!=='default'&&!exports[_0x12dd9a(0x1c1)](_0xeb7340))Object['defineProperty'](exports,_0xeb7340,{'enumerable':!![],'get':function(){return echarts[_0xeb7340];}});}),Object[_0x96f486(0x19a)](exports,'__esModule',{'value':!![]});
'use strict';const _0x4de76d=_0x17ab;(function(_0x2a4c8d,_0x5c5d4e){const _0x2acb22={_0x2aecca:0x159,_0x2cf406:0x17b,_0x492974:0x175,_0x3778cb:0x156,_0x1a723a:0x173,_0x2fbe54:0x177},_0x4947f4=_0x17ab,_0x45e4f2=_0x2a4c8d();while(!![]){try{const _0x4345a2=parseInt(_0x4947f4(_0x2acb22._0x2aecca))/0x1*(parseInt(_0x4947f4(_0x2acb22._0x2cf406))/0x2)+-parseInt(_0x4947f4(0x161))/0x3+-parseInt(_0x4947f4(0x15e))/0x4+-parseInt(_0x4947f4(0x13d))/0x5*(-parseInt(_0x4947f4(_0x2acb22._0x492974))/0x6)+parseInt(_0x4947f4(0x160))/0x7*(parseInt(_0x4947f4(0x16c))/0x8)+parseInt(_0x4947f4(_0x2acb22._0x3778cb))/0x9+parseInt(_0x4947f4(_0x2acb22._0x1a723a))/0xa*(parseInt(_0x4947f4(_0x2acb22._0x2fbe54))/0xb);if(_0x4345a2===_0x5c5d4e)break;else _0x45e4f2['push'](_0x45e4f2['shift']());}catch(_0x438bc2){_0x45e4f2['push'](_0x45e4f2['shift']());}}}(_0x1f6e,0xac20c));function _0x17ab(_0x37b459,_0x5bf2be){const _0x1f6e9b=_0x1f6e();return _0x17ab=function(_0x17abe3,_0x38f9d7){_0x17abe3=_0x17abe3-0x13d;let _0x43f28d=_0x1f6e9b[_0x17abe3];return _0x43f28d;},_0x17ab(_0x37b459,_0x5bf2be);}function _interopNamespace(_0x501fae){const _0x44e3a2={_0x26d926:0x150},_0x3fbad6=_0x17ab;if(_0x501fae&&_0x501fae['__esModule'])return _0x501fae;var _0x3d0655=Object[_0x3fbad6(0x157)](null);return _0x501fae&&Object['keys'](_0x501fae)['forEach'](function(_0x3bf617){const _0x5dc23a=_0x3fbad6;if(_0x3bf617!=='default'){var _0x3b31d9=Object[_0x5dc23a(0x15a)](_0x501fae,_0x3bf617);Object[_0x5dc23a(_0x44e3a2._0x26d926)](_0x3d0655,_0x3bf617,_0x3b31d9['get']?_0x3b31d9:{'enumerable':!![],'get':function(){return _0x501fae[_0x3bf617];}});}}),_0x3d0655['default']=_0x501fae,_0x3d0655;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x1f6e(){const _0x30f3fe=['extendComponentView','all','updateLayout','series','style','canvas','mars3dMapRoam','lng','defineProperty','extendComponentModel','forEach','_pointerEvents','onByQuery','getRoamTransform','2912418izRZAV','create','clientWidth','59558wqCTho','getOwnPropertyDescriptor','scheduler','_map','off','1237276sgsBrG','0px','266CczZVp','3992322MeeAoM','registerCoordinateSystem','fromDegrees','isArray','_mapOffset','scene','BaseLayer','none','options','dataToPoint','_setOptionsHook','39544AouFmL','visibility','removeEventListener','getRectangle','fixedHeight','_echartsInstance','BoundingRect','40DJCsuS','setOption','2910fGMFPx','ecInstance','472428jCMWKw','_mars3d_scene','LayerUtil','postRender','24GMgDhz','9765goPtSr','container','pointerEvents','eventParent','data','value','lat','Cesium','echarts','init','_echartsContainer'];_0x1f6e=function(){return _0x30f3fe;};return _0x1f6e();}const Cesium$1=mars3d__namespace[_0x4de76d(0x144)];class CompositeCoordinateSystem{constructor(_0x3cf8d8,_0x1a5b04){this['_mars3d_scene']=_0x3cf8d8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x1a5b04;}['setMapOffset'](_0x4a6000){this['_mapOffset']=_0x4a6000;}['getBMap'](){return this['_mars3d_scene'];}[_0x4de76d(0x16a)](_0x67468f){const _0x4d761c={_0x4be2e0:0x163},_0x756178=_0x4de76d,_0x55b60a=this[_0x756178(0x178)],_0x2ca0e3=[NaN,NaN];let _0x5c0d72=_0x55b60a['echartsFixedHeight'];_0x55b60a['echartsAutoHeight']&&(_0x5c0d72=_0x55b60a['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x67468f[0x0],_0x67468f[0x1])));const _0x35e2b2=Cesium$1['Cartesian3'][_0x756178(_0x4d761c._0x4be2e0)](_0x67468f[0x0],_0x67468f[0x1],_0x5c0d72);if(!_0x35e2b2)return _0x2ca0e3;const _0x4bbe6c=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x55b60a,_0x35e2b2);if(!_0x4bbe6c)return _0x2ca0e3;if(_0x55b60a['echartsDepthTest']&&_0x55b60a['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x31d61a=new Cesium$1['EllipsoidalOccluder'](_0x55b60a['globe']['ellipsoid'],_0x55b60a['camera']['positionWC']),_0x512467=_0x31d61a['isPointVisible'](_0x35e2b2);if(!_0x512467)return _0x2ca0e3;}return[_0x4bbe6c['x']-this[_0x756178(0x165)][0x0],_0x4bbe6c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x323b12={_0x4b7e7e:0x172},_0x39cf60=_0x4de76d,_0x57b6b0=this['_api'];return new echarts__namespace['graphic'][(_0x39cf60(_0x323b12._0x4b7e7e))](0x0,0x0,_0x57b6b0['getWidth'](),_0x57b6b0['getHeight']());}[_0x4de76d(0x155)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0x4de76d(0x14f),_0x4de76d(0x143)],CompositeCoordinateSystem['create']=function(_0x35f0da,_0x2cb23d){const _0x334327={_0x581878:0x176},_0x44a446=_0x4de76d;let _0x403aad;const _0x3329fc=_0x35f0da['scheduler'][_0x44a446(_0x334327._0x581878)][_0x44a446(0x178)];_0x35f0da['eachComponent']('mars3dMap',function(_0x3f17ab){const _0x371c8f=_0x2cb23d['getZr']()['painter'];if(!_0x371c8f)return;!_0x403aad&&(_0x403aad=new CompositeCoordinateSystem(_0x3329fc,_0x2cb23d)),_0x3f17ab['coordinateSystem']=_0x403aad,_0x403aad['setMapOffset'](_0x3f17ab['__mapOffset']||[0x0,0x0]);}),_0x35f0da['eachSeries'](function(_0x4ea902){_0x4ea902['get']('coordinateSystem')==='mars3dMap'&&(!_0x403aad&&(_0x403aad=new CompositeCoordinateSystem(_0x3329fc,_0x2cb23d)),_0x4ea902['coordinateSystem']=_0x403aad);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x4de76d(0x146)])echarts__namespace[_0x4de76d(0x162)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x4de76d(0x14e),'update':_0x4de76d(0x14a)},function(_0x501f11,_0xaf2fe){}),echarts__namespace[_0x4de76d(0x151)]({'type':'mars3dMap','getBMap':function(){const _0x296483={_0x1a6c90:0x178},_0x464912=_0x4de76d;return this[_0x464912(_0x296483._0x1a6c90)];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4de76d(0x148)]({'type':'mars3dMap','init':function(_0xf01fa7,_0x1a429c){const _0x33cce3=_0x4de76d;this['api']=_0x1a429c,this['scene']=_0xf01fa7[_0x33cce3(0x15b)]['ecInstance']['_mars3d_scene'],this['scene'][_0x33cce3(0x17a)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x299cb5,_0x21c652){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2ae72b,_0x70a2c3,_0x241c68){},'dispose':function(_0x8aaddf){const _0x451485={_0x3dfc5b:0x166,_0x584589:0x16e},_0x2bc9e0=_0x4de76d;this[_0x2bc9e0(_0x451485._0x3dfc5b)]['postRender'][_0x2bc9e0(_0x451485._0x584589)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x4de76d(0x144)],BaseLayer=mars3d__namespace['layer'][_0x4de76d(0x167)];class EchartsLayer extends BaseLayer{constructor(_0xf530e7={}){const _0x59f002={_0xeb24e6:0x13f},_0x512e09=_0x4de76d;super(_0xf530e7),this['_pointerEvents']=this['options'][_0x512e09(_0x59f002._0xeb24e6)];}get['layer'](){const _0xeceacf=_0x4de76d;return this[_0xeceacf(0x171)];}get[_0x4de76d(0x13f)](){const _0x14a881=_0x4de76d;return this[_0x14a881(0x153)];}set['pointerEvents'](_0x4d7a3c){const _0x47a077=_0x4de76d;this['_pointerEvents']=_0x4d7a3c,this[_0x47a077(0x147)]&&(_0x4d7a3c?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x47a077(0x14c)]['pointerEvents']=_0x47a077(0x168));}[_0x4de76d(0x16b)](_0x1d28d1,_0x488853){this['setEchartsOption'](_0x1d28d1);}['_showHook'](_0x2c0fe4){const _0x56c24b=_0x4de76d;_0x2c0fe4?this['_echartsContainer']['style'][_0x56c24b(0x16d)]='visible':this['_echartsContainer']['style'][_0x56c24b(0x16d)]='hidden';}['_mountedHook'](){const _0x418ae7={_0x222559:0x15c,_0x2e5fc9:0x169,_0x46d0f8:0x170},_0x22bb63=_0x4de76d;this[_0x22bb63(_0x418ae7._0x222559)]['scene']['echartsDepthTest']=this[_0x22bb63(_0x418ae7._0x2e5fc9)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this[_0x22bb63(0x169)]['clampToGround']??![],this[_0x22bb63(_0x418ae7._0x222559)][_0x22bb63(0x166)]['echartsFixedHeight']=this['options'][_0x22bb63(_0x418ae7._0x46d0f8)]??0x0;}['_addedHook'](){const _0x294228={_0x1702bb:0x171},_0x303193=_0x4de76d;this[_0x303193(0x147)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x303193(_0x294228._0x1702bb)][_0x303193(0x178)]=this['_map'][_0x303193(0x166)],this['setEchartsOption'](this[_0x303193(0x169)]);}['_removedHook'](){const _0x567374={_0x2c5cb1:0x171},_0x623754=_0x4de76d;this['_echartsInstance']&&(this[_0x623754(_0x567374._0x2c5cb1)]['clear'](),this[_0x623754(_0x567374._0x2c5cb1)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x623754(0x15c)][_0x623754(0x13e)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x57c01f={_0x42186a:0x14c,_0x45f748:0x15f,_0xfc8507:0x166,_0x37fc9c:0x149,_0x4016ed:0x168},_0x26a6f3=_0x4de76d,_0x6cdaf3=mars3d__namespace['DomUtil'][_0x26a6f3(0x157)]('div','mars3d-echarts',this['_map']['container']);return _0x6cdaf3['id']=this['id'],_0x6cdaf3[_0x26a6f3(_0x57c01f._0x42186a)]['position']='absolute',_0x6cdaf3['style']['top']=_0x26a6f3(_0x57c01f._0x45f748),_0x6cdaf3[_0x26a6f3(_0x57c01f._0x42186a)]['left']='0px',_0x6cdaf3['style']['width']=this['_map']['scene'][_0x26a6f3(0x14d)]['clientWidth']+'px',_0x6cdaf3['style']['height']=this['_map'][_0x26a6f3(_0x57c01f._0xfc8507)]['canvas']['clientHeight']+'px',_0x6cdaf3['style']['pointerEvents']=this['_pointerEvents']?_0x26a6f3(_0x57c01f._0x37fc9c):_0x26a6f3(_0x57c01f._0x4016ed),_0x6cdaf3[_0x26a6f3(0x14c)]['zIndex']=this[_0x26a6f3(0x169)]['zIndex']??0x9,_0x6cdaf3;}['resize'](){const _0x3f94b4={_0x14480e:0x147,_0x4fa357:0x14c,_0x30a970:0x158,_0x42858c:0x15c,_0x5da5a8:0x14d},_0x444e37=_0x4de76d;if(!this[_0x444e37(0x171)])return;this[_0x444e37(_0x3f94b4._0x14480e)][_0x444e37(_0x3f94b4._0x4fa357)]['width']=this['_map']['scene']['canvas'][_0x444e37(_0x3f94b4._0x30a970)]+'px',this['_echartsContainer']['style']['height']=this[_0x444e37(_0x3f94b4._0x42858c)]['scene'][_0x444e37(_0x3f94b4._0x5da5a8)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0xe5d8f5,_0x5131fa,_0xf54bf5){const _0x1d6407={_0x3762d5:0x174},_0x3006a2=_0x4de76d;this['_echartsInstance']&&(_0xe5d8f5={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0xe5d8f5,{'onlySimpleType':!![]})},delete _0xe5d8f5[_0x3006a2(0x140)],this['_echartsInstance'][_0x3006a2(_0x1d6407._0x3762d5)](_0xe5d8f5,_0x5131fa,_0xf54bf5));}[_0x4de76d(0x16f)](_0x47e780){const _0x549149={_0x37959d:0x141,_0x461ebc:0x152},_0x41a4a5=_0x4de76d;let _0x4fa53f,_0x44be7a,_0x1c5ee5,_0x2c81ff;function _0x304842(_0xce7ead){const _0x869f4d=_0x17ab;if(!Array[_0x869f4d(0x164)](_0xce7ead))return;const _0x4d0d8f=_0xce7ead[0x0]||0x0,_0x21a39c=_0xce7ead[0x1]||0x0;_0x4d0d8f!==0x0&&_0x21a39c!==0x0&&(_0x4fa53f===undefined?(_0x4fa53f=_0x4d0d8f,_0x44be7a=_0x4d0d8f,_0x1c5ee5=_0x21a39c,_0x2c81ff=_0x21a39c):(_0x4fa53f=Math['min'](_0x4fa53f,_0x4d0d8f),_0x44be7a=Math['max'](_0x44be7a,_0x4d0d8f),_0x1c5ee5=Math['min'](_0x1c5ee5,_0x21a39c),_0x2c81ff=Math['max'](_0x2c81ff,_0x21a39c)));}const _0x2f3160=this['options'][_0x41a4a5(0x14b)];_0x2f3160&&_0x2f3160['forEach'](_0x224bc9=>{const _0x3df027=_0x41a4a5;_0x224bc9[_0x3df027(_0x549149._0x37959d)]&&_0x224bc9['data'][_0x3df027(_0x549149._0x461ebc)](_0xa6964c=>{const _0x2e6c95=_0x3df027;if(_0xa6964c['value'])_0x304842(_0xa6964c[_0x2e6c95(0x142)]);else _0xa6964c['coords']&&_0xa6964c['coords']['forEach'](_0x36b5fa=>{_0x304842(_0x36b5fa);});});});if(_0x4fa53f===0x0&&_0x1c5ee5===0x0&&_0x44be7a===0x0&&_0x2c81ff===0x0)return null;return _0x47e780!==null&&_0x47e780!==void 0x0&&_0x47e780['isFormat']?{'xmin':_0x4fa53f,'xmax':_0x44be7a,'ymin':_0x1c5ee5,'ymax':_0x2c81ff}:Cesium['Rectangle']['fromDegrees'](_0x4fa53f,_0x1c5ee5,_0x44be7a,_0x2c81ff);}['on'](_0x3d0db1,_0x37e0bd,_0x14325b){return this['_echartsInstance']['on'](_0x3d0db1,_0x37e0bd,_0x14325b||this),this;}[_0x4de76d(0x154)](_0x4edc7e,_0x1fc685,_0x5d8408,_0x2731b1){return this['_echartsInstance']['on'](_0x4edc7e,_0x1fc685,_0x5d8408,_0x2731b1||this),this;}['off'](_0x400ca8,_0x3c3396,_0x5c57f0){const _0x35eeae={_0x424442:0x15d},_0x238a46=_0x4de76d;return this['_echartsInstance'][_0x238a46(_0x35eeae._0x424442)](_0x400ca8,_0x3c3396,_0x5c57f0||this),this;}}mars3d__namespace[_0x4de76d(0x179)]['register'](_0x4de76d(0x145),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x290a74){const _0x309cc8=_0x4de76d;if(_0x290a74!=='default'&&!exports['hasOwnProperty'](_0x290a74))Object[_0x309cc8(0x150)](exports,_0x290a74,{'enumerable':!![],'get':function(){return echarts[_0x290a74];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.7.3",
"version": "3.7.4",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.7.3"
"mars3d": "~3.7.4"
},

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