mars3d-echarts 3.6.15 → 3.6.17

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.15
5
- * 编译日期:2023-12-05 19:27:11
4
+ * 版本信息:v3.6.17
5
+ * 编译日期:2023-12-18 20:13:45
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 _0xf14be9=_0x99bc;(function(_0x5ded5c,_0xc0e195){const _0x464ea3={_0x21f9f6:0xfa,_0x221b25:0x120,_0x54d3a3:0x121},_0x5bcc9c=_0x99bc,_0x1ac6c3=_0x5ded5c();while(!![]){try{const _0x453db5=parseInt(_0x5bcc9c(0x119))/0x1*(-parseInt(_0x5bcc9c(_0x464ea3._0x21f9f6))/0x2)+parseInt(_0x5bcc9c(0xfd))/0x3+parseInt(_0x5bcc9c(0x108))/0x4*(-parseInt(_0x5bcc9c(_0x464ea3._0x221b25))/0x5)+parseInt(_0x5bcc9c(0x11a))/0x6+-parseInt(_0x5bcc9c(_0x464ea3._0x54d3a3))/0x7*(-parseInt(_0x5bcc9c(0x109))/0x8)+parseInt(_0x5bcc9c(0x122))/0x9+-parseInt(_0x5bcc9c(0xed))/0xa*(-parseInt(_0x5bcc9c(0x112))/0xb);if(_0x453db5===_0xc0e195)break;else _0x1ac6c3['push'](_0x1ac6c3['shift']());}catch(_0x4fdac4){_0x1ac6c3['push'](_0x1ac6c3['shift']());}}}(_0x38b5,0xaaae5));function _0x38b5(){const _0x1eb951=['depthTest','mars3dMap','1735295zLKUkS','7scgaXr','4819527wWGJax','Cesium','coords','extendComponentView','mode','ecInstance','min','all','register','_mapOffset','create','painter','visibility','315310huVHXc','BoundingRect','container','postRender','eventParent','value','clampToGround','dispatchAction','setMapOffset','_echartsInstance','api','position','_echartsContainer','662ebijjn','removeChild','canvas','2891727gulBGR','style','clientWidth','keys','lng','div','default','fixedHeight','_map','getRectangle','ellipsoid','4sYtEMW','1362728nkEVEz','eachSeries','_pointerEvents','scene','Cartesian3','zIndex','forEach','_removedHook','options','44JYFQgW','pointerEvents','max','init','getRoamTransform','getHeight','moveHandler','3099uxkbau','1656360mPPFyL','globe','clear','data'];_0x38b5=function(){return _0x1eb951;};return _0x38b5();}function _interopNamespace(_0x334b3e){const _0x19b6a2={_0x1101ac:0x103},_0x16d509={_0x208b58:0x103},_0x148929=_0x99bc;if(_0x334b3e&&_0x334b3e['__esModule'])return _0x334b3e;var _0xc7d44=Object['create'](null);return _0x334b3e&&Object['keys'](_0x334b3e)['forEach'](function(_0x5f4b72){const _0x2b8f40=_0x99bc;if(_0x5f4b72!==_0x2b8f40(_0x16d509._0x208b58)){var _0x2dc93c=Object['getOwnPropertyDescriptor'](_0x334b3e,_0x5f4b72);Object['defineProperty'](_0xc7d44,_0x5f4b72,_0x2dc93c['get']?_0x2dc93c:{'enumerable':!![],'get':function(){return _0x334b3e[_0x5f4b72];}});}}),_0xc7d44[_0x148929(_0x19b6a2._0x1101ac)]=_0x334b3e,_0xc7d44;}function _0x99bc(_0x5bdb45,_0x20461c){const _0x38b568=_0x38b5();return _0x99bc=function(_0x99bc48,_0x50d313){_0x99bc48=_0x99bc48-0xe6;let _0x219667=_0x38b568[_0x99bc48];return _0x219667;},_0x99bc(_0x5bdb45,_0x20461c);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0xf14be9(0x123)];class CompositeCoordinateSystem{constructor(_0x392172,_0x39cc27){this['_mars3d_scene']=_0x392172,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x39cc27;}[_0xf14be9(0xf5)](_0x466ce4){const _0x127407={_0x26961e:0xe9},_0x4855fc=_0xf14be9;this[_0x4855fc(_0x127407._0x26961e)]=_0x466ce4;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x918601){const _0x9e18a7={_0x4a24db:0x117},_0x30c755=_0xf14be9,_0xef812a=this['_mars3d_scene'],_0x3a639f=[NaN,NaN];let _0x4f1e24=_0xef812a['echartsFixedHeight'];_0xef812a['echartsAutoHeight']&&(_0x4f1e24=_0xef812a[_0x30c755(0x11b)][_0x30c755(_0x9e18a7._0x4a24db)](Cesium$1['Cartographic']['fromDegrees'](_0x918601[0x0],_0x918601[0x1])));const _0x219845=Cesium$1[_0x30c755(0x10d)]['fromDegrees'](_0x918601[0x0],_0x918601[0x1],_0x4f1e24);if(!_0x219845)return _0x3a639f;const _0x4ae802=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0xef812a,_0x219845);if(!_0x4ae802)return _0x3a639f;if(_0xef812a['echartsDepthTest']&&_0xef812a[_0x30c755(0x126)]===Cesium$1['SceneMode']['SCENE3D']){const _0x40debf=new Cesium$1['EllipsoidalOccluder'](_0xef812a['globe'][_0x30c755(0x107)],_0xef812a['camera']['positionWC']),_0xe52881=_0x40debf['isPointVisible'](_0x219845);if(!_0xe52881)return _0x3a639f;}return[_0x4ae802['x']-this['_mapOffset'][0x0],_0x4ae802['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x4229fc={_0x1148d5:0xee},_0x41a132=_0xf14be9,_0x231583=this['_api'];return new echarts__namespace['graphic'][(_0x41a132(_0x4229fc._0x1148d5))](0x0,0x0,_0x231583['getWidth'](),_0x231583['getHeight']());}[_0xf14be9(0x116)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0xf14be9(0x101),'lat'],CompositeCoordinateSystem[_0xf14be9(0xea)]=function(_0x2d3d2b,_0x2fcb15){const _0x3f83ff={_0xefa6b2:0x10a},_0x30ef16={_0x5a4dbf:0xeb},_0x20cf4b=_0xf14be9;let _0x5b423a;const _0x43df8c=_0x2d3d2b['scheduler'][_0x20cf4b(0x127)]['_mars3d_scene'];_0x2d3d2b['eachComponent']('mars3dMap',function(_0x5e0405){const _0x39cf74=_0x20cf4b,_0x4fa37f=_0x2fcb15['getZr']()[_0x39cf74(_0x30ef16._0x5a4dbf)];if(!_0x4fa37f)return;!_0x5b423a&&(_0x5b423a=new CompositeCoordinateSystem(_0x43df8c,_0x2fcb15)),_0x5e0405['coordinateSystem']=_0x5b423a,_0x5b423a['setMapOffset'](_0x5e0405['__mapOffset']||[0x0,0x0]);}),_0x2d3d2b[_0x20cf4b(_0x3f83ff._0xefa6b2)](function(_0x5ee7f7){_0x5ee7f7['get']('coordinateSystem')==='mars3dMap'&&(!_0x5b423a&&(_0x5b423a=new CompositeCoordinateSystem(_0x43df8c,_0x2fcb15)),_0x5ee7f7['coordinateSystem']=_0x5b423a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0xf14be9(0x115)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x5d60ac,_0x13fb98){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0xf14be9(0x125)]({'type':_0xf14be9(0x11f),'init':function(_0x2a57c1,_0x4d9da3){const _0x100bca=_0xf14be9;this[_0x100bca(0xf7)]=_0x4d9da3,this['scene']=_0x2a57c1['scheduler']['ecInstance']['_mars3d_scene'],this['scene'][_0x100bca(0xf0)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x34a126,_0x3387af){const _0x29ef83=_0xf14be9;this[_0x29ef83(0xf7)][_0x29ef83(0xf4)]({'type':'mars3dMapRoam'});},'render':function(_0x164b89,_0x57a069,_0x2bf42d){},'dispose':function(_0x40aab7){const _0x486260={_0x2dc701:0x118},_0x315fc1=_0xf14be9;this['scene']['postRender']['removeEventListener'](this[_0x315fc1(_0x486260._0x2dc701)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x4ca2ed={}){const _0x17b5aa={_0x193eca:0x10b},_0x3fbfbe=_0xf14be9;super(_0x4ca2ed),this[_0x3fbfbe(_0x17b5aa._0x193eca)]=this[_0x3fbfbe(0x111)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x42b78d=_0xf14be9;return this[_0x42b78d(0x10b)];}set[_0xf14be9(0x113)](_0x1ab494){const _0xb658f9={_0x55c5ca:0xfe,_0x4cf0e0:0x113},_0x27baa6=_0xf14be9;this['_pointerEvents']=_0x1ab494,this['_echartsContainer']&&(_0x1ab494?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x27baa6(_0xb658f9._0x55c5ca)][_0x27baa6(_0xb658f9._0x4cf0e0)]='none');}['_setOptionsHook'](_0x36a310,_0x146411){this['setEchartsOption'](_0x36a310);}['_showHook'](_0x584d0a){const _0x2cd8f7={_0x578879:0xec,_0x54e3d8:0xec},_0x27128b=_0xf14be9;_0x584d0a?this[_0x27128b(0xf9)]['style'][_0x27128b(_0x2cd8f7._0x578879)]='visible':this['_echartsContainer']['style'][_0x27128b(_0x2cd8f7._0x54e3d8)]='hidden';}['_mountedHook'](){const _0x48543a={_0x35c68a:0x10c,_0x272201:0x105,_0x3300d6:0x111,_0xad33d4:0x104},_0x1945e5=_0xf14be9;this['_map'][_0x1945e5(_0x48543a._0x35c68a)]['echartsDepthTest']=this[_0x1945e5(0x111)][_0x1945e5(0x11e)]??!![],this[_0x1945e5(_0x48543a._0x272201)]['scene']['echartsAutoHeight']=this['options'][_0x1945e5(0xf3)]??![],this['_map']['scene']['echartsFixedHeight']=this[_0x1945e5(_0x48543a._0x3300d6)][_0x1945e5(_0x48543a._0xad33d4)]??0x0;}['_addedHook'](){const _0xdc1453={_0x4ccbef:0xf6,_0x834dab:0x105},_0x55a1bc=_0xf14be9;this[_0x55a1bc(0xf9)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x55a1bc(0xf9)]),this[_0x55a1bc(_0xdc1453._0x4ccbef)]['_mars3d_scene']=this[_0x55a1bc(_0xdc1453._0x834dab)]['scene'],this['setEchartsOption'](this['options']);}[_0xf14be9(0x110)](){const _0x176c5d={_0x378016:0xf6},_0x3e2ab8=_0xf14be9;this[_0x3e2ab8(0xf6)]&&(this[_0x3e2ab8(_0x176c5d._0x378016)][_0x3e2ab8(0x11c)](),this['_echartsInstance']['dispose'](),delete this[_0x3e2ab8(0xf6)]),this['_echartsContainer']&&(this['_map']['container'][_0x3e2ab8(0xfb)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x42958b={_0x1acb74:0xfc,_0x7aec21:0x105,_0x4d2dff:0x113,_0x550f1a:0xe7},_0x23100a=_0xf14be9,_0x18f735=mars3d__namespace['DomUtil']['create'](_0x23100a(0x102),'mars3d-echarts',this['_map'][_0x23100a(0xef)]);return _0x18f735['id']=this['id'],_0x18f735['style'][_0x23100a(0xf8)]='absolute',_0x18f735['style']['top']='0px',_0x18f735['style']['left']='0px',_0x18f735['style']['width']=this['_map']['scene'][_0x23100a(_0x42958b._0x1acb74)]['clientWidth']+'px',_0x18f735['style']['height']=this[_0x23100a(_0x42958b._0x7aec21)]['scene']['canvas']['clientHeight']+'px',_0x18f735['style'][_0x23100a(_0x42958b._0x4d2dff)]=this[_0x23100a(0x10b)]?_0x23100a(_0x42958b._0x550f1a):'none',_0x18f735[_0x23100a(0xfe)][_0x23100a(0x10e)]=this['options'][_0x23100a(0x10e)]??0x9,_0x18f735;}['resize'](){const _0x8c016b={_0x18573f:0xf9},_0x1b0079=_0xf14be9;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene'][_0x1b0079(0xfc)][_0x1b0079(0xff)]+'px',this[_0x1b0079(_0x8c016b._0x18573f)]['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x58de70,_0x7fbdde,_0x36813b){const _0x10d431={_0x445837:0xf6},_0x140fe5=_0xf14be9;this['_echartsInstance']&&(_0x58de70={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x58de70,{'onlySimpleType':!![]})},delete _0x58de70[_0x140fe5(0xf1)],this[_0x140fe5(_0x10d431._0x445837)]['setOption'](_0x58de70,_0x7fbdde,_0x36813b));}[_0xf14be9(0x106)](_0x23e7d7){const _0x46a61b={_0x5b27fc:0x11d},_0x4fd951={_0x552b5c:0x114};let _0xbdaae0,_0x1159d8,_0x307b77,_0x203773;function _0x7fcd29(_0x2f712a){const _0x575b5e=_0x99bc;if(!Array['isArray'](_0x2f712a))return;const _0x7d3953=_0x2f712a[0x0]||0x0,_0xd0a0e0=_0x2f712a[0x1]||0x0;_0x7d3953!==0x0&&_0xd0a0e0!==0x0&&(_0xbdaae0===undefined?(_0xbdaae0=_0x7d3953,_0x1159d8=_0x7d3953,_0x307b77=_0xd0a0e0,_0x203773=_0xd0a0e0):(_0xbdaae0=Math['min'](_0xbdaae0,_0x7d3953),_0x1159d8=Math['max'](_0x1159d8,_0x7d3953),_0x307b77=Math[_0x575b5e(0xe6)](_0x307b77,_0xd0a0e0),_0x203773=Math[_0x575b5e(_0x4fd951._0x552b5c)](_0x203773,_0xd0a0e0)));}const _0x475b2c=this['options']['series'];_0x475b2c&&_0x475b2c['forEach'](_0x509272=>{const _0x59c588={_0x18d938:0xf2,_0x176c39:0x10f},_0x48e255=_0x99bc;_0x509272['data']&&_0x509272[_0x48e255(_0x46a61b._0x5b27fc)][_0x48e255(0x10f)](_0x599274=>{const _0x32c4ee=_0x48e255;if(_0x599274[_0x32c4ee(_0x59c588._0x18d938)])_0x7fcd29(_0x599274['value']);else _0x599274[_0x32c4ee(0x124)]&&_0x599274['coords'][_0x32c4ee(_0x59c588._0x176c39)](_0x24daa7=>{_0x7fcd29(_0x24daa7);});});});if(_0xbdaae0===0x0&&_0x307b77===0x0&&_0x1159d8===0x0&&_0x203773===0x0)return null;return _0x23e7d7!==null&&_0x23e7d7!==void 0x0&&_0x23e7d7['isFormat']?{'xmin':_0xbdaae0,'xmax':_0x1159d8,'ymin':_0x307b77,'ymax':_0x203773}:Cesium['Rectangle']['fromDegrees'](_0xbdaae0,_0x307b77,_0x1159d8,_0x203773);}['on'](_0x2410ec,_0x35291c,_0x3d5d6b){return this['_echartsInstance']['on'](_0x2410ec,_0x35291c,_0x3d5d6b||this),this;}['onByQuery'](_0x51905d,_0x4d7e6c,_0xd4d2d4,_0x225319){const _0x2c603e=_0xf14be9;return this[_0x2c603e(0xf6)]['on'](_0x51905d,_0x4d7e6c,_0xd4d2d4,_0x225319||this),this;}['off'](_0x5283b7,_0x160c0b,_0x542eed){return this['_echartsInstance']['off'](_0x5283b7,_0x160c0b,_0x542eed||this),this;}}mars3d__namespace['LayerUtil'][_0xf14be9(0xe8)]('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0xf14be9(0x100)](echarts)['forEach'](function(_0x5431b6){if(_0x5431b6!=='default'&&!exports['hasOwnProperty'](_0x5431b6))Object['defineProperty'](exports,_0x5431b6,{'enumerable':!![],'get':function(){return echarts[_0x5431b6];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
14
+ 'use strict';const _0x3d1e8b=_0x2a73;(function(_0x28df0b,_0x4ed32a){const _0xe14cf3={_0x4b18b9:0x1f9,_0x4d5fe5:0x1d5,_0x409929:0x1e8},_0x39df2b=_0x2a73,_0x1fbd4d=_0x28df0b();while(!![]){try{const _0x57faec=parseInt(_0x39df2b(0x1f8))/0x1*(parseInt(_0x39df2b(_0xe14cf3._0x4b18b9))/0x2)+-parseInt(_0x39df2b(0x1de))/0x3+parseInt(_0x39df2b(_0xe14cf3._0x4d5fe5))/0x4*(-parseInt(_0x39df2b(0x1f6))/0x5)+-parseInt(_0x39df2b(0x1d1))/0x6+-parseInt(_0x39df2b(0x1fb))/0x7*(-parseInt(_0x39df2b(0x20b))/0x8)+-parseInt(_0x39df2b(0x1e0))/0x9+parseInt(_0x39df2b(_0xe14cf3._0x409929))/0xa;if(_0x57faec===_0x4ed32a)break;else _0x1fbd4d['push'](_0x1fbd4d['shift']());}catch(_0x415fc8){_0x1fbd4d['push'](_0x1fbd4d['shift']());}}}(_0x5f32,0x75087));function _0x5f32(){const _0x27c128=['EchartsLayer','SCENE3D','graphic','api','default','5684904xMZEgJ','pointerEvents','painter','_echartsInstance','4vmqIKW','moveHandler','register','value','extendComponentView','postRender','zIndex','getOwnPropertyDescriptor','__esModule','1645608JZmwpN','dimensions','8099100GFUhgz','_mars3d_scene','min','scene','forEach','coords','_setOptionsHook','setEchartsOption','18820810RlkwYx','echartsFixedHeight','eventParent','coordinateSystem','all','echartsDepthTest','setMapOffset','style','addEventListener','_echartsContainer','_mapOffset','_createChartOverlay','mars3dMap','wgs84ToWindowCoordinates','449615TEXGqi','Cartographic','891453yHfkEx','2rtImLy','create','42GYNghT','visibility','__mapOffset','defineProperty','keys','Util','max','position','registerAction','positionWC','getBMap','Rectangle','options','lat','clientHeight','_map','255568jOYYTm'];_0x5f32=function(){return _0x27c128;};return _0x5f32();}function _0x2a73(_0x578ed6,_0x1919d9){const _0x5f326f=_0x5f32();return _0x2a73=function(_0x2a73d1,_0x21a71a){_0x2a73d1=_0x2a73d1-0x1cc;let _0x3c81f6=_0x5f326f[_0x2a73d1];return _0x3c81f6;},_0x2a73(_0x578ed6,_0x1919d9);}function _interopNamespace(_0x174e4e){const _0x4efcde={_0x32d218:0x1ff,_0x3bf485:0x1d0},_0x5d4538={_0x19d983:0x1dc},_0x355817=_0x2a73;if(_0x174e4e&&_0x174e4e['__esModule'])return _0x174e4e;var _0x3f3421=Object['create'](null);return _0x174e4e&&Object[_0x355817(_0x4efcde._0x32d218)](_0x174e4e)['forEach'](function(_0x2c59d4){const _0x2bb757=_0x355817;if(_0x2c59d4!==_0x2bb757(0x1d0)){var _0x46a82b=Object[_0x2bb757(_0x5d4538._0x19d983)](_0x174e4e,_0x2c59d4);Object['defineProperty'](_0x3f3421,_0x2c59d4,_0x46a82b['get']?_0x46a82b:{'enumerable':!![],'get':function(){return _0x174e4e[_0x2c59d4];}});}}),_0x3f3421[_0x355817(_0x4efcde._0x3bf485)]=_0x174e4e,_0x3f3421;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2243d8,_0x501ae8){this['_mars3d_scene']=_0x2243d8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x501ae8;}['setMapOffset'](_0x1653fc){const _0x57ae79=_0x2a73;this[_0x57ae79(0x1f2)]=_0x1653fc;}[_0x3d1e8b(0x205)](){return this['_mars3d_scene'];}['dataToPoint'](_0x135b0b){const _0x2cef25={_0x541cf5:0x1e9,_0x3e0772:0x1f5,_0x5e8463:0x1ed,_0x18f79b:0x1cd,_0x48bd17:0x204},_0x28cfd6=_0x3d1e8b,_0x5adf39=this['_mars3d_scene'],_0x63900f=[NaN,NaN];let _0x28e28c=_0x5adf39[_0x28cfd6(_0x2cef25._0x541cf5)];_0x5adf39['echartsAutoHeight']&&(_0x28e28c=_0x5adf39['globe']['getHeight'](Cesium$1[_0x28cfd6(0x1f7)]['fromDegrees'](_0x135b0b[0x0],_0x135b0b[0x1])));const _0x35e48d=Cesium$1['Cartesian3']['fromDegrees'](_0x135b0b[0x0],_0x135b0b[0x1],_0x28e28c);if(!_0x35e48d)return _0x63900f;const _0xe43088=Cesium$1['SceneTransforms'][_0x28cfd6(_0x2cef25._0x3e0772)](_0x5adf39,_0x35e48d);if(!_0xe43088)return _0x63900f;if(_0x5adf39[_0x28cfd6(_0x2cef25._0x5e8463)]&&_0x5adf39['mode']===Cesium$1['SceneMode'][_0x28cfd6(_0x2cef25._0x18f79b)]){const _0x1dec21=new Cesium$1['EllipsoidalOccluder'](_0x5adf39['globe']['ellipsoid'],_0x5adf39['camera'][_0x28cfd6(_0x2cef25._0x48bd17)]),_0x155b93=_0x1dec21['isPointVisible'](_0x35e48d);if(!_0x155b93)return _0x63900f;}return[_0xe43088['x']-this['_mapOffset'][0x0],_0xe43088['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x44a7d9={_0x2b1af6:0x1ce},_0x1baf89=_0x3d1e8b,_0x2065c9=this['_api'];return new echarts__namespace[(_0x1baf89(_0x44a7d9._0x2b1af6))]['BoundingRect'](0x0,0x0,_0x2065c9['getWidth'](),_0x2065c9['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x3d1e8b(0x1df)]=['lng',_0x3d1e8b(0x208)],CompositeCoordinateSystem[_0x3d1e8b(0x1fa)]=function(_0x8179ff,_0x3534b9){const _0x1b5d64={_0x5e8a3e:0x1eb},_0x540b2b={_0x1ef0c8:0x1d3,_0x45d40c:0x1ee},_0x3df607=_0x3d1e8b;let _0x1cba39;const _0x35c0c1=_0x8179ff['scheduler']['ecInstance'][_0x3df607(0x1e1)];_0x8179ff['eachComponent']('mars3dMap',function(_0x4f3fa3){const _0x106ec5=_0x3df607,_0x3f200a=_0x3534b9['getZr']()[_0x106ec5(_0x540b2b._0x1ef0c8)];if(!_0x3f200a)return;!_0x1cba39&&(_0x1cba39=new CompositeCoordinateSystem(_0x35c0c1,_0x3534b9)),_0x4f3fa3['coordinateSystem']=_0x1cba39,_0x1cba39[_0x106ec5(_0x540b2b._0x45d40c)](_0x4f3fa3[_0x106ec5(0x1fd)]||[0x0,0x0]);}),_0x8179ff['eachSeries'](function(_0x3e3784){const _0x22154a=_0x3df607;_0x3e3784['get']('coordinateSystem')==='mars3dMap'&&(!_0x1cba39&&(_0x1cba39=new CompositeCoordinateSystem(_0x35c0c1,_0x3534b9)),_0x3e3784[_0x22154a(_0x1b5d64._0x5e8a3e)]=_0x1cba39);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x3d1e8b(0x1f4),CompositeCoordinateSystem),echarts__namespace[_0x3d1e8b(0x203)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x3241b1,_0x13efbe){}),echarts__namespace['extendComponentModel']({'type':_0x3d1e8b(0x1f4),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x3d1e8b(0x1d9)]({'type':'mars3dMap','init':function(_0x2a7d95,_0x335499){const _0x46a4d2={_0x4f3c96:0x1cf,_0xdcaf73:0x1f0},_0x32cbb5=_0x3d1e8b;this[_0x32cbb5(_0x46a4d2._0x4f3c96)]=_0x335499,this['scene']=_0x2a7d95['scheduler']['ecInstance']['_mars3d_scene'],this[_0x32cbb5(0x1e3)][_0x32cbb5(0x1da)][_0x32cbb5(_0x46a4d2._0xdcaf73)](this['moveHandler'],this);},'moveHandler':function(_0x457d1b,_0xe4d489){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x4ecad9,_0x2f6da4,_0x547bb6){},'dispose':function(_0x28b4c8){const _0x4b9c2d={_0x58224b:0x1d6},_0x47958c=_0x3d1e8b;this['scene']['postRender']['removeEventListener'](this[_0x47958c(_0x4b9c2d._0x58224b)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x132886={}){super(_0x132886),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x318357){const _0x53079c=_0x3d1e8b;this['_pointerEvents']=_0x318357,this['_echartsContainer']&&(_0x318357?this[_0x53079c(0x1f1)][_0x53079c(0x1ef)][_0x53079c(0x1d2)]=_0x53079c(0x1ec):this['_echartsContainer'][_0x53079c(0x1ef)]['pointerEvents']='none');}[_0x3d1e8b(0x1e6)](_0x154bf5,_0x52d309){const _0x113088={_0x14ef10:0x1e7},_0x26f75f=_0x3d1e8b;this[_0x26f75f(_0x113088._0x14ef10)](_0x154bf5);}['_showHook'](_0x2cb185){const _0x346822=_0x3d1e8b;_0x2cb185?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style'][_0x346822(0x1fc)]='hidden';}['_mountedHook'](){const _0x25d618={_0x102b1d:0x1e9},_0x26e280=_0x3d1e8b;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map'][_0x26e280(0x1e3)]['echartsAutoHeight']=this[_0x26e280(0x207)]['clampToGround']??![],this[_0x26e280(0x20a)]['scene'][_0x26e280(_0x25d618._0x102b1d)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x56b673={_0x531d23:0x1f1,_0x4c5c6f:0x1f3,_0x5cfa3b:0x1f1,_0x5be6f6:0x1e1},_0x4eaaa4=_0x3d1e8b;this[_0x4eaaa4(_0x56b673._0x531d23)]=this[_0x4eaaa4(_0x56b673._0x4c5c6f)](),this['_echartsInstance']=echarts__namespace['init'](this[_0x4eaaa4(_0x56b673._0x5cfa3b)]),this['_echartsInstance'][_0x4eaaa4(_0x56b673._0x5be6f6)]=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x42c048={_0x2f7c49:0x1d4},_0x228498=_0x3d1e8b;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x228498(_0x42c048._0x2f7c49)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x37625d={_0x56e8a:0x20a,_0x9cbe59:0x1e3,_0x2997c8:0x20a},_0x281311=_0x3d1e8b,_0x4cd5c6=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x4cd5c6['id']=this['id'],_0x4cd5c6['style'][_0x281311(0x202)]='absolute',_0x4cd5c6['style']['top']='0px',_0x4cd5c6[_0x281311(0x1ef)]['left']='0px',_0x4cd5c6['style']['width']=this[_0x281311(_0x37625d._0x56e8a)][_0x281311(_0x37625d._0x9cbe59)]['canvas']['clientWidth']+'px',_0x4cd5c6['style']['height']=this[_0x281311(_0x37625d._0x2997c8)]['scene']['canvas'][_0x281311(0x209)]+'px',_0x4cd5c6[_0x281311(0x1ef)][_0x281311(0x1d2)]=this['_pointerEvents']?'all':'none',_0x4cd5c6['style']['zIndex']=this['options'][_0x281311(0x1db)]??0x9,_0x4cd5c6;}['resize'](){const _0x1962ba={_0x8ff88c:0x1f1,_0x228900:0x209},_0x43bab9=_0x3d1e8b;if(!this[_0x43bab9(0x1d4)])return;this['_echartsContainer'][_0x43bab9(0x1ef)]['width']=this['_map'][_0x43bab9(0x1e3)]['canvas']['clientWidth']+'px',this[_0x43bab9(_0x1962ba._0x8ff88c)]['style']['height']=this['_map']['scene']['canvas'][_0x43bab9(_0x1962ba._0x228900)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x4ce498,_0x3e7a4f,_0x51a1ef){const _0x189a37={_0x493148:0x1ea},_0x50ca91=_0x3d1e8b;this['_echartsInstance']&&(_0x4ce498={'mars3dMap':{},...mars3d__namespace[_0x50ca91(0x200)]['getAttrVal'](_0x4ce498,{'onlySimpleType':!![]})},delete _0x4ce498[_0x50ca91(_0x189a37._0x493148)],this['_echartsInstance']['setOption'](_0x4ce498,_0x3e7a4f,_0x51a1ef));}['getRectangle'](_0x11659e){const _0x3628d1={_0x525133:0x1e4,_0x21cd56:0x206},_0x5c214a={_0x2c834d:0x201},_0x5423fe=_0x3d1e8b;let _0x72d710,_0x3a8007,_0x4cfceb,_0x36ee64;function _0x465c7d(_0x5b8091){const _0x8f822e=_0x2a73;if(!Array['isArray'](_0x5b8091))return;const _0x38caf4=_0x5b8091[0x0]||0x0,_0x4bfc18=_0x5b8091[0x1]||0x0;_0x38caf4!==0x0&&_0x4bfc18!==0x0&&(_0x72d710===undefined?(_0x72d710=_0x38caf4,_0x3a8007=_0x38caf4,_0x4cfceb=_0x4bfc18,_0x36ee64=_0x4bfc18):(_0x72d710=Math['min'](_0x72d710,_0x38caf4),_0x3a8007=Math[_0x8f822e(_0x5c214a._0x2c834d)](_0x3a8007,_0x38caf4),_0x4cfceb=Math[_0x8f822e(0x1e2)](_0x4cfceb,_0x4bfc18),_0x36ee64=Math[_0x8f822e(0x201)](_0x36ee64,_0x4bfc18)));}const _0x14a1f3=this['options']['series'];_0x14a1f3&&_0x14a1f3[_0x5423fe(_0x3628d1._0x525133)](_0x2b74d5=>{const _0x44d90={_0x4ce1cf:0x1d8,_0x150aa0:0x1d8,_0x2bc060:0x1e5};_0x2b74d5['data']&&_0x2b74d5['data']['forEach'](_0x5980f5=>{const _0xd08665=_0x2a73;if(_0x5980f5[_0xd08665(_0x44d90._0x4ce1cf)])_0x465c7d(_0x5980f5[_0xd08665(_0x44d90._0x150aa0)]);else _0x5980f5[_0xd08665(_0x44d90._0x2bc060)]&&_0x5980f5['coords']['forEach'](_0x3cb21c=>{_0x465c7d(_0x3cb21c);});});});if(_0x72d710===0x0&&_0x4cfceb===0x0&&_0x3a8007===0x0&&_0x36ee64===0x0)return null;return _0x11659e!==null&&_0x11659e!==void 0x0&&_0x11659e['isFormat']?{'xmin':_0x72d710,'xmax':_0x3a8007,'ymin':_0x4cfceb,'ymax':_0x36ee64}:Cesium[_0x5423fe(_0x3628d1._0x21cd56)]['fromDegrees'](_0x72d710,_0x4cfceb,_0x3a8007,_0x36ee64);}['on'](_0x2d6a16,_0xd0d289,_0xc24fa6){return this['_echartsInstance']['on'](_0x2d6a16,_0xd0d289,_0xc24fa6||this),this;}['onByQuery'](_0x2d2ba6,_0x8d6727,_0x25bca4,_0xbf73ba){return this['_echartsInstance']['on'](_0x2d2ba6,_0x8d6727,_0x25bca4,_0xbf73ba||this),this;}['off'](_0x481b6e,_0x54d85e,_0x2aed80){return this['_echartsInstance']['off'](_0x481b6e,_0x54d85e,_0x2aed80||this),this;}}mars3d__namespace['LayerUtil'][_0x3d1e8b(0x1d7)]('echarts',EchartsLayer),mars3d__namespace['layer'][_0x3d1e8b(0x1cc)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x466144){const _0x4c10fc={_0x46f8db:0x1d0},_0x421522=_0x3d1e8b;if(_0x466144!==_0x421522(_0x4c10fc._0x46f8db)&&!exports['hasOwnProperty'](_0x466144))Object[_0x421522(0x1fe)](exports,_0x466144,{'enumerable':!![],'get':function(){return echarts[_0x466144];}});}),Object['defineProperty'](exports,_0x3d1e8b(0x1dd),{'value':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-echarts",
3
- "version": "3.6.15",
3
+ "version": "3.6.17",
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.15"
13
+ "mars3d": "~3.6.17"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"