New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-echarts

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars3d-echarts - npm Package Compare versions

Comparing version 3.5.13 to 3.5.14

6

dist/mars3d-echarts.js
/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息:v3.5.13
* 编译日期:2023-06-26 22:15:59
* 版本信息:v3.5.14
* 编译日期:2023-07-03 18:37:16
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x1e1b08=_0x5ab3;(function(_0x2cd464,_0x5093a0){const _0x31fdd6={_0x3f862c:0x145,_0x3f8b1a:0x147,_0x8aa4f1:0x162,_0x21e409:0x169,_0x1ee63c:0x15f,_0x25c496:0x137},_0x37ef2b=_0x5ab3,_0x234251=_0x2cd464();while(!![]){try{const _0x2b7d7c=parseInt(_0x37ef2b(_0x31fdd6._0x3f862c))/0x1*(parseInt(_0x37ef2b(0x152))/0x2)+-parseInt(_0x37ef2b(0x166))/0x3*(parseInt(_0x37ef2b(_0x31fdd6._0x3f8b1a))/0x4)+parseInt(_0x37ef2b(0x163))/0x5+-parseInt(_0x37ef2b(_0x31fdd6._0x8aa4f1))/0x6+parseInt(_0x37ef2b(0x160))/0x7+parseInt(_0x37ef2b(_0x31fdd6._0x21e409))/0x8*(-parseInt(_0x37ef2b(_0x31fdd6._0x1ee63c))/0x9)+-parseInt(_0x37ef2b(0x149))/0xa*(-parseInt(_0x37ef2b(_0x31fdd6._0x25c496))/0xb);if(_0x2b7d7c===_0x5093a0)break;else _0x234251['push'](_0x234251['shift']());}catch(_0x1d36a9){_0x234251['push'](_0x234251['shift']());}}}(_0x40f7,0x6a441));function _interopNamespace(_0x22dc01){const _0x5cb447=_0x5ab3;if(_0x22dc01&&_0x22dc01['__esModule'])return _0x22dc01;var _0x1b72f4=Object[_0x5cb447(0x12f)](null);return _0x22dc01&&Object[_0x5cb447(0x157)](_0x22dc01)[_0x5cb447(0x144)](function(_0x400869){if(_0x400869!=='default'){var _0x1e49c7=Object['getOwnPropertyDescriptor'](_0x22dc01,_0x400869);Object['defineProperty'](_0x1b72f4,_0x400869,_0x1e49c7['get']?_0x1e49c7:{'enumerable':!![],'get':function(){return _0x22dc01[_0x400869];}});}}),_0x1b72f4['default']=_0x22dc01,_0x1b72f4;}function _0x40f7(){const _0x55b5ee=['isFormat','8136tusSYo','_showHook','width','237352dtsVXj','pointerEvents','defineProperty','style','zIndex','create','top','layer','setMapOffset','max','scene','_createChartOverlay','value','22oBznaX','__esModule','echartsDepthTest','echarts','registerCoordinateSystem','isPointVisible','getRectangle','_echartsInstance','hidden','dispatchAction','fixedHeight','graphic','coords','forEach','22969lUlspr','data','1276tdNKjO','positionWC','5884570oQBECL','EchartsLayer','clientWidth','registerAction','postRender','isArray','_echartsContainer','absolute','options','10aoenEI','Cartographic','_map','getZr','init','keys','left','register','_mars3d_scene','matrix','_mountedHook','SCENE3D','_api','9NyywAx','529746JvnBWQ','none','2644050gMUYcD','2016500HnEDlD','_mapOffset'];_0x40f7=function(){return _0x55b5ee;};return _0x40f7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x34bfcd,_0x5d1cd2){const _0x48add7={_0x43e4c3:0x164},_0x199ac1=_0x5ab3;this['_mars3d_scene']=_0x34bfcd,this['dimensions']=['lng','lat'],this[_0x199ac1(_0x48add7._0x43e4c3)]=[0x0,0x0],this['_api']=_0x5d1cd2;}[_0x1e1b08(0x132)](_0x229eab){this['_mapOffset']=_0x229eab;}['getBMap'](){const _0x167cda={_0x265046:0x15a},_0x33555b=_0x1e1b08;return this[_0x33555b(_0x167cda._0x265046)];}['dataToPoint'](_0x4cb80b){const _0xf5b5={_0x51fc73:0x153,_0x47b2c6:0x148,_0x46e0f5:0x13c},_0x4c3def=_0x1e1b08,_0x378b81=this['_mars3d_scene'],_0x58575b=[NaN,NaN];let _0x1dd08f=_0x378b81['echartsFixedHeight'];_0x378b81['echartsAutoHeight']&&(_0x1dd08f=_0x378b81['globe']['getHeight'](Cesium$1[_0x4c3def(_0xf5b5._0x51fc73)]['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1])));const _0x3f11db=Cesium$1['Cartesian3']['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1],_0x1dd08f);if(!_0x3f11db)return _0x58575b;const _0x47026c=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x378b81,_0x3f11db);if(!_0x47026c)return _0x58575b;if(_0x378b81['echartsDepthTest']&&_0x378b81['mode']===Cesium$1['SceneMode'][_0x4c3def(0x15d)]){const _0x53fd4f=new Cesium$1['EllipsoidalOccluder'](_0x378b81['globe']['ellipsoid'],_0x378b81['camera'][_0x4c3def(_0xf5b5._0x47b2c6)]),_0x15f5e6=_0x53fd4f[_0x4c3def(_0xf5b5._0x46e0f5)](_0x3f11db);if(!_0x15f5e6)return _0x58575b;}return[_0x47026c['x']-this['_mapOffset'][0x0],_0x47026c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x349dc8=_0x1e1b08,_0x25c3a0=this[_0x349dc8(0x15e)];return new echarts__namespace[(_0x349dc8(0x142))]['BoundingRect'](0x0,0x0,_0x25c3a0['getWidth'](),_0x25c3a0['getHeight']());}['getRoamTransform'](){const _0x2fdc15=_0x1e1b08;return echarts__namespace[_0x2fdc15(0x15b)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x1e1b08(0x12f)]=function(_0x5a376c,_0x4c12ab){const _0x1cae02={_0xe0a60a:0x132};let _0x1492e7;const _0x19b97e=_0x5a376c['scheduler']['ecInstance']['_mars3d_scene'];_0x5a376c['eachComponent']('mars3dMap',function(_0x3d648b){const _0x373af9=_0x5ab3,_0x59bb51=_0x4c12ab[_0x373af9(0x155)]()['painter'];if(!_0x59bb51)return;!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x3d648b['coordinateSystem']=_0x1492e7,_0x1492e7[_0x373af9(_0x1cae02._0xe0a60a)](_0x3d648b['__mapOffset']||[0x0,0x0]);}),_0x5a376c['eachSeries'](function(_0x2fc9f8){_0x2fc9f8['get']('coordinateSystem')==='mars3dMap'&&(!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x2fc9f8['coordinateSystem']=_0x1492e7);});};function _0x5ab3(_0x153b58,_0x546242){const _0x40f799=_0x40f7();return _0x5ab3=function(_0x5ab3d1,_0x1d39c9){_0x5ab3d1=_0x5ab3d1-0x12b;let _0x167b9a=_0x40f799[_0x5ab3d1];return _0x167b9a;},_0x5ab3(_0x153b58,_0x546242);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x1e1b08(0x156)])echarts__namespace[_0x1e1b08(0x13b)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1e1b08(0x14c)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x46ac3a,_0x436e39){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3d0c08,_0xe77377){const _0x431760={_0x7f69a7:0x134},_0xca6fd3=_0x1e1b08;this['api']=_0xe77377,this['scene']=_0x3d0c08['scheduler']['ecInstance'][_0xca6fd3(0x15a)],this[_0xca6fd3(_0x431760._0x7f69a7)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x6ebdd9,_0x72f46){const _0x18fa21=_0x1e1b08;this['api'][_0x18fa21(0x140)]({'type':'mars3dMapRoam'});},'render':function(_0x4dc91c,_0x5da845,_0x41405f){},'dispose':function(_0x1497f7){const _0x3dc4a0={_0x512681:0x14d},_0x4f52d4=_0x1e1b08;this['scene'][_0x4f52d4(_0x3dc4a0._0x512681)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1e1b08(0x131)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x2139f2={}){const _0xcc7d23={_0x4ea2ec:0x151},_0x1e94d3=_0x1e1b08;super(_0x2139f2),this['_pointerEvents']=this[_0x1e94d3(_0xcc7d23._0x4ea2ec)][_0x1e94d3(0x12b)];}get[_0x1e1b08(0x131)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x4c0c4d){const _0x543c37=_0x1e1b08;this['_pointerEvents']=_0x4c0c4d,this['_echartsContainer']&&(_0x4c0c4d?this[_0x543c37(0x14f)]['style'][_0x543c37(0x12b)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x59ec7b,_0x29a713){this['setEchartsOption'](_0x59ec7b);}[_0x1e1b08(0x167)](_0x5eaccc){const _0x404cc7={_0x1e8a70:0x14f},_0x35663b=_0x1e1b08;_0x5eaccc?this[_0x35663b(_0x404cc7._0x1e8a70)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0x35663b(0x13f);}[_0x1e1b08(0x15c)](){const _0x3c6932={_0x1fc98c:0x139,_0x57cdbb:0x151,_0x43e72a:0x134,_0x188d3e:0x141},_0x108b1c=_0x1e1b08;this['_map']['scene'][_0x108b1c(_0x3c6932._0x1fc98c)]=this[_0x108b1c(_0x3c6932._0x57cdbb)]['depthTest']??!![],this['_map'][_0x108b1c(_0x3c6932._0x43e72a)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x108b1c(0x151)][_0x108b1c(_0x3c6932._0x188d3e)]??0x0;}['_addedHook'](){const _0x1f56e8={_0x28659e:0x154},_0x4c089a=_0x1e1b08;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x4c089a(_0x1f56e8._0x28659e)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x59eeac={_0x46b6d4:0x14f},_0xae705b=_0x1e1b08;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0xae705b(0x13e)]['dispose'](),delete this['_echartsInstance']),this[_0xae705b(_0x59eeac._0x46b6d4)]&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x1e1b08(0x135)](){const _0x4e8d7b={_0x4d0e6d:0x12f,_0x1a7f4b:0x12d,_0x541170:0x158,_0x48230f:0x12d,_0x4100b3:0x14b,_0x36d17e:0x12b,_0xdf3dbd:0x161,_0x1235ba:0x12e},_0x374ddd=_0x1e1b08,_0x1de7e7=mars3d__namespace['DomUtil'][_0x374ddd(_0x4e8d7b._0x4d0e6d)]('div','mars3d-echarts',this['_map']['container']);return _0x1de7e7['id']=this['id'],_0x1de7e7['style']['position']=_0x374ddd(0x150),_0x1de7e7[_0x374ddd(_0x4e8d7b._0x1a7f4b)][_0x374ddd(0x130)]='0px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x541170)]='0px',_0x1de7e7[_0x374ddd(_0x4e8d7b._0x48230f)]['width']=this['_map'][_0x374ddd(0x134)]['canvas'][_0x374ddd(_0x4e8d7b._0x4100b3)]+'px',_0x1de7e7[_0x374ddd(0x12d)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x36d17e)]=this['_pointerEvents']?'all':_0x374ddd(_0x4e8d7b._0xdf3dbd),_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x1235ba)]=this['options']['zIndex']??0x9,_0x1de7e7;}['resize'](){const _0x5b52cb={_0x519dbf:0x14f,_0x5568d5:0x168},_0x2d973b=_0x1e1b08;if(!this[_0x2d973b(0x13e)])return;this[_0x2d973b(_0x5b52cb._0x519dbf)]['style'][_0x2d973b(_0x5b52cb._0x5568d5)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this[_0x2d973b(0x154)]['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x549e82,_0x44fd80,_0x2b70c1){const _0xa62669=_0x1e1b08;this[_0xa62669(0x13e)]&&(_0x549e82['mars3dMap']=_0x549e82['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x549e82,_0x44fd80,_0x2b70c1));}[_0x1e1b08(0x13d)](_0x4390cf){const _0x37058d={_0x57e932:0x165},_0x127506={_0x12840c:0x146},_0x14fa8d={_0x18a60f:0x136,_0xaa240c:0x144},_0x24d335={_0x1a61b9:0x14e,_0x2f9d91:0x133},_0x1e1670=_0x1e1b08;let _0x164a88,_0x5c5d34,_0x578aaa,_0x4ac6b4;function _0x4fc794(_0x3724b1){const _0x4a6eef=_0x5ab3;if(!Array[_0x4a6eef(_0x24d335._0x1a61b9)](_0x3724b1))return;const _0x37264e=_0x3724b1[0x0]||0x0,_0x48b00f=_0x3724b1[0x1]||0x0;_0x37264e!==0x0&&_0x48b00f!==0x0&&(_0x164a88===undefined?(_0x164a88=_0x37264e,_0x5c5d34=_0x37264e,_0x578aaa=_0x48b00f,_0x4ac6b4=_0x48b00f):(_0x164a88=Math['min'](_0x164a88,_0x37264e),_0x5c5d34=Math[_0x4a6eef(_0x24d335._0x2f9d91)](_0x5c5d34,_0x37264e),_0x578aaa=Math['min'](_0x578aaa,_0x48b00f),_0x4ac6b4=Math[_0x4a6eef(0x133)](_0x4ac6b4,_0x48b00f)));}const _0x1960c2=this['options']['series'];_0x1960c2&&_0x1960c2['forEach'](_0x4532fd=>{const _0x33f159=_0x5ab3;_0x4532fd[_0x33f159(_0x127506._0x12840c)]&&_0x4532fd[_0x33f159(_0x127506._0x12840c)]['forEach'](_0x413e34=>{const _0x2f28ff=_0x33f159;if(_0x413e34['value'])_0x4fc794(_0x413e34[_0x2f28ff(_0x14fa8d._0x18a60f)]);else _0x413e34['coords']&&_0x413e34[_0x2f28ff(0x143)][_0x2f28ff(_0x14fa8d._0xaa240c)](_0x506c21=>{_0x4fc794(_0x506c21);});});});if(_0x164a88===0x0&&_0x578aaa===0x0&&_0x5c5d34===0x0&&_0x4ac6b4===0x0)return null;return _0x4390cf!==null&&_0x4390cf!==void 0x0&&_0x4390cf[_0x1e1670(_0x37058d._0x57e932)]?{'xmin':_0x164a88,'xmax':_0x5c5d34,'ymin':_0x578aaa,'ymax':_0x4ac6b4}:Cesium['Rectangle']['fromDegrees'](_0x164a88,_0x578aaa,_0x5c5d34,_0x4ac6b4);}['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8){return this['_echartsInstance']['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8||this),this;}['onByQuery'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c){return this['_echartsInstance']['on'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c||this),this;}['off'](_0x56158f,_0x416d84,_0x282507){const _0x1a0ed7=_0x1e1b08;return this[_0x1a0ed7(0x13e)]['off'](_0x56158f,_0x416d84,_0x282507||this),this;}}mars3d__namespace['LayerUtil'][_0x1e1b08(0x159)]('echarts',EchartsLayer),mars3d__namespace[_0x1e1b08(0x131)]['EchartsLayer']=EchartsLayer,mars3d__namespace[_0x1e1b08(0x13a)]=echarts__namespace,exports[_0x1e1b08(0x14a)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x141def){if(_0x141def!=='default'&&!exports['hasOwnProperty'](_0x141def))Object['defineProperty'](exports,_0x141def,{'enumerable':!![],'get':function(){return echarts[_0x141def];}});}),Object[_0x1e1b08(0x12c)](exports,_0x1e1b08(0x138),{'value':!![]});
'use strict';const _0x3d7d13=_0x58b7;(function(_0x260f41,_0x551732){const _0x1212ba={_0x10a43d:0xaa,_0x4d6d36:0xa9,_0x439560:0xa7,_0x21fbbe:0xa0,_0x372725:0xcd,_0x286bf4:0xb3},_0x23c163=_0x58b7,_0x1b3b6b=_0x260f41();while(!![]){try{const _0x116b99=parseInt(_0x23c163(0xc7))/0x1+parseInt(_0x23c163(_0x1212ba._0x10a43d))/0x2+parseInt(_0x23c163(0xad))/0x3+parseInt(_0x23c163(_0x1212ba._0x4d6d36))/0x4+parseInt(_0x23c163(0xb9))/0x5*(-parseInt(_0x23c163(_0x1212ba._0x439560))/0x6)+parseInt(_0x23c163(_0x1212ba._0x21fbbe))/0x7*(-parseInt(_0x23c163(_0x1212ba._0x372725))/0x8)+parseInt(_0x23c163(_0x1212ba._0x286bf4))/0x9;if(_0x116b99===_0x551732)break;else _0x1b3b6b['push'](_0x1b3b6b['shift']());}catch(_0x6cf900){_0x1b3b6b['push'](_0x1b3b6b['shift']());}}}(_0x36f2,0xd8ea2));function _interopNamespace(_0x11c0ce){const _0x1d6be8={_0x9d3e43:0xc0},_0x116a07=_0x58b7;if(_0x11c0ce&&_0x11c0ce['__esModule'])return _0x11c0ce;var _0x5c204f=Object['create'](null);return _0x11c0ce&&Object['keys'](_0x11c0ce)['forEach'](function(_0x316332){const _0x1724da=_0x58b7;if(_0x316332!=='default'){var _0x467d25=Object['getOwnPropertyDescriptor'](_0x11c0ce,_0x316332);Object[_0x1724da(0xb5)](_0x5c204f,_0x316332,_0x467d25['get']?_0x467d25:{'enumerable':!![],'get':function(){return _0x11c0ce[_0x316332];}});}}),_0x5c204f[_0x116a07(_0x1d6be8._0x9d3e43)]=_0x11c0ce,_0x5c204f;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x36f2(){const _0x440a73=['create','5853744vMceIQ','top','defineProperty','getZr','visibility','moveHandler','15xNQHxx','echartsFixedHeight','postRender','style','__mapOffset','series','_echartsInstance','default','EchartsLayer','resize','_mapOffset','_map','BoundingRect','_mars3d_scene','869532dBWvvk','width','SceneMode','zIndex','getWidth','_addedHook','2708072VdDewd','max','min','scene','_api','div','layer','coordinateSystem','forEach','21SWWnXK','mars3dMap','painter','请引入\x20echarts\x20库\x20','left','__esModule','init','1941330ssBzgR','_createChartOverlay','1218676KicvtM','16328xUZgVM','hasOwnProperty','_echartsContainer','3125679rvjsEW','options','fromDegrees','none','getHeight'];_0x36f2=function(){return _0x440a73;};return _0x36f2();}function _0x58b7(_0x49558a,_0x407f9f){const _0x36f2be=_0x36f2();return _0x58b7=function(_0x58b75f,_0x3b91c0){_0x58b75f=_0x58b75f-0x9c;let _0x402884=_0x36f2be[_0x58b75f];return _0x402884;},_0x58b7(_0x49558a,_0x407f9f);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xa800c7,_0x32b555){const _0x177b80={_0x4678a9:0xc3,_0x3ee844:0xd1},_0x56ba08=_0x58b7;this['_mars3d_scene']=_0xa800c7,this['dimensions']=['lng','lat'],this[_0x56ba08(_0x177b80._0x4678a9)]=[0x0,0x0],this[_0x56ba08(_0x177b80._0x3ee844)]=_0x32b555;}['setMapOffset'](_0x4ea8a2){this['_mapOffset']=_0x4ea8a2;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5c6a68){const _0x1f0048={_0x144139:0xc6,_0x43a504:0xc9},_0x17a82c=_0x58b7,_0x27031b=this[_0x17a82c(_0x1f0048._0x144139)],_0x184cc4=[NaN,NaN];let _0x30e54e=_0x27031b[_0x17a82c(0xba)];_0x27031b['echartsAutoHeight']&&(_0x30e54e=_0x27031b['globe']['getHeight'](Cesium$1['Cartographic'][_0x17a82c(0xaf)](_0x5c6a68[0x0],_0x5c6a68[0x1])));const _0x3b1964=Cesium$1['Cartesian3']['fromDegrees'](_0x5c6a68[0x0],_0x5c6a68[0x1],_0x30e54e);if(!_0x3b1964)return _0x184cc4;const _0x3560a7=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x27031b,_0x3b1964);if(!_0x3560a7)return _0x184cc4;if(_0x27031b['echartsDepthTest']&&_0x27031b['mode']===Cesium$1[_0x17a82c(_0x1f0048._0x43a504)]['SCENE3D']){const _0x234a99=new Cesium$1['EllipsoidalOccluder'](_0x27031b['globe']['ellipsoid'],_0x27031b['camera']['positionWC']),_0x4fa62f=_0x234a99['isPointVisible'](_0x3b1964);if(!_0x4fa62f)return _0x184cc4;}return[_0x3560a7['x']-this['_mapOffset'][0x0],_0x3560a7['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2f9804={_0x5ce5e9:0xc5,_0x282240:0xcb},_0x13b1c1=_0x58b7,_0x24f8f6=this['_api'];return new echarts__namespace['graphic'][(_0x13b1c1(_0x2f9804._0x5ce5e9))](0x0,0x0,_0x24f8f6[_0x13b1c1(_0x2f9804._0x282240)](),_0x24f8f6[_0x13b1c1(0xb1)]());}['getRoamTransform'](){const _0x3a4321=_0x58b7;return echarts__namespace['matrix'][_0x3a4321(0xb2)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x838c0,_0x1d84bc){const _0x1c2b28={_0x5a14e4:0xa1},_0x3f246c={_0x3a76a4:0xa2};let _0x194e43;const _0x2a2ec4=_0x838c0['scheduler']['ecInstance']['_mars3d_scene'];_0x838c0['eachComponent']('mars3dMap',function(_0x1da8ae){const _0x47b642=_0x58b7,_0x508ef6=_0x1d84bc[_0x47b642(0xb6)]()[_0x47b642(_0x3f246c._0x3a76a4)];if(!_0x508ef6)return;!_0x194e43&&(_0x194e43=new CompositeCoordinateSystem(_0x2a2ec4,_0x1d84bc)),_0x1da8ae[_0x47b642(0x9e)]=_0x194e43,_0x194e43['setMapOffset'](_0x1da8ae[_0x47b642(0xbd)]||[0x0,0x0]);}),_0x838c0['eachSeries'](function(_0x5c3005){const _0x11558e=_0x58b7;_0x5c3005['get']('coordinateSystem')===_0x11558e(_0x1c2b28._0x5a14e4)&&(!_0x194e43&&(_0x194e43=new CompositeCoordinateSystem(_0x2a2ec4,_0x1d84bc)),_0x5c3005['coordinateSystem']=_0x194e43);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x3d7d13(0xa6)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x45eac6,_0x753f2f){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5efc84,_0x4f6764){const _0x5d30eb={_0x3ea733:0xd0},_0x54ba9=_0x3d7d13;this['api']=_0x4f6764,this['scene']=_0x5efc84['scheduler']['ecInstance'][_0x54ba9(0xc6)],this[_0x54ba9(_0x5d30eb._0x3ea733)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x1bfd5f,_0x1446ca){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2a3dcc,_0x4a3970,_0x3d4fed){},'dispose':function(_0x5196ec){const _0x2362cb={_0x129ddc:0xbb,_0x2664e7:0xb8},_0xb161ce=_0x3d7d13;this['scene'][_0xb161ce(_0x2362cb._0x129ddc)]['removeEventListener'](this[_0xb161ce(_0x2362cb._0x2664e7)],this);}});else throw new Error(_0x3d7d13(0xa3));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x11f3b9={}){const _0x5eaa8c=_0x3d7d13;super(_0x11f3b9),this['_pointerEvents']=this[_0x5eaa8c(0xae)]['pointerEvents'];}get[_0x3d7d13(0x9d)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x493cb7){const _0x353c75=_0x3d7d13;this['_pointerEvents']=_0x493cb7,this[_0x353c75(0xac)]&&(_0x493cb7?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x5cbda7,_0x4cfab2){this['setEchartsOption'](_0x5cbda7);}['_showHook'](_0x58e1ce){const _0x2e8b29={_0x1b40c1:0xb7},_0x41c427=_0x3d7d13;_0x58e1ce?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer'][_0x41c427(0xbc)][_0x41c427(_0x2e8b29._0x1b40c1)]='hidden';}['_mountedHook'](){const _0x1da980={_0x1f0d40:0xd0},_0x127414=_0x3d7d13;this[_0x127414(0xc4)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x127414(_0x1da980._0x1f0d40)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}[_0x3d7d13(0xcc)](){const _0x559087={_0x29aa24:0xbf,_0x555703:0xa6,_0x4ef074:0xac},_0x477dd6=_0x3d7d13;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x477dd6(_0x559087._0x29aa24)]=echarts__namespace[_0x477dd6(_0x559087._0x555703)](this[_0x477dd6(_0x559087._0x4ef074)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x1fe6ca={_0x2b4e54:0xbf,_0x408e13:0xac},_0x5ed5b1=_0x3d7d13;this[_0x5ed5b1(_0x1fe6ca._0x2b4e54)]&&(this[_0x5ed5b1(_0x1fe6ca._0x2b4e54)]['clear'](),this['_echartsInstance']['dispose'](),delete this[_0x5ed5b1(0xbf)]),this[_0x5ed5b1(_0x1fe6ca._0x408e13)]&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x3d7d13(0xa8)](){const _0x95bd43={_0x231124:0x9c,_0x23d96c:0xb4,_0x10e88a:0xa4,_0x53cd7b:0xbc,_0x5bca70:0xd0,_0x1f7427:0xb0},_0x13020f=_0x3d7d13,_0x54bcae=mars3d__namespace['DomUtil']['create'](_0x13020f(_0x95bd43._0x231124),'mars3d-echarts',this['_map']['container']);return _0x54bcae['id']=this['id'],_0x54bcae['style']['position']='absolute',_0x54bcae[_0x13020f(0xbc)][_0x13020f(_0x95bd43._0x23d96c)]='0px',_0x54bcae['style'][_0x13020f(_0x95bd43._0x10e88a)]='0px',_0x54bcae['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x54bcae[_0x13020f(_0x95bd43._0x53cd7b)]['height']=this['_map'][_0x13020f(_0x95bd43._0x5bca70)]['canvas']['clientHeight']+'px',_0x54bcae['style']['pointerEvents']=this['_pointerEvents']?'all':_0x13020f(_0x95bd43._0x1f7427),_0x54bcae['style']['zIndex']=this[_0x13020f(0xae)][_0x13020f(0xca)]??0x9,_0x54bcae;}[_0x3d7d13(0xc2)](){const _0x11e348={_0x42f125:0xbf,_0x2dcc24:0xd0,_0x21af46:0xac,_0x43fd66:0xc4},_0x522441=_0x3d7d13;if(!this[_0x522441(_0x11e348._0x42f125)])return;this['_echartsContainer'][_0x522441(0xbc)][_0x522441(0xc8)]=this[_0x522441(0xc4)][_0x522441(_0x11e348._0x2dcc24)]['canvas']['clientWidth']+'px',this[_0x522441(_0x11e348._0x21af46)][_0x522441(0xbc)]['height']=this[_0x522441(_0x11e348._0x43fd66)]['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x477409,_0x798d7,_0xad7907){const _0x16b9d5={_0x1c325d:0xa1},_0x519895=_0x3d7d13;this['_echartsInstance']&&(_0x477409[_0x519895(_0x16b9d5._0x1c325d)]=_0x477409['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x477409,_0x798d7,_0xad7907));}['getRectangle'](_0x5c7084){const _0x392674={_0x324551:0xbe,_0xc60186:0xaf},_0xda4d74={_0x5aaaac:0xce,_0x30c1f3:0xcf},_0x29f976=_0x3d7d13;let _0x27daad,_0x3c221f,_0x3bd22b,_0x545077;function _0x26d2ae(_0x332fe8){const _0x47332d=_0x58b7;if(!Array['isArray'](_0x332fe8))return;const _0x5ab062=_0x332fe8[0x0]||0x0,_0x381d09=_0x332fe8[0x1]||0x0;_0x5ab062!==0x0&&_0x381d09!==0x0&&(_0x27daad===undefined?(_0x27daad=_0x5ab062,_0x3c221f=_0x5ab062,_0x3bd22b=_0x381d09,_0x545077=_0x381d09):(_0x27daad=Math['min'](_0x27daad,_0x5ab062),_0x3c221f=Math[_0x47332d(_0xda4d74._0x5aaaac)](_0x3c221f,_0x5ab062),_0x3bd22b=Math[_0x47332d(_0xda4d74._0x30c1f3)](_0x3bd22b,_0x381d09),_0x545077=Math['max'](_0x545077,_0x381d09)));}const _0x2a1cc1=this['options'][_0x29f976(_0x392674._0x324551)];_0x2a1cc1&&_0x2a1cc1['forEach'](_0x1ae534=>{const _0x1b94d1=_0x29f976;_0x1ae534['data']&&_0x1ae534['data'][_0x1b94d1(0x9f)](_0x4478aa=>{if(_0x4478aa['value'])_0x26d2ae(_0x4478aa['value']);else _0x4478aa['coords']&&_0x4478aa['coords']['forEach'](_0x24b689=>{_0x26d2ae(_0x24b689);});});});if(_0x27daad===0x0&&_0x3bd22b===0x0&&_0x3c221f===0x0&&_0x545077===0x0)return null;return _0x5c7084!==null&&_0x5c7084!==void 0x0&&_0x5c7084['isFormat']?{'xmin':_0x27daad,'xmax':_0x3c221f,'ymin':_0x3bd22b,'ymax':_0x545077}:Cesium['Rectangle'][_0x29f976(_0x392674._0xc60186)](_0x27daad,_0x3bd22b,_0x3c221f,_0x545077);}['on'](_0x171b07,_0x40378c,_0x4903be){const _0x3d67ef=_0x3d7d13;return this[_0x3d67ef(0xbf)]['on'](_0x171b07,_0x40378c,_0x4903be||this),this;}['onByQuery'](_0x42e2d9,_0x55c249,_0x295876,_0x57472e){const _0x1d2a28={_0xc7426e:0xbf},_0x453317=_0x3d7d13;return this[_0x453317(_0x1d2a28._0xc7426e)]['on'](_0x42e2d9,_0x55c249,_0x295876,_0x57472e||this),this;}['off'](_0x379164,_0x9caa36,_0x2677f1){return this['_echartsInstance']['off'](_0x379164,_0x9caa36,_0x2677f1||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x3d7d13(0xc1)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x425538){const _0xc1eb55={_0x384991:0xc0,_0x2f6789:0xab},_0x4cebdf=_0x3d7d13;if(_0x425538!==_0x4cebdf(_0xc1eb55._0x384991)&&!exports[_0x4cebdf(_0xc1eb55._0x2f6789)](_0x425538))Object['defineProperty'](exports,_0x425538,{'enumerable':!![],'get':function(){return echarts[_0x425538];}});}),Object[_0x3d7d13(0xb5)](exports,_0x3d7d13(0xa5),{'value':!![]});
}));
{
"name": "mars3d-echarts",
"version": "3.5.13",
"version": "3.5.14",
"description": "Mars3D平台插件,结合echarts可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.5.13"
"mars3d": "~3.5.14"
},

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