mars3d-echarts
Advanced tools
Comparing version 3.5.9 to 3.5.10
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.9 | ||
* 编译日期:2023-05-29 18:00:49 | ||
* 版本信息:v3.5.10 | ||
* 编译日期:2023-06-05 18:17:57 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'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();} | ||
'use strict';const _0x4a8f00=_0x2117;(function(_0xa14a03,_0x29f3be){const _0x441e06={_0x189636:0x1d6,_0x8581dc:0x1e8,_0x56917b:0x1ea,_0x26eede:0x1c5,_0x32f5da:0x1ed,_0x3bb0b3:0x1d4},_0x22d86f=_0x2117,_0x148e39=_0xa14a03();while(!![]){try{const _0x35a5b8=-parseInt(_0x22d86f(0x1da))/0x1+-parseInt(_0x22d86f(0x1bb))/0x2*(parseInt(_0x22d86f(_0x441e06._0x189636))/0x3)+-parseInt(_0x22d86f(_0x441e06._0x8581dc))/0x4*(-parseInt(_0x22d86f(_0x441e06._0x56917b))/0x5)+parseInt(_0x22d86f(0x1ba))/0x6+parseInt(_0x22d86f(_0x441e06._0x26eede))/0x7*(parseInt(_0x22d86f(0x1be))/0x8)+parseInt(_0x22d86f(_0x441e06._0x32f5da))/0x9+-parseInt(_0x22d86f(_0x441e06._0x3bb0b3))/0xa;if(_0x35a5b8===_0x29f3be)break;else _0x148e39['push'](_0x148e39['shift']());}catch(_0x209db7){_0x148e39['push'](_0x148e39['shift']());}}}(_0x282a,0xc35a1));function _interopNamespace(_0x1517e3){const _0x36bd47=_0x2117;if(_0x1517e3&&_0x1517e3[_0x36bd47(0x1c2)])return _0x1517e3;var _0x1563ec=Object['create'](null);return _0x1517e3&&Object['keys'](_0x1517e3)['forEach'](function(_0x3389d4){const _0x2c57a4=_0x36bd47;if(_0x3389d4!==_0x2c57a4(0x1f3)){var _0x25c19c=Object['getOwnPropertyDescriptor'](_0x1517e3,_0x3389d4);Object['defineProperty'](_0x1563ec,_0x3389d4,_0x25c19c['get']?_0x25c19c:{'enumerable':!![],'get':function(){return _0x1517e3[_0x3389d4];}});}}),_0x1563ec['default']=_0x1517e3,_0x1563ec;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x4a8f00(0x1e2)];class CompositeCoordinateSystem{constructor(_0x5bdf50,_0x36f2cc){const _0x2d997e={_0x25c391:0x1d0},_0x38c486=_0x4a8f00;this['_mars3d_scene']=_0x5bdf50,this[_0x38c486(_0x2d997e._0x25c391)]=[_0x38c486(0x1f2),'lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x36f2cc;}[_0x4a8f00(0x1b5)](_0xb508d0){this['_mapOffset']=_0xb508d0;}['getBMap'](){return this['_mars3d_scene'];}[_0x4a8f00(0x1e9)](_0x148198){const _0x1f9c45={_0x54c8c1:0x1ec,_0x7b4bfd:0x1f0,_0x23c5eb:0x1dd,_0x1b6739:0x1f8},_0x772a48=_0x4a8f00,_0x100c56=this['_mars3d_scene'],_0x13a77e=[NaN,NaN];let _0x2a5097=_0x100c56['echartsFixedHeight'];_0x100c56[_0x772a48(0x1cb)]&&(_0x2a5097=_0x100c56['globe']['getHeight'](Cesium$1[_0x772a48(_0x1f9c45._0x54c8c1)][_0x772a48(0x1d5)](_0x148198[0x0],_0x148198[0x1])));const _0x3ad47c=Cesium$1['Cartesian3']['fromDegrees'](_0x148198[0x0],_0x148198[0x1],_0x2a5097);if(!_0x3ad47c)return _0x13a77e;const _0x5e4cb7=Cesium$1[_0x772a48(_0x1f9c45._0x7b4bfd)][_0x772a48(_0x1f9c45._0x23c5eb)](_0x100c56,_0x3ad47c);if(!_0x5e4cb7)return _0x13a77e;if(_0x100c56[_0x772a48(0x1e4)]&&_0x100c56['mode']===Cesium$1[_0x772a48(0x1ce)]['SCENE3D']){const _0x2dd3bc=new Cesium$1[(_0x772a48(0x1ee))](_0x100c56['globe'][_0x772a48(_0x1f9c45._0x1b6739)],_0x100c56['camera']['positionWC']),_0x434b24=_0x2dd3bc['isPointVisible'](_0x3ad47c);if(!_0x434b24)return _0x13a77e;}return[_0x5e4cb7['x']-this['_mapOffset'][0x0],_0x5e4cb7['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2b6113={_0x6ec997:0x1db},_0x42eb13=_0x4a8f00,_0x5652e6=this[_0x42eb13(0x1d8)];return new echarts__namespace[(_0x42eb13(0x1bf))]['BoundingRect'](0x0,0x0,_0x5652e6['getWidth'](),_0x5652e6[_0x42eb13(_0x2b6113._0x6ec997)]());}[_0x4a8f00(0x1f6)](){const _0x13552e={_0x171be0:0x1b9},_0x4ee30e=_0x4a8f00;return echarts__namespace['matrix'][_0x4ee30e(_0x13552e._0x171be0)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x4a8f00(0x1b9)]=function(_0x398d82,_0x8b4c41){const _0x27b2b3={_0x5773a2:0x1dc},_0x3b4fd8=_0x4a8f00;let _0x1b39cc;const _0x3ec83a=_0x398d82['scheduler']['ecInstance']['_mars3d_scene'];_0x398d82['eachComponent']('mars3dMap',function(_0x2477ef){const _0x52931=_0x2117,_0x21b337=_0x8b4c41[_0x52931(_0x27b2b3._0x5773a2)]()['painter'];if(!_0x21b337)return;!_0x1b39cc&&(_0x1b39cc=new CompositeCoordinateSystem(_0x3ec83a,_0x8b4c41)),_0x2477ef['coordinateSystem']=_0x1b39cc,_0x1b39cc['setMapOffset'](_0x2477ef[_0x52931(0x1de)]||[0x0,0x0]);}),_0x398d82[_0x3b4fd8(0x1c4)](function(_0x4c5e1d){_0x4c5e1d['get']('coordinateSystem')==='mars3dMap'&&(!_0x1b39cc&&(_0x1b39cc=new CompositeCoordinateSystem(_0x3ec83a,_0x8b4c41)),_0x4c5e1d['coordinateSystem']=_0x1b39cc);});};function _0x2117(_0x309ab1,_0x2f14ad){const _0x282ad2=_0x282a();return _0x2117=function(_0x211719,_0x3c4e52){_0x211719=_0x211719-0x1b4;let _0x308abc=_0x282ad2[_0x211719];return _0x308abc;},_0x2117(_0x309ab1,_0x2f14ad);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x4a8f00(0x1c1)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x4a8f00(0x1cf)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x1d406f,_0x2b4b7a){}),echarts__namespace['extendComponentModel']({'type':_0x4a8f00(0x1e5),'getBMap':function(){const _0x521cf9={_0x763fa7:0x1fa},_0x233a17=_0x4a8f00;return this[_0x233a17(_0x521cf9._0x763fa7)];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4a8f00(0x1df)]({'type':_0x4a8f00(0x1e5),'init':function(_0x2d894e,_0x59b488){const _0x1b0428=_0x4a8f00;this[_0x1b0428(0x1b7)]=_0x59b488,this['scene']=_0x2d894e['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x560ae4,_0x3ac74c){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x367f86,_0x5554fc,_0x2f6818){},'dispose':function(_0x9d4389){const _0x483fbc={_0x58dd6b:0x1c8},_0x4a6e08=_0x4a8f00;this['scene']['postRender'][_0x4a6e08(0x1c0)](this[_0x4a6e08(_0x483fbc._0x58dd6b)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0x282a(){const _0xbdeedc=['DomUtil','mars3d-echarts','moveHandler','zIndex','off','echartsAutoHeight','scene','div','SceneMode','registerAction','dimensions','resize','Rectangle','removeChild','517520nDIDNP','fromDegrees','6WFtrTv','all','_api','setEchartsOption','887115ieaqjV','getHeight','getZr','wgs84ToWindowCoordinates','__mapOffset','extendComponentView','options','echarts','Cesium','pointerEvents','echartsDepthTest','mars3dMap','_pointerEvents','clampToGround','117732NUhbBM','dataToPoint','90AeaOfV','_map','Cartographic','5895009MDJUny','EllipsoidalOccluder','_echartsContainer','SceneTransforms','layer','lng','default','0px','max','getRoamTransform','visibility','ellipsoid','_echartsInstance','_mars3d_scene','height','_createChartOverlay','setMapOffset','clientWidth','api','clientHeight','create','7457592jKZGNv','949400VLJuCi','data','style','56vsXxvo','graphic','removeEventListener','registerCoordinateSystem','__esModule','canvas','eachSeries','260701DMXpZL'];_0x282a=function(){return _0xbdeedc;};return _0x282a();}const Cesium=mars3d__namespace[_0x4a8f00(0x1e2)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x42bb64={}){const _0x1902f9={_0x1ad15a:0x1e3},_0x4de254=_0x4a8f00;super(_0x42bb64),this['_pointerEvents']=this['options'][_0x4de254(_0x1902f9._0x1ad15a)];}get[_0x4a8f00(0x1f1)](){return this['_echartsInstance'];}get[_0x4a8f00(0x1e3)](){return this['_pointerEvents'];}set['pointerEvents'](_0x1dad6d){const _0x141d5b=_0x4a8f00;this[_0x141d5b(0x1e6)]=_0x1dad6d,this['_echartsContainer']&&(_0x1dad6d?this['_echartsContainer'][_0x141d5b(0x1bd)][_0x141d5b(0x1e3)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x2c0382,_0x2de41a){this['setEchartsOption'](_0x2c0382);}['_showHook'](_0x35fc99){const _0x58ad71={_0x31c3e5:0x1f7,_0x5a1068:0x1ef},_0x252ab4=_0x4a8f00;_0x35fc99?this['_echartsContainer']['style'][_0x252ab4(_0x58ad71._0x31c3e5)]='visible':this[_0x252ab4(_0x58ad71._0x5a1068)]['style']['visibility']='hidden';}['_mountedHook'](){const _0x4b8046={_0x49d0ff:0x1eb},_0x3bf9a1=_0x4a8f00;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x3bf9a1(_0x4b8046._0x49d0ff)]['scene']['echartsAutoHeight']=this['options'][_0x3bf9a1(0x1e7)]??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x3dc39d={_0x574af0:0x1f9,_0x396c21:0x1fa,_0x1eee3a:0x1eb},_0x5576d=_0x4a8f00;this[_0x5576d(0x1ef)]=this[_0x5576d(0x1b4)](),this[_0x5576d(_0x3dc39d._0x574af0)]=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance'][_0x5576d(_0x3dc39d._0x396c21)]=this[_0x5576d(_0x3dc39d._0x1eee3a)]['scene'],this[_0x5576d(0x1d9)](this['options']);}['_removedHook'](){const _0x5d1ffc={_0x16b788:0x1f9,_0x3f9b9d:0x1d3},_0x114b03=_0x4a8f00;this[_0x114b03(_0x5d1ffc._0x16b788)]&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this[_0x114b03(0x1ef)]&&(this['_map']['container'][_0x114b03(_0x5d1ffc._0x3f9b9d)](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x4a8f00(0x1b4)](){const _0x59f1c7={_0x3a4114:0x1cd,_0x2985d1:0x1cc,_0x567c77:0x1b6,_0x3c9f6e:0x1bd,_0x4548ee:0x1eb,_0x40ff70:0x1b8,_0x970b:0x1e6,_0x318f6f:0x1d7},_0x14e711=_0x4a8f00,_0x36c730=mars3d__namespace[_0x14e711(0x1c6)]['create'](_0x14e711(_0x59f1c7._0x3a4114),_0x14e711(0x1c7),this['_map']['container']);return _0x36c730['id']=this['id'],_0x36c730['style']['position']='absolute',_0x36c730['style']['top']=_0x14e711(0x1f4),_0x36c730['style']['left']='0px',_0x36c730['style']['width']=this[_0x14e711(0x1eb)][_0x14e711(_0x59f1c7._0x2985d1)]['canvas'][_0x14e711(_0x59f1c7._0x567c77)]+'px',_0x36c730[_0x14e711(_0x59f1c7._0x3c9f6e)]['height']=this[_0x14e711(_0x59f1c7._0x4548ee)][_0x14e711(0x1cc)]['canvas'][_0x14e711(_0x59f1c7._0x40ff70)]+'px',_0x36c730[_0x14e711(0x1bd)]['pointerEvents']=this[_0x14e711(_0x59f1c7._0x970b)]?_0x14e711(_0x59f1c7._0x318f6f):'none',_0x36c730['style'][_0x14e711(0x1c9)]=this[_0x14e711(0x1e0)]['zIndex']??0x9,_0x36c730;}[_0x4a8f00(0x1d1)](){const _0x3db067={_0x5843ad:0x1cc,_0x38c4d0:0x1c3,_0x2107c4:0x1bd,_0x5a7046:0x1fb,_0xa6e44b:0x1b8},_0x31aa33=_0x4a8f00;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map'][_0x31aa33(_0x3db067._0x5843ad)][_0x31aa33(_0x3db067._0x38c4d0)]['clientWidth']+'px',this['_echartsContainer'][_0x31aa33(_0x3db067._0x2107c4)][_0x31aa33(_0x3db067._0x5a7046)]=this['_map']['scene'][_0x31aa33(0x1c3)][_0x31aa33(_0x3db067._0xa6e44b)]+'px',this['_echartsInstance'][_0x31aa33(0x1d1)]();}['setEchartsOption'](_0x168440,_0x4b073a,_0x6803af){const _0x915bdc={_0xa4f0a0:0x1f9},_0x4dd2c0=_0x4a8f00;this[_0x4dd2c0(_0x915bdc._0xa4f0a0)]&&(_0x168440['mars3dMap']=_0x168440[_0x4dd2c0(0x1e5)]||{},this['_echartsInstance']['setOption'](_0x168440,_0x4b073a,_0x6803af));}['getRectangle'](_0x542bcb){const _0x45c915={_0x51478c:0x1d5},_0x56f70d={_0x358aaa:0x1f5},_0x2b95ac=_0x4a8f00;let _0x1f8e43,_0x980af3,_0x42f362,_0x49ecb3;function _0x4dd38c(_0x8452c5){const _0x261601=_0x2117;if(!Array['isArray'](_0x8452c5))return;const _0x3e6819=_0x8452c5[0x0]||0x0,_0x58c17=_0x8452c5[0x1]||0x0;_0x3e6819!==0x0&&_0x58c17!==0x0&&(_0x1f8e43===undefined?(_0x1f8e43=_0x3e6819,_0x980af3=_0x3e6819,_0x42f362=_0x58c17,_0x49ecb3=_0x58c17):(_0x1f8e43=Math['min'](_0x1f8e43,_0x3e6819),_0x980af3=Math[_0x261601(_0x56f70d._0x358aaa)](_0x980af3,_0x3e6819),_0x42f362=Math['min'](_0x42f362,_0x58c17),_0x49ecb3=Math['max'](_0x49ecb3,_0x58c17)));}const _0x550507=this['options']['series'];_0x550507&&_0x550507['forEach'](_0x128229=>{const _0x42281c=_0x2117;_0x128229[_0x42281c(0x1bc)]&&_0x128229['data']['forEach'](_0x5bb62=>{if(_0x5bb62['value'])_0x4dd38c(_0x5bb62['value']);else _0x5bb62['coords']&&_0x5bb62['coords']['forEach'](_0x107441=>{_0x4dd38c(_0x107441);});});});if(_0x1f8e43===0x0&&_0x42f362===0x0&&_0x980af3===0x0&&_0x49ecb3===0x0)return null;return _0x542bcb!==null&&_0x542bcb!==void 0x0&&_0x542bcb['isFormat']?{'xmin':_0x1f8e43,'xmax':_0x980af3,'ymin':_0x42f362,'ymax':_0x49ecb3}:Cesium[_0x2b95ac(0x1d2)][_0x2b95ac(_0x45c915._0x51478c)](_0x1f8e43,_0x42f362,_0x980af3,_0x49ecb3);}['on'](_0x1e27b7,_0x1af19d,_0x3a3096){return this['_echartsInstance']['on'](_0x1e27b7,_0x1af19d,_0x3a3096||this),this;}['onByQuery'](_0x1b90d5,_0x37c475,_0x6c9fcf,_0xa8cbcd){return this['_echartsInstance']['on'](_0x1b90d5,_0x37c475,_0x6c9fcf,_0xa8cbcd||this),this;}['off'](_0x40d1cc,_0x34a379,_0x51378e){const _0x5ee76d={_0x56c955:0x1ca},_0x4b9dbd=_0x4a8f00;return this[_0x4b9dbd(0x1f9)][_0x4b9dbd(_0x5ee76d._0x56c955)](_0x40d1cc,_0x34a379,_0x51378e||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x4a8f00(0x1e1),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x267300){if(_0x267300!=='default'&&!exports['hasOwnProperty'](_0x267300))Object['defineProperty'](exports,_0x267300,{'enumerable':!![],'get':function(){return echarts[_0x267300];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.9", | ||
"version": "3.5.10", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.9" | ||
"mars3d": "~3.5.10" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -37,3 +37,3 @@ | ||
//安装mars3d插件(按需安装) | ||
npm install mars3d-echarts --save | ||
npm install mars3d-echarts echarts --save | ||
``` | ||
@@ -40,0 +40,0 @@ |
17111