mars3d-echarts
Advanced tools
Comparing version 3.5.18 to 3.6.0
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.18 | ||
* 编译日期:2023-07-31 17:54:18 | ||
* 版本信息:v3.6.0 | ||
* 编译日期:2023-08-04 12:18:40 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x590474=_0x38c7;function _0x3382(){const _0x31c65f=['3025380gCQbTC','clientHeight','hidden','_echartsContainer','echarts','options','getRoamTransform','eachSeries','off','all','getViewRect','moveHandler','defineProperty','BoundingRect','clampToGround','_mapOffset','Rectangle','echartsDepthTest','请引入\x20echarts\x20库\x20','404958FClsds','mars3dMapRoam','BaseLayer','painter','364125MDBFSr','SceneTransforms','_map','globe','mode','hasOwnProperty','__esModule','_createChartOverlay','0px','LayerUtil','4hxPtxE','lng','canvas','onByQuery','_api','3202884nIjrOQ','58aKXncn','echartsAutoHeight','create','_pointerEvents','462994BqTVBZ','_echartsInstance','mars3dMap','api','style','80ONgvuz','camera','2618364LMnMYK','dataToPoint','746JiwPMq','layer','clientWidth','fixedHeight','keys','_mountedHook','mars3d-echarts','top','setEchartsOption','pointerEvents','33FEEuzy','scheduler','coordinateSystem','dimensions','scene'];_0x3382=function(){return _0x31c65f;};return _0x3382();}(function(_0x1cf0b9,_0x5b00e6){const _0x21a717={_0x3ae61d:0x144,_0x35d40c:0x166,_0x34c7cd:0x16a,_0x3f91a7:0x140,_0x4dad35:0x179,_0x9ab01:0x153},_0x117830=_0x38c7,_0x4c38a0=_0x1cf0b9();while(!![]){try{const _0x5b3b03=parseInt(_0x117830(_0x21a717._0x3ae61d))/0x1*(parseInt(_0x117830(0x17a))/0x2)+-parseInt(_0x117830(_0x21a717._0x35d40c))/0x3*(parseInt(_0x117830(0x174))/0x4)+-parseInt(_0x117830(_0x21a717._0x34c7cd))/0x5+parseInt(_0x117830(0x142))/0x6+-parseInt(_0x117830(0x13b))/0x7*(-parseInt(_0x117830(_0x21a717._0x3f91a7))/0x8)+parseInt(_0x117830(_0x21a717._0x4dad35))/0x9+-parseInt(_0x117830(_0x21a717._0x9ab01))/0xa*(parseInt(_0x117830(0x14e))/0xb);if(_0x5b3b03===_0x5b00e6)break;else _0x4c38a0['push'](_0x4c38a0['shift']());}catch(_0x6d1aa3){_0x4c38a0['push'](_0x4c38a0['shift']());}}}(_0x3382,0x57ddb));function _interopNamespace(_0x2b8a73){const _0x380dc6=_0x38c7;if(_0x2b8a73&&_0x2b8a73[_0x380dc6(0x170)])return _0x2b8a73;var _0x23c2b9=Object['create'](null);return _0x2b8a73&&Object['keys'](_0x2b8a73)['forEach'](function(_0x17f729){const _0x304e80=_0x380dc6;if(_0x17f729!=='default'){var _0x1946da=Object['getOwnPropertyDescriptor'](_0x2b8a73,_0x17f729);Object[_0x304e80(0x15f)](_0x23c2b9,_0x17f729,_0x1946da['get']?_0x1946da:{'enumerable':!![],'get':function(){return _0x2b8a73[_0x17f729];}});}}),_0x23c2b9['default']=_0x2b8a73,_0x23c2b9;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x1fc5fd,_0x4b3be4){const _0x184bd2={_0x4c3bf4:0x175},_0x32b11d=_0x38c7;this['_mars3d_scene']=_0x1fc5fd,this[_0x32b11d(0x151)]=[_0x32b11d(_0x184bd2._0x4c3bf4),'lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x4b3be4;}['setMapOffset'](_0x309dd1){this['_mapOffset']=_0x309dd1;}['getBMap'](){return this['_mars3d_scene'];}[_0x590474(0x143)](_0x4cda42){const _0x5a2b9f={_0x3c3b27:0x16e,_0x46e3e6:0x16d},_0xe4f45=_0x590474,_0x56ccc9=this['_mars3d_scene'],_0x3aa662=[NaN,NaN];let _0x41d7a4=_0x56ccc9['echartsFixedHeight'];_0x56ccc9['echartsAutoHeight']&&(_0x41d7a4=_0x56ccc9['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x4cda42[0x0],_0x4cda42[0x1])));const _0x54de01=Cesium$1['Cartesian3']['fromDegrees'](_0x4cda42[0x0],_0x4cda42[0x1],_0x41d7a4);if(!_0x54de01)return _0x3aa662;const _0x189e1a=Cesium$1[_0xe4f45(0x16b)]['wgs84ToWindowCoordinates'](_0x56ccc9,_0x54de01);if(!_0x189e1a)return _0x3aa662;if(_0x56ccc9['echartsDepthTest']&&_0x56ccc9[_0xe4f45(_0x5a2b9f._0x3c3b27)]===Cesium$1['SceneMode']['SCENE3D']){const _0x4460e0=new Cesium$1['EllipsoidalOccluder'](_0x56ccc9[_0xe4f45(_0x5a2b9f._0x46e3e6)]['ellipsoid'],_0x56ccc9[_0xe4f45(0x141)]['positionWC']),_0x1c5370=_0x4460e0['isPointVisible'](_0x54de01);if(!_0x1c5370)return _0x3aa662;}return[_0x189e1a['x']-this[_0xe4f45(0x162)][0x0],_0x189e1a['y']-this['_mapOffset'][0x1]];}[_0x590474(0x15d)](){const _0x4ed655={_0x212295:0x178},_0x221c0e=_0x590474,_0x22e640=this[_0x221c0e(_0x4ed655._0x212295)];return new echarts__namespace['graphic'][(_0x221c0e(0x160))](0x0,0x0,_0x22e640['getWidth'](),_0x22e640['getHeight']());}[_0x590474(0x159)](){const _0x122b4c=_0x590474;return echarts__namespace['matrix'][_0x122b4c(0x17c)]();}}CompositeCoordinateSystem[_0x590474(0x151)]=[_0x590474(0x175),'lat'],CompositeCoordinateSystem['create']=function(_0x4fdaa6,_0x3c9559){const _0x372348={_0xabde70:0x150},_0x3dc048={_0x3ad8b1:0x169},_0x4d4907=_0x590474;let _0x1393bd;const _0x164914=_0x4fdaa6['scheduler']['ecInstance']['_mars3d_scene'];_0x4fdaa6['eachComponent'](_0x4d4907(0x13d),function(_0x7c6912){const _0x408608=_0x4d4907,_0x3c2314=_0x3c9559['getZr']()[_0x408608(_0x3dc048._0x3ad8b1)];if(!_0x3c2314)return;!_0x1393bd&&(_0x1393bd=new CompositeCoordinateSystem(_0x164914,_0x3c9559)),_0x7c6912['coordinateSystem']=_0x1393bd,_0x1393bd['setMapOffset'](_0x7c6912['__mapOffset']||[0x0,0x0]);}),_0x4fdaa6[_0x4d4907(0x15a)](function(_0x3f83de){const _0x2aeb15=_0x4d4907;_0x3f83de['get'](_0x2aeb15(0x150))==='mars3dMap'&&(!_0x1393bd&&(_0x1393bd=new CompositeCoordinateSystem(_0x164914,_0x3c9559)),_0x3f83de[_0x2aeb15(_0x372348._0xabde70)]=_0x1393bd);});};function _0x38c7(_0x303156,_0x1c1437){const _0x33827b=_0x3382();return _0x38c7=function(_0x38c7c0,_0x10f3d1){_0x38c7c0=_0x38c7c0-0x13b;let _0x38ab11=_0x33827b[_0x38c7c0];return _0x38ab11;},_0x38c7(_0x303156,_0x1c1437);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x590474(0x13d),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x332a08,_0x17deec){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1f5118,_0x3cc739){const _0x58f4f0={_0x116516:0x13e},_0x50bd1c=_0x590474;this[_0x50bd1c(_0x58f4f0._0x116516)]=_0x3cc739,this['scene']=_0x1f5118[_0x50bd1c(0x14f)]['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x4e4817,_0x34cedc){const _0x7db937={_0x1a9579:0x167},_0x1ae9cd=_0x590474;this['api']['dispatchAction']({'type':_0x1ae9cd(_0x7db937._0x1a9579)});},'render':function(_0x5bdef5,_0x51e492,_0xd567b7){},'dispose':function(_0x4d2a18){const _0x2bdc97={_0x219a57:0x15e},_0x48e196=_0x590474;this['scene']['postRender']['removeEventListener'](this[_0x48e196(_0x2bdc97._0x219a57)],this);}});else throw new Error(_0x590474(0x165));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x590474(0x168)];class EchartsLayer extends BaseLayer{constructor(_0x1effdb={}){super(_0x1effdb),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x590474(0x145)](){const _0x59c362=_0x590474;return this[_0x59c362(0x13c)];}get[_0x590474(0x14d)](){const _0x594f26={_0x4c9bc9:0x17d},_0x204452=_0x590474;return this[_0x204452(_0x594f26._0x4c9bc9)];}set['pointerEvents'](_0xe75507){const _0x9effce={_0xcae6a1:0x13f},_0x2f51c6=_0x590474;this['_pointerEvents']=_0xe75507,this['_echartsContainer']&&(_0xe75507?this['_echartsContainer'][_0x2f51c6(_0x9effce._0xcae6a1)]['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x484b13,_0x863d53){this['setEchartsOption'](_0x484b13);}['_showHook'](_0x50ff2b){const _0x381b2a=_0x590474;_0x50ff2b?this[_0x381b2a(0x156)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0x381b2a(0x155);}[_0x590474(0x149)](){const _0xf745b7={_0x4ccf6a:0x161},_0x1e64fa=_0x590474;this['_map'][_0x1e64fa(0x152)][_0x1e64fa(0x164)]=this['options']['depthTest']??!![],this[_0x1e64fa(0x16c)]['scene'][_0x1e64fa(0x17b)]=this[_0x1e64fa(0x158)][_0x1e64fa(_0xf745b7._0x4ccf6a)]??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x1e64fa(0x147)]??0x0;}['_addedHook'](){const _0x345c9e={_0x5d00d0:0x171},_0x391e6e=_0x590474;this['_echartsContainer']=this[_0x391e6e(_0x345c9e._0x5d00d0)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x391e6e(0x14c)](this['options']);}['_removedHook'](){const _0x187ffe={_0x25c724:0x13c},_0x53960f=_0x590474;this[_0x53960f(0x13c)]&&(this[_0x53960f(_0x187ffe._0x25c724)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this[_0x53960f(0x156)]),delete this[_0x53960f(0x156)]);}['_createChartOverlay'](){const _0xf2b6f4={_0x576d19:0x14a,_0x4864e5:0x13f,_0x5228fc:0x146,_0x1702b2:0x15c},_0x22b36f=_0x590474,_0xd23e57=mars3d__namespace['DomUtil'][_0x22b36f(0x17c)]('div',_0x22b36f(_0xf2b6f4._0x576d19),this['_map']['container']);return _0xd23e57['id']=this['id'],_0xd23e57['style']['position']='absolute',_0xd23e57[_0x22b36f(_0xf2b6f4._0x4864e5)][_0x22b36f(0x14b)]=_0x22b36f(0x172),_0xd23e57[_0x22b36f(_0xf2b6f4._0x4864e5)]['left']='0px',_0xd23e57[_0x22b36f(0x13f)]['width']=this['_map'][_0x22b36f(0x152)]['canvas'][_0x22b36f(_0xf2b6f4._0x5228fc)]+'px',_0xd23e57[_0x22b36f(0x13f)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0xd23e57['style']['pointerEvents']=this['_pointerEvents']?_0x22b36f(_0xf2b6f4._0x1702b2):'none',_0xd23e57['style']['zIndex']=this[_0x22b36f(0x158)]['zIndex']??0x9,_0xd23e57;}['resize'](){const _0x1766c6={_0x413f16:0x156,_0x5b5bda:0x176},_0x474c6b=_0x590474;if(!this['_echartsInstance'])return;this[_0x474c6b(_0x1766c6._0x413f16)]['style']['width']=this['_map'][_0x474c6b(0x152)]['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map'][_0x474c6b(0x152)][_0x474c6b(_0x1766c6._0x5b5bda)][_0x474c6b(0x154)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x33f69c,_0x113f79,_0x4c64e2){const _0x40797d=_0x590474;this['_echartsInstance']&&(_0x33f69c['mars3dMap']=_0x33f69c['mars3dMap']||{},this[_0x40797d(0x13c)]['setOption'](_0x33f69c,_0x113f79,_0x4c64e2));}['getRectangle'](_0xedf5ca){const _0x2f4642={_0x3882e0:0x158,_0x1e95fa:0x163},_0x14263e=_0x590474;let _0x22be16,_0x5f3949,_0x2a510a,_0x591bfc;function _0xfd4b7c(_0x4d0610){if(!Array['isArray'](_0x4d0610))return;const _0x260438=_0x4d0610[0x0]||0x0,_0x2e1af4=_0x4d0610[0x1]||0x0;_0x260438!==0x0&&_0x2e1af4!==0x0&&(_0x22be16===undefined?(_0x22be16=_0x260438,_0x5f3949=_0x260438,_0x2a510a=_0x2e1af4,_0x591bfc=_0x2e1af4):(_0x22be16=Math['min'](_0x22be16,_0x260438),_0x5f3949=Math['max'](_0x5f3949,_0x260438),_0x2a510a=Math['min'](_0x2a510a,_0x2e1af4),_0x591bfc=Math['max'](_0x591bfc,_0x2e1af4)));}const _0x37499c=this[_0x14263e(_0x2f4642._0x3882e0)]['series'];_0x37499c&&_0x37499c['forEach'](_0x531c39=>{_0x531c39['data']&&_0x531c39['data']['forEach'](_0x59f523=>{if(_0x59f523['value'])_0xfd4b7c(_0x59f523['value']);else _0x59f523['coords']&&_0x59f523['coords']['forEach'](_0x30b892=>{_0xfd4b7c(_0x30b892);});});});if(_0x22be16===0x0&&_0x2a510a===0x0&&_0x5f3949===0x0&&_0x591bfc===0x0)return null;return _0xedf5ca!==null&&_0xedf5ca!==void 0x0&&_0xedf5ca['isFormat']?{'xmin':_0x22be16,'xmax':_0x5f3949,'ymin':_0x2a510a,'ymax':_0x591bfc}:Cesium[_0x14263e(_0x2f4642._0x1e95fa)]['fromDegrees'](_0x22be16,_0x2a510a,_0x5f3949,_0x591bfc);}['on'](_0x3dc1b4,_0x56b584,_0x468558){const _0x532662=_0x590474;return this[_0x532662(0x13c)]['on'](_0x3dc1b4,_0x56b584,_0x468558||this),this;}[_0x590474(0x177)](_0x3053bc,_0x53b339,_0x87cce3,_0xff6dce){return this['_echartsInstance']['on'](_0x3053bc,_0x53b339,_0x87cce3,_0xff6dce||this),this;}[_0x590474(0x15b)](_0xf5baa4,_0x359276,_0x2616b1){const _0x4231c9=_0x590474;return this['_echartsInstance'][_0x4231c9(0x15b)](_0xf5baa4,_0x359276,_0x2616b1||this),this;}}mars3d__namespace[_0x590474(0x173)]['register'](_0x590474(0x157),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x590474(0x148)](echarts)['forEach'](function(_0x26e55e){const _0x245ffa={_0x142b7a:0x16f},_0x199add=_0x590474;if(_0x26e55e!=='default'&&!exports[_0x199add(_0x245ffa._0x142b7a)](_0x26e55e))Object['defineProperty'](exports,_0x26e55e,{'enumerable':!![],'get':function(){return echarts[_0x26e55e];}});}),Object[_0x590474(0x15f)](exports,_0x590474(0x170),{'value':!![]}); | ||
'use strict';const _0x2ee574=_0x1611;function _0x40b9(){const _0xa6f993=['lat','8NzNtkG','SceneMode','registerAction','DomUtil','SceneTransforms','_echartsContainer','width','scene','setOption','661633pfyZlF','echarts','default','_map','219wrhHpd','_pointerEvents','moveHandler','height','matrix','Cesium','_mars3d_scene','echartsDepthTest','register','__mapOffset','_echartsInstance','setMapOffset','scheduler','BaseLayer','coordinateSystem','off','clientWidth','globe','8116seUnaP','_api','clientHeight','963840TLEkEt','setEchartsOption','get','create','LayerUtil','position','graphic','_mapOffset','dimensions','_addedHook','extendComponentView','getOwnPropertyDescriptor','registerCoordinateSystem','5543056hQmBLE','hidden','44361042jSfhZn','8626160MpRjJQ','Rectangle','2129289aAfalk','18gfAQIs','updateLayout','style','12zhzwmW','echartsFixedHeight','请引入\x20echarts\x20库\x20','forEach','fromDegrees'];_0x40b9=function(){return _0xa6f993;};return _0x40b9();}(function(_0x49b7d8,_0x4a1ba0){const _0x524118={_0x5738ba:0x178,_0x4f6e29:0x14f,_0x21e9a8:0x159,_0x4fce5a:0x162,_0x21062c:0x14c},_0x49d748=_0x1611,_0x5e5865=_0x49b7d8();while(!![]){try{const _0x3d863b=parseInt(_0x49d748(0x166))/0x1*(-parseInt(_0x49d748(_0x524118._0x5738ba))/0x2)+-parseInt(_0x49d748(_0x524118._0x4f6e29))/0x3*(parseInt(_0x49d748(_0x524118._0x21e9a8))/0x4)+-parseInt(_0x49d748(0x17b))/0x5*(parseInt(_0x49d748(0x153))/0x6)+-parseInt(_0x49d748(_0x524118._0x4fce5a))/0x7+parseInt(_0x49d748(0x14a))/0x8*(-parseInt(_0x49d748(0x150))/0x9)+parseInt(_0x49d748(0x14d))/0xa+parseInt(_0x49d748(_0x524118._0x21062c))/0xb;if(_0x3d863b===_0x4a1ba0)break;else _0x5e5865['push'](_0x5e5865['shift']());}catch(_0x1117c4){_0x5e5865['push'](_0x5e5865['shift']());}}}(_0x40b9,0xb01ef));function _interopNamespace(_0x51780b){const _0x2ff48b={_0x59a0a6:0x148,_0x5b8531:0x17d},_0x412858=_0x1611;if(_0x51780b&&_0x51780b['__esModule'])return _0x51780b;var _0x4976ba=Object['create'](null);return _0x51780b&&Object['keys'](_0x51780b)[_0x412858(0x156)](function(_0x1ca8f4){const _0x4e719e=_0x412858;if(_0x1ca8f4!=='default'){var _0x19e476=Object[_0x4e719e(_0x2ff48b._0x59a0a6)](_0x51780b,_0x1ca8f4);Object['defineProperty'](_0x4976ba,_0x1ca8f4,_0x19e476[_0x4e719e(_0x2ff48b._0x5b8531)]?_0x19e476:{'enumerable':!![],'get':function(){return _0x51780b[_0x1ca8f4];}});}}),_0x4976ba['default']=_0x51780b,_0x4976ba;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x2ee574(0x16b)];class CompositeCoordinateSystem{constructor(_0xb2b238,_0x1cc5b){const _0x4b83fb={_0x192321:0x145},_0xa76e4b=_0x2ee574;this['_mars3d_scene']=_0xb2b238,this[_0xa76e4b(_0x4b83fb._0x192321)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0xa76e4b(0x179)]=_0x1cc5b;}['setMapOffset'](_0x28b233){const _0x59d66f=_0x2ee574;this[_0x59d66f(0x182)]=_0x28b233;}['getBMap'](){const _0x2273e6=_0x2ee574;return this[_0x2273e6(0x16c)];}['dataToPoint'](_0x46e5b4){const _0x5d63b2={_0x43b451:0x15d,_0x741771:0x16d,_0x19659a:0x177},_0x2474f1=_0x2ee574,_0x206105=this[_0x2474f1(0x16c)],_0x16116e=[NaN,NaN];let _0x2ffba1=_0x206105['echartsFixedHeight'];_0x206105['echartsAutoHeight']&&(_0x2ffba1=_0x206105['globe']['getHeight'](Cesium$1['Cartographic'][_0x2474f1(0x157)](_0x46e5b4[0x0],_0x46e5b4[0x1])));const _0x2ffe94=Cesium$1['Cartesian3']['fromDegrees'](_0x46e5b4[0x0],_0x46e5b4[0x1],_0x2ffba1);if(!_0x2ffe94)return _0x16116e;const _0x411027=Cesium$1[_0x2474f1(_0x5d63b2._0x43b451)]['wgs84ToWindowCoordinates'](_0x206105,_0x2ffe94);if(!_0x411027)return _0x16116e;if(_0x206105[_0x2474f1(_0x5d63b2._0x741771)]&&_0x206105['mode']===Cesium$1[_0x2474f1(0x15a)]['SCENE3D']){const _0x54671a=new Cesium$1['EllipsoidalOccluder'](_0x206105[_0x2474f1(_0x5d63b2._0x19659a)]['ellipsoid'],_0x206105['camera']['positionWC']),_0x5d172e=_0x54671a['isPointVisible'](_0x2ffe94);if(!_0x5d172e)return _0x16116e;}return[_0x411027['x']-this[_0x2474f1(0x182)][0x0],_0x411027['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x369711={_0x4b3336:0x181},_0x2366e8=_0x2ee574,_0x40caee=this['_api'];return new echarts__namespace[(_0x2366e8(_0x369711._0x4b3336))]['BoundingRect'](0x0,0x0,_0x40caee['getWidth'](),_0x40caee['getHeight']());}['getRoamTransform'](){const _0x160448={_0x1e24f3:0x16a},_0xbc7a2c=_0x2ee574;return echarts__namespace[_0xbc7a2c(_0x160448._0x1e24f3)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng',_0x2ee574(0x158)],CompositeCoordinateSystem[_0x2ee574(0x17e)]=function(_0x29cc3b,_0x41efcb){const _0x30cf5d={_0x342fb0:0x17d,_0x39a4d9:0x174},_0x25f867={_0x477d70:0x171},_0x36750a=_0x2ee574;let _0x4c66e4;const _0x313c53=_0x29cc3b[_0x36750a(0x172)]['ecInstance']['_mars3d_scene'];_0x29cc3b['eachComponent']('mars3dMap',function(_0x2f62cd){const _0x2751d6=_0x36750a,_0x1ad739=_0x41efcb['getZr']()['painter'];if(!_0x1ad739)return;!_0x4c66e4&&(_0x4c66e4=new CompositeCoordinateSystem(_0x313c53,_0x41efcb)),_0x2f62cd['coordinateSystem']=_0x4c66e4,_0x4c66e4[_0x2751d6(_0x25f867._0x477d70)](_0x2f62cd[_0x2751d6(0x16f)]||[0x0,0x0]);}),_0x29cc3b['eachSeries'](function(_0x536378){const _0x4da3ca=_0x36750a;_0x536378[_0x4da3ca(_0x30cf5d._0x342fb0)](_0x4da3ca(_0x30cf5d._0x39a4d9))==='mars3dMap'&&(!_0x4c66e4&&(_0x4c66e4=new CompositeCoordinateSystem(_0x313c53,_0x41efcb)),_0x536378['coordinateSystem']=_0x4c66e4);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x2ee574(0x149)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x2ee574(0x15b)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x2ee574(0x151)},function(_0x43068f,_0x1592ba){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x2ee574(0x147)]({'type':'mars3dMap','init':function(_0x303b6e,_0x5a19f9){const _0x18d503=_0x2ee574;this['api']=_0x5a19f9,this['scene']=_0x303b6e['scheduler']['ecInstance']['_mars3d_scene'],this[_0x18d503(0x160)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5257ed,_0x113ca){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x5b031b,_0x3a8f38,_0x10dae3){},'dispose':function(_0x21e151){const _0x29f8a8={_0x53ec28:0x168},_0x2f4fd7=_0x2ee574;this['scene']['postRender']['removeEventListener'](this[_0x2f4fd7(_0x29f8a8._0x53ec28)],this);}});else throw new Error(_0x2ee574(0x155));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x2ee574(0x173)];class EchartsLayer extends BaseLayer{constructor(_0x1c9eab={}){super(_0x1c9eab),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x2bbbbe=_0x2ee574;return this[_0x2bbbbe(0x167)];}set['pointerEvents'](_0x1a0cce){const _0x2f3759={_0xc84bff:0x15e,_0x25f99f:0x152},_0x101b1f=_0x2ee574;this['_pointerEvents']=_0x1a0cce,this['_echartsContainer']&&(_0x1a0cce?this[_0x101b1f(_0x2f3759._0xc84bff)]['style']['pointerEvents']='all':this['_echartsContainer'][_0x101b1f(_0x2f3759._0x25f99f)]['pointerEvents']='none');}['_setOptionsHook'](_0x55a000,_0x575629){this['setEchartsOption'](_0x55a000);}['_showHook'](_0xc82071){const _0x28ce3f={_0x3aba62:0x152,_0x351c80:0x14b},_0xaf5d76=_0x2ee574;_0xc82071?this[_0xaf5d76(0x15e)][_0xaf5d76(_0x28ce3f._0x3aba62)]['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0xaf5d76(_0x28ce3f._0x351c80);}['_mountedHook'](){const _0x4a6e3f={_0x521298:0x165,_0x484618:0x154},_0x1fcc38=_0x2ee574;this[_0x1fcc38(_0x4a6e3f._0x521298)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x1fcc38(0x165)][_0x1fcc38(0x160)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene'][_0x1fcc38(_0x4a6e3f._0x484618)]=this['options']['fixedHeight']??0x0;}[_0x2ee574(0x146)](){const _0x3f07bc={_0xaee3c8:0x15e,_0x4b11cf:0x165},_0x229e56=_0x2ee574;this[_0x229e56(0x15e)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x229e56(_0x3f07bc._0xaee3c8)]),this['_echartsInstance'][_0x229e56(0x16c)]=this[_0x229e56(_0x3f07bc._0x4b11cf)][_0x229e56(0x160)],this[_0x229e56(0x17c)](this['options']);}['_removedHook'](){const _0x500c31=_0x2ee574;this[_0x500c31(0x170)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x500c31(0x165)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x20a21d={_0x3fa1d4:0x165,_0x34ff5d:0x152,_0x625953:0x176},_0x1cd6f0=_0x2ee574,_0x154131=mars3d__namespace[_0x1cd6f0(0x15c)][_0x1cd6f0(0x17e)]('div','mars3d-echarts',this[_0x1cd6f0(_0x20a21d._0x3fa1d4)]['container']);return _0x154131['id']=this['id'],_0x154131['style'][_0x1cd6f0(0x180)]='absolute',_0x154131['style']['top']='0px',_0x154131['style']['left']='0px',_0x154131[_0x1cd6f0(_0x20a21d._0x34ff5d)]['width']=this[_0x1cd6f0(_0x20a21d._0x3fa1d4)]['scene']['canvas'][_0x1cd6f0(_0x20a21d._0x625953)]+'px',_0x154131['style']['height']=this['_map'][_0x1cd6f0(0x160)]['canvas'][_0x1cd6f0(0x17a)]+'px',_0x154131['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x154131['style']['zIndex']=this['options']['zIndex']??0x9,_0x154131;}['resize'](){const _0x561915={_0x122818:0x170,_0x1fc26c:0x15f,_0x4a0470:0x165,_0x337505:0x169,_0xd4357d:0x160},_0x3c89bb=_0x2ee574;if(!this[_0x3c89bb(_0x561915._0x122818)])return;this['_echartsContainer'][_0x3c89bb(0x152)][_0x3c89bb(_0x561915._0x1fc26c)]=this[_0x3c89bb(_0x561915._0x4a0470)]['scene']['canvas']['clientWidth']+'px',this[_0x3c89bb(0x15e)]['style'][_0x3c89bb(_0x561915._0x337505)]=this[_0x3c89bb(0x165)][_0x3c89bb(_0x561915._0xd4357d)]['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x4f8e7c,_0x1c8522,_0x207592){const _0x339bc0={_0x36cf61:0x170},_0x5da2a0=_0x2ee574;this[_0x5da2a0(_0x339bc0._0x36cf61)]&&(_0x4f8e7c['mars3dMap']=_0x4f8e7c['mars3dMap']||{},this[_0x5da2a0(0x170)][_0x5da2a0(0x161)](_0x4f8e7c,_0x1c8522,_0x207592));}['getRectangle'](_0x492935){const _0x36cfc2={_0x51867b:0x14e},_0x1596f2=_0x2ee574;let _0x129d7f,_0x16520b,_0x264159,_0x143375;function _0x263512(_0x3cde60){if(!Array['isArray'](_0x3cde60))return;const _0x4fdaec=_0x3cde60[0x0]||0x0,_0x251d9f=_0x3cde60[0x1]||0x0;_0x4fdaec!==0x0&&_0x251d9f!==0x0&&(_0x129d7f===undefined?(_0x129d7f=_0x4fdaec,_0x16520b=_0x4fdaec,_0x264159=_0x251d9f,_0x143375=_0x251d9f):(_0x129d7f=Math['min'](_0x129d7f,_0x4fdaec),_0x16520b=Math['max'](_0x16520b,_0x4fdaec),_0x264159=Math['min'](_0x264159,_0x251d9f),_0x143375=Math['max'](_0x143375,_0x251d9f)));}const _0x419e91=this['options']['series'];_0x419e91&&_0x419e91['forEach'](_0x2aa6da=>{_0x2aa6da['data']&&_0x2aa6da['data']['forEach'](_0x48b13e=>{if(_0x48b13e['value'])_0x263512(_0x48b13e['value']);else _0x48b13e['coords']&&_0x48b13e['coords']['forEach'](_0xd18aa5=>{_0x263512(_0xd18aa5);});});});if(_0x129d7f===0x0&&_0x264159===0x0&&_0x16520b===0x0&&_0x143375===0x0)return null;return _0x492935!==null&&_0x492935!==void 0x0&&_0x492935['isFormat']?{'xmin':_0x129d7f,'xmax':_0x16520b,'ymin':_0x264159,'ymax':_0x143375}:Cesium[_0x1596f2(_0x36cfc2._0x51867b)]['fromDegrees'](_0x129d7f,_0x264159,_0x16520b,_0x143375);}['on'](_0x9aaa81,_0x59db68,_0x42efa7){return this['_echartsInstance']['on'](_0x9aaa81,_0x59db68,_0x42efa7||this),this;}['onByQuery'](_0x25756a,_0x17f885,_0x18d696,_0x2eebfc){return this['_echartsInstance']['on'](_0x25756a,_0x17f885,_0x18d696,_0x2eebfc||this),this;}['off'](_0x59663f,_0x3359d9,_0x189579){const _0x50b59a={_0x73063c:0x175},_0x3d8a5a=_0x2ee574;return this['_echartsInstance'][_0x3d8a5a(_0x50b59a._0x73063c)](_0x59663f,_0x3359d9,_0x189579||this),this;}}function _0x1611(_0x547d2b,_0x26b71a){const _0x40b92f=_0x40b9();return _0x1611=function(_0x1611b6,_0xd404a9){_0x1611b6=_0x1611b6-0x145;let _0x363e67=_0x40b92f[_0x1611b6];return _0x363e67;},_0x1611(_0x547d2b,_0x26b71a);}mars3d__namespace[_0x2ee574(0x17f)][_0x2ee574(0x16e)](_0x2ee574(0x163),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x632f9d){const _0x21d152={_0x5897ac:0x164},_0x575b07=_0x2ee574;if(_0x632f9d!==_0x575b07(_0x21d152._0x5897ac)&&!exports['hasOwnProperty'](_0x632f9d))Object['defineProperty'](exports,_0x632f9d,{'enumerable':!![],'get':function(){return echarts[_0x632f9d];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.18", | ||
"version": "3.6.0", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.18" | ||
"mars3d": "~3.6.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
16963