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.0 to 3.7.1

8

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.7.0
* 编译日期:2024-01-15 15:59:39
* 版本信息:v3.7.1
* 编译日期:2024-01-23 21:36:57
* 版权所有:Copyright by 火星科技 http://mars3d.cn
* 使用单位:免费公开版 ,2023-03-17
* 使用单位:免费公开版 ,2024-01-15
*/

@@ -14,3 +14,3 @@ (function (global, factory) {

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0xcec212=_0x3647;(function(_0x3eb4dc,_0xb6bef){const _0x378aa0={_0x462e1e:0x8a,_0x34b3e6:0x9f,_0x43bd74:0xaa,_0x526f65:0x92,_0x43e980:0x6f,_0x43dd4f:0x7c},_0x16a701=_0x3647,_0x23b633=_0x3eb4dc();while(!![]){try{const _0x262ed1=-parseInt(_0x16a701(_0x378aa0._0x462e1e))/0x1+parseInt(_0x16a701(_0x378aa0._0x34b3e6))/0x2*(-parseInt(_0x16a701(_0x378aa0._0x43bd74))/0x3)+parseInt(_0x16a701(0x86))/0x4+parseInt(_0x16a701(_0x378aa0._0x526f65))/0x5+parseInt(_0x16a701(_0x378aa0._0x43e980))/0x6+parseInt(_0x16a701(_0x378aa0._0x43dd4f))/0x7+parseInt(_0x16a701(0x95))/0x8*(-parseInt(_0x16a701(0x98))/0x9);if(_0x262ed1===_0xb6bef)break;else _0x23b633['push'](_0x23b633['shift']());}catch(_0x1dd1ff){_0x23b633['push'](_0x23b633['shift']());}}}(_0x4a3a,0xe097e));function _interopNamespace(_0x1139a4){const _0x219a01={_0x348978:0x7e},_0x4c5295=_0x3647;if(_0x1139a4&&_0x1139a4['__esModule'])return _0x1139a4;var _0x4a33e8=Object['create'](null);return _0x1139a4&&Object[_0x4c5295(0x9d)](_0x1139a4)['forEach'](function(_0x3c46ba){const _0x2f94b5=_0x4c5295;if(_0x3c46ba!=='default'){var _0x4b59fe=Object['getOwnPropertyDescriptor'](_0x1139a4,_0x3c46ba);Object['defineProperty'](_0x4a33e8,_0x3c46ba,_0x4b59fe[_0x2f94b5(_0x219a01._0x348978)]?_0x4b59fe:{'enumerable':!![],'get':function(){return _0x1139a4[_0x3c46ba];}});}}),_0x4a33e8['default']=_0x1139a4,_0x4a33e8;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x3647(_0xa7f8fa,_0x3d4f21){const _0x4a3a09=_0x4a3a();return _0x3647=function(_0x36473d,_0x31d8ac){_0x36473d=_0x36473d-0x6c;let _0x3cbdcf=_0x4a3a09[_0x36473d];return _0x3cbdcf;},_0x3647(_0xa7f8fa,_0x3d4f21);}const Cesium$1=mars3d__namespace[_0xcec212(0x81)];class CompositeCoordinateSystem{constructor(_0xc4bcd9,_0x20f260){const _0x40251e={_0x160f9e:0xa3},_0xe0f570=_0xcec212;this['_mars3d_scene']=_0xc4bcd9,this[_0xe0f570(_0x40251e._0x160f9e)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x20f260;}[_0xcec212(0x77)](_0x2b1919){this['_mapOffset']=_0x2b1919;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5b321e){const _0x25b3ed={_0x433a9a:0x96},_0x117ef7=_0xcec212,_0x32ab4d=this['_mars3d_scene'],_0xa6078e=[NaN,NaN];let _0x1daf42=_0x32ab4d['echartsFixedHeight'];_0x32ab4d['echartsAutoHeight']&&(_0x1daf42=_0x32ab4d['globe']['getHeight'](Cesium$1['Cartographic'][_0x117ef7(0x97)](_0x5b321e[0x0],_0x5b321e[0x1])));const _0x39c2db=Cesium$1['Cartesian3']['fromDegrees'](_0x5b321e[0x0],_0x5b321e[0x1],_0x1daf42);if(!_0x39c2db)return _0xa6078e;const _0x14bd5f=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x32ab4d,_0x39c2db);if(!_0x14bd5f)return _0xa6078e;if(_0x32ab4d[_0x117ef7(_0x25b3ed._0x433a9a)]&&_0x32ab4d['mode']===Cesium$1['SceneMode'][_0x117ef7(0x6e)]){const _0x15f20=new Cesium$1[(_0x117ef7(0x84))](_0x32ab4d[_0x117ef7(0x8d)]['ellipsoid'],_0x32ab4d['camera']['positionWC']),_0x942be5=_0x15f20['isPointVisible'](_0x39c2db);if(!_0x942be5)return _0xa6078e;}return[_0x14bd5f['x']-this['_mapOffset'][0x0],_0x14bd5f['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x306340={_0x2c3ca2:0x88},_0x316c3a=_0xcec212,_0x400ef1=this['_api'];return new echarts__namespace[(_0x316c3a(0x89))]['BoundingRect'](0x0,0x0,_0x400ef1['getWidth'](),_0x400ef1[_0x316c3a(_0x306340._0x2c3ca2)]());}['getRoamTransform'](){const _0x4b4515={_0x1e8ab9:0xa7},_0x288175=_0xcec212;return echarts__namespace[_0x288175(0x75)][_0x288175(_0x4b4515._0x1e8ab9)]();}}function _0x4a3a(){const _0x28aeb9=['off','6oCurir','_mars3d_scene','_mountedHook','SCENE3D','7900044DKwttW','mars3dMap','init','isArray','default','echarts','matrix','eachSeries','setMapOffset','BaseLayer','options','canvas','style','7388157LfVpPw','0px','get','height','visible','Cesium','registerCoordinateSystem','ecInstance','EllipsoidalOccluder','mars3d-echarts','7091056amQFlx','_echartsContainer','getHeight','graphic','1762293kqKpGo','pointerEvents','clampToGround','globe','none','api','setOption','echartsFixedHeight','4316375namjIN','_setOptionsHook','removeChild','53608RyIcvI','echartsDepthTest','fromDegrees','2115xORxas','forEach','coordinateSystem','Util','_echartsInstance','keys','_map','751202wrlgiw','extendComponentModel','top','scene','dimensions','echartsAutoHeight','absolute','width','create','onByQuery'];_0x4a3a=function(){return _0x28aeb9;};return _0x4a3a();}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0xcec212(0xa7)]=function(_0x1d489e,_0x263bcf){const _0x2897c0={_0x2c20c5:0x7e},_0x1a824a=_0xcec212;let _0x59af26;const _0x42d9a9=_0x1d489e['scheduler']['ecInstance']['_mars3d_scene'];_0x1d489e['eachComponent']('mars3dMap',function(_0x2d2907){const _0x27ae12=_0x263bcf['getZr']()['painter'];if(!_0x27ae12)return;!_0x59af26&&(_0x59af26=new CompositeCoordinateSystem(_0x42d9a9,_0x263bcf)),_0x2d2907['coordinateSystem']=_0x59af26,_0x59af26['setMapOffset'](_0x2d2907['__mapOffset']||[0x0,0x0]);}),_0x1d489e[_0x1a824a(0x76)](function(_0x361f2b){const _0x3ed50d=_0x1a824a;_0x361f2b[_0x3ed50d(_0x2897c0._0x2c20c5)]('coordinateSystem')==='mars3dMap'&&(!_0x59af26&&(_0x59af26=new CompositeCoordinateSystem(_0x42d9a9,_0x263bcf)),_0x361f2b[_0x3ed50d(0x9a)]=_0x59af26);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0xcec212(0x82)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x317fdf,_0x4e1cf5){}),echarts__namespace[_0xcec212(0xa0)]({'type':_0xcec212(0x70),'getBMap':function(){const _0x19d74f=_0xcec212;return this[_0x19d74f(0x6c)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x477bb1,_0x1e9eeb){const _0x4c4f9d={_0x1b8f57:0xa2},_0x3da647=_0xcec212;this[_0x3da647(0x8f)]=_0x1e9eeb,this[_0x3da647(_0x4c4f9d._0x1b8f57)]=_0x477bb1['scheduler'][_0x3da647(0x83)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x428960,_0x146ae6){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x1d4bec,_0x20f7b9,_0x4daef0){},'dispose':function(_0x46e8bb){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0xcec212(0x78)];class EchartsLayer extends BaseLayer{constructor(_0x4a8a06={}){const _0xd84c7a=_0xcec212;super(_0x4a8a06),this['_pointerEvents']=this['options'][_0xd84c7a(0x8b)];}get['layer'](){return this['_echartsInstance'];}get[_0xcec212(0x8b)](){return this['_pointerEvents'];}set[_0xcec212(0x8b)](_0x5e9ca5){const _0x78b446={_0x4346bf:0x8b,_0x45e965:0x8e},_0x3f5262=_0xcec212;this['_pointerEvents']=_0x5e9ca5,this['_echartsContainer']&&(_0x5e9ca5?this['_echartsContainer'][_0x3f5262(0x7b)]['pointerEvents']='all':this['_echartsContainer']['style'][_0x3f5262(_0x78b446._0x4346bf)]=_0x3f5262(_0x78b446._0x45e965));}[_0xcec212(0x93)](_0x1c9e92,_0x4649da){this['setEchartsOption'](_0x1c9e92);}['_showHook'](_0x4e2455){const _0x974402=_0xcec212;_0x4e2455?this['_echartsContainer']['style']['visibility']=_0x974402(0x80):this['_echartsContainer'][_0x974402(0x7b)]['visibility']='hidden';}[_0xcec212(0x6d)](){const _0x3f9164={_0x2056f3:0xa2,_0x4e40e7:0x79,_0x2b6cc9:0x91},_0x32d9b6=_0xcec212;this['_map'][_0x32d9b6(_0x3f9164._0x2056f3)]['echartsDepthTest']=this['options']['depthTest']??!![],this['_map'][_0x32d9b6(_0x3f9164._0x2056f3)][_0x32d9b6(0xa4)]=this[_0x32d9b6(_0x3f9164._0x4e40e7)][_0x32d9b6(0x8c)]??![],this['_map']['scene'][_0x32d9b6(_0x3f9164._0x2b6cc9)]=this[_0x32d9b6(0x79)]['fixedHeight']??0x0;}['_addedHook'](){const _0x446d26={_0x52c69d:0x71,_0x25fba0:0xa2},_0x36d08a=_0xcec212;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x36d08a(0x9c)]=echarts__namespace[_0x36d08a(_0x446d26._0x52c69d)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x36d08a(_0x446d26._0x25fba0)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x3fcbb0={_0x217c4c:0x94},_0x581d2a=_0xcec212;this[_0x581d2a(0x9c)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this[_0x581d2a(0x87)]&&(this[_0x581d2a(0x9e)]['container'][_0x581d2a(_0x3fcbb0._0x217c4c)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x46c30b={_0x4db21f:0xa7,_0x242af4:0x7d,_0xce4a4d:0xa6,_0x18bdc1:0xa2},_0x429bf3=_0xcec212,_0x4a1659=mars3d__namespace['DomUtil'][_0x429bf3(_0x46c30b._0x4db21f)]('div',_0x429bf3(0x85),this['_map']['container']);return _0x4a1659['id']=this['id'],_0x4a1659['style']['position']=_0x429bf3(0xa5),_0x4a1659['style'][_0x429bf3(0xa1)]='0px',_0x4a1659['style']['left']=_0x429bf3(_0x46c30b._0x242af4),_0x4a1659['style'][_0x429bf3(_0x46c30b._0xce4a4d)]=this['_map'][_0x429bf3(0xa2)]['canvas']['clientWidth']+'px',_0x4a1659[_0x429bf3(0x7b)]['height']=this[_0x429bf3(0x9e)][_0x429bf3(_0x46c30b._0x18bdc1)]['canvas']['clientHeight']+'px',_0x4a1659[_0x429bf3(0x7b)]['pointerEvents']=this['_pointerEvents']?'all':'none',_0x4a1659[_0x429bf3(0x7b)]['zIndex']=this['options']['zIndex']??0x9,_0x4a1659;}['resize'](){const _0x1f955a={_0x26b046:0x87,_0x5e3e4b:0x7b,_0x10fad5:0x9e,_0x4fd324:0x7a},_0x4511fe=_0xcec212;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x4511fe(0xa6)]=this['_map'][_0x4511fe(0xa2)]['canvas']['clientWidth']+'px',this[_0x4511fe(_0x1f955a._0x26b046)][_0x4511fe(_0x1f955a._0x5e3e4b)][_0x4511fe(0x7f)]=this[_0x4511fe(_0x1f955a._0x10fad5)][_0x4511fe(0xa2)][_0x4511fe(_0x1f955a._0x4fd324)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x37289c,_0x59be2b,_0x4b77fe){const _0x78ed67={_0x45437b:0x9b},_0x1dbdb6=_0xcec212;this[_0x1dbdb6(0x9c)]&&(_0x37289c={'mars3dMap':{},...mars3d__namespace[_0x1dbdb6(_0x78ed67._0x45437b)]['getAttrVal'](_0x37289c,{'onlySimpleType':!![]})},delete _0x37289c['eventParent'],this['_echartsInstance'][_0x1dbdb6(0x90)](_0x37289c,_0x59be2b,_0x4b77fe));}['getRectangle'](_0x14cb5f){const _0x2dd764={_0x4476ff:0x97},_0x2465c6={_0x154348:0x99},_0x10f310=_0xcec212;let _0x342758,_0x52edb3,_0x547de4,_0x5e6e6e;function _0x28e9a4(_0x1658ab){const _0xecef1=_0x3647;if(!Array[_0xecef1(0x72)](_0x1658ab))return;const _0x4a140e=_0x1658ab[0x0]||0x0,_0xdf542b=_0x1658ab[0x1]||0x0;_0x4a140e!==0x0&&_0xdf542b!==0x0&&(_0x342758===undefined?(_0x342758=_0x4a140e,_0x52edb3=_0x4a140e,_0x547de4=_0xdf542b,_0x5e6e6e=_0xdf542b):(_0x342758=Math['min'](_0x342758,_0x4a140e),_0x52edb3=Math['max'](_0x52edb3,_0x4a140e),_0x547de4=Math['min'](_0x547de4,_0xdf542b),_0x5e6e6e=Math['max'](_0x5e6e6e,_0xdf542b)));}const _0x4d2dbd=this[_0x10f310(0x79)]['series'];_0x4d2dbd&&_0x4d2dbd['forEach'](_0x13f6f8=>{_0x13f6f8['data']&&_0x13f6f8['data']['forEach'](_0x4dddec=>{const _0x3900e2=_0x3647;if(_0x4dddec['value'])_0x28e9a4(_0x4dddec['value']);else _0x4dddec['coords']&&_0x4dddec['coords'][_0x3900e2(_0x2465c6._0x154348)](_0x31f96a=>{_0x28e9a4(_0x31f96a);});});});if(_0x342758===0x0&&_0x547de4===0x0&&_0x52edb3===0x0&&_0x5e6e6e===0x0)return null;return _0x14cb5f!==null&&_0x14cb5f!==void 0x0&&_0x14cb5f['isFormat']?{'xmin':_0x342758,'xmax':_0x52edb3,'ymin':_0x547de4,'ymax':_0x5e6e6e}:Cesium['Rectangle'][_0x10f310(_0x2dd764._0x4476ff)](_0x342758,_0x547de4,_0x52edb3,_0x5e6e6e);}['on'](_0x1db0f3,_0x42b79c,_0x4689f6){const _0x3f8fc8={_0x49ffbe:0x9c},_0x555387=_0xcec212;return this[_0x555387(_0x3f8fc8._0x49ffbe)]['on'](_0x1db0f3,_0x42b79c,_0x4689f6||this),this;}[_0xcec212(0xa8)](_0x3e8326,_0xf3d34d,_0x23c05b,_0xf7681b){return this['_echartsInstance']['on'](_0x3e8326,_0xf3d34d,_0x23c05b,_0xf7681b||this),this;}[_0xcec212(0xa9)](_0x4fcf2f,_0xaeac01,_0x2f57e7){const _0x4d3fdf=_0xcec212;return this['_echartsInstance'][_0x4d3fdf(0xa9)](_0x4fcf2f,_0xaeac01,_0x2f57e7||this),this;}}mars3d__namespace['LayerUtil']['register'](_0xcec212(0x74),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace[_0xcec212(0x74)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0xcec212(0x99)](function(_0x1ca8d9){const _0x4a0380={_0x30ad2a:0x73},_0x3a459a=_0xcec212;if(_0x1ca8d9!==_0x3a459a(_0x4a0380._0x30ad2a)&&!exports['hasOwnProperty'](_0x1ca8d9))Object['defineProperty'](exports,_0x1ca8d9,{'enumerable':!![],'get':function(){return echarts[_0x1ca8d9];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';const _0x562891=_0x5697;(function(_0x4a878b,_0x52dc1c){const _0x123168={_0x40e7b9:0x171,_0x2a6843:0x166,_0x2b3a54:0x15e,_0x2a83a8:0x16c,_0x528436:0x167},_0x2ecaf9=_0x5697,_0x2c5e06=_0x4a878b();while(!![]){try{const _0x29aa61=-parseInt(_0x2ecaf9(0x163))/0x1+parseInt(_0x2ecaf9(0x17f))/0x2+parseInt(_0x2ecaf9(0x18c))/0x3+parseInt(_0x2ecaf9(_0x123168._0x40e7b9))/0x4+-parseInt(_0x2ecaf9(_0x123168._0x2a6843))/0x5+parseInt(_0x2ecaf9(_0x123168._0x2b3a54))/0x6*(-parseInt(_0x2ecaf9(_0x123168._0x2a83a8))/0x7)+-parseInt(_0x2ecaf9(_0x123168._0x528436))/0x8*(parseInt(_0x2ecaf9(0x152))/0x9);if(_0x29aa61===_0x52dc1c)break;else _0x2c5e06['push'](_0x2c5e06['shift']());}catch(_0x5381c6){_0x2c5e06['push'](_0x2c5e06['shift']());}}}(_0x1b38,0xdac37));function _interopNamespace(_0x366a0d){const _0x20a7b1={_0x8bd59e:0x189},_0x3ceb24=_0x5697;if(_0x366a0d&&_0x366a0d[_0x3ceb24(_0x20a7b1._0x8bd59e)])return _0x366a0d;var _0x30bf0b=Object[_0x3ceb24(0x16a)](null);return _0x366a0d&&Object['keys'](_0x366a0d)[_0x3ceb24(0x175)](function(_0x531591){const _0x2bbf89=_0x3ceb24;if(_0x531591!=='default'){var _0x3d8321=Object['getOwnPropertyDescriptor'](_0x366a0d,_0x531591);Object[_0x2bbf89(0x179)](_0x30bf0b,_0x531591,_0x3d8321[_0x2bbf89(0x180)]?_0x3d8321:{'enumerable':!![],'get':function(){return _0x366a0d[_0x531591];}});}}),_0x30bf0b[_0x3ceb24(0x18f)]=_0x366a0d,_0x30bf0b;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x1b38(){const _0x358ba7=['setOption','_pointerEvents','eachSeries','__esModule','extendComponentModel','coords','4672635swQTPC','ecInstance','_map','default','matrix','keys','min','setEchartsOption','_mapOffset','getZr','div','dimensions','63mlNklj','fromDegrees','updateLayout','SceneTransforms','_mars3d_scene','globe','dispatchAction','EchartsLayer','positionWC','_echartsInstance','onByQuery','pointerEvents','6YwlecV','options','camera','isFormat','echartsAutoHeight','141088WllzUj','layer','_showHook','2191180gWdVpY','2734304Jvqiif','lng','DomUtil','create','_createChartOverlay','788809LKABXT','isPointVisible','visibility','visible','off','5134768qYRUPo','style','mars3dMap','_api','forEach','Util','resize','width','defineProperty','_echartsContainer','hidden','hasOwnProperty','moveHandler','echartsDepthTest','2278690KYdNbs','get','scene','_setOptionsHook','canvas','init','none'];_0x1b38=function(){return _0x358ba7;};return _0x1b38();}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2a96f7,_0x375975){const _0x2f8c1a={_0x30bb6a:0x156,_0x1ab62a:0x151,_0x57bfbc:0x14e,_0x3cc00d:0x174},_0x14d7ca=_0x5697;this[_0x14d7ca(_0x2f8c1a._0x30bb6a)]=_0x2a96f7,this[_0x14d7ca(_0x2f8c1a._0x1ab62a)]=[_0x14d7ca(0x168),'lat'],this[_0x14d7ca(_0x2f8c1a._0x57bfbc)]=[0x0,0x0],this[_0x14d7ca(_0x2f8c1a._0x3cc00d)]=_0x375975;}['setMapOffset'](_0x3ba8b3){this['_mapOffset']=_0x3ba8b3;}['getBMap'](){const _0x381880={_0x50b56b:0x156},_0x59c95d=_0x5697;return this[_0x59c95d(_0x381880._0x50b56b)];}['dataToPoint'](_0x38c994){const _0x7f6591={_0x430e1e:0x156,_0xcd02ae:0x157,_0x5774b1:0x153,_0x1ccb9b:0x155,_0x3dfbd5:0x17e,_0x271c7b:0x15a,_0x344b75:0x16d,_0x17e99b:0x14e},_0x534d5b=_0x5697,_0x5285bd=this[_0x534d5b(_0x7f6591._0x430e1e)],_0x3b92a4=[NaN,NaN];let _0x4e7236=_0x5285bd['echartsFixedHeight'];_0x5285bd['echartsAutoHeight']&&(_0x4e7236=_0x5285bd[_0x534d5b(_0x7f6591._0xcd02ae)]['getHeight'](Cesium$1['Cartographic'][_0x534d5b(0x153)](_0x38c994[0x0],_0x38c994[0x1])));const _0x4b609d=Cesium$1['Cartesian3'][_0x534d5b(_0x7f6591._0x5774b1)](_0x38c994[0x0],_0x38c994[0x1],_0x4e7236);if(!_0x4b609d)return _0x3b92a4;const _0x49935e=Cesium$1[_0x534d5b(_0x7f6591._0x1ccb9b)]['wgs84ToWindowCoordinates'](_0x5285bd,_0x4b609d);if(!_0x49935e)return _0x3b92a4;if(_0x5285bd[_0x534d5b(_0x7f6591._0x3dfbd5)]&&_0x5285bd['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x58303b=new Cesium$1['EllipsoidalOccluder'](_0x5285bd['globe']['ellipsoid'],_0x5285bd[_0x534d5b(0x160)][_0x534d5b(_0x7f6591._0x271c7b)]),_0x17e7de=_0x58303b[_0x534d5b(_0x7f6591._0x344b75)](_0x4b609d);if(!_0x17e7de)return _0x3b92a4;}return[_0x49935e['x']-this[_0x534d5b(_0x7f6591._0x17e99b)][0x0],_0x49935e['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x4ce8ed={_0x5e55de:0x174},_0x239db3=_0x5697,_0x1bdebd=this[_0x239db3(_0x4ce8ed._0x5e55de)];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x1bdebd['getWidth'](),_0x1bdebd['getHeight']());}['getRoamTransform'](){const _0x3367e7=_0x5697;return echarts__namespace[_0x3367e7(0x190)]['create']();}}CompositeCoordinateSystem[_0x562891(0x151)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x2120ef,_0x4badf5){const _0x18fed2={_0xd4d10d:0x173},_0x341ed8={_0x43f72d:0x180},_0x7620f0=_0x562891;let _0x4475cf;const _0x3e78fa=_0x2120ef['scheduler'][_0x7620f0(0x18d)]['_mars3d_scene'];_0x2120ef['eachComponent'](_0x7620f0(_0x18fed2._0xd4d10d),function(_0x177446){const _0x28791e=_0x7620f0,_0x3a474a=_0x4badf5[_0x28791e(0x14f)]()['painter'];if(!_0x3a474a)return;!_0x4475cf&&(_0x4475cf=new CompositeCoordinateSystem(_0x3e78fa,_0x4badf5)),_0x177446['coordinateSystem']=_0x4475cf,_0x4475cf['setMapOffset'](_0x177446['__mapOffset']||[0x0,0x0]);}),_0x2120ef[_0x7620f0(0x188)](function(_0x466cf4){const _0x1f2d7b=_0x7620f0;_0x466cf4[_0x1f2d7b(_0x341ed8._0x43f72d)]('coordinateSystem')==='mars3dMap'&&(!_0x4475cf&&(_0x4475cf=new CompositeCoordinateSystem(_0x3e78fa,_0x4badf5)),_0x466cf4['coordinateSystem']=_0x4475cf);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x562891(0x184)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x562891(0x154)},function(_0x5900c6,_0xe4fab3){}),echarts__namespace[_0x562891(0x18a)]({'type':'mars3dMap','getBMap':function(){const _0x5c21d5={_0x4e987e:0x156},_0x43ac98=_0x562891;return this[_0x43ac98(_0x5c21d5._0x4e987e)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x13c56b,_0x48c919){const _0x98653c={_0x18ab6a:0x181},_0x3b512a=_0x562891;this['api']=_0x48c919,this[_0x3b512a(_0x98653c._0x18ab6a)]=_0x13c56b['scheduler']['ecInstance']['_mars3d_scene'],this[_0x3b512a(_0x98653c._0x18ab6a)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x2a2ad1,_0x5af946){const _0x2a9d11=_0x562891;this['api'][_0x2a9d11(0x158)]({'type':'mars3dMapRoam'});},'render':function(_0x2f24b4,_0x27b76f,_0x170d9c){},'dispose':function(_0x1449d1){const _0x285909={_0x385827:0x17d},_0x5c3d92=_0x562891;this['scene']['postRender']['removeEventListener'](this[_0x5c3d92(_0x285909._0x385827)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x5697(_0x56c812,_0x70a687){const _0x1b3826=_0x1b38();return _0x5697=function(_0x569774,_0x171736){_0x569774=_0x569774-0x14e;let _0x2646bd=_0x1b3826[_0x569774];return _0x2646bd;},_0x5697(_0x56c812,_0x70a687);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3bafcb={}){const _0x22cfd5={_0x1389a5:0x15d},_0x3e9dba=_0x562891;super(_0x3bafcb),this['_pointerEvents']=this[_0x3e9dba(0x15f)][_0x3e9dba(_0x22cfd5._0x1389a5)];}get[_0x562891(0x164)](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x6c8209={_0x389548:0x187},_0x2933ea=_0x562891;return this[_0x2933ea(_0x6c8209._0x389548)];}set[_0x562891(0x15d)](_0xc8b99f){const _0x345990={_0x2f1cd4:0x15d,_0x520d0e:0x15d,_0xfc075e:0x185},_0x2420cd=_0x562891;this['_pointerEvents']=_0xc8b99f,this['_echartsContainer']&&(_0xc8b99f?this['_echartsContainer']['style'][_0x2420cd(_0x345990._0x2f1cd4)]='all':this[_0x2420cd(0x17a)]['style'][_0x2420cd(_0x345990._0x520d0e)]=_0x2420cd(_0x345990._0xfc075e));}[_0x562891(0x182)](_0x1e2a07,_0x43d4c1){this['setEchartsOption'](_0x1e2a07);}[_0x562891(0x165)](_0x3ce967){const _0xfcf863={_0x3af9de:0x16f,_0x5bfc0f:0x16e},_0x395834=_0x562891;_0x3ce967?this['_echartsContainer'][_0x395834(0x172)]['visibility']=_0x395834(_0xfcf863._0x3af9de):this['_echartsContainer']['style'][_0x395834(_0xfcf863._0x5bfc0f)]=_0x395834(0x17b);}['_mountedHook'](){const _0x288bcc={_0x209365:0x18e,_0x81eb19:0x162,_0x3d96a7:0x181},_0x600a06=_0x562891;this[_0x600a06(_0x288bcc._0x209365)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene'][_0x600a06(_0x288bcc._0x81eb19)]=this['options']['clampToGround']??![],this['_map'][_0x600a06(_0x288bcc._0x3d96a7)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x2528a7=_0x562891;this[_0x2528a7(0x17a)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x2528a7(0x17a)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x2528a7(0x193)](this['options']);}['_removedHook'](){this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x562891(0x16b)](){const _0xcbd10b={_0x40b810:0x169,_0x160859:0x150,_0x29171e:0x172},_0x1a0b4f=_0x562891,_0xe87f6b=mars3d__namespace[_0x1a0b4f(_0xcbd10b._0x40b810)]['create'](_0x1a0b4f(_0xcbd10b._0x160859),'mars3d-echarts',this[_0x1a0b4f(0x18e)]['container']);return _0xe87f6b['id']=this['id'],_0xe87f6b['style']['position']='absolute',_0xe87f6b[_0x1a0b4f(0x172)]['top']='0px',_0xe87f6b['style']['left']='0px',_0xe87f6b['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0xe87f6b['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0xe87f6b[_0x1a0b4f(_0xcbd10b._0x29171e)][_0x1a0b4f(0x15d)]=this['_pointerEvents']?'all':'none',_0xe87f6b['style']['zIndex']=this['options']['zIndex']??0x9,_0xe87f6b;}[_0x562891(0x177)](){const _0x45051a={_0x886ca8:0x172,_0x7e16fe:0x178,_0x5a92b:0x17a,_0x4275e8:0x181},_0x188765=_0x562891;if(!this['_echartsInstance'])return;this['_echartsContainer'][_0x188765(_0x45051a._0x886ca8)][_0x188765(_0x45051a._0x7e16fe)]=this['_map']['scene'][_0x188765(0x183)]['clientWidth']+'px',this[_0x188765(_0x45051a._0x5a92b)]['style']['height']=this[_0x188765(0x18e)][_0x188765(_0x45051a._0x4275e8)][_0x188765(0x183)]['clientHeight']+'px',this[_0x188765(0x15b)]['resize']();}['setEchartsOption'](_0x5540c0,_0x556ce3,_0x470b45){const _0x47cc81={_0x323f2c:0x186},_0x5a03b3=_0x562891;this['_echartsInstance']&&(_0x5540c0={'mars3dMap':{},...mars3d__namespace[_0x5a03b3(0x176)]['getAttrVal'](_0x5540c0,{'onlySimpleType':!![]})},delete _0x5540c0['eventParent'],this['_echartsInstance'][_0x5a03b3(_0x47cc81._0x323f2c)](_0x5540c0,_0x556ce3,_0x470b45));}['getRectangle'](_0x25c275){const _0x46b666={_0x360dc7:0x153},_0x2e6892={_0x2b5a75:0x192},_0x4acdc2=_0x562891;let _0x1ca185,_0x53fd43,_0x27979f,_0x3a1ddb;function _0x1fd165(_0x3a6987){const _0x4286c9=_0x5697;if(!Array['isArray'](_0x3a6987))return;const _0xf776bd=_0x3a6987[0x0]||0x0,_0x1acc27=_0x3a6987[0x1]||0x0;_0xf776bd!==0x0&&_0x1acc27!==0x0&&(_0x1ca185===undefined?(_0x1ca185=_0xf776bd,_0x53fd43=_0xf776bd,_0x27979f=_0x1acc27,_0x3a1ddb=_0x1acc27):(_0x1ca185=Math[_0x4286c9(_0x2e6892._0x2b5a75)](_0x1ca185,_0xf776bd),_0x53fd43=Math['max'](_0x53fd43,_0xf776bd),_0x27979f=Math['min'](_0x27979f,_0x1acc27),_0x3a1ddb=Math['max'](_0x3a1ddb,_0x1acc27)));}const _0x5a309a=this['options']['series'];_0x5a309a&&_0x5a309a['forEach'](_0x478ac0=>{_0x478ac0['data']&&_0x478ac0['data']['forEach'](_0x3e5333=>{const _0x5bd7ac=_0x5697;if(_0x3e5333['value'])_0x1fd165(_0x3e5333['value']);else _0x3e5333['coords']&&_0x3e5333[_0x5bd7ac(0x18b)][_0x5bd7ac(0x175)](_0x172858=>{_0x1fd165(_0x172858);});});});if(_0x1ca185===0x0&&_0x27979f===0x0&&_0x53fd43===0x0&&_0x3a1ddb===0x0)return null;return _0x25c275!==null&&_0x25c275!==void 0x0&&_0x25c275[_0x4acdc2(0x161)]?{'xmin':_0x1ca185,'xmax':_0x53fd43,'ymin':_0x27979f,'ymax':_0x3a1ddb}:Cesium['Rectangle'][_0x4acdc2(_0x46b666._0x360dc7)](_0x1ca185,_0x27979f,_0x53fd43,_0x3a1ddb);}['on'](_0x3e833f,_0x16dea9,_0x3e6b0e){return this['_echartsInstance']['on'](_0x3e833f,_0x16dea9,_0x3e6b0e||this),this;}[_0x562891(0x15c)](_0x24cd71,_0x2cca4b,_0x1cd4df,_0x36bbd9){return this['_echartsInstance']['on'](_0x24cd71,_0x2cca4b,_0x1cd4df,_0x36bbd9||this),this;}[_0x562891(0x170)](_0x3e929b,_0x2be2b5,_0x4eda1d){const _0x28d44e={_0x4034e6:0x15b},_0x576849=_0x562891;return this[_0x576849(_0x28d44e._0x4034e6)]['off'](_0x3e929b,_0x2be2b5,_0x4eda1d||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x562891(0x164)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports[_0x562891(0x159)]=EchartsLayer,Object[_0x562891(0x191)](echarts)['forEach'](function(_0x447669){const _0x42d603={_0x45520b:0x17c},_0x52449c=_0x562891;if(_0x447669!=='default'&&!exports[_0x52449c(_0x42d603._0x45520b)](_0x447669))Object['defineProperty'](exports,_0x447669,{'enumerable':!![],'get':function(){return echarts[_0x447669];}});}),Object['defineProperty'](exports,_0x562891(0x189),{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.7.0",
"version": "3.7.1",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.7.0"
"mars3d": "~3.7.1"
},

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