mars3d-echarts 3.6.12 → 3.6.14

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.6.12
5
- * 编译日期:2023-11-13 20:56:14
4
+ * 版本信息:v3.6.14
5
+ * 编译日期:2023-11-27 22:14:18
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
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 _0x515eda=_0x2d9f;(function(_0xc87d08,_0x28429d){const _0x451b32={_0x55edac:0x149,_0x234f2b:0x131,_0x4e7a0b:0x11d},_0x19b3cf=_0x2d9f,_0xc9058=_0xc87d08();while(!![]){try{const _0x3d6700=-parseInt(_0x19b3cf(0x141))/0x1+-parseInt(_0x19b3cf(0x11f))/0x2*(-parseInt(_0x19b3cf(_0x451b32._0x55edac))/0x3)+-parseInt(_0x19b3cf(0x12e))/0x4+-parseInt(_0x19b3cf(0x142))/0x5*(-parseInt(_0x19b3cf(_0x451b32._0x234f2b))/0x6)+-parseInt(_0x19b3cf(0x117))/0x7+parseInt(_0x19b3cf(0x13c))/0x8+parseInt(_0x19b3cf(0x120))/0x9*(parseInt(_0x19b3cf(_0x451b32._0x4e7a0b))/0xa);if(_0x3d6700===_0x28429d)break;else _0xc9058['push'](_0xc9058['shift']());}catch(_0x27606e){_0xc9058['push'](_0xc9058['shift']());}}}(_0x5af7,0x6d104));function _interopNamespace(_0x13f649){const _0xe61ca5={_0x5b7730:0x111,_0x4f8535:0x146},_0x2a933c=_0x2d9f;if(_0x13f649&&_0x13f649[_0x2a933c(_0xe61ca5._0x5b7730)])return _0x13f649;var _0x1b495a=Object['create'](null);return _0x13f649&&Object['keys'](_0x13f649)['forEach'](function(_0x3149a5){const _0x5de451=_0x2a933c;if(_0x3149a5!==_0x5de451(0x146)){var _0x58749c=Object['getOwnPropertyDescriptor'](_0x13f649,_0x3149a5);Object['defineProperty'](_0x1b495a,_0x3149a5,_0x58749c['get']?_0x58749c:{'enumerable':!![],'get':function(){return _0x13f649[_0x3149a5];}});}}),_0x1b495a[_0x2a933c(_0xe61ca5._0x4f8535)]=_0x13f649,_0x1b495a;}function _0x5af7(){const _0x395bcf=['pointerEvents','760814VEdlDO','100nBMvZf','canvas','_api','scheduler','default','series','ellipsoid','15YzurPE','removeEventListener','options','min','getHeight','setOption','_createChartOverlay','mars3dMapRoam','echartsDepthTest','__esModule','_removedHook','all','eachComponent','echarts','lat','5914419vWPjbX','Util','mars3d-echarts','globe','style','isPointVisible','110CbEUMz','removeChild','313340YxApen','378981sqxmZZ','dispatchAction','_pointerEvents','_echartsInstance','getRoamTransform','wgs84ToWindowCoordinates','coords','isArray','_mapOffset','hidden','EchartsLayer','BaseLayer','mars3dMap','0px','1841852IAQcMb','echartsAutoHeight','_echartsContainer','260478WEYfXr','_map','_mars3d_scene','setEchartsOption','forEach','setMapOffset','clientWidth','layer','container','scene','Cartographic','3184872gxBrUO','fromDegrees','clientHeight','Cesium'];_0x5af7=function(){return _0x395bcf;};return _0x5af7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2d9f(_0x32540a,_0x288dc6){const _0x5af7d7=_0x5af7();return _0x2d9f=function(_0x2d9f2c,_0xf89352){_0x2d9f2c=_0x2d9f2c-0x10b;let _0x27497c=_0x5af7d7[_0x2d9f2c];return _0x27497c;},_0x2d9f(_0x32540a,_0x288dc6);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xa45ca8,_0x1822f5){const _0x5abcbf={_0x689ff3:0x144},_0xa4488c=_0x2d9f;this['_mars3d_scene']=_0xa45ca8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0xa4488c(_0x5abcbf._0x689ff3)]=_0x1822f5;}[_0x515eda(0x136)](_0x57c867){const _0x145748=_0x515eda;this[_0x145748(0x128)]=_0x57c867;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x47247f){const _0x597bc9={_0x5acc87:0x12f,_0xec20bf:0x10c,_0x2adcd6:0x13d,_0xb09efb:0x13d,_0x163b2e:0x110,_0x2d1a5a:0x11a,_0x961a77:0x148,_0x52008c:0x11c,_0x438e6b:0x128},_0x3d8eb8=_0x515eda,_0x18c8b1=this['_mars3d_scene'],_0x5e7dc9=[NaN,NaN];let _0x969491=_0x18c8b1['echartsFixedHeight'];_0x18c8b1[_0x3d8eb8(_0x597bc9._0x5acc87)]&&(_0x969491=_0x18c8b1[_0x3d8eb8(0x11a)][_0x3d8eb8(_0x597bc9._0xec20bf)](Cesium$1[_0x3d8eb8(0x13b)][_0x3d8eb8(_0x597bc9._0x2adcd6)](_0x47247f[0x0],_0x47247f[0x1])));const _0xe9f54e=Cesium$1['Cartesian3'][_0x3d8eb8(_0x597bc9._0xb09efb)](_0x47247f[0x0],_0x47247f[0x1],_0x969491);if(!_0xe9f54e)return _0x5e7dc9;const _0x554732=Cesium$1['SceneTransforms'][_0x3d8eb8(0x125)](_0x18c8b1,_0xe9f54e);if(!_0x554732)return _0x5e7dc9;if(_0x18c8b1[_0x3d8eb8(_0x597bc9._0x163b2e)]&&_0x18c8b1['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x50402d=new Cesium$1['EllipsoidalOccluder'](_0x18c8b1[_0x3d8eb8(_0x597bc9._0x2d1a5a)][_0x3d8eb8(_0x597bc9._0x961a77)],_0x18c8b1['camera']['positionWC']),_0x5006b1=_0x50402d[_0x3d8eb8(_0x597bc9._0x52008c)](_0xe9f54e);if(!_0x5006b1)return _0x5e7dc9;}return[_0x554732['x']-this['_mapOffset'][0x0],_0x554732['y']-this[_0x3d8eb8(_0x597bc9._0x438e6b)][0x1]];}['getViewRect'](){const _0x449558=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x449558['getWidth'](),_0x449558['getHeight']());}[_0x515eda(0x124)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng',_0x515eda(0x116)],CompositeCoordinateSystem['create']=function(_0x3e2fc0,_0x2ea522){const _0x478517={_0x537b75:0x12c},_0x1c397a=_0x515eda;let _0x328196;const _0x2f8d93=_0x3e2fc0[_0x1c397a(0x145)]['ecInstance']['_mars3d_scene'];_0x3e2fc0[_0x1c397a(0x114)]('mars3dMap',function(_0x393312){const _0x3c1e18=_0x2ea522['getZr']()['painter'];if(!_0x3c1e18)return;!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x393312['coordinateSystem']=_0x328196,_0x328196['setMapOffset'](_0x393312['__mapOffset']||[0x0,0x0]);}),_0x3e2fc0['eachSeries'](function(_0x4bd6ac){const _0x490617=_0x1c397a;_0x4bd6ac['get']('coordinateSystem')===_0x490617(_0x478517._0x537b75)&&(!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x4bd6ac['coordinateSystem']=_0x328196);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x515eda(0x12c),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x515eda(0x10f),'event':_0x515eda(0x10f),'update':'updateLayout'},function(_0x29e10f,_0x1da225){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x51ea10={_0x5cfaff:0x133},_0x1152d6=_0x515eda;return this[_0x1152d6(_0x51ea10._0x5cfaff)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5ad540,_0x176e03){const _0x11d649={_0xf26303:0x145},_0x5d13e8=_0x515eda;this['api']=_0x176e03,this['scene']=_0x5ad540[_0x5d13e8(_0x11d649._0xf26303)]['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5988f7,_0xffc4e6){const _0x2091ec={_0x329212:0x121},_0x17d78e=_0x515eda;this['api'][_0x17d78e(_0x2091ec._0x329212)]({'type':'mars3dMapRoam'});},'render':function(_0x5c19d2,_0x3409a4,_0x319160){},'dispose':function(_0x346b3b){const _0x33071d=_0x515eda;this['scene']['postRender'][_0x33071d(0x14a)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x515eda(0x13f)],BaseLayer=mars3d__namespace['layer'][_0x515eda(0x12b)];class EchartsLayer extends BaseLayer{constructor(_0x3baa6d={}){super(_0x3baa6d),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x515eda(0x138)](){const _0x5c3176=_0x515eda;return this[_0x5c3176(0x123)];}get['pointerEvents'](){const _0x195cb6=_0x515eda;return this[_0x195cb6(0x122)];}set['pointerEvents'](_0x45776a){const _0x1dbad9={_0x2c7d06:0x113,_0xb38ec6:0x11b,_0xd77878:0x140},_0x35a263=_0x515eda;this['_pointerEvents']=_0x45776a,this['_echartsContainer']&&(_0x45776a?this['_echartsContainer'][_0x35a263(0x11b)]['pointerEvents']=_0x35a263(_0x1dbad9._0x2c7d06):this['_echartsContainer'][_0x35a263(_0x1dbad9._0xb38ec6)][_0x35a263(_0x1dbad9._0xd77878)]='none');}['_setOptionsHook'](_0x591b3b,_0x24a8af){const _0x34443d={_0x3c4be4:0x134},_0x189cca=_0x515eda;this[_0x189cca(_0x34443d._0x3c4be4)](_0x591b3b);}['_showHook'](_0x2be2da){const _0x303c89={_0x2b7f2b:0x130},_0x40c844=_0x515eda;_0x2be2da?this[_0x40c844(_0x303c89._0x2b7f2b)]['style']['visibility']='visible':this[_0x40c844(0x130)]['style']['visibility']=_0x40c844(0x129);}['_mountedHook'](){const _0x473362={_0x4294b2:0x132,_0x31be52:0x14b},_0x3d4097=_0x515eda;this[_0x3d4097(_0x473362._0x4294b2)]['scene']['echartsDepthTest']=this[_0x3d4097(_0x473362._0x31be52)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x3d4097(0x13a)]['echartsFixedHeight']=this[_0x3d4097(0x14b)]['fixedHeight']??0x0;}['_addedHook'](){const _0x3d2c84={_0x5ea03e:0x130,_0xf25c23:0x13a},_0x5d982a=_0x515eda;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x5d982a(_0x3d2c84._0x5ea03e)]),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x5d982a(_0x3d2c84._0xf25c23)],this['setEchartsOption'](this['options']);}[_0x515eda(0x112)](){const _0x490c26={_0x21cc8d:0x123,_0x18a1ee:0x139,_0x2fd448:0x11e},_0x4d818e=_0x515eda;this[_0x4d818e(_0x490c26._0x21cc8d)]&&(this[_0x4d818e(0x123)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4d818e(_0x490c26._0x18a1ee)][_0x4d818e(_0x490c26._0x2fd448)](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x515eda(0x10e)](){const _0x5b1ce4={_0x4b697d:0x119,_0x35b865:0x139,_0x3cfec1:0x12d,_0x31bf15:0x11b},_0x15c5bc=_0x515eda,_0xdb99c2=mars3d__namespace['DomUtil']['create']('div',_0x15c5bc(_0x5b1ce4._0x4b697d),this['_map'][_0x15c5bc(_0x5b1ce4._0x35b865)]);return _0xdb99c2['id']=this['id'],_0xdb99c2['style']['position']='absolute',_0xdb99c2['style']['top']=_0x15c5bc(0x12d),_0xdb99c2['style']['left']=_0x15c5bc(_0x5b1ce4._0x3cfec1),_0xdb99c2[_0x15c5bc(_0x5b1ce4._0x31bf15)]['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0xdb99c2['style']['height']=this['_map']['scene'][_0x15c5bc(0x143)][_0x15c5bc(0x13e)]+'px',_0xdb99c2['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0xdb99c2['style']['zIndex']=this['options']['zIndex']??0x9,_0xdb99c2;}['resize'](){const _0x16c6f9={_0x287cf6:0x130,_0x25e76a:0x11b},_0x49bc4a=_0x515eda;if(!this[_0x49bc4a(0x123)])return;this[_0x49bc4a(_0x16c6f9._0x287cf6)][_0x49bc4a(_0x16c6f9._0x25e76a)]['width']=this['_map']['scene']['canvas'][_0x49bc4a(0x137)]+'px',this['_echartsContainer'][_0x49bc4a(0x11b)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x515eda(0x134)](_0xc0df14,_0x1cacfe,_0x44b3a3){const _0x7a40fc={_0x4b06de:0x10d},_0x1fcbaf=_0x515eda;this['_echartsInstance']&&(_0xc0df14={'mars3dMap':{},...mars3d__namespace[_0x1fcbaf(0x118)]['getAttrVal'](_0xc0df14,{'onlySimpleType':!![]})},delete _0xc0df14['eventParent'],this['_echartsInstance'][_0x1fcbaf(_0x7a40fc._0x4b06de)](_0xc0df14,_0x1cacfe,_0x44b3a3));}['getRectangle'](_0x28d7f4){const _0x35cee9={_0x84fadf:0x14b,_0x4d5ce5:0x147},_0x598da6={_0x19a405:0x126},_0x37e135={_0x1ac067:0x127},_0x415c03=_0x515eda;let _0xc66784,_0x1f079b,_0x571938,_0x376e0c;function _0x3f4304(_0x9945b3){const _0x2c3d8d=_0x2d9f;if(!Array[_0x2c3d8d(_0x37e135._0x1ac067)](_0x9945b3))return;const _0x549ab0=_0x9945b3[0x0]||0x0,_0x361c1a=_0x9945b3[0x1]||0x0;_0x549ab0!==0x0&&_0x361c1a!==0x0&&(_0xc66784===undefined?(_0xc66784=_0x549ab0,_0x1f079b=_0x549ab0,_0x571938=_0x361c1a,_0x376e0c=_0x361c1a):(_0xc66784=Math['min'](_0xc66784,_0x549ab0),_0x1f079b=Math['max'](_0x1f079b,_0x549ab0),_0x571938=Math[_0x2c3d8d(0x10b)](_0x571938,_0x361c1a),_0x376e0c=Math['max'](_0x376e0c,_0x361c1a)));}const _0x30ab42=this[_0x415c03(_0x35cee9._0x84fadf)][_0x415c03(_0x35cee9._0x4d5ce5)];_0x30ab42&&_0x30ab42['forEach'](_0xb62915=>{_0xb62915['data']&&_0xb62915['data']['forEach'](_0x5599f0=>{const _0x5c6259=_0x2d9f;if(_0x5599f0['value'])_0x3f4304(_0x5599f0['value']);else _0x5599f0[_0x5c6259(_0x598da6._0x19a405)]&&_0x5599f0['coords']['forEach'](_0x19158f=>{_0x3f4304(_0x19158f);});});});if(_0xc66784===0x0&&_0x571938===0x0&&_0x1f079b===0x0&&_0x376e0c===0x0)return null;return _0x28d7f4!==null&&_0x28d7f4!==void 0x0&&_0x28d7f4['isFormat']?{'xmin':_0xc66784,'xmax':_0x1f079b,'ymin':_0x571938,'ymax':_0x376e0c}:Cesium['Rectangle']['fromDegrees'](_0xc66784,_0x571938,_0x1f079b,_0x376e0c);}['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1){return this['_echartsInstance']['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1||this),this;}['onByQuery'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1){return this['_echartsInstance']['on'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1||this),this;}['off'](_0x1db154,_0x1e53c8,_0x1eadbc){return this['_echartsInstance']['off'](_0x1db154,_0x1e53c8,_0x1eadbc||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x515eda(0x115),EchartsLayer),mars3d__namespace['layer'][_0x515eda(0x12a)]=EchartsLayer,mars3d__namespace[_0x515eda(0x115)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x515eda(0x135)](function(_0x45e4e1){if(_0x45e4e1!=='default'&&!exports['hasOwnProperty'](_0x45e4e1))Object['defineProperty'](exports,_0x45e4e1,{'enumerable':!![],'get':function(){return echarts[_0x45e4e1];}});}),Object['defineProperty'](exports,_0x515eda(0x111),{'value':!![]});
14
+ 'use strict';const _0x34e5e6=_0x1d75;function _0x4bc9(){const _0x49776f=['ellipsoid','hidden','create','zIndex','forEach','none','294617lDWywX','_mapOffset','clampToGround','__esModule','eachComponent','all','21LAoomm','register','1978895QPUNrm','isFormat','series','eventParent','absolute','container','min','style','pointerEvents','__mapOffset','options','clientHeight','data','defineProperty','echartsAutoHeight','hasOwnProperty','visible','height','2211808IdztIO','14889doFpZG','SCENE3D','canvas','extendComponentView','moveHandler','echarts','2151250GRbcKq','scene','keys','_echartsContainer','Cartographic','_echartsInstance','_pointerEvents','_map','4918080LcygUy','coordinateSystem','dimensions','positionWC','width','isArray','updateLayout','fromDegrees','4093116YEyBze','echartsFixedHeight','resize','addEventListener','10kzfVKM','layer','getHeight','getOwnPropertyDescriptor','top','_mars3d_scene','117NAusiE','BaseLayer','painter'];_0x4bc9=function(){return _0x49776f;};return _0x4bc9();}(function(_0x2e71da,_0x37400f){const _0x55a931={_0x20ca80:0xc3,_0x554656:0xb4,_0x3a2b3b:0xde,_0x15e69d:0xcb,_0xa3fa40:0xdd,_0x3b56f2:0xba},_0x9f6b36=_0x1d75,_0x175555=_0x2e71da();while(!![]){try{const _0x5dc925=parseInt(_0x9f6b36(_0x55a931._0x20ca80))/0x1+parseInt(_0x9f6b36(_0x55a931._0x554656))/0x2*(parseInt(_0x9f6b36(_0x55a931._0x3a2b3b))/0x3)+parseInt(_0x9f6b36(0xa8))/0x4+parseInt(_0x9f6b36(_0x55a931._0x15e69d))/0x5+parseInt(_0x9f6b36(0xb0))/0x6+parseInt(_0x9f6b36(0xc9))/0x7*(parseInt(_0x9f6b36(_0x55a931._0xa3fa40))/0x8)+-parseInt(_0x9f6b36(_0x55a931._0x3b56f2))/0x9*(parseInt(_0x9f6b36(0xa0))/0xa);if(_0x5dc925===_0x37400f)break;else _0x175555['push'](_0x175555['shift']());}catch(_0x5f3522){_0x175555['push'](_0x175555['shift']());}}}(_0x4bc9,0xa1108));function _interopNamespace(_0x2c0f42){const _0x578ce9={_0x2c956c:0xc6},_0x24757b={_0x46f84e:0xb7},_0x5d7cab=_0x1d75;if(_0x2c0f42&&_0x2c0f42[_0x5d7cab(_0x578ce9._0x2c956c)])return _0x2c0f42;var _0x595a23=Object['create'](null);return _0x2c0f42&&Object[_0x5d7cab(0xa2)](_0x2c0f42)['forEach'](function(_0x2b4f37){const _0x12d87d=_0x5d7cab;if(_0x2b4f37!=='default'){var _0x570f4e=Object[_0x12d87d(_0x24757b._0x46f84e)](_0x2c0f42,_0x2b4f37);Object['defineProperty'](_0x595a23,_0x2b4f37,_0x570f4e['get']?_0x570f4e:{'enumerable':!![],'get':function(){return _0x2c0f42[_0x2b4f37];}});}}),_0x595a23['default']=_0x2c0f42,_0x595a23;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xdb61f1,_0x595e){const _0x1f8eec={_0x591aab:0xb9,_0x2a7a9d:0xc4},_0xa8082=_0x1d75;this[_0xa8082(_0x1f8eec._0x591aab)]=_0xdb61f1,this[_0xa8082(0xaa)]=['lng','lat'],this[_0xa8082(_0x1f8eec._0x2a7a9d)]=[0x0,0x0],this['_api']=_0x595e;}['setMapOffset'](_0x3f6220){this['_mapOffset']=_0x3f6220;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x117101){const _0x19cd1c={_0x554629:0xb1,_0x3e9f23:0xb6,_0x28c199:0xa4,_0x360e3e:0xaf,_0x2f22d2:0xab},_0x3c4c90=_0x1d75,_0x84de59=this['_mars3d_scene'],_0x26296d=[NaN,NaN];let _0x439edc=_0x84de59[_0x3c4c90(_0x19cd1c._0x554629)];_0x84de59['echartsAutoHeight']&&(_0x439edc=_0x84de59['globe'][_0x3c4c90(_0x19cd1c._0x3e9f23)](Cesium$1[_0x3c4c90(_0x19cd1c._0x28c199)][_0x3c4c90(_0x19cd1c._0x360e3e)](_0x117101[0x0],_0x117101[0x1])));const _0x1490e8=Cesium$1['Cartesian3']['fromDegrees'](_0x117101[0x0],_0x117101[0x1],_0x439edc);if(!_0x1490e8)return _0x26296d;const _0x32f5b3=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x84de59,_0x1490e8);if(!_0x32f5b3)return _0x26296d;if(_0x84de59['echartsDepthTest']&&_0x84de59['mode']===Cesium$1['SceneMode'][_0x3c4c90(0x9b)]){const _0x2e149d=new Cesium$1['EllipsoidalOccluder'](_0x84de59['globe'][_0x3c4c90(0xbd)],_0x84de59['camera'][_0x3c4c90(_0x19cd1c._0x2f22d2)]),_0x574546=_0x2e149d['isPointVisible'](_0x1490e8);if(!_0x574546)return _0x26296d;}return[_0x32f5b3['x']-this['_mapOffset'][0x0],_0x32f5b3['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x481e3d=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x481e3d['getWidth'](),_0x481e3d['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x34e5e6(0xbf)]=function(_0x492dac,_0x2737d4){const _0x44f85e={_0x5955ee:0xb9,_0xded609:0xc7},_0x44189d={_0x4c41b9:0xd4},_0x5168f3=_0x34e5e6;let _0x32f0f4;const _0x195ef3=_0x492dac['scheduler']['ecInstance'][_0x5168f3(_0x44f85e._0x5955ee)];_0x492dac[_0x5168f3(_0x44f85e._0xded609)]('mars3dMap',function(_0xeeb3ee){const _0x2dd21d=_0x5168f3,_0xed8de6=_0x2737d4['getZr']()[_0x2dd21d(0xbc)];if(!_0xed8de6)return;!_0x32f0f4&&(_0x32f0f4=new CompositeCoordinateSystem(_0x195ef3,_0x2737d4)),_0xeeb3ee['coordinateSystem']=_0x32f0f4,_0x32f0f4['setMapOffset'](_0xeeb3ee[_0x2dd21d(_0x44189d._0x4c41b9)]||[0x0,0x0]);}),_0x492dac['eachSeries'](function(_0x5437c3){const _0x456854=_0x5168f3;_0x5437c3['get']('coordinateSystem')==='mars3dMap'&&(!_0x32f0f4&&(_0x32f0f4=new CompositeCoordinateSystem(_0x195ef3,_0x2737d4)),_0x5437c3[_0x456854(0xa9)]=_0x32f0f4);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x34e5e6(0xae)},function(_0x42073f,_0x2e8247){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x34e5e6(0x9d)]({'type':'mars3dMap','init':function(_0x5760dd,_0x2f1a7){const _0x3e5527={_0x1d110c:0xa1},_0x10efb0=_0x34e5e6;this['api']=_0x2f1a7,this[_0x10efb0(_0x3e5527._0x1d110c)]=_0x5760dd['scheduler']['ecInstance'][_0x10efb0(0xb9)],this['scene']['postRender'][_0x10efb0(0xb3)](this[_0x10efb0(0x9e)],this);},'moveHandler':function(_0x1cc8b0,_0x2198f9){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x1a06f2,_0xf9ee40,_0x26fc7c){},'dispose':function(_0x22d05f){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x1d75(_0x91f20c,_0x349e8b){const _0x4bc9e1=_0x4bc9();return _0x1d75=function(_0x1d7506,_0x2d9145){_0x1d7506=_0x1d7506-0x9b;let _0x2172f5=_0x4bc9e1[_0x1d7506];return _0x2172f5;},_0x1d75(_0x91f20c,_0x349e8b);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x34e5e6(0xbb)];class EchartsLayer extends BaseLayer{constructor(_0x2727fe={}){const _0x5c13de={_0x267969:0xa6},_0x1155fc=_0x34e5e6;super(_0x2727fe),this[_0x1155fc(_0x5c13de._0x267969)]=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x193fdf){const _0x491b6e=_0x34e5e6;this['_pointerEvents']=_0x193fdf,this['_echartsContainer']&&(_0x193fdf?this[_0x491b6e(0xa3)]['style']['pointerEvents']='all':this[_0x491b6e(0xa3)]['style'][_0x491b6e(0xd3)]='none');}['_setOptionsHook'](_0x1c0a0e,_0x44ff18){this['setEchartsOption'](_0x1c0a0e);}['_showHook'](_0x2b7299){const _0x3dc7aa={_0x3433f6:0xbe},_0x28fc30=_0x34e5e6;_0x2b7299?this['_echartsContainer']['style']['visibility']=_0x28fc30(0xdb):this['_echartsContainer']['style']['visibility']=_0x28fc30(_0x3dc7aa._0x3433f6);}['_mountedHook'](){const _0x528152={_0x4f6655:0xa7,_0x181bfa:0xa1,_0x33a6e2:0xc5},_0x31f1ab=_0x34e5e6;this[_0x31f1ab(_0x528152._0x4f6655)][_0x31f1ab(_0x528152._0x181bfa)]['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene'][_0x31f1ab(0xd9)]=this['options'][_0x31f1ab(_0x528152._0x33a6e2)]??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x23d993={_0x4fdb11:0xa5,_0x8e90a5:0xa7},_0x5cdae2=_0x34e5e6;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x5cdae2(_0x23d993._0x4fdb11)]=echarts__namespace['init'](this['_echartsContainer']),this[_0x5cdae2(0xa5)]['_mars3d_scene']=this[_0x5cdae2(_0x23d993._0x8e90a5)][_0x5cdae2(0xa1)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5770b9={_0x5c4b15:0xa5,_0x41a38a:0xa5,_0x3cff77:0xd0,_0x25a35e:0xa3},_0x4184d4=_0x34e5e6;this[_0x4184d4(_0x5770b9._0x5c4b15)]&&(this[_0x4184d4(_0x5770b9._0x5c4b15)]['clear'](),this[_0x4184d4(_0x5770b9._0x41a38a)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4184d4(_0x5770b9._0x3cff77)]['removeChild'](this['_echartsContainer']),delete this[_0x4184d4(_0x5770b9._0x25a35e)]);}['_createChartOverlay'](){const _0x976270={_0x24d13d:0xcf,_0x46f782:0xb8,_0x925d3e:0xac,_0x396257:0xa7,_0x4c8346:0xd6,_0x257e01:0xc8,_0x2a33dd:0xc2},_0x5d7958=_0x34e5e6,_0x554332=mars3d__namespace['DomUtil'][_0x5d7958(0xbf)]('div','mars3d-echarts',this['_map']['container']);return _0x554332['id']=this['id'],_0x554332['style']['position']=_0x5d7958(_0x976270._0x24d13d),_0x554332['style'][_0x5d7958(_0x976270._0x46f782)]='0px',_0x554332[_0x5d7958(0xd2)]['left']='0px',_0x554332['style'][_0x5d7958(_0x976270._0x925d3e)]=this[_0x5d7958(0xa7)]['scene']['canvas']['clientWidth']+'px',_0x554332['style']['height']=this[_0x5d7958(_0x976270._0x396257)]['scene']['canvas'][_0x5d7958(_0x976270._0x4c8346)]+'px',_0x554332[_0x5d7958(0xd2)]['pointerEvents']=this['_pointerEvents']?_0x5d7958(_0x976270._0x257e01):_0x5d7958(_0x976270._0x2a33dd),_0x554332[_0x5d7958(0xd2)][_0x5d7958(0xc0)]=this[_0x5d7958(0xd5)][_0x5d7958(0xc0)]??0x9,_0x554332;}['resize'](){const _0x4ce629={_0x45250c:0xb2},_0x288bee=_0x34e5e6;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x288bee(0xac)]=this['_map']['scene'][_0x288bee(0x9c)]['clientWidth']+'px',this['_echartsContainer']['style'][_0x288bee(0xdc)]=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance'][_0x288bee(_0x4ce629._0x45250c)]();}['setEchartsOption'](_0x52e023,_0x17c482,_0xe1ffaf){const _0x66243a={_0x79c181:0xa5},_0x5377b2=_0x34e5e6;this['_echartsInstance']&&(_0x52e023={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x52e023,{'onlySimpleType':!![]})},delete _0x52e023[_0x5377b2(0xce)],this[_0x5377b2(_0x66243a._0x79c181)]['setOption'](_0x52e023,_0x17c482,_0xe1ffaf));}['getRectangle'](_0x60bb99){const _0x454a37={_0x29711e:0xd5,_0x20e2a8:0xaf},_0x53ddfa={_0x2a8e5c:0xd7,_0x3c293b:0xc1},_0x168ec1={_0x25805d:0xd1},_0x393c42=_0x34e5e6;let _0x14209c,_0x321d21,_0xf79615,_0x23ccd1;function _0x2e0346(_0x264a03){const _0x5002f7=_0x1d75;if(!Array[_0x5002f7(0xad)](_0x264a03))return;const _0x695217=_0x264a03[0x0]||0x0,_0x3ccaf6=_0x264a03[0x1]||0x0;_0x695217!==0x0&&_0x3ccaf6!==0x0&&(_0x14209c===undefined?(_0x14209c=_0x695217,_0x321d21=_0x695217,_0xf79615=_0x3ccaf6,_0x23ccd1=_0x3ccaf6):(_0x14209c=Math['min'](_0x14209c,_0x695217),_0x321d21=Math['max'](_0x321d21,_0x695217),_0xf79615=Math[_0x5002f7(_0x168ec1._0x25805d)](_0xf79615,_0x3ccaf6),_0x23ccd1=Math['max'](_0x23ccd1,_0x3ccaf6)));}const _0x4d06f3=this[_0x393c42(_0x454a37._0x29711e)][_0x393c42(0xcd)];_0x4d06f3&&_0x4d06f3['forEach'](_0x4fb0f6=>{const _0x29f97a={_0x10c14d:0xc1},_0x336fde=_0x393c42;_0x4fb0f6[_0x336fde(_0x53ddfa._0x2a8e5c)]&&_0x4fb0f6[_0x336fde(_0x53ddfa._0x2a8e5c)][_0x336fde(_0x53ddfa._0x3c293b)](_0x107874=>{const _0x5d7b23=_0x336fde;if(_0x107874['value'])_0x2e0346(_0x107874['value']);else _0x107874['coords']&&_0x107874['coords'][_0x5d7b23(_0x29f97a._0x10c14d)](_0x2872c9=>{_0x2e0346(_0x2872c9);});});});if(_0x14209c===0x0&&_0xf79615===0x0&&_0x321d21===0x0&&_0x23ccd1===0x0)return null;return _0x60bb99!==null&&_0x60bb99!==void 0x0&&_0x60bb99[_0x393c42(0xcc)]?{'xmin':_0x14209c,'xmax':_0x321d21,'ymin':_0xf79615,'ymax':_0x23ccd1}:Cesium['Rectangle'][_0x393c42(_0x454a37._0x20e2a8)](_0x14209c,_0xf79615,_0x321d21,_0x23ccd1);}['on'](_0x208230,_0x2a79c1,_0x648c47){return this['_echartsInstance']['on'](_0x208230,_0x2a79c1,_0x648c47||this),this;}['onByQuery'](_0x5e90bf,_0x550dae,_0x5db2e5,_0x607c54){const _0x34bd68=_0x34e5e6;return this[_0x34bd68(0xa5)]['on'](_0x5e90bf,_0x550dae,_0x5db2e5,_0x607c54||this),this;}['off'](_0x1984d6,_0x3eecb5,_0x2b745d){return this['_echartsInstance']['off'](_0x1984d6,_0x3eecb5,_0x2b745d||this),this;}}mars3d__namespace['LayerUtil'][_0x34e5e6(0xca)](_0x34e5e6(0x9f),EchartsLayer),mars3d__namespace[_0x34e5e6(0xb5)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x34e5e6(0xa2)](echarts)['forEach'](function(_0x142450){const _0x131ee9={_0x12a5fd:0xd8},_0x27d046=_0x34e5e6;if(_0x142450!=='default'&&!exports[_0x27d046(0xda)](_0x142450))Object[_0x27d046(_0x131ee9._0x12a5fd)](exports,_0x142450,{'enumerable':!![],'get':function(){return echarts[_0x142450];}});}),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.6.12",
3
+ "version": "3.6.14",
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.6.12"
13
+ "mars3d": "~3.6.14"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"