mars3d-echarts 3.7.4 → 3.7.6

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.4
5
- * 编译日期:2024-02-23 17:33:54
4
+ * 版本信息:v3.7.6
5
+ * 编译日期:2024-03-12 20:54: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 _0x4de76d=_0x17ab;(function(_0x2a4c8d,_0x5c5d4e){const _0x2acb22={_0x2aecca:0x159,_0x2cf406:0x17b,_0x492974:0x175,_0x3778cb:0x156,_0x1a723a:0x173,_0x2fbe54:0x177},_0x4947f4=_0x17ab,_0x45e4f2=_0x2a4c8d();while(!![]){try{const _0x4345a2=parseInt(_0x4947f4(_0x2acb22._0x2aecca))/0x1*(parseInt(_0x4947f4(_0x2acb22._0x2cf406))/0x2)+-parseInt(_0x4947f4(0x161))/0x3+-parseInt(_0x4947f4(0x15e))/0x4+-parseInt(_0x4947f4(0x13d))/0x5*(-parseInt(_0x4947f4(_0x2acb22._0x492974))/0x6)+parseInt(_0x4947f4(0x160))/0x7*(parseInt(_0x4947f4(0x16c))/0x8)+parseInt(_0x4947f4(_0x2acb22._0x3778cb))/0x9+parseInt(_0x4947f4(_0x2acb22._0x1a723a))/0xa*(parseInt(_0x4947f4(_0x2acb22._0x2fbe54))/0xb);if(_0x4345a2===_0x5c5d4e)break;else _0x45e4f2['push'](_0x45e4f2['shift']());}catch(_0x438bc2){_0x45e4f2['push'](_0x45e4f2['shift']());}}}(_0x1f6e,0xac20c));function _0x17ab(_0x37b459,_0x5bf2be){const _0x1f6e9b=_0x1f6e();return _0x17ab=function(_0x17abe3,_0x38f9d7){_0x17abe3=_0x17abe3-0x13d;let _0x43f28d=_0x1f6e9b[_0x17abe3];return _0x43f28d;},_0x17ab(_0x37b459,_0x5bf2be);}function _interopNamespace(_0x501fae){const _0x44e3a2={_0x26d926:0x150},_0x3fbad6=_0x17ab;if(_0x501fae&&_0x501fae['__esModule'])return _0x501fae;var _0x3d0655=Object[_0x3fbad6(0x157)](null);return _0x501fae&&Object['keys'](_0x501fae)['forEach'](function(_0x3bf617){const _0x5dc23a=_0x3fbad6;if(_0x3bf617!=='default'){var _0x3b31d9=Object[_0x5dc23a(0x15a)](_0x501fae,_0x3bf617);Object[_0x5dc23a(_0x44e3a2._0x26d926)](_0x3d0655,_0x3bf617,_0x3b31d9['get']?_0x3b31d9:{'enumerable':!![],'get':function(){return _0x501fae[_0x3bf617];}});}}),_0x3d0655['default']=_0x501fae,_0x3d0655;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x1f6e(){const _0x30f3fe=['extendComponentView','all','updateLayout','series','style','canvas','mars3dMapRoam','lng','defineProperty','extendComponentModel','forEach','_pointerEvents','onByQuery','getRoamTransform','2912418izRZAV','create','clientWidth','59558wqCTho','getOwnPropertyDescriptor','scheduler','_map','off','1237276sgsBrG','0px','266CczZVp','3992322MeeAoM','registerCoordinateSystem','fromDegrees','isArray','_mapOffset','scene','BaseLayer','none','options','dataToPoint','_setOptionsHook','39544AouFmL','visibility','removeEventListener','getRectangle','fixedHeight','_echartsInstance','BoundingRect','40DJCsuS','setOption','2910fGMFPx','ecInstance','472428jCMWKw','_mars3d_scene','LayerUtil','postRender','24GMgDhz','9765goPtSr','container','pointerEvents','eventParent','data','value','lat','Cesium','echarts','init','_echartsContainer'];_0x1f6e=function(){return _0x30f3fe;};return _0x1f6e();}const Cesium$1=mars3d__namespace[_0x4de76d(0x144)];class CompositeCoordinateSystem{constructor(_0x3cf8d8,_0x1a5b04){this['_mars3d_scene']=_0x3cf8d8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x1a5b04;}['setMapOffset'](_0x4a6000){this['_mapOffset']=_0x4a6000;}['getBMap'](){return this['_mars3d_scene'];}[_0x4de76d(0x16a)](_0x67468f){const _0x4d761c={_0x4be2e0:0x163},_0x756178=_0x4de76d,_0x55b60a=this[_0x756178(0x178)],_0x2ca0e3=[NaN,NaN];let _0x5c0d72=_0x55b60a['echartsFixedHeight'];_0x55b60a['echartsAutoHeight']&&(_0x5c0d72=_0x55b60a['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x67468f[0x0],_0x67468f[0x1])));const _0x35e2b2=Cesium$1['Cartesian3'][_0x756178(_0x4d761c._0x4be2e0)](_0x67468f[0x0],_0x67468f[0x1],_0x5c0d72);if(!_0x35e2b2)return _0x2ca0e3;const _0x4bbe6c=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x55b60a,_0x35e2b2);if(!_0x4bbe6c)return _0x2ca0e3;if(_0x55b60a['echartsDepthTest']&&_0x55b60a['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x31d61a=new Cesium$1['EllipsoidalOccluder'](_0x55b60a['globe']['ellipsoid'],_0x55b60a['camera']['positionWC']),_0x512467=_0x31d61a['isPointVisible'](_0x35e2b2);if(!_0x512467)return _0x2ca0e3;}return[_0x4bbe6c['x']-this[_0x756178(0x165)][0x0],_0x4bbe6c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x323b12={_0x4b7e7e:0x172},_0x39cf60=_0x4de76d,_0x57b6b0=this['_api'];return new echarts__namespace['graphic'][(_0x39cf60(_0x323b12._0x4b7e7e))](0x0,0x0,_0x57b6b0['getWidth'](),_0x57b6b0['getHeight']());}[_0x4de76d(0x155)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0x4de76d(0x14f),_0x4de76d(0x143)],CompositeCoordinateSystem['create']=function(_0x35f0da,_0x2cb23d){const _0x334327={_0x581878:0x176},_0x44a446=_0x4de76d;let _0x403aad;const _0x3329fc=_0x35f0da['scheduler'][_0x44a446(_0x334327._0x581878)][_0x44a446(0x178)];_0x35f0da['eachComponent']('mars3dMap',function(_0x3f17ab){const _0x371c8f=_0x2cb23d['getZr']()['painter'];if(!_0x371c8f)return;!_0x403aad&&(_0x403aad=new CompositeCoordinateSystem(_0x3329fc,_0x2cb23d)),_0x3f17ab['coordinateSystem']=_0x403aad,_0x403aad['setMapOffset'](_0x3f17ab['__mapOffset']||[0x0,0x0]);}),_0x35f0da['eachSeries'](function(_0x4ea902){_0x4ea902['get']('coordinateSystem')==='mars3dMap'&&(!_0x403aad&&(_0x403aad=new CompositeCoordinateSystem(_0x3329fc,_0x2cb23d)),_0x4ea902['coordinateSystem']=_0x403aad);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x4de76d(0x146)])echarts__namespace[_0x4de76d(0x162)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x4de76d(0x14e),'update':_0x4de76d(0x14a)},function(_0x501f11,_0xaf2fe){}),echarts__namespace[_0x4de76d(0x151)]({'type':'mars3dMap','getBMap':function(){const _0x296483={_0x1a6c90:0x178},_0x464912=_0x4de76d;return this[_0x464912(_0x296483._0x1a6c90)];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4de76d(0x148)]({'type':'mars3dMap','init':function(_0xf01fa7,_0x1a429c){const _0x33cce3=_0x4de76d;this['api']=_0x1a429c,this['scene']=_0xf01fa7[_0x33cce3(0x15b)]['ecInstance']['_mars3d_scene'],this['scene'][_0x33cce3(0x17a)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x299cb5,_0x21c652){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2ae72b,_0x70a2c3,_0x241c68){},'dispose':function(_0x8aaddf){const _0x451485={_0x3dfc5b:0x166,_0x584589:0x16e},_0x2bc9e0=_0x4de76d;this[_0x2bc9e0(_0x451485._0x3dfc5b)]['postRender'][_0x2bc9e0(_0x451485._0x584589)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x4de76d(0x144)],BaseLayer=mars3d__namespace['layer'][_0x4de76d(0x167)];class EchartsLayer extends BaseLayer{constructor(_0xf530e7={}){const _0x59f002={_0xeb24e6:0x13f},_0x512e09=_0x4de76d;super(_0xf530e7),this['_pointerEvents']=this['options'][_0x512e09(_0x59f002._0xeb24e6)];}get['layer'](){const _0xeceacf=_0x4de76d;return this[_0xeceacf(0x171)];}get[_0x4de76d(0x13f)](){const _0x14a881=_0x4de76d;return this[_0x14a881(0x153)];}set['pointerEvents'](_0x4d7a3c){const _0x47a077=_0x4de76d;this['_pointerEvents']=_0x4d7a3c,this[_0x47a077(0x147)]&&(_0x4d7a3c?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x47a077(0x14c)]['pointerEvents']=_0x47a077(0x168));}[_0x4de76d(0x16b)](_0x1d28d1,_0x488853){this['setEchartsOption'](_0x1d28d1);}['_showHook'](_0x2c0fe4){const _0x56c24b=_0x4de76d;_0x2c0fe4?this['_echartsContainer']['style'][_0x56c24b(0x16d)]='visible':this['_echartsContainer']['style'][_0x56c24b(0x16d)]='hidden';}['_mountedHook'](){const _0x418ae7={_0x222559:0x15c,_0x2e5fc9:0x169,_0x46d0f8:0x170},_0x22bb63=_0x4de76d;this[_0x22bb63(_0x418ae7._0x222559)]['scene']['echartsDepthTest']=this[_0x22bb63(_0x418ae7._0x2e5fc9)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this[_0x22bb63(0x169)]['clampToGround']??![],this[_0x22bb63(_0x418ae7._0x222559)][_0x22bb63(0x166)]['echartsFixedHeight']=this['options'][_0x22bb63(_0x418ae7._0x46d0f8)]??0x0;}['_addedHook'](){const _0x294228={_0x1702bb:0x171},_0x303193=_0x4de76d;this[_0x303193(0x147)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x303193(_0x294228._0x1702bb)][_0x303193(0x178)]=this['_map'][_0x303193(0x166)],this['setEchartsOption'](this[_0x303193(0x169)]);}['_removedHook'](){const _0x567374={_0x2c5cb1:0x171},_0x623754=_0x4de76d;this['_echartsInstance']&&(this[_0x623754(_0x567374._0x2c5cb1)]['clear'](),this[_0x623754(_0x567374._0x2c5cb1)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x623754(0x15c)][_0x623754(0x13e)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x57c01f={_0x42186a:0x14c,_0x45f748:0x15f,_0xfc8507:0x166,_0x37fc9c:0x149,_0x4016ed:0x168},_0x26a6f3=_0x4de76d,_0x6cdaf3=mars3d__namespace['DomUtil'][_0x26a6f3(0x157)]('div','mars3d-echarts',this['_map']['container']);return _0x6cdaf3['id']=this['id'],_0x6cdaf3[_0x26a6f3(_0x57c01f._0x42186a)]['position']='absolute',_0x6cdaf3['style']['top']=_0x26a6f3(_0x57c01f._0x45f748),_0x6cdaf3[_0x26a6f3(_0x57c01f._0x42186a)]['left']='0px',_0x6cdaf3['style']['width']=this['_map']['scene'][_0x26a6f3(0x14d)]['clientWidth']+'px',_0x6cdaf3['style']['height']=this['_map'][_0x26a6f3(_0x57c01f._0xfc8507)]['canvas']['clientHeight']+'px',_0x6cdaf3['style']['pointerEvents']=this['_pointerEvents']?_0x26a6f3(_0x57c01f._0x37fc9c):_0x26a6f3(_0x57c01f._0x4016ed),_0x6cdaf3[_0x26a6f3(0x14c)]['zIndex']=this[_0x26a6f3(0x169)]['zIndex']??0x9,_0x6cdaf3;}['resize'](){const _0x3f94b4={_0x14480e:0x147,_0x4fa357:0x14c,_0x30a970:0x158,_0x42858c:0x15c,_0x5da5a8:0x14d},_0x444e37=_0x4de76d;if(!this[_0x444e37(0x171)])return;this[_0x444e37(_0x3f94b4._0x14480e)][_0x444e37(_0x3f94b4._0x4fa357)]['width']=this['_map']['scene']['canvas'][_0x444e37(_0x3f94b4._0x30a970)]+'px',this['_echartsContainer']['style']['height']=this[_0x444e37(_0x3f94b4._0x42858c)]['scene'][_0x444e37(_0x3f94b4._0x5da5a8)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0xe5d8f5,_0x5131fa,_0xf54bf5){const _0x1d6407={_0x3762d5:0x174},_0x3006a2=_0x4de76d;this['_echartsInstance']&&(_0xe5d8f5={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0xe5d8f5,{'onlySimpleType':!![]})},delete _0xe5d8f5[_0x3006a2(0x140)],this['_echartsInstance'][_0x3006a2(_0x1d6407._0x3762d5)](_0xe5d8f5,_0x5131fa,_0xf54bf5));}[_0x4de76d(0x16f)](_0x47e780){const _0x549149={_0x37959d:0x141,_0x461ebc:0x152},_0x41a4a5=_0x4de76d;let _0x4fa53f,_0x44be7a,_0x1c5ee5,_0x2c81ff;function _0x304842(_0xce7ead){const _0x869f4d=_0x17ab;if(!Array[_0x869f4d(0x164)](_0xce7ead))return;const _0x4d0d8f=_0xce7ead[0x0]||0x0,_0x21a39c=_0xce7ead[0x1]||0x0;_0x4d0d8f!==0x0&&_0x21a39c!==0x0&&(_0x4fa53f===undefined?(_0x4fa53f=_0x4d0d8f,_0x44be7a=_0x4d0d8f,_0x1c5ee5=_0x21a39c,_0x2c81ff=_0x21a39c):(_0x4fa53f=Math['min'](_0x4fa53f,_0x4d0d8f),_0x44be7a=Math['max'](_0x44be7a,_0x4d0d8f),_0x1c5ee5=Math['min'](_0x1c5ee5,_0x21a39c),_0x2c81ff=Math['max'](_0x2c81ff,_0x21a39c)));}const _0x2f3160=this['options'][_0x41a4a5(0x14b)];_0x2f3160&&_0x2f3160['forEach'](_0x224bc9=>{const _0x3df027=_0x41a4a5;_0x224bc9[_0x3df027(_0x549149._0x37959d)]&&_0x224bc9['data'][_0x3df027(_0x549149._0x461ebc)](_0xa6964c=>{const _0x2e6c95=_0x3df027;if(_0xa6964c['value'])_0x304842(_0xa6964c[_0x2e6c95(0x142)]);else _0xa6964c['coords']&&_0xa6964c['coords']['forEach'](_0x36b5fa=>{_0x304842(_0x36b5fa);});});});if(_0x4fa53f===0x0&&_0x1c5ee5===0x0&&_0x44be7a===0x0&&_0x2c81ff===0x0)return null;return _0x47e780!==null&&_0x47e780!==void 0x0&&_0x47e780['isFormat']?{'xmin':_0x4fa53f,'xmax':_0x44be7a,'ymin':_0x1c5ee5,'ymax':_0x2c81ff}:Cesium['Rectangle']['fromDegrees'](_0x4fa53f,_0x1c5ee5,_0x44be7a,_0x2c81ff);}['on'](_0x3d0db1,_0x37e0bd,_0x14325b){return this['_echartsInstance']['on'](_0x3d0db1,_0x37e0bd,_0x14325b||this),this;}[_0x4de76d(0x154)](_0x4edc7e,_0x1fc685,_0x5d8408,_0x2731b1){return this['_echartsInstance']['on'](_0x4edc7e,_0x1fc685,_0x5d8408,_0x2731b1||this),this;}['off'](_0x400ca8,_0x3c3396,_0x5c57f0){const _0x35eeae={_0x424442:0x15d},_0x238a46=_0x4de76d;return this['_echartsInstance'][_0x238a46(_0x35eeae._0x424442)](_0x400ca8,_0x3c3396,_0x5c57f0||this),this;}}mars3d__namespace[_0x4de76d(0x179)]['register'](_0x4de76d(0x145),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x290a74){const _0x309cc8=_0x4de76d;if(_0x290a74!=='default'&&!exports['hasOwnProperty'](_0x290a74))Object[_0x309cc8(0x150)](exports,_0x290a74,{'enumerable':!![],'get':function(){return echarts[_0x290a74];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
14
+ 'use strict';const _0x49b2fb=_0x72b4;(function(_0x2973fa,_0x239a4e){const _0x4ae821={_0x38f5ba:0xac,_0x346206:0xa9,_0x494616:0x9c,_0x59c4a8:0x87,_0x1c22a3:0xb8,_0x355fb4:0xb9,_0x3e9963:0x85},_0x20ce35=_0x72b4,_0x1592bc=_0x2973fa();while(!![]){try{const _0x48199e=-parseInt(_0x20ce35(0xa5))/0x1+parseInt(_0x20ce35(_0x4ae821._0x38f5ba))/0x2*(-parseInt(_0x20ce35(0x90))/0x3)+parseInt(_0x20ce35(_0x4ae821._0x346206))/0x4+parseInt(_0x20ce35(_0x4ae821._0x494616))/0x5+parseInt(_0x20ce35(_0x4ae821._0x59c4a8))/0x6*(-parseInt(_0x20ce35(_0x4ae821._0x1c22a3))/0x7)+-parseInt(_0x20ce35(_0x4ae821._0x355fb4))/0x8+-parseInt(_0x20ce35(_0x4ae821._0x3e9963))/0x9*(-parseInt(_0x20ce35(0xc8))/0xa);if(_0x48199e===_0x239a4e)break;else _0x1592bc['push'](_0x1592bc['shift']());}catch(_0x1a74be){_0x1592bc['push'](_0x1592bc['shift']());}}}(_0x4f3b,0x457f6));function _interopNamespace(_0x1d7738){if(_0x1d7738&&_0x1d7738['__esModule'])return _0x1d7738;var _0xb5d938=Object['create'](null);return _0x1d7738&&Object['keys'](_0x1d7738)['forEach'](function(_0x4eb85e){if(_0x4eb85e!=='default'){var _0x13f0f3=Object['getOwnPropertyDescriptor'](_0x1d7738,_0x4eb85e);Object['defineProperty'](_0xb5d938,_0x4eb85e,_0x13f0f3['get']?_0x13f0f3:{'enumerable':!![],'get':function(){return _0x1d7738[_0x4eb85e];}});}}),_0xb5d938['default']=_0x1d7738,_0xb5d938;}function _0x72b4(_0x1e997e,_0x25dd02){const _0x4f3bcd=_0x4f3b();return _0x72b4=function(_0x72b4ee,_0xbbf3c){_0x72b4ee=_0x72b4ee-0x83;let _0x11af7c=_0x4f3bcd[_0x72b4ee];return _0x11af7c;},_0x72b4(_0x1e997e,_0x25dd02);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x426b35,_0x230103){const _0x35a056={_0x84b11d:0x95,_0xc7a246:0x91,_0x4823e5:0xc7},_0xa52380=_0x72b4;this[_0xa52380(_0x35a056._0x84b11d)]=_0x426b35,this[_0xa52380(_0x35a056._0xc7a246)]=['lng',_0xa52380(_0x35a056._0x4823e5)],this['_mapOffset']=[0x0,0x0],this[_0xa52380(0xc6)]=_0x230103;}[_0x49b2fb(0x86)](_0x2c54a8){const _0x11faed={_0x33abfd:0x8c},_0x55f362=_0x49b2fb;this[_0x55f362(_0x11faed._0x33abfd)]=_0x2c54a8;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x210997){const _0x471f94={_0x345133:0xab,_0x52183c:0xbf,_0x58c2af:0xa8,_0x5d9ecc:0x92},_0x314356=_0x49b2fb,_0x2fc3f4=this['_mars3d_scene'],_0x45bcac=[NaN,NaN];let _0x44906d=_0x2fc3f4['echartsFixedHeight'];_0x2fc3f4['echartsAutoHeight']&&(_0x44906d=_0x2fc3f4['getHeight'](Cesium$1['Cartographic'][_0x314356(0x96)](_0x210997[0x0],_0x210997[0x1])));const _0x597c47=Cesium$1[_0x314356(_0x471f94._0x345133)]['fromDegrees'](_0x210997[0x0],_0x210997[0x1],_0x44906d);if(!_0x597c47)return _0x45bcac;const _0x4846fc=Cesium$1['SceneTransforms'][_0x314356(_0x471f94._0x52183c)](_0x2fc3f4,_0x597c47);if(!_0x4846fc)return _0x45bcac;if(_0x2fc3f4['echartsDepthTest']&&_0x2fc3f4[_0x314356(_0x471f94._0x58c2af)]===Cesium$1['SceneMode']['SCENE3D']){const _0x42ae69=new Cesium$1[(_0x314356(_0x471f94._0x5d9ecc))](_0x2fc3f4[_0x314356(0xca)]['ellipsoid'],_0x2fc3f4['camera'][_0x314356(0x8b)]),_0x822ac8=_0x42ae69[_0x314356(0x83)](_0x597c47);if(!_0x822ac8)return _0x45bcac;}return[_0x4846fc['x']-this['_mapOffset'][0x0],_0x4846fc['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x15e3b9={_0x253c5d:0xa2},_0x4e133e=_0x49b2fb,_0x44f2e7=this['_api'];return new echarts__namespace[(_0x4e133e(_0x15e3b9._0x253c5d))][(_0x4e133e(0x94))](0x0,0x0,_0x44f2e7['getWidth'](),_0x44f2e7[_0x4e133e(0xbb)]());}['getRoamTransform'](){const _0x49bb8c={_0x1033aa:0x9b},_0x449235=_0x49b2fb;return echarts__namespace['matrix'][_0x449235(_0x49bb8c._0x1033aa)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x1d2147,_0x156244){const _0x461499={_0x2e6701:0xb5},_0x6c66a9={_0x534495:0xb1},_0x34a7b2=_0x49b2fb;let _0x5564a1;const _0x1f3a6d=_0x1d2147['scheduler']['ecInstance']['_mars3d_scene'];_0x1d2147[_0x34a7b2(0xb0)](_0x34a7b2(0x8e),function(_0x2a2acf){const _0x57a3d5=_0x34a7b2,_0x387579=_0x156244[_0x57a3d5(0xb7)]()['painter'];if(!_0x387579)return;!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x2a2acf[_0x57a3d5(0xb3)]=_0x5564a1,_0x5564a1['setMapOffset'](_0x2a2acf[_0x57a3d5(_0x6c66a9._0x534495)]||[0x0,0x0]);}),_0x1d2147['eachSeries'](function(_0x5af2ac){const _0x2d9106=_0x34a7b2;_0x5af2ac[_0x2d9106(_0x461499._0x2e6701)](_0x2d9106(0xb3))==='mars3dMap'&&(!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x5af2ac[_0x2d9106(0xb3)]=_0x5564a1);});};function _0x4f3b(){const _0x50afa2=['onByQuery','none','_map','create','782555gvpYEH','style','options','isArray','forEach','moveHandler','graphic','BaseLayer','setEchartsOption','169381sKltok','canvas','updateLayout','mode','2127560iMSHKZ','resize','Cartesian3','10cnsQTA','echartsAutoHeight','position','scene','eachComponent','__mapOffset','pointerEvents','coordinateSystem','echarts','get','_pointerEvents','getZr','1330rIRTqq','1852056hzsTLc','zIndex','getHeight','keys','clientWidth','_createChartOverlay','wgs84ToWindowCoordinates','width','off','scheduler','visible','layer','_addedHook','_api','lat','10SocHLq','coords','globe','isPointVisible','postRender','5244381Jpenxg','setMapOffset','5556vwwAtx','_echartsInstance','mars3dMapRoam','extendComponentModel','positionWC','_mapOffset','_echartsContainer','mars3dMap','removeChild','245772QBtmVp','dimensions','EllipsoidalOccluder','defineProperty','BoundingRect','_mars3d_scene','fromDegrees','depthTest'];_0x4f3b=function(){return _0x50afa2;};return _0x4f3b();}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x49b2fb(0x89),'update':_0x49b2fb(0xa7)},function(_0x503475,_0x5d6092){}),echarts__namespace[_0x49b2fb(0x8a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x550070,_0xc7daa1){const _0x190d08={_0x2bb04c:0xaf},_0x173652=_0x49b2fb;this['api']=_0xc7daa1,this['scene']=_0x550070[_0x173652(0xc2)]['ecInstance']['_mars3d_scene'],this[_0x173652(_0x190d08._0x2bb04c)]['postRender']['addEventListener'](this[_0x173652(0xa1)],this);},'moveHandler':function(_0x2eb3b5,_0xeb33a3){const _0x472fbf={_0x57751a:0x89},_0x1590c5=_0x49b2fb;this['api']['dispatchAction']({'type':_0x1590c5(_0x472fbf._0x57751a)});},'render':function(_0x4fb5d5,_0x938f81,_0x578418){},'dispose':function(_0x4f57cd){const _0x3eaf47=_0x49b2fb;this['scene'][_0x3eaf47(0x84)]['removeEventListener'](this[_0x3eaf47(0xa1)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x49b2fb(0xc4)][_0x49b2fb(0xa3)];class EchartsLayer extends BaseLayer{constructor(_0x5c2559={}){const _0x5c4596=_0x49b2fb;super(_0x5c2559),this['_pointerEvents']=this[_0x5c4596(0x9e)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x49b2fb(0xb2)](){return this['_pointerEvents'];}set['pointerEvents'](_0x2cf77f){const _0x414359={_0x4de212:0x8d,_0x30a208:0x99},_0x15aa89=_0x49b2fb;this['_pointerEvents']=_0x2cf77f,this['_echartsContainer']&&(_0x2cf77f?this['_echartsContainer'][_0x15aa89(0x9d)][_0x15aa89(0xb2)]='all':this[_0x15aa89(_0x414359._0x4de212)]['style']['pointerEvents']=_0x15aa89(_0x414359._0x30a208));}['_setOptionsHook'](_0x1fa6d0,_0x4f7654){this['setEchartsOption'](_0x1fa6d0);}['_showHook'](_0x5e8d42){const _0x2e90df=_0x49b2fb;_0x5e8d42?this[_0x2e90df(0x8d)]['style']['visibility']=_0x2e90df(0xc3):this[_0x2e90df(0x8d)][_0x2e90df(0x9d)]['visibility']='hidden';}['_mountedHook'](){const _0x5d2980={_0x3e8447:0x9e,_0x500c10:0x97,_0x4f19eb:0xad,_0x5dbcd3:0x9e},_0x473231=_0x49b2fb;this[_0x473231(0x9a)]['scene']['echartsDepthTest']=this[_0x473231(_0x5d2980._0x3e8447)][_0x473231(_0x5d2980._0x500c10)]??!![],this[_0x473231(0x9a)]['scene'][_0x473231(_0x5d2980._0x4f19eb)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x473231(_0x5d2980._0x5dbcd3)]['fixedHeight']??0x0;}[_0x49b2fb(0xc5)](){const _0x3cff1d={_0x16f5dd:0x95},_0x16a58d=_0x49b2fb;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x16a58d(0x88)][_0x16a58d(_0x3cff1d._0x16f5dd)]=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5aa8eb={_0x5f0924:0x88,_0x40bfa5:0x8d},_0x4e6e99=_0x49b2fb;this['_echartsInstance']&&(this[_0x4e6e99(0x88)]['clear'](),this[_0x4e6e99(_0x5aa8eb._0x5f0924)]['dispose'](),delete this[_0x4e6e99(_0x5aa8eb._0x5f0924)]),this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]&&(this['_map']['container'][_0x4e6e99(0x8f)](this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]),delete this['_echartsContainer']);}[_0x49b2fb(0xbe)](){const _0x4e4db0={_0x3d21db:0x9b,_0x2a784c:0xa6,_0x2ea976:0xb6,_0x9e5c75:0xba},_0x502fcc=_0x49b2fb,_0x44f5dc=mars3d__namespace['DomUtil'][_0x502fcc(_0x4e4db0._0x3d21db)]('div','mars3d-echarts',this[_0x502fcc(0x9a)]['container']);return _0x44f5dc['id']=this['id'],_0x44f5dc['style'][_0x502fcc(0xae)]='absolute',_0x44f5dc['style']['top']='0px',_0x44f5dc['style']['left']='0px',_0x44f5dc[_0x502fcc(0x9d)]['width']=this['_map']['scene']['canvas'][_0x502fcc(0xbd)]+'px',_0x44f5dc['style']['height']=this['_map']['scene'][_0x502fcc(_0x4e4db0._0x2a784c)]['clientHeight']+'px',_0x44f5dc['style']['pointerEvents']=this[_0x502fcc(_0x4e4db0._0x2ea976)]?'all':_0x502fcc(0x99),_0x44f5dc['style']['zIndex']=this['options'][_0x502fcc(_0x4e4db0._0x9e5c75)]??0x9,_0x44f5dc;}[_0x49b2fb(0xaa)](){const _0x46117f={_0x1a71e0:0xbd},_0x3d5d20=_0x49b2fb;if(!this[_0x3d5d20(0x88)])return;this['_echartsContainer']['style'][_0x3d5d20(0xc0)]=this[_0x3d5d20(0x9a)]['scene'][_0x3d5d20(0xa6)][_0x3d5d20(_0x46117f._0x1a71e0)]+'px',this['_echartsContainer']['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x49b2fb(0xa4)](_0x15eb19,_0x5d6002,_0x184511){const _0x36e9c4=_0x49b2fb;this[_0x36e9c4(0x88)]&&(_0x15eb19={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x15eb19,{'onlySimpleType':!![]})},delete _0x15eb19['eventParent'],this['_echartsInstance']['setOption'](_0x15eb19,_0x5d6002,_0x184511));}['getRectangle'](_0xe00e6a){const _0x50f1b6={_0x296c7a:0x9f};let _0x43d3f2,_0x18f858,_0x50be30,_0x1ec04f;function _0x293beb(_0x5404d7){const _0x2502d1=_0x72b4;if(!Array[_0x2502d1(_0x50f1b6._0x296c7a)](_0x5404d7))return;const _0x2b7bcb=_0x5404d7[0x0]||0x0,_0xd8c741=_0x5404d7[0x1]||0x0;_0x2b7bcb!==0x0&&_0xd8c741!==0x0&&(_0x43d3f2===undefined?(_0x43d3f2=_0x2b7bcb,_0x18f858=_0x2b7bcb,_0x50be30=_0xd8c741,_0x1ec04f=_0xd8c741):(_0x43d3f2=Math['min'](_0x43d3f2,_0x2b7bcb),_0x18f858=Math['max'](_0x18f858,_0x2b7bcb),_0x50be30=Math['min'](_0x50be30,_0xd8c741),_0x1ec04f=Math['max'](_0x1ec04f,_0xd8c741)));}const _0x2165e3=this['options']['series'];_0x2165e3&&_0x2165e3['forEach'](_0x203f05=>{const _0x52a2d3={_0x479c23:0xc9,_0x114fe7:0xa0},_0x38218f=_0x72b4;_0x203f05['data']&&_0x203f05['data'][_0x38218f(0xa0)](_0xe47c69=>{const _0x31ca53=_0x38218f;if(_0xe47c69['value'])_0x293beb(_0xe47c69['value']);else _0xe47c69[_0x31ca53(_0x52a2d3._0x479c23)]&&_0xe47c69[_0x31ca53(0xc9)][_0x31ca53(_0x52a2d3._0x114fe7)](_0xfb8204=>{_0x293beb(_0xfb8204);});});});if(_0x43d3f2===0x0&&_0x50be30===0x0&&_0x18f858===0x0&&_0x1ec04f===0x0)return null;return _0xe00e6a!==null&&_0xe00e6a!==void 0x0&&_0xe00e6a['isFormat']?{'xmin':_0x43d3f2,'xmax':_0x18f858,'ymin':_0x50be30,'ymax':_0x1ec04f}:Cesium['Rectangle']['fromDegrees'](_0x43d3f2,_0x50be30,_0x18f858,_0x1ec04f);}['on'](_0x4d332b,_0xf670c8,_0x5025dd){const _0xb29e73=_0x49b2fb;return this[_0xb29e73(0x88)]['on'](_0x4d332b,_0xf670c8,_0x5025dd||this),this;}[_0x49b2fb(0x98)](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10){return this['_echartsInstance']['on'](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10||this),this;}['off'](_0x13ada4,_0x374abc,_0x20a557){const _0x59a7dc=_0x49b2fb;return this['_echartsInstance'][_0x59a7dc(0xc1)](_0x13ada4,_0x374abc,_0x20a557||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x49b2fb(0xb4),EchartsLayer),mars3d__namespace[_0x49b2fb(0xc4)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x49b2fb(0xbc)](echarts)[_0x49b2fb(0xa0)](function(_0x452219){const _0x51716f={_0x51fcd9:0x93},_0x445617=_0x49b2fb;if(_0x452219!=='default'&&!exports['hasOwnProperty'](_0x452219))Object[_0x445617(_0x51716f._0x51fcd9)](exports,_0x452219,{'enumerable':!![],'get':function(){return echarts[_0x452219];}});}),Object[_0x49b2fb(0x93)](exports,'__esModule',{'value':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-echarts",
3
- "version": "3.7.4",
3
+ "version": "3.7.6",
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.4"
13
+ "mars3d": "~3.7.6"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"