mars3d-echarts
Advanced tools
Comparing version 3.7.8 to 3.7.9
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.7.8 | ||
* 编译日期:2024-03-25 20:24:02 | ||
* 版本信息:v3.7.9 | ||
* 编译日期:2024-04-06 21:23:42 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2024-01-15 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'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':!![]}); | ||
'use strict';const _0x149e94=_0x4c70;(function(_0x1af09d,_0x5458a5){const _0x70902f={_0x33c1b1:0x11e,_0x2909a1:0x135,_0x556000:0x140,_0x43f92b:0x108,_0x2c798e:0x134,_0x1e81a5:0x10c},_0x5e44b6=_0x4c70,_0x45c5a2=_0x1af09d();while(!![]){try{const _0x2172e3=-parseInt(_0x5e44b6(0x138))/0x1*(-parseInt(_0x5e44b6(_0x70902f._0x33c1b1))/0x2)+-parseInt(_0x5e44b6(_0x70902f._0x2909a1))/0x3*(parseInt(_0x5e44b6(0x123))/0x4)+-parseInt(_0x5e44b6(_0x70902f._0x556000))/0x5+-parseInt(_0x5e44b6(_0x70902f._0x43f92b))/0x6+parseInt(_0x5e44b6(_0x70902f._0x2c798e))/0x7*(parseInt(_0x5e44b6(0x12d))/0x8)+parseInt(_0x5e44b6(0x113))/0x9+-parseInt(_0x5e44b6(_0x70902f._0x1e81a5))/0xa*(parseInt(_0x5e44b6(0xff))/0xb);if(_0x2172e3===_0x5458a5)break;else _0x45c5a2['push'](_0x45c5a2['shift']());}catch(_0x19afa4){_0x45c5a2['push'](_0x45c5a2['shift']());}}}(_0x5e3b,0x4f7e5));function _0x5e3b(){const _0x14e7b3=['mars3dMap','coords','layer','visibility','default','2035385FcScKq','mars3dMapRoam','198xGGWOB','getWidth','lng','isPointVisible','clientWidth','pointerEvents','getBMap','removeEventListener','create','2832210hscHBc','postRender','getViewRect','min','55950gxDglq','top','isArray','max','canvas','echartsDepthTest','hasOwnProperty','3977064LzwyKZ','resize','camera','scene','_map','SCENE3D','left','eventParent','div','dimensions','moveHandler','1256744dPCDty','_mapOffset','_pointerEvents','clear','DomUtil','445124ESphNq','getAttrVal','BaseLayer','value','absolute','mars3d-echarts','Cartographic','setOption','all','zIndex','692880DVbxul','data','dataToPoint','_mars3d_scene','echartsAutoHeight','style','coordinateSystem','28JYBxbq','3gUEFyr','eachComponent','isFormat','1ABuPSu','_echartsContainer','_echartsInstance'];_0x5e3b=function(){return _0x14e7b3;};return _0x5e3b();}function _interopNamespace(_0x11c78c){const _0x56c63a={_0x5ccff4:0x13f},_0x1729a6=_0x4c70;if(_0x11c78c&&_0x11c78c['__esModule'])return _0x11c78c;var _0x2e48af=Object[_0x1729a6(0x107)](null);return _0x11c78c&&Object['keys'](_0x11c78c)['forEach'](function(_0x2bb099){const _0x374541=_0x1729a6;if(_0x2bb099!==_0x374541(_0x56c63a._0x5ccff4)){var _0xbbbae5=Object['getOwnPropertyDescriptor'](_0x11c78c,_0x2bb099);Object['defineProperty'](_0x2e48af,_0x2bb099,_0xbbbae5['get']?_0xbbbae5:{'enumerable':!![],'get':function(){return _0x11c78c[_0x2bb099];}});}}),_0x2e48af['default']=_0x11c78c,_0x2e48af;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2a1ac6,_0x1a9042){const _0x4127bb={_0x37a6cf:0x11c},_0x14bb5b=_0x4c70;this[_0x14bb5b(0x130)]=_0x2a1ac6,this[_0x14bb5b(_0x4127bb._0x37a6cf)]=[_0x14bb5b(0x101),'lat'],this[_0x14bb5b(0x11f)]=[0x0,0x0],this['_api']=_0x1a9042;}['setMapOffset'](_0x4357c8){const _0x4ed14c=_0x4c70;this[_0x4ed14c(0x11f)]=_0x4357c8;}[_0x149e94(0x105)](){return this['_mars3d_scene'];}[_0x149e94(0x12f)](_0x4a259e){const _0x4c7ea1={_0x43a1c4:0x131,_0x1cf1fa:0x129,_0x256d43:0x102},_0x118e6b=_0x149e94,_0x4f8668=this['_mars3d_scene'],_0x4ed57a=[NaN,NaN];let _0x987816=_0x4f8668['echartsFixedHeight'];_0x4f8668[_0x118e6b(_0x4c7ea1._0x43a1c4)]&&(_0x987816=_0x4f8668['getHeight'](Cesium$1[_0x118e6b(_0x4c7ea1._0x1cf1fa)]['fromDegrees'](_0x4a259e[0x0],_0x4a259e[0x1])));const _0x36e236=Cesium$1['Cartesian3']['fromDegrees'](_0x4a259e[0x0],_0x4a259e[0x1],_0x987816);if(!_0x36e236)return _0x4ed57a;const _0x4ecd31=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x4f8668,_0x36e236);if(!_0x4ecd31)return _0x4ed57a;if(_0x4f8668['echartsDepthTest']&&_0x4f8668['mode']===Cesium$1['SceneMode'][_0x118e6b(0x118)]){const _0x6d0c1a=new Cesium$1['EllipsoidalOccluder'](_0x4f8668['globe']['ellipsoid'],_0x4f8668[_0x118e6b(0x115)]['positionWC']),_0x563c6a=_0x6d0c1a[_0x118e6b(_0x4c7ea1._0x256d43)](_0x36e236);if(!_0x563c6a)return _0x4ed57a;}return[_0x4ecd31['x']-this['_mapOffset'][0x0],_0x4ecd31['y']-this['_mapOffset'][0x1]];}[_0x149e94(0x10a)](){const _0x2692e8=_0x149e94,_0x16668f=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x16668f[_0x2692e8(0x100)](),_0x16668f['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}function _0x4c70(_0x13b52f,_0x1c4bc){const _0x5e3b2a=_0x5e3b();return _0x4c70=function(_0x4c70b8,_0x10070b){_0x4c70b8=_0x4c70b8-0xff;let _0x23013a=_0x5e3b2a[_0x4c70b8];return _0x23013a;},_0x4c70(_0x13b52f,_0x1c4bc);}CompositeCoordinateSystem[_0x149e94(0x11c)]=[_0x149e94(0x101),'lat'],CompositeCoordinateSystem['create']=function(_0x226b22,_0x48e864){const _0x3aeee7={_0x18c12e:0x130,_0x1edf27:0x136},_0x223849=_0x149e94;let _0x555d5a;const _0x201dc4=_0x226b22['scheduler']['ecInstance'][_0x223849(_0x3aeee7._0x18c12e)];_0x226b22[_0x223849(_0x3aeee7._0x1edf27)]('mars3dMap',function(_0x1e3044){const _0x2c66b0=_0x48e864['getZr']()['painter'];if(!_0x2c66b0)return;!_0x555d5a&&(_0x555d5a=new CompositeCoordinateSystem(_0x201dc4,_0x48e864)),_0x1e3044['coordinateSystem']=_0x555d5a,_0x555d5a['setMapOffset'](_0x1e3044['__mapOffset']||[0x0,0x0]);}),_0x226b22['eachSeries'](function(_0x515d2a){const _0x4ba88d=_0x223849;_0x515d2a['get']('coordinateSystem')==='mars3dMap'&&(!_0x555d5a&&(_0x555d5a=new CompositeCoordinateSystem(_0x201dc4,_0x48e864)),_0x515d2a[_0x4ba88d(0x133)]=_0x555d5a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x149e94(0x141),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x18c268,_0x529193){}),echarts__namespace['extendComponentModel']({'type':_0x149e94(0x13b),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1666f7,_0x54909b){const _0x456d74={_0x16a335:0x116},_0x2e3d91=_0x149e94;this['api']=_0x54909b,this[_0x2e3d91(0x116)]=_0x1666f7['scheduler']['ecInstance']['_mars3d_scene'],this[_0x2e3d91(_0x456d74._0x16a335)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x1160a2,_0x2874fd){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x254682,_0x3da38f,_0x3321ce){},'dispose':function(_0x157e84){const _0x939817={_0x419f2c:0x109,_0x125772:0x106,_0x1a2016:0x11d},_0x45fec5=_0x149e94;this['scene'][_0x45fec5(_0x939817._0x419f2c)][_0x45fec5(_0x939817._0x125772)](this[_0x45fec5(_0x939817._0x1a2016)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x149e94(0x125)];class EchartsLayer extends BaseLayer{constructor(_0x35eea6={}){super(_0x35eea6),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x149e94(0x13d)](){return this['_echartsInstance'];}get[_0x149e94(0x104)](){const _0x8f9824={_0x41f1d7:0x120},_0x21d787=_0x149e94;return this[_0x21d787(_0x8f9824._0x41f1d7)];}set['pointerEvents'](_0x302db0){const _0x545cf6=_0x149e94;this['_pointerEvents']=_0x302db0,this['_echartsContainer']&&(_0x302db0?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x545cf6(0x104)]='none');}['_setOptionsHook'](_0x1663ec,_0x1c91c1){this['setEchartsOption'](_0x1663ec);}['_showHook'](_0x5cf836){const _0x2ddb63=_0x149e94;_0x5cf836?this[_0x2ddb63(0x139)]['style'][_0x2ddb63(0x13e)]='visible':this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x515cea={_0x502e27:0x111,_0xcc2dc6:0x116},_0x1b07f5=_0x149e94;this['_map']['scene'][_0x1b07f5(_0x515cea._0x502e27)]=this['options']['depthTest']??!![],this['_map'][_0x1b07f5(_0x515cea._0xcc2dc6)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x1b07f5(0x116)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x5725f8=_0x149e94;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x5725f8(0x139)]),this[_0x5725f8(0x13a)]['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5463ec={_0x15aefe:0x13a,_0x42dd0b:0x139},_0x597f7a=_0x149e94;this[_0x597f7a(_0x5463ec._0x15aefe)]&&(this['_echartsInstance'][_0x597f7a(0x121)](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this[_0x597f7a(_0x5463ec._0x42dd0b)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x2006c0={_0x4aa3cf:0x107,_0x46e33f:0x127,_0x1ea87c:0x119,_0x182f1c:0x110,_0x5b6ea1:0x132,_0x555d81:0x12b,_0x2461d7:0x12c},_0x4ca260=_0x149e94,_0x50cd6a=mars3d__namespace[_0x4ca260(0x122)][_0x4ca260(_0x2006c0._0x4aa3cf)](_0x4ca260(0x11b),_0x4ca260(0x128),this['_map']['container']);return _0x50cd6a['id']=this['id'],_0x50cd6a['style']['position']=_0x4ca260(_0x2006c0._0x46e33f),_0x50cd6a['style'][_0x4ca260(0x10d)]='0px',_0x50cd6a['style'][_0x4ca260(_0x2006c0._0x1ea87c)]='0px',_0x50cd6a['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x50cd6a['style']['height']=this['_map']['scene'][_0x4ca260(_0x2006c0._0x182f1c)]['clientHeight']+'px',_0x50cd6a[_0x4ca260(_0x2006c0._0x5b6ea1)]['pointerEvents']=this['_pointerEvents']?_0x4ca260(_0x2006c0._0x555d81):'none',_0x50cd6a['style'][_0x4ca260(_0x2006c0._0x2461d7)]=this['options']['zIndex']??0x9,_0x50cd6a;}['resize'](){const _0x4f6ffe={_0x263de4:0x117,_0x25c616:0x116,_0x5b35ce:0x103,_0x9215f2:0x139,_0x779569:0x132},_0x4498c4=_0x149e94;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this[_0x4498c4(_0x4f6ffe._0x263de4)][_0x4498c4(_0x4f6ffe._0x25c616)]['canvas'][_0x4498c4(_0x4f6ffe._0x5b35ce)]+'px',this[_0x4498c4(_0x4f6ffe._0x9215f2)][_0x4498c4(_0x4f6ffe._0x779569)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance'][_0x4498c4(0x114)]();}['setEchartsOption'](_0x35ecf6,_0x2425c5,_0x348c7c){const _0x8793e0={_0x29d602:0x11a,_0x25a095:0x12a},_0x12c319=_0x149e94;this['_echartsInstance']&&(_0x35ecf6={'mars3dMap':{},...mars3d__namespace['Util'][_0x12c319(0x124)](_0x35ecf6,{'onlySimpleType':!![]})},delete _0x35ecf6[_0x12c319(_0x8793e0._0x29d602)],this[_0x12c319(0x13a)][_0x12c319(_0x8793e0._0x25a095)](_0x35ecf6,_0x2425c5,_0x348c7c));}['getRectangle'](_0x5a2b18){const _0x56679a={_0x5e6301:0x12e,_0x3322cb:0x12e},_0x127354=_0x149e94;let _0x4f6546,_0x4e49ed,_0x56b8ca,_0xeec11f;function _0x97b903(_0x4af048){const _0x259894=_0x4c70;if(!Array[_0x259894(0x10e)](_0x4af048))return;const _0x6091ef=_0x4af048[0x0]||0x0,_0x9891e=_0x4af048[0x1]||0x0;_0x6091ef!==0x0&&_0x9891e!==0x0&&(_0x4f6546===undefined?(_0x4f6546=_0x6091ef,_0x4e49ed=_0x6091ef,_0x56b8ca=_0x9891e,_0xeec11f=_0x9891e):(_0x4f6546=Math['min'](_0x4f6546,_0x6091ef),_0x4e49ed=Math[_0x259894(0x10f)](_0x4e49ed,_0x6091ef),_0x56b8ca=Math[_0x259894(0x10b)](_0x56b8ca,_0x9891e),_0xeec11f=Math['max'](_0xeec11f,_0x9891e)));}const _0x280872=this['options']['series'];_0x280872&&_0x280872['forEach'](_0x4bbad5=>{const _0x487616=_0x4c70;_0x4bbad5[_0x487616(_0x56679a._0x5e6301)]&&_0x4bbad5[_0x487616(_0x56679a._0x3322cb)]['forEach'](_0x24bbe9=>{const _0xc0d32f=_0x487616;if(_0x24bbe9['value'])_0x97b903(_0x24bbe9[_0xc0d32f(0x126)]);else _0x24bbe9[_0xc0d32f(0x13c)]&&_0x24bbe9['coords']['forEach'](_0x52a937=>{_0x97b903(_0x52a937);});});});if(_0x4f6546===0x0&&_0x56b8ca===0x0&&_0x4e49ed===0x0&&_0xeec11f===0x0)return null;return _0x5a2b18!==null&&_0x5a2b18!==void 0x0&&_0x5a2b18[_0x127354(0x137)]?{'xmin':_0x4f6546,'xmax':_0x4e49ed,'ymin':_0x56b8ca,'ymax':_0xeec11f}:Cesium['Rectangle']['fromDegrees'](_0x4f6546,_0x56b8ca,_0x4e49ed,_0xeec11f);}['on'](_0x2ad30a,_0xcaffd9,_0x49d220){return this['_echartsInstance']['on'](_0x2ad30a,_0xcaffd9,_0x49d220||this),this;}['onByQuery'](_0x32e886,_0x5b35ba,_0x13f77f,_0xfef7df){return this['_echartsInstance']['on'](_0x32e886,_0x5b35ba,_0x13f77f,_0xfef7df||this),this;}['off'](_0x949334,_0x137950,_0x4a4087){return this['_echartsInstance']['off'](_0x949334,_0x137950,_0x4a4087||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x2d8a49){const _0x7c2d49=_0x149e94;if(_0x2d8a49!=='default'&&!exports[_0x7c2d49(0x112)](_0x2d8a49))Object['defineProperty'](exports,_0x2d8a49,{'enumerable':!![],'get':function(){return echarts[_0x2d8a49];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.7.8", | ||
"version": "3.7.9", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.7.8" | ||
"mars3d": "~3.7.9" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
16921
63