mars3d-echarts
Advanced tools
Comparing version 3.5.15 to 3.5.16
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.15 | ||
* 编译日期:2023-07-10 19:14:40 | ||
* 版本信息:v3.5.16 | ||
* 编译日期:2023-07-17 18:16:42 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x41bde5=_0x1133;(function(_0xedb972,_0x2ec362){const _0x3c4c30={_0x2e9ed8:0x1e2,_0x59b6bc:0x1f0,_0x97aa3d:0x20a},_0x8dadcd=_0x1133,_0x453e3f=_0xedb972();while(!![]){try{const _0x4b422a=-parseInt(_0x8dadcd(_0x3c4c30._0x2e9ed8))/0x1+parseInt(_0x8dadcd(_0x3c4c30._0x59b6bc))/0x2+-parseInt(_0x8dadcd(0x1ed))/0x3+-parseInt(_0x8dadcd(0x1dc))/0x4*(parseInt(_0x8dadcd(0x1e8))/0x5)+parseInt(_0x8dadcd(0x203))/0x6+parseInt(_0x8dadcd(_0x3c4c30._0x97aa3d))/0x7*(parseInt(_0x8dadcd(0x1f4))/0x8)+parseInt(_0x8dadcd(0x20b))/0x9*(parseInt(_0x8dadcd(0x1f1))/0xa);if(_0x4b422a===_0x2ec362)break;else _0x453e3f['push'](_0x453e3f['shift']());}catch(_0x217ebd){_0x453e3f['push'](_0x453e3f['shift']());}}}(_0xe81e,0x3dfa3));function _interopNamespace(_0xcb4090){const _0x41c87d={_0x245e66:0x1e4},_0x4b691d=_0x1133;if(_0xcb4090&&_0xcb4090[_0x4b691d(_0x41c87d._0x245e66)])return _0xcb4090;var _0x3bf8a3=Object['create'](null);return _0xcb4090&&Object['keys'](_0xcb4090)['forEach'](function(_0x30d0f7){if(_0x30d0f7!=='default'){var _0x18fa69=Object['getOwnPropertyDescriptor'](_0xcb4090,_0x30d0f7);Object['defineProperty'](_0x3bf8a3,_0x30d0f7,_0x18fa69['get']?_0x18fa69:{'enumerable':!![],'get':function(){return _0xcb4090[_0x30d0f7];}});}}),_0x3bf8a3['default']=_0xcb4090,_0x3bf8a3;}function _0x1133(_0x78e39b,_0x53532b){const _0xe81e46=_0xe81e();return _0x1133=function(_0x1133f3,_0x59b7de){_0x1133f3=_0x1133f3-0x1c8;let _0x5bda1b=_0xe81e46[_0x1133f3];return _0x5bda1b;},_0x1133(_0x78e39b,_0x53532b);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x5b8c8e,_0x5f0b3e){this['_mars3d_scene']=_0x5b8c8e,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x5f0b3e;}[_0x41bde5(0x1f3)](_0x278ab4){this['_mapOffset']=_0x278ab4;}['getBMap'](){const _0x32185f=_0x41bde5;return this[_0x32185f(0x204)];}[_0x41bde5(0x1f8)](_0x508287){const _0x4a2de4={_0x3556c8:0x1e0,_0x34790d:0x1d8,_0x7aaff2:0x1d2,_0x30fba7:0x1ca},_0x249ae4=_0x41bde5,_0x42c83d=this['_mars3d_scene'],_0x20284e=[NaN,NaN];let _0x551c8c=_0x42c83d['echartsFixedHeight'];_0x42c83d['echartsAutoHeight']&&(_0x551c8c=_0x42c83d[_0x249ae4(0x1d1)][_0x249ae4(_0x4a2de4._0x3556c8)](Cesium$1['Cartographic']['fromDegrees'](_0x508287[0x0],_0x508287[0x1])));const _0x4df845=Cesium$1[_0x249ae4(0x1ee)][_0x249ae4(0x1f9)](_0x508287[0x0],_0x508287[0x1],_0x551c8c);if(!_0x4df845)return _0x20284e;const _0x56944c=Cesium$1[_0x249ae4(0x1da)]['wgs84ToWindowCoordinates'](_0x42c83d,_0x4df845);if(!_0x56944c)return _0x20284e;if(_0x42c83d[_0x249ae4(_0x4a2de4._0x34790d)]&&_0x42c83d['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x1d0af9=new Cesium$1[(_0x249ae4(0x208))](_0x42c83d['globe']['ellipsoid'],_0x42c83d['camera']['positionWC']),_0x3553eb=_0x1d0af9[_0x249ae4(_0x4a2de4._0x7aaff2)](_0x4df845);if(!_0x3553eb)return _0x20284e;}return[_0x56944c['x']-this[_0x249ae4(0x1ca)][0x0],_0x56944c['y']-this[_0x249ae4(_0x4a2de4._0x30fba7)][0x1]];}['getViewRect'](){const _0x1ef78d={_0x121228:0x1de,_0x1ed869:0x1d3,_0x277e59:0x1ff,_0x3f6310:0x1e0},_0x37980f=_0x41bde5,_0x14bd38=this[_0x37980f(_0x1ef78d._0x121228)];return new echarts__namespace['graphic'][(_0x37980f(_0x1ef78d._0x1ed869))](0x0,0x0,_0x14bd38[_0x37980f(_0x1ef78d._0x277e59)](),_0x14bd38[_0x37980f(_0x1ef78d._0x3f6310)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x39ef75,_0xc19f98){const _0xc23e18={_0x57a7af:0x1fc},_0x2ca761={_0x13bdbe:0x207,_0x4d6f8b:0x1fc},_0x24126d={_0x4b7feb:0x1df},_0xffaca4=_0x41bde5;let _0x2ec69e;const _0x1e74ad=_0x39ef75['scheduler']['ecInstance']['_mars3d_scene'];_0x39ef75['eachComponent'](_0xffaca4(_0xc23e18._0x57a7af),function(_0xa691a6){const _0x1c4b50=_0xffaca4,_0x40ba50=_0xc19f98[_0x1c4b50(_0x24126d._0x4b7feb)]()['painter'];if(!_0x40ba50)return;!_0x2ec69e&&(_0x2ec69e=new CompositeCoordinateSystem(_0x1e74ad,_0xc19f98)),_0xa691a6['coordinateSystem']=_0x2ec69e,_0x2ec69e[_0x1c4b50(0x1f3)](_0xa691a6['__mapOffset']||[0x0,0x0]);}),_0x39ef75['eachSeries'](function(_0x39d69e){const _0x1d7448=_0xffaca4;_0x39d69e[_0x1d7448(_0x2ca761._0x13bdbe)]('coordinateSystem')===_0x1d7448(_0x2ca761._0x4d6f8b)&&(!_0x2ec69e&&(_0x2ec69e=new CompositeCoordinateSystem(_0x1e74ad,_0xc19f98)),_0x39d69e['coordinateSystem']=_0x2ec69e);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x41bde5(0x1f2)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x41bde5(0x1c9),'update':'updateLayout'},function(_0x1ef6a9,_0x310018){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1b4ff3,_0x5768cf){const _0x88f27a={_0x531162:0x206,_0x28821d:0x1fe},_0x1bf64f=_0x41bde5;this['api']=_0x5768cf,this[_0x1bf64f(0x1e9)]=_0x1b4ff3['scheduler'][_0x1bf64f(_0x88f27a._0x531162)]['_mars3d_scene'],this['scene']['postRender'][_0x1bf64f(_0x88f27a._0x28821d)](this['moveHandler'],this);},'moveHandler':function(_0x2029a4,_0x4bc4b6){const _0x2a1981=_0x41bde5;this[_0x2a1981(0x1ef)][_0x2a1981(0x1e5)]({'type':'mars3dMapRoam'});},'render':function(_0x3fdf15,_0x53f270,_0x4f0c74){},'dispose':function(_0xf7f37f){const _0x315d4c=_0x41bde5;this['scene']['postRender']['removeEventListener'](this[_0x315d4c(0x200)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0xe81e(){const _0x1a3a0a=['BoundingRect','clientWidth','echartsAutoHeight','clientHeight','top','echartsDepthTest','options','SceneTransforms','layer','8380PePTKr','_echartsInstance','_api','getZr','getHeight','0px','52688KGDVlW','pointerEvents','__esModule','dispatchAction','canvas','data','910sKiARn','scene','width','div','default','99330pSanxQ','Cartesian3','api','542032PGBuqc','250yCPtPA','registerCoordinateSystem','setMapOffset','264iuxOOZ','height','absolute','none','dataToPoint','fromDegrees','BaseLayer','style','mars3dMap','_echartsContainer','addEventListener','getWidth','moveHandler','depthTest','_pointerEvents','261618SfzsMX','_mars3d_scene','create','ecInstance','get','EllipsoidalOccluder','_removedHook','62587sfhulj','40059rIIbAI','removeChild','mars3dMapRoam','_mapOffset','fixedHeight','isArray','_map','forEach','defineProperty','resize','globe','isPointVisible'];_0xe81e=function(){return _0x1a3a0a;};return _0xe81e();}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x41bde5(0x1fa)];class EchartsLayer extends BaseLayer{constructor(_0x278fef={}){const _0x129a30=_0x41bde5;super(_0x278fef),this[_0x129a30(0x202)]=this['options'][_0x129a30(0x1e3)];}get[_0x41bde5(0x1db)](){const _0xd3bbb4=_0x41bde5;return this[_0xd3bbb4(0x1dd)];}get['pointerEvents'](){const _0x1b7e7b=_0x41bde5;return this[_0x1b7e7b(0x202)];}set[_0x41bde5(0x1e3)](_0x45054f){const _0x58532b=_0x41bde5;this['_pointerEvents']=_0x45054f,this['_echartsContainer']&&(_0x45054f?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']=_0x58532b(0x1f7));}['_setOptionsHook'](_0x50797c,_0x5ee509){this['setEchartsOption'](_0x50797c);}['_showHook'](_0x276650){const _0x48f0cf={_0xcd9b58:0x1fd},_0x1f136e=_0x41bde5;_0x276650?this[_0x1f136e(0x1fd)]['style']['visibility']='visible':this[_0x1f136e(_0x48f0cf._0xcd9b58)][_0x1f136e(0x1fb)]['visibility']='hidden';}['_mountedHook'](){const _0x45ab24={_0x3c79bf:0x201,_0x544cd9:0x1cd,_0x297c22:0x1d5,_0xb99366:0x1d9},_0x26647e=_0x41bde5;this['_map'][_0x26647e(0x1e9)]['echartsDepthTest']=this['options'][_0x26647e(_0x45ab24._0x3c79bf)]??!![],this[_0x26647e(_0x45ab24._0x544cd9)]['scene'][_0x26647e(_0x45ab24._0x297c22)]=this[_0x26647e(0x1d9)]['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x26647e(_0x45ab24._0xb99366)][_0x26647e(0x1cb)]??0x0;}['_addedHook'](){const _0x504b34={_0x4ac5cd:0x1e9},_0xb3f6a8=_0x41bde5;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0xb3f6a8(0x1cd)][_0xb3f6a8(_0x504b34._0x4ac5cd)],this['setEchartsOption'](this['options']);}[_0x41bde5(0x209)](){const _0x51894c={_0x5558fe:0x1dd,_0x4f2c0b:0x1c8},_0xbe66d=_0x41bde5;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this[_0xbe66d(_0x51894c._0x5558fe)]),this[_0xbe66d(0x1fd)]&&(this[_0xbe66d(0x1cd)]['container'][_0xbe66d(_0x51894c._0x4f2c0b)](this['_echartsContainer']),delete this[_0xbe66d(0x1fd)]);}['_createChartOverlay'](){const _0x51a71d={_0x3a821f:0x1eb,_0x4f712b:0x1fb,_0x3e854c:0x1e1,_0x5cc557:0x1ea},_0x20cb96=_0x41bde5,_0x43c354=mars3d__namespace['DomUtil'][_0x20cb96(0x205)](_0x20cb96(_0x51a71d._0x3a821f),'mars3d-echarts',this['_map']['container']);return _0x43c354['id']=this['id'],_0x43c354['style']['position']=_0x20cb96(0x1f6),_0x43c354[_0x20cb96(0x1fb)][_0x20cb96(0x1d7)]='0px',_0x43c354[_0x20cb96(_0x51a71d._0x4f712b)]['left']=_0x20cb96(_0x51a71d._0x3e854c),_0x43c354['style'][_0x20cb96(_0x51a71d._0x5cc557)]=this['_map']['scene'][_0x20cb96(0x1e6)]['clientWidth']+'px',_0x43c354['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x43c354['style']['pointerEvents']=this[_0x20cb96(0x202)]?'all':'none',_0x43c354['style']['zIndex']=this['options']['zIndex']??0x9,_0x43c354;}['resize'](){const _0x36ce5a={_0x1d4266:0x1d4,_0x338e0c:0x1f5,_0x2518f5:0x1d6,_0x4c99bf:0x1dd,_0x3f125e:0x1d0},_0x5cb84c=_0x41bde5;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene']['canvas'][_0x5cb84c(_0x36ce5a._0x1d4266)]+'px',this['_echartsContainer']['style'][_0x5cb84c(_0x36ce5a._0x338e0c)]=this[_0x5cb84c(0x1cd)]['scene']['canvas'][_0x5cb84c(_0x36ce5a._0x2518f5)]+'px',this[_0x5cb84c(_0x36ce5a._0x4c99bf)][_0x5cb84c(_0x36ce5a._0x3f125e)]();}['setEchartsOption'](_0x24af8a,_0x205cdc,_0x4e426a){const _0x969bfa={_0x5eb5b4:0x1fc},_0x424f26=_0x41bde5;this['_echartsInstance']&&(_0x24af8a[_0x424f26(_0x969bfa._0x5eb5b4)]=_0x24af8a[_0x424f26(0x1fc)]||{},this['_echartsInstance']['setOption'](_0x24af8a,_0x205cdc,_0x4e426a));}['getRectangle'](_0x4f855d){const _0x3e8a43={_0x5406a5:0x1d9},_0xe6f83a={_0x1fa676:0x1cc},_0x4d1cbc=_0x41bde5;let _0x4df990,_0x1e150a,_0x385fef,_0x2931d9;function _0x34fd86(_0x3c5651){const _0x1abb9a=_0x1133;if(!Array[_0x1abb9a(_0xe6f83a._0x1fa676)](_0x3c5651))return;const _0x59b286=_0x3c5651[0x0]||0x0,_0x215c1f=_0x3c5651[0x1]||0x0;_0x59b286!==0x0&&_0x215c1f!==0x0&&(_0x4df990===undefined?(_0x4df990=_0x59b286,_0x1e150a=_0x59b286,_0x385fef=_0x215c1f,_0x2931d9=_0x215c1f):(_0x4df990=Math['min'](_0x4df990,_0x59b286),_0x1e150a=Math['max'](_0x1e150a,_0x59b286),_0x385fef=Math['min'](_0x385fef,_0x215c1f),_0x2931d9=Math['max'](_0x2931d9,_0x215c1f)));}const _0x39ee1e=this[_0x4d1cbc(_0x3e8a43._0x5406a5)]['series'];_0x39ee1e&&_0x39ee1e['forEach'](_0x175d9f=>{const _0x43b4fd=_0x4d1cbc;_0x175d9f['data']&&_0x175d9f[_0x43b4fd(0x1e7)][_0x43b4fd(0x1ce)](_0x2ef7e5=>{if(_0x2ef7e5['value'])_0x34fd86(_0x2ef7e5['value']);else _0x2ef7e5['coords']&&_0x2ef7e5['coords']['forEach'](_0x1ebce4=>{_0x34fd86(_0x1ebce4);});});});if(_0x4df990===0x0&&_0x385fef===0x0&&_0x1e150a===0x0&&_0x2931d9===0x0)return null;return _0x4f855d!==null&&_0x4f855d!==void 0x0&&_0x4f855d['isFormat']?{'xmin':_0x4df990,'xmax':_0x1e150a,'ymin':_0x385fef,'ymax':_0x2931d9}:Cesium['Rectangle']['fromDegrees'](_0x4df990,_0x385fef,_0x1e150a,_0x2931d9);}['on'](_0x14d213,_0x12bbd8,_0x194085){const _0x3b84b6={_0x285ce1:0x1dd},_0x2239ae=_0x41bde5;return this[_0x2239ae(_0x3b84b6._0x285ce1)]['on'](_0x14d213,_0x12bbd8,_0x194085||this),this;}['onByQuery'](_0x5001cb,_0x551a8e,_0x4426e1,_0x1dc5a6){const _0x520bbb={_0x5c39c3:0x1dd},_0x2be590=_0x41bde5;return this[_0x2be590(_0x520bbb._0x5c39c3)]['on'](_0x5001cb,_0x551a8e,_0x4426e1,_0x1dc5a6||this),this;}['off'](_0xbe5c75,_0xbe2cf6,_0x2c58d7){return this['_echartsInstance']['off'](_0xbe5c75,_0xbe2cf6,_0x2c58d7||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x41bde5(0x1db)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x41bde5(0x1ce)](function(_0x4975ef){const _0x101324=_0x41bde5;if(_0x4975ef!==_0x101324(0x1ec)&&!exports['hasOwnProperty'](_0x4975ef))Object['defineProperty'](exports,_0x4975ef,{'enumerable':!![],'get':function(){return echarts[_0x4975ef];}});}),Object[_0x41bde5(0x1cf)](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x4f2335=_0x1bb9;(function(_0x5efa0e,_0x900076){const _0x4d0de3={_0x363966:0x1e6,_0x1eaa9e:0x212,_0x21e39f:0x20c,_0x407c9e:0x201,_0x37ff5c:0x206,_0x375552:0x1e8,_0x3dee35:0x1fd,_0x3ad19c:0x225},_0x13882f=_0x1bb9,_0x5eb4d5=_0x5efa0e();while(!![]){try{const _0x504edd=parseInt(_0x13882f(_0x4d0de3._0x363966))/0x1*(-parseInt(_0x13882f(_0x4d0de3._0x1eaa9e))/0x2)+parseInt(_0x13882f(_0x4d0de3._0x21e39f))/0x3+-parseInt(_0x13882f(_0x4d0de3._0x407c9e))/0x4*(parseInt(_0x13882f(_0x4d0de3._0x37ff5c))/0x5)+parseInt(_0x13882f(0x1e1))/0x6*(-parseInt(_0x13882f(_0x4d0de3._0x375552))/0x7)+-parseInt(_0x13882f(_0x4d0de3._0x3dee35))/0x8*(-parseInt(_0x13882f(0x20d))/0x9)+-parseInt(_0x13882f(0x203))/0xa*(parseInt(_0x13882f(0x214))/0xb)+parseInt(_0x13882f(0x204))/0xc*(parseInt(_0x13882f(_0x4d0de3._0x3ad19c))/0xd);if(_0x504edd===_0x900076)break;else _0x5eb4d5['push'](_0x5eb4d5['shift']());}catch(_0x59ef69){_0x5eb4d5['push'](_0x5eb4d5['shift']());}}}(_0x47e4,0x2c8fe));function _interopNamespace(_0x3d116c){if(_0x3d116c&&_0x3d116c['__esModule'])return _0x3d116c;var _0x357023=Object['create'](null);return _0x3d116c&&Object['keys'](_0x3d116c)['forEach'](function(_0x4ca82d){if(_0x4ca82d!=='default'){var _0x3cd3aa=Object['getOwnPropertyDescriptor'](_0x3d116c,_0x4ca82d);Object['defineProperty'](_0x357023,_0x4ca82d,_0x3cd3aa['get']?_0x3cd3aa:{'enumerable':!![],'get':function(){return _0x3d116c[_0x4ca82d];}});}}),_0x357023['default']=_0x3d116c,_0x357023;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x1bb9(_0x239f20,_0x20773e){const _0x47e417=_0x47e4();return _0x1bb9=function(_0x1bb94d,_0x27b972){_0x1bb94d=_0x1bb94d-0x1e0;let _0x9ff464=_0x47e417[_0x1bb94d];return _0x9ff464;},_0x1bb9(_0x239f20,_0x20773e);}function _0x47e4(){const _0x468741=['lat','738jheqFS','postRender','_map','ellipsoid','echartsFixedHeight','443cwFCxa','_mars3d_scene','14119yCVNnc','api','dispatchAction','options','BaseLayer','mars3dMapRoam','matrix','extendComponentView','echarts','_echartsContainer','depthTest','getRectangle','painter','pointerEvents','style','mars3dMap','canvas','_echartsInstance','scene','zIndex','data','8XeFKGb','coords','wgs84ToWindowCoordinates','Cartographic','708KsOnTh','clientWidth','389520hxMLBH','12Kuenjy','EllipsoidalOccluder','4415btRvxv','all','create','setOption','__mapOffset','0px','1035579yCyEXc','3195837eWpHel','_createChartOverlay','ecInstance','BoundingRect','off','538GiFwQc','min','11AkWhIz','SCENE3D','forEach','globe','Cesium','echartsAutoHeight','EchartsLayer','hasOwnProperty','getWidth','_setOptionsHook','_pointerEvents','dimensions','mode','none','lng','eachComponent','getHeight','581633xvAdBs','positionWC'];_0x47e4=function(){return _0x468741;};return _0x47e4();}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2450b0,_0x491a9e){this['_mars3d_scene']=_0x2450b0,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x491a9e;}['setMapOffset'](_0x16c89d){this['_mapOffset']=_0x16c89d;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x319b85){const _0x5b0198={_0x88437:0x200,_0x170fdc:0x1ff,_0x45c860:0x215,_0x4495e6:0x205,_0x2c2175:0x226},_0x1ad052=_0x1bb9,_0x4974b2=this['_mars3d_scene'],_0x301c09=[NaN,NaN];let _0x3c4b1c=_0x4974b2['echartsFixedHeight'];_0x4974b2['echartsAutoHeight']&&(_0x3c4b1c=_0x4974b2[_0x1ad052(0x217)][_0x1ad052(0x224)](Cesium$1[_0x1ad052(_0x5b0198._0x88437)]['fromDegrees'](_0x319b85[0x0],_0x319b85[0x1])));const _0x58845f=Cesium$1['Cartesian3']['fromDegrees'](_0x319b85[0x0],_0x319b85[0x1],_0x3c4b1c);if(!_0x58845f)return _0x301c09;const _0x4842a3=Cesium$1['SceneTransforms'][_0x1ad052(_0x5b0198._0x170fdc)](_0x4974b2,_0x58845f);if(!_0x4842a3)return _0x301c09;if(_0x4974b2['echartsDepthTest']&&_0x4974b2[_0x1ad052(0x220)]===Cesium$1['SceneMode'][_0x1ad052(_0x5b0198._0x45c860)]){const _0x444d3d=new Cesium$1[(_0x1ad052(_0x5b0198._0x4495e6))](_0x4974b2['globe'][_0x1ad052(0x1e4)],_0x4974b2['camera'][_0x1ad052(_0x5b0198._0x2c2175)]),_0x18adbf=_0x444d3d['isPointVisible'](_0x58845f);if(!_0x18adbf)return _0x301c09;}return[_0x4842a3['x']-this['_mapOffset'][0x0],_0x4842a3['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x3b7abe=_0x1bb9,_0xc42c25=this['_api'];return new echarts__namespace['graphic'][(_0x3b7abe(0x210))](0x0,0x0,_0xc42c25[_0x3b7abe(0x21c)](),_0xc42c25['getHeight']());}['getRoamTransform'](){const _0x50b962=_0x1bb9;return echarts__namespace[_0x50b962(0x1ee)][_0x50b962(0x208)]();}}CompositeCoordinateSystem[_0x4f2335(0x21f)]=[_0x4f2335(0x222),_0x4f2335(0x1e0)],CompositeCoordinateSystem['create']=function(_0x2a4b0a,_0x96bb89){const _0x5a2995={_0x5b3bd9:0x223},_0x5d0758=_0x4f2335;let _0x189697;const _0x1acd3c=_0x2a4b0a['scheduler']['ecInstance']['_mars3d_scene'];_0x2a4b0a[_0x5d0758(_0x5a2995._0x5b3bd9)](_0x5d0758(0x1f7),function(_0x13deb8){const _0x56d362=_0x5d0758,_0x1ed626=_0x96bb89['getZr']()[_0x56d362(0x1f4)];if(!_0x1ed626)return;!_0x189697&&(_0x189697=new CompositeCoordinateSystem(_0x1acd3c,_0x96bb89)),_0x13deb8['coordinateSystem']=_0x189697,_0x189697['setMapOffset'](_0x13deb8[_0x56d362(0x20a)]||[0x0,0x0]);}),_0x2a4b0a['eachSeries'](function(_0x50f9fc){_0x50f9fc['get']('coordinateSystem')==='mars3dMap'&&(!_0x189697&&(_0x189697=new CompositeCoordinateSystem(_0x1acd3c,_0x96bb89)),_0x50f9fc['coordinateSystem']=_0x189697);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x4f2335(0x1ed),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x138174,_0xc19c7){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4f2335(0x1ef)]({'type':'mars3dMap','init':function(_0x1bfc24,_0x3fe60d){const _0x2249e8={_0x176e5a:0x20f,_0x40577e:0x1e7},_0x4a5fd8=_0x4f2335;this[_0x4a5fd8(0x1e9)]=_0x3fe60d,this['scene']=_0x1bfc24['scheduler'][_0x4a5fd8(_0x2249e8._0x176e5a)][_0x4a5fd8(_0x2249e8._0x40577e)],this[_0x4a5fd8(0x1fa)][_0x4a5fd8(0x1e2)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x4b6705,_0x163976){const _0x1f15a5={_0x59e8c8:0x1e9,_0x14e356:0x1ea},_0x2f6640=_0x4f2335;this[_0x2f6640(_0x1f15a5._0x59e8c8)][_0x2f6640(_0x1f15a5._0x14e356)]({'type':'mars3dMapRoam'});},'render':function(_0xd16e54,_0x4c5b3c,_0x22d9ce){},'dispose':function(_0x37ec75){const _0x14ffa1=_0x4f2335;this['scene'][_0x14ffa1(0x1e2)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x4f2335(0x218)],BaseLayer=mars3d__namespace['layer'][_0x4f2335(0x1ec)];class EchartsLayer extends BaseLayer{constructor(_0x677688={}){super(_0x677688),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){const _0x44fb26=_0x4f2335;return this[_0x44fb26(0x1f9)];}get[_0x4f2335(0x1f5)](){const _0xfac718={_0x5b3d25:0x21e},_0x3777c6=_0x4f2335;return this[_0x3777c6(_0xfac718._0x5b3d25)];}set[_0x4f2335(0x1f5)](_0x57491a){const _0xfab929={_0x2fd347:0x207},_0xf3671f=_0x4f2335;this['_pointerEvents']=_0x57491a,this['_echartsContainer']&&(_0x57491a?this['_echartsContainer']['style']['pointerEvents']=_0xf3671f(_0xfab929._0x2fd347):this[_0xf3671f(0x1f1)]['style']['pointerEvents']='none');}[_0x4f2335(0x21d)](_0x44044a,_0xc7f59b){this['setEchartsOption'](_0x44044a);}['_showHook'](_0x37c463){_0x37c463?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x25a9cc={_0x404e77:0x219,_0x3415b7:0x1eb,_0x18b72b:0x1fa,_0x581deb:0x1e5},_0x27aa27=_0x4f2335;this[_0x27aa27(0x1e3)]['scene']['echartsDepthTest']=this['options'][_0x27aa27(0x1f2)]??!![],this['_map']['scene'][_0x27aa27(_0x25a9cc._0x404e77)]=this[_0x27aa27(_0x25a9cc._0x3415b7)]['clampToGround']??![],this[_0x27aa27(0x1e3)][_0x27aa27(_0x25a9cc._0x18b72b)][_0x27aa27(_0x25a9cc._0x581deb)]=this[_0x27aa27(0x1eb)]['fixedHeight']??0x0;}['_addedHook'](){const _0x491d62={_0x1549da:0x1f1,_0x22f8b7:0x1e3,_0x2dfc38:0x1fa},_0x48bbb7=_0x4f2335;this[_0x48bbb7(_0x491d62._0x1549da)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x48bbb7(0x1f9)][_0x48bbb7(0x1e7)]=this[_0x48bbb7(_0x491d62._0x22f8b7)][_0x48bbb7(_0x491d62._0x2dfc38)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x41b0a0={_0x13ecd5:0x1e3},_0x4a9483=_0x4f2335;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x4a9483(_0x41b0a0._0x13ecd5)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x4f2335(0x20e)](){const _0x9ad12b={_0x19ca98:0x1f6,_0x1f47fc:0x20b,_0x4af20a:0x1eb},_0x39bc00=_0x4f2335,_0x5981d0=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x5981d0['id']=this['id'],_0x5981d0[_0x39bc00(_0x9ad12b._0x19ca98)]['position']='absolute',_0x5981d0['style']['top']=_0x39bc00(_0x9ad12b._0x1f47fc),_0x5981d0['style']['left']=_0x39bc00(0x20b),_0x5981d0[_0x39bc00(0x1f6)]['width']=this[_0x39bc00(0x1e3)]['scene']['canvas']['clientWidth']+'px',_0x5981d0['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x5981d0['style']['pointerEvents']=this['_pointerEvents']?'all':_0x39bc00(0x221),_0x5981d0['style'][_0x39bc00(0x1fb)]=this[_0x39bc00(_0x9ad12b._0x4af20a)][_0x39bc00(0x1fb)]??0x9,_0x5981d0;}['resize'](){const _0x5ccea0={_0x2b4b43:0x1f6,_0x4206c1:0x1f9},_0x133861=_0x4f2335;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene'][_0x133861(0x1f8)][_0x133861(0x202)]+'px',this['_echartsContainer'][_0x133861(_0x5ccea0._0x2b4b43)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this[_0x133861(_0x5ccea0._0x4206c1)]['resize']();}['setEchartsOption'](_0x57f5ed,_0x5011af,_0x13a5b4){const _0x33596d={_0x5b1c10:0x1f9,_0x45c635:0x209},_0x442e2e=_0x4f2335;this['_echartsInstance']&&(_0x57f5ed['mars3dMap']=_0x57f5ed['mars3dMap']||{},this[_0x442e2e(_0x33596d._0x5b1c10)][_0x442e2e(_0x33596d._0x45c635)](_0x57f5ed,_0x5011af,_0x13a5b4));}[_0x4f2335(0x1f3)](_0x45c783){const _0x32833a={_0x2ec10b:0x1fc,_0x2ee4a8:0x216},_0x59ba65={_0x4de168:0x213};let _0x302760,_0x2d745f,_0x35105e,_0x21adf0;function _0x47f980(_0x4f3106){const _0x324fc4=_0x1bb9;if(!Array['isArray'](_0x4f3106))return;const _0x36a90e=_0x4f3106[0x0]||0x0,_0x4258be=_0x4f3106[0x1]||0x0;_0x36a90e!==0x0&&_0x4258be!==0x0&&(_0x302760===undefined?(_0x302760=_0x36a90e,_0x2d745f=_0x36a90e,_0x35105e=_0x4258be,_0x21adf0=_0x4258be):(_0x302760=Math[_0x324fc4(_0x59ba65._0x4de168)](_0x302760,_0x36a90e),_0x2d745f=Math['max'](_0x2d745f,_0x36a90e),_0x35105e=Math['min'](_0x35105e,_0x4258be),_0x21adf0=Math['max'](_0x21adf0,_0x4258be)));}const _0x3ecc76=this['options']['series'];_0x3ecc76&&_0x3ecc76['forEach'](_0x40afa1=>{const _0x1209ab=_0x1bb9;_0x40afa1['data']&&_0x40afa1[_0x1209ab(_0x32833a._0x2ec10b)][_0x1209ab(_0x32833a._0x2ee4a8)](_0x2f095c=>{const _0x5dd63a=_0x1209ab;if(_0x2f095c['value'])_0x47f980(_0x2f095c['value']);else _0x2f095c[_0x5dd63a(0x1fe)]&&_0x2f095c['coords']['forEach'](_0x45d523=>{_0x47f980(_0x45d523);});});});if(_0x302760===0x0&&_0x35105e===0x0&&_0x2d745f===0x0&&_0x21adf0===0x0)return null;return _0x45c783!==null&&_0x45c783!==void 0x0&&_0x45c783['isFormat']?{'xmin':_0x302760,'xmax':_0x2d745f,'ymin':_0x35105e,'ymax':_0x21adf0}:Cesium['Rectangle']['fromDegrees'](_0x302760,_0x35105e,_0x2d745f,_0x21adf0);}['on'](_0x1cf4b6,_0x5d7b8a,_0x2ef441){return this['_echartsInstance']['on'](_0x1cf4b6,_0x5d7b8a,_0x2ef441||this),this;}['onByQuery'](_0x31e116,_0x4d3429,_0x3ffe3a,_0x1b8e7b){return this['_echartsInstance']['on'](_0x31e116,_0x4d3429,_0x3ffe3a,_0x1b8e7b||this),this;}[_0x4f2335(0x211)](_0x4653f3,_0x57be87,_0x345714){const _0x206174={_0xf3b70a:0x211},_0x24c9da=_0x4f2335;return this['_echartsInstance'][_0x24c9da(_0x206174._0xf3b70a)](_0x4653f3,_0x57be87,_0x345714||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x4f2335(0x1f0),EchartsLayer),mars3d__namespace['layer'][_0x4f2335(0x21a)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x4f2335(0x216)](function(_0x3fdd3a){const _0x53981c={_0x47a36e:0x21b},_0x301b26=_0x4f2335;if(_0x3fdd3a!=='default'&&!exports[_0x301b26(_0x53981c._0x47a36e)](_0x3fdd3a))Object['defineProperty'](exports,_0x3fdd3a,{'enumerable':!![],'get':function(){return echarts[_0x3fdd3a];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.15", | ||
"version": "3.5.16", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.15" | ||
"mars3d": "~3.5.16" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17138