mars3d-echarts 3.7.7 → 3.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
3
3
  *
4
- * 版本信息:v3.7.7
5
- * 编译日期:2024-03-19 15:55:34
4
+ * 版本信息:v3.7.8
5
+ * 编译日期:2024-03-25 20:24:02
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2024-01-15
8
8
  */
@@ -11,5 +11,5 @@
11
11
  typeof define === 'function' && define.amd ? define(['exports', 'echarts', 'mars3d'], factory) :
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-echarts"] = {}, global.echarts, global.mars3d));
13
13
  })(this, (function (exports, echarts, mars3d) {
14
- 'use strict';const _0x2205c6=_0x4453;(function(_0x5ccd18,_0x51705e){const _0x4ef5f2={_0x69f2b9:0x89,_0x269ce2:0x9b,_0x1640df:0x82,_0x4d9a85:0xa9,_0x2558af:0x7c,_0x59a847:0xb4},_0x100451=_0x4453,_0x557882=_0x5ccd18();while(!![]){try{const _0x47cc47=parseInt(_0x100451(0xa8))/0x1*(parseInt(_0x100451(_0x4ef5f2._0x69f2b9))/0x2)+parseInt(_0x100451(0xaa))/0x3+parseInt(_0x100451(_0x4ef5f2._0x269ce2))/0x4*(-parseInt(_0x100451(0x88))/0x5)+parseInt(_0x100451(_0x4ef5f2._0x1640df))/0x6+parseInt(_0x100451(0x8a))/0x7+-parseInt(_0x100451(_0x4ef5f2._0x4d9a85))/0x8*(-parseInt(_0x100451(_0x4ef5f2._0x2558af))/0x9)+-parseInt(_0x100451(_0x4ef5f2._0x59a847))/0xa;if(_0x47cc47===_0x51705e)break;else _0x557882['push'](_0x557882['shift']());}catch(_0x7417ca){_0x557882['push'](_0x557882['shift']());}}}(_0x2363,0x4e395));function _interopNamespace(_0xd6c067){const _0x5bf4c6={_0x1d6542:0x76},_0x163148=_0x4453;if(_0xd6c067&&_0xd6c067['__esModule'])return _0xd6c067;var _0x1a00d8=Object[_0x163148(0x7e)](null);return _0xd6c067&&Object['keys'](_0xd6c067)[_0x163148(_0x5bf4c6._0x1d6542)](function(_0x1b7531){if(_0x1b7531!=='default'){var _0x530203=Object['getOwnPropertyDescriptor'](_0xd6c067,_0x1b7531);Object['defineProperty'](_0x1a00d8,_0x1b7531,_0x530203['get']?_0x530203:{'enumerable':!![],'get':function(){return _0xd6c067[_0x1b7531];}});}}),_0x1a00d8['default']=_0xd6c067,_0x1a00d8;}function _0x4453(_0x11506d,_0xbd56b9){const _0x2363b2=_0x2363();return _0x4453=function(_0x445350,_0x26b7b6){_0x445350=_0x445350-0x74;let _0x260e9c=_0x2363b2[_0x445350];return _0x260e9c;},_0x4453(_0x11506d,_0xbd56b9);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x359d61,_0xdad956){const _0x32086b={_0x3d8967:0x75},_0x2c2a8b=_0x4453;this[_0x2c2a8b(_0x32086b._0x3d8967)]=_0x359d61,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0xdad956;}['setMapOffset'](_0x49a99b){const _0x15862a=_0x4453;this[_0x15862a(0x84)]=_0x49a99b;}[_0x2205c6(0xa5)](){return this['_mars3d_scene'];}['dataToPoint'](_0xe21edf){const _0x23b7ce={_0x4e1a57:0xa0,_0x21f52c:0xb0,_0x343f99:0xac,_0x3ea45a:0x90,_0x4e96ee:0xad},_0xc2d4c7=_0x2205c6,_0x358276=this[_0xc2d4c7(0x75)],_0x559e73=[NaN,NaN];let _0x1e36fc=_0x358276[_0xc2d4c7(_0x23b7ce._0x4e1a57)];_0x358276[_0xc2d4c7(0xa2)]&&(_0x1e36fc=_0x358276[_0xc2d4c7(_0x23b7ce._0x21f52c)](Cesium$1[_0xc2d4c7(_0x23b7ce._0x343f99)]['fromDegrees'](_0xe21edf[0x0],_0xe21edf[0x1])));const _0x4ae915=Cesium$1['Cartesian3'][_0xc2d4c7(0x98)](_0xe21edf[0x0],_0xe21edf[0x1],_0x1e36fc);if(!_0x4ae915)return _0x559e73;const _0x1cd510=Cesium$1[_0xc2d4c7(0x92)]['wgs84ToWindowCoordinates'](_0x358276,_0x4ae915);if(!_0x1cd510)return _0x559e73;if(_0x358276['echartsDepthTest']&&_0x358276['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x354760=new Cesium$1['EllipsoidalOccluder'](_0x358276[_0xc2d4c7(_0x23b7ce._0x3ea45a)]['ellipsoid'],_0x358276['camera']['positionWC']),_0x25fdf4=_0x354760[_0xc2d4c7(_0x23b7ce._0x4e96ee)](_0x4ae915);if(!_0x25fdf4)return _0x559e73;}return[_0x1cd510['x']-this['_mapOffset'][0x0],_0x1cd510['y']-this['_mapOffset'][0x1]];}[_0x2205c6(0xa7)](){const _0x4a546b={_0x2f4beb:0xa1},_0x3dfbcd=_0x2205c6,_0x363c9a=this[_0x3dfbcd(0x79)];return new echarts__namespace['graphic'][(_0x3dfbcd(0x97))](0x0,0x0,_0x363c9a[_0x3dfbcd(_0x4a546b._0x2f4beb)](),_0x363c9a['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0x2205c6(0x77),'lat'],CompositeCoordinateSystem[_0x2205c6(0x7e)]=function(_0xe4f5b6,_0x1e959c){const _0x4723fb={_0x1e2809:0x75},_0x3dc9d8={_0x58d01c:0xa6},_0x531208={_0x58052e:0xa6},_0x582413=_0x2205c6;let _0x39952a;const _0x2848c6=_0xe4f5b6['scheduler']['ecInstance'][_0x582413(_0x4723fb._0x1e2809)];_0xe4f5b6['eachComponent']('mars3dMap',function(_0xc3d607){const _0x8897=_0x582413,_0x42bdb5=_0x1e959c['getZr']()['painter'];if(!_0x42bdb5)return;!_0x39952a&&(_0x39952a=new CompositeCoordinateSystem(_0x2848c6,_0x1e959c)),_0xc3d607[_0x8897(_0x531208._0x58052e)]=_0x39952a,_0x39952a['setMapOffset'](_0xc3d607['__mapOffset']||[0x0,0x0]);}),_0xe4f5b6[_0x582413(0x7f)](function(_0x4679aa){const _0x5740e0=_0x582413;_0x4679aa['get']('coordinateSystem')==='mars3dMap'&&(!_0x39952a&&(_0x39952a=new CompositeCoordinateSystem(_0x2848c6,_0x1e959c)),_0x4679aa[_0x5740e0(_0x3dc9d8._0x58d01c)]=_0x39952a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x2205c6(0x7d)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x2205c6(0xb3)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x218e54,_0x28b606){}),echarts__namespace['extendComponentModel']({'type':_0x2205c6(0xb5),'getBMap':function(){const _0x101b5c=_0x2205c6;return this[_0x101b5c(0x75)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x4c4f52,_0x359727){const _0x535f2e={_0x3c3c3e:0x9d},_0x41a80f=_0x2205c6;this['api']=_0x359727,this['scene']=_0x4c4f52['scheduler'][_0x41a80f(0x91)]['_mars3d_scene'],this['scene'][_0x41a80f(_0x535f2e._0x3c3c3e)][_0x41a80f(0x99)](this['moveHandler'],this);},'moveHandler':function(_0x2a6c99,_0x566512){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x53b697,_0x34451e,_0x17d174){},'dispose':function(_0x580b1d){const _0x516af9=_0x2205c6;this['scene']['postRender'][_0x516af9(0x7b)](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(_0x400d99={}){const _0x2be7bf=_0x2205c6;super(_0x400d99),this['_pointerEvents']=this['options'][_0x2be7bf(0x9a)];}get[_0x2205c6(0x95)](){return this['_echartsInstance'];}get[_0x2205c6(0x9a)](){return this['_pointerEvents'];}set['pointerEvents'](_0xec4ac5){const _0x6fb23f={_0x37074c:0x9a},_0x2123e3=_0x2205c6;this['_pointerEvents']=_0xec4ac5,this['_echartsContainer']&&(_0xec4ac5?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x2123e3(_0x6fb23f._0x37074c)]='none');}[_0x2205c6(0xab)](_0x54e78a,_0x12fa23){this['setEchartsOption'](_0x54e78a);}[_0x2205c6(0x9c)](_0x21449d){const _0x4650b7={_0x320c97:0x96,_0x24082f:0x93,_0x679fac:0x78},_0x4086d0=_0x2205c6;_0x21449d?this['_echartsContainer'][_0x4086d0(_0x4650b7._0x320c97)]['visibility']='visible':this[_0x4086d0(0x8b)]['style'][_0x4086d0(_0x4650b7._0x24082f)]=_0x4086d0(_0x4650b7._0x679fac);}['_mountedHook'](){const _0x5a8ba8={_0x26b13a:0xae,_0x48f977:0x8d},_0x4c955d=_0x2205c6;this[_0x4c955d(0x9f)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x4c955d(0x9f)]['scene'][_0x4c955d(0xa2)]=this['options'][_0x4c955d(_0x5a8ba8._0x26b13a)]??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x4c955d(_0x5a8ba8._0x48f977)]??0x0;}['_addedHook'](){const _0x550c7d=_0x2205c6;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x550c7d(0x8e)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x550c7d(0x9f)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x26825b={_0x2e386a:0xaf},_0x593ab6=_0x2205c6;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x593ab6(_0x26825b._0x2e386a)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x593ab6(0x81)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xddfc6a={_0x19cb58:0x80,_0x14307a:0x96,_0x414075:0xa4,_0xdb92c7:0x83,_0x355d4b:0xb2,_0x21e681:0x9f,_0x156957:0x85,_0x19502f:0x7a},_0x17bfb6=_0x2205c6,_0x494da6=mars3d__namespace['DomUtil'][_0x17bfb6(0x7e)](_0x17bfb6(_0xddfc6a._0x19cb58),'mars3d-echarts',this['_map']['container']);return _0x494da6['id']=this['id'],_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['position']='absolute',_0x494da6[_0x17bfb6(0x96)]['top']=_0x17bfb6(_0xddfc6a._0x414075),_0x494da6['style']['left']='0px',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)][_0x17bfb6(_0xddfc6a._0xdb92c7)]=this['_map']['scene']['canvas']['clientWidth']+'px',_0x494da6['style'][_0x17bfb6(_0xddfc6a._0x355d4b)]=this[_0x17bfb6(_0xddfc6a._0x21e681)]['scene']['canvas']['clientHeight']+'px',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['pointerEvents']=this['_pointerEvents']?_0x17bfb6(_0xddfc6a._0x156957):'none',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['zIndex']=this['options'][_0x17bfb6(_0xddfc6a._0x19502f)]??0x9,_0x494da6;}['resize'](){const _0x46bec8={_0x15fbe4:0xaf,_0x106c28:0xb1},_0x428f59=_0x2205c6;if(!this[_0x428f59(_0x46bec8._0x15fbe4)])return;this['_echartsContainer']['style']['width']=this[_0x428f59(0x9f)]['scene']['canvas']['clientWidth']+'px',this[_0x428f59(0x8b)]['style']['height']=this['_map']['scene']['canvas'][_0x428f59(_0x46bec8._0x106c28)]+'px',this['_echartsInstance']['resize']();}[_0x2205c6(0xa3)](_0x105cfa,_0x3a8ea6,_0x2c5af9){const _0x527df3={_0x2428a0:0xaf},_0x24fdd2=_0x2205c6;this[_0x24fdd2(_0x527df3._0x2428a0)]&&(_0x105cfa={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x105cfa,{'onlySimpleType':!![]})},delete _0x105cfa['eventParent'],this['_echartsInstance']['setOption'](_0x105cfa,_0x3a8ea6,_0x2c5af9));}[_0x2205c6(0x74)](_0xac4147){const _0x2cf730={_0x439f21:0x8f};let _0x16528f,_0x5d15c6,_0x1983f4,_0x27b8a4;function _0x5ded03(_0x234600){const _0xac8f7=_0x4453;if(!Array['isArray'](_0x234600))return;const _0x5ec920=_0x234600[0x0]||0x0,_0x1ca1fd=_0x234600[0x1]||0x0;_0x5ec920!==0x0&&_0x1ca1fd!==0x0&&(_0x16528f===undefined?(_0x16528f=_0x5ec920,_0x5d15c6=_0x5ec920,_0x1983f4=_0x1ca1fd,_0x27b8a4=_0x1ca1fd):(_0x16528f=Math['min'](_0x16528f,_0x5ec920),_0x5d15c6=Math['max'](_0x5d15c6,_0x5ec920),_0x1983f4=Math['min'](_0x1983f4,_0x1ca1fd),_0x27b8a4=Math[_0xac8f7(0x86)](_0x27b8a4,_0x1ca1fd)));}const _0x38f6b0=this['options']['series'];_0x38f6b0&&_0x38f6b0['forEach'](_0x224233=>{const _0x2fbbb3=_0x4453;_0x224233[_0x2fbbb3(0x94)]&&_0x224233['data']['forEach'](_0x5e295b=>{const _0xb7897=_0x2fbbb3;if(_0x5e295b['value'])_0x5ded03(_0x5e295b['value']);else _0x5e295b[_0xb7897(_0x2cf730._0x439f21)]&&_0x5e295b['coords']['forEach'](_0x3845f0=>{_0x5ded03(_0x3845f0);});});});if(_0x16528f===0x0&&_0x1983f4===0x0&&_0x5d15c6===0x0&&_0x27b8a4===0x0)return null;return _0xac4147!==null&&_0xac4147!==void 0x0&&_0xac4147['isFormat']?{'xmin':_0x16528f,'xmax':_0x5d15c6,'ymin':_0x1983f4,'ymax':_0x27b8a4}:Cesium['Rectangle']['fromDegrees'](_0x16528f,_0x1983f4,_0x5d15c6,_0x27b8a4);}['on'](_0x5e356f,_0x97b340,_0xf24765){const _0x1bdd37=_0x2205c6;return this[_0x1bdd37(0xaf)]['on'](_0x5e356f,_0x97b340,_0xf24765||this),this;}['onByQuery'](_0x2dbbc9,_0x767bb6,_0x3ad590,_0x39f1eb){return this['_echartsInstance']['on'](_0x2dbbc9,_0x767bb6,_0x3ad590,_0x39f1eb||this),this;}['off'](_0x186144,_0x196f9a,_0x32030d){return this['_echartsInstance']['off'](_0x186144,_0x196f9a,_0x32030d||this),this;}}function _0x2363(){const _0x41147=['hidden','_api','zIndex','removeEventListener','512730AVrmqa','registerCoordinateSystem','create','eachSeries','div','container','2816508KptfWJ','width','_mapOffset','all','max','EchartsLayer','25610YhzwwU','584GCHLpG','639093gncKPF','_echartsContainer','hasOwnProperty','fixedHeight','init','coords','globe','ecInstance','SceneTransforms','visibility','data','layer','style','BoundingRect','fromDegrees','addEventListener','pointerEvents','120TNkmWu','_showHook','postRender','__esModule','_map','echartsFixedHeight','getWidth','echartsAutoHeight','setEchartsOption','0px','getBMap','coordinateSystem','getViewRect','544AVsRWW','24gtKsAt','1791576NpfwFn','_setOptionsHook','Cartographic','isPointVisible','clampToGround','_echartsInstance','getHeight','clientHeight','height','registerAction','10136020nhvQQO','mars3dMap','getRectangle','_mars3d_scene','forEach','lng'];_0x2363=function(){return _0x41147;};return _0x2363();}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x2205c6(0x87)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x5013f8){const _0x4b44da={_0x3978ac:0x8c},_0xde6742=_0x2205c6;if(_0x5013f8!=='default'&&!exports[_0xde6742(_0x4b44da._0x3978ac)](_0x5013f8))Object['defineProperty'](exports,_0x5013f8,{'enumerable':!![],'get':function(){return echarts[_0x5013f8];}});}),Object['defineProperty'](exports,_0x2205c6(0x9e),{'value':!![]});
14
+ 'use strict';const _0x14927f=_0x372f;function _0x372f(_0x479379,_0x8daa27){const _0x189b9d=_0x189b();return _0x372f=function(_0x372fee,_0x42589b){_0x372fee=_0x372fee-0x1ad;let _0x55ae23=_0x189b9d[_0x372fee];return _0x55ae23;},_0x372f(_0x479379,_0x8daa27);}(function(_0xc49552,_0x37a62c){const _0x47fc99={_0x298124:0x1d0,_0x50b2f2:0x1b4,_0x3a956f:0x1da,_0x20014e:0x1e7,_0x56851e:0x1be},_0x472da9=_0x372f,_0x5e248a=_0xc49552();while(!![]){try{const _0x30ea2c=parseInt(_0x472da9(0x1db))/0x1*(-parseInt(_0x472da9(0x1af))/0x2)+-parseInt(_0x472da9(_0x47fc99._0x298124))/0x3+-parseInt(_0x472da9(_0x47fc99._0x50b2f2))/0x4+-parseInt(_0x472da9(0x1cb))/0x5+-parseInt(_0x472da9(_0x47fc99._0x3a956f))/0x6*(parseInt(_0x472da9(0x1e4))/0x7)+parseInt(_0x472da9(_0x47fc99._0x20014e))/0x8*(-parseInt(_0x472da9(0x1eb))/0x9)+parseInt(_0x472da9(_0x47fc99._0x56851e))/0xa;if(_0x30ea2c===_0x37a62c)break;else _0x5e248a['push'](_0x5e248a['shift']());}catch(_0x34b0c6){_0x5e248a['push'](_0x5e248a['shift']());}}}(_0x189b,0x1b22c));function _interopNamespace(_0x1e175a){const _0x422bb4={_0xa3db0c:0x1e2},_0x4bbec6=_0x372f;if(_0x1e175a&&_0x1e175a['__esModule'])return _0x1e175a;var _0x2aec36=Object['create'](null);return _0x1e175a&&Object['keys'](_0x1e175a)[_0x4bbec6(_0x422bb4._0xa3db0c)](function(_0x35577d){const _0x1294fd=_0x4bbec6;if(_0x35577d!=='default'){var _0x2f73ae=Object[_0x1294fd(0x1b7)](_0x1e175a,_0x35577d);Object['defineProperty'](_0x2aec36,_0x35577d,_0x2f73ae['get']?_0x2f73ae:{'enumerable':!![],'get':function(){return _0x1e175a[_0x35577d];}});}}),_0x2aec36['default']=_0x1e175a,_0x2aec36;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x53fe21,_0x101688){const _0x446988={_0x2aacf4:0x1ee,_0x28b359:0x1bc},_0x5013dc=_0x372f;this['_mars3d_scene']=_0x53fe21,this['dimensions']=['lng',_0x5013dc(_0x446988._0x2aacf4)],this['_mapOffset']=[0x0,0x0],this[_0x5013dc(_0x446988._0x28b359)]=_0x101688;}[_0x14927f(0x1f4)](_0x26f950){this['_mapOffset']=_0x26f950;}[_0x14927f(0x1d6)](){return this['_mars3d_scene'];}['dataToPoint'](_0x4be88b){const _0x5e3cfa={_0x44834d:0x1c8,_0x5dcc45:0x1c2,_0x5a0489:0x1d7,_0x2b59ed:0x1ae},_0x492c17=_0x14927f,_0x23e5bc=this['_mars3d_scene'],_0x29568d=[NaN,NaN];let _0x4d8ef1=_0x23e5bc['echartsFixedHeight'];_0x23e5bc[_0x492c17(0x1cc)]&&(_0x4d8ef1=_0x23e5bc['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x4be88b[0x0],_0x4be88b[0x1])));const _0x3c3acc=Cesium$1[_0x492c17(_0x5e3cfa._0x44834d)]['fromDegrees'](_0x4be88b[0x0],_0x4be88b[0x1],_0x4d8ef1);if(!_0x3c3acc)return _0x29568d;const _0x143b36=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x23e5bc,_0x3c3acc);if(!_0x143b36)return _0x29568d;if(_0x23e5bc[_0x492c17(0x1c1)]&&_0x23e5bc['mode']===Cesium$1['SceneMode'][_0x492c17(0x1e6)]){const _0x50f23e=new Cesium$1[(_0x492c17(_0x5e3cfa._0x5dcc45))](_0x23e5bc[_0x492c17(0x1d1)][_0x492c17(0x1c5)],_0x23e5bc[_0x492c17(_0x5e3cfa._0x5a0489)]['positionWC']),_0x51f498=_0x50f23e['isPointVisible'](_0x3c3acc);if(!_0x51f498)return _0x29568d;}return[_0x143b36['x']-this[_0x492c17(_0x5e3cfa._0x2b59ed)][0x0],_0x143b36['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x422e02=_0x14927f,_0x42b6d1=this['_api'];return new echarts__namespace[(_0x422e02(0x1d9))]['BoundingRect'](0x0,0x0,_0x42b6d1['getWidth'](),_0x42b6d1['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x1f0329,_0x80ca80){const _0x471803=_0x14927f;let _0x4d06f2;const _0x308616=_0x1f0329['scheduler']['ecInstance']['_mars3d_scene'];_0x1f0329['eachComponent']('mars3dMap',function(_0x13d61f){const _0x3821d8=_0x80ca80['getZr']()['painter'];if(!_0x3821d8)return;!_0x4d06f2&&(_0x4d06f2=new CompositeCoordinateSystem(_0x308616,_0x80ca80)),_0x13d61f['coordinateSystem']=_0x4d06f2,_0x4d06f2['setMapOffset'](_0x13d61f['__mapOffset']||[0x0,0x0]);}),_0x1f0329[_0x471803(0x1ca)](function(_0x1dda8d){_0x1dda8d['get']('coordinateSystem')==='mars3dMap'&&(!_0x4d06f2&&(_0x4d06f2=new CompositeCoordinateSystem(_0x308616,_0x80ca80)),_0x1dda8d['coordinateSystem']=_0x4d06f2);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x14927f(0x1c4)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x14927f(0x1e9)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x4e0dc4,_0x576b31){}),echarts__namespace['extendComponentModel']({'type':_0x14927f(0x1dd),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x128d11,_0x237f01){const _0x3e8d16=_0x14927f;this[_0x3e8d16(0x1d3)]=_0x237f01,this['scene']=_0x128d11[_0x3e8d16(0x1ad)][_0x3e8d16(0x1bb)]['_mars3d_scene'],this[_0x3e8d16(0x1b2)]['postRender']['addEventListener'](this[_0x3e8d16(0x1b1)],this);},'moveHandler':function(_0x3afec4,_0x99a484){const _0x369338=_0x14927f;this['api'][_0x369338(0x1c9)]({'type':'mars3dMapRoam'});},'render':function(_0x99fb04,_0x324654,_0x28407d){},'dispose':function(_0x2c3575){const _0x506a47={_0x46b2a7:0x1bf},_0x4da857=_0x14927f;this['scene']['postRender'][_0x4da857(_0x506a47._0x46b2a7)](this['moveHandler'],this);}});else throw new Error(_0x14927f(0x1c6));const Cesium=mars3d__namespace[_0x14927f(0x1d8)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];function _0x189b(){const _0xe31a2f=['7902310aDwjXC','removeEventListener','mars3d-echarts','echartsDepthTest','EllipsoidalOccluder','pointerEvents','registerCoordinateSystem','ellipsoid','请引入\x20echarts\x20库\x20','clientHeight','Cartesian3','dispatchAction','eachSeries','648435PGWAuV','echartsAutoHeight','eventParent','echarts','isFormat','376032iFPqWU','globe','echartsFixedHeight','api','_map','style','getBMap','camera','Cesium','graphic','18WPJezK','3KFqwxa','max','mars3dMap','_removedHook','Util','init','_echartsInstance','forEach','value','484295Avnkkh','all','SCENE3D','24bIsvrd','_setOptionsHook','registerAction','setEchartsOption','469701EokfjA','defineProperty','fixedHeight','lat','options','div','visible','none','top','setMapOffset','width','scheduler','_mapOffset','3672pwQYhP','setOption','moveHandler','scene','_echartsContainer','217688IUwXCS','getRectangle','canvas','getOwnPropertyDescriptor','_pointerEvents','zIndex','Rectangle','ecInstance','_api','min'];_0x189b=function(){return _0xe31a2f;};return _0x189b();}class EchartsLayer extends BaseLayer{constructor(_0x47085f={}){const _0x2c8cfd=_0x14927f;super(_0x47085f),this['_pointerEvents']=this[_0x2c8cfd(0x1ef)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x14927f(0x1c3)](){const _0x24dfdb={_0x1665d3:0x1b8},_0x865513=_0x14927f;return this[_0x865513(_0x24dfdb._0x1665d3)];}set['pointerEvents'](_0x340b35){const _0x432355={_0x22e820:0x1b8,_0x3614ff:0x1c3,_0x921a99:0x1e5},_0x85ee48=_0x14927f;this[_0x85ee48(_0x432355._0x22e820)]=_0x340b35,this['_echartsContainer']&&(_0x340b35?this['_echartsContainer']['style'][_0x85ee48(_0x432355._0x3614ff)]=_0x85ee48(_0x432355._0x921a99):this[_0x85ee48(0x1b3)]['style'][_0x85ee48(0x1c3)]=_0x85ee48(0x1f2));}[_0x14927f(0x1e8)](_0x522156,_0x1f581b){this['setEchartsOption'](_0x522156);}['_showHook'](_0x2b6265){const _0x431b6e={_0x26812d:0x1d5},_0x24831a=_0x14927f;_0x2b6265?this['_echartsContainer'][_0x24831a(_0x431b6e._0x26812d)]['visibility']=_0x24831a(0x1f1):this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x20a379={_0x597690:0x1d4,_0x3076bb:0x1b2,_0x372290:0x1ed},_0x4626d1=_0x14927f;this[_0x4626d1(0x1d4)][_0x4626d1(0x1b2)]['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x4626d1(_0x20a379._0x597690)]['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x4626d1(_0x20a379._0x3076bb)][_0x4626d1(0x1d2)]=this['options'][_0x4626d1(_0x20a379._0x372290)]??0x0;}['_addedHook'](){const _0x148860={_0x2d9b56:0x1e0,_0x5c33c3:0x1b2},_0x1277d2=_0x14927f;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x1277d2(_0x148860._0x2d9b56)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x1277d2(_0x148860._0x5c33c3)],this[_0x1277d2(0x1ea)](this['options']);}[_0x14927f(0x1de)](){const _0x1ca76a={_0x220e4e:0x1e1,_0x1d29eb:0x1d4,_0x5e7768:0x1b3},_0x57c8b3=_0x14927f;this[_0x57c8b3(_0x1ca76a._0x220e4e)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x57c8b3(_0x1ca76a._0x1d29eb)]['container']['removeChild'](this['_echartsContainer']),delete this[_0x57c8b3(_0x1ca76a._0x5e7768)]);}['_createChartOverlay'](){const _0x210f0f={_0x3c9856:0x1f0,_0x3f8363:0x1c0,_0xb83286:0x1d5,_0x13b66a:0x1b6,_0x2c3130:0x1b9,_0xcf2776:0x1ef},_0x2abe55=_0x14927f,_0x5f5f16=mars3d__namespace['DomUtil']['create'](_0x2abe55(_0x210f0f._0x3c9856),_0x2abe55(_0x210f0f._0x3f8363),this['_map']['container']);return _0x5f5f16['id']=this['id'],_0x5f5f16['style']['position']='absolute',_0x5f5f16[_0x2abe55(0x1d5)][_0x2abe55(0x1f3)]='0px',_0x5f5f16['style']['left']='0px',_0x5f5f16[_0x2abe55(_0x210f0f._0xb83286)]['width']=this['_map']['scene'][_0x2abe55(0x1b6)]['clientWidth']+'px',_0x5f5f16['style']['height']=this['_map']['scene'][_0x2abe55(_0x210f0f._0x13b66a)]['clientHeight']+'px',_0x5f5f16[_0x2abe55(0x1d5)]['pointerEvents']=this['_pointerEvents']?'all':_0x2abe55(0x1f2),_0x5f5f16['style'][_0x2abe55(_0x210f0f._0x2c3130)]=this[_0x2abe55(_0x210f0f._0xcf2776)][_0x2abe55(0x1b9)]??0x9,_0x5f5f16;}['resize'](){const _0x2a33f9={_0x896df0:0x1b3,_0x278f87:0x1b2,_0x48fb17:0x1c7},_0x5b6dde=_0x14927f;if(!this['_echartsInstance'])return;this[_0x5b6dde(_0x2a33f9._0x896df0)][_0x5b6dde(0x1d5)][_0x5b6dde(0x1f5)]=this['_map'][_0x5b6dde(_0x2a33f9._0x278f87)][_0x5b6dde(0x1b6)]['clientWidth']+'px',this['_echartsContainer'][_0x5b6dde(0x1d5)]['height']=this['_map']['scene']['canvas'][_0x5b6dde(_0x2a33f9._0x48fb17)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x33c5d4,_0xefef96,_0x1c1c8c){const _0x44c718=_0x14927f;this['_echartsInstance']&&(_0x33c5d4={'mars3dMap':{},...mars3d__namespace[_0x44c718(0x1df)]['getAttrVal'](_0x33c5d4,{'onlySimpleType':!![]})},delete _0x33c5d4[_0x44c718(0x1cd)],this['_echartsInstance'][_0x44c718(0x1b0)](_0x33c5d4,_0xefef96,_0x1c1c8c));}[_0x14927f(0x1b5)](_0x52cda9){const _0x5f04f4={_0x3a77dd:0x1ba},_0x129ffc=_0x14927f;let _0x1cafe6,_0x45980b,_0x251eab,_0x3a6d4e;function _0x480f0f(_0x1705e3){const _0x302cd0=_0x372f;if(!Array['isArray'](_0x1705e3))return;const _0x3f6b47=_0x1705e3[0x0]||0x0,_0x3babad=_0x1705e3[0x1]||0x0;_0x3f6b47!==0x0&&_0x3babad!==0x0&&(_0x1cafe6===undefined?(_0x1cafe6=_0x3f6b47,_0x45980b=_0x3f6b47,_0x251eab=_0x3babad,_0x3a6d4e=_0x3babad):(_0x1cafe6=Math['min'](_0x1cafe6,_0x3f6b47),_0x45980b=Math[_0x302cd0(0x1dc)](_0x45980b,_0x3f6b47),_0x251eab=Math[_0x302cd0(0x1bd)](_0x251eab,_0x3babad),_0x3a6d4e=Math['max'](_0x3a6d4e,_0x3babad)));}const _0x21ee00=this['options']['series'];_0x21ee00&&_0x21ee00['forEach'](_0x4b3e6f=>{_0x4b3e6f['data']&&_0x4b3e6f['data']['forEach'](_0x3e9223=>{const _0x49afb8=_0x372f;if(_0x3e9223[_0x49afb8(0x1e3)])_0x480f0f(_0x3e9223[_0x49afb8(0x1e3)]);else _0x3e9223['coords']&&_0x3e9223['coords']['forEach'](_0x2cd1ae=>{_0x480f0f(_0x2cd1ae);});});});if(_0x1cafe6===0x0&&_0x251eab===0x0&&_0x45980b===0x0&&_0x3a6d4e===0x0)return null;return _0x52cda9!==null&&_0x52cda9!==void 0x0&&_0x52cda9[_0x129ffc(0x1cf)]?{'xmin':_0x1cafe6,'xmax':_0x45980b,'ymin':_0x251eab,'ymax':_0x3a6d4e}:Cesium[_0x129ffc(_0x5f04f4._0x3a77dd)]['fromDegrees'](_0x1cafe6,_0x251eab,_0x45980b,_0x3a6d4e);}['on'](_0x232a0a,_0x42c3fd,_0x387346){return this['_echartsInstance']['on'](_0x232a0a,_0x42c3fd,_0x387346||this),this;}['onByQuery'](_0x5eb821,_0x9048cc,_0x3a4a1c,_0x1bf344){return this['_echartsInstance']['on'](_0x5eb821,_0x9048cc,_0x3a4a1c,_0x1bf344||this),this;}['off'](_0x3cbca1,_0x53b8ef,_0x1c8bf){const _0x29651d=_0x14927f;return this[_0x29651d(0x1e1)]['off'](_0x3cbca1,_0x53b8ef,_0x1c8bf||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x14927f(0x1ce),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x3d4296){const _0x44619b={_0x20d94c:0x1ec},_0x4fa57b=_0x14927f;if(_0x3d4296!=='default'&&!exports['hasOwnProperty'](_0x3d4296))Object[_0x4fa57b(_0x44619b._0x20d94c)](exports,_0x3d4296,{'enumerable':!![],'get':function(){return echarts[_0x3d4296];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-echarts",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "description": "Mars3D平台插件,结合echarts可视化功能插件",
5
5
  "main": "dist/mars3d-echarts.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "echarts": "^5.4.3"
11
11
  },
12
12
  "devDependencies": {
13
- "mars3d": "~3.7.7"
13
+ "mars3d": "~3.7.8"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"