mars3d-echarts
Advanced tools
Comparing version 3.6.6 to 3.6.7
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.6.6 | ||
* 编译日期:2023-09-19 21:39:49 | ||
* 版本信息:v3.6.7 | ||
* 编译日期:2023-09-26 10:50:35 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';function _0x2b37(_0x5758d4,_0x4074dd){const _0x101c3d=_0x101c();return _0x2b37=function(_0x2b37c3,_0x4fab29){_0x2b37c3=_0x2b37c3-0xf3;let _0x2916ee=_0x101c3d[_0x2b37c3];return _0x2916ee;},_0x2b37(_0x5758d4,_0x4074dd);}const _0x4aba5e=_0x2b37;(function(_0x5473d9,_0x569524){const _0x6c8009={_0x370f49:0x108,_0x12f1c0:0x12e,_0x5e2c58:0xf5,_0xc3c4ab:0x115,_0x415b9b:0xfb},_0x56fc39=_0x2b37,_0x3f1d5d=_0x5473d9();while(!![]){try{const _0x47b536=parseInt(_0x56fc39(0x126))/0x1+parseInt(_0x56fc39(0x112))/0x2*(-parseInt(_0x56fc39(_0x6c8009._0x370f49))/0x3)+parseInt(_0x56fc39(_0x6c8009._0x12f1c0))/0x4+-parseInt(_0x56fc39(_0x6c8009._0x5e2c58))/0x5+-parseInt(_0x56fc39(_0x6c8009._0xc3c4ab))/0x6*(parseInt(_0x56fc39(0x11f))/0x7)+parseInt(_0x56fc39(0x12c))/0x8*(-parseInt(_0x56fc39(0x10b))/0x9)+parseInt(_0x56fc39(_0x6c8009._0x415b9b))/0xa;if(_0x47b536===_0x569524)break;else _0x3f1d5d['push'](_0x3f1d5d['shift']());}catch(_0x218cf4){_0x3f1d5d['push'](_0x3f1d5d['shift']());}}}(_0x101c,0x91422));function _interopNamespace(_0x2a08d4){const _0x26898e={_0x10afac:0x116},_0x45df53={_0x4569fc:0x127},_0x50a91b=_0x2b37;if(_0x2a08d4&&_0x2a08d4['__esModule'])return _0x2a08d4;var _0x4f755b=Object[_0x50a91b(_0x26898e._0x10afac)](null);return _0x2a08d4&&Object['keys'](_0x2a08d4)[_0x50a91b(0x105)](function(_0x56d4c9){const _0x33c7ed=_0x50a91b;if(_0x56d4c9!=='default'){var _0x317cfb=Object[_0x33c7ed(_0x45df53._0x4569fc)](_0x2a08d4,_0x56d4c9);Object['defineProperty'](_0x4f755b,_0x56d4c9,_0x317cfb['get']?_0x317cfb:{'enumerable':!![],'get':function(){return _0x2a08d4[_0x56d4c9];}});}}),_0x4f755b['default']=_0x2a08d4,_0x4f755b;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x3bcccc,_0x4079e3){const _0x3c89f1={_0x57cd3b:0x11e},_0x31d4db=_0x2b37;this['_mars3d_scene']=_0x3bcccc,this['dimensions']=['lng',_0x31d4db(_0x3c89f1._0x57cd3b)],this['_mapOffset']=[0x0,0x0],this['_api']=_0x4079e3;}['setMapOffset'](_0xf510f0){const _0x4b659d={_0x45dfba:0x13c},_0x14b544=_0x2b37;this[_0x14b544(_0x4b659d._0x45dfba)]=_0xf510f0;}['getBMap'](){return this['_mars3d_scene'];}[_0x4aba5e(0x120)](_0x3d4d7a){const _0x4eb118={_0x181240:0x12f,_0x249891:0x128,_0x27fd2c:0x10f,_0x27f13a:0x113},_0x26ba5e=_0x4aba5e,_0x813c10=this[_0x26ba5e(0x131)],_0x1d8f2d=[NaN,NaN];let _0x1045d6=_0x813c10['echartsFixedHeight'];_0x813c10['echartsAutoHeight']&&(_0x1045d6=_0x813c10[_0x26ba5e(0x10f)][_0x26ba5e(_0x4eb118._0x181240)](Cesium$1[_0x26ba5e(0x114)][_0x26ba5e(0x103)](_0x3d4d7a[0x0],_0x3d4d7a[0x1])));const _0x1f0885=Cesium$1['Cartesian3']['fromDegrees'](_0x3d4d7a[0x0],_0x3d4d7a[0x1],_0x1045d6);if(!_0x1f0885)return _0x1d8f2d;const _0x5894a0=Cesium$1['SceneTransforms'][_0x26ba5e(0xf3)](_0x813c10,_0x1f0885);if(!_0x5894a0)return _0x1d8f2d;if(_0x813c10[_0x26ba5e(_0x4eb118._0x249891)]&&_0x813c10['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x77d818=new Cesium$1['EllipsoidalOccluder'](_0x813c10[_0x26ba5e(_0x4eb118._0x27fd2c)]['ellipsoid'],_0x813c10[_0x26ba5e(_0x4eb118._0x27f13a)][_0x26ba5e(0x117)]),_0x92c49b=_0x77d818['isPointVisible'](_0x1f0885);if(!_0x92c49b)return _0x1d8f2d;}return[_0x5894a0['x']-this['_mapOffset'][0x0],_0x5894a0['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2f9181=_0x4aba5e,_0x41e034=this['_api'];return new echarts__namespace[(_0x2f9181(0xfd))]['BoundingRect'](0x0,0x0,_0x41e034['getWidth'](),_0x41e034['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x31f34a,_0x2b8769){const _0x5e6602={_0x287cee:0xf8},_0x1811a9=_0x4aba5e;let _0x47a02a;const _0x5f3c8e=_0x31f34a['scheduler'][_0x1811a9(0xff)]['_mars3d_scene'];_0x31f34a['eachComponent']('mars3dMap',function(_0x28e746){const _0x26a2f1=_0x2b8769['getZr']()['painter'];if(!_0x26a2f1)return;!_0x47a02a&&(_0x47a02a=new CompositeCoordinateSystem(_0x5f3c8e,_0x2b8769)),_0x28e746['coordinateSystem']=_0x47a02a,_0x47a02a['setMapOffset'](_0x28e746['__mapOffset']||[0x0,0x0]);}),_0x31f34a['eachSeries'](function(_0xaf2191){const _0x32ff07=_0x1811a9;_0xaf2191[_0x32ff07(0x125)](_0x32ff07(_0x5e6602._0x287cee))==='mars3dMap'&&(!_0x47a02a&&(_0x47a02a=new CompositeCoordinateSystem(_0x5f3c8e,_0x2b8769)),_0xaf2191[_0x32ff07(_0x5e6602._0x287cee)]=_0x47a02a);});};function _0x101c(){const _0x584826=['1780672MaQBmv','getHeight','_addedHook','_mars3d_scene','moveHandler','pointerEvents','width','depthTest','options','_removedHook','style','removeEventListener','Cesium','div','_mapOffset','wgs84ToWindowCoordinates','EchartsLayer','5494130ZqbGNN','min','_echartsContainer','coordinateSystem','layer','dispatchAction','23048620cdkJVO','_pointerEvents','graphic','height','ecInstance','_map','clampToGround','value','fromDegrees','zIndex','forEach','postRender','addEventListener','3PovHUb','_createChartOverlay','scene','927znXyxF','defineProperty','_setOptionsHook','0px','globe','echartsFixedHeight','extendComponentModel','805836mdYctt','camera','Cartographic','12zUSUYU','create','positionWC','DomUtil','left','dispose','_echartsInstance','registerAction','mars3dMapRoam','lat','2024911jGtnmZ','dataToPoint','clientHeight','keys','resize','canvas','get','1072967qKYVNp','getOwnPropertyDescriptor','echartsDepthTest','api','init','BaseLayer','89144McnaUP','mars3dMap'];_0x101c=function(){return _0x584826;};return _0x101c();}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x4aba5e(0x11c)]({'type':'mars3dMapRoam','event':_0x4aba5e(0x11d),'update':'updateLayout'},function(_0x38f2d4,_0x52fc01){}),echarts__namespace[_0x4aba5e(0x111)]({'type':'mars3dMap','getBMap':function(){const _0x3f1b2d={_0xd0b6f2:0x131},_0x2008ab=_0x4aba5e;return this[_0x2008ab(_0x3f1b2d._0xd0b6f2)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x43dcd5,_0x55af1f){const _0x427f48={_0x4a0477:0x129,_0x20c98e:0x10a},_0x4e4e12=_0x4aba5e;this[_0x4e4e12(_0x427f48._0x4a0477)]=_0x55af1f,this[_0x4e4e12(_0x427f48._0x20c98e)]=_0x43dcd5['scheduler'][_0x4e4e12(0xff)]['_mars3d_scene'],this[_0x4e4e12(0x10a)][_0x4e4e12(0x106)][_0x4e4e12(0x107)](this[_0x4e4e12(0x132)],this);},'moveHandler':function(_0x7376b3,_0x35b9aa){const _0x40a3c9={_0x13758c:0x129},_0x322442=_0x4aba5e;this[_0x322442(_0x40a3c9._0x13758c)][_0x322442(0xfa)]({'type':'mars3dMapRoam'});},'render':function(_0x184ad0,_0x1da016,_0x48cb30){},'dispose':function(_0x19e0e0){const _0x48229f={_0x8735d7:0x132},_0x378441=_0x4aba5e;this[_0x378441(0x10a)]['postRender'][_0x378441(0x139)](this[_0x378441(_0x48229f._0x8735d7)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x4aba5e(0x13a)],BaseLayer=mars3d__namespace['layer'][_0x4aba5e(0x12b)];class EchartsLayer extends BaseLayer{constructor(_0x32e4aa={}){const _0x2838e3=_0x4aba5e;super(_0x32e4aa),this['_pointerEvents']=this[_0x2838e3(0x136)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x5ae1ec=_0x4aba5e;return this[_0x5ae1ec(0xfc)];}set[_0x4aba5e(0x133)](_0x4dd31f){const _0x3753f6={_0x4f781e:0x138,_0x56d3a7:0xf7},_0x273500=_0x4aba5e;this['_pointerEvents']=_0x4dd31f,this['_echartsContainer']&&(_0x4dd31f?this['_echartsContainer'][_0x273500(_0x3753f6._0x4f781e)][_0x273500(0x133)]='all':this[_0x273500(_0x3753f6._0x56d3a7)]['style']['pointerEvents']='none');}[_0x4aba5e(0x10d)](_0x5259de,_0x1ecb0a){this['setEchartsOption'](_0x5259de);}['_showHook'](_0x8ba65d){const _0x540434=_0x4aba5e;_0x8ba65d?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer'][_0x540434(0x138)]['visibility']='hidden';}['_mountedHook'](){const _0x34228f={_0x5b8392:0x10a,_0x2a3ed5:0x101,_0x2dc936:0x100,_0xa02fcc:0x136},_0x48f038=_0x4aba5e;this['_map'][_0x48f038(_0x34228f._0x5b8392)]['echartsDepthTest']=this['options'][_0x48f038(0x135)]??!![],this['_map']['scene']['echartsAutoHeight']=this['options'][_0x48f038(_0x34228f._0x2a3ed5)]??![],this[_0x48f038(_0x34228f._0x2dc936)]['scene'][_0x48f038(0x110)]=this[_0x48f038(_0x34228f._0xa02fcc)]['fixedHeight']??0x0;}[_0x4aba5e(0x130)](){const _0x3be02e={_0x5cfc10:0xf7,_0x53a2e5:0x109,_0x4d6b97:0x11b,_0x3432fb:0x12a,_0x393df9:0x131},_0x168845=_0x4aba5e;this[_0x168845(_0x3be02e._0x5cfc10)]=this[_0x168845(_0x3be02e._0x53a2e5)](),this[_0x168845(_0x3be02e._0x4d6b97)]=echarts__namespace[_0x168845(_0x3be02e._0x3432fb)](this['_echartsContainer']),this['_echartsInstance'][_0x168845(_0x3be02e._0x393df9)]=this[_0x168845(0x100)]['scene'],this['setEchartsOption'](this[_0x168845(0x136)]);}[_0x4aba5e(0x137)](){const _0x5ac65d={_0x3f47e1:0x11b,_0x216b97:0x11a,_0x30c9c9:0xf7},_0x2378d2=_0x4aba5e;this[_0x2378d2(0x11b)]&&(this['_echartsInstance']['clear'](),this[_0x2378d2(_0x5ac65d._0x3f47e1)][_0x2378d2(_0x5ac65d._0x216b97)](),delete this['_echartsInstance']),this[_0x2378d2(_0x5ac65d._0x30c9c9)]&&(this['_map']['container']['removeChild'](this[_0x2378d2(_0x5ac65d._0x30c9c9)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x577824={_0x5413e9:0x118,_0x2516d9:0x116,_0x6c766e:0x134,_0x376d08:0x100,_0xfb69f3:0xfe,_0x2c9f9c:0x124,_0x58f06c:0x104,_0x3aaa8c:0x104},_0x3d846f=_0x4aba5e,_0x274d4a=mars3d__namespace[_0x3d846f(_0x577824._0x5413e9)][_0x3d846f(_0x577824._0x2516d9)](_0x3d846f(0x13b),'mars3d-echarts',this['_map']['container']);return _0x274d4a['id']=this['id'],_0x274d4a['style']['position']='absolute',_0x274d4a['style']['top']=_0x3d846f(0x10e),_0x274d4a['style'][_0x3d846f(0x119)]='0px',_0x274d4a['style'][_0x3d846f(_0x577824._0x6c766e)]=this[_0x3d846f(_0x577824._0x376d08)]['scene']['canvas']['clientWidth']+'px',_0x274d4a['style'][_0x3d846f(_0x577824._0xfb69f3)]=this['_map']['scene'][_0x3d846f(_0x577824._0x2c9f9c)][_0x3d846f(0x121)]+'px',_0x274d4a['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x274d4a['style'][_0x3d846f(_0x577824._0x58f06c)]=this['options'][_0x3d846f(_0x577824._0x3aaa8c)]??0x9,_0x274d4a;}['resize'](){const _0x736dce={_0x186990:0x100,_0x329549:0x123},_0x2cda57=_0x4aba5e;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this[_0x2cda57(_0x736dce._0x186990)]['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map']['scene'][_0x2cda57(0x124)]['clientHeight']+'px',this['_echartsInstance'][_0x2cda57(_0x736dce._0x329549)]();}['setEchartsOption'](_0x496671,_0x56fd66,_0x58129a){const _0x4bd8a1=_0x4aba5e;this['_echartsInstance']&&(_0x496671[_0x4bd8a1(0x12d)]=_0x496671['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x496671,_0x56fd66,_0x58129a));}['getRectangle'](_0x25d9b0){const _0x17c030=_0x4aba5e;let _0x45bfba,_0x24bafe,_0x51bd73,_0x4737c0;function _0x57e906(_0x13aa2b){const _0x4db7d4=_0x2b37;if(!Array['isArray'](_0x13aa2b))return;const _0x150263=_0x13aa2b[0x0]||0x0,_0x33a6fa=_0x13aa2b[0x1]||0x0;_0x150263!==0x0&&_0x33a6fa!==0x0&&(_0x45bfba===undefined?(_0x45bfba=_0x150263,_0x24bafe=_0x150263,_0x51bd73=_0x33a6fa,_0x4737c0=_0x33a6fa):(_0x45bfba=Math['min'](_0x45bfba,_0x150263),_0x24bafe=Math['max'](_0x24bafe,_0x150263),_0x51bd73=Math[_0x4db7d4(0xf6)](_0x51bd73,_0x33a6fa),_0x4737c0=Math['max'](_0x4737c0,_0x33a6fa)));}const _0x1b54b9=this[_0x17c030(0x136)]['series'];_0x1b54b9&&_0x1b54b9[_0x17c030(0x105)](_0x4cc2c8=>{const _0x41b396={_0x3e08bb:0x102},_0xf22653=_0x17c030;_0x4cc2c8['data']&&_0x4cc2c8['data'][_0xf22653(0x105)](_0x467816=>{const _0x475223=_0xf22653;if(_0x467816[_0x475223(_0x41b396._0x3e08bb)])_0x57e906(_0x467816['value']);else _0x467816['coords']&&_0x467816['coords']['forEach'](_0xa0b739=>{_0x57e906(_0xa0b739);});});});if(_0x45bfba===0x0&&_0x51bd73===0x0&&_0x24bafe===0x0&&_0x4737c0===0x0)return null;return _0x25d9b0!==null&&_0x25d9b0!==void 0x0&&_0x25d9b0['isFormat']?{'xmin':_0x45bfba,'xmax':_0x24bafe,'ymin':_0x51bd73,'ymax':_0x4737c0}:Cesium['Rectangle']['fromDegrees'](_0x45bfba,_0x51bd73,_0x24bafe,_0x4737c0);}['on'](_0xb3707b,_0x579cae,_0x445dea){return this['_echartsInstance']['on'](_0xb3707b,_0x579cae,_0x445dea||this),this;}['onByQuery'](_0x1aa57e,_0x115640,_0x22cd03,_0xbf2bec){return this['_echartsInstance']['on'](_0x1aa57e,_0x115640,_0x22cd03,_0xbf2bec||this),this;}['off'](_0x595984,_0x5aea43,_0xdfd87c){return this['_echartsInstance']['off'](_0x595984,_0x5aea43,_0xdfd87c||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x4aba5e(0xf9)][_0x4aba5e(0xf4)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports[_0x4aba5e(0xf4)]=EchartsLayer,Object[_0x4aba5e(0x122)](echarts)['forEach'](function(_0x5c928c){const _0x2b810d={_0x725559:0x10c},_0x149dd9=_0x4aba5e;if(_0x5c928c!=='default'&&!exports['hasOwnProperty'](_0x5c928c))Object[_0x149dd9(_0x2b810d._0x725559)](exports,_0x5c928c,{'enumerable':!![],'get':function(){return echarts[_0x5c928c];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x428127=_0x5a50;function _0x1b15(){const _0x54c081=['__esModule','Cesium','4110516iZZwTj','graphic','scene','_createChartOverlay','dispatchAction','dataToPoint','min','217792dZpZJp','coords','471pUSnxE','5CQoRhU','canvas','data','clientWidth','_mars3d_scene','clientHeight','SCENE3D','absolute','40710LCVeCK','forEach','_setOptionsHook','2380905XYXHRA','mars3dMapRoam','resize','1462nWDNSU','dimensions','pointerEvents','mars3dMap','467986rpjOJB','clear','hidden','fromDegrees','lat','coordinateSystem','registerCoordinateSystem','10LTexOg','depthTest','style','33474eXgfZz','globe','dispose','moveHandler','layer','getRoamTransform','_echartsContainer','请引入\x20echarts\x20库\x20','11XIozjB','postRender','echartsFixedHeight','echarts','456SgNrkr','0px','setMapOffset','api','visibility','_pointerEvents','_map','getHeight','mars3d-echarts','eachComponent','isFormat','_mapOffset','BaseLayer','_echartsInstance','options','echartsAutoHeight','init','clampToGround','all'];_0x1b15=function(){return _0x54c081;};return _0x1b15();}(function(_0x381a71,_0x317411){const _0x24fe58={_0x16cf85:0xf6,_0x961229:0xf4,_0x10280f:0xff,_0x174fd6:0x113,_0x235f3a:0x11b},_0x3c010f=_0x5a50,_0x1e4fa8=_0x381a71();while(!![]){try{const _0x35082f=parseInt(_0x3c010f(0x109))/0x1+-parseInt(_0x3c010f(0x105))/0x2*(-parseInt(_0x3c010f(_0x24fe58._0x16cf85))/0x3)+-parseInt(_0x3c010f(_0x24fe58._0x961229))/0x4+-parseInt(_0x3c010f(0xf7))/0x5*(parseInt(_0x3c010f(_0x24fe58._0x10280f))/0x6)+-parseInt(_0x3c010f(_0x24fe58._0x174fd6))/0x7*(parseInt(_0x3c010f(0x11f))/0x8)+parseInt(_0x3c010f(0x102))/0x9*(-parseInt(_0x3c010f(0x110))/0xa)+-parseInt(_0x3c010f(_0x24fe58._0x235f3a))/0xb*(-parseInt(_0x3c010f(0xed))/0xc);if(_0x35082f===_0x317411)break;else _0x1e4fa8['push'](_0x1e4fa8['shift']());}catch(_0x15aa5d){_0x1e4fa8['push'](_0x1e4fa8['shift']());}}}(_0x1b15,0x4fd20));function _interopNamespace(_0x2c4f0e){const _0x257e4f={_0x26dd94:0xeb},_0xc58eea=_0x5a50;if(_0x2c4f0e&&_0x2c4f0e[_0xc58eea(_0x257e4f._0x26dd94)])return _0x2c4f0e;var _0x21ed6c=Object['create'](null);return _0x2c4f0e&&Object['keys'](_0x2c4f0e)['forEach'](function(_0x430441){if(_0x430441!=='default'){var _0x358bdf=Object['getOwnPropertyDescriptor'](_0x2c4f0e,_0x430441);Object['defineProperty'](_0x21ed6c,_0x430441,_0x358bdf['get']?_0x358bdf:{'enumerable':!![],'get':function(){return _0x2c4f0e[_0x430441];}});}}),_0x21ed6c['default']=_0x2c4f0e,_0x21ed6c;}function _0x5a50(_0x5943b9,_0x2f27a5){const _0x1b159b=_0x1b15();return _0x5a50=function(_0x5a507c,_0x11597c){_0x5a507c=_0x5a507c-0xda;let _0x740cc8=_0x1b159b[_0x5a507c];return _0x740cc8;},_0x5a50(_0x5943b9,_0x2f27a5);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x428127(0xec)];class CompositeCoordinateSystem{constructor(_0x250e7b,_0xf9be8d){const _0x18e0a2={_0x59f17e:0x10d},_0x5901e7=_0x428127;this['_mars3d_scene']=_0x250e7b,this['dimensions']=['lng',_0x5901e7(_0x18e0a2._0x59f17e)],this['_mapOffset']=[0x0,0x0],this['_api']=_0xf9be8d;}[_0x428127(0xda)](_0x151962){this['_mapOffset']=_0x151962;}['getBMap'](){return this['_mars3d_scene'];}[_0x428127(0xf2)](_0x492819){const _0x4e1ccb={_0xfb919a:0xfb,_0x45467b:0x11d,_0x56116c:0xe7,_0x4afeec:0x114},_0x5c9c8e=_0x428127,_0x19c7ca=this[_0x5c9c8e(_0x4e1ccb._0xfb919a)],_0xd6a14e=[NaN,NaN];let _0x29e2cb=_0x19c7ca[_0x5c9c8e(_0x4e1ccb._0x45467b)];_0x19c7ca[_0x5c9c8e(_0x4e1ccb._0x56116c)]&&(_0x29e2cb=_0x19c7ca['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x492819[0x0],_0x492819[0x1])));const _0x138521=Cesium$1['Cartesian3']['fromDegrees'](_0x492819[0x0],_0x492819[0x1],_0x29e2cb);if(!_0x138521)return _0xd6a14e;const _0x38546b=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x19c7ca,_0x138521);if(!_0x38546b)return _0xd6a14e;if(_0x19c7ca['echartsDepthTest']&&_0x19c7ca['mode']===Cesium$1['SceneMode'][_0x5c9c8e(0xfd)]){const _0x36bc32=new Cesium$1['EllipsoidalOccluder'](_0x19c7ca[_0x5c9c8e(_0x4e1ccb._0x4afeec)]['ellipsoid'],_0x19c7ca['camera']['positionWC']),_0x3c7a50=_0x36bc32['isPointVisible'](_0x138521);if(!_0x3c7a50)return _0xd6a14e;}return[_0x38546b['x']-this['_mapOffset'][0x0],_0x38546b['y']-this[_0x5c9c8e(0xe3)][0x1]];}['getViewRect'](){const _0x535644={_0x50d0f7:0xdf},_0x847937=_0x428127,_0x2c745d=this['_api'];return new echarts__namespace[(_0x847937(0xee))]['BoundingRect'](0x0,0x0,_0x2c745d['getWidth'](),_0x2c745d[_0x847937(_0x535644._0x50d0f7)]());}[_0x428127(0x118)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x428127(0x106)]=['lng',_0x428127(0x10d)],CompositeCoordinateSystem['create']=function(_0x26e608,_0x4e417){const _0x16f2b8={_0x360b88:0x10e},_0x31109a={_0x11e112:0xda},_0x44d146=_0x428127;let _0x4a840f;const _0x386b03=_0x26e608['scheduler']['ecInstance']['_mars3d_scene'];_0x26e608[_0x44d146(0xe1)]('mars3dMap',function(_0x1f6a82){const _0x527fa2=_0x44d146,_0x58be6f=_0x4e417['getZr']()['painter'];if(!_0x58be6f)return;!_0x4a840f&&(_0x4a840f=new CompositeCoordinateSystem(_0x386b03,_0x4e417)),_0x1f6a82['coordinateSystem']=_0x4a840f,_0x4a840f[_0x527fa2(_0x31109a._0x11e112)](_0x1f6a82['__mapOffset']||[0x0,0x0]);}),_0x26e608['eachSeries'](function(_0x4bb436){const _0x2e2d82=_0x44d146;_0x4bb436['get'](_0x2e2d82(_0x16f2b8._0x360b88))==='mars3dMap'&&(!_0x4a840f&&(_0x4a840f=new CompositeCoordinateSystem(_0x386b03,_0x4e417)),_0x4bb436['coordinateSystem']=_0x4a840f);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x428127(0xe8)])echarts__namespace[_0x428127(0x10f)](_0x428127(0x108),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x428127(0x103),'update':'updateLayout'},function(_0x20269f,_0x4c6cb4){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x45630f,_0x2b0cab){this['api']=_0x2b0cab,this['scene']=_0x45630f['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x182e7b,_0x1d9c2f){const _0x156392=_0x428127;this[_0x156392(0xdb)][_0x156392(0xf1)]({'type':'mars3dMapRoam'});},'render':function(_0x487a49,_0x2e356b,_0x4c4284){},'dispose':function(_0x5e5543){const _0x1a843d={_0x22d178:0x11c},_0x16da8d=_0x428127;this['scene'][_0x16da8d(_0x1a843d._0x22d178)]['removeEventListener'](this[_0x16da8d(0x116)],this);}});else throw new Error(_0x428127(0x11a));const Cesium=mars3d__namespace[_0x428127(0xec)],BaseLayer=mars3d__namespace[_0x428127(0x117)][_0x428127(0xe4)];class EchartsLayer extends BaseLayer{constructor(_0x3f3f90={}){super(_0x3f3f90),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x428127(0x107)](_0x58bb17){this['_pointerEvents']=_0x58bb17,this['_echartsContainer']&&(_0x58bb17?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}[_0x428127(0x101)](_0xbf5bd6,_0x5985d0){this['setEchartsOption'](_0xbf5bd6);}['_showHook'](_0x50832e){const _0x488da8={_0x105c0c:0x10b},_0x1ddbb0=_0x428127;_0x50832e?this['_echartsContainer']['style'][_0x1ddbb0(0xdc)]='visible':this['_echartsContainer']['style']['visibility']=_0x1ddbb0(_0x488da8._0x105c0c);}['_mountedHook'](){const _0x540ea9={_0x22f6d5:0x111,_0x191f8a:0xe9,_0x3307be:0xe6},_0x31624a=_0x428127;this['_map']['scene']['echartsDepthTest']=this['options'][_0x31624a(_0x540ea9._0x22f6d5)]??!![],this['_map'][_0x31624a(0xef)]['echartsAutoHeight']=this['options'][_0x31624a(_0x540ea9._0x191f8a)]??![],this['_map']['scene']['echartsFixedHeight']=this[_0x31624a(_0x540ea9._0x3307be)]['fixedHeight']??0x0;}['_addedHook'](){const _0x4aafb3={_0x702141:0xe8,_0x5d3bfd:0x119,_0x57f73b:0xe5},_0x442de7=_0x428127;this['_echartsContainer']=this[_0x442de7(0xf0)](),this['_echartsInstance']=echarts__namespace[_0x442de7(_0x4aafb3._0x702141)](this[_0x442de7(_0x4aafb3._0x5d3bfd)]),this[_0x442de7(_0x4aafb3._0x57f73b)]['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x478447={_0x5193b5:0x10a,_0x325111:0x115},_0x111ab2=_0x428127;this['_echartsInstance']&&(this['_echartsInstance'][_0x111ab2(_0x478447._0x5193b5)](),this['_echartsInstance'][_0x111ab2(_0x478447._0x325111)](),delete this[_0x111ab2(0xe5)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this[_0x111ab2(0x119)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x5daa77={_0xbb5590:0xfe,_0x1998c9:0x120,_0x43f89d:0x112,_0x195063:0xf8,_0x25614c:0xfc,_0x236cae:0x107,_0x42ea53:0xdd},_0x4e1cf7=_0x428127,_0x4faf0d=mars3d__namespace['DomUtil']['create']('div',_0x4e1cf7(0xe0),this['_map']['container']);return _0x4faf0d['id']=this['id'],_0x4faf0d['style']['position']=_0x4e1cf7(_0x5daa77._0xbb5590),_0x4faf0d[_0x4e1cf7(0x112)]['top']=_0x4e1cf7(_0x5daa77._0x1998c9),_0x4faf0d[_0x4e1cf7(0x112)]['left']='0px',_0x4faf0d[_0x4e1cf7(_0x5daa77._0x43f89d)]['width']=this['_map']['scene'][_0x4e1cf7(_0x5daa77._0x195063)][_0x4e1cf7(0xfa)]+'px',_0x4faf0d['style']['height']=this['_map']['scene']['canvas'][_0x4e1cf7(_0x5daa77._0x25614c)]+'px',_0x4faf0d['style'][_0x4e1cf7(_0x5daa77._0x236cae)]=this[_0x4e1cf7(_0x5daa77._0x42ea53)]?_0x4e1cf7(0xea):'none',_0x4faf0d['style']['zIndex']=this['options']['zIndex']??0x9,_0x4faf0d;}['resize'](){const _0x32d2ba={_0x186f02:0x112,_0x5e88a6:0xef,_0x6227b3:0xf8,_0x35036a:0x104},_0x5a53c5=_0x428127;if(!this['_echartsInstance'])return;this['_echartsContainer'][_0x5a53c5(_0x32d2ba._0x186f02)]['width']=this[_0x5a53c5(0xde)][_0x5a53c5(_0x32d2ba._0x5e88a6)]['canvas']['clientWidth']+'px',this[_0x5a53c5(0x119)][_0x5a53c5(0x112)]['height']=this['_map'][_0x5a53c5(0xef)][_0x5a53c5(_0x32d2ba._0x6227b3)]['clientHeight']+'px',this['_echartsInstance'][_0x5a53c5(_0x32d2ba._0x35036a)]();}['setEchartsOption'](_0x4d4921,_0x33ae5e,_0x22ff2f){const _0x17b545={_0x31a27d:0xe5},_0x36c407=_0x428127;this['_echartsInstance']&&(_0x4d4921['mars3dMap']=_0x4d4921['mars3dMap']||{},this[_0x36c407(_0x17b545._0x31a27d)]['setOption'](_0x4d4921,_0x33ae5e,_0x22ff2f));}['getRectangle'](_0x436075){const _0x5c4064={_0x39b9f8:0xe6},_0x38be04={_0x185494:0xf9},_0xd4daa5=_0x428127;let _0x250e86,_0x3cee0a,_0x16a79f,_0x131963;function _0xcaacfb(_0x4dc6e9){const _0x14775e=_0x5a50;if(!Array['isArray'](_0x4dc6e9))return;const _0x180d73=_0x4dc6e9[0x0]||0x0,_0x2a6da0=_0x4dc6e9[0x1]||0x0;_0x180d73!==0x0&&_0x2a6da0!==0x0&&(_0x250e86===undefined?(_0x250e86=_0x180d73,_0x3cee0a=_0x180d73,_0x16a79f=_0x2a6da0,_0x131963=_0x2a6da0):(_0x250e86=Math['min'](_0x250e86,_0x180d73),_0x3cee0a=Math['max'](_0x3cee0a,_0x180d73),_0x16a79f=Math[_0x14775e(0xf3)](_0x16a79f,_0x2a6da0),_0x131963=Math['max'](_0x131963,_0x2a6da0)));}const _0x1a5043=this[_0xd4daa5(_0x5c4064._0x39b9f8)]['series'];_0x1a5043&&_0x1a5043['forEach'](_0x3e1b30=>{const _0x58d2ba=_0xd4daa5;_0x3e1b30[_0x58d2ba(_0x38be04._0x185494)]&&_0x3e1b30['data']['forEach'](_0xcf4fd4=>{const _0x4b8e00=_0x58d2ba;if(_0xcf4fd4['value'])_0xcaacfb(_0xcf4fd4['value']);else _0xcf4fd4['coords']&&_0xcf4fd4[_0x4b8e00(0xf5)]['forEach'](_0xff71b4=>{_0xcaacfb(_0xff71b4);});});});if(_0x250e86===0x0&&_0x16a79f===0x0&&_0x3cee0a===0x0&&_0x131963===0x0)return null;return _0x436075!==null&&_0x436075!==void 0x0&&_0x436075[_0xd4daa5(0xe2)]?{'xmin':_0x250e86,'xmax':_0x3cee0a,'ymin':_0x16a79f,'ymax':_0x131963}:Cesium['Rectangle'][_0xd4daa5(0x10c)](_0x250e86,_0x16a79f,_0x3cee0a,_0x131963);}['on'](_0x326029,_0x286042,_0x4330e9){const _0x557e37={_0x5da8e7:0xe5},_0x577857=_0x428127;return this[_0x577857(_0x557e37._0x5da8e7)]['on'](_0x326029,_0x286042,_0x4330e9||this),this;}['onByQuery'](_0x33620a,_0x5d473b,_0x1587b2,_0x57cfdf){return this['_echartsInstance']['on'](_0x33620a,_0x5d473b,_0x1587b2,_0x57cfdf||this),this;}['off'](_0x53d332,_0xbd2eda,_0x9fd26a){return this['_echartsInstance']['off'](_0x53d332,_0xbd2eda,_0x9fd26a||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x428127(0x11e),EchartsLayer),mars3d__namespace[_0x428127(0x117)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x428127(0x100)](function(_0xbb3215){if(_0xbb3215!=='default'&&!exports['hasOwnProperty'](_0xbb3215))Object['defineProperty'](exports,_0xbb3215,{'enumerable':!![],'get':function(){return echarts[_0xbb3215];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.6.6", | ||
"version": "3.6.7", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.6.6" | ||
"mars3d": "~3.6.7" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
16978
63