Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-echarts

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars3d-echarts - npm Package Compare versions

Comparing version 3.6.12 to 3.6.13

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.6.12
* 编译日期:2023-11-13 20:56:14
* 版本信息:v3.6.13
* 编译日期:2023-11-21 09:41:55
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x515eda=_0x2d9f;(function(_0xc87d08,_0x28429d){const _0x451b32={_0x55edac:0x149,_0x234f2b:0x131,_0x4e7a0b:0x11d},_0x19b3cf=_0x2d9f,_0xc9058=_0xc87d08();while(!![]){try{const _0x3d6700=-parseInt(_0x19b3cf(0x141))/0x1+-parseInt(_0x19b3cf(0x11f))/0x2*(-parseInt(_0x19b3cf(_0x451b32._0x55edac))/0x3)+-parseInt(_0x19b3cf(0x12e))/0x4+-parseInt(_0x19b3cf(0x142))/0x5*(-parseInt(_0x19b3cf(_0x451b32._0x234f2b))/0x6)+-parseInt(_0x19b3cf(0x117))/0x7+parseInt(_0x19b3cf(0x13c))/0x8+parseInt(_0x19b3cf(0x120))/0x9*(parseInt(_0x19b3cf(_0x451b32._0x4e7a0b))/0xa);if(_0x3d6700===_0x28429d)break;else _0xc9058['push'](_0xc9058['shift']());}catch(_0x27606e){_0xc9058['push'](_0xc9058['shift']());}}}(_0x5af7,0x6d104));function _interopNamespace(_0x13f649){const _0xe61ca5={_0x5b7730:0x111,_0x4f8535:0x146},_0x2a933c=_0x2d9f;if(_0x13f649&&_0x13f649[_0x2a933c(_0xe61ca5._0x5b7730)])return _0x13f649;var _0x1b495a=Object['create'](null);return _0x13f649&&Object['keys'](_0x13f649)['forEach'](function(_0x3149a5){const _0x5de451=_0x2a933c;if(_0x3149a5!==_0x5de451(0x146)){var _0x58749c=Object['getOwnPropertyDescriptor'](_0x13f649,_0x3149a5);Object['defineProperty'](_0x1b495a,_0x3149a5,_0x58749c['get']?_0x58749c:{'enumerable':!![],'get':function(){return _0x13f649[_0x3149a5];}});}}),_0x1b495a[_0x2a933c(_0xe61ca5._0x4f8535)]=_0x13f649,_0x1b495a;}function _0x5af7(){const _0x395bcf=['pointerEvents','760814VEdlDO','100nBMvZf','canvas','_api','scheduler','default','series','ellipsoid','15YzurPE','removeEventListener','options','min','getHeight','setOption','_createChartOverlay','mars3dMapRoam','echartsDepthTest','__esModule','_removedHook','all','eachComponent','echarts','lat','5914419vWPjbX','Util','mars3d-echarts','globe','style','isPointVisible','110CbEUMz','removeChild','313340YxApen','378981sqxmZZ','dispatchAction','_pointerEvents','_echartsInstance','getRoamTransform','wgs84ToWindowCoordinates','coords','isArray','_mapOffset','hidden','EchartsLayer','BaseLayer','mars3dMap','0px','1841852IAQcMb','echartsAutoHeight','_echartsContainer','260478WEYfXr','_map','_mars3d_scene','setEchartsOption','forEach','setMapOffset','clientWidth','layer','container','scene','Cartographic','3184872gxBrUO','fromDegrees','clientHeight','Cesium'];_0x5af7=function(){return _0x395bcf;};return _0x5af7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2d9f(_0x32540a,_0x288dc6){const _0x5af7d7=_0x5af7();return _0x2d9f=function(_0x2d9f2c,_0xf89352){_0x2d9f2c=_0x2d9f2c-0x10b;let _0x27497c=_0x5af7d7[_0x2d9f2c];return _0x27497c;},_0x2d9f(_0x32540a,_0x288dc6);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xa45ca8,_0x1822f5){const _0x5abcbf={_0x689ff3:0x144},_0xa4488c=_0x2d9f;this['_mars3d_scene']=_0xa45ca8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0xa4488c(_0x5abcbf._0x689ff3)]=_0x1822f5;}[_0x515eda(0x136)](_0x57c867){const _0x145748=_0x515eda;this[_0x145748(0x128)]=_0x57c867;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x47247f){const _0x597bc9={_0x5acc87:0x12f,_0xec20bf:0x10c,_0x2adcd6:0x13d,_0xb09efb:0x13d,_0x163b2e:0x110,_0x2d1a5a:0x11a,_0x961a77:0x148,_0x52008c:0x11c,_0x438e6b:0x128},_0x3d8eb8=_0x515eda,_0x18c8b1=this['_mars3d_scene'],_0x5e7dc9=[NaN,NaN];let _0x969491=_0x18c8b1['echartsFixedHeight'];_0x18c8b1[_0x3d8eb8(_0x597bc9._0x5acc87)]&&(_0x969491=_0x18c8b1[_0x3d8eb8(0x11a)][_0x3d8eb8(_0x597bc9._0xec20bf)](Cesium$1[_0x3d8eb8(0x13b)][_0x3d8eb8(_0x597bc9._0x2adcd6)](_0x47247f[0x0],_0x47247f[0x1])));const _0xe9f54e=Cesium$1['Cartesian3'][_0x3d8eb8(_0x597bc9._0xb09efb)](_0x47247f[0x0],_0x47247f[0x1],_0x969491);if(!_0xe9f54e)return _0x5e7dc9;const _0x554732=Cesium$1['SceneTransforms'][_0x3d8eb8(0x125)](_0x18c8b1,_0xe9f54e);if(!_0x554732)return _0x5e7dc9;if(_0x18c8b1[_0x3d8eb8(_0x597bc9._0x163b2e)]&&_0x18c8b1['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x50402d=new Cesium$1['EllipsoidalOccluder'](_0x18c8b1[_0x3d8eb8(_0x597bc9._0x2d1a5a)][_0x3d8eb8(_0x597bc9._0x961a77)],_0x18c8b1['camera']['positionWC']),_0x5006b1=_0x50402d[_0x3d8eb8(_0x597bc9._0x52008c)](_0xe9f54e);if(!_0x5006b1)return _0x5e7dc9;}return[_0x554732['x']-this['_mapOffset'][0x0],_0x554732['y']-this[_0x3d8eb8(_0x597bc9._0x438e6b)][0x1]];}['getViewRect'](){const _0x449558=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x449558['getWidth'](),_0x449558['getHeight']());}[_0x515eda(0x124)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng',_0x515eda(0x116)],CompositeCoordinateSystem['create']=function(_0x3e2fc0,_0x2ea522){const _0x478517={_0x537b75:0x12c},_0x1c397a=_0x515eda;let _0x328196;const _0x2f8d93=_0x3e2fc0[_0x1c397a(0x145)]['ecInstance']['_mars3d_scene'];_0x3e2fc0[_0x1c397a(0x114)]('mars3dMap',function(_0x393312){const _0x3c1e18=_0x2ea522['getZr']()['painter'];if(!_0x3c1e18)return;!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x393312['coordinateSystem']=_0x328196,_0x328196['setMapOffset'](_0x393312['__mapOffset']||[0x0,0x0]);}),_0x3e2fc0['eachSeries'](function(_0x4bd6ac){const _0x490617=_0x1c397a;_0x4bd6ac['get']('coordinateSystem')===_0x490617(_0x478517._0x537b75)&&(!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x4bd6ac['coordinateSystem']=_0x328196);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x515eda(0x12c),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x515eda(0x10f),'event':_0x515eda(0x10f),'update':'updateLayout'},function(_0x29e10f,_0x1da225){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x51ea10={_0x5cfaff:0x133},_0x1152d6=_0x515eda;return this[_0x1152d6(_0x51ea10._0x5cfaff)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5ad540,_0x176e03){const _0x11d649={_0xf26303:0x145},_0x5d13e8=_0x515eda;this['api']=_0x176e03,this['scene']=_0x5ad540[_0x5d13e8(_0x11d649._0xf26303)]['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5988f7,_0xffc4e6){const _0x2091ec={_0x329212:0x121},_0x17d78e=_0x515eda;this['api'][_0x17d78e(_0x2091ec._0x329212)]({'type':'mars3dMapRoam'});},'render':function(_0x5c19d2,_0x3409a4,_0x319160){},'dispose':function(_0x346b3b){const _0x33071d=_0x515eda;this['scene']['postRender'][_0x33071d(0x14a)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x515eda(0x13f)],BaseLayer=mars3d__namespace['layer'][_0x515eda(0x12b)];class EchartsLayer extends BaseLayer{constructor(_0x3baa6d={}){super(_0x3baa6d),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x515eda(0x138)](){const _0x5c3176=_0x515eda;return this[_0x5c3176(0x123)];}get['pointerEvents'](){const _0x195cb6=_0x515eda;return this[_0x195cb6(0x122)];}set['pointerEvents'](_0x45776a){const _0x1dbad9={_0x2c7d06:0x113,_0xb38ec6:0x11b,_0xd77878:0x140},_0x35a263=_0x515eda;this['_pointerEvents']=_0x45776a,this['_echartsContainer']&&(_0x45776a?this['_echartsContainer'][_0x35a263(0x11b)]['pointerEvents']=_0x35a263(_0x1dbad9._0x2c7d06):this['_echartsContainer'][_0x35a263(_0x1dbad9._0xb38ec6)][_0x35a263(_0x1dbad9._0xd77878)]='none');}['_setOptionsHook'](_0x591b3b,_0x24a8af){const _0x34443d={_0x3c4be4:0x134},_0x189cca=_0x515eda;this[_0x189cca(_0x34443d._0x3c4be4)](_0x591b3b);}['_showHook'](_0x2be2da){const _0x303c89={_0x2b7f2b:0x130},_0x40c844=_0x515eda;_0x2be2da?this[_0x40c844(_0x303c89._0x2b7f2b)]['style']['visibility']='visible':this[_0x40c844(0x130)]['style']['visibility']=_0x40c844(0x129);}['_mountedHook'](){const _0x473362={_0x4294b2:0x132,_0x31be52:0x14b},_0x3d4097=_0x515eda;this[_0x3d4097(_0x473362._0x4294b2)]['scene']['echartsDepthTest']=this[_0x3d4097(_0x473362._0x31be52)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x3d4097(0x13a)]['echartsFixedHeight']=this[_0x3d4097(0x14b)]['fixedHeight']??0x0;}['_addedHook'](){const _0x3d2c84={_0x5ea03e:0x130,_0xf25c23:0x13a},_0x5d982a=_0x515eda;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x5d982a(_0x3d2c84._0x5ea03e)]),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x5d982a(_0x3d2c84._0xf25c23)],this['setEchartsOption'](this['options']);}[_0x515eda(0x112)](){const _0x490c26={_0x21cc8d:0x123,_0x18a1ee:0x139,_0x2fd448:0x11e},_0x4d818e=_0x515eda;this[_0x4d818e(_0x490c26._0x21cc8d)]&&(this[_0x4d818e(0x123)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4d818e(_0x490c26._0x18a1ee)][_0x4d818e(_0x490c26._0x2fd448)](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x515eda(0x10e)](){const _0x5b1ce4={_0x4b697d:0x119,_0x35b865:0x139,_0x3cfec1:0x12d,_0x31bf15:0x11b},_0x15c5bc=_0x515eda,_0xdb99c2=mars3d__namespace['DomUtil']['create']('div',_0x15c5bc(_0x5b1ce4._0x4b697d),this['_map'][_0x15c5bc(_0x5b1ce4._0x35b865)]);return _0xdb99c2['id']=this['id'],_0xdb99c2['style']['position']='absolute',_0xdb99c2['style']['top']=_0x15c5bc(0x12d),_0xdb99c2['style']['left']=_0x15c5bc(_0x5b1ce4._0x3cfec1),_0xdb99c2[_0x15c5bc(_0x5b1ce4._0x31bf15)]['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0xdb99c2['style']['height']=this['_map']['scene'][_0x15c5bc(0x143)][_0x15c5bc(0x13e)]+'px',_0xdb99c2['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0xdb99c2['style']['zIndex']=this['options']['zIndex']??0x9,_0xdb99c2;}['resize'](){const _0x16c6f9={_0x287cf6:0x130,_0x25e76a:0x11b},_0x49bc4a=_0x515eda;if(!this[_0x49bc4a(0x123)])return;this[_0x49bc4a(_0x16c6f9._0x287cf6)][_0x49bc4a(_0x16c6f9._0x25e76a)]['width']=this['_map']['scene']['canvas'][_0x49bc4a(0x137)]+'px',this['_echartsContainer'][_0x49bc4a(0x11b)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x515eda(0x134)](_0xc0df14,_0x1cacfe,_0x44b3a3){const _0x7a40fc={_0x4b06de:0x10d},_0x1fcbaf=_0x515eda;this['_echartsInstance']&&(_0xc0df14={'mars3dMap':{},...mars3d__namespace[_0x1fcbaf(0x118)]['getAttrVal'](_0xc0df14,{'onlySimpleType':!![]})},delete _0xc0df14['eventParent'],this['_echartsInstance'][_0x1fcbaf(_0x7a40fc._0x4b06de)](_0xc0df14,_0x1cacfe,_0x44b3a3));}['getRectangle'](_0x28d7f4){const _0x35cee9={_0x84fadf:0x14b,_0x4d5ce5:0x147},_0x598da6={_0x19a405:0x126},_0x37e135={_0x1ac067:0x127},_0x415c03=_0x515eda;let _0xc66784,_0x1f079b,_0x571938,_0x376e0c;function _0x3f4304(_0x9945b3){const _0x2c3d8d=_0x2d9f;if(!Array[_0x2c3d8d(_0x37e135._0x1ac067)](_0x9945b3))return;const _0x549ab0=_0x9945b3[0x0]||0x0,_0x361c1a=_0x9945b3[0x1]||0x0;_0x549ab0!==0x0&&_0x361c1a!==0x0&&(_0xc66784===undefined?(_0xc66784=_0x549ab0,_0x1f079b=_0x549ab0,_0x571938=_0x361c1a,_0x376e0c=_0x361c1a):(_0xc66784=Math['min'](_0xc66784,_0x549ab0),_0x1f079b=Math['max'](_0x1f079b,_0x549ab0),_0x571938=Math[_0x2c3d8d(0x10b)](_0x571938,_0x361c1a),_0x376e0c=Math['max'](_0x376e0c,_0x361c1a)));}const _0x30ab42=this[_0x415c03(_0x35cee9._0x84fadf)][_0x415c03(_0x35cee9._0x4d5ce5)];_0x30ab42&&_0x30ab42['forEach'](_0xb62915=>{_0xb62915['data']&&_0xb62915['data']['forEach'](_0x5599f0=>{const _0x5c6259=_0x2d9f;if(_0x5599f0['value'])_0x3f4304(_0x5599f0['value']);else _0x5599f0[_0x5c6259(_0x598da6._0x19a405)]&&_0x5599f0['coords']['forEach'](_0x19158f=>{_0x3f4304(_0x19158f);});});});if(_0xc66784===0x0&&_0x571938===0x0&&_0x1f079b===0x0&&_0x376e0c===0x0)return null;return _0x28d7f4!==null&&_0x28d7f4!==void 0x0&&_0x28d7f4['isFormat']?{'xmin':_0xc66784,'xmax':_0x1f079b,'ymin':_0x571938,'ymax':_0x376e0c}:Cesium['Rectangle']['fromDegrees'](_0xc66784,_0x571938,_0x1f079b,_0x376e0c);}['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1){return this['_echartsInstance']['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1||this),this;}['onByQuery'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1){return this['_echartsInstance']['on'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1||this),this;}['off'](_0x1db154,_0x1e53c8,_0x1eadbc){return this['_echartsInstance']['off'](_0x1db154,_0x1e53c8,_0x1eadbc||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x515eda(0x115),EchartsLayer),mars3d__namespace['layer'][_0x515eda(0x12a)]=EchartsLayer,mars3d__namespace[_0x515eda(0x115)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x515eda(0x135)](function(_0x45e4e1){if(_0x45e4e1!=='default'&&!exports['hasOwnProperty'](_0x45e4e1))Object['defineProperty'](exports,_0x45e4e1,{'enumerable':!![],'get':function(){return echarts[_0x45e4e1];}});}),Object['defineProperty'](exports,_0x515eda(0x111),{'value':!![]});
'use strict';const _0x368bdc=_0x3fc2;(function(_0x56b76f,_0x224ede){const _0xee6d76={_0x5b50d:0x179,_0x93ab5b:0x163,_0x1b66f8:0x14c,_0x2fc96b:0x14b,_0x432df9:0x17c},_0x41571c=_0x3fc2,_0x2cf48b=_0x56b76f();while(!![]){try{const _0x44a17a=parseInt(_0x41571c(0x170))/0x1*(parseInt(_0x41571c(_0xee6d76._0x5b50d))/0x2)+parseInt(_0x41571c(0x15e))/0x3+parseInt(_0x41571c(_0xee6d76._0x93ab5b))/0x4*(parseInt(_0x41571c(0x161))/0x5)+-parseInt(_0x41571c(0x172))/0x6+-parseInt(_0x41571c(_0xee6d76._0x1b66f8))/0x7+parseInt(_0x41571c(_0xee6d76._0x2fc96b))/0x8*(parseInt(_0x41571c(0x17a))/0x9)+parseInt(_0x41571c(_0xee6d76._0x432df9))/0xa;if(_0x44a17a===_0x224ede)break;else _0x2cf48b['push'](_0x2cf48b['shift']());}catch(_0x4f53a9){_0x2cf48b['push'](_0x2cf48b['shift']());}}}(_0x390a,0xe14a3));function _interopNamespace(_0x357d22){const _0x4ff7c1={_0x22d9fe:0x14f},_0x814e6c={_0x4e85d5:0x160},_0x14ed51=_0x3fc2;if(_0x357d22&&_0x357d22['__esModule'])return _0x357d22;var _0x292ce4=Object['create'](null);return _0x357d22&&Object['keys'](_0x357d22)['forEach'](function(_0x5616f7){const _0x55073e=_0x3fc2;if(_0x5616f7!==_0x55073e(0x14f)){var _0x5af779=Object['getOwnPropertyDescriptor'](_0x357d22,_0x5616f7);Object[_0x55073e(_0x814e6c._0x4e85d5)](_0x292ce4,_0x5616f7,_0x5af779['get']?_0x5af779:{'enumerable':!![],'get':function(){return _0x357d22[_0x5616f7];}});}}),_0x292ce4[_0x14ed51(_0x4ff7c1._0x22d9fe)]=_0x357d22,_0x292ce4;}function _0x3fc2(_0x5a2aa7,_0x122d02){const _0x390aff=_0x390a();return _0x3fc2=function(_0x3fc21e,_0x2c64ed){_0x3fc21e=_0x3fc21e-0x14a;let _0x34b9f1=_0x390aff[_0x3fc21e];return _0x34b9f1;},_0x3fc2(_0x5a2aa7,_0x122d02);}function _0x390a(){const _0x5b8b4b=['container','getAttrVal','_mars3d_scene','eachComponent','_map','coords','globe','_mapOffset','2529896YmgTEA','12476821FnPOwY','coordinateSystem','LayerUtil','default','removeEventListener','setEchartsOption','0px','ellipsoid','pointerEvents','width','mode','_echartsInstance','top','ecInstance','_pointerEvents','off','getRectangle','dimensions','4234590rtpPcF','clientHeight','defineProperty','426905oyesef','visibility','20MGzvCG','getRoamTransform','echartsAutoHeight','series','scene','painter','zIndex','extendComponentModel','echartsFixedHeight','matrix','EllipsoidalOccluder','_api','请引入\x20echarts\x20库\x20','10Vhcmdm','mars3dMapRoam','9281574nOzhty','_mountedHook','canvas','layer','Util','style','_echartsContainer','262030UQwcML','9sUfJuE','scheduler','7872970ejOfri','getHeight','Cartesian3'];_0x390a=function(){return _0x5b8b4b;};return _0x390a();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x4ae20f,_0x5e6ea7){const _0x230cf4={_0x45ff9b:0x14a,_0x48ce82:0x16e},_0x3f7a64=_0x3fc2;this['_mars3d_scene']=_0x4ae20f,this['dimensions']=['lng','lat'],this[_0x3f7a64(_0x230cf4._0x45ff9b)]=[0x0,0x0],this[_0x3f7a64(_0x230cf4._0x48ce82)]=_0x5e6ea7;}['setMapOffset'](_0x4deec3){this['_mapOffset']=_0x4deec3;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x3f4816){const _0x4dcb10={_0x49a9cd:0x181,_0x1845d2:0x16b,_0x21a2d1:0x165,_0x259242:0x17d,_0x372fb5:0x17e,_0x3aaf00:0x16d,_0x1dfce3:0x153},_0x95c73=_0x3fc2,_0xfd9c98=this[_0x95c73(_0x4dcb10._0x49a9cd)],_0x263078=[NaN,NaN];let _0x13c032=_0xfd9c98[_0x95c73(_0x4dcb10._0x1845d2)];_0xfd9c98[_0x95c73(_0x4dcb10._0x21a2d1)]&&(_0x13c032=_0xfd9c98['globe'][_0x95c73(_0x4dcb10._0x259242)](Cesium$1['Cartographic']['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1])));const _0x52f894=Cesium$1[_0x95c73(_0x4dcb10._0x372fb5)]['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1],_0x13c032);if(!_0x52f894)return _0x263078;const _0x889adf=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0xfd9c98,_0x52f894);if(!_0x889adf)return _0x263078;if(_0xfd9c98['echartsDepthTest']&&_0xfd9c98[_0x95c73(0x156)]===Cesium$1['SceneMode']['SCENE3D']){const _0x2015cb=new Cesium$1[(_0x95c73(_0x4dcb10._0x3aaf00))](_0xfd9c98[_0x95c73(0x185)][_0x95c73(_0x4dcb10._0x1dfce3)],_0xfd9c98['camera']['positionWC']),_0x47ce92=_0x2015cb['isPointVisible'](_0x52f894);if(!_0x47ce92)return _0x263078;}return[_0x889adf['x']-this['_mapOffset'][0x0],_0x889adf['y']-this[_0x95c73(0x14a)][0x1]];}['getViewRect'](){const _0x4580d8=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x4580d8['getWidth'](),_0x4580d8['getHeight']());}[_0x368bdc(0x164)](){const _0x12312a=_0x368bdc;return echarts__namespace[_0x12312a(0x16c)]['create']();}}CompositeCoordinateSystem[_0x368bdc(0x15d)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x248596,_0x3db53e){const _0x56bbb5={_0x347f3e:0x17b,_0x30de98:0x182},_0x37cf6b=_0x368bdc;let _0x268638;const _0x16f9b9=_0x248596[_0x37cf6b(_0x56bbb5._0x347f3e)]['ecInstance']['_mars3d_scene'];_0x248596[_0x37cf6b(_0x56bbb5._0x30de98)]('mars3dMap',function(_0x387e64){const _0x43d8f3=_0x37cf6b,_0x69a033=_0x3db53e['getZr']()[_0x43d8f3(0x168)];if(!_0x69a033)return;!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x387e64['coordinateSystem']=_0x268638,_0x268638['setMapOffset'](_0x387e64['__mapOffset']||[0x0,0x0]);}),_0x248596['eachSeries'](function(_0x274ec3){const _0x3afc1f=_0x37cf6b;_0x274ec3['get']('coordinateSystem')==='mars3dMap'&&(!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x274ec3[_0x3afc1f(0x14d)]=_0x268638);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x368bdc(0x171),'update':'updateLayout'},function(_0xecb0ee,_0x268e70){}),echarts__namespace[_0x368bdc(0x16a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3297ab,_0x5eae7f){const _0x9de80={_0x2896a0:0x167,_0x30aa8c:0x17b},_0x4b876e=_0x368bdc;this['api']=_0x5eae7f,this[_0x4b876e(_0x9de80._0x2896a0)]=_0x3297ab[_0x4b876e(_0x9de80._0x30aa8c)][_0x4b876e(0x159)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x128135,_0x320e80){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x43687b,_0x898957,_0x4cabc9){},'dispose':function(_0x5d46b9){const _0x3295aa=_0x368bdc;this['scene']['postRender'][_0x3295aa(0x150)](this['moveHandler'],this);}});else throw new Error(_0x368bdc(0x16f));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3cc69b={}){const _0x2f8104={_0x5a09e3:0x15a},_0x486d51=_0x368bdc;super(_0x3cc69b),this[_0x486d51(_0x2f8104._0x5a09e3)]=this['options']['pointerEvents'];}get[_0x368bdc(0x175)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x368bdc(0x154)](_0x20f183){const _0x5bf442=_0x368bdc;this['_pointerEvents']=_0x20f183,this[_0x5bf442(0x178)]&&(_0x20f183?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x5bf442(0x154)]='none');}['_setOptionsHook'](_0x2f8993,_0x582ad5){const _0x45e456=_0x368bdc;this[_0x45e456(0x151)](_0x2f8993);}['_showHook'](_0x3fc345){const _0x58d57e={_0x144527:0x177,_0x2cf6d1:0x162},_0x5f1b59=_0x368bdc;_0x3fc345?this['_echartsContainer'][_0x5f1b59(_0x58d57e._0x144527)]['visibility']='visible':this['_echartsContainer']['style'][_0x5f1b59(_0x58d57e._0x2cf6d1)]='hidden';}[_0x368bdc(0x173)](){const _0x1c0f58=_0x368bdc;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x1c0f58(0x183)]['scene'][_0x1c0f58(0x165)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x799e8a=_0x368bdc;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x799e8a(0x157)]=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x799e8a(0x167)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x30b2f9={_0x3cbc37:0x157},_0x58d5d4=_0x368bdc;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x58d5d4(_0x30b2f9._0x3cbc37)]['dispose'](),delete this[_0x58d5d4(0x157)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x245e9c={_0x38b5f4:0x177,_0x372a6d:0x152,_0x14af9a:0x155},_0x30d846=_0x368bdc,_0x591a0a=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0x30d846(0x17f)]);return _0x591a0a['id']=this['id'],_0x591a0a['style']['position']='absolute',_0x591a0a['style'][_0x30d846(0x158)]='0px',_0x591a0a[_0x30d846(_0x245e9c._0x38b5f4)]['left']=_0x30d846(_0x245e9c._0x372a6d),_0x591a0a[_0x30d846(0x177)][_0x30d846(_0x245e9c._0x14af9a)]=this['_map']['scene']['canvas']['clientWidth']+'px',_0x591a0a['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x591a0a['style'][_0x30d846(0x154)]=this['_pointerEvents']?'all':'none',_0x591a0a['style']['zIndex']=this['options'][_0x30d846(0x169)]??0x9,_0x591a0a;}['resize'](){const _0x119f96={_0x8cc515:0x157,_0x5cbd03:0x15f},_0xf10107=_0x368bdc;if(!this[_0xf10107(_0x119f96._0x8cc515)])return;this['_echartsContainer']['style']['width']=this[_0xf10107(0x183)]['scene']['canvas']['clientWidth']+'px',this[_0xf10107(0x178)][_0xf10107(0x177)]['height']=this['_map']['scene'][_0xf10107(0x174)][_0xf10107(_0x119f96._0x5cbd03)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x82cca0,_0x131c92,_0x4ca06f){const _0x17ddfd=_0x368bdc;this['_echartsInstance']&&(_0x82cca0={'mars3dMap':{},...mars3d__namespace[_0x17ddfd(0x176)][_0x17ddfd(0x180)](_0x82cca0,{'onlySimpleType':!![]})},delete _0x82cca0['eventParent'],this['_echartsInstance']['setOption'](_0x82cca0,_0x131c92,_0x4ca06f));}[_0x368bdc(0x15c)](_0x40bff4){const _0x2fafea=_0x368bdc;let _0x3173a2,_0x14ee4e,_0x93a37d,_0x1826b3;function _0x29c157(_0xbe87c3){if(!Array['isArray'](_0xbe87c3))return;const _0x33e702=_0xbe87c3[0x0]||0x0,_0x351d64=_0xbe87c3[0x1]||0x0;_0x33e702!==0x0&&_0x351d64!==0x0&&(_0x3173a2===undefined?(_0x3173a2=_0x33e702,_0x14ee4e=_0x33e702,_0x93a37d=_0x351d64,_0x1826b3=_0x351d64):(_0x3173a2=Math['min'](_0x3173a2,_0x33e702),_0x14ee4e=Math['max'](_0x14ee4e,_0x33e702),_0x93a37d=Math['min'](_0x93a37d,_0x351d64),_0x1826b3=Math['max'](_0x1826b3,_0x351d64)));}const _0x1d8014=this['options'][_0x2fafea(0x166)];_0x1d8014&&_0x1d8014['forEach'](_0x456f58=>{const _0x52a270={_0x156ae4:0x184};_0x456f58['data']&&_0x456f58['data']['forEach'](_0x327516=>{const _0x201a93=_0x3fc2;if(_0x327516['value'])_0x29c157(_0x327516['value']);else _0x327516[_0x201a93(_0x52a270._0x156ae4)]&&_0x327516['coords']['forEach'](_0x55af98=>{_0x29c157(_0x55af98);});});});if(_0x3173a2===0x0&&_0x93a37d===0x0&&_0x14ee4e===0x0&&_0x1826b3===0x0)return null;return _0x40bff4!==null&&_0x40bff4!==void 0x0&&_0x40bff4['isFormat']?{'xmin':_0x3173a2,'xmax':_0x14ee4e,'ymin':_0x93a37d,'ymax':_0x1826b3}:Cesium['Rectangle']['fromDegrees'](_0x3173a2,_0x93a37d,_0x14ee4e,_0x1826b3);}['on'](_0x1b9369,_0x221f25,_0x4f5f1c){return this['_echartsInstance']['on'](_0x1b9369,_0x221f25,_0x4f5f1c||this),this;}['onByQuery'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d){return this['_echartsInstance']['on'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d||this),this;}['off'](_0x36413f,_0x53b660,_0x484948){const _0x471d52={_0xeb7ed5:0x15b},_0x58adac=_0x368bdc;return this['_echartsInstance'][_0x58adac(_0x471d52._0xeb7ed5)](_0x36413f,_0x53b660,_0x484948||this),this;}}mars3d__namespace[_0x368bdc(0x14e)]['register']('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x18429f){const _0x216a7e={_0x520a42:0x160},_0x5a19a8=_0x368bdc;if(_0x18429f!=='default'&&!exports['hasOwnProperty'](_0x18429f))Object[_0x5a19a8(_0x216a7e._0x520a42)](exports,_0x18429f,{'enumerable':!![],'get':function(){return echarts[_0x18429f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.6.12",
"version": "3.6.13",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.12"
"mars3d": "~3.6.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