mars3d-echarts
Advanced tools
Comparing version 3.5.8 to 3.5.9
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.8 | ||
* 编译日期:2023-05-23 18:08:11 | ||
* 版本信息:v3.5.9 | ||
* 编译日期:2023-05-29 18:00:49 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x189cf5=_0x4f75;(function(_0x1c143d,_0x13db28){const _0x435a6c={_0x36412f:0x192,_0x5401c7:0x158,_0x12ecf9:0x157,_0x339d67:0x15c,_0x29a34f:0x182,_0x4fd930:0x152},_0x5dfdae=_0x4f75,_0xa62e12=_0x1c143d();while(!![]){try{const _0x316787=parseInt(_0x5dfdae(_0x435a6c._0x36412f))/0x1+parseInt(_0x5dfdae(_0x435a6c._0x5401c7))/0x2+-parseInt(_0x5dfdae(_0x435a6c._0x12ecf9))/0x3+parseInt(_0x5dfdae(0x154))/0x4+parseInt(_0x5dfdae(0x18a))/0x5+-parseInt(_0x5dfdae(_0x435a6c._0x339d67))/0x6*(-parseInt(_0x5dfdae(_0x435a6c._0x29a34f))/0x7)+-parseInt(_0x5dfdae(_0x435a6c._0x4fd930))/0x8;if(_0x316787===_0x13db28)break;else _0xa62e12['push'](_0xa62e12['shift']());}catch(_0x4fef72){_0xa62e12['push'](_0xa62e12['shift']());}}}(_0x232d,0x247fd));function _interopNamespace(_0x127a0b){const _0x5db8a2={_0x3d3a6a:0x187};if(_0x127a0b&&_0x127a0b['__esModule'])return _0x127a0b;var _0x1e78f3=Object['create'](null);return _0x127a0b&&Object['keys'](_0x127a0b)['forEach'](function(_0x1f0587){const _0x30f035=_0x4f75;if(_0x1f0587!==_0x30f035(0x14f)){var _0x531d9d=Object['getOwnPropertyDescriptor'](_0x127a0b,_0x1f0587);Object[_0x30f035(0x16a)](_0x1e78f3,_0x1f0587,_0x531d9d[_0x30f035(_0x5db8a2._0x3d3a6a)]?_0x531d9d:{'enumerable':!![],'get':function(){return _0x127a0b[_0x1f0587];}});}}),_0x1e78f3['default']=_0x127a0b,_0x1e78f3;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x189cf5(0x185)];class CompositeCoordinateSystem{constructor(_0xb9dfeb,_0x47ee0c){const _0x537272={_0x41d9e7:0x175},_0x1b335c=_0x189cf5;this[_0x1b335c(0x186)]=_0xb9dfeb,this['dimensions']=[_0x1b335c(0x169),_0x1b335c(0x184)],this[_0x1b335c(_0x537272._0x41d9e7)]=[0x0,0x0],this['_api']=_0x47ee0c;}['setMapOffset'](_0x4bfad1){this['_mapOffset']=_0x4bfad1;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x427fe5){const _0x18179f={_0x338d85:0x186,_0x4397f8:0x15e,_0x31dade:0x167,_0x1cee69:0x17a,_0x5ab503:0x16c,_0x5e8b9b:0x175},_0x289807=_0x189cf5,_0x76c0a1=this[_0x289807(_0x18179f._0x338d85)],_0x455ff2=[NaN,NaN];let _0x17df07=_0x76c0a1['echartsFixedHeight'];_0x76c0a1['echartsAutoHeight']&&(_0x17df07=_0x76c0a1[_0x289807(_0x18179f._0x4397f8)]['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x427fe5[0x0],_0x427fe5[0x1])));const _0x23a3a4=Cesium$1['Cartesian3']['fromDegrees'](_0x427fe5[0x0],_0x427fe5[0x1],_0x17df07);if(!_0x23a3a4)return _0x455ff2;const _0x442091=Cesium$1[_0x289807(_0x18179f._0x31dade)][_0x289807(_0x18179f._0x1cee69)](_0x76c0a1,_0x23a3a4);if(!_0x442091)return _0x455ff2;if(_0x76c0a1['echartsDepthTest']&&_0x76c0a1[_0x289807(0x161)]===Cesium$1['SceneMode'][_0x289807(0x15a)]){const _0x3951f0=new Cesium$1['EllipsoidalOccluder'](_0x76c0a1[_0x289807(_0x18179f._0x4397f8)]['ellipsoid'],_0x76c0a1[_0x289807(0x164)][_0x289807(_0x18179f._0x5ab503)]),_0x2ce1d9=_0x3951f0[_0x289807(0x15d)](_0x23a3a4);if(!_0x2ce1d9)return _0x455ff2;}return[_0x442091['x']-this[_0x289807(_0x18179f._0x5e8b9b)][0x0],_0x442091['y']-this[_0x289807(0x175)][0x1]];}[_0x189cf5(0x15f)](){const _0x281949={_0x1350d3:0x18f},_0x217932=_0x189cf5,_0x3d7a0e=this['_api'];return new echarts__namespace[(_0x217932(_0x281949._0x1350d3))][(_0x217932(0x179))](0x0,0x0,_0x3d7a0e['getWidth'](),_0x3d7a0e['getHeight']());}[_0x189cf5(0x17f)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x189cf5(0x14e)]=['lng','lat'],CompositeCoordinateSystem[_0x189cf5(0x172)]=function(_0x2b68b4,_0x45f1ed){const _0x22ced8=_0x189cf5;let _0x15f995;const _0x115700=_0x2b68b4['scheduler'][_0x22ced8(0x16e)]['_mars3d_scene'];_0x2b68b4[_0x22ced8(0x178)]('mars3dMap',function(_0x9dce86){const _0x35abd7=_0x22ced8,_0x128cc4=_0x45f1ed['getZr']()['painter'];if(!_0x128cc4)return;!_0x15f995&&(_0x15f995=new CompositeCoordinateSystem(_0x115700,_0x45f1ed)),_0x9dce86[_0x35abd7(0x170)]=_0x15f995,_0x15f995['setMapOffset'](_0x9dce86[_0x35abd7(0x18d)]||[0x0,0x0]);}),_0x2b68b4['eachSeries'](function(_0x451bfe){const _0x1b72b2=_0x22ced8;_0x451bfe[_0x1b72b2(0x187)](_0x1b72b2(0x170))==='mars3dMap'&&(!_0x15f995&&(_0x15f995=new CompositeCoordinateSystem(_0x115700,_0x45f1ed)),_0x451bfe['coordinateSystem']=_0x15f995);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x189cf5(0x155),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':_0x189cf5(0x18b)},function(_0x5b7255,_0x536ed8){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x4993b9,_0x2a9cbb){const _0x5e3897=_0x189cf5;this['api']=_0x2a9cbb,this['scene']=_0x4993b9['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender'][_0x5e3897(0x190)](this['moveHandler'],this);},'moveHandler':function(_0x508f41,_0x5c3907){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2ff3f1,_0x5444c3,_0x55f093){},'dispose':function(_0x204015){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x232d(){const _0x58950d=['143514nvobka','fixedHeight','SCENE3D','resize','922722AsVgaZ','isPointVisible','globe','getViewRect','_map','mode','echartsFixedHeight','_setOptionsHook','camera','forEach','options','SceneTransforms','clientHeight','lng','defineProperty','_mountedHook','positionWC','echarts','ecInstance','_removedHook','coordinateSystem','depthTest','create','clampToGround','_echartsInstance','_mapOffset','container','__esModule','eachComponent','BoundingRect','wgs84ToWindowCoordinates','height','value','layer','pointerEvents','getRoamTransform','setEchartsOption','clientWidth','7JWRVje','register','lat','Cesium','_mars3d_scene','get','onByQuery','style','291360FdcLPB','updateLayout','none','__mapOffset','off','graphic','addEventListener','_createChartOverlay','233151kuNOmF','_pointerEvents','0px','left','dimensions','default','BaseLayer','scene','4233824VqcKHL','_echartsContainer','1050724MgAgBV','mars3dMap','dispose','302757uFAira'];_0x232d=function(){return _0x58950d;};return _0x232d();}const Cesium=mars3d__namespace[_0x189cf5(0x185)],BaseLayer=mars3d__namespace[_0x189cf5(0x17d)][_0x189cf5(0x150)];function _0x4f75(_0xf3a0f0,_0x74887d){const _0x232df2=_0x232d();return _0x4f75=function(_0x4f755f,_0x1ea34f){_0x4f755f=_0x4f755f-0x14c;let _0x2171c6=_0x232df2[_0x4f755f];return _0x2171c6;},_0x4f75(_0xf3a0f0,_0x74887d);}class EchartsLayer extends BaseLayer{constructor(_0x50431b={}){const _0x774fc9={_0xa507f:0x17e},_0x5191d2=_0x189cf5;super(_0x50431b),this[_0x5191d2(0x193)]=this['options'][_0x5191d2(_0x774fc9._0xa507f)];}get[_0x189cf5(0x17d)](){return this['_echartsInstance'];}get[_0x189cf5(0x17e)](){return this['_pointerEvents'];}set[_0x189cf5(0x17e)](_0x1bbda1){const _0x465e36={_0x3b4453:0x153,_0x5f3e81:0x17e},_0x370c1b=_0x189cf5;this['_pointerEvents']=_0x1bbda1,this['_echartsContainer']&&(_0x1bbda1?this['_echartsContainer']['style']['pointerEvents']='all':this[_0x370c1b(_0x465e36._0x3b4453)]['style'][_0x370c1b(_0x465e36._0x5f3e81)]='none');}[_0x189cf5(0x163)](_0x440af6,_0x43e21b){this['setEchartsOption'](_0x440af6);}['_showHook'](_0x5029b5){const _0x39eb97={_0x436ae8:0x189},_0x129bfd=_0x189cf5;_0x5029b5?this['_echartsContainer'][_0x129bfd(_0x39eb97._0x436ae8)]['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}[_0x189cf5(0x16b)](){const _0x512666={_0x3d7c96:0x160,_0xdb39a8:0x173,_0x5be0ec:0x162},_0x23c4a5=_0x189cf5;this['_map']['scene']['echartsDepthTest']=this['options'][_0x23c4a5(0x171)]??!![],this[_0x23c4a5(_0x512666._0x3d7c96)]['scene']['echartsAutoHeight']=this['options'][_0x23c4a5(_0x512666._0xdb39a8)]??![],this['_map']['scene'][_0x23c4a5(_0x512666._0x5be0ec)]=this['options'][_0x23c4a5(0x159)]??0x0;}['_addedHook'](){const _0xdd404b={_0x239304:0x191},_0x9f9462=_0x189cf5;this[_0x9f9462(0x153)]=this[_0x9f9462(_0xdd404b._0x239304)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x9f9462(0x151)],this[_0x9f9462(0x180)](this['options']);}[_0x189cf5(0x16f)](){const _0x39879d=_0x189cf5;this[_0x39879d(0x174)]&&(this[_0x39879d(0x174)]['clear'](),this['_echartsInstance'][_0x39879d(0x156)](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x39879d(0x176)]['removeChild'](this[_0x39879d(0x153)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xa8361e={_0x1ba0fc:0x14c,_0x30164c:0x181,_0x1d5621:0x17b,_0x53be3a:0x193},_0x1ac8bf=_0x189cf5,_0x4d3f19=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x4d3f19['id']=this['id'],_0x4d3f19['style']['position']='absolute',_0x4d3f19['style']['top']=_0x1ac8bf(_0xa8361e._0x1ba0fc),_0x4d3f19['style'][_0x1ac8bf(0x14d)]='0px',_0x4d3f19['style']['width']=this['_map']['scene']['canvas'][_0x1ac8bf(_0xa8361e._0x30164c)]+'px',_0x4d3f19['style'][_0x1ac8bf(_0xa8361e._0x1d5621)]=this[_0x1ac8bf(0x160)]['scene']['canvas'][_0x1ac8bf(0x168)]+'px',_0x4d3f19['style'][_0x1ac8bf(0x17e)]=this[_0x1ac8bf(_0xa8361e._0x53be3a)]?'all':_0x1ac8bf(0x18c),_0x4d3f19['style']['zIndex']=this[_0x1ac8bf(0x166)]['zIndex']??0x9,_0x4d3f19;}[_0x189cf5(0x15b)](){const _0x14b23d={_0xa65272:0x151,_0x2c73e0:0x174},_0x193239=_0x189cf5;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x193239(0x17b)]=this['_map'][_0x193239(_0x14b23d._0xa65272)]['canvas'][_0x193239(0x168)]+'px',this[_0x193239(_0x14b23d._0x2c73e0)]['resize']();}['setEchartsOption'](_0x2c50b4,_0x4afc1c,_0xba4914){const _0x43d848=_0x189cf5;this['_echartsInstance']&&(_0x2c50b4['mars3dMap']=_0x2c50b4[_0x43d848(0x155)]||{},this['_echartsInstance']['setOption'](_0x2c50b4,_0x4afc1c,_0xba4914));}['getRectangle'](_0x2f068f){const _0x2704ef={_0x3232c1:0x166},_0x1b3508=_0x189cf5;let _0x36151b,_0x245240,_0xfb767e,_0x5bd07b;function _0x31c387(_0x20c780){if(!Array['isArray'](_0x20c780))return;const _0xfb2cc7=_0x20c780[0x0]||0x0,_0x334242=_0x20c780[0x1]||0x0;_0xfb2cc7!==0x0&&_0x334242!==0x0&&(_0x36151b===undefined?(_0x36151b=_0xfb2cc7,_0x245240=_0xfb2cc7,_0xfb767e=_0x334242,_0x5bd07b=_0x334242):(_0x36151b=Math['min'](_0x36151b,_0xfb2cc7),_0x245240=Math['max'](_0x245240,_0xfb2cc7),_0xfb767e=Math['min'](_0xfb767e,_0x334242),_0x5bd07b=Math['max'](_0x5bd07b,_0x334242)));}const _0x1f0893=this[_0x1b3508(_0x2704ef._0x3232c1)]['series'];_0x1f0893&&_0x1f0893['forEach'](_0x57912f=>{const _0x4db041={_0x250661:0x17c,_0x41bf02:0x165};_0x57912f['data']&&_0x57912f['data']['forEach'](_0x4704cc=>{const _0x325413=_0x4f75;if(_0x4704cc[_0x325413(0x17c)])_0x31c387(_0x4704cc[_0x325413(_0x4db041._0x250661)]);else _0x4704cc['coords']&&_0x4704cc['coords'][_0x325413(_0x4db041._0x41bf02)](_0x57fe75=>{_0x31c387(_0x57fe75);});});});if(_0x36151b===0x0&&_0xfb767e===0x0&&_0x245240===0x0&&_0x5bd07b===0x0)return null;return _0x2f068f!==null&&_0x2f068f!==void 0x0&&_0x2f068f['isFormat']?{'xmin':_0x36151b,'xmax':_0x245240,'ymin':_0xfb767e,'ymax':_0x5bd07b}:Cesium['Rectangle']['fromDegrees'](_0x36151b,_0xfb767e,_0x245240,_0x5bd07b);}['on'](_0x4d47cf,_0x5e554d,_0x3771ec){return this['_echartsInstance']['on'](_0x4d47cf,_0x5e554d,_0x3771ec||this),this;}[_0x189cf5(0x188)](_0x405b4d,_0x2192f3,_0x548a09,_0x34c80b){return this['_echartsInstance']['on'](_0x405b4d,_0x2192f3,_0x548a09,_0x34c80b||this),this;}[_0x189cf5(0x18e)](_0x32ff4c,_0x53eee2,_0x2d75a9){const _0x4c21cb=_0x189cf5;return this[_0x4c21cb(0x174)][_0x4c21cb(0x18e)](_0x32ff4c,_0x53eee2,_0x2d75a9||this),this;}}mars3d__namespace['LayerUtil'][_0x189cf5(0x183)](_0x189cf5(0x16d),EchartsLayer),mars3d__namespace[_0x189cf5(0x17d)]['EchartsLayer']=EchartsLayer,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x15988f){if(_0x15988f!=='default'&&!exports['hasOwnProperty'](_0x15988f))Object['defineProperty'](exports,_0x15988f,{'enumerable':!![],'get':function(){return echarts[_0x15988f];}});}),Object['defineProperty'](exports,_0x189cf5(0x177),{'value':!![]}); | ||
'use strict';const _0x510b07=_0x2870;(function(_0x237eec,_0x43a6f3){const _0x493e42={_0x2934db:0x205,_0x17c06e:0x210},_0xda32c5=_0x2870,_0x1fbc55=_0x237eec();while(!![]){try{const _0x6c13c=parseInt(_0xda32c5(0x21f))/0x1+-parseInt(_0xda32c5(0x1ea))/0x2*(-parseInt(_0xda32c5(0x1ec))/0x3)+-parseInt(_0xda32c5(0x1ed))/0x4+parseInt(_0xda32c5(_0x493e42._0x2934db))/0x5*(-parseInt(_0xda32c5(_0x493e42._0x17c06e))/0x6)+-parseInt(_0xda32c5(0x217))/0x7*(-parseInt(_0xda32c5(0x216))/0x8)+parseInt(_0xda32c5(0x21b))/0x9+-parseInt(_0xda32c5(0x1f6))/0xa*(parseInt(_0xda32c5(0x1e9))/0xb);if(_0x6c13c===_0x43a6f3)break;else _0x1fbc55['push'](_0x1fbc55['shift']());}catch(_0xbc63ae){_0x1fbc55['push'](_0x1fbc55['shift']());}}}(_0x5c06,0xe577d));function _interopNamespace(_0x1951c0){if(_0x1951c0&&_0x1951c0['__esModule'])return _0x1951c0;var _0x460b17=Object['create'](null);return _0x1951c0&&Object['keys'](_0x1951c0)['forEach'](function(_0xde95f1){const _0x59158a=_0x2870;if(_0xde95f1!=='default'){var _0xba9299=Object['getOwnPropertyDescriptor'](_0x1951c0,_0xde95f1);Object['defineProperty'](_0x460b17,_0xde95f1,_0xba9299[_0x59158a(0x21e)]?_0xba9299:{'enumerable':!![],'get':function(){return _0x1951c0[_0xde95f1];}});}}),_0x460b17['default']=_0x1951c0,_0x460b17;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];function _0x2870(_0xf5802d,_0x11e968){const _0x5c0615=_0x5c06();return _0x2870=function(_0x28702a,_0x267c12){_0x28702a=_0x28702a-0x1de;let _0x137442=_0x5c0615[_0x28702a];return _0x137442;},_0x2870(_0xf5802d,_0x11e968);}class CompositeCoordinateSystem{constructor(_0x1a76e8,_0x318beb){const _0x1f5787={_0x3a52a7:0x1e7},_0x1eab12=_0x2870;this['_mars3d_scene']=_0x1a76e8,this[_0x1eab12(_0x1f5787._0x3a52a7)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x318beb;}[_0x510b07(0x1f9)](_0x2ad270){this['_mapOffset']=_0x2ad270;}['getBMap'](){const _0x542089=_0x510b07;return this[_0x542089(0x1de)];}['dataToPoint'](_0x2951c9){const _0x133af3={_0x292602:0x1eb,_0x3e414a:0x20c,_0x43c49b:0x1ee,_0x4ef7ea:0x1fc},_0x2aab84=_0x510b07,_0xc710bb=this['_mars3d_scene'],_0x3fb263=[NaN,NaN];let _0x50c3ad=_0xc710bb['echartsFixedHeight'];_0xc710bb['echartsAutoHeight']&&(_0x50c3ad=_0xc710bb['globe'][_0x2aab84(0x1f5)](Cesium$1['Cartographic']['fromDegrees'](_0x2951c9[0x0],_0x2951c9[0x1])));const _0x1fd100=Cesium$1[_0x2aab84(_0x133af3._0x292602)][_0x2aab84(_0x133af3._0x3e414a)](_0x2951c9[0x0],_0x2951c9[0x1],_0x50c3ad);if(!_0x1fd100)return _0x3fb263;const _0x3a9eca=Cesium$1[_0x2aab84(0x1f1)][_0x2aab84(0x21d)](_0xc710bb,_0x1fd100);if(!_0x3a9eca)return _0x3fb263;if(_0xc710bb[_0x2aab84(_0x133af3._0x43c49b)]&&_0xc710bb['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x1e5480=new Cesium$1['EllipsoidalOccluder'](_0xc710bb[_0x2aab84(_0x133af3._0x4ef7ea)]['ellipsoid'],_0xc710bb['camera']['positionWC']),_0x53af9d=_0x1e5480[_0x2aab84(0x209)](_0x1fd100);if(!_0x53af9d)return _0x3fb263;}return[_0x3a9eca['x']-this[_0x2aab84(0x223)][0x0],_0x3a9eca['y']-this['_mapOffset'][0x1]];}[_0x510b07(0x20d)](){const _0x347d49=_0x510b07,_0x50acad=this['_api'];return new echarts__namespace[(_0x347d49(0x1e5))]['BoundingRect'](0x0,0x0,_0x50acad['getWidth'](),_0x50acad['getHeight']());}['getRoamTransform'](){const _0x2fd6af={_0xf58d7f:0x1fe},_0x57ee99=_0x510b07;return echarts__namespace[_0x57ee99(_0x2fd6af._0xf58d7f)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x2e1b36,_0x5b6daa){const _0x226566={_0x3a2c1e:0x20b},_0x3d1312={_0x10bd15:0x220,_0x219990:0x1fd},_0xd7a40a=_0x510b07;let _0x38aa3c;const _0x338875=_0x2e1b36['scheduler']['ecInstance']['_mars3d_scene'];_0x2e1b36[_0xd7a40a(_0x226566._0x3a2c1e)]('mars3dMap',function(_0x373f35){const _0x2477d0=_0xd7a40a,_0x3a6793=_0x5b6daa['getZr']()['painter'];if(!_0x3a6793)return;!_0x38aa3c&&(_0x38aa3c=new CompositeCoordinateSystem(_0x338875,_0x5b6daa)),_0x373f35[_0x2477d0(_0x3d1312._0x10bd15)]=_0x38aa3c,_0x38aa3c['setMapOffset'](_0x373f35[_0x2477d0(_0x3d1312._0x219990)]||[0x0,0x0]);}),_0x2e1b36['eachSeries'](function(_0x44fab4){const _0x24271f=_0xd7a40a;_0x44fab4['get']('coordinateSystem')===_0x24271f(0x212)&&(!_0x38aa3c&&(_0x38aa3c=new CompositeCoordinateSystem(_0x338875,_0x5b6daa)),_0x44fab4['coordinateSystem']=_0x38aa3c);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x510b07(0x215)](_0x510b07(0x212),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x510b07(0x1e3),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x3416cd,_0x135cd9){}),echarts__namespace['extendComponentModel']({'type':_0x510b07(0x212),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x510b07(0x207)]({'type':'mars3dMap','init':function(_0x49686a,_0x4d7148){const _0x1ac1cb={_0x26fbf4:0x208},_0x140b90=_0x510b07;this[_0x140b90(_0x1ac1cb._0x26fbf4)]=_0x4d7148,this[_0x140b90(0x1e0)]=_0x49686a['scheduler'][_0x140b90(0x1f0)]['_mars3d_scene'],this['scene'][_0x140b90(0x1f3)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5e9e26,_0x5845e1){const _0xa26ec0={_0x440e56:0x208},_0x353125=_0x510b07;this[_0x353125(_0xa26ec0._0x440e56)][_0x353125(0x1e1)]({'type':_0x353125(0x1e3)});},'render':function(_0x55f070,_0x49edcc,_0x563ef7){},'dispose':function(_0x3669d1){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x510b07(0x1e8)],BaseLayer=mars3d__namespace[_0x510b07(0x214)][_0x510b07(0x219)];class EchartsLayer extends BaseLayer{constructor(_0x168f62={}){const _0x40020e={_0x380a2f:0x1f2},_0x50f126=_0x510b07;super(_0x168f62),this['_pointerEvents']=this[_0x50f126(_0x40020e._0x380a2f)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x510b07(0x1f4)](){const _0x59d6b7=_0x510b07;return this[_0x59d6b7(0x1df)];}set['pointerEvents'](_0x4a4110){const _0x2c65d9={_0x2dd4ab:0x206},_0xa443bf=_0x510b07;this['_pointerEvents']=_0x4a4110,this[_0xa443bf(0x1ef)]&&(_0x4a4110?this['_echartsContainer'][_0xa443bf(_0x2c65d9._0x2dd4ab)]['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x3e8005,_0x13a17e){const _0x5a23ad={_0x2d128e:0x1fb},_0x459eeb=_0x510b07;this[_0x459eeb(_0x5a23ad._0x2d128e)](_0x3e8005);}['_showHook'](_0x208e05){const _0x108262={_0x118112:0x224},_0x26b182=_0x510b07;_0x208e05?this['_echartsContainer']['style'][_0x26b182(_0x108262._0x118112)]='visible':this['_echartsContainer'][_0x26b182(0x206)]['visibility']='hidden';}['_mountedHook'](){const _0x2d2d8d=_0x510b07;this['_map']['scene']['echartsDepthTest']=this['options'][_0x2d2d8d(0x203)]??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x37cc88={_0x5b82ef:0x213,_0x2266f2:0x1e2},_0x243b05=_0x510b07;this['_echartsContainer']=this[_0x243b05(_0x37cc88._0x5b82ef)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x243b05(_0x37cc88._0x2266f2)]['_mars3d_scene']=this[_0x243b05(0x20f)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x18bdf0={_0x3dbef3:0x1e2,_0x50e64e:0x1ff,_0x2887db:0x221},_0x3d9fe4=_0x510b07;this['_echartsInstance']&&(this[_0x3d9fe4(_0x18bdf0._0x3dbef3)][_0x3d9fe4(_0x18bdf0._0x50e64e)](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x3d9fe4(_0x18bdf0._0x2887db)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x510b07(0x213)](){const _0x4e1309={_0x58086e:0x20e,_0x2ae951:0x222,_0x1eb5cf:0x1e0,_0xce8db3:0x1e4},_0x1653a3=_0x510b07,_0x4b7c84=mars3d__namespace[_0x1653a3(0x1f7)]['create'](_0x1653a3(_0x4e1309._0x58086e),'mars3d-echarts',this[_0x1653a3(0x20f)]['container']);return _0x4b7c84['id']=this['id'],_0x4b7c84['style']['position']='absolute',_0x4b7c84['style'][_0x1653a3(0x200)]='0px',_0x4b7c84['style']['left']='0px',_0x4b7c84['style']['width']=this[_0x1653a3(0x20f)][_0x1653a3(0x1e0)]['canvas']['clientWidth']+'px',_0x4b7c84['style'][_0x1653a3(_0x4e1309._0x2ae951)]=this['_map'][_0x1653a3(_0x4e1309._0x1eb5cf)][_0x1653a3(_0x4e1309._0xce8db3)]['clientHeight']+'px',_0x4b7c84['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x4b7c84['style']['zIndex']=this['options']['zIndex']??0x9,_0x4b7c84;}['resize'](){const _0x1678c5={_0x5b8608:0x201,_0x1aed25:0x222,_0x312ed3:0x218},_0x411662=_0x510b07;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x411662(_0x1678c5._0x5b8608)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x411662(_0x1678c5._0x1aed25)]=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance'][_0x411662(_0x1678c5._0x312ed3)]();}[_0x510b07(0x1fb)](_0x3e19f0,_0x35dd4c,_0x49d30e){const _0xbc0908={_0x37c00e:0x1e2},_0x1a469e=_0x510b07;this[_0x1a469e(_0xbc0908._0x37c00e)]&&(_0x3e19f0['mars3dMap']=_0x3e19f0['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x3e19f0,_0x35dd4c,_0x49d30e));}['getRectangle'](_0x2ff924){const _0x2b2ebe={_0x4ff2f4:0x21a,_0x9b189e:0x1fa},_0x17fea9={_0x169710:0x202},_0x533062=_0x510b07;let _0x11b5e6,_0x1a9c62,_0xb3f860,_0x3d220d;function _0x2a45bd(_0x3f92f1){const _0xa0b41e=_0x2870;if(!Array['isArray'](_0x3f92f1))return;const _0x41ad26=_0x3f92f1[0x0]||0x0,_0x4a3082=_0x3f92f1[0x1]||0x0;_0x41ad26!==0x0&&_0x4a3082!==0x0&&(_0x11b5e6===undefined?(_0x11b5e6=_0x41ad26,_0x1a9c62=_0x41ad26,_0xb3f860=_0x4a3082,_0x3d220d=_0x4a3082):(_0x11b5e6=Math[_0xa0b41e(0x20a)](_0x11b5e6,_0x41ad26),_0x1a9c62=Math['max'](_0x1a9c62,_0x41ad26),_0xb3f860=Math[_0xa0b41e(0x20a)](_0xb3f860,_0x4a3082),_0x3d220d=Math['max'](_0x3d220d,_0x4a3082)));}const _0x2d54ec=this['options']['series'];_0x2d54ec&&_0x2d54ec[_0x533062(_0x2b2ebe._0x4ff2f4)](_0x3f3c63=>{const _0x3a03f5=_0x533062;_0x3f3c63[_0x3a03f5(_0x17fea9._0x169710)]&&_0x3f3c63['data']['forEach'](_0x238cb2=>{const _0x123de9=_0x3a03f5;if(_0x238cb2[_0x123de9(0x1f8)])_0x2a45bd(_0x238cb2[_0x123de9(0x1f8)]);else _0x238cb2['coords']&&_0x238cb2['coords'][_0x123de9(0x21a)](_0x3138a1=>{_0x2a45bd(_0x3138a1);});});});if(_0x11b5e6===0x0&&_0xb3f860===0x0&&_0x1a9c62===0x0&&_0x3d220d===0x0)return null;return _0x2ff924!==null&&_0x2ff924!==void 0x0&&_0x2ff924['isFormat']?{'xmin':_0x11b5e6,'xmax':_0x1a9c62,'ymin':_0xb3f860,'ymax':_0x3d220d}:Cesium[_0x533062(_0x2b2ebe._0x9b189e)]['fromDegrees'](_0x11b5e6,_0xb3f860,_0x1a9c62,_0x3d220d);}['on'](_0x20ab88,_0x3b7e91,_0x18558a){const _0x3077e0={_0x52fe22:0x1e2},_0x30d987=_0x510b07;return this[_0x30d987(_0x3077e0._0x52fe22)]['on'](_0x20ab88,_0x3b7e91,_0x18558a||this),this;}['onByQuery'](_0x345049,_0x4b724f,_0x4d041d,_0x3afa40){return this['_echartsInstance']['on'](_0x345049,_0x4b724f,_0x4d041d,_0x3afa40||this),this;}['off'](_0x17e93f,_0x18d5ef,_0x2a6e10){const _0x2c36b6={_0x1198ed:0x204},_0x288e66=_0x510b07;return this['_echartsInstance'][_0x288e66(_0x2c36b6._0x1198ed)](_0x17e93f,_0x18d5ef,_0x2a6e10||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x510b07(0x21c),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,exports[_0x510b07(0x1e6)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x3bb3fa){if(_0x3bb3fa!=='default'&&!exports['hasOwnProperty'](_0x3bb3fa))Object['defineProperty'](exports,_0x3bb3fa,{'enumerable':!![],'get':function(){return echarts[_0x3bb3fa];}});}),Object['defineProperty'](exports,_0x510b07(0x211),{'value':!![]});function _0x5c06(){const _0x293fbe=['data','depthTest','off','1032065olJKRk','style','extendComponentView','api','isPointVisible','min','eachComponent','fromDegrees','getViewRect','div','_map','24mehFnL','__esModule','mars3dMap','_createChartOverlay','layer','registerCoordinateSystem','11937696WVTBDU','7beKwXx','resize','BaseLayer','forEach','13943637kBasmc','echarts','wgs84ToWindowCoordinates','get','227165PqHGgm','coordinateSystem','container','height','_mapOffset','visibility','_mars3d_scene','_pointerEvents','scene','dispatchAction','_echartsInstance','mars3dMapRoam','canvas','graphic','EchartsLayer','dimensions','Cesium','3256qGYjgQ','4474BrfSdn','Cartesian3','1758lynuvw','6274908DhvPQt','echartsDepthTest','_echartsContainer','ecInstance','SceneTransforms','options','postRender','pointerEvents','getHeight','42070BrhWeR','DomUtil','value','setMapOffset','Rectangle','setEchartsOption','globe','__mapOffset','matrix','clear','top','width'];_0x5c06=function(){return _0x293fbe;};return _0x5c06();} | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.8", | ||
"version": "3.5.9", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.8" | ||
"mars3d": "~3.5.9" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
17041
64